/* Worker portal: mobile-first additions on top of ../styles.css (same Eplough brand). */
body.worker main { max-width: 46rem; }
.cards { display: grid; gap: .75rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1rem; }
.card h3 { margin: 0 0 .25rem; }
.card .meta { color: var(--muted); font-size: .9rem; }
.card .row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; justify-content: space-between; }
.reasons { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding: .55rem 0 .55rem 2.2rem; position: relative; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .5rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; text-align: center; line-height: 1.6rem; }
.steps li.done::before { content: "✓"; background: var(--brand); color: #fff; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.day { min-height: 56px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: .8rem; padding: .25rem; text-align: center; cursor: pointer; display: flex; flex-direction: column; justify-content: center; margin: 0; }
.day .d { font-weight: 600; font-size: .95rem; }
.day.available { background: var(--ok-bg); border-color: var(--brand); }
.day.preferred { background: var(--brand); color: #fff; border-color: var(--brand-dark); }
.day.unavailable { background: var(--bad-bg); border-color: #e8b4b8; }
.legend { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .85rem; color: var(--muted); margin: .5rem 0; }
.legend span::before { content: ""; display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; border: 1px solid var(--line); }
.legend .l-available::before { background: var(--ok-bg); }
.legend .l-preferred::before { background: var(--brand); }
.legend .l-unavailable::before { background: var(--bad-bg); }
form.stack label { display: block; margin: .6rem 0 .2rem; font-weight: 600; }
form.stack input, form.stack select { width: 100%; }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 1rem; word-break: break-all; background: var(--neutral-bg); padding: .5rem; border-radius: 6px; }
@media (max-width: 380px) { .day { min-height: 48px; font-size: .72rem; } }
a.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 8px; background: var(--brand-dark); color: #fff; text-decoration: none; font-weight: 600; }
form.stack input[type="checkbox"] { width: auto; min-height: 0; margin-right: .4rem; transform: scale(1.3); }
form.stack label:has(input[type="checkbox"]) { font-weight: 400; display: flex; align-items: center; }
.card > button { margin-top: .5rem; }

/* v0.9.0: registration, timesheets, home signature */
.landing .idp { display: block; width: 100%; max-width: 320px; margin: 0.4rem auto; }
.reg-steps li.current { font-weight: 700; }
.reg-steps a { color: inherit; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.35rem; }
label.check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: normal; }
dl.ts { display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 0.75rem; margin: 0.5rem 0; }
dl.ts dt { color: #5b6470; }
dl.ts dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
button.big { font-size: 1.15rem; padding: 0.8rem 1.4rem; }
canvas.sig { width: 100%; height: auto; aspect-ratio: 600 / 220; border: 1px dashed #8a94a3; border-radius: 8px; background: #fff; touch-action: none; }

/* v0.10.0: photo + digital ID card (Eplough ink header, green accent, as the console). */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
label.button { display: inline-flex; align-items: center; cursor: pointer; min-height: 44px; padding: 0 1rem; margin: 0 .35rem .35rem 0; border-radius: 8px; border: 1px solid #cfd5dc; background: #fff; color: var(--ink); font-weight: 600; }
label.button.primary { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.photo-thumb img { width: 96px; height: 120px; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); display: block; }
.idcard { max-width: 21rem; margin: 0 auto 1rem; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(16, 24, 40, .18); text-align: center; border-bottom: 6px solid var(--brand); }
.idcard-head { display: flex; align-items: center; gap: .6rem; background: var(--ink); color: #fff; padding: .7rem 1rem; border-bottom: 3px solid var(--brand); text-align: left; }
.idcard-head strong { font-family: var(--head); font-size: 1.1rem; letter-spacing: .04em; display: block; line-height: 1.1; }
.idcard-head small { font-size: .7rem; color: #aab3bf; letter-spacing: .14em; }
.idcard-photo { width: 150px; height: 188px; object-fit: cover; border-radius: 10px; border: 3px solid var(--brand); margin: 1rem auto .5rem; display: block; }
.idcard-name { margin: .2rem 1rem 0; font-size: 1.25rem; }
.idcard-role { margin: .1rem 1rem; color: var(--muted); }
.idcard-id { margin: .1rem 1rem .5rem; font-weight: 600; font-family: var(--head); letter-spacing: .03em; }
.idcard-checks { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; padding: 0 1rem; }
.idcard-status { margin: .7rem 1rem; padding: .45rem; border-radius: 8px; font-weight: 600; }
.idcard-status.ok { background: var(--ok-bg); color: var(--ok); }
.idcard-status.bad { background: var(--bad-bg); color: var(--bad); }
.idcard .qr { width: 170px; height: 170px; display: block; margin: .3rem auto 0; }
.idcard-foot { font-size: .78rem; color: var(--muted); margin: .3rem 1rem .8rem; }
.verify .idcard-status { font-size: 1.15rem; }

/* v0.11.1: Eplough sign-in (provider buttons go straight to each provider) */
.landing.signin .signin-card { max-width: 340px; margin: 1.2rem auto .8rem; }
.landing.signin .idp { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; max-width: none; min-height: 48px; margin: 0 0 .6rem; border-radius: 10px; border: 1px solid #cfd5dc; background: #fff; color: var(--ink); font-family: var(--head); font-weight: 600; font-size: 1rem; cursor: pointer; }
.landing.signin .idp:hover { border-color: var(--brand-dark); }
.landing.signin .idp.primary { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; margin-bottom: 0; }
.landing.signin .idp-apple { background: #000; color: #fff; border-color: #000; }
.landing.signin .or { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .85rem; margin: .4rem 0 .9rem; }
.landing.signin .or::before, .landing.signin .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.landing.signin .idp img { width: 20px !important; height: 20px !important; max-width: 20px; margin: 0 !important; flex: none; }
