:root {
  --ink: #1e2933;
  --muted: #68737d;
  --muted-strong: #485159;
  --placeholder: #9ca3a8;
  --paper: #fffefa;
  --paper-soft: #f7f4ed;
  --canvas: #efede6;
  --line: #d7d4cb;
  --line-strong: #c6c2b9;
  --line-workbench: #a9a69e;
  --line-inverse: #46515a;
  --control-border: #b8b7b1;
  --field-border: #c9c6bd;
  --surface-subtle: #f5f2eb;
  --surface-hover: #f3eee5;
  --surface-row-hover: #fbf8f1;
  --surface-selected: #f5eee5;
  --surface-accent: #f7e9df;
  --surface-accent-soft: #f7eee7;
  --surface-inverse-hover: #53606a;
  --inverse-muted: #c3cacf;
  --inverse-control-border: #7b858c;
  --inverse-danger: #ffb4a6;
  --inverse-danger-border: #e6a18e;
  --inverse-danger-surface: #703c36;
  --workbench-canvas: #e7e4dc;
  --preview-canvas: #d8d5ce;
  --workbench-tray: #ebe8e1;
  --workbench-stage: #cbc8c1;
  --workbench-resizer: #b9b6ae;
  --workbench-resizer-grip: #676f75;
  --section-surface: #3d4851;
  --group-surface: #e9e6de;
  --workbench-control-border: #bbb8b0;
  --workbench-control-hover: #d8d3c9;
  --workbench-inverse-muted: #dce1e4;
  --workbench-inverse-action: #eef1f2;
  --workbench-inverse-drag: #b9c0c4;
  --workbench-positive-surface: #eef5f1;
  --workbench-neutral-surface: #e8e5de;
  --workbench-danger: #7a1f2b;
  --workbench-danger-border: #c99ca5;
  --workbench-danger-soft: #f9ecef;
  --workbench-claim: #33582f;
  --workbench-claim-border: #4a7a4f;
  --workbench-claim-surface: #eef4ea;
  --radius-square: 0;
  --radius-workbench-action: 2px;
  --radius-control: 4px;
  --radius-card: 8px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --elevation-flat: none;
  --elevation-resting: 0 8px 24px rgba(23,32,41,.08);
  --elevation-menu: 0 9px 24px rgba(23,32,41,.16);
  --elevation-panel: 0 14px 42px rgba(23,32,41,.24);
  --elevation-dialog: 0 24px 80px rgba(17,24,29,.32);
  --elevation-document: 0 8px 30px rgba(25,31,34,.22);
  --elevation-pane-block-end: 0 8px 28px rgba(24,31,36,.1);
  --elevation-pane-inline-start: -10px 0 30px rgba(23,32,41,.12);
  --elevation-pane-inline-end: 8px 0 28px rgba(24,31,36,.1);
  --focus-halo: rgba(182,75,49,.24);
  --accent: #b64b31;
  --accent-dark: #8f3521;
  --status-positive: #2e7355;
  --status-positive-border: #72a08a;
  --status-positive-soft: #f7fbf8;
  --status-positive-surface: #e9f3ed;
  --status-positive-selected-surface: #e7f1eb;
  --status-progress: #41687a;
  --status-progress-surface: #eaf2f5;
  --status-warning: #715328;
  --status-warning-border: #9a7045;
  --status-warning-surface: #f6f0e3;
  --status-danger: #8f2d26;
  --status-danger-strong: #6f201c;
  --status-danger-border: #d8b7af;
  --status-danger-soft: #fff5f1;
  --status-danger-surface: #f8e9e5;
  --status-danger-disabled-border: #c68f89;
  --status-danger-disabled-surface: #f0dbd8;
  --status-danger-disabled-text: #6c241f;
  --status-neutral: #596168;
  --status-neutral-border: #858b8f;
  --status-neutral-surface: #e4e6e7;
  --green: var(--status-positive);
  --blocked: var(--status-neutral);
  --blocked-light: var(--status-neutral-surface);
  --accent-edge: rgba(182,75,49,.18);
  --accent-outline: rgba(182,75,49,.14);
  --status-positive-pane: rgba(74,150,113,.3);
  --exclusion-overlay: rgba(153,43,34,.88);
  --inverse-control-border-soft: rgba(255,255,255,.24);
  --inverse-control-surface: rgba(255,255,255,.08);
  --sidebar: #172029;
  --sidebar-muted: #9fa8ae;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
a { color: inherit; text-decoration: none; }
.ui-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui-glyph { width: 14px; height: 14px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.icon-button.icon-button { --icon-button-size: 24px; --icon-button-glyph-size: 14px; flex: 0 0 var(--icon-button-size); width: var(--icon-button-size); min-width: var(--icon-button-size); height: var(--icon-button-size); min-height: var(--icon-button-size); display: inline-grid; place-items: center; padding: 0; line-height: 1; }
.icon-button.icon-button > .ui-glyph { width: var(--icon-button-glyph-size); height: var(--icon-button-glyph-size); }
.icon-button.icon-button--compact { --icon-button-size: 24px; --icon-button-glyph-size: 14px; }
.icon-button.icon-button--standard { --icon-button-size: 30px; --icon-button-glyph-size: 15px; }
.icon-button.icon-button--embedded { --icon-button-size: 32px; --icon-button-glyph-size: 17px; }
.icon-button.close-button { --icon-button-size: 30px; --icon-button-glyph-size: 15px; border: 1px solid transparent; border-radius: var(--radius-control); color: var(--muted); background: transparent; }
.icon-button.close-button--compact { --icon-button-size: 24px; --icon-button-glyph-size: 14px; }
.close-button:hover, .close-button:focus-visible, .close-button:active { color: var(--accent-dark); border-color: var(--ink); background: var(--surface-hover); }
.icon-button.close-button--inverse { --focus-color: white; color: white; }
.close-button--inverse:hover, .close-button--inverse:focus-visible, .close-button--inverse:active { color: white; border-color: white; background: var(--surface-inverse-hover); }
.transient-surface { border: 1px solid var(--control-border); background: var(--paper); color: var(--ink); }
.transient-surface--menu { box-shadow: var(--elevation-menu); }
.transient-surface--panel { box-shadow: var(--elevation-panel); }
.transient-surface--dialog { box-shadow: var(--elevation-dialog); }
.transient-surface__header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.transient-surface__header > div { min-width: 0; display: grid; gap: 2px; }
.transient-surface__header span, .transient-surface__eyebrow { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.transient-surface__header strong, .transient-surface__title { margin: 0; font: 500 20px Georgia, serif; }
.transient-surface__header--compact { min-height: 38px; gap: 8px; padding: 6px 10px; }
.transient-surface__header--stacked { display: grid; align-items: start; justify-content: stretch; gap: 5px; }
.transient-surface__header--inverse { color: white; background: var(--ink); border-bottom-color: var(--line-inverse); }
.transient-surface__header--inverse span, .transient-surface__header--inverse .transient-surface__eyebrow { color: var(--inverse-muted); }
.first-run-orientation { position: fixed; z-index: 50; inset: 0; pointer-events: none; }
.first-run-coachmark { position: fixed; z-index: 51; width: min(310px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; border-top: 3px solid var(--accent); border-radius: var(--radius-card); pointer-events: auto; }
.first-run-coachmark[hidden] { display: none; }
.first-run-coachmark [hidden] { display: none; }
.first-run-coachmark > header { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 7px 4px 14px; border-bottom: 1px solid var(--line); }
.first-run-coachmark > header > span { color: var(--accent-dark); font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.first-run-coachmark__body { display: grid; gap: 8px; padding: 16px 18px; }
.first-run-coachmark__body h2 { margin: 0; font: 500 22px/1.15 Georgia, serif; }
.first-run-coachmark__body > p { margin: 0; color: var(--muted-strong); font-size: 11px; line-height: 1.55; }
.first-run-coachmark__body > .first-run-coachmark__status { color: var(--status-danger); font-weight: 650; }
.first-run-coachmark > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface-subtle); }
.first-run-coachmark > footer > div { display: flex; gap: 7px; }
.first-run-orientation-highlight { outline: 3px solid var(--accent) !important; outline-offset: 4px; scroll-margin: 24px; }
.filing-section-row.first-run-orientation-highlight,
.filing-group-row.first-run-orientation-highlight,
.filing-exhibit-row.first-run-orientation-highlight {
  outline: 0 !important;
  box-shadow: inset 0 0 0 3px var(--accent) !important;
}
.purpose-run > .filing-exhibit-row.first-run-orientation-highlight { outline: 0 !important; box-shadow: none; }
.first-run-exhibit-row-highlight { display: none; }
.purpose-run > .filing-exhibit-row.first-run-orientation-highlight > .first-run-exhibit-row-highlight {
  display: block;
  z-index: 8;
  grid-column: 1 / -1;
  grid-row: var(--purpose-run-row);
  align-self: stretch;
  box-shadow: inset 0 0 0 3px var(--accent);
  background: var(--accent-outline);
  pointer-events: none;
}
body.first-run-orientation-exclusive-selection .filing-exhibit-row.selected { outline: 0; }
body.first-run-orientation-exclusive-selection .filing-exhibit-row.selected:not(.confirmed-locked):not(.first-run-orientation-highlight) { box-shadow: none; }
body.first-run-orientation-exclusive-selection .purpose-run.selected-purpose-run::after { border-color: transparent; }
button, input, select, textarea, option { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
:where(a, button, summary, [role="button"]):focus-visible { outline: 2px solid var(--focus-color, var(--accent)); outline-offset: 2px; }

.app-main { min-height: 100vh; padding: 48px clamp(28px, 5vw, 76px) 72px; }
.page-header { max-width: 1280px; margin: 0 auto 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; animation: rise .35s ease both; }
.page-header h1 { margin: 5px 0 10px; font: 500 clamp(34px, 4vw, 54px)/1.04 Georgia, serif; letter-spacing: -.035em; }
.eyebrow { margin: 0; color: var(--accent); text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.lede { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.55; }
.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.quiet-stat { color: var(--muted); font-size: 12px; }
.quiet-stat strong { color: var(--ink); font-size: 22px; margin-right: 5px; }

.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid var(--control-border); background: transparent; color: var(--ink); border-radius: var(--radius-control); font-weight: 650; font-size: 12px; cursor: pointer; }
.button:hover { border-color: var(--ink); }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-dark); }
.button.danger { gap: 7px; border-color: var(--status-danger); background: var(--status-danger); color: white; }
.button.danger:hover { border-color: var(--status-danger-strong); background: var(--status-danger-strong); }
.button.danger:disabled { opacity: 1; border-color: var(--status-danger-disabled-border); background: var(--status-danger-disabled-surface); color: var(--status-danger-disabled-text); }
.button.small { min-height: 31px; padding: 5px 10px; }
.button:disabled, button:disabled, .disabled .button, a[aria-disabled="true"] { opacity: .38; pointer-events: auto; cursor: not-allowed; }
.text-button { padding: 0; border: 0; background: none; color: var(--accent-dark); font-weight: 650; font-size: 11px; }
.danger-text { color: var(--status-danger); }

.flash { position: fixed; top: 18px; right: 22px; z-index: 20; display: flex; max-width: min(460px, calc(100vw - 44px)); align-items: center; flex-wrap: wrap; gap: 4px; padding: 12px 16px; color: white; background: var(--ink); border-left: 4px solid var(--green); box-shadow: var(--elevation-menu); font-size: 13px; line-height: 1.35; animation: flash-in .28s ease both; transition: opacity .3s ease, transform .3s ease; }
.flash.alert { border-left-color: var(--accent); }
.flash__message { min-width: 0; }
.flash__action { display: inline-flex; align-items: center; gap: 2px; color: white; font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.flash__action:hover { text-decoration-thickness: 2px; }
.flash__action:focus-visible { border-radius: var(--radius-control); outline: 2px solid white; outline-offset: 3px; }
.flash__action .ui-glyph { width: 14px; height: 14px; transition: transform .18s ease; }
.flash__action:hover .ui-glyph, .flash__action:focus-visible .ui-glyph { transform: translateX(2px); }
.flash--dismissed { opacity: 0; transform: translateX(12px); }
.dashboard-main > .flash { top: 88px; }
.feedback { min-width: 0; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; padding: 13px 14px; border: 1px solid var(--status-danger-border); border-left: 4px solid var(--accent); border-radius: var(--radius-control); color: var(--status-danger-strong); background: var(--status-danger-soft); box-shadow: var(--elevation-flat); font-size: 11px; line-height: 1.45; }
.feedback[hidden] { display: none; }
.feedback > .ui-glyph { width: 18px; height: 18px; margin-top: 1px; stroke-width: 2; }
.feedback__body { min-width: 0; }
.feedback__title { display: block; color: var(--status-danger-strong); font-size: 11px; font-weight: 750; }
.feedback p, .feedback ul { margin: 4px 0 0; }
.feedback ul { padding-left: 17px; }
.feedback li + li { margin-top: 2px; }
.feedback--compact { padding: 9px 10px; gap: 8px; font-size: 10px; }
.feedback--compact > .ui-glyph { width: 15px; height: 15px; }
.feedback--compact .feedback__title { font-size: 10px; }
.feedback--dismissible { grid-template-columns: 20px minmax(0, 1fr) 24px; cursor: pointer; }
.feedback--dismissible > .close-button { align-self: center; }
.field-error { margin: -2px 0 0; color: var(--status-danger); font-size: 10px; font-weight: 650; line-height: 1.35; text-transform: none; letter-spacing: 0; }
.field-hint { margin: -2px 0 0; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.4; text-transform: none; letter-spacing: 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--accent) !important; box-shadow: inset 3px 0 0 rgba(182,75,49,.22); }

.drag-handle { border: 0; background: transparent; color: var(--muted); font-size: 17px; cursor: grab; }
.exhibit-number { font-weight: 750; }
.row-meta { display: block; color: var(--muted); margin-top: 4px; font-size: 10px; }
.start-page { text-align: right; font-variant-numeric: tabular-nums; }
.row-actions { display: grid; align-content: center; gap: 5px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
input[type="text"], input[type="password"], input[type="number"], input[type="email"], input[type="tel"], textarea, input[type="file"], select { width: 100%; border: 1px solid var(--field-border); background: white; color: var(--ink); padding: 10px 11px; border-radius: var(--radius-control); text-transform: none; letter-spacing: 0; font-weight: 400; }
select {
  min-height: 38px;
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e2933' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}
option { font-weight: 400; letter-spacing: 0; text-transform: none; }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--focus-halo); border-color: var(--accent); }
.password-field { min-width: 0; display: grid; gap: 7px; }
.password-input { position: relative; }
.password-input input { padding-right: 42px; }
.password-reveal-button { position: absolute; top: 50%; right: 5px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--muted); transform: translateY(-50%); }
.password-reveal-button:hover, .password-reveal-button:focus-visible { color: var(--ink); background: rgba(30,41,51,.07); }
.form-actions { display: flex; align-items: center; gap: 9px; }
.content-state { --content-state-padding: 20px 16px; min-width: 0; display: grid; place-items: center; align-content: center; gap: 6px; margin: 0; padding: var(--content-state-padding); color: var(--muted); font-size: 10px; line-height: 1.4; text-align: center; }
.content-state strong { color: var(--ink); }
.content-state--empty { color: var(--muted); }
.content-state--compact { --content-state-padding: 12px 8px; font-size: 8px; }
.content-state--error { grid-template-columns: 16px minmax(0, 1fr); place-items: start; align-content: center; color: var(--status-danger); background: var(--status-danger-soft); text-align: left; }
.content-state--error > .ui-glyph { width: 14px; height: 14px; margin-top: 1px; }
.content-state--loading::before, .export-link.is-generating::after, .section-export-button.is-generating::after, .film-page.loading::before { content: ""; width: var(--activity-indicator-size, 14px); height: var(--activity-indicator-size, 14px); border: 2px solid var(--activity-indicator-track, var(--line-strong)); border-top-color: var(--activity-indicator-color, var(--accent)); border-radius: var(--radius-circle); animation: activity-spin .7s linear infinite; }
.empty-state { --content-state-padding: 44px 24px; border-top: 1px solid var(--line); }
.missing-preview { display: grid; place-items: center; aspect-ratio: 8.5/11; color: var(--muted); font-size: 10px; }

/* Casework landing page */
.dashboard-main { padding-top: 18px; }
.dashboard-topbar, .dashboard-intro, .dashboard-filters, .dashboard-cases { max-width: 1280px; margin-left: auto; margin-right: auto; }
.dashboard-topbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dashboard-brand { min-width: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 500 20px Georgia, serif; }
.dashboard-brand > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-logo { width: 38px; height: 38px; object-fit: contain; }
.dashboard-topbar-actions { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.tutorial-form { margin: 0; }
.tutorial-button { border: 0; background: transparent; color: var(--muted); }
.tutorial-button:hover, .tutorial-button:focus-visible { color: var(--ink); }
.dashboard-account-menu { position: relative; z-index: 20; }
.dashboard-account-menu > summary { list-style: none; }
.dashboard-account-menu > summary::-webkit-details-marker { display: none; }
.dashboard-account-trigger { min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 7px 6px 7px 9px; color: var(--muted); cursor: pointer; font-size: 10px; }
.dashboard-account-trigger::after { width: 5px; height: 5px; margin: -3px 2px 0 1px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ""; transform: rotate(45deg); transition: transform .14s ease, margin .14s ease; }
.dashboard-account-trigger:hover, .dashboard-account-menu[open] .dashboard-account-trigger { color: var(--ink); background: var(--surface-hover); }
.dashboard-account-trigger:focus-visible { color: var(--ink); background: var(--surface-hover); }
.dashboard-account-menu[open] .dashboard-account-trigger::after { margin-top: 3px; transform: rotate(225deg); }
.dashboard-account-menu-panel { position: absolute; top: calc(100% + 4px); right: 0; width: 172px; padding: 4px; }
.dashboard-account-menu-panel a, .dashboard-account-menu-action { width: 100%; min-height: 35px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 0; background: transparent; color: var(--ink); text-align: left; font: inherit; font-size: 10px; white-space: nowrap; }
.dashboard-account-menu-panel a:hover, .dashboard-account-menu-panel a:focus-visible, .dashboard-account-menu-action:hover, .dashboard-account-menu-action:focus-visible { background: var(--surface-hover); }
.dashboard-account-menu-panel .ui-glyph { width: 14px; height: 14px; color: var(--muted); }
.dashboard-account-menu-panel form { margin: 3px 0 0; padding-top: 3px; border-top: 1px solid var(--line); }
.dashboard-topbar + .page-header { padding-top: 34px; }
.dashboard-intro { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 38px 0 24px; }
.dashboard-intro h1 { margin: 5px 0 0; font: 500 clamp(34px, 4vw, 50px)/1.04 Georgia, serif; letter-spacing: -.035em; }
.dashboard-intro > div > p:last-child { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.dashboard-new-case { position: relative; flex: 0 0 auto; }
.dashboard-new-case > summary { list-style: none; }
.dashboard-new-case > summary::-webkit-details-marker { display: none; }
.dashboard-new-case-form { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: min(520px, calc(100vw - 36px)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; padding: 18px; }
.dashboard-new-case-form > .feedback { grid-column: 1 / -1; }
.dashboard-new-case-form--guided { width: min(760px, calc(100vw - 36px)); grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(200px, .8fr); }
.dashboard-new-case-form--guided > .feedback, .dashboard-new-case-form--guided > .dashboard-case-number, .dashboard-new-case-form--guided > .dashboard-form-type, .dashboard-new-case-form--guided > .button { grid-column: 1 / 3; }
.dashboard-new-case-guidance { grid-column: 3; grid-row: 1 / span 5; align-self: start; display: grid; gap: 9px; padding: 14px; border-left: 3px solid var(--accent); background: var(--surface-accent); }
.dashboard-new-case-guidance > span { color: var(--accent-dark); font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-new-case-guidance h2 { margin: 0 0 2px; font: 500 19px/1.15 Georgia, serif; }
.dashboard-new-case-guidance p { margin: 0; color: var(--ink); font-size: 11px; line-height: 1.55; }
.dashboard-new-case-guidance strong { color: var(--ink); }
.dashboard-new-case-form select { min-width: 0; }
.dashboard-case-number, .dashboard-form-type { grid-column: 1 / -1; }
.dashboard-form-type { position: relative; display: grid; gap: 7px; font-size: 10px; }
.dashboard-form-type-combobox { position: relative; }
.dashboard-form-type-combobox > input { min-height: 34px; padding: 10px 38px 10px 11px; border: 1px solid var(--field-border); border-radius: var(--radius-control); color: var(--ink); background: white; font-family: inherit; font-size: 10px; font-weight: 400; line-height: normal; letter-spacing: 0; }
.dashboard-combobox-toggle { position: absolute; top: 1px; right: 1px; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--ink); }
.dashboard-combobox-toggle span { display: block; width: 9px; height: 9px; margin: -4px auto 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.dashboard-combobox-options { position: absolute; z-index: 12; top: calc(100% + 3px); right: 0; left: 0; max-height: 230px; overflow-y: auto; }
.dashboard-combobox-options button { display: block; width: 100%; padding: 9px 11px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; font-size: 11px; line-height: 1.35; }
.dashboard-combobox-options button[hidden], .dashboard-combobox-empty[hidden] { display: none; }
.dashboard-combobox-options button:hover, .dashboard-combobox-options button.active, .dashboard-combobox-options button[aria-selected="true"] { background: var(--surface-hover); }
.dashboard-combobox-empty { display: block; padding: 10px 11px; color: var(--muted); font-size: 10px; }
.dashboard-template-choice { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 10px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.dashboard-template-choice input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.dashboard-template-choice input:disabled + span { color: var(--muted); }
.dashboard-case-template { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.dashboard-case-template select { min-height: 34px; background-color: white; color: var(--ink); font-size: 10px; }
.dashboard-case-template[hidden] { display: none; }
.dashboard-form-hint { color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.35; text-transform: none; letter-spacing: 0; }
.dashboard-new-case-form .button { grid-column: 1 / -1; justify-self: end; }
.dashboard-new-case-form--guided > .button { grid-column: 1 / 3; }
@media (max-width: 760px) {
  .dashboard-new-case-form { grid-template-columns: 1fr; }
  .dashboard-form-type, .dashboard-new-case-form > .feedback, .dashboard-new-case-form--guided > .dashboard-case-number, .dashboard-new-case-form--guided > .dashboard-form-type, .dashboard-new-case-form--guided > .feedback, .dashboard-new-case-form--guided > .button { grid-column: auto; }
  .dashboard-new-case-guidance { grid-column: auto; grid-row: auto; }
  .dashboard-new-case-form .button { justify-self: stretch; }
}
.dashboard-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.dashboard-cases { overflow-x: auto; }
.dashboard-table-head, .dashboard-case-row { display: grid; grid-template-columns: minmax(150px, .95fr) minmax(150px, .95fr) minmax(150px, .85fr) minmax(120px, .7fr) 116px 88px 112px; gap: 14px; align-items: center; min-width: 970px; }
.dashboard-table-head { padding: 9px 14px; color: white; background: var(--ink); text-transform: uppercase; font-size: 8px; font-weight: 750; letter-spacing: .07em; }
.dashboard-case-row { position: relative; padding: 15px 14px; color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--line); font-size: 12px; transition: background .14s ease, color .14s ease; }
.dashboard-case-row.has-unread { box-shadow: inset 3px 0 var(--accent); }
.dashboard-case-row:hover { color: var(--ink); background: var(--surface-hover); }
.dashboard-case-row:has(.dashboard-row-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--surface-hover); }
.dashboard-row-link { position: absolute; z-index: 1; inset: 0; }
.dashboard-case-row strong, .dashboard-case-row small { display: block; }
.dashboard-case-row small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.dashboard-petitioner { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dashboard-petitioner strong { overflow: hidden; text-overflow: ellipsis; }
.dashboard-case-unread { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; min-width: 25px; height: 22px; padding: 0 6px; border: 1px solid var(--accent); border-radius: var(--radius-pill); color: white; background: var(--accent); font-size: 9px; font-weight: 750; font-variant-numeric: tabular-nums; }
.dashboard-case-unread .ui-glyph { width: 12px; height: 12px; }
.dashboard-petitioner strong, .dashboard-beneficiary strong, .dashboard-case-reference strong { font-weight: 750; }
.dashboard-opened { color: var(--muted); font-variant-numeric: tabular-nums; }
.dashboard-case-actions { position: relative; z-index: 2; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.dashboard-case-actions form { margin: 0; }
@media (max-width: 1050px) {
  .dashboard-cases { overflow-x: visible; }
  .dashboard-table-head, .dashboard-case-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(90px, .8fr) 78px 100px; gap: 9px; min-width: 0; }
  .dashboard-table-head > :nth-child(4), .dashboard-table-head > :nth-child(5), .dashboard-section-count, .dashboard-opened { display: none; }
  .dashboard-case-row strong, .dashboard-case-row small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 600px) {
  .dashboard-cases { border-top: 1px solid var(--ink); }
  .dashboard-table-head { display: none; }
  .dashboard-case-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "petitioner status"
      "beneficiary beneficiary"
      "reference actions";
    gap: 11px 12px;
    padding: 14px 12px;
  }
  .dashboard-petitioner { grid-area: petitioner; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 7px; }
  .dashboard-beneficiary { grid-area: beneficiary; }
  .dashboard-case-reference { grid-area: reference; }
  .dashboard-case-row > .section-workflow-status { grid-area: status; align-self: start; }
  .dashboard-case-actions { grid-area: actions; align-self: end; }
  .dashboard-beneficiary, .dashboard-case-reference { min-width: 0; display: grid; gap: 4px; }
  .dashboard-petitioner::before, .dashboard-beneficiary::before, .dashboard-case-reference::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 7px;
    font-weight: 750;
    letter-spacing: .07em;
    line-height: 1;
    text-transform: uppercase;
  }
  .dashboard-petitioner::before { grid-column: 1 / -1; }
  .dashboard-case-row small { margin-top: 0; }
}
.audit-main { max-width: 1180px; margin: 0 auto; padding-bottom: 64px; }
.confirmation-dialog { width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; color: var(--ink); background: var(--paper); box-shadow: var(--elevation-dialog); }
.confirmation-dialog::backdrop { background: rgba(21,27,32,.45); }
.confirmation-dialog__content { display: grid; gap: 18px; }
.confirmation-dialog__content .transient-surface__header { border-bottom: 1px solid var(--line); }
.confirmation-dialog__content h2 { margin: 2px 0 0; font: 500 20px Georgia, serif; }
.confirmation-dialog__message { margin: 0; padding: 0 20px; color: var(--muted); line-height: 1.55; white-space: pre-line; }
.confirmation-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 20px; }
.audit-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 34px 0 24px; }
.audit-header h1 { margin: 4px 0 8px; font: 400 32px Georgia, serif; }
.audit-header p:last-child { max-width: 660px; margin: 0; color: var(--muted); line-height: 1.5; }
.audit-controls { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 7px 9px; border: 1px solid var(--line); background: var(--paper-soft); }
.audit-category-filters { display: flex; flex-wrap: wrap; gap: 2px; }
.audit-filter { min-height: 34px; display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid transparent; color: var(--muted); font-size: 11px; font-weight: 650; }
.audit-filter:hover, .audit-filter:focus-visible { border-color: var(--control-border); color: var(--ink); background: var(--paper); }
.audit-filter.active { border-color: var(--ink); color: white; background: var(--ink); }
.audit-secondary-filters { display: flex; align-items: center; gap: 12px; }
.audit-inline-filter { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
.audit-inline-filter select, .audit-inline-filter input { width: auto; min-height: 34px; padding-top: 5px; padding-bottom: 5px; font-size: 11px; }
.audit-inline-filter select { min-width: 170px; }
.audit-date-filter input { min-width: 136px; }
.audit-results-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; color: var(--muted); font-size: 11px; }
.audit-results-summary a { color: var(--accent-dark); font-weight: 650; }
.audit-events { border-top: 1px solid var(--line); }
.audit-day { padding: 22px 0 0; }
.audit-day-summary { display: grid; grid-template-columns: minmax(0, 1fr) 12px; gap: 12px; align-items: center; margin-bottom: 4px; color: var(--muted); cursor: pointer; list-style: none; }
.audit-day-summary::-webkit-details-marker { display: none; }
.audit-day-summary::after { width: 7px; height: 7px; margin-right: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; transform: rotate(45deg); transition: transform .14s ease; }
.audit-day:not([open]) .audit-day-summary::after { transform: rotate(-45deg); }
.audit-day-summary-content { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 28px; align-items: center; margin-left: 6px; }
.audit-day-summary h2 { margin: 0; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.audit-day-summary-content > span { font-size: 10px; }
.audit-day-summary:hover h2, .audit-day-summary:focus-visible h2 { color: var(--ink); }
.audit-day:not([open]) .audit-day-summary { margin-bottom: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.audit-day-events { min-width: 0; margin-left: 188px; }
.audit-event { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 14px; padding: 0 0 28px; }
.audit-event::before { content: ""; position: absolute; top: 13px; bottom: -1px; left: 5px; width: 1px; background: var(--line); }
.audit-event:last-child::before { display: none; }
.audit-event-marker { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 6px; padding: 0; border: 2px solid var(--muted); border-radius: var(--radius-circle); background: var(--canvas); }
.audit-event-marker:hover, .audit-event-marker:focus-visible { outline: 2px solid var(--focus-halo); outline-offset: 3px; }
.audit-event[data-status="successful"] .audit-event-marker { border-color: var(--status-positive); background: var(--status-positive-surface); }
.audit-event[data-status="failed"] .audit-event-marker { border-color: var(--status-danger); background: var(--status-danger-soft); }
.audit-event[data-status="attention"] .audit-event-marker { border-color: var(--status-warning-border); background: var(--status-warning-surface); }
.audit-event-content { min-width: 0; padding: 0 0 3px; }
.audit-event-heading { display: grid; gap: 5px; }
.audit-event-category { justify-self: start; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.audit-event-heading h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; }
.audit-event-attribution { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.audit-event-attribution .audit-actor { color: var(--ink); font-weight: 650; }
.audit-changes { display: grid; gap: 0; margin: 14px 0 0; border: 1px solid var(--line); background: var(--paper); }
.audit-change { display: grid; grid-template-columns: minmax(125px, .36fr) minmax(0, 1fr); min-height: 38px; }
.audit-change + .audit-change { border-top: 1px solid var(--line); }
.audit-change dt, .audit-change dd { margin: 0; padding: 9px 11px; font-size: 11px; line-height: 1.45; }
.audit-change dt { color: var(--muted); background: var(--paper-soft); font-weight: 650; }
.audit-change dd { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 7px; align-items: start; overflow-wrap: anywhere; }
.audit-change[data-change-kind="added"] dd, .audit-change[data-change-kind="removed"] dd, .audit-change[data-change-kind="note"] dd { grid-template-columns: 1fr; }
.audit-change-before { color: var(--muted); }
.audit-change-after { color: var(--ink); font-weight: 650; }
.audit-change-arrow { color: var(--accent); text-align: center; }
.audit-no-visible-change { margin: 12px 0 0; color: var(--muted); font-size: 11px; font-style: italic; }
.audit-related-changes { margin-top: 11px; }
.audit-related-changes > summary { display: inline-flex; min-height: 28px; align-items: center; color: var(--accent-dark); cursor: pointer; font-size: 11px; font-weight: 650; }
.audit-related-change-list { margin-top: 9px; padding: 14px 14px 0; border: 1px solid var(--line); background: var(--paper-soft); }
.audit-event--nested { padding-bottom: 18px; }
.audit-event--nested::before { background: var(--line-strong); }
.audit-event--nested:last-child { padding-bottom: 4px; }
.audit-event--nested .audit-event-heading h3 { font-size: 13px; }
.audit-empty { display: grid; justify-items: start; gap: 7px; padding: 44px 18px; color: var(--muted); border-bottom: 1px solid var(--line); }
.audit-empty strong { color: var(--ink); }
.audit-empty p { margin: 0 0 8px; font-size: 12px; }
.audit-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 28px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .audit-header { align-items: start; }
  .audit-controls { align-items: start; flex-direction: column; gap: 8px; }
  .audit-secondary-filters { width: 100%; }
  .audit-day-summary { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .audit-day-summary-content { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .audit-day-events { margin: 15px 0 0; }
}
@media (max-width: 560px) {
  .audit-header { align-items: stretch; flex-direction: column; }
  .audit-header .button { align-self: start; }
  .audit-category-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-filter:first-child { grid-column: 1 / -1; }
  .audit-secondary-filters { align-items: stretch; flex-direction: column; gap: 7px; }
  .audit-inline-filter { align-items: stretch; flex-direction: column; gap: 5px; }
  .audit-inline-filter select, .audit-inline-filter input { width: 100%; }
  .audit-results-summary { align-items: start; flex-direction: column; gap: 5px; padding: 10px 0; }
  .audit-change { grid-template-columns: 1fr; }
  .audit-change dt { border-bottom: 1px solid var(--line); }
  .audit-change dd { grid-template-columns: 1fr; gap: 4px; }
  .audit-change-arrow { text-align: left; transform: rotate(90deg); transform-origin: center; justify-self: start; }
}
.dashboard-lifecycle-button { border: 1px solid var(--control-border); background: var(--paper); color: var(--muted); }
.dashboard-lifecycle-button:hover, .dashboard-lifecycle-button:focus-visible { color: var(--accent-dark); border-color: var(--ink); background: var(--surface-hover); }
.section-workflow-status { justify-self: start; padding: 4px 7px; border: 1px solid var(--line-strong); color: var(--muted); text-transform: uppercase; font-size: 8px; font-weight: 750; letter-spacing: .07em; }
.section-workflow-status.active { color: var(--status-positive); border-color: var(--status-positive-border); background: var(--status-positive-surface); }
.section-workflow-status.archived { color: var(--status-neutral); background: var(--status-neutral-surface); }
.dashboard-empty { --content-state-padding: 44px 18px; place-items: start; border-bottom: 1px solid var(--line); text-align: left; }

/* Account settings */
.account-settings-main { padding-bottom: 72px; }
.settings-page-header, .settings-page-layout { max-width: 1120px; margin-left: auto; margin-right: auto; }
.settings-page-header { padding: 42px 0 30px; border-bottom: 1px solid var(--line-strong); }
.settings-page-header h1 { margin: 5px 0 8px; font: 500 clamp(32px, 4vw, 46px)/1.04 Georgia, serif; letter-spacing: -.035em; }
.settings-page-header p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }
.settings-page-layout { display: grid; grid-template-columns: 170px minmax(0, 760px); gap: clamp(42px, 7vw, 86px); padding-top: 34px; }
.settings-section-nav { align-self: start; position: sticky; top: 24px; display: grid; gap: 2px; }
.settings-section-nav a { padding: 10px 12px; border-left: 2px solid transparent; color: var(--muted); font-size: 11px; font-weight: 650; }
.settings-section-nav a:hover, .settings-section-nav a:focus-visible { color: var(--ink); background: rgba(247,244,237,.68); }
.settings-section-nav a[aria-current="page"] { border-left-color: var(--accent); color: var(--ink); background: var(--paper-soft); }
.settings-page-content { min-width: 0; }
.settings-section { scroll-margin-top: 24px; padding-bottom: 48px; }
.settings-section + .settings-section { padding-top: 34px; border-top: 1px solid var(--line-strong); }
.settings-section > header { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.settings-section h2 { margin: 4px 0 7px; font: 500 28px Georgia, serif; }
.settings-section > header > p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-password-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.credential-settings-list { max-width: 640px; }
.credential-setting { border-bottom: 1px solid var(--line); }
.credential-setting-summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 11px 0; }
.credential-setting-summary > div { min-width: 0; display: grid; gap: 5px; }
.credential-setting-summary span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.credential-setting-summary strong { overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-size: 13px; white-space: nowrap; }
.credential-change-form { display: grid; gap: 15px; padding: 2px 0 22px; }
.credential-change-form[hidden], .password-verification-step[hidden], .new-password-step[hidden] { display: none; }
.credential-change-form > .feedback { margin-bottom: 2px; }
.credential-change-form .form-actions, .password-verification-step .form-actions, .new-password-step .form-actions { justify-content: flex-end; }
.password-verification-step, .new-password-step { display: grid; gap: 15px; }
.template-editor { max-width: 720px; padding-top: 24px; }
.template-picker { max-width: 360px; }
.template-picker select { background-color: var(--paper-soft); }
.template-picker option, .template-identity-fields option { background: var(--paper-soft); }
.template-tree-panel { padding-top: 20px; }
.template-tree-panel[hidden] { display: none; }
.template-tree-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.template-tree-meta > div { min-width: 0; display: grid; gap: 3px; }
.template-tree-meta strong { font-size: 12px; font-weight: 650; }
.template-tree-meta span { color: var(--muted); font-size: 9px; }
.template-tree-meta form { margin: 0; }
.template-tree-form { padding-top: 10px; }
.template-identity-fields { max-width: 360px; display: grid; gap: 8px; padding: 4px 0 14px; }
.template-identity-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.template-identity-fields select { min-height: 36px; }
.template-editor-toolbar { position: sticky; z-index: 9; top: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; margin: -8px -8px 0; padding: 8px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.template-editor-save { min-height: 36px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.template-unsaved-warning { color: var(--accent-dark); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.template-unsaved-warning::before { content: ""; width: 7px; height: 7px; display: inline-block; margin-right: 6px; border-radius: var(--radius-circle); background: var(--accent); }
.template-unsaved-warning[hidden] { display: none; }
.template-tree-list { margin: 0; padding: 0; list-style: none; }
.template-sections { counter-reset: template-section; }
.template-groups, .template-exhibits { margin-left: 29px; padding-left: 17px; border-left: 1px solid var(--control-border); }
.template-groups { counter-reset: template-group; }
.template-exhibits { counter-reset: template-exhibit; border-left-color: var(--line-strong); }
.template-tree-node { position: relative; }
.template-section-node { counter-increment: template-section; }
.template-group-node { counter-increment: template-group; }
.template-exhibit-node { counter-increment: template-exhibit; }
.template-groups > .template-tree-node::before, .template-exhibits > .template-tree-node::before { content: ""; position: absolute; top: 18px; left: -17px; width: 14px; border-top: 1px solid var(--control-border); }
.template-exhibits > .template-tree-node::before { border-top-color: var(--line-strong); }
.template-groups > .template-tree-node:last-child::after, .template-exhibits > .template-tree-node:last-child::after { content: ""; position: absolute; z-index: 0; top: 19px; bottom: 0; left: -18px; width: 2px; background: var(--canvas); }
.template-tree-row { min-height: 36px; display: grid; grid-template-columns: 26px 36px minmax(0, 1fr) 82px; align-items: center; gap: 2px; padding: 3px 2px; border-bottom: 1px solid rgba(215,212,203,.62); }
.template-node-index, .template-node-label, .template-node-input { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.template-node-index { color: var(--muted); font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; }
.template-section-node > .template-tree-row > .template-node-index::before { content: counter(template-section, upper-roman) "."; }
.template-group-node > .template-tree-row > .template-node-index::before { content: counter(template-group, upper-alpha) "."; }
.template-exhibit-node > .template-tree-row > .template-node-index::before { content: counter(template-exhibit) "."; }
.template-node-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); cursor: text; font-size: 11px; line-height: 1.35; white-space: nowrap; }
.template-node-label:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.template-section-node > .template-tree-row .template-node-label { font-weight: 700; }
.template-group-node > .template-tree-row .template-node-label { font-weight: 650; }
.template-node-input { min-height: 27px !important; padding: 5px 7px !important; font-size: 11px; }
.template-node-input[hidden] { display: none; }
.template-node-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.template-node-edit-cancel[hidden] { display: none; }
.template-tree-row.is-editing .template-node-actions > :not(.template-node-edit, .template-node-edit-cancel) { display: none; }
.template-tree-row.is-editing .template-node-edit { color: var(--status-positive); }
.template-drag-handle, .template-node-action { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--muted); }
.template-node-action.template-node-delete { color: var(--status-danger); }
.template-node-action.template-node-delete:hover, .template-node-action.template-node-delete:focus-visible { color: var(--status-danger-strong); background: var(--status-danger-soft); }
.template-drag-handle { cursor: grab; }
.template-drag-handle:active { cursor: grabbing; }
.template-drag-handle:hover, .template-node-action:hover, .template-drag-handle:focus-visible, .template-node-action:focus-visible { color: var(--ink); background: rgba(30,41,51,.07); }
.template-node-action:disabled { opacity: .28; background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .template-node-reveal-action { opacity: 0; pointer-events: none; transition: opacity .12s ease; }
  .template-tree-row:hover .template-node-reveal-action,
  .template-tree-row:focus-within .template-node-reveal-action { opacity: 1; pointer-events: auto; }
}
.template-tree-node.dragging { opacity: .35; }
.template-tree-node.template-drop-target > .template-tree-row { box-shadow: inset 0 2px var(--accent); }
.template-tree-footer { display: flex; align-items: center; justify-content: flex-start; gap: 14px; padding-top: 16px; }
.template-tree-footer .button { gap: 6px; }
.template-save-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.template-save-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; }
.template-save-dialog::backdrop { background: rgba(30,41,51,.38); }
.template-save-dialog-content { display: grid; gap: 18px; padding: 24px; }
.template-save-dialog header { display: grid; gap: 5px; }
.template-save-dialog .transient-surface__header { min-height: 0; padding: 0 0 14px; }
.template-save-dialog h3 { margin: 0; font: 500 24px Georgia, serif; }
.template-save-dialog header p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.template-save-dialog-actions, .template-save-name { display: grid; gap: 9px; }
.template-save-name[hidden] { display: none; }
.template-save-name label { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.template-save-name input { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 10px; font-weight: 400; line-height: normal; letter-spacing: 0; text-transform: none; }
.template-save-dialog-content > .text-button { justify-self: end; }
.security-settings-content { max-width: 640px; display: grid; gap: 18px; }
.security-settings-content .mfa-factor-row { min-height: 68px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mfa-factor-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.mfa-factor-identity > div { min-width: 0; display: grid; gap: 3px; }
.mfa-factor-identity strong { overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.mfa-factor-identity small { color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.mfa-factor-identity small.verified { color: var(--green); }
.mfa-factor-icon { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); background: var(--paper-soft); color: var(--muted); }
.mfa-factor-icon .ui-glyph { width: 15px; height: 15px; }
.mfa-factor-unavailable { color: var(--muted); font-size: 10px; }
.security-settings-content .mfa-factor-row form { margin: 0; }
.security-removal { padding-top: 18px; border-top: 1px solid var(--line); }
.security-removal > summary { color: var(--accent-dark); cursor: pointer; font-size: 11px; font-weight: 650; }
.security-removal > p { margin: 12px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.security-removal-code-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.security-removal-code-actions form { margin: 0; }
.mfa-removal-option { margin-top: 12px; border-top: 1px solid var(--line); }
.mfa-removal-option > summary { padding: 12px 2px; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; line-height: 1.4; }
.mfa-removal-option[open] > summary { color: var(--accent-dark); }
.mfa-removal-option > p { margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.mfa-removal-option > p strong { color: var(--ink); }
.mfa-removal-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mfa-removal-form { display: grid; gap: 12px; padding: 0 0 14px; }
.mfa-removal-form input[type="password"], .mfa-removal-form input[type="text"] { min-height: 38px; padding: 8px 10px; font-size: 12px; }
.mfa-removal-form .form-actions { justify-content: flex-end; }

@media (max-width: 560px) {
  .dashboard-account-trigger > span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .settings-page-layout { grid-template-columns: 1fr; gap: 26px; }
  .settings-section-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line-strong); }
  .settings-section-nav a { border-bottom: 2px solid transparent; border-left: 0; text-align: center; }
  .settings-section-nav a[aria-current="page"] { border-bottom-color: var(--accent); border-left: 0; }
  .account-password-fields { grid-template-columns: 1fr; }
  .security-settings-content .mfa-factor-row { align-items: flex-start; }
  .mfa-removal-fields { grid-template-columns: 1fr; }
}

/* Case settings */
.case-settings-main { padding-bottom: 72px; }
.case-settings-header, .case-settings-grid { max-width: 1080px; margin-left: auto; margin-right: auto; }
.case-settings-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 42px 0 24px; }
.case-settings-header h1 { margin: 5px 0 8px; font: 500 clamp(32px, 4vw, 46px)/1.04 Georgia, serif; letter-spacing: -.035em; }
.case-settings-header p:last-child { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.5; }
.case-settings-header-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.case-settings-header-actions > div { display: flex; }
.case-template-dialog-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-settings-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 18px; align-items: start; }
.case-settings-card { padding: 22px; border: 1px solid var(--line-strong); background: var(--paper); box-shadow: var(--elevation-resting); }
.case-settings-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.case-settings-card h2 { margin: 4px 0 0; font: 500 25px Georgia, serif; }
.case-details-form { display: grid; gap: 16px; padding-top: 18px; }
.case-details-form .form-actions { justify-content: flex-end; }
.case-settings-copy { margin: 16px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.case-member-count { color: var(--muted); font-size: 11px; }
.case-member-add-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding-bottom: 18px; }
.case-member-add-form > .feedback { grid-column: 1 / -1; }
.case-account-divider { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.case-account-divider::before, .case-account-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.case-account-create-form { display: grid; gap: 12px; padding-bottom: 20px; }
.case-account-create-form p { margin: -6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.case-account-create-form .button { justify-self: end; }
.case-members { border-top: 1px solid var(--line); }
.case-member { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.case-member > div { min-width: 0; }
.case-member strong, .case-member span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-member strong { font-size: 12px; }
.case-member span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.case-member form { margin: 0; flex: 0 0 auto; }
.case-danger-zone { grid-column: 1 / -1; border-color: var(--status-danger-border); }
.case-deletion-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.case-deletion-form .button { justify-self: end; }
.case-deletion-form label { max-width: 460px; }
.case-deletion-form label strong { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.case-deletion-unavailable { margin: 0; color: var(--status-danger); font-size: 12px; }

@media (max-width: 850px) {
  .case-settings-header { align-items: flex-start; flex-direction: column; }
  .case-settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .case-settings-header-actions { width: 100%; }
  .case-settings-header-actions .button { flex: 1; }
  .case-member-add-form { grid-template-columns: 1fr; }
  .case-member-add-form .button { justify-self: start; }
  .case-account-create-form .button { justify-self: start; }
  .case-deletion-form { grid-template-columns: 1fr; }
  .case-deletion-form .button { justify-self: start; }
}

/* Filing workbench */
.workspace-main { height: 100vh; padding: 0; overflow: hidden; background: var(--workbench-canvas); }
.exhibit-workbench { --control-border: var(--workbench-control-border); --inverse-muted: var(--workbench-inverse-muted); --status-positive-surface: var(--workbench-positive-surface); --status-neutral-surface: var(--workbench-neutral-surface); --status-danger: var(--workbench-danger); --status-danger-border: var(--workbench-danger-border); --status-danger-soft: var(--workbench-danger-soft); height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 0; grid-template-rows: var(--table-pane-height, 46%) 7px minmax(0, 1fr); transition: grid-template-columns .18s ease; }
.exhibit-workbench.chat-open { grid-template-columns: minmax(0, 1fr) minmax(300px, 350px); }
.table-pane, .pane-resizer, .preview-pane { grid-column: 1; }
.table-pane { --filing-columns: 56px 56px minmax(150px, .95fr) minmax(180px, 1.15fr) 48px 160px 68px; min-width: 0; min-height: 0; display: grid; grid-template-rows: 58px 34px minmax(0, 1fr) 7px minmax(96px, var(--source-pane-width, 20%)); background: var(--paper); border-bottom: 1px solid var(--line-workbench); box-shadow: var(--elevation-pane-block-end); z-index: 2; }
.workbench-bar { position: relative; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 18px; overflow: visible; border-bottom: 1px solid var(--line); }
.workbench-brand { min-width: 0; display: flex; align-items: center; gap: 10px; }
.workbench-logo { width: 38px; height: 38px; flex: 0 0 38px; object-fit: contain; }
.workbench-bar h1 { margin: 0; font: 500 20px Georgia, serif; }
.workbench-case-context { min-width: 0; max-width: 220px; display: grid; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.15; }
.workbench-case-context span, .workbench-case-context strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workbench-case-context span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.workbench-case-context strong { color: var(--ink); font-size: 10px; }
.workbench-actions { min-width: 0; flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 9px; color: var(--muted); font-size: 10px; }
.workbench-actions strong { color: var(--ink); }
.session-signout-form { margin: 0; }
.workbench-actions .dashboard-account-trigger { min-height: 30px; padding-top: 5px; padding-bottom: 5px; font-size: 9px; }
.toc-settings, .export-tools { position: relative; }
.workbench-icon-button { border: 1px solid var(--control-border); background: var(--paper); color: var(--muted); }
.workbench-icon-button:hover, .workbench-icon-button:focus-visible { color: var(--accent-dark); border-color: var(--ink); background: var(--surface-hover); }
.message-center { position: relative; }
.message-center-button { position: relative; }
.message-center-button.has-unread { color: var(--accent-dark); border-color: var(--accent); background: var(--surface-accent); }
.message-center-count { position: absolute; top: -7px; right: -7px; min-width: 17px; height: 17px; padding: 0 3px; border: 2px solid var(--paper); border-radius: var(--radius-pill); color: white; background: var(--accent); font: 750 8px/13px sans-serif; text-align: center; }
.message-notifications { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: min(360px, calc(100vw - 24px)); max-height: min(520px, calc(100vh - 90px)); overflow: hidden; }
.message-notifications[hidden] { display: none; }
.message-notifications > header { align-items: baseline; }
.message-notifications > header strong { font: 500 16px Georgia, serif; }
.message-notifications > header span { color: var(--inverse-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.message-notification-list { max-height: 430px; overflow-y: auto; }
.message-notification { width: 100%; display: grid; gap: 5px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.message-notification:hover, .message-notification:focus-visible { background: var(--surface-hover); }
.message-notification-heading, .message-notification-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.message-notification-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.message-notification-heading > span { flex: 0 0 auto; min-width: 18px; padding: 2px 5px; border-radius: var(--radius-pill); color: white; background: var(--accent); font-size: 8px; text-align: center; }
.message-notification-meta { color: var(--muted); font-size: 8px; }
.message-notification-meta time { flex: 0 0 auto; }
.message-notification-preview { overflow: hidden; color: var(--muted-strong); font-size: 9px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.message-notification-empty { --content-state-padding: 22px 14px; }
.workbench-claim-button { min-height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--control-border); background: var(--paper); color: var(--muted); font: inherit; font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.workbench-claim-button.is-mine { border-color: var(--workbench-claim-border); color: var(--workbench-claim); background: var(--workbench-claim-surface); }
.workbench-claim-button.is-locked { border-style: dashed; color: var(--accent-dark); cursor: not-allowed; }
.exhibit-workbench.claim-locked [data-confirmation-mutation],
.exhibit-workbench.claim-locked [data-confirmation-scope-mutation],
.exhibit-workbench.claim-locked form[data-review-form],
.exhibit-workbench.claim-locked .quick-add,
.exhibit-workbench.claim-locked .row-add,
.exhibit-workbench.claim-locked .inline-form,
.exhibit-workbench.claim-locked .edit-glyph,
.exhibit-workbench.claim-locked .source-add-tile,
.exhibit-workbench.claim-locked .document-confirm,
.exhibit-workbench.claim-locked .document-include,
.exhibit-workbench.claim-locked .document-replace,
.exhibit-workbench.claim-locked .document-remove,
.exhibit-workbench.claim-locked .film-page-quick-toggle,
.exhibit-workbench.claim-locked [data-preview-target="pageControl"],
.exhibit-workbench.claim-locked .export-settings-button,
.exhibit-workbench.claim-locked .settings-dialog,
.exhibit-workbench.claim-locked .film-page-rotation-controls button,
.exhibit-workbench.claim-locked [data-preview-target="pageRotate"],
.exhibit-workbench.claim-locked .quick-add summary,
.exhibit-workbench.claim-locked .row-add summary,
.exhibit-workbench.claim-locked form[data-review-form] button,
.exhibit-workbench.claim-locked .settings-dialog button,
.exhibit-workbench.claim-locked .settings-dialog input,
.exhibit-workbench.claim-locked .settings-dialog select { cursor: not-allowed !important; }
.workbench-export-button { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--control-border); background: var(--paper); color: var(--ink); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.workbench-export-button:hover, .workbench-export-button:focus-visible { color: var(--accent-dark); border-color: var(--ink); background: var(--surface-hover); }
.workbench-export-button .ui-glyph { width: 13px; height: 13px; }
.export-popover { position: fixed; inset: var(--export-popover-top, 66px) auto auto var(--export-popover-left, 16px); width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - var(--export-popover-top, 66px) - 16px); margin: 0; padding: 0; overflow: auto; }
.export-popover::backdrop { background: transparent; }
.export-readiness { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 9px; margin: 14px 14px 0; padding: 12px; border: 1px solid var(--status-warning-border); border-left: 4px solid var(--status-warning); color: var(--status-warning); background: var(--status-warning-surface); }
.export-readiness[hidden] { display: none; }
.export-readiness .ui-glyph { width: 18px; height: 18px; }
.export-readiness > div { display: grid; gap: 3px; }
.export-readiness strong { color: var(--ink); font-size: 12px; }
.export-readiness span { font-size: 10px; line-height: 1.4; }
.settings-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; opacity: 0; transform: translateY(8px) scale(.985); transition: opacity .16s ease, transform .16s ease, overlay .16s allow-discrete, display .16s allow-discrete; }
.settings-dialog[open] { opacity: 1; transform: none; }
.settings-dialog::backdrop { background: rgba(20,27,32,.48); backdrop-filter: blur(2px); }
.settings-form { display: grid; gap: 18px; padding: 24px; max-height: calc(100vh - 34px); overflow: auto; }
.settings-form > .transient-surface__header { margin: -24px -24px 0; padding: 20px 24px 14px; }
.settings-form fieldset { display: grid; gap: 10px; margin: 0; padding: 14px; border: 1px solid var(--line); }
.settings-form legend { padding: 0 6px; font-weight: 700; }
.settings-form select { min-height: 38px; }
.settings-form .checkbox-label { display: flex; align-items: center; gap: 8px; }
.settings-form .checkbox-label input { width: auto; }
.settings-hint { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.settings-field-help { display: block; margin: -5px 0 2px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.settings-form header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.settings-form h2 { margin: 4px 0 0; font: 500 25px Georgia, serif; }
.settings-copy { margin: -6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.settings-status:not([hidden]) { margin: -6px 0; }
.settings-form footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.workbench-export-nav { display: grid; gap: 14px; padding: 14px; border-bottom: 1px solid var(--line); }
.export-menu-group > .feedback { width: 100%; margin-bottom: 8px; }
.export-menu-group { display: grid; gap: 6px; }
.export-group-label { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.export-menu-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.export-menu-group:last-child .export-menu-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.export-resolution { min-height: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; margin: 14px 14px 0; border: 1px solid var(--control-border); background: var(--paper); color: var(--muted); }
.export-resolution > span { display: flex; align-items: center; padding: 0 10px; font-size: 8px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.export-resolution select { width: auto; min-width: 112px; min-height: 0; height: 100%; padding: 0 40px 0 10px; border: 0; border-left: 1px solid var(--line); border-radius: var(--radius-square); background-color: transparent; color: var(--ink); font: inherit; font-size: 9px; font-weight: 700; }
.export-resolution select:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.export-link { min-width: 0; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 10px; appearance: none; border: 1px solid var(--line-strong); border-radius: var(--radius-square); background: var(--paper); color: var(--ink); font: inherit; font-size: 9px; font-weight: 750; letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.export-link:hover { color: var(--accent-dark); background: var(--surface-hover); }
.export-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.export-link.primary { color: white; background: var(--accent); }
.export-link.disabled { opacity: .38; pointer-events: auto; cursor: not-allowed; }
.export-link.is-generating { position: relative; color: transparent; }
.export-link.is-generating::after { --activity-indicator-size: 12px; position: absolute; }
.export-download-status { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--surface-subtle); font-size: 9px; line-height: 1.35; }
.export-download-status[data-state="error"] { color: var(--status-danger); background: var(--status-danger-surface); }
.export-download-status[data-state="unavailable"] { color: var(--status-warning); background: var(--status-warning-surface); }
.export-download-status[data-state="success"] { color: var(--status-positive); background: var(--status-positive-surface); }
.export-menu-group > .export-download-status { padding: 8px 10px; border: 0; border-top: 1px solid var(--line); }
.generated-resolution-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.generated-resolution-links:empty { display: none; }
.generated-resolution-links .export-link { min-width: 88px; }
.export-settings-button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px 14px; border: 0; background: transparent; color: var(--ink); text-align: left; }
.export-settings-button:hover, .export-settings-button:focus-visible { background: var(--surface-hover); }
.export-settings-button > span { min-width: 0; display: grid; gap: 2px; }
.export-settings-button strong, .export-settings-button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.export-settings-button strong { font-size: 10px; }
.export-settings-button small { color: var(--muted); font-size: 8px; }
.quick-add { position: relative; }
.quick-add summary { cursor: pointer; list-style: none; }
.quick-add summary::-webkit-details-marker { display: none; }
.quick-add-form { position: absolute; top: calc(100% + 7px); right: 0; z-index: 10; width: 390px; padding: 12px; display: grid; grid-template-columns: 1fr auto auto; gap: 7px; }
.filing-table-head, .filing-exhibit-row { display: grid; grid-template-columns: var(--filing-columns); min-width: 720px; }
.filing-table-head { color: white; background: var(--ink); font-size: 8px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.filing-table-head > div { min-width: 0; overflow: hidden; display: flex; align-items: center; padding: 8px 7px; border-left: 1px solid var(--line-inverse); text-overflow: ellipsis; white-space: nowrap; }
.filing-table-head > div:nth-child(1), .filing-table-head > div:nth-child(2), .filing-table-head > div:nth-child(5), .filing-table-head > div:nth-child(7) { justify-content: center; padding-right: 3px; padding-left: 3px; }
.filing-table-head > .filing-actions-head { position: relative; z-index: 14; overflow: visible; justify-content: space-between; gap: 7px; padding-top: 0; padding-bottom: 0; }
.section-add-button { --focus-color: white; color: white; border: 1px solid var(--line-inverse); border-radius: var(--radius-workbench-action); background: transparent; }
.section-add-button:hover, .section-add-button:focus-visible, .section-add[open] .section-add-button { border-color: white; background: var(--surface-inverse-hover); }
.section-add .quick-add-form { font-size: 10px; font-weight: 400; letter-spacing: normal; text-transform: none; }
.hierarchy-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.hierarchy-feedback-layer { position: sticky; z-index: 12; top: 0; height: 0; overflow: visible; pointer-events: none; }
.hierarchy-feedback-slot:not([hidden]) { position: absolute; top: 6px; right: 6px; left: 6px; margin: 0; pointer-events: auto; }
.filing-section { min-width: 720px; }
.filing-section-row, .filing-group-row { display: grid; align-items: center; border-bottom: 1px solid var(--line); }
.filing-section-row { --focus-color: white; grid-template-columns: var(--filing-columns); min-height: 39px; color: white; background: var(--section-surface); }
.filing-group-row { grid-template-columns: var(--filing-columns); min-height: 36px; background: var(--group-surface); }
.filing-section-row > .row-leading-controls, .filing-group-row > .row-leading-controls { grid-column: 1; }
.filing-section-row > strong, .filing-group-row > strong { grid-column: 2; white-space: nowrap; }
.filing-section-row > .section-title-field { grid-column: 3 / 6; margin-right: 12px; }
.filing-group-row > .group-purpose-field { grid-column: 3 / 5; margin-right: 12px; }
.filing-group-row > span { grid-column: 5; }
.filing-section-row > .row-tail-actions, .filing-group-row > .row-tail-actions { grid-column: 6; padding-right: 4px; }
.filing-section-row > .row-confirmation, .filing-group-row > .row-confirmation { grid-column: 7; display: flex; align-items: center; justify-content: center; padding-right: 7px; }
.filing-section-row > strong, .filing-group-row > strong { padding: 0 9px; font-size: 11px; }
.filing-section-row .drag-handle { color: var(--workbench-inverse-drag); }
.filing-group-row > span { color: var(--muted); font-size: 9px; }
.inline-field { position: relative; min-width: 0; }
.inline-display { min-width: 0; display: flex; align-items: center; gap: 6px; }
.inline-display[hidden] { display: none; }
.hierarchy-disclosure-title { cursor: pointer; }
.hierarchy-disclosure-title:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.inline-value { min-width: 0; overflow: hidden; color: inherit; line-height: 1.35; text-overflow: ellipsis; }
.inline-value[data-action*="dblclick"] { cursor: text; }
.inline-field:has([data-inline-edit-target="action"][aria-disabled="true"]) .inline-value,
.exhibit-workbench.claim-locked .inline-value[data-action*="dblclick"] { cursor: not-allowed; }
.section-title-field .inline-value, .group-purpose-field .inline-value { flex: 1 1 auto; display: block; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.exhibit-name-field .exhibit-name-value { min-width: 0; display: -webkit-box; max-width: 100%; overflow: hidden; overflow-wrap: anywhere; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.note-field .inline-value { min-width: 0; flex: 1 1 auto; display: -webkit-box; max-width: 100%; overflow: hidden; overflow-wrap: anywhere; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.filing-exhibit-row .inline-display { flex-wrap: wrap; }
.filing-exhibit-row .inline-display .row-meta { min-width: 0; flex: 0 0 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-glyph { border: 1px solid rgba(122,127,130,.28); border-radius: var(--radius-control); background: rgba(255,255,255,.42); color: var(--muted); opacity: .72; transition: opacity .12s ease, color .12s ease, border-color .12s ease, background .12s ease; }
.inline-display:hover .edit-glyph, .edit-glyph:focus-visible { color: var(--accent-dark); border-color: rgba(143,53,33,.45); opacity: 1; }
.edit-glyph:hover, .edit-glyph:focus-visible { background: var(--surface-hover); opacity: 1; }
.exhibit-workbench .edit-glyph:hover, .exhibit-workbench .edit-glyph:focus-visible { background: var(--workbench-control-hover); }
@media (hover: hover) and (pointer: fine) {
  .filing-exhibit-row .inline-field .edit-glyph { opacity: 0; pointer-events: none; }
  .filing-exhibit-row .inline-field:hover .edit-glyph,
  .filing-exhibit-row .inline-field:focus-within .edit-glyph { opacity: .72; pointer-events: auto; }
  .filing-exhibit-row .inline-field .edit-glyph:hover,
  .filing-exhibit-row .inline-field .edit-glyph:focus-visible { opacity: 1; }
}
.filing-section-row .edit-glyph { color: var(--workbench-inverse-action); border-color: var(--inverse-control-border-soft); background: var(--inverse-control-surface); }
.filing-section-row .edit-glyph:hover, .filing-section-row .edit-glyph:focus-visible { background: var(--surface-inverse-hover); color: white; }
.section-title-field .inline-value { color: white; font-weight: 700; }
.group-purpose-field .inline-value { font-weight: 700; }
.inline-form { position: static; width: 100%; display: block; }
.inline-form[hidden] { display: none; }
.inline-form input, .inline-form textarea { min-height: 28px; padding: 4px 56px 4px 0; border: 0; border-bottom: 1px solid transparent; border-radius: var(--radius-square); background: transparent; color: inherit; font: inherit; }
.inline-form input:focus, .inline-form textarea:focus { outline: 0; border-bottom-color: var(--accent); }
.section-title-field .inline-form input { color: white; font-weight: 700; }
.group-purpose-field .inline-form input, .exhibit-name-field .inline-form input { font-weight: 700; }
.note-field .inline-form textarea { color: var(--muted-strong); }
.inline-icon { position: absolute; right: 8px; bottom: 8px; border: 1px solid rgba(122,127,130,.28); border-radius: var(--radius-control); background: rgba(255,255,255,.42); color: var(--muted); transition: color .12s ease, border-color .12s ease, background .12s ease; }
.inline-icon.save { right: 38px; }
.inline-icon.save { color: var(--green); border-color: var(--status-positive-border); }
.inline-icon:hover, .inline-icon:focus-visible { border-color: currentColor; background: var(--workbench-control-hover); }
.filing-section-row .inline-icon { color: var(--workbench-inverse-action); border-color: var(--inverse-control-border-soft); background: var(--inverse-control-surface); }
.filing-section-row .inline-icon:hover, .filing-section-row .inline-icon:focus-visible { color: white; border-color: white; background: var(--surface-inverse-hover); }
.row-tail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.row-tail-actions .hierarchy-trash-form { display: contents; }
.row-confirmation[hidden] { display: none; }
.filing-section-row .section-confirmation-action:not(.primary) { background: var(--inverse-control-surface); }
.filing-section-row .section-confirmation-action:not(.primary):hover,
.filing-section-row .section-confirmation-action:not(.primary):focus-visible { color: white; border-color: var(--inverse-control-border); background: var(--surface-inverse-hover); }
.filing-section-row .section-confirmation-action.primary { color: white; border-color: var(--green); background: var(--green); }
.filing-section-row .section-confirmation-action.primary:hover,
.filing-section-row .section-confirmation-action.primary:focus-visible { color: white; border-color: var(--status-positive); background: var(--status-positive); }
.filing-group-row .group-confirmation-action.primary { color: var(--ink); border-color: var(--green); background: var(--status-positive-surface); }
.filing-group-row .group-confirmation-action.primary:hover,
.filing-group-row .group-confirmation-action.primary:focus-visible { color: var(--ink); border-color: var(--green); background: var(--status-positive-selected-surface); }
.section-export { position: relative; }
.section-export-button { padding: 0; }
.section-export-button.is-generating { position: relative; color: transparent; }
.section-export-button.is-generating::after { --activity-indicator-size: 12px; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -7px; }
.section-export-results { position: absolute; z-index: 14; top: calc(100% + 7px); right: 0; width: 330px; padding: 8px 10px; }
.section-export-results[hidden] { display: none; }
.section-export-heading { margin: -8px -10px 0; }
.section-export-heading-actions { display: flex; align-items: center; gap: 7px; }
.section-export-regenerate { border: 0; background: transparent; cursor: pointer; }
.section-export-regenerate { color: var(--accent-dark); }
.section-export-regenerate:hover, .section-export-regenerate:focus-visible { color: var(--ink); background: var(--surface-hover); }
.section-export-artifact { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 10px; }
.section-export-artifact:first-child { border-top: 0; }
.section-export-artifact a { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--accent-dark); font-weight: 750; white-space: nowrap; }
.section-export-artifact a .ui-glyph { width: 12px; height: 12px; flex: 0 0 auto; }
.section-export-artifact a span { overflow: hidden; text-overflow: ellipsis; }
.section-export-ready, .section-export-warning { flex: 0 0 auto; font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.section-export-ready { color: var(--green); }
.section-export-warning { color: var(--accent-dark); }
.section-export-status { display: block; padding: 5px 0; color: var(--muted); font-size: 10px; }
.section-export-status[data-state="error"] { color: var(--status-danger); font-weight: 700; }
.section-export-quality { padding: 2px 0 6px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.row-add { position: relative; justify-self: end; font-size: 9px; }
.row-add summary { color: inherit; cursor: pointer; list-style: none; border: 1px solid currentColor; border-radius: var(--radius-workbench-action); opacity: .7; }
.row-add summary:hover, .row-add[open] summary { opacity: 1; background: rgba(255,255,255,.45); }
.row-add summary::-webkit-details-marker { display: none; }
.row-add-form { position: absolute; top: calc(100% + 8px); right: 0; z-index: 9; width: 430px; display: grid; grid-template-columns: 1fr auto auto; gap: 7px; padding: 10px; }
.exhibit-dropzone:empty { min-height: 28px; background: repeating-linear-gradient(-45deg, #f8f6f0, #f8f6f0 8px, #f1eee7 8px, #f1eee7 16px); }
.review-state-surface { --review-state-edge: transparent; --review-state-edge-width: 3px; --review-state-marker-color: var(--accent); --review-state-surface: var(--paper); }
.review-state-surface[data-review-state="empty"] { --review-state-edge: var(--status-neutral); --review-state-marker-color: var(--status-neutral); --review-state-surface: var(--paper); }
.review-state-surface[data-review-state="excluded"] { --review-state-edge: var(--status-neutral); --review-state-marker-color: var(--status-neutral); --review-state-surface: var(--status-neutral-surface); }
.review-state-surface[data-review-state="processing"] { --review-state-edge: var(--status-progress); --review-state-marker-color: var(--status-progress); --review-state-surface: var(--status-progress-surface); }
.review-state-surface[data-review-state="failed"] { --review-state-edge: var(--status-danger); --review-state-edge-width: 5px; --review-state-marker-color: var(--status-danger); --review-state-surface: var(--status-danger-soft); }
.review-state-surface[data-review-state="in_review"] { --review-state-edge: var(--status-warning); --review-state-marker-color: var(--status-warning); --review-state-surface: var(--status-warning-surface); }
.review-state-surface[data-review-state="ready"] { --review-state-edge: transparent; --review-state-marker-color: var(--accent); --review-state-surface: var(--paper); }
.review-state-surface[data-review-state="confirmed"] { --review-state-edge: transparent; --review-state-marker-color: var(--status-positive); --review-state-surface: var(--status-positive-surface); }
.review-state-marker { position: absolute; top: 0; left: 0; z-index: 8; width: 18px; height: 18px; cursor: help; }
.review-state-surface[data-review-state="ready"] .review-state-marker { display: none; }
.review-state-marker::before { content: ""; position: absolute; inset: 0; background: var(--review-state-marker-color); clip-path: polygon(0 0, 100% 0, 0 100%); }
.review-state-surface[data-review-state="confirmed"] .review-state-marker::before { inset: auto; top: 8px; left: 1px; width: 16px; height: 3px; border-radius: var(--radius-pill); clip-path: none; transform: rotate(-45deg); }
.review-state-marker::after { content: attr(data-review-state-tooltip); position: absolute; top: 15px; left: 12px; z-index: 2; width: max-content; max-width: 240px; padding: 4px 6px; border: 1px solid var(--ink); color: white; background: var(--ink); font-size: 8px; font-weight: 700; line-height: 1.25; white-space: normal; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-2px); transition: opacity .12s ease, transform .12s ease, visibility .12s ease; }
.review-state-marker:hover::after, .review-state-marker:focus::after { opacity: 1; visibility: visible; transform: translateY(0); }
.review-state-marker:focus-visible { outline: 2px solid var(--focus-halo); outline-offset: 2px; }
.filing-exhibit-row { position: relative; min-height: 50px; background: var(--review-state-surface, var(--paper)); border-bottom: 1px solid var(--line); transition: background .14s ease, opacity .14s ease, box-shadow .14s ease; }
.filing-exhibit-row:hover { background: var(--surface-row-hover); }
.filing-exhibit-row.selected { background: var(--surface-selected); outline: 1px solid var(--accent); outline-offset: -1px; box-shadow: inset 3px 0 0 var(--accent); }
.filing-exhibit-row.confirmed-locked { background: var(--status-positive-surface); box-shadow: none; }
.filing-exhibit-row.confirmed-locked.selected { background: var(--status-positive-selected-surface); box-shadow: inset 3px 0 0 var(--accent); }
.confirmed-descendants > .filing-section-row, .confirmed-descendants > .filing-group-row { cursor: default; }
[aria-disabled="true"], .is-restricted { cursor: not-allowed !important; }
button[aria-disabled="true"], a[aria-disabled="true"], .is-restricted { opacity: .38; }
.is-blocked-drop, .is-blocked-drop * { cursor: not-allowed !important; }
.restriction-drop-target { cursor: not-allowed !important; outline: 1px solid var(--blocked); outline-offset: -1px; box-shadow: none !important; }
[data-confirmation-mutation][hidden], [data-confirmation-scope-mutation][hidden] { display: none !important; }
.filing-exhibit-row.excluded-composite { background: var(--status-neutral-surface); }
.filing-exhibit-row.excluded-composite .exhibit-number, .filing-exhibit-row.excluded-composite .start-page { color: var(--status-neutral-border); }
.filing-exhibit-row.excluded-composite .exhibit-name-value::after { content: "  EXCLUDED"; color: var(--accent-dark); font-size: 8px; font-weight: 750; letter-spacing: .08em; }
.composite-include.is-excluded { color: white; border-color: var(--green); background: var(--green); }
.filing-exhibit-row > div { min-width: 0; padding: 9px; border-left: 1px solid var(--line); font-size: 10.5px; }
.filing-exhibit-row > .row-leading-controls { grid-column: 1; }
.filing-exhibit-row > .exhibit-number { grid-column: 2; }
.filing-exhibit-row > .inline-field:not(.note-field) { grid-column: 3; }
.filing-exhibit-row > .note-field { grid-column: 4; }
.filing-exhibit-row > .start-page { grid-column: 5; }
.filing-exhibit-row > .row-actions { grid-column: 6; }
.filing-exhibit-row > .row-confirmation { grid-column: 7; }
.filing-exhibit-row > .exhibit-number, .filing-exhibit-row > .start-page { white-space: nowrap; }
.filing-exhibit-row > .row-actions { padding-right: 4px; padding-left: 4px; }
.row-leading-controls { position: relative; display: flex; align-items: center; justify-content: center; gap: 1px; padding: 4px !important; border-left: 0 !important; }
.evidence-category-controls, .section-controls { height: 100%; justify-content: flex-start; }
.hierarchy-collapse { border: 0; background: transparent; color: var(--muted); }
.hierarchy-collapse .ui-glyph { transition: transform .16s ease; }
.hierarchy-collapse[aria-expanded="false"] .ui-glyph { transform: rotate(-90deg); }
.hierarchy-collapse:hover, .hierarchy-collapse:focus-visible { color: var(--accent-dark); background: var(--surface-hover); }
.exhibit-workbench .hierarchy-collapse:hover, .exhibit-workbench .hierarchy-collapse:focus-visible { background: var(--workbench-control-hover); }
.filing-section-row .hierarchy-collapse { color: var(--inverse-muted); }
.filing-section-row .hierarchy-collapse:hover, .filing-section-row .hierarchy-collapse:focus-visible { color: white; background: var(--surface-inverse-hover); }
.composite-drag-handle { width: 22px; height: 28px; }
.filing-exhibit-row .exhibit-number { font-weight: 750; }
.exhibit-name-value { font-weight: 700; }
.exhibit-name-field { position: relative; padding-bottom: 36px !important; }
.exhibit-name-field .row-meta { position: absolute; right: 36px; bottom: 9px; left: 9px; display: block; }
.exhibit-name-field .exhibit-name-edit-glyph { position: absolute; right: 8px; bottom: 8px; }
.note-value { color: var(--muted-strong); }
.note-field { position: relative; padding-right: 36px !important; }
.note-field .relevance-edit-glyph { position: absolute; right: 8px; bottom: 8px; }
.filing-exhibit-row .inline-field:has(> .inline-form:not([hidden])) { padding-bottom: 40px !important; }
.note-form textarea { min-height: 28px; field-sizing: content; resize: none; }
.purpose-run {
  display: grid;
  grid-template-columns: var(--filing-columns);
  min-width: 720px;
  position: relative;
}
.purpose-run > .filing-exhibit-row { display: contents; }
.purpose-run > .filing-exhibit-row > div {
  grid-row: var(--purpose-run-row);
  min-width: 0;
  padding: 9px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--review-state-surface, var(--paper));
  font-size: 10.5px;
}
.purpose-run > .filing-exhibit-row:hover > div { background: var(--surface-row-hover); }
.purpose-run > .filing-exhibit-row.selected > div { background: var(--surface-selected); }
.purpose-run > .filing-exhibit-row.confirmed-locked > div { background: var(--status-positive-surface); }
.purpose-run > .filing-exhibit-row.confirmed-locked.selected > div { background: var(--status-positive-selected-surface); }
.purpose-run.selected-purpose-run > .filing-exhibit-row > .note-field { background: var(--surface-selected); }
.purpose-run.selected-purpose-run::after { content: ""; z-index: 7; grid-column: 1 / -1; grid-row: var(--selected-purpose-row); align-self: stretch; border: 1px solid var(--accent); pointer-events: none; }
.purpose-run > .filing-exhibit-row.confirmed-locked > .row-leading-controls { box-shadow: none; }
.purpose-run > .filing-exhibit-row.selected > .row-leading-controls { box-shadow: inset 3px 0 0 var(--accent); }
.purpose-run > .filing-exhibit-row.excluded-composite > div { background: var(--status-neutral-surface); }
.purpose-run > .filing-exhibit-row > .row-leading-controls { grid-column: 1; }
.purpose-run > .filing-exhibit-row > .exhibit-number { grid-column: 2; }
.purpose-run > .filing-exhibit-row > .inline-field:not(.note-field) { grid-column: 3; }
.purpose-run > .filing-exhibit-row > .note-field { grid-column: 4; align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.purpose-run > .filing-exhibit-row > .start-page { grid-column: 5; }
.purpose-run > .filing-exhibit-row > .row-actions { grid-column: 6; }
.purpose-run > .filing-exhibit-row > .row-confirmation { grid-column: 7; }
.purpose-run > .filing-exhibit-row > .exhibit-number, .purpose-run > .filing-exhibit-row > .start-page { white-space: nowrap; }
.purpose-run > .filing-exhibit-row > .row-actions { padding-right: 4px; padding-left: 4px; }
.purpose-divider {
  grid-column: 4;
  grid-row: var(--purpose-run-row);
  align-self: start;
  position: relative;
  width: 100%;
  height: 12px;
  margin-top: -6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}
.purpose-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  transform: translateY(-50%);
  opacity: 0;
}
.purpose-divider:hover::before, .purpose-divider:focus-visible::before {
  background: repeating-linear-gradient(to right, var(--accent-dark) 0 6px, var(--paper) 6px 10px);
  opacity: 1;
}
.purpose-divider::after {
  content: "Separate";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  padding: 1px 4px;
  color: var(--accent-dark);
  background: var(--paper);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;
}
.purpose-divider:hover::after, .purpose-divider:focus-visible::after { opacity: 1; }
.purpose-join-zone {
  position: absolute;
  z-index: 2;
  top: -6px;
  left: 0;
  width: 100%;
  height: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.purpose-join-zone::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  transform: translateY(-50%);
  opacity: 0;
}
.purpose-join-zone:hover::before, .purpose-join-zone:focus-visible::before {
  background: repeating-linear-gradient(to right, var(--accent-dark) 0 6px, var(--paper) 6px 10px);
  opacity: 1;
}
.purpose-join-zone::after {
  content: "Merge";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  padding: 1px 4px;
  color: var(--accent-dark);
  background: var(--paper);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;
}
.purpose-join-zone:hover::after, .purpose-join-zone:focus-visible::after { opacity: 1; }
.filing-exhibit-row .start-page { font-size: 11px; font-variant-numeric: tabular-nums; }
.filing-exhibit-row.dragging, .filing-group.dragging, .filing-section.dragging { opacity: .35; }
.filing-exhibit-row.merging { opacity: .28; }
.filing-exhibit-row.copying { opacity: .5; }
.is-dragging-exhibit .filing-exhibit-row:not(.dragging):not([data-locked="true"]) { box-shadow: inset 0 0 0 1px var(--accent-edge); }
.is-dragging-exhibit [data-kind="group"][data-locked="true"] { position: relative; }
.is-dragging-exhibit [data-kind="group"][data-locked="true"]::after { content: ""; position: absolute; z-index: 10; inset: 0; pointer-events: none; background: var(--status-positive-pane); backdrop-filter: blur(1.8px) saturate(1.08); -webkit-backdrop-filter: blur(1.8px) saturate(1.08); }
.is-dragging-group [data-kind="section"][data-locked="true"] { position: relative; }
.is-dragging-group [data-kind="section"][data-locked="true"]::after { content: ""; position: absolute; z-index: 13; inset: 0; pointer-events: none; background: var(--status-positive-pane); backdrop-filter: blur(1.8px) saturate(1.08); -webkit-backdrop-filter: blur(1.8px) saturate(1.08); }
.is-dragging-group [data-kind="section"][data-locked="true"],
.is-dragging-group [data-kind="section"][data-locked="true"] * { cursor: not-allowed !important; }
.is-dragging-exhibit .restriction-drop-target { outline: none !important; }
.is-dragging-exhibit .filing-exhibit-row.confirmed-locked.restriction-drop-target { box-shadow: none !important; }
.is-dragging-exhibit .filing-exhibit-row.selected.restriction-drop-target { box-shadow: inset 3px 0 0 var(--accent) !important; outline: 1px solid var(--accent) !important; outline-offset: -1px; }
.is-dragging-exhibit [data-kind="group"][data-locked="true"] .filing-exhibit-row:hover,
.is-dragging-exhibit .filing-exhibit-row[data-locked="true"]:hover { background: var(--paper); }
.is-dragging-exhibit [data-kind="group"][data-locked="true"] .purpose-run > .filing-exhibit-row:hover > div { background: var(--paper); }
.is-dragging-exhibit [data-kind="group"][data-locked="true"] .filing-exhibit-row.confirmed-locked:hover,
.is-dragging-exhibit .filing-exhibit-row[data-locked="true"].confirmed-locked:hover { background: var(--status-positive-surface); }
.is-dragging-exhibit [data-kind="group"][data-locked="true"] .filing-exhibit-row.confirmed-locked.selected:hover { background: var(--status-positive-selected-surface); }
.is-dragging-exhibit [data-kind="group"][data-locked="true"]:has(+ [data-kind="group"][data-locked="true"]) > [data-dropzone="exhibits"] > :last-child,
.is-dragging-exhibit [data-kind="group"][data-locked="true"]:has(+ [data-kind="group"][data-locked="true"]) > [data-dropzone="exhibits"] > :last-child > .filing-exhibit-row:last-child { border-bottom-color: transparent; }
.is-dragging-exhibit [data-kind="group"][data-locked="true"] > .filing-group-row .drag-handle { position: relative; z-index: 11; }
.is-dragging-exhibit [data-kind="group"][data-locked="true"],
.is-dragging-exhibit [data-kind="group"][data-locked="true"] *,
.is-dragging-exhibit .filing-exhibit-row[data-locked="true"],
.is-dragging-exhibit .filing-exhibit-row[data-locked="true"] * { cursor: not-allowed !important; }
.filing-exhibit-row.composite-drop-before::before, .filing-exhibit-row.composite-drop-after::after { content: ""; position: absolute; z-index: 6; left: -2px; right: -2px; height: 3px; background: var(--accent); box-shadow: 0 0 0 2px var(--accent-outline); }
.filing-exhibit-row.composite-drop-before::before { top: -2px; }
.filing-exhibit-row.composite-drop-after::after { bottom: -2px; }
.is-copying-exhibit .filing-exhibit-row.composite-drop-before::before,
.is-copying-exhibit .filing-exhibit-row.composite-drop-after::after { background: var(--green); box-shadow: 0 0 0 2px rgba(47,118,91,.18); }
.filing-exhibit-row.composite-merge-target { background: var(--surface-accent); box-shadow: inset 0 0 0 2px var(--accent), inset 7px 0 0 var(--accent); }
.exhibit-dropzone:not(:has(> [data-kind="exhibit"])) { min-height: 32px; }
.is-dragging-exhibit .exhibit-dropzone:not(:has(> [data-kind="exhibit"])) { background: var(--surface-accent-soft); box-shadow: inset 0 0 0 1px var(--accent-edge); }
.exhibit-dropzone.composite-drop-end { min-height: 28px; background: var(--surface-accent-soft); box-shadow: inset 0 -3px 0 var(--accent), inset 0 0 0 1px var(--accent-edge); }
.filing-section, .filing-group { position: relative; }
.hierarchy-drop-before::before, .hierarchy-drop-after::after { content: ""; position: absolute; z-index: 12; right: 0; left: 0; height: 3px; background: var(--accent); box-shadow: 0 0 0 2px var(--accent-outline); pointer-events: none; }
.hierarchy-drop-before::before { top: 0; }
.hierarchy-drop-after::after { bottom: 0; }
[data-dropzone="sections"].hierarchy-drop-end, [data-dropzone="groups"].hierarchy-drop-end { min-height: 28px; box-shadow: inset 0 -3px 0 var(--accent); }
.row-action-buttons { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 3px; }
.row-action-buttons form { display: contents; }
.row-action-buttons .compact-action, .row-action-buttons .chat-row-action { padding-right: 0; padding-left: 0; }
.row-confirmation { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.row-confirmation form { display: contents; }
.compact-action { min-height: 23px; display: inline-flex; align-items: center; justify-content: center; padding: 3px 7px; border: 1px solid var(--control-border); border-radius: var(--radius-control); background: var(--paper); color: var(--ink); font-size: 8px; font-weight: 750; white-space: nowrap; }
.compact-action:hover, .compact-action:focus-visible { color: var(--accent-dark); border-color: var(--ink); background: var(--surface-hover); }
.compact-action.primary { border-color: var(--accent); color: white; background: var(--accent); }
.compact-action.primary:hover, .compact-action.primary:focus-visible { border-color: var(--accent); color: white; background: var(--accent-dark); }
.compact-action.icon-button { padding: 0; }
.compact-action.danger { border-color: var(--status-danger-border); color: var(--status-danger); }
.compact-action.danger:hover, .compact-action.danger:focus-visible { border-color: var(--status-danger); background: var(--status-danger-soft); }
.compact-action[hidden] { display: none; }
.row-tail-actions .edit-glyph, .row-tail-actions .compact-action { background: transparent; }
.filing-section-row .compact-action { color: var(--workbench-inverse-action); border-color: var(--inverse-control-border-soft); }
.filing-section-row .compact-action:hover { color: white; border-color: var(--inverse-control-border); background: var(--surface-inverse-hover); }
.filing-section-row .compact-action.danger { color: var(--inverse-danger); border-color: rgba(255,180,166,.55); }
.filing-section-row .compact-action.danger:hover { color: white; border-color: var(--inverse-danger-border); background: var(--inverse-danger-surface); }
.chat-row-action { position: relative; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; color: var(--muted); }
.chat-row-action:hover, .chat-row-action:focus-visible, .chat-row-action.active { color: var(--accent-dark); border-color: var(--accent); background: var(--surface-accent); }
.chat-row-action.has-unread { color: white; border-color: var(--accent); background: var(--accent); }
.filing-section-row .chat-row-action { color: var(--inverse-muted); }
.filing-section-row .chat-row-action:hover, .filing-section-row .chat-row-action:focus-visible, .filing-section-row .chat-row-action.active { color: white; border-color: var(--inverse-control-border); background: var(--surface-inverse-hover); }
.filing-section-row .chat-row-action.has-unread { color: white; border-color: var(--inverse-danger-border); background: var(--accent); }
.filing-section-row.chat-context-active, .filing-group-row.chat-context-active { box-shadow: inset 3px 0 0 var(--accent); }
.chat-unread { position: absolute; top: -5px; right: -5px; min-width: 15px; height: 15px; padding: 0 3px; border: 2px solid var(--paper); border-radius: var(--radius-pill); color: white; background: var(--accent); font: 750 8px/11px sans-serif; text-align: center; }
.filing-section-row .chat-unread { border-color: var(--section-surface); }

.chat-pane { grid-column: 2; grid-row: 1 / -1; min-width: 0; overflow: hidden; display: grid; grid-template-rows: 74px minmax(0, 1fr) auto auto; background: var(--surface-subtle); border-left: 1px solid var(--line-workbench); box-shadow: var(--elevation-pane-inline-start); opacity: 0; pointer-events: none; transform: translateX(18px); transition: opacity .16s ease, transform .18s ease; }
.chat-open .chat-pane { opacity: 1; pointer-events: auto; transform: none; }
.chat-header { --focus-color: white; min-width: 300px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; color: white; background: var(--ink); border-bottom: 1px solid var(--line-inverse); }
.chat-header-copy { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.chat-header span { color: var(--inverse-muted); font-size: 8px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.chat-header h2 { max-width: 100%; margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 16px Georgia, serif; }
.chat-messages { min-width: 300px; min-height: 0; overflow-y: auto; padding: 0 16px; overscroll-behavior: contain; }
.chat-loading { --content-state-padding: 28px 0; }
.chat-empty { --content-state-padding: 12px 18px; min-width: 300px; border-top: 1px solid var(--line); }
.chat-empty[hidden] { display: none; }
.chat-message { padding: 13px 0 15px; border-bottom: 1px solid var(--line); }
.chat-message.mine { border-left: 2px solid var(--accent); padding-left: 10px; }
.chat-message header { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 8px; }
.chat-message strong { color: var(--ink); font-size: 9px; }
.chat-message p { margin: 6px 0 0; color: var(--muted-strong); font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { min-width: 300px; display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 7px; padding: 12px; border-top: 1px solid var(--line); background: var(--paper); }
.chat-form > .feedback { grid-column: 1 / -1; }
.chat-form textarea { min-height: 58px; max-height: 150px; padding: 8px; font-size: 11px; resize: vertical; }
.chat-form button { display: inline-flex; align-items: center; justify-content: center; align-self: stretch; padding: 0; border: 0; color: white; background: var(--accent); font-size: 18px; }
.chat-form button:hover, .chat-form button:focus-visible { background: var(--accent-dark); }

.pane-resizer { position: relative; z-index: 5; display: grid; place-items: center; cursor: row-resize; background: var(--workbench-resizer); touch-action: none; }
.pane-resizer span { width: 42px; height: 2px; border-radius: var(--radius-control); background: var(--workbench-resizer-grip); transition: width .15s ease, background .15s ease; }
.pane-resizer:hover span, .resizing-panes .pane-resizer span { width: 68px; background: var(--accent); }
.resizing-panes { user-select: none; cursor: row-resize; }
.preview-pane { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--preview-canvas); container: preview-pane / inline-size; }
.page-viewer { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.column-resizer { position: relative; z-index: 4; display: grid; place-items: center; cursor: row-resize; background: var(--workbench-resizer); touch-action: none; }
.column-resizer span { width: 42px; height: 2px; border-radius: var(--radius-control); background: var(--workbench-resizer-grip); transition: width .15s ease, background .15s ease; }
.column-resizer:hover span, .resizing-columns .column-resizer span { width: 68px; background: var(--accent); }
.resizing-columns { user-select: none; cursor: row-resize; }
.preview-header { min-width: 0; min-height: 72px; overflow: hidden; padding: 10px 16px; display: flex; justify-content: space-between; gap: 20px; align-items: center; background: var(--surface-subtle); border-bottom: 1px solid var(--line-strong); }
.preview-title { min-width: 0; flex: 1 1 0; overflow: hidden; }
.preview-header [data-preview-target="number"] { color: var(--accent); font-size: 9px; font-weight: 750; letter-spacing: .11em; }
.preview-header h2 { margin: 2px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 17px Georgia, serif; }
.preview-actions { min-width: max-content; max-width: 100%; flex: 0 0 auto; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.preview-actions > span { color: var(--muted); font-size: 9px; }
.preview-actions .is-excluded { color: var(--green); border-color: var(--green); }
.zoom-controls { height: 32px; display: inline-flex; align-items: stretch; border: 1px solid var(--control-border); background: var(--paper); }
.zoom-controls button { border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 12px; }
.zoom-controls button:not(.icon-button) { min-width: 30px; padding: 0 8px; }
.zoom-controls button .ui-glyph { width: 13px; height: 13px; margin: auto; }
.zoom-controls button:last-child { border-right: 0; }
.zoom-controls button:hover, .zoom-controls button:focus-visible { background: var(--surface-hover); }
.zoom-controls .zoom-level { min-width: 48px; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.zoom-controls .fit-button { min-width: 40px; font-size: 9px; font-weight: 750; text-transform: uppercase; }
@container preview-pane (max-width: 520px) {
  .preview-header { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .preview-actions > span { display: none; }
}
@container preview-pane (max-width: 320px) {
  .preview-header { gap: 4px; padding-left: 8px; padding-right: 8px; }
  .zoom-controls button:not(.icon-button) { min-width: 26px; padding-left: 4px; padding-right: 4px; }
  .zoom-controls .zoom-level { min-width: 40px; }
  .zoom-controls .fit-button { min-width: 34px; }
}
.page-stage { position: relative; min-height: 0; overflow: hidden; padding: 0; display: grid; background: var(--workbench-stage); cursor: grab; touch-action: none; }
.page-stage.panning { cursor: grabbing; }
.page-stage img { position: absolute; top: 0; left: 0; display: block; max-width: none; height: auto; transform-origin: 0 0; will-change: transform; user-select: none; background: white; box-shadow: var(--elevation-document); }
.page-stage img[hidden] { display: none; }
.page-empty[hidden] { display: none; }
.page-stage.excluded-preview img { opacity: .34; filter: grayscale(1); }
.page-stage.excluded-preview::after { content: attr(data-exclusion-label); position: absolute; top: 50%; left: 50%; z-index: 5; width: min(72%, 420px); padding: 12px 16px; border: 3px solid rgba(145,43,35,.72); color: rgba(145,43,35,.9); background: rgba(255,254,250,.74); font-size: clamp(17px, 3vw, 34px); font-weight: 750; letter-spacing: .14em; text-align: center; transform: translate(-50%, -50%) rotate(-9deg); pointer-events: none; }
.page-empty { --content-state-padding: 16px; place-self: center; font-size: 11px; }
.preview-page-bar { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 5px 12px; border-top: 1px solid var(--line-workbench); background: var(--surface-subtle); }
.preview-page-bar[hidden] { display: none; }
.preview-page-bar > span { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.preview-page-bar > div { display: flex; align-items: center; gap: 4px; }
.preview-page-bar .icon-action { border: 1px solid var(--control-border); background: var(--paper); }
.preview-page-bar .icon-action:hover, .preview-page-bar .icon-action:focus-visible { border-color: var(--ink); }
.filmstrip { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; overflow-x: hidden; overflow-y: auto; padding: 8px; background: var(--workbench-tray); border-top: 1px solid var(--line-workbench); overscroll-behavior: contain; }
.filmstrip > .preview-loading { align-self: center; }
.film-document { position: relative; flex: 0 0 auto; min-width: 0; min-height: 152px; max-width: 100%; margin-bottom: 0; display: grid; grid-template-columns: 26px 38px minmax(0, 1fr) auto; grid-template-rows: auto auto minmax(0, 1fr); border: 1px solid var(--line-strong); background: var(--review-state-surface, rgba(255,254,250,.8)); box-shadow: inset var(--review-state-edge-width, 3px) 0 0 var(--review-state-edge, transparent); transition: opacity .14s ease, border-color .14s ease, box-shadow .14s ease; }
.film-document.movement-locked { grid-template-columns: 38px minmax(0, 1fr) auto; }
.film-document.movement-locked .document-drag-rail { display: none; }
.film-document.movement-locked .document-control-rail { grid-column: 1; }
.film-document.movement-locked .film-document-heading { grid-column: 2; }
.film-document.movement-locked .document-processing-status { grid-column: 2; }
.film-document.movement-locked .film-grid { grid-column: 2; }
.film-document.movement-locked .document-review-tray { grid-column: 3; }
.film-document.excluded { background: var(--status-neutral-surface); }
.film-document.exhibit-excluded { background: var(--status-neutral-surface); border-color: var(--status-neutral-border); }
.film-document.confirmed-locked { border-color: var(--status-positive-border); background: var(--status-positive-surface); box-shadow: none; }
.film-document.excluded .film-grid, .film-document.exhibit-excluded .film-grid { opacity: .48; filter: grayscale(1); }
.film-document.dragging { opacity: .28; }
.film-document-heading { min-width: 0; grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px 0; }
.document-inherited-state { flex: 0 0 auto; padding: 3px 5px; border: 1px solid var(--status-neutral-border); color: var(--muted-strong); background: var(--status-neutral-surface); font-size: 7px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.document-drag-rail { grid-column: 1; grid-row: 1 / -1; min-height: 0; border-right: 1px solid var(--line-strong); }
.document-drag-rail .document-drag-handle { width: 100%; height: 100%; min-height: 100%; }
.document-control-rail { grid-column: 2; grid-row: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border-right: 1px solid var(--line-strong); }
.document-drag-handle { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--muted); }
.icon-action { border: 0; background: transparent; color: var(--muted); }
.document-file-action[aria-disabled="true"] { opacity: .35; }
.document-drag-handle:hover, .document-drag-handle:focus-visible, .icon-action:hover, .icon-action:focus-visible { color: var(--accent-dark); background: var(--surface-hover); }
.document-drag-handle { cursor: grab; font-size: 14px; }
.document-identity { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px; }
.document-identity strong, .document-identity span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-identity strong { color: var(--ink); font-size: 8px; line-height: 1.2; }
.document-identity span { color: var(--muted); font-size: 7px; line-height: 1.2; }
.document-review-tray { grid-column: 4; grid-row: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 7px; border-left: 1px solid var(--line-strong); background: rgba(245,242,235,.72); }
.document-review-tray .document-confirm { padding: 0; }
.document-include, .page-toggle { font-size: 15px; line-height: 1; }
.page-toggle[hidden] { display: none !important; }
.document-include.is-excluded, .page-toggle.is-excluded { color: var(--accent-dark); background: var(--surface-accent); }
.icon-action.danger { color: var(--status-danger); }
.document-processing-status { --content-state-padding: 7px 9px; grid-column: 3; grid-row: 2; justify-self: stretch; margin: 5px 8px 0; border: 1px solid var(--status-danger-border); border-left: 3px solid var(--status-danger); font-size: 9px; }
.document-processing-status.content-state--loading { border-color: var(--line-strong); background: var(--surface-subtle); }
.document-failure-body { min-width: 0; width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.document-failure-body:has(.document-failure-details[open]) { display: grid; gap: 4px; }
.document-failure-body > span { font-weight: 650; }
.document-failure-details { min-width: 0; color: var(--muted-strong); }
.document-failure-details summary { color: var(--status-danger); font-weight: 750; white-space: nowrap; cursor: pointer; }
.document-failure-details[open] { width: 100%; }
.document-failure-details[open] summary { margin-bottom: 7px; }
.document-failure-details p { margin: 5px 0; max-width: 76ch; line-height: 1.45; }
.document-image-safe-repair { margin-top: 5px; }
.film-grid { min-width: 0; min-height: 0; grid-column: 3; grid-row: 3; overflow-x: auto; overflow-y: hidden; padding: 6px 8px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 108px; align-items: start; justify-content: start; gap: 8px; }
.document-processing-empty { --content-state-padding: 15px 7px; grid-column: 1 / -1; }
.film-page-shell { min-width: 0; }
.film-page-media { position: relative; width: 100%; aspect-ratio: 8.5/11; }
.film-page { position: relative; width: 100%; height: 100%; padding: 0; border: 1px solid var(--control-border); background: white; transition: transform .12s ease, border-color .12s ease; }
.film-page-actions { --focus-color: white; position: absolute; right: 4px; bottom: 4px; z-index: 4; display: flex; gap: 2px; opacity: 0; pointer-events: none; transform: translateY(2px); transition: opacity .12s ease, transform .12s ease; }
.film-page-shell:hover .film-page-actions, .film-page-shell:has(.film-page.active) .film-page-actions, .film-page-actions:focus-within { opacity: 1; pointer-events: auto; transform: none; }
.film-page-quick-toggle { border: 1px solid rgba(255,255,255,.78); border-radius: var(--radius-control); color: white; background: rgba(31,41,49,.88); }
.film-page-quick-toggle:focus-visible, .film-page-quick-toggle.is-excluded { transform: none; }
.film-page-quick-toggle:hover { background: var(--accent); }
.film-page-quick-toggle.is-excluded { color: white; background: var(--green); }
.film-page-rotation-controls { display: contents; }
.film-page-rotation-controls button { border: 1px solid rgba(255,255,255,.78); border-radius: var(--radius-control); color: white; background: rgba(31,41,49,.88); }
.film-page-rotation-controls button:hover, .film-page-rotation-controls button:focus-visible { background: var(--accent); }
.film-page-rotation-controls button:disabled { opacity: .55; }
.film-page.loading::before { --activity-indicator-size: 18px; --activity-indicator-track: rgba(31,43,52,.2); position: absolute; top: 42%; left: 50%; z-index: 2; margin: -9px 0 0 -9px; }
.film-page.load-error::before { content: "!"; position: absolute; top: 42%; left: 50%; z-index: 2; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: var(--radius-circle); background: var(--status-danger); color: white; font: 700 12px/20px sans-serif; text-align: center; }
.film-page-media:hover .film-page { transform: translateY(-2px); border-color: var(--accent); }
.film-page.active { border: 2px solid var(--accent); box-shadow: 0 0 0 2px rgba(182,75,49,.15); }
.film-page.excluded { opacity: .38; filter: grayscale(1); }
.film-page.excluded::after { content: "EXCLUDED"; position: absolute; top: 45%; left: 3px; right: 3px; padding: 2px; color: white; background: var(--exclusion-overlay); font-size: 6px; font-weight: 750; letter-spacing: .06em; transform: rotate(-8deg); }
.film-page-preview { display: grid !important; width: 100%; height: 100%; place-items: center; overflow: hidden; padding: 0 !important; background: white; }
.film-page img { display: block; width: 100%; aspect-ratio: 8.5/11; object-fit: contain; transform: rotate(var(--page-rotation, 0deg)); transition: transform .16s ease; }
.film-page img.quarter-turned { transform: rotate(var(--page-rotation, 0deg)) scale(var(--page-quarter-scale, .7727)); }
.film-page img:not([src]) { background: linear-gradient(110deg, #f7f5ef 35%, #ece9e1 50%, #f7f5ef 65%); background-size: 220% 100%; animation: preview-shimmer 1.4s linear infinite; }
.film-page-number { position: absolute; top: 4px; left: 4px; z-index: 4; min-width: 20px; padding: 3px 6px; border-radius: var(--radius-control); color: white; background: rgba(31,41,49,.72); font-size: 8px; font-weight: 750; line-height: 1.2; text-align: center; pointer-events: none; }
.preview-loading { --content-state-padding: 20px 8px; }
.source-add-tile { position: relative; flex: 0 0 36px; align-self: stretch; width: 100%; min-height: 36px; border: 1px dashed var(--line-workbench); background: rgba(255,254,250,.38); transition: border-color .14s ease, background .14s ease, box-shadow .14s ease; }
.source-add-tile:only-child { flex: 1 1 auto; min-height: 0; }
.source-add-button { width: 100%; height: 100%; min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 9px; border: 0; background: transparent; color: var(--muted); text-align: center; }
.source-add-button > span { font-size: 17px; color: var(--accent); }
.source-add-button strong { color: var(--ink); font-size: 10px; }
.source-add-tile:only-child .source-add-button > span { font-size: 20px; }
.source-add-tile:only-child .source-add-button strong { font-size: 12px; }
.source-add-tile:hover, .source-add-tile.file-drop-active, .source-add-tile.document-drop-end { border-color: var(--accent); background: var(--surface-accent-soft); box-shadow: inset 0 0 0 2px var(--accent-outline); }
.film-document.document-drop-before::before, .film-document.document-drop-after::after { content: ""; position: absolute; z-index: 6; left: -2px; right: -2px; height: 3px; background: var(--accent); box-shadow: 0 0 0 2px var(--accent-outline); }
.film-document.document-drop-before::before { top: -6px; }
.film-document.document-drop-after::after { bottom: -6px; }
.dragging-source-document .filing-exhibit-row { box-shadow: inset 0 0 0 1px var(--accent-edge); }
.dragging-source-document .filing-exhibit-row.document-drop-target { background: var(--surface-accent); box-shadow: inset 0 0 0 2px var(--accent), inset 7px 0 0 var(--accent); }

.document-inclusion { display: flex; align-items: center; gap: 7px; min-height: 38px; white-space: nowrap; }
.document-inclusion input { accent-color: var(--green); }
.processing-error { margin: 0; color: var(--status-danger); font-size: 10px; line-height: 1.4; }

.export-link[disabled] { cursor: wait; opacity: .7; }

@media print {
  body.workspace-body { background: white; }
  .app-main { padding: 0; }
}

.auth-body { min-height: 100vh; background: var(--canvas); }
.auth-main, .password-change-main { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: var(--canvas); }
.auth-page { width: 100%; display: grid; justify-items: center; gap: 14px; }
.auth-policy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--muted); font-size: 10px; }
.auth-policy-links a { text-decoration: underline; text-underline-offset: 2px; }
.auth-shell { width: min(440px, 100%); overflow: hidden; border: 1px solid var(--field-border); border-top: 4px solid var(--accent); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--elevation-resting); animation: rise .3s ease both; }
.auth-shell-wide { width: min(540px, 100%); }
.auth-brand { min-height: 66px; display: flex; align-items: center; gap: 11px; padding: 13px 24px; border-bottom: 1px solid var(--line); color: var(--ink); font: 500 19px Georgia, serif; }
.auth-logo { width: 38px; height: 38px; object-fit: contain; }
.auth-heading { padding: 28px 32px 8px; }
.auth-heading h1 { margin: 7px 0 9px; font: 500 34px/1.08 Georgia, serif; letter-spacing: -.025em; }
.auth-heading > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-form { display: grid; gap: 16px; padding: 18px 32px 30px; font-size: 12px; line-height: 1.5; }
.auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="tel"] { min-height: 40px; padding: 9px 11px; font-size: 13px; }
.auth-form .button { min-height: 38px; font-size: 12px; }
.auth-form > p, .auth-form > small { margin: 0; }
.auth-form > small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.auth-form form { margin: 0; }
.auth-form > .auth-credential-error { margin-top: -8px; }
.auth-secondary-action { width: 100%; }
.mfa-email-account-choice { display: grid; gap: 14px; }
.mfa-email-account-choice p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-disclosure { border-top: 1px solid var(--line); padding-top: 14px; }
.auth-disclosure summary { color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 650; line-height: 1.4; }
.auth-disclosure summary:hover { color: var(--accent-dark); }
.auth-disclosure .mfa-code-form, .mfa-alternate-email .auth-form { padding: 16px 0 0; }
.remember-field { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.remember-field input { accent-color: var(--accent); }
.mfa-methods .button { justify-content: center; }
.mfa-method-option { display: grid; gap: 6px; }
.mfa-method-option > .button { width: 100%; }
.mfa-method-option > small { padding: 0 2px; }
.mfa-method-button { gap: 8px; }
.mfa-method-recommendation { padding: 2px 5px; border: 1px solid currentColor; border-radius: var(--radius-pill); font-size: 7px; font-weight: 750; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; }
.mfa-methods small { color: var(--muted); line-height: 1.5; }
.mfa-secret { display: block; margin-top: 6px; padding: 12px; border: 1px solid var(--line); background: var(--canvas); font: 650 15px/1.4 monospace; letter-spacing: .08em; overflow-wrap: anywhere; }
.mfa-uri code { display: block; margin-top: 8px; overflow-wrap: anywhere; font-size: 10px; }
.mfa-code-form { display: grid; gap: 12px; }
.otp-field { display: grid; gap: 7px; }
.otp-input { position: relative; width: min(100%, 326px); display: block; justify-self: center; }
.otp-input__cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.otp-input__cell { min-width: 0; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--field-border); background: var(--field-background); color: var(--ink); font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1; transition: border-color .12s ease, box-shadow .12s ease, background .12s ease; }
.otp-input__cell.is-filled { border-color: var(--control-border); background: var(--paper); }
.otp-input__cell.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-halo); }
.auth-form .otp-input__native { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; color: transparent; caret-color: transparent; opacity: .01; }
.otp-input__error { margin-top: 1px; }
.otp-input__error[hidden] { display: none; }
.mfa-factor-setup-form { display: grid; gap: 16px; }
.mfa-factor-choices { display: grid; gap: 8px; }
.mfa-factor-choices form, .mfa-factor-choices .button { width: 100%; }
.mfa-code-sent { display: grid; gap: 2px; padding: 11px 13px; border-left: 3px solid var(--status-positive); background: var(--status-positive-surface); color: var(--muted); font-size: 11px; line-height: 1.45; }
.mfa-code-sent strong { color: var(--ink); font-size: 12px; }
.mfa-delivery-help { margin-top: -3px; }
.mfa-delivery-help > summary { width: fit-content; color: var(--muted); cursor: pointer; font-size: 10px; text-decoration: underline; text-underline-offset: 2px; }
.mfa-delivery-help > summary:hover, .mfa-delivery-help > summary:focus-visible { color: var(--accent-dark); }
.mfa-delivery-help-options { display: grid; gap: 9px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); background: var(--surface-subtle); }
.mfa-delivery-help-options p, .mfa-delivery-help-options small { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.mfa-delivery-help-options form, .mfa-delivery-help-options .button { width: 100%; }
.mfa-alternate-methods { display: grid; gap: 7px; margin-top: 3px; padding-top: 11px; border-top: 1px solid var(--line); }
.mfa-alternate-methods > strong { font-size: 10px; }
.mfa-current-verification { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.mfa-current-verification strong { color: var(--ink); }
.mfa-proof-actions { display: grid; gap: 8px; }
.mfa-proof-actions form, .mfa-proof-actions .button { width: 100%; }
.mfa-resend-button { width: 100%; }
.development-verification-code { margin: 0; padding: 10px 12px; border: 1px solid var(--line); background: var(--canvas); color: var(--muted); font-size: 11px; }
.development-verification-code code { color: var(--ink); font-size: 13px; font-weight: 750; letter-spacing: .08em; }
.sms-phone-fields { min-width: 0; display: grid; gap: 7px; margin: 0; padding: 0; border: 0; }
.sms-phone-fields legend { margin: 0 0 7px; padding: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sms-phone-inputs { display: grid; grid-template-columns: minmax(96px, .34fr) minmax(0, 1fr); gap: 9px; }
.sms-phone-inputs label { min-width: 0; }
.sms-country-code-combobox { position: relative; display: block; }
.sms-country-code-combobox > input { padding-right: 34px !important; }
.sms-country-code-toggle { position: absolute; top: 1px; right: 1px; width: 32px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--muted); }
.sms-country-code-toggle:hover, .sms-country-code-toggle:focus-visible { color: var(--ink); background: var(--surface-hover); }
.sms-country-code-toggle span { width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.sms-country-code-options { position: absolute; z-index: 12; top: calc(100% + 3px); left: 0; width: min(310px, calc(100vw - 64px)); max-height: 220px; overflow-y: auto; border: 1px solid var(--control-border); background: var(--paper); box-shadow: var(--elevation-menu); }
.sms-country-code-options[hidden] { display: none; }
.sms-country-code-options button { width: 100%; min-height: 34px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); text-align: left; }
.sms-country-code-options button:hover, .sms-country-code-options button.active, .sms-country-code-options button[aria-selected="true"] { background: var(--surface-hover); }
.sms-country-code-options strong { font-size: 11px; font-weight: 700; }
.sms-country-code-options span { overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 10px; white-space: nowrap; }
.sms-country-code-empty { display: block; padding: 10px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.sms-country-code-empty[hidden] { display: none; }
.sms-country-code-help { margin: 0; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 0; line-height: 1.45; text-transform: none; }
.sms-consent-choice { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; color: var(--ink); font-size: 10px; font-weight: 650; letter-spacing: 0; line-height: 1.5; text-transform: none; }
.sms-consent-choice input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent); }
.sms-consent-disclosure { margin: -5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.sms-consent-disclosure a { text-decoration: underline; text-underline-offset: 2px; }
.sms-preview-note { margin-top: -10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.mfa-recovery-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 0; padding-left: 24px; }
.mfa-recovery-codes code { font-size: 12px; }
.mfa-factor-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-form .auth-submit { width: 100%; min-height: 40px; }
.auth-footnote { margin: 0; padding: 14px 24px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.auth-footnote form { display: flex; justify-content: center; margin: 0; }
.auth-account-link { display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 11px; }
.auth-account-link .button { color: var(--ink); font-weight: 750; }

.legal-shell { width: min(760px, 100%); overflow: hidden; border: 1px solid var(--field-border); border-top: 4px solid var(--accent); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--elevation-resting); }
.legal-heading { padding: 30px 38px 18px; border-bottom: 1px solid var(--line); }
.legal-heading h1 { margin: 7px 0 10px; font: 500 38px/1.08 Georgia, serif; letter-spacing: -.025em; }
.legal-heading > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.legal-content { display: grid; gap: 24px; padding: 28px 38px 36px; }
.legal-content section { display: grid; gap: 9px; }
.legal-content h2 { margin: 0; font: 500 21px/1.2 Georgia, serif; }
.legal-content p, .legal-content li { margin: 0; color: var(--muted-strong); font-size: 11px; line-height: 1.65; }
.legal-content ol { display: grid; gap: 7px; margin: 0; padding-left: 20px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.sms-opt-in-example { padding: 20px; border: 1px solid var(--line); background: var(--canvas); }
.sms-opt-in-example input[type="text"], .sms-opt-in-example input[type="tel"] { min-height: 40px; }

@media (max-width: 560px) {
  .first-run-coachmark { top: auto !important; right: 12px; bottom: 12px; left: 12px !important; width: auto; }
  .legal-heading { padding: 24px 22px 14px; }
  .legal-heading h1 { font-size: 31px; }
  .legal-content { padding: 22px; }
  .sms-phone-inputs { grid-template-columns: 104px minmax(0, 1fr); }
}

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes preview-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes activity-spin { to { transform: rotate(360deg); } }

@media (orientation: landscape) and (min-width: 901px) {
  .exhibit-workbench { grid-template-columns: minmax(720px, var(--table-pane-height, 46%)) 7px minmax(0, 1fr) 0; grid-template-rows: minmax(0, 1fr); }
  .exhibit-workbench.chat-open { grid-template-columns: minmax(320px, var(--table-pane-height, 46%)) 7px minmax(260px, 1fr) minmax(280px, 320px); }
  .table-pane { grid-column: 1; grid-row: 1; min-width: 0; border-right: 1px solid var(--line-workbench); border-bottom: 0; box-shadow: var(--elevation-pane-inline-end); }
  .pane-resizer { grid-column: 2; grid-row: 1; cursor: col-resize; }
  .pane-resizer span { width: 2px; height: 42px; }
  .pane-resizer:hover span, .resizing-panes .pane-resizer span { width: 2px; height: 68px; }
  .resizing-panes { cursor: col-resize; }
  .preview-pane { position: relative; z-index: 3; grid-column: 3; grid-row: 1; min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .page-viewer { grid-column: 1; grid-row: 1; }
  .chat-pane { grid-column: 4; grid-row: 1; }
  .workbench-bar { justify-content: flex-start; gap: 12px; padding: 8px 12px; }
  .workbench-brand { flex: 0 0 auto; }
  .workbench-bar h1 { display: none; }
  .workbench-case-context, .workbench-actions > span, .preview-actions > span { display: none; }
  .workbench-actions { flex: 1 1 auto; justify-content: flex-end; gap: 6px; }
  .filing-table-head, .filing-exhibit-row, .purpose-run { min-width: 720px; }
  .filing-table-head > div, .filing-exhibit-row > div { padding-left: 7px; padding-right: 7px; }
  .filing-table-head > div:nth-child(1), .filing-table-head > div:nth-child(2), .filing-table-head > div:nth-child(5), .filing-table-head > div:nth-child(7) { padding-right: 3px; padding-left: 3px; }
  .filing-section { min-width: 720px; }
  .row-leading-controls { padding-left: 3px !important; padding-right: 3px !important; }
}

@media (max-width: 900px) {
  .app-main { padding: 30px 18px 56px; }
  .dashboard-main { padding-top: 12px; }
  .dashboard-intro { padding-top: 28px; }
  .app-main.workspace-main { height: 100vh; padding: 0; }
  .exhibit-workbench { grid-template-rows: var(--table-pane-height, 52%) 7px minmax(0, 1fr); }
  .exhibit-workbench.chat-open { grid-template-columns: minmax(0, 1fr) 0; }
  .chat-pane { position: fixed; inset: 0 0 0 auto; z-index: 20; width: min(92vw, 360px); transform: translateX(100%); }
  .chat-open .chat-pane { transform: none; }
  .chat-open .preview-pane { margin-right: min(92vw, 360px); }
  .workbench-actions > span { display: none; }
  .preview-pane { grid-template-columns: minmax(0, 1fr); }
  .preview-actions > span { display: none; }
  .preview-header { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .film-document { grid-template-columns: 26px 36px minmax(0, 1fr) auto; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .auth-main, .password-change-main { padding: 18px 12px; }
  .auth-heading { padding: 24px 22px 8px; }
  .auth-heading h1 { font-size: 31px; }
  .auth-form { padding: 18px 22px 24px; }
}
