/* Palette and UI roles adapted from scotmas-brand 2.15.0, references/ui-tokens.md.
 * No dashboard code copied; no remote font request. Original Open Sans asset and
 * OFL notice are packaged together; browser/font rendering acceptance remains separate. */
@font-face {
  font-family:'Open Sans';
  src:url('./open-sans.ttf') format('truetype');
  font-style:normal;
  font-weight:300 800;
  font-display:swap;
}
:root {
  --scotmas-blue:#005ABB; --scotmas-green:#008AAA; --scotmas-dark:#002E5F;
  --scotmas-overlay:#0039A6; --scotmas-text:#707070; --scotmas-annotation:#A3A3A3;
  --scotmas-cyan:#00C2F3; --scotmas-light-blue:#A3D7EF;
  --surface:#FFFFFF; --surface-sunken:#F5F7FA; --border:#DFE4EA;
  --focus-ring:var(--scotmas-blue); --font-family:'Open Sans',sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; font:16px/1.5 var(--font-family); color:var(--scotmas-text); background:var(--surface); }
.skip { position:absolute; left:-9999px; }
.skip:focus { left:8px; top:8px; padding:12px; background:var(--surface); z-index:2; }
:focus-visible { outline:3px solid var(--focus-ring); outline-offset:3px; }
.draft, footer { color:#CC0000; background:var(--surface); padding:12px 24px; }
.draft { font-weight:700; border-bottom:1px solid var(--border); }
header { padding:24px 32px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.brand-logo { display:block; width:180px; height:auto; max-width:100%; margin:24px; }
h1,h2,h3 { color:var(--scotmas-blue); line-height:1.25; }
h1 { margin:0; font-size:32px; }
.eyebrow { margin:0 0 4px; }
.account { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.layout { display:grid; grid-template-columns:240px minmax(0,1fr); min-height:55vh; }
nav { padding:24px; background:var(--surface-sunken); border-right:1px solid var(--border); }
nav a { display:block; padding:12px; min-height:44px; color:var(--scotmas-blue); border-radius:4px; }
nav a[aria-current=page] { background:var(--surface); font-weight:700; }
main { padding:24px 32px; max-width:1100px; overflow-wrap:anywhere; }
button { min-height:44px; padding:10px 16px; border:1px solid var(--scotmas-blue); border-radius:4px; color:var(--scotmas-blue); background:var(--surface); font:inherit; cursor:pointer; }
button:disabled { color:var(--scotmas-text); border-color:var(--border); cursor:default; }
[hidden] { display:none !important; }
.card { border:1px solid var(--border); border-radius:8px; padding:24px; margin:16px 0; }
dt { color:var(--scotmas-dark); font-weight:600; }
dd { margin:0 0 16px; }
footer { border-top:1px solid var(--border); font-size:14px; }
footer p { margin:4px 0; }
@media(max-width:720px) { .layout { grid-template-columns:1fr; } nav { border-right:0; border-bottom:1px solid var(--border); } header,main { padding:20px; } }

/* BUILD fallback: local brand ui-tokens/accessibility. No release/Canon claim. */
.triage-queue {
  --queue-blue: #005ABB;
  --queue-text: #707070;
  --queue-surface: #FFFFFF;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--queue-text);
  background: var(--queue-surface);
  padding: 16px;
  overflow-wrap: anywhere;
}
.triage-queue h2, .triage-queue h3, .triage-queue h4 { color: var(--queue-blue); }
.triage-queue form { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; }
.triage-queue label { display: flex; flex-direction: column; gap: 4px; }
.triage-queue input, .triage-queue select, .triage-queue button, .triage-queue textarea {
  font: inherit; min-height: 44px; padding: 8px; border: 1px solid var(--queue-blue);
  border-radius: 4px; color: var(--queue-blue); background: var(--queue-surface);
}
.triage-queue fieldset { display: flex; flex-wrap: wrap; gap: 16px; width: 100%; border: 1px solid var(--queue-blue); padding: 16px; }
.triage-queue textarea { min-height: 96px; width: min(100%, 32rem); }
.triage-queue .triage-actions { margin: 16px 0; }
.triage-queue :focus-visible { outline: 3px solid var(--queue-blue); outline-offset: 3px; }
.triage-queue button:disabled { color: var(--queue-text); border-color: var(--queue-text); }
.triage-queue table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.triage-queue th, .triage-queue td { text-align: left; vertical-align: top; padding: 8px; }
.triage-queue th { color: var(--queue-surface); background: var(--queue-blue); }
.triage-queue pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Gate red is reserved for the three controls, on an explicit white plate. */
.triage-queue .triage-gate { color: #CC0000; background: #FFFFFF; font-weight: 700; }
@media (max-width: 800px) {
  .triage-queue > div { overflow-x: auto; }
  .triage-queue table { min-width: 640px; }
}
