    :root {
      color-scheme: light;
      --navy: #17365d;
      --navy-2: #244b78;
      --blue: #d9eaf7;
      --blue-soft: #eef5fb;
      --gold: #f4b183;
      --gold-soft: #fff3e8;
      --tangerine: #e87524;
      --green-rule: #496a55;
      --green-rule-soft: #f5f8f6;
      --red-rule: #845656;
      --red-rule-soft: #faf6f6;
      --ink: #17212b;
      --muted: #5d6b7a;
      --line: #d8e1ea;
      --surface: #ffffff;
      --canvas: #f4f7fa;
      --shadow: 0 10px 30px rgba(23, 54, 93, .10);
    }

    * { box-sizing: border-box; }
    html { height: 100%; }
    body {
      margin: 0;
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 100%;
      background: var(--canvas);
      color: var(--ink);
      font-family: Aptos, "Segoe UI", Arial, sans-serif;
    }
    body > * { flex-shrink: 0; }

    [hidden] { display: none !important; }
    .preview-banner { background: #fff3d8; color: #714711; padding: 5px 30px; font-size: 12px; text-align: center; }
    .reviewer-identity { font-size: 13px; color: #d7e6f4; }
    .primary-button { background: var(--navy) !important; color: white !important; border-color: var(--navy) !important; }
    .feedback-dialog select { display: block; width: 100%; padding: 9px; border: 1px solid #bdcbd8; border-radius: 6px; margin: 7px 0 16px; }
    .action-button:disabled { opacity: .55; cursor: default; }
    .reviewed-wording, .inbox-message p { white-space: pre-wrap; overflow-wrap: anywhere; }
    .inbox-count { border-radius: 14px; background: #e87524; color: white; padding: 1px 7px; margin-left: 4px; }
    .inbox-count:empty { display: none; }
    .inbox-view { padding: 25px 30px; }
    .inbox-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; width: 580px; max-width: 100%; }
    .inbox-tools > label { white-space: nowrap; }
    .inbox-search { flex: 1 1 260px; min-width: 0; }
    .inbox-layout { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: 22px; align-items: start; }
    .inbox-thread { width: 100%; display: block; text-align: left; padding: 17px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); }
    .inbox-thread[aria-current="true"] { border-color: var(--navy); box-shadow: inset 4px 0 var(--navy); background: var(--blue-soft); }
    .inbox-thread strong, .inbox-thread small { display: block; margin: 5px 0; overflow-wrap: anywhere; }
    .inbox-thread small, .inbox-message small { color: var(--muted); font-size: 12px; }
    .badge { display: inline-block; background: var(--blue); padding: 3px 7px; border-radius: 5px; font-size: 12px; margin: 0 5px 6px 0; }
    .needs-response { background: #ffebd4; color: #7c4912; }
    .inbox-detail { padding: 22px; min-width: 0; }
    .inbox-detail h3 { margin-top: 0; }
    .inbox-message { background: var(--blue-soft); border-left: 3px solid #7697b9; border-radius: 4px; padding: 15px; margin: 14px 0; }
    .inbox-message.from_sme { background: #f9f4ed; border-color: var(--gold); }
    .inbox-message small { display: block; margin-top: 3px; }
    .inbox-message p { margin-bottom: 0; }
    .inbox-composer { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 8px; }
    .inbox-composer textarea, .inbox-composer select { width: 100%; border: 1px solid #afbfce; border-radius: 6px; padding: 10px; }
    .inbox-composer textarea { min-height: 110px; resize: vertical; }
    .inbox-composer button { margin-top: 10px; }
    @media (max-width: 760px) { .inbox-layout { display: block; } .inbox-view { padding: 16px; } .inbox-tools { width: 100%; gap: 8px; } .inbox-search { flex-basis: 100%; } .preview-banner { padding-inline: 14px; } }
    button, input, select, textarea { font: inherit; }
    button { cursor: pointer; }

    .topbar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px 20px;
      align-items: center;
      padding: 12px 30px 0;
      color: white;
      background: linear-gradient(120deg, var(--navy), #245484);
      box-shadow: var(--shadow);
    }

    .brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
    .brand-mtx { color: var(--gold); }
    .brand-kicker {
      margin: 0;
      color: #c8dcef;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .13em;
      text-transform: uppercase;
    }

    h1 { margin: 0; font-size: clamp(21px, 2vw, 26px); line-height: 1.15; }

    .top-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
    .field label {
      display: block;
      margin-bottom: 5px;
      color: inherit;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
    }

    select, input[type="search"] {
      width: 100%;
      border: 1px solid #bdcbd8;
      border-radius: 7px;
      background: white;
      color: var(--ink);
      padding: 9px 11px;
      outline: none;
    }

    select:focus, input[type="search"]:focus, button:focus-visible {
      outline: 3px solid rgba(244, 177, 131, .55);
      outline-offset: 1px;
    }

    .version-field { display: flex; align-items: center; gap: 8px; color: white; }
    .version-field label { margin: 0; }
    .version-field select { width: auto; min-height: 34px; padding: 5px 9px; font-size: 14px; }
    .view-tabs { grid-column: 1 / -1; display: flex; gap: 4px; }
    .view-tab { border: 0; border-radius: 7px 7px 0 0; padding: 9px 16px; background: transparent; color: #e5eff8; font-size: 14px; font-weight: 700; }
    .view-tab:hover { background: rgba(255,255,255,.12); }
    .view-tab[aria-selected="true"] { background: var(--canvas); color: var(--navy); }
    .version-summary { width: 100%; max-width: 1440px; margin: 0 auto; padding: 28px 30px 50px; }
    .summary-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
    .summary-heading h2 { margin: 0 0 8px; color: var(--navy); font-size: 30px; }
    .summary-heading p { margin: 0; color: var(--muted); line-height: 1.5; }
    .summary-domain { min-width: 260px; }
    .review-intro { border-left: 4px solid var(--gold); padding: 15px 20px; background: var(--gold-soft); border-radius: 0 8px 8px 0; line-height: 1.6; }
    .review-intro p { margin: 4px 0; }
    .review-section-title { color: var(--navy); font-size: 20px; margin: 26px 0 14px; }
    .proposal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
    .proposal-card { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: white; min-width: 0; }
    .proposal-card h3 { margin: 9px 0 12px; color: var(--navy); font-size: 19px; line-height: 1.35; }
    .proposal-card p, .proposal-card li { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
    .proposal-label { font-size: 12px; font-weight: 700; color: var(--muted); }
    .proposal-card .proposal-alias { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
    .proposal-question { background: var(--blue-soft); border-radius: 7px; padding: 12px; }
    .proposal-question strong { color: var(--navy); font-size: 13px; }
    .proposal-question p { margin: 6px 0 0; }
    .proposal-feedback-button { margin-top: 14px; background: var(--navy) !important; color: white !important; border-color: var(--navy) !important; }
    .proposal-feedback-button:hover { background: var(--navy-2) !important; }
    .review-details { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
    .review-details > summary { cursor: pointer; color: var(--navy); font-weight: 700; font-size: 14px; line-height: 1.5; }
    .version-summary .review-details > summary { list-style: none; padding-left: 18px; position: relative; }
    .version-summary .review-details > summary::-webkit-details-marker { display: none; }
    .version-summary .review-details > summary::before { content: ""; position: absolute; left: 1px; top: .4em; border-left: 8px solid var(--tangerine); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
    .version-summary .review-details[open] > summary::before { transform: rotate(90deg); }
    .review-details .proposal-grid { margin-top: 16px; }
    .review-link { display: block; border: 0; padding: 7px 0; background: transparent; text-align: left; color: var(--navy-2); font-weight: 600; font-size: 13px; text-decoration: underline; line-height: 1.45; }
    .review-link:hover { color: #9b5020; }
    .review-check { border-left: 3px solid var(--blue); padding-left: 12px; margin-top: 17px; }
    .review-check p { margin: 6px 0; }
    .review-check .evidence-note { white-space: pre-wrap; }
    .review-draft { white-space: pre-wrap; color: var(--muted); }
    .review-draft strong { display: block; margin-top: 12px; color: var(--navy); }
    .mock-note { color: var(--muted); font-size: 13px; line-height: 1.5; }

    .summary-strip {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 20px;
      padding: 8px 30px;
      border-bottom: 1px solid var(--line);
      background: var(--surface);
    }

    .metric { display: flex; align-items: baseline; gap: 6px; padding-left: 10px; border-left: 3px solid var(--blue); }
    .metric strong { color: var(--navy); font-size: 16px; }
    .metric span { color: var(--muted); font-size: 12px; font-weight: 700; }
    .evidence-status { color: var(--muted); font-size: 12px; line-height: 1.4; margin: 8px 0 0; }

    .workspace {
      display: grid;
      grid-template-columns: minmax(390px, 42%) minmax(420px, 1fr);
      gap: 16px;
      flex: 1 0 560px;
      min-height: 560px;
      padding: 16px;
    }

    .panel {
      min-width: 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--surface);
      box-shadow: var(--shadow);
    }

    .tree-panel { display: flex; flex-direction: column; }
    .filters { padding: 16px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
    .search-wrap { position: relative; }
    .search-wrap input { padding-left: 37px; }
    .search-mark {
      position: absolute;
      left: 13px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      font-size: 17px;
      pointer-events: none;
    }

    .filter-row {
      display: grid;
      grid-template-columns: 1.25fr .8fr .9fr;
      gap: 9px;
      margin-top: 10px;
    }
    .filters .field label { color: var(--muted); }
    .review-legend { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
    .tree-toolbar {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      padding: 10px 16px;
      border-bottom: 1px solid var(--line);
      background: var(--blue-soft);
    }

    .result-count { color: var(--muted); font-size: 12px; }
    .toolbar-actions { display: flex; gap: 6px; }
    .text-button {
      border: 0;
      border-radius: 5px;
      padding: 5px 8px;
      background: transparent;
      color: var(--navy-2);
      font-size: 12px;
      font-weight: 700;
    }
    .text-button:hover { background: var(--blue); }

    .tree-scroll { flex: 1; overflow: auto; padding: 10px 8px 24px; }
    .tree, .tree ul { margin: 0; padding: 0; list-style: none; }
    .tree ul { margin-left: 18px; border-left: 1px solid #e4eaf0; }
    .tree li { position: relative; }

    .node-line {
      display: grid;
      grid-template-columns: 24px minmax(0, 1fr);
      align-items: start;
      margin: 1px 0;
    }

    .toggle {
      width: 24px;
      height: 31px;
      border: 0;
      background: transparent;
      color: var(--gold);
      font-size: 16px;
      font-weight: 800;
      line-height: 1;
    }
    .toggle:hover { color: #b45f2a; }
    .toggle.empty { cursor: default; color: var(--gold); opacity: 1; }

    .node-button {
      display: grid;
      grid-template-columns: 30px minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      width: 100%;
      min-height: 31px;
      border: 0;
      border-radius: 6px;
      padding: 5px 7px;
      background: transparent;
      color: var(--ink);
      text-align: left;
    }
    .node-button:hover { background: var(--blue-soft); }
    .node-button.selected { background: var(--blue); color: #102f51; }

    .level-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 28px;
      height: 20px;
      border-radius: 10px;
      background: #e8edf2;
      color: #465869;
      font-size: 10px;
      font-weight: 400;
    }
    .node-button.selected .level-badge { background: white; color: var(--navy); }
    .node-name { min-width: 0; font-size: 13px; line-height: 1.25; }
    .node-button.proposed .node-name-text, .review-name { font-style: italic; }
    .child-count {
      margin-left: 4px;
      color: #8a96a1;
      font-size: 12px;
      font-weight: 400;
    }
    .child-count:empty { display: none; }
    .node-button.selected .child-count { color: #65788a; }
    .node-button.level-1 .node-name-text { font-weight: 800; }
    .node-code { color: var(--muted); font-family: Consolas, monospace; font-size: 11px; }

    .empty-state { padding: 30px; color: var(--muted); text-align: center; }

    .detail-panel { overflow: auto; }
    .detail-header {
      position: sticky;
      top: 0;
      z-index: 2;
      padding: 12px 26px 10px;
      border-bottom: 1px solid var(--line);
      background: rgba(255,255,255,.97);
      backdrop-filter: blur(6px);
    }
    .breadcrumb {
      margin: 0 0 6px;
      color: #506176;
      font-size: 12px;
      font-weight: 600;
      line-height: 1.4;
    }
    .breadcrumb-separator { color: var(--gold); font-weight: 500; padding: 0 5px; }
    .detail-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; align-items: center; }
    .detail-name { display: flex; flex: 1 1 260px; align-items: flex-start; gap: 10px; min-width: 0; }
    .detail-title { margin: 0; color: var(--navy); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; overflow-wrap: anywhere; }
    .detail-meta { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 5px; align-items: center; }
    .chip { border-radius: 12px; padding: 4px 9px; background: #e9eef3; color: #425466; font-size: 11px; font-weight: 700; white-space: nowrap; }
    .chip.level { background: var(--gold-soft); color: var(--navy); }
    .level-circle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 13px; font-weight: 800; border: 1px solid var(--gold); }
    .chip.status.proposed { background: var(--gold-soft); color: #8a4c1e; }
    .icon-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      border: 1px solid transparent;
      border-radius: 6px;
      padding: 5px;
      background: transparent;
      color: #526579;
    }
    .icon-button:hover { border-color: #c7d4df; background: var(--blue-soft); color: var(--navy); }
    .icon-button:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 2px; }
    .icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
    .icon-button.copied { color: var(--green-rule); background: var(--green-rule-soft); }

    .detail-body { padding: 14px 26px 40px; }
    .definition {
      margin: 0 0 22px;
      padding: 17px 19px;
      border-left: 4px solid var(--gold);
      border-radius: 0 7px 7px 0;
      background: var(--gold-soft);
      font-size: 16px;
      line-height: 1.55;
    }
    .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
    .detail-card { min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
    .detail-card.inclusion { border-color: rgba(73, 106, 85, .62); background: var(--green-rule-soft); }
    .detail-card.exclusion { border-color: rgba(132, 86, 86, .62); background: var(--red-rule-soft); }
    .detail-card.inclusion h3 { color: var(--green-rule); }
    .detail-card.exclusion h3 { color: var(--red-rule); }
    .detail-card.wide { grid-column: 1 / -1; }
    .detail-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
    .detail-card p { margin: 0; color: #344454; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
    .muted-value { color: #8a96a1 !important; font-style: italic; }
    .example-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
    .example-list li { min-width: 0; border: 1px solid #d7e0e8; border-radius: 6px; padding: 9px 11px; background: white; color: #344454; font-size: 13px; overflow-wrap: anywhere; }
    .example-description { white-space: pre-wrap; }
    .example-meta, .evidence-note { color: var(--muted) !important; font-size: 11px !important; line-height: 1.5; }
    .example-meta { margin-top: 5px !important; }
    .evidence-note { margin-bottom: 10px !important; }
    .example-meta.proposal { color: #8a4c1e !important; font-weight: 700; }
    .abbreviation-list { display: grid; gap: 7px; }
    .abbreviation-entry { border-bottom: 1px solid var(--line); padding-bottom: 7px; }
    .abbreviation-entry:last-child { border-bottom: 0; }
    .abbreviation-entry summary { color: #344454; cursor: pointer; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
    .abbreviation-entry blockquote { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--blue); white-space: pre-wrap; font-size: 12px; overflow-wrap: anywhere; }
    .children-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
    .child-link {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      gap: 10px;
      align-items: center;
      width: 100%;
      border: 1px solid #dce4eb;
      border-radius: 6px;
      padding: 8px 10px;
      background: white;
      color: var(--ink);
      text-align: left;
    }
    .child-link:hover { border-color: #aec5d9; background: var(--blue-soft); }
    .child-link-name { font-size: 13px; font-weight: 700; }
    .child-link-status { color: var(--muted); font-size: 11px; }
    .child-link-code { color: var(--muted); font-family: Consolas, monospace; font-size: 11px; }
    .boundary-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
    .boundary-rule {
      border-left: 4px solid var(--gold);
      border-radius: 0 6px 6px 0;
      padding: 10px 12px;
      background: white;
    }
    .boundary-rule-head { display: flex; flex-wrap: wrap; gap: 7px; align-items: baseline; }
    .boundary-rule-id {
      border-radius: 9px;
      padding: 2px 7px;
      background: var(--gold-soft);
      color: #8a4c1e;
      font-size: 10px;
      font-weight: 800;
    }
    .boundary-rule-name { color: var(--navy); font-size: 13px; font-weight: 800; }
    .boundary-rule-status { color: var(--muted); font-size: 10px; font-weight: 700; }
    .boundary-rule-text { margin-top: 6px !important; }
    .boundary-rule-origin { margin-top: 5px !important; color: var(--muted) !important; font-size: 11px !important; }
    .detail-footer { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; margin-top: 20px; }
    .node-identifiers { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 10px; margin: 0 0 0 auto; }
    .node-identifiers dt { color: var(--muted); font-size: 11px; font-weight: 700; text-align: right; }
    .identifier-value { display: flex; gap: 7px; align-items: center; margin: 0; }
    .identifier-value code { color: #344454; font-family: Consolas, monospace; font-size: 13px; }
    .identifier-value .icon-button { width: 26px; height: 26px; padding: 4px; }

    .footer-note { flex: 1 1 230px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
    .feedback-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); color: var(--ink); }
    .feedback-dialog::backdrop { background: rgba(15, 32, 49, .5); }
    .feedback-dialog h2 { margin: 0; color: var(--navy); }
    .feedback-heading { display: flex; justify-content: space-between; gap: 20px; }
    .feedback-context { padding: 12px; border-radius: 7px; background: var(--blue-soft); font-size: 13px; white-space: pre-wrap; line-height: 1.5; }
    .feedback-dialog fieldset { margin: 18px 0; border: 1px solid var(--line); border-radius: 7px; padding: 14px; }
    .feedback-dialog legend, .feedback-label { font-weight: 700; font-size: 13px; color: var(--navy); }
    .feedback-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; }
    .feedback-choices label { display: flex; align-items: start; gap: 7px; }
    .feedback-choices.proposal-choices { grid-template-columns: 1fr; }
    .proposal-choices label { border: 1px solid var(--line); border-radius: 7px; padding: 11px; cursor: pointer; }
    .proposal-choices label:hover { background: var(--blue-soft); }
    .proposal-choices input { accent-color: var(--navy); margin-top: 3px; }
    .proposal-choice-note { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
    .feedback-dialog textarea, .feedback-dialog input[type="text"], .feedback-dialog input[type="email"] { width: 100%; border: 1px solid #bdcbd8; border-radius: 7px; padding: 10px; margin: 7px 0 16px; }
    .feedback-dialog textarea { min-height: 110px; resize: vertical; }
    .feedback-dialog textarea:focus, .feedback-dialog input:focus { outline: 3px solid var(--blue); }
    .section-select { position: relative; margin: 7px 0 16px; }
    .section-select-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px; border: 1px solid #bdcbd8; border-radius: 7px; background: white; color: var(--ink); text-align: left; }
    .section-select-toggle:disabled { color: var(--muted); cursor: default; }
    .section-select-options { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; max-height: 250px; overflow-y: auto; padding: 8px; border: 1px solid #bdcbd8; border-radius: 7px; background: white; box-shadow: var(--shadow); }
    .section-select-options label { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px; border-radius: 4px; font-size: 13px; cursor: pointer; }
    .section-select-options label:hover, .section-select-options label:focus-within { background: var(--blue-soft); }
    .section-select-options input { margin: 0; accent-color: var(--navy); }
    .feedback-person { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .feedback-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
    .feedback-status:not(:empty) { margin-top: 16px; padding: 12px; border-radius: 7px; background: var(--blue-soft); }
    .feedback-status [role="alert"] { color: #843b35; }
    .feedback-status [data-feedback-state="saved"] { color: #305c3c; }
    .action-button { border: 1px solid var(--line); border-radius: 7px; padding: 10px 18px; background: white; color: var(--navy); font-weight: 700; }
    .action-button:disabled { background: #e9eef3; color: #6b7784; cursor: not-allowed; }

    @media (max-width: 900px) {
      .topbar { grid-template-columns: 1fr; }
      .top-actions { justify-content: space-between; }
      .summary-strip { padding-inline: 16px; }
      .workspace { flex: none; grid-template-columns: 1fr; min-height: 0; }
      .tree-panel { min-height: 520px; }
      .detail-panel { min-height: 500px; }
      .proposal-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 580px) {
      .topbar { padding: 10px 16px 0; }
      .summary-strip { gap: 5px 14px; }
      .filter-row { grid-template-columns: 1fr; }
      .detail-grid { grid-template-columns: 1fr; }
      .example-list { grid-template-columns: 1fr; }
      .detail-card.wide { grid-column: auto; }
      .detail-title-row { display: block; }
      .detail-meta { justify-content: flex-start; margin-top: 6px; }
      .node-code { display: none; }
      .version-summary { padding: 20px 16px; }
      .view-tab { padding: 9px 10px; font-size: 13px; }
      .feedback-person, .feedback-choices { grid-template-columns: 1fr; }
      .section-select-options { grid-template-columns: 1fr; }
    }

    @media print {
      body { display: block; height: auto; }
      .top-actions, .view-tabs, .filters, .tree-toolbar, .tree-panel, .print-node, .copy-node-id, .feedback-node, .feedback-dialog { display: none !important; }
      .topbar { color: black; background: white; box-shadow: none; }
      .brand-kicker { color: #333; }
      .summary-strip { border: 0; }
      .workspace { display: block; height: auto; padding: 0; }
      .panel { border: 0; box-shadow: none; }
      .detail-header { position: static; }
    }
/* Hosted controls reuse the compact header. */
.top-actions .hosted-link { color: white; font-size: .85rem; }
.login-panel { max-width: 640px; margin: 10vh auto; padding: 2rem; }
.login-link { display: inline-block; padding: .75rem 1.25rem; background: #203b60; color: white; border-radius: .5rem; }
.release-notes { white-space: pre-wrap; }
