:root{font-family:Arial,"Noto Sans Arabic",sans-serif;color:#18342d;background:#f4f5ef;font-synthesis:none;--green:#17663d;--red:#b52d2d;--line:#d4dbd1}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:wait;opacity:.65}.shell{width:min(100%,520px);margin:auto;min-height:100dvh;padding:24px 24px max(22px,env(safe-area-inset-bottom));display:flex;flex-direction:column}header{text-align:center}.brand{display:flex;justify-content:space-between;align-items:center;font-weight:800;letter-spacing:.15em;font-size:15px}.pill{font-size:10px;letter-spacing:.03em;background:#e7eadf;border-radius:99px;padding:7px 10px;font-weight:700}time{display:block;font-variant-numeric:tabular-nums;font-size:clamp(46px,13vw,72px);font-weight:700;letter-spacing:-.055em;margin:25px 0 6px;line-height:1.05}.status{font-size:13px;color:#51665d;min-height:30px}main{flex:1;padding:20px 0}h1{font-size:27px;line-height:1.2;letter-spacing:-.035em;margin:10px 0 20px}h2{font-size:20px}.intro{text-align:center;line-height:1.45}.translations{font-size:17px;line-height:1.7;margin:20px 0 26px;color:#465e54}.pin-wrap{position:relative;width:100%;max-width:330px;margin:20px auto}.pin-wrap input{width:100%;height:78px;background:white;border:2px solid #b2bfb3;border-radius:16px;text-align:center;font-size:30px;letter-spacing:.32em;color:transparent;caret-color:transparent;outline:none}.pin-wrap input:focus{border-color:#17663d;box-shadow:0 0 0 4px #17663d1a}.pin-display{position:absolute;pointer-events:none;inset:0;display:flex;align-items:center;justify-content:center;letter-spacing:.3em;font-size:34px;color:#18342d;white-space:pre}.hint{font-size:13px;color:#617268;line-height:1.5}.stack{display:grid;gap:13px}.action{width:100%;min-height:80px;border:0;border-radius:16px;text-align:left;padding:18px 20px;font-size:26px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:12px}.action small{display:block;font-size:20px;font-weight:500;margin-top:6px}.action .symbol{font-size:28px;line-height:1}.start{background:var(--green);color:white}.end{background:var(--red);color:white}.change{background:#e7eadf;border:1px solid #bdc8b9;color:#203f31}.choice{background:#fff;border:1px solid var(--line);color:#18342d;font-size:23px;min-height:72px}.worker{font-size:14px;margin:0 0 16px;color:#53695e}.step{font-size:11px;text-transform:uppercase;letter-spacing:.14em;font-weight:700;color:#63776c}.back{background:none;border:0;color:#385247;font-size:15px;padding:12px 0;margin-top:10px}.success{text-align:center;padding-top:18px}.check{display:inline-grid;place-items:center;width:86px;height:86px;border-radius:50%;background:#dbeeda;color:#17663d;font-size:48px}.success .event-time{font-size:37px;font-variant-numeric:tabular-nums}.form-label{display:block;font-size:14px;font-weight:700;margin:18px 0 8px}.field{background:#fff;border:1px solid #acbbae;border-radius:10px;padding:15px;width:100%;min-height:52px}.primary{width:100%;background:var(--green);color:#fff;border:0;border-radius:12px;padding:16px;font-weight:700;min-height:54px;margin-top:20px}.secondary{width:100%;background:white;color:#18342d;border:1px solid var(--line);border-radius:12px;padding:14px;min-height:52px;margin-top:12px}.info{background:#e9ece2;border-radius:12px;padding:15px;line-height:1.5;font-size:14px}.metric{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:14px 0;font-size:15px}.metric strong{font-variant-numeric:tabular-nums}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px}.link{background:none;border:0;color:#415d4c;min-height:42px;font-size:13px;padding:5px}#message:not(:empty){background:#fff0e9;border:1px solid #eab49a;color:#702b16;border-radius:10px;padding:14px;margin-bottom:16px;line-height:1.5;font-size:14px}button:focus-visible{outline:3px solid #135ea0;outline-offset:3px}.tiny{font-size:12px}details{margin-top:24px}summary{cursor:pointer;font-weight:700}.admin-table{width:100%;border-collapse:collapse;font-size:12px}.admin-table th,.admin-table td{border-bottom:1px solid #d4dbd1;text-align:left;padding:10px 5px}.scroll{overflow:auto}pre{white-space:pre-wrap;word-break:break-word;background:#f6f6f3;padding:14px;font-size:12px;border-radius:8px}@media(max-height:650px){.shell{padding-top:14px}time{margin-top:15px;font-size:48px}main{padding-top:8px}.translations{margin:10px 0}.action{min-height:68px;padding:13px 18px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s,transform .15s}button:active{transform:scale(.985)}}

.admin-shell{max-width:900px}

/* A recorded finish is a successful action; its wording distinguishes it from an error. */
body[data-feedback="start"]{background:#dcefe0;color:#123d29}
body[data-feedback="end"]{background:#fbe1df;color:#632420}
body[data-feedback] .status,body[data-feedback] .link{color:inherit}
body[data-feedback] footer{border-color:currentColor}
.confirmation{padding-top:8px}
.confirmation h1{font-size:clamp(28px,7vw,36px);margin:20px 0 14px}
.confirmation h1:focus{outline:none}
.confirmation .check{width:90px;height:90px;background:#17663d;color:white}
body[data-feedback="end"] .confirmation .check{background:#9b2926}
.confirmation small{display:block;font-size:.8em;font-weight:500;line-height:1.5;margin-top:8px}
.confirmation-delivery{font-size:18px;line-height:1.45;font-weight:700}
.confirmation-return{font-size:15px;line-height:1.5;margin-top:24px}
@media(max-height:650px){.confirmation .check{width:64px;height:64px;font-size:38px}.confirmation h1{margin:12px 0}.confirmation .event-time{font-size:30px;margin:12px 0}.confirmation-return{margin-top:14px}}

/* Profile language and name remain readable on shared, narrow displays. */
h1.worker{font-size:clamp(28px,7vw,36px);line-height:1.25;margin:8px 0 12px;color:#18342d;overflow-wrap:anywhere}
.worker small{font-size:.85em}
.identity-reset{background:white;border:1px solid #acbbae;border-radius:12px;color:#18342d;min-height:48px;padding:10px 15px;font-size:16px}
#screen h2{font-size:22px;margin:22px 0 16px}
#screen h1 small,#screen h2 small,.hint small,.identity-reset small,.step small,#message small,.status small,footer small{display:block;line-height:1.5;font-weight:400;margin-top:4px}
.status{display:flex;justify-content:center;align-items:flex-start;flex-wrap:wrap;gap:2px}
.status small{font-size:12px}
.error-symbol{font-weight:bold}

[hidden]{display:none!important}
.presence-card{background:#e8ece8;border:1px solid #b6c3ba;border-radius:12px;padding:12px;margin:0 0 16px;line-height:1.4}
.presence-card small{display:block;line-height:1.5;margin-top:4px}
.presence-card p{margin:8px 0 0}
body[data-presence="working"]:not([data-feedback]){background:#dcefe0}
.admin-link{display:block;margin-top:20px;color:#18342d;padding:10px 0}

/* Administrative roster: text and symbols accompany every colour. */
.admin-shell{width:min(100%,1000px);max-width:1000px}
.admin-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.admin-toolbar button{width:auto;flex:1;margin:0;min-width:160px}
.presence-filters{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
.presence-filter{min-height:44px;padding:10px 14px;border:1px solid #acbbae;border-radius:99px;background:white;color:#18342d}
.presence-filter[aria-pressed="true"]{background:#18342d;color:white}
.presence-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px}
.person-card{display:flex;flex-direction:column;gap:12px;align-items:flex-start;text-align:left;border:1px solid #bac5ba;border-radius:16px;background:#fff;padding:20px;min-height:170px;color:#18342d;overflow-wrap:anywhere}
.person-card[aria-pressed="true"]{outline:3px solid #18342d;outline-offset:2px}
.person-name{font-size:21px}.person-status{font-weight:700;display:flex;align-items:center;gap:8px}
.person-status:before{content:"";width:13px;height:13px;flex-shrink:0;border-radius:50%;background:#67766f}
.person-card[data-state="working"] .person-status:before{background:#17663d}
.person-card[data-state="off"] .person-status:before{background:#b52d2d}
.person-location{font-size:16px;line-height:1.5}.person-alert{font-size:14px;font-weight:700;color:#7c4807}
.dashboard-warning{background:#fff2d5;color:#593805;border:1px solid #b98d45;border-radius:12px;padding:16px;margin:16px 0;line-height:1.5}
.dashboard-warning h2{margin:0 0 10px}.dashboard-warning p{margin:8px 0}
.alert-person{background:white;border:1px solid #b98d45;border-radius:10px;padding:12px;min-height:44px;color:#593805;display:block;width:100%;text-align:left;margin-top:8px}
.person-detail{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin-top:24px;scroll-margin:16px}
.person-detail h2{margin-top:0}.person-detail dl{display:grid;grid-template-columns:minmax(130px,1fr) 2fr;gap:10px 16px;line-height:1.5}
.person-detail dt{font-size:14px;color:#51665d}.person-detail dd{margin:0;overflow-wrap:anywhere}
.history-panel{border-top:1px solid var(--line);padding-top:20px;margin-top:30px}
@media(max-width:480px){.admin-shell{padding-inline:16px}.person-detail dl{grid-template-columns:1fr;gap:4px}.person-detail dd{margin-bottom:12px}.admin-toolbar button{min-width:100px}}
