:root {
  --ink: #17343b;
  --muted: #657a7f;
  --teal: #08796e;
  --mint: #e9f6f1;
  --line: #dce7e3;
  --paper: #f7f9f7;
  --amber: #936111;
  --amber-bg: #fff7e8;
  --shadow: 0 12px 34px rgba(22, 58, 62, .08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16.5px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 10; left: 14px; top: -80px; padding: 9px 12px; color: white; background: var(--ink); }
.skip-link:focus { top: 10px; }
.shell-header { position: sticky; z-index: 5; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; min-height: 72px; padding: 11px 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand > span { display: grid; width: 38px; height: 38px; place-items: center; color: white; background: var(--teal); border-radius: 11px; font: 23px Georgia, serif; }
.brand div, .experience-meta { display: flex; flex-direction: column; }
.brand small, .experience-meta span { color: var(--muted); font-size: 13.2px; }
.experience-meta { align-items: center; }
.shell-actions { display: flex; justify-self: end; gap: 8px; }
.header-button { padding: 9px 13px; cursor: pointer; color: var(--teal); border: 1px solid #acd1c7; border-radius: 8px; background: var(--mint); font-weight: 800; }
.header-button.secondary-header { color: #526b70; border-color: var(--line); background: white; }
.fallback-banner { display: flex; align-items: center; gap: 10px; padding: 10px 30px; color: #745a2f; border-bottom: 1px solid #e8ce9e; background: var(--amber-bg); font-size: 14.3px; }
.fallback-banner span { color: #806d4e; }
.explanation { display: grid; grid-template-columns: .9fr 1.4fr; gap: 30px; padding: 24px 34px; border-bottom: 1px solid #bfd9d2; background: #f0faf6; }
.eyebrow { color: var(--teal); font-size: 12.1px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
.explanation h2 { margin: 4px 0; font: 27px/1.2 Georgia, serif; }
.explanation p { margin: 0; color: var(--muted); }
.explanation dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.explanation dl div { padding: 10px 12px; border: 1px solid #cfe2dc; border-radius: 8px; background: white; }
.explanation dt { color: var(--teal); font-size: 12.1px; font-weight: 900; text-transform: uppercase; }
.explanation dd { margin: 2px 0 0; color: var(--muted); font-size: 13.2px; }
.experience-grid { display: grid; max-width: 1480px; grid-template-columns: minmax(620px,1.5fr) minmax(380px,.82fr); gap: 14px; margin: 0 auto; padding: 28px 30px 70px; }
.experience-region { display: grid; align-content: start; gap: 12px; }
.experience-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.experience-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.experience-card h2 { margin: 3px 0 0; font: 22px/1.2 Georgia, serif; }
.experience-card header p { margin: 3px 0 0; color: var(--muted); font-size: 13.2px; }
.component-contract { padding: 4px 8px; color: #587378; background: #eef4f2; border-radius: 999px; font: 12.1px ui-monospace, monospace; }
.candidate-table { overflow: auto; }
.candidate-row { display: grid; width: 100%; grid-template-columns: minmax(170px,1.1fr) minmax(150px,1fr) minmax(150px,1fr) 85px 18px; align-items: center; gap: 9px; min-height: 58px; padding: 9px 17px; color: var(--ink); border: 0; border-bottom: 1px solid #e8efec; background: white; text-align: left; }
button.candidate-row { cursor: pointer; }
button.candidate-row:hover, button.candidate-row.selected { background: #f0f9f5; }
button.candidate-row.selected { box-shadow: inset 3px 0 var(--teal); }
.candidate-row span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 13.2px; }
.candidate-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.3px; }
.candidate-row b { color: var(--teal); font-size: 20px; }
.candidate-head { min-height: 38px; color: #758689; background: #f4f7f5; font-size: 12.1px; font-weight: 900; text-transform: uppercase; }
.candidate-head span { color: inherit; }
.context-card, .specialty-card, .action-card, .disclosure-card { padding: 16px; }
.context-card h3 { margin: 13px 0 0; font: 25px Georgia, serif; }
.context-subtitle { margin: 2px 0 13px; color: var(--muted); }
.context-facts { margin: 0; border: 1px solid var(--line); border-radius: 8px; }
.context-facts div { display: grid; grid-template-columns: 125px 1fr; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.context-facts div:last-child { border-bottom: 0; }
.context-facts dt { color: #77888a; font-size: 12.1px; font-weight: 900; text-transform: uppercase; }
.context-facts dd { margin: 0; color: #4f696e; font-size: 13.2px; }
.evidence-list { display: grid; gap: 7px; margin-top: 12px; }
.evidence-list article { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; }
.evidence-list article.missing { border-color: #e8c98f; background: var(--amber-bg); }
.evidence-list article div { display: flex; min-width: 0; flex-direction: column; }
.evidence-list small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12.1px; }
.requirement { padding: 3px 7px; color: #526b70; background: #eef3f1; border-radius: 999px; font-size: 12.1px; }
.outcome { color: var(--teal); font-size: 12.1px; }
.missing .outcome { color: var(--amber); }
.action-copy { margin: 12px 0 4px; font: 18px/1.4 Georgia, serif; }
.action-reason { margin: 0 0 13px; color: var(--muted); font-size: 13.2px; }
.primary, .secondary { padding: 9px 13px; cursor: pointer; border-radius: 8px; font-weight: 800; }
.primary { color: white; border: 1px solid var(--teal); background: var(--teal); }
.secondary { color: #526b70; border: 1px solid var(--line); background: white; }
.approval-note { margin-left: 9px; color: var(--muted); }
.disclosure-card { border-color: #bcd8d0; background: #f6fbf9; }
.disclosure-card p { margin: 9px 0; color: var(--muted); font-size: 13.2px; }
.scope-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.scope-chips span { padding: 3px 7px; color: var(--teal); background: var(--mint); border-radius: 999px; font-size: 12.1px; font-weight: 800; text-transform: capitalize; }
.disclosure-card > small { color: #78888b; }
.component-state { margin-top: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #f6f8f7; }
.component-state.missing { border-color: #e8c98f; background: var(--amber-bg); }
.component-state p { margin: 2px 0 0; color: var(--muted); font-size: 13.2px; }
dialog { width: min(520px,calc(100vw - 30px)); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 28px 90px rgba(14,43,48,.3); }
dialog::backdrop { background: rgba(10,31,36,.65); backdrop-filter: blur(3px); }
dialog form { padding: 24px; }
.dialog-mark { display: grid; width: 42px; height: 42px; margin-bottom: 12px; place-items: center; color: var(--teal); background: var(--mint); border-radius: 11px; }
dialog h2 { margin: 5px 0 8px; font: 27px Georgia, serif; }
dialog p { color: var(--muted); }
.dialog-evidence { display: flex; flex-direction: column; padding: 11px; border: 1px solid #d6e5e1; border-radius: 8px; background: #f5faf8; }
.dialog-evidence span { margin-top: 2px; color: var(--muted); font-size: 13.2px; }
dialog menu { display: flex; justify-content: flex-end; gap: 8px; margin: 18px 0 0; padding: 0; }
.editor-dialog { width: min(760px,calc(100vw - 30px)); }
.editor-dialog form { display: grid; gap: 16px; }
.editor-heading { display: flex; justify-content: space-between; gap: 20px; }
.editor-heading h2 { margin-bottom: 4px; }
.editor-heading p { max-width: 620px; margin: 0; }
.icon-close { align-self: start; width: 38px; height: 38px; cursor: pointer; color: #526b70; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 24px; line-height: 1; }
.editor-field { display: grid; gap: 5px; color: #4f696e; font-size: 13.2px; font-weight: 800; }
.editor-field textarea, .editor-field select { width: 100%; padding: 10px 11px; color: var(--ink); border: 1px solid #bfd2cd; border-radius: 8px; background: white; font: 14.3px/1.45 inherit; }
.editor-field textarea:focus, .editor-field select:focus { outline: 3px solid rgba(8,121,110,.18); border-color: var(--teal); }
.editor-options { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.editor-boundary { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid #cfe2dc; border-radius: 8px; background: #f4faf7; }
.editor-boundary span { color: var(--muted); font-size: 13.2px; }
.editor-dialog > form > .primary { justify-self: start; }
.editor-status { margin: 0; padding: 10px 12px; color: #745a2f; border: 1px solid #e8ce9e; border-radius: 8px; background: var(--amber-bg); font-size: 13.2px; }
.editor-status.success { color: #286058; border-color: #acd1c7; background: var(--mint); }
.primary:disabled, .secondary:disabled { cursor: wait; opacity: .65; }
.draft-preview { padding: 16px; border: 1px solid #acd1c7; border-radius: 11px; background: #f7fcfa; }
.preview-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.preview-heading h3 { margin: 3px 0 12px; font: 22px/1.2 Georgia, serif; }
.not-live { padding: 4px 8px; color: var(--amber); border: 1px solid #e8c98f; border-radius: 999px; background: var(--amber-bg); font-size: 12.1px; font-weight: 900; }
.change-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.change-grid article { display: flex; flex-direction: column; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.change-grid small { color: var(--muted); text-transform: uppercase; }
.change-grid strong { font-size: 13.2px; }
.draft-preview > p { margin: 12px 0; color: var(--muted); }
.preview-actions { display: flex; justify-content: flex-end; gap: 8px; }
.publication-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid #acd1c7; border-radius: 9px; background: var(--mint); }
.publication-result div { display: flex; flex-direction: column; }
.publication-result span { color: var(--muted); font-size: 13.2px; }
body > footer { position: fixed; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; padding: 9px 30px; color: #7c8c8f; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); font-size: 12.1px; }
@media (max-width: 1050px) {
  .shell-header { grid-template-columns: 1fr auto; }
  .experience-meta { display: none; }
  .experience-grid { grid-template-columns: 1fr; }
  .explanation { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .shell-header { padding-inline: 15px; }
  .brand small { display: none; }
  .experience-grid { padding: 18px 12px 75px; }
  .candidate-row { grid-template-columns: 1fr 1fr 18px; }
  .candidate-row > :nth-child(3), .candidate-row > :nth-child(4) { display: none; }
  .explanation { padding: 20px 16px; }
  .explanation dl { grid-template-columns: 1fr; }
  .editor-options, .change-grid { grid-template-columns: 1fr; }
  .publication-result { align-items: stretch; flex-direction: column; }
  body > footer { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

