html{color-scheme:light}

/* Minimal first-run choice */
.languageGate{background:#f7f8f5!important;padding:28px!important}
.languagePanel{width:min(100%,320px)!important}
.languageMark{margin-bottom:28px!important;color:#16191a!important;font-size:10px!important;letter-spacing:.16em!important}
.languagePanel h1{margin-bottom:16px!important;font-size:24px!important;line-height:1.12!important}
.languagePanel h1 span{font-size:12px!important;font-weight:600!important}
.languagePanel button,.languagePanel button+button{height:52px!important;margin-top:7px!important;border-radius:13px!important;font-size:13px!important}

/* Auth remains calm and never exposes raw technical language */
.authGate{background:#f3f4f0}
.authPanel{width:min(100%,372px);border:1px solid #dcdfda;border-radius:24px;background:#fafbf8;box-shadow:0 22px 60px rgba(16,19,20,.09)}
.authMessage.error{border:1px solid #e3c4bf;background:#f6e8e5;color:#722f2b!important}

/* Request category icons */
.requestCardIcon{color:#34393a!important}
.requestCardIcon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.requestCardIcon.large svg{width:24px;height:24px}

.premiumForm,.premiumDetail,.opsReview,.opsDetail,.gpsReview,.peoplePage{padding:24px 16px 40px}
.premiumForm header,.peoplePage header,.opsReview>header,.opsDetail>header,.gpsReview>header{margin-bottom:22px}
.premiumForm header small,.peoplePage header small,.opsReview>header small,.opsDetail>header small,.gpsReview>header small{display:block;color:var(--muted);font-size:8px;font-weight:850;letter-spacing:.08em}
.premiumForm header h1,.peoplePage header h1,.opsReview>header h1,.opsDetail>header h1,.gpsReview>header h1{margin:5px 0 0;font-size:29px;letter-spacing:-.045em}
.premiumForm header p,.peoplePage header p,.opsReview>header p,.opsDetail>header p,.gpsReview>header p{margin:5px 0 0;color:var(--muted);font-size:9px}
.premiumForm>label{display:grid;gap:6px;margin-top:15px}
.premiumForm>label>span,.qDateGrid label>span{color:var(--muted);font-size:8px;font-weight:750}
.premiumForm input,.premiumForm select,.premiumForm textarea{width:100%;border:1px solid var(--line);border-radius:14px;background:#fff;padding:0 13px;outline:0}
.premiumForm input,.premiumForm select{height:48px}.premiumForm textarea{padding-top:13px;resize:vertical}
.premiumForm input:focus,.premiumForm select:focus,.premiumForm textarea:focus{border-color:#717777;box-shadow:0 0 0 3px rgba(24,28,29,.06)}
.qDateGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:15px}.qDateGrid label{display:grid;gap:6px}.qDateGrid label[hidden]{display:none}
.requestTitlePreview{margin-top:15px;padding:13px 14px;border-radius:13px;background:#eef0ec;color:#474c4d;font-size:9px;font-weight:800}
.premiumSubmit,.peopleInvite{width:100%;height:50px;margin-top:18px;border:0;border-radius:14px;background:#171a1b;color:#fff;font-size:11px;font-weight:900}.premiumSubmit:disabled{opacity:.5}
.premiumDetail header{display:flex;align-items:center;gap:13px;margin-bottom:18px}.premiumDetail header h1{margin:3px 0 0;font-size:21px}.premiumDetail header small{color:var(--muted);font-size:8px}
.premiumDetail dl,.opsDetail dl{margin:0}.premiumDetail dl>div,.opsDetail dl>div{display:flex;justify-content:space-between;gap:15px;padding:14px 1px;border-top:1px solid var(--line);font-size:9px}.premiumDetail dt,.opsDetail dt{color:var(--muted)}.premiumDetail dd,.opsDetail dd{margin:0;font-weight:850;text-align:right}
.premiumDetail article{margin-top:12px;padding:16px;border-radius:15px;background:#eff1ed}.premiumDetail article small{color:var(--muted);font-size:8px}.premiumDetail article p{margin:6px 0 0;font-size:10px;line-height:1.55}.premiumDetail footer{margin-top:12px;color:var(--muted);font-size:7px}

/* Operations numbers are controls, not decoration */
.opsMetrics{display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden;border:1px solid var(--line);border-radius:17px;background:#fff}
.opsMetrics button{min-height:72px;border:0;background:#fff}.opsMetrics button+button{border-left:1px solid var(--line)}.opsMetrics button.on{background:#171a1b;color:#fff}.opsMetrics small{display:block;color:var(--muted);font-size:7px}.opsMetrics button.on small{color:#b9bfbd}.opsMetrics b{display:block;margin-top:4px;font-size:19px}
.opsFilter{padding:13px 0}.opsFilter button{height:34px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:8px;font-weight:850}.opsFilter button.on{background:#171a1b;color:#fff}
.opsRows{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff}.opsRow{width:100%;display:grid;grid-template-columns:68px minmax(0,1fr) auto 10px;gap:10px;align-items:center;padding:14px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left}.opsRow:last-child{border-bottom:0}.opsRow time{color:var(--muted);font-size:8px}.opsRow strong{display:block;font-size:10px}.opsRow span,.opsRow small{display:block;margin-top:2px;color:var(--muted);font-size:7px}.opsRow em{font-style:normal;color:var(--green);font-size:8px;font-weight:850}.opsRow em.flag{color:var(--amber)}.opsRow i{color:#a2a7a5;font-style:normal}.opsEmpty{padding:42px 15px;color:var(--muted);text-align:center;font-size:9px}
.gpsEvidenceButton{width:100%;display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;margin-top:16px;padding:15px;border:1px solid #e4d7bd;border-radius:15px;background:var(--amber-bg);color:var(--amber);text-align:left}.gpsEvidenceButton span{font-size:10px;font-weight:850}.gpsEvidenceButton b{min-width:23px;height:23px;display:grid;place-items:center;border-radius:99px;background:#fff8;font-size:8px}.gpsEvidenceButton i{font-style:normal}.gpsClear{margin-top:16px;padding:14px;border-radius:14px;background:var(--green-bg);color:var(--green);font-size:9px;font-weight:850}
.gpsReview article{margin-top:11px;padding:15px;border:1px solid var(--line);border-radius:16px;background:#fff}.gpsReview article>div{display:flex;justify-content:space-between}.gpsReview article strong{font-size:12px}.gpsReview article span{color:var(--amber);font-size:8px;font-weight:850}.gpsReview dl{margin:10px 0 0}.gpsReview dl>div{display:flex;justify-content:space-between;gap:15px;padding:8px 0;border-top:1px solid var(--line);font-size:8px}.gpsReview dt{color:var(--muted)}.gpsReview dd{margin:0;text-align:right;font-weight:750}
.wbStats>div[role="button"]{cursor:pointer}.wbStats>div[role="button"]:active{background:rgba(255,255,255,.04)}

/* Invite flow */
.peopleInvite{margin:0 0 14px}.peopleList{overflow:hidden;border:1px solid var(--line);border-radius:17px;background:#fff}.peopleList>div{display:grid;grid-template-columns:38px 1fr;gap:11px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line)}.peopleList>div:last-child{border-bottom:0}.peopleList span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#e9ebe7;font-size:8px;font-weight:900}.peopleList strong{font-size:10px}
.inviteForm fieldset{display:grid;gap:4px;margin:16px 0 0;padding:12px;border:1px solid var(--line);border-radius:14px}.inviteForm legend{padding:0 4px;color:var(--muted);font-size:8px}.inviteForm fieldset label{display:flex;align-items:center;gap:9px;padding:7px 2px;font-size:9px}.inviteForm fieldset input{width:17px;height:17px}.inviteForm fieldset p{color:var(--muted);font-size:8px}

/* Unified alert colours, including real dark mode */
.msgNavBadge,.navBtn[data-page="workbench"][data-alert]:after{background:#b54b47!important;color:#fff!important}
.tabCount.hot,.moduleBadge.danger{background:#f2d9d6!important;color:#873b37!important}
@media (prefers-color-scheme:dark){
  html{color-scheme:dark}
  .msgNavBadge,.navBtn[data-page="workbench"][data-alert]:after{background:#df7771!important;color:#17191a!important;box-shadow:0 0 0 2px #1b1d1a!important}
  .tabCount.hot,.moduleBadge.danger{background:#54302e!important;color:#ffaaa4!important}
  .requestCardIcon svg{color:#e4e7e4}
}
@media (max-width:360px){.qDateGrid{grid-template-columns:1fr}.opsRow{grid-template-columns:62px minmax(0,1fr) auto 8px}}
