:root{--blue:#0068B3;--gold:#FDB813;--ink:#1f2328;--muted:#5b6470;--line:#d7dde4;--bg:#f5f7fa;--card:#fff;--danger:#b42318;--ok:#1a7f37}
*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;font-size:16px;color:var(--ink);background:var(--bg);line-height:1.45}
a{color:var(--blue)}header.top{background:var(--card);border-bottom:3px solid var(--gold)}
.top .wrap{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.top img{height:44px}.top nav{display:flex;gap:16px;flex-wrap:wrap;margin-left:auto;align-items:center}
.top nav a{text-decoration:none;font-weight:600}.wrap{max-width:1040px;margin:0 auto;padding:12px 16px}
h1{font-size:24px;color:var(--blue);margin:16px 0}h2{font-size:18px;color:var(--blue)}
.card{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:20px;margin:16px 0}
.narrow{max-width:440px;margin:40px auto}label{display:block;font-weight:600;margin:12px 0 4px}
input[type=text],input[type=email],input[type=password],select{width:100%;padding:12px;font-size:16px;border:1px solid var(--line);border-radius:6px}
.btn,button{display:inline-block;background:var(--blue);color:#fff;border:0;border-radius:6px;padding:12px 18px;font-size:16px;font-weight:600;cursor:pointer;text-decoration:none}
.btn.secondary,button.secondary{background:#fff;color:var(--blue);border:1px solid var(--blue)}button.link{background:none;color:var(--blue);padding:0;font-weight:600}
.errors{background:#fdecea;border:1px solid #f5c2c0;color:var(--danger);padding:10px 14px;border-radius:6px;margin:12px 0}
.status{background:#e8f5ec;border:1px solid #b7dfc3;color:var(--ok);padding:10px 14px;border-radius:6px;margin:12px 0}
table{width:100%;border-collapse:collapse;background:var(--card)}th,td{text-align:left;padding:10px;border-bottom:1px solid var(--line);vertical-align:top}
th{background:var(--blue);color:#fff;font-weight:600}.muted{color:var(--muted);font-size:14px}.tag{display:inline-block;padding:2px 8px;border-radius:10px;font-size:13px;background:#eaf2fa;color:var(--blue)}
.tag.off{background:#f2f2f2;color:var(--muted)}.checks label{font-weight:400;display:flex;gap:8px;align-items:center}.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
code.codes{display:block;background:#f2f4f7;padding:12px;border-radius:6px;font-size:15px;line-height:1.8}
@media (max-width:640px){th.hide-sm,td.hide-sm{display:none}.top nav{margin-left:0}}
textarea{width:100%;padding:12px;font-size:15px;border:1px solid var(--line);border-radius:6px;font-family:inherit}
input[type=date]{padding:10px;font-size:15px;border:1px solid var(--line);border-radius:6px}
.grid-wrap{overflow-x:auto}.grid td select{min-width:150px;padding:8px;font-size:14px}.grid td input[type=date]{width:150px}
.grid th.sec{min-width:190px}.small{font-size:14px}.inline{display:inline}details.card summary{cursor:pointer;font-weight:600;color:var(--blue)}
.pill{display:inline-block;padding:2px 8px;border-radius:10px;font-size:13px;background:#fff7e0;color:#7a5a00;border:1px solid var(--gold)}

.q{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:16px;margin:12px 0}
.q .qtext{font-size:17px;margin-bottom:10px}.q .num{font-weight:700;color:var(--blue);margin-right:6px}
.ynn{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.ynn input{position:absolute;opacity:0;width:1px;height:1px}
.ynn label{margin:0;display:inline-block;min-width:84px;text-align:center;padding:12px 16px;border:2px solid var(--line);border-radius:8px;font-weight:700;cursor:pointer;background:#fff}
.ynn input:checked+label{border-color:var(--blue);background:var(--blue);color:#fff}.ynn input:focus-visible+label{outline:3px solid var(--gold)}
.ynn label.clear{min-width:auto;font-weight:400;border-style:dashed;color:var(--muted)}
.q textarea{min-height:70px}.q .sub{font-size:14px;font-weight:600;margin:10px 0 4px;color:var(--muted)}
.thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.thumbs figure{margin:0;width:120px}.thumbs img{width:120px;height:90px;object-fit:cover;border-radius:6px;border:1px solid var(--line);background:#eee}
.thumbs figcaption{font-size:12px;color:var(--muted)}.photo-btn{display:inline-block;padding:10px 14px;border:1px solid var(--blue);color:var(--blue);border-radius:6px;font-weight:600;cursor:pointer;background:#fff}
.savebar{position:sticky;bottom:0;background:rgba(245,247,250,.96);border-top:1px solid var(--line);padding:10px 0;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.savestate{font-size:14px;color:var(--muted)}.progress{height:8px;background:#e5e9ef;border-radius:4px;overflow:hidden}.progress span{display:block;height:100%;background:var(--blue)}
.req{color:var(--danger);font-size:13px;font-weight:600}.badge-done{color:var(--ok);font-weight:600}

/* Progress status: red = not started, yellow = in progress, green = complete (label text too, not color alone) */
.st{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:12px;font-size:13px;font-weight:600;white-space:nowrap;border:1px solid}
.st-dot{width:10px;height:10px;border-radius:50%;display:inline-block}
.st-none{background:#fdecea;color:#9b1c1c;border-color:#f5b5b0}.st-none .st-dot{background:#d92d20}
.st-part{background:#fff6d6;color:#7a5a00;border-color:#f3d36b}.st-part .st-dot{background:#f2b705}
.st-done{background:#e6f4ea;color:#1a6b32;border-color:#a8d5b5}.st-done .st-dot{background:#1a7f37}
tr.row-none td:first-child{box-shadow:inset 4px 0 0 #d92d20}tr.row-part td:first-child{box-shadow:inset 4px 0 0 #f2b705}tr.row-done td:first-child{box-shadow:inset 4px 0 0 #1a7f37}
.q.unanswered{border-left:5px solid #f2b705}.q.answered{border-left:5px solid #1a7f37}

.photo-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px}
.computer-only{display:none}.camera-only{display:inline}
@media (hover:hover) and (pointer:fine){.computer-only{display:inline}.camera-only{display:none}label.camera-only{display:none}}
.q.drop{outline:3px dashed var(--blue);outline-offset:-6px;background:#eaf2fa}
.photo-actions[hidden]{display:none}

/* Field mode sync banner */
.syncbar{font-size:14px;border-bottom:1px solid var(--line)}.syncbar .wrap{padding:8px 16px}
.syncbar.ok{background:#e6f4ea;color:#1a6b32}.syncbar.busy{background:#fff6d6;color:#7a5a00}.syncbar.off{background:#eaf2fa;color:#0b4a80}.syncbar.warn{background:#fdecea;color:#9b1c1c}
.thumb-off{width:120px;height:90px;border-radius:6px;border:1px dashed var(--line);display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted)}
.syncbar{position:sticky;top:0;z-index:5}

/* Scenario interviews */
.checks.big label{font-size:16px;align-items:flex-start;padding:8px 0;margin:0}.checks.big input{width:22px;height:22px;flex:none;margin-top:1px}
.clip-timer .secs{font-size:40px;font-weight:700;color:var(--blue);min-width:70px;text-align:right;font-variant-numeric:tabular-nums}
hr{border:0;border-top:1px solid var(--line);margin:16px 0}
.card.sim{padding:14px 16px;margin:10px 0}.card.sim .row strong{margin-right:auto}.card.sim p{margin:6px 0 10px}
.sim-part{border-left:5px solid #f2b705}.sim-done{border-left:5px solid #1a7f37}

/* Report preparation */
.prep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.prep{border:1px solid var(--line);border-radius:8px;padding:8px;background:#fff}.prep.off{opacity:.55}
.prep img{width:100%;aspect-ratio:4/3;border-radius:4px;background:#f2f2f2;display:block}.prep img.fit{object-fit:contain}.prep img.crop{object-fit:cover}
.prep label.checks{margin:6px 0}

/* Follow-up questions */
.fu-tag{margin-left:8px;font-size:12px;vertical-align:middle}
.q.locked .ynn label{opacity:.55;cursor:not-allowed}.q.locked .ynn input:checked+label{opacity:1}
.q[hidden]{display:none}
.ynn.multi input:checked+label::before{content:"\2713  "}
/* Assignment grid: one or more analysts per box */
details.pick{border:1px solid #cfd6de;border-radius:6px;background:#fff;margin-bottom:4px;min-width:170px}
details.pick>summary{cursor:pointer;padding:6px 8px;font-size:.92rem;list-style:none}
details.pick>summary::-webkit-details-marker{display:none}
details.pick>summary::after{content:" ▾";color:#667}
details.pick[open]>summary{border-bottom:1px solid #e3e8ee}
details.pick .checks{padding:6px 8px;gap:4px}
details.pick .checks label{font-size:.9rem}
.st-opt{background:#eef1f4;color:#4a5560;border-color:#cfd6de}.st-opt .st-dot{background:#8a96a3}
tr.row-opt td:first-child{box-shadow:inset 4px 0 0 #8a96a3}
/* Simulation timer colour signal: green up to 25 s, yellow 26-30 s, red over 30 s */
.clip-timer{border-left:8px solid #1a7f37;transition:border-color .2s,background .2s}
.clip-timer.t-ok .secs{color:#1a7f37}
.clip-timer.t-warn{border-left-color:#f2b705;background:#fffaeb}.clip-timer.t-warn .secs{color:#9a6b00}
.clip-timer.t-over{border-left-color:#d92d20;background:#fdecea}.clip-timer.t-over .secs{color:#b42318}
.timer-key .tk{display:inline-block;padding:2px 8px;border-radius:10px;margin-right:4px;border:1px solid transparent}
.timer-key .t-ok{background:#e6f4ea;color:#1a6b32}.timer-key .t-warn{background:#fff6d6;color:#7a5a00}.timer-key .t-over{background:#fdecea;color:#9b1c1c}
