/* Whisper — Wave 3 models & ops (BYO LLM, certification profiles + golden set, report time zones, schedules).
   RESTRAINT.md: neutral, 1px borders, one accent, status colour only where status is the information. 4px grid. */
.w3c-gap8 { height: 8px; }
.w3c-p { margin: 0 0 12px; font-size: var(--fs-13); line-height: 20px; color: var(--text-2); }
.w3c-small { font-size: var(--fs-12); line-height: 18px; margin: 4px 0 0; }
.w3c-mono { font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--fs-12); }
.w3c-bad { color: var(--err); }
.w3c-warn-t { color: var(--warn); }

/* Models › Bring your own LLM */
.w3c-llm { margin-bottom: 16px; }
.w3c-llm .panel-head { flex-wrap: wrap; gap: 8px; }
.w3c-engines { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-panel, 8px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.w3c-engines li { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; min-width: 0; border-left: 1px solid var(--line); }
.w3c-engines li:first-child { border-left: 0; }
.w3c-eng-n { font-size: var(--fs-12); color: var(--text-3); }
.w3c-eng-l { font-size: var(--fs-13); color: var(--text-2); overflow-wrap: anywhere; }
.w3c-eng-l.is-llm { color: var(--text); font-weight: var(--fw-med); }
.w3c-fs { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.w3c-fs > legend { padding: 0; margin-bottom: 6px; }
.w3c-checks { margin-bottom: 4px; }
.w3c-chk.is-disabled { color: var(--text-3); cursor: not-allowed; }
.w3c-net.is-warn svg { color: var(--warn); }
.w3c-out { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-panel, 8px); background: var(--surface-2); }
.w3c-out[hidden] { display: none; }
.w3c-test-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: var(--fs-13); }
.w3c-test-head svg { flex: 0 0 auto; color: var(--text-3); }
.w3c-test-head strong { font-weight: var(--fw-strong); color: var(--text); }
.w3c-test-head strong.w3c-bad { color: var(--err); }
.w3c-checklist { list-style: none; margin: 8px 0 0; padding: 0; }
.w3c-checklist li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); min-width: 0; }
.w3c-checklist li:first-child { border-top: 0; }
.w3c-ck-ico { flex: 0 0 auto; display: inline-flex; margin-top: 3px; color: var(--text-3); }
.w3c-checklist li.bad .w3c-ck-ico, .w3c-checklist li.bad .w3c-ck-ms { color: var(--err); }
.w3c-checklist li.warn .w3c-ck-ico { color: var(--warn); }
.w3c-ck-t { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.w3c-ck-l { font-size: var(--fs-13); color: var(--text); line-height: 20px; }
.w3c-ck-d { font-size: var(--fs-12); color: var(--text-3); line-height: 16px; overflow-wrap: anywhere; }
.w3c-ck-ms { flex: 0 0 auto; font-size: var(--fs-12); color: var(--text-2); font-variant-numeric: tabular-nums; line-height: 20px; }
.w3c-actions { flex-wrap: wrap; }
.w3c-suite { display: block; font-size: var(--fs-12); }
.v2p-model-kv dd.w3c-how { color: var(--text-2); }

/* Agents › Certification */
.w3c-cert-slot { margin: 0 0 16px; }
.w3c-cert-slot:empty { display: none; }
.w3c-cap { margin-bottom: 12px; }
.w3c-cert-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.w3c-cert-grid > .panel { margin: 0 !important; min-width: 0; }
.w3c-prof-list { list-style: none; margin: 0; padding: 0; }
.w3c-prof-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.w3c-prof-list li:first-child { border-top: 0; padding-top: 0; }
.w3c-prof-list li:last-child { padding-bottom: 0; }
.w3c-prof-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.w3c-prof-name { font-size: var(--fs-13); font-weight: var(--fw-strong); color: var(--text); }
.w3c-prof-cur { font-size: var(--fs-12); color: var(--text-2); padding: 0 6px; border: 1px solid var(--line-strong); border-radius: var(--r-sm, 6px); line-height: 18px; }
.w3c-prof-sum { margin: 2px 0 0; font-size: var(--fs-12); line-height: 18px; color: var(--text-3); }
.w3c-prof-act { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.w3c-prof-act .w3c-small { margin: 0; }
.w3c-gold-act { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.w3c-gold-fmt { margin-top: 4px; }
.w3c-pre { margin: 8px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm, 6px); background: var(--surface-2); font-size: var(--fs-12); line-height: 18px; overflow-x: auto; white-space: pre; }
.w3c-full-box:empty { display: none; }
.w3c-full-box { margin-top: 12px; }
.w3c-verif { margin: 12px 0 0; }
.w3c-verif svg { color: var(--text-3); }
.w3c-sign-wrap { display: inline-flex; }
.w3c-lvl { display: inline-flex; align-items: center; gap: 6px; }
.w3c-lvl-prof { font-size: var(--fs-11, 11px); color: var(--text-3); }

/* Report editor: time + time zone */
.w3c-sched { margin: 0 0 4px; }
.w3c-sched[hidden], .w3c-sched [hidden] { display: none !important; }
.w3c-sched-row { align-items: flex-start; }
.w3c-sched-wd { flex: 0 0 140px; }
.w3c-sched-time { flex: 0 0 140px; }
.w3c-tz-field { flex: 1 1 220px; min-width: 0; }
.w3c-tz-field input { width: 100%; }
.w3c-sched-h { margin: -4px 0 12px; }

/* Settings › Schedules */
.w3c-sc-int { flex: 0 0 auto; }
.w3c-unit { display: flex; align-items: center; gap: 8px; }
.w3c-unit input { width: 96px !important; flex: 0 0 96px; }
.w3c-dep-note { margin: 12px 0 0; line-height: 18px; }

@media (max-width: 1100px) {
  .w3c-engines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w3c-engines li:nth-child(3) { border-left: 0; }
  .w3c-engines li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 719px) {
  .w3c-cert-grid { grid-template-columns: minmax(0, 1fr); }
  .w3c-engines { grid-template-columns: minmax(0, 1fr); }
  .w3c-engines li { border-left: 0; border-top: 1px solid var(--line); }
  .w3c-engines li:first-child { border-top: 0; }
  .w3c-sched-wd, .w3c-sched-time, .w3c-sc-int { flex: 1 1 100%; }
  .w3c-actions .adm-set-state { flex: 1 1 100%; }
}
.v2p-model-key.w3c-engsub { font-family: inherit; font-size: var(--fs-12); letter-spacing: 0; color: var(--text-3); }
#view-chat .w3-model { font-family: inherit; letter-spacing: 0; }

/* Models › Language model provider — preset choice, Gemini compliance note, usage (API_GOLIVE "Gemini") */
.w3c-prov { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: var(--r-panel, 8px); overflow: hidden; margin: 0 0 16px; }
.w3c-prov-opt { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border: 0; border-right: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; min-width: 0; cursor: pointer; }
.w3c-prov-opt:last-child { border-right: 0; }
.w3c-prov-opt:hover { background: var(--surface-2); }
.w3c-prov-opt.on { box-shadow: inset 0 0 0 1px var(--accent); position: relative; z-index: 1; }
.w3c-prov-opt:focus-visible { outline: none; box-shadow: var(--ring-inset, inset 0 0 0 2px var(--accent)); }
.w3c-prov-n { font-size: var(--fs-13); font-weight: var(--fw-strong); }
.w3c-prov-d { font-size: var(--fs-12); color: var(--text-3); line-height: 16px; overflow-wrap: anywhere; }
.w3c-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin: 0 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-panel, 8px); background: var(--surface-2); font-size: var(--fs-13); line-height: 20px; color: var(--text-2); }
.w3c-note > svg { flex: 0 0 auto; margin-top: 3px; color: var(--text-3); }
.w3c-note strong { color: var(--text); font-weight: var(--fw-strong); }
.w3c-pol { margin: 8px 0 0; display: grid; gap: 2px; }
.w3c-pol > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; }
.w3c-pol dt { color: var(--text-3); font-size: var(--fs-12); }
.w3c-pol dd { margin: 0; font-size: var(--fs-12); color: var(--text); overflow-wrap: anywhere; }
.w3c-adv { margin: 0 0 12px; }
.w3c-sub { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.w3c-sub .w3c-checklist { margin-bottom: 12px; }
.w3c-att li, .w3c-keys li { align-items: center; }
.w3c-att li .btn { flex: 0 0 auto; margin-left: auto; }
.w3c-keyact { display: flex; gap: 4px; flex: 0 0 auto; margin-left: auto; }
.w3c-smart { margin: 0 0 8px; }
.w3c-tier { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.w3c-tier input { margin: 3px 0 0; accent-color: var(--accent); }
.w3c-tier-t { display: block; font-weight: var(--fw-med); color: var(--text); }
.w3c-tier-d { display: block; font-size: var(--fs-12); color: var(--text-3); }
.w3c-attest { margin: 4px 0 12px; }
.w3c-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin: 0 0 12px; }
.w3c-bar-f { display: block; height: 100%; background: var(--accent); }
.w3c-bar-f.is-warn { background: var(--warn); }
.w3c-agg { margin-top: 12px; }
.w3c-adv > summary { cursor: pointer; font-size: var(--fs-13); color: var(--text-2); padding: 4px 0; }
.w3c-adv[open] > summary { margin-bottom: 8px; }
.w3c-terms { align-items: flex-start; margin: 0 0 8px; font-size: var(--fs-13); line-height: 20px; }
.w3c-terms input { margin-top: 3px; flex: 0 0 auto; }
.w3c-usage { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.w3c-usage-scroll { overflow-x: auto; margin-top: 8px; }
.w3c-usage-t { width: 100%; border-collapse: collapse; font-size: var(--fs-12); }
.w3c-usage-t th, .w3c-usage-t td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.w3c-usage-t th { color: var(--text-3); font-weight: var(--fw-med); }
.w3c-usage-t .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 719px) {
  .w3c-prov { grid-template-columns: minmax(0, 1fr); }
  .w3c-prov-opt { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .w3c-prov-opt:last-child { border-bottom: 0; }
  .w3c-pol > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
