/* Shared Flat Workspace. Preserve the portal's Vercel neutral palette and fonts. */
:root {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --text: #171717;
  --text-2: #4d4d4d;
  --text-3: #6f6f6f;
  --border: #ebebeb;
  --border-strong: #dcdcdc;
  --link: #0070f3;
  --focus: #0070f3;
  --ok-bg: #ebf8ef;
  --ok-text: #18794e;
  --warn-bg: #fff6e6;
  --warn-border: #f2d7a6;
  --warn-text: #8a4b00;
  --danger-bg: #fdecec;
  --danger-text: #c62a2f;
  --info-bg: #ebf4ff;
  --info-text: #0761d1;
  --radius: 8px;
  --radius-sm: 6px;
  --font-sans: 'Geist', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'Pretendard Variable', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --topbar-h: 56px;
  --sidebar-w: 240px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--surface); color: var(--text); font: 400 14px/1.6 var(--font-sans); }
body.has-dialog, body.menu-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { background: transparent; border: 0; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus, h1:focus, .dialog-head h2:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 25px; line-height: 1.35; font-weight: 600; letter-spacing: -.7px; }
h2 { font-size: 16px; line-height: 1.45; font-weight: 600; letter-spacing: -.2px; }
h3 { font-size: 15px; font-weight: 600; }
svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
code, pre, .mono { font-family: var(--font-mono); }
code { font-size: .88em; overflow-wrap: anywhere; }
.small, .hint { font-size: 12px; }
.muted, .hint { color: var(--text-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 500; background: var(--surface); padding: 8px 16px; }
.skip-link:focus { top: 8px; }

/* Shell: sidebar owns the product identity, content owns its breadcrumb. */
.sidebar { width: var(--sidebar-w); height: 100dvh; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; background: var(--bg); border-right: 1px solid var(--border); padding: 0 12px 12px; z-index: 40; }
.brand { display: flex; align-items: center; gap: 11px; height: 72px; padding: 0 12px; color: var(--text); flex-shrink: 0; white-space: nowrap; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 18px; height: 18px; background: var(--text); clip-path: polygon(50% 0,100% 100%,0 100%); flex-shrink: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.nav-list a, .nav-list button { display: flex; align-items: center; gap: 11px; width: 100%; height: 36px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 13px; font-weight: 500; text-decoration: none; text-align: left; position: relative; white-space: nowrap; }
.nav-list a:hover, .nav-list button:hover { background: var(--surface-2); color: var(--text); }
.nav-list a[aria-current="page"] { background: var(--border); color: var(--text); }
.nav-label { overflow: hidden; text-overflow: ellipsis; }
.nav-tag { margin-left: auto; font-size: 10px; color: var(--text-3); }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.sidebar-foot { padding: 14px 12px 0; margin-top: 12px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 11px; }
.sidebar-foot summary { margin-bottom: 6px; }
.sidebar-foot code { display: block; }
.sidebar-collapsed { --sidebar-w: 64px; }
.sidebar-collapsed .sidebar { padding-left: 8px; padding-right: 8px; }
.sidebar-collapsed .brand { padding-left: 15px; }
.sidebar-collapsed .brand-name, .sidebar-collapsed .nav-label, .sidebar-collapsed .sidebar-foot { display: none; }
.sidebar-collapsed .nav-list a, .sidebar-collapsed .nav-list button { justify-content: center; padding: 0; }
.sidebar-collapsed [data-tooltip]:is(:hover,:focus-visible)::after { content: attr(data-tooltip); position: absolute; left: calc(100% + 12px); top: 2px; padding: 6px 10px; border-radius: 4px; background: var(--text); color: var(--surface); font-size: 12px; white-space: nowrap; pointer-events: none; }
.workspace-shell { margin-left: var(--sidebar-w); min-height: 100dvh; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; height: var(--topbar-h); padding: 0 36px; border-bottom: 1px solid var(--border); background: var(--surface); }
.breadcrumb { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.breadcrumb-root { color: var(--text-3); display: flex; gap: 14px; }
.topbar-spacer { flex: 1; }
.badge { font-size: 10px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; }
.badge-preview { color: var(--warn-text); background: var(--warn-bg); padding: 2px 6px; border-radius: 4px; }
.persona { display: flex; align-items: center; gap: 9px; min-width: 0; }
.persona label { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.persona-hint { display: none; }
.persona select { max-width: 236px; min-height: 30px; padding: 3px 25px 3px 8px; font-size: 11px; }
.preview-strip { padding: 8px 36px; color: var(--text-3); font-size: 11px; background: var(--bg); }
.preview-strip summary { width: fit-content; }
.preview-strip p { padding: 8px 0 3px; max-width: 800px; }
.menu-toggle { display: none !important; }
.scrim { position: fixed; inset: 0; background: rgb(0 0 0 / 18%); z-index: 35; }

/* Open canvas, content-sized sections and flat rows. */
main { min-width: 0; }
.page { max-width: 1500px; margin: 0 auto; padding: 34px 36px 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
.page-head > div { min-width: 0; }
.page-head p { color: var(--text-3); margin-top: 8px; font-size: 13px; max-width: 840px; }
.page-head .btn { flex-shrink: 0; }
.section { margin-top: 32px; min-width: 0; }
.section-head, .card-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.section-head p { margin-top: 4px; }
.section-head > a, .section-head > button { flex-shrink: 0; font-size: 12px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
input:not([type="checkbox"]), select, textarea { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); min-height: 36px; padding: 7px 10px; max-width: 100%; min-width: 0; }
input::placeholder { color: var(--text-3); }
.toolbar input[type="search"] { flex: 1 1 260px; max-width: 480px; }
.toolbar select { max-width: 240px; font-size: 12px; }
.filters, .tabs { display: flex; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.filters button, .tabs button { padding: 9px 1px 11px; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 500; color: var(--text-3); }
.filters button[aria-pressed="true"], .tabs button[aria-selected="true"] { border-bottom-color: var(--text); color: var(--text); }
.filters button:hover, .tabs button:hover { color: var(--text); }
.result-count { margin: 18px 0 4px; color: var(--text-3); font-size: 12px; }
.summary-strip { display: flex; flex-wrap: wrap; gap: 24px 52px; padding: 18px 0 24px; margin: 0; border-bottom: 1px solid var(--border); }
.summary-strip > div { display: flex; align-items: baseline; gap: 12px; }
.summary-strip dt { font-size: 12px; color: var(--text-3); }
.summary-strip dd { margin: 0; font-size: 20px; letter-spacing: -.5px; font-weight: 500; }
.row-list { list-style: none; padding: 0; margin: 0; }
.list-item + .list-item { border-top: 1px solid var(--border); }
.list-row { display: grid; grid-template-columns: 18px minmax(0,1fr) minmax(64px,auto) 100px 12px; gap: 18px; align-items: center; width: 100%; text-align: left; color: var(--text); padding: 18px 4px; font-size: 13px; text-decoration: none; }
.list-row:hover { background: var(--bg); text-decoration: none; }
.row-icon { color: var(--text-3); align-self: start; margin-top: 2px; }
.row-content { min-width: 0; display: block; }
.row-title { display: block; font-weight: 500; font-size: 14px; overflow-wrap: anywhere; line-height: 1.55; }
.row-description { display: block; color: var(--text-3); font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.row-title, .row-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.row-status { font-size: 12px; color: var(--text-3); }
.row-status > span { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-date { color: var(--text-3); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.row-arrow { color: var(--text-3); font-size: 18px; }
.document-groups .section { margin-top: 30px; }
.document-groups .list-row { grid-template-columns: 18px minmax(0,1fr) 48px 0 12px; }
.timeline .section-head h2 { font-size: 13px; color: var(--text-3); }
.timeline .section { margin-top: 26px; }
.timeline .list-row { grid-template-columns: 18px minmax(0,1fr) 100px 0 12px; }
.where-list { list-style: none; padding: 0; margin: 0; }
.where-list li { display: flex; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 13px; }
.where-list li > span:first-child { flex: 1; }
.quick-links { display: flex; flex-wrap: wrap; gap: 28px; padding: 8px 0 0; }
.empty { color: var(--text-3); padding: 38px 0; font-size: 13px; }
.loading { padding: 48px; color: var(--text-3); }

/* Actions and understated status, not decorative containers. */
.btn, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 12px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { color: var(--surface); background: var(--text); border: 1px solid var(--text); }
.btn-primary:hover { background: var(--text-2); }
.btn-secondary { border: 1px solid var(--border-strong); background: var(--surface); }
.btn-secondary:hover, .btn-ghost:hover, .icon-button:hover { background: var(--surface-2); }
.btn-ghost { color: var(--text-2); }
.btn-danger { color: var(--danger-text); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { min-height: 30px; padding: 4px 9px; font-size: 11px; }
.icon-button { width: 36px; padding: 0; font-size: 23px; flex-shrink: 0; }
.btn-row, .pill-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; padding: 1px 6px; font-size: 10px; white-space: nowrap; background: var(--surface-2); color: var(--text-3); }
.pill-ok { background: var(--ok-bg); color: var(--ok-text); }
.pill-warn { background: var(--warn-bg); color: var(--warn-text); }
.pill-danger { background: var(--danger-bg); color: var(--danger-text); }
.inline-link, .link-button { padding: 0; color: var(--link); font: inherit; text-align: left; overflow-wrap: anywhere; }
.inline-link:hover, .link-button:hover { text-decoration: underline; }
.notice { display: flex; flex-direction: column; gap: 5px; border-left: 2px solid var(--border-strong); padding: 8px 12px; margin: 16px 0; color: var(--text-2); font-size: 13px; }
.notice-warn { border-color: var(--warn-border); color: var(--warn-text); }
.notice-danger { border-color: var(--danger-text); color: var(--danger-text); }
.error { color: var(--danger-text); font-size: 13px; }
.fold { border-top: 1px solid var(--border); padding: 14px 0; margin-top: 18px; }
.fold summary { color: var(--text-2); font-size: 12px; overflow-wrap: anywhere; }
.fold[open] summary { margin-bottom: 14px; }
.fold summary > span + span { margin-left: 12px; }
.fold p { overflow-wrap: anywhere; }
.full-path { display: block; overflow-wrap: anywhere; }
.kv, .meta-list { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px 16px; margin: 22px 0; font-size: 12px; }
.kv dt, .meta-list dt { color: var(--text-3); }
.kv dd, .meta-list dd { margin: 0; overflow-wrap: anywhere; }

/* Onboarding is a sequence with a clear next action, not a grid of statistics. */
.onboarding-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); column-gap: 52px; align-items: start; }
.progress { height: 3px; background: var(--border); margin: 14px 0 16px; }
.progress > span { display: block; height: 100%; background: var(--text); }
.next-step { display: flex; flex-direction: column; gap: 3px; padding: 6px 0 14px; }
.next-step strong { font-size: 14px; font-weight: 500; }
.steps { list-style: none; padding: 0; margin: 0 0 14px; }
.steps li { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); }
.step-icon { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.step-done .step-icon { color: var(--ok-text); }
.step-label { font-size: 12px; font-weight: 500; }
.step-detail { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.prompt-card > p { font-size: 13px; margin: 0 0 18px; }
.prompt-card .btn-row { margin: 16px 0; }
.ordered-entry { padding-left: 20px; }
.ordered-entry li { padding: 9px 0; }

/* Tree: one open list; details appear only on demand. */
.tree, .tree ul { list-style: none; padding: 0; margin: 0; }
.tree ul { padding-left: 22px; }
.tree [aria-expanded="false"] > ul { display: none; }
.tree-row { display: flex; gap: 10px; align-items: center; min-height: 46px; padding: 9px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.tree-row:hover { background: var(--bg); }
.tree [role="treeitem"]:focus-visible { outline: none; }
.tree [role="treeitem"]:focus-visible > .tree-row { outline: 2px solid var(--focus); outline-offset: -2px; }
.tree [aria-selected="true"] > .tree-row { background: var(--surface-2); }
.caret { flex: 0 0 20px; width: 20px; height: 26px; padding: 0; color: var(--text-3); }
.node-icon { color: var(--text-3); width: 16px; height: 16px; }
.node-name { font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; min-width: 0; }
.node-title { color: var(--text-3); font-size: 12px; margin-left: auto; text-align: right; overflow-wrap: anywhere; min-width: 0; max-width: 55%; }
.node-tag { margin-left: auto; }
mark { background: var(--warn-bg); color: inherit; }
.detail-path { display: flex; align-items: flex-start; gap: 10px; }
.detail-path code { flex: 1; min-width: 0; }
.role-box { margin-top: 24px; }
.role-box p { margin-top: 6px; }

/* Shared right drawer; wide reading mode is an independent document surface. */
.detail-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; width: min(480px,100%); max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-left: 1px solid var(--border); background: var(--surface); color: var(--text); overflow: hidden; }
.detail-dialog[open] { display: flex; flex-direction: column; }
.detail-dialog::backdrop { background: rgb(0 0 0 / 14%); }
.dialog-head { display: flex; gap: 12px; align-items: flex-start; padding: 22px 24px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.dialog-titles { flex: 1; min-width: 0; }
.dialog-head h2 { font-size: 17px; overflow-wrap: anywhere; margin-top: 4px; }
.eyebrow { color: var(--text-3); font-size: 10px; letter-spacing: .3px; }
.dialog-actions { display: flex; gap: 8px; }
.dialog-body { padding: 0 24px 36px; overflow: auto; overscroll-behavior: contain; min-height: 0; flex: 1; }
.dialog-body > :first-child { margin-top: 24px; }
.dialog-body .section { margin-top: 26px; }
.dialog-body p + h3 { margin-top: 24px; }
.dialog-body h3 + p { margin-top: 8px; }
.dialog-body .list-row { grid-template-columns: 16px minmax(0,1fr) auto 0 12px; gap: 10px; }
.dialog-body .row-date { display: none; }
.dialog-body .row-status { font-size: 10px; }
.tabs { position: sticky; top: 0; background: var(--surface); padding-top: 4px; z-index: 1; }
.tabbed-detail { margin-top: 0 !important; }
[role="tabpanel"] { padding-top: 20px; }
.detail-description { color: var(--text-2); }
.reader-wide { width: min(1120px,calc(100vw - 64px)); }
.reader-wide .dialog-body { padding-left: clamp(24px,6vw,84px); padding-right: clamp(24px,6vw,84px); }
.source-metadata { margin-top: 0 !important; border-top: 0; border-bottom: 1px solid var(--border); }
.md { font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.md h3 { font-size: 21px; margin: 28px 0 14px; }
.md h4 { font-size: 17px; margin: 24px 0 10px; }
.md h5, .md h6 { font-size: 14px; margin: 20px 0 8px; }
.md p, .md ul, .md ol, .md blockquote, .md pre { margin: 12px 0; }
.md ul, .md ol { padding-left: 24px; }
.md pre, .code-block { padding: 16px; background: var(--bg); overflow: auto; font: 12px/1.8 var(--font-mono); max-width: 100%; }
.md pre code, .code-block code { font-size: inherit; overflow-wrap: normal; }
.md code:not(pre code) { background: var(--surface-2); padding: 1px 4px; border-radius: 3px; }
.md blockquote { border-left: 2px solid var(--border-strong); padding-left: 16px; color: var(--text-2); }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-2); font-weight: 500; }

/* Editor boundaries are inputs, not a stack of boxes. */
.editor-form { display: grid; gap: 22px; }
.editor-form .notice, .editor-form .kv { margin: 0; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, legend { font-size: 12px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; }
.check-row { display: flex; flex-direction: column; gap: 12px; }
.check-row label { display: flex; gap: 10px; align-items: center; font-size: 13px; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--text); }
.editor-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 150; max-width: min(460px,calc(100vw - 32px)); pointer-events: none; }
.toast { margin-top: 8px; background: var(--text); color: var(--surface); padding: 11px 16px; border-radius: 6px; font-size: 12px; overflow-wrap: anywhere; }
.toast-error { background: var(--danger-text); }
.noscript { margin: 30px; }

@media (max-width: 1199px) {
  .topbar { padding: 0 28px; }
  .preview-strip { padding-left: 28px; padding-right: 28px; }
  .page { padding: 30px 28px 52px; }
  .persona label { display: none; }
  .onboarding-layout { column-gap: 32px; }
}
@media (max-width: 900px) {
  .onboarding-layout { grid-template-columns: 1fr; }
  .onboarding-layout .prompt-card { padding-bottom: 24px; border-bottom: 1px solid var(--border); }
  .list-row { grid-template-columns: 18px minmax(0,1fr) auto 12px; gap: 12px; }
  .row-date { grid-column: 2; text-align: left; }
  .row-arrow { grid-column: 4; grid-row: 1; }
}
@media (max-width: 767px) {
  html { scrollbar-gutter: auto; }
  :root, .sidebar-collapsed { --sidebar-w: 0px; }
  .sidebar { width: 240px; transform: translateX(-100%); visibility: hidden; overflow-y: auto; }
  .sidebar.open { transform: none; visibility: visible; }
  .workspace-shell { margin-left: 0; }
  .menu-toggle { display: inline-flex !important; }
  .topbar { gap: 8px; padding: 0 16px; }
  .breadcrumb { font-size: 12px; flex: 1; min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; }
  .topbar-spacer { display: none; }
  .breadcrumb-root { display: none; }
  .persona select { width: 118px; font-size: 10px; }
  .badge { font-size: 8px; padding: 2px 4px; }
  .preview-strip { padding: 8px 20px; font-size: 10px; }
  .page { padding: 26px 20px 48px; }
  h1 { font-size: 22px; }
  .page-head { flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
  .page-head p { font-size: 12px; }
  .toolbar { gap: 8px; }
  .toolbar input[type="search"] { max-width: none; flex-basis: 100%; }
  .toolbar select { flex: 1; max-width: 100%; min-width: 120px; }
  .filters, .tabs { gap: 22px; }
  .summary-strip { gap: 16px 26px; }
  .summary-strip > div { flex-direction: column; gap: 0; }
  .summary-strip dd { font-size: 18px; }
  .list-row, .document-groups .list-row, .timeline .list-row, .dialog-body .list-row { grid-template-columns: 16px minmax(0,1fr) 12px; gap: 6px 12px; padding: 16px 0; }
  .row-title { font-size: 13px; }
  .row-description { font-size: 11px; }
  .row-status { grid-column: 2; font-size: 11px; }
  .row-date { grid-column: 2; }
  .row-arrow { grid-column: 3; grid-row: 1; }
  .row-status:empty, .row-date:empty { display: none; }
  .where-list li { flex-wrap: wrap; gap: 4px 10px; }
  .where-list li > span:first-child { flex-basis: 100%; }
  .tree ul { padding-left: 12px; }
  .tree-row { flex-wrap: wrap; gap: 6px; }
  .node-title { flex-basis: 100%; max-width: 100%; padding-left: 48px; text-align: left; font-size: 11px; }
  .node-name { flex: 1; font-size: 11px; }
  .detail-dialog, .reader-wide { width: 100vw; max-width: 100%; border: 0; }
  .dialog-head { padding: 18px 20px; gap: 8px; }
  .dialog-head h2 { font-size: 15px; }
  .dialog-body, .reader-wide .dialog-body { padding: 0 20px 32px; }
  .dialog-actions .btn { padding: 5px 7px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
/* Real login/activation keeps the flat workspace composition. */
.auth-content { max-width: 640px; display: grid; gap: 20px; justify-items: start; padding-block: 24px; }
[hidden] { display: none !important; }
