:root {
  color-scheme: dark;
  --page: #171916;
  --paper: #1e211d;
  --elevated: #272b24;
  --ink: #f0eee5;
  --muted: #b0b4a7;
  --line: #373d32;
  --control-line: #747e68;
  --accent: #d5f879;
  --accent-hover: #e3ff9d;
  --accent-ink: #202719;
  --soft: #2b3522;
  --warning: #f1c78d;
  --warning-bg: #362e22;
  --danger: #ffb4a7;
  --danger-bg: #3a2925;
  --art-line: #78816b;
  --shadow: #05070445;
  --radius: 5px;
  --header-height: 77px;
  --quick-bar-height: 68px;
  --quick-bar-bottom: max(.75rem, env(safe-area-inset-bottom));
  --meta-size: .75rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Helvetica Neue", "Arial", sans-serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #f0eee5;
  --paper: #faf9f3;
  --elevated: #e6e8dc;
  --ink: #24291e;
  --muted: #5a6250;
  --line: #cbd0bf;
  --control-line: #7b866d;
  --accent: #466517;
  --accent-hover: #344e0c;
  --accent-ink: #202719;
  --soft: #e5edce;
  --warning: #79521b;
  --warning-bg: #f7ead4;
  --danger: #a23928;
  --danger-bg: #fce6de;
  --art-line: #919c80;
  --shadow: #28302118;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; background: var(--page); color: var(--ink); }
::selection { background: var(--accent); color: var(--page); }
a { color: var(--accent); text-underline-offset: .22em; overflow-wrap: anywhere; }
button, input, textarea, select { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1rem; border: 1px solid var(--control-line);
  border-radius: var(--radius); background: var(--paper); color: var(--ink);
  font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 160ms, border-color 160ms, color 160ms, transform 180ms var(--ease);
  touch-action: manipulation;
  min-width: 44px; max-width: 100%; overflow-wrap: anywhere;
}
button:hover, .button:hover { background: var(--elevated); border-color: var(--accent); }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
button.primary, .button.primary { background: #d5f879; color: var(--accent-ink); border-color: #d5f879; }
button.primary:hover, .button.primary:hover { background: #e3ff9d; border-color: #e3ff9d; }
button.quiet { border-color: transparent; background: transparent; }
button.quiet:hover { background: var(--elevated); border-color: var(--line); }
button.danger-quiet { color: var(--danger); }
.icon-button { width: 44px; padding: .5rem; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input, select, textarea {
  display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; margin-top: .35rem; padding: .65rem .8rem;
  color: var(--ink); background: var(--page); border: 1px solid var(--control-line); border-radius: var(--radius);
}
textarea { resize: vertical; min-height: 86px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"] { display: inline-block; width: 19px; height: 19px; min-height: 19px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
label { display: block; font-weight: 600; font-size: .875rem; }
form > label + input, form > label + textarea { margin-bottom: 1rem; }
p { max-width: 72ch; margin: .5rem 0 1rem; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; font-weight: 550; overflow-wrap: anywhere; }
h1 { margin: 0 0 .55rem; font-family: var(--display); font-size: 2.65rem; letter-spacing: -.04em; }
h2 { font-size: 1.3rem; letter-spacing: -.025em; margin: 0 0 .75rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 .65rem; }
h4 { font-size: .95rem; margin: 1rem 0 .4rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.65; padding: 1rem; background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); max-height: 32rem; overflow: auto; }
blockquote { margin: 1rem 0; padding: 1.25rem; border: 1px solid var(--line); background: var(--page); font-size: 1rem; line-height: 1.7; }
summary { cursor: pointer; padding: .75rem 0; font-weight: 600; min-height: 44px; }
.hint, .fine-print, .optional { color: var(--muted); font-size: .8rem; font-weight: 400; line-height: 1.6; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 50; background: var(--accent); color: var(--page); padding: .75rem; }
.skip-link:focus { top: .5rem; }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.app-header {
  position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center;
  min-height: 77px; gap: 1rem; padding: 1rem 1.75rem; background: var(--page); border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; white-space: nowrap; color: var(--ink); font-size: 1.3rem; font-weight: 650; text-decoration: none; letter-spacing: -.035em; }
.brand-symbol { display: flex; width: 32px; height: 32px; margin-right: .7rem; color: var(--accent); }
.brand-symbol svg { width: 100%; stroke: currentColor; stroke-width: 1.6; }
.brand-divider { height: 22px; width: 1px; background: var(--control-line); margin: 0 1rem; }
.brand-section { color: var(--muted); font-size: .75rem; font-weight: 400; letter-spacing: 0; }
.header-actions, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.header-actions { justify-content: flex-end; gap: .25rem; min-width: 0; max-width: 100%; margin-left: auto; }
.header-actions button { font-size: .78rem; padding-inline: .75rem; }
.header-actions .icon-button { padding-inline: 8px; }
.header-actions .mic-button { padding: 0; flex-shrink: 0; }
.connection { color: var(--muted); font-size: var(--meta-size); margin-right: .65rem; max-width: 12rem; overflow-wrap: anywhere; }
kbd { border: 1px solid var(--line); border-radius: 3px; padding: .1rem .3rem; font: .65rem ui-monospace, monospace; color: var(--muted); white-space: nowrap; }
.theme-glyph { display: block; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; overflow: hidden; transform: rotate(-35deg); }
.theme-glyph::before { content: ""; display: block; width: 50%; height: 100%; background: currentColor; }
.mock-banner { max-width: none; margin: 0; padding: .4rem 1.75rem; background: var(--warning-bg); color: var(--warning); font-size: .75rem; text-align: center; }

/* The sign-in study is original, decorative geometry, never a data visualization. */
.access-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 7vw, 8rem); align-items: center; max-width: 1440px; min-height: calc(100svh - 155px); margin: auto; padding: 3.5rem 5%; }
.access-copy { min-width: 0; padding: 2rem 0; }
.access-panel h1 { font-size: clamp(3.5rem, 6.6vw, 6rem); font-weight: 400; line-height: 1.04; margin: 0 0 1.9rem; }
:root:lang(ru) .access-panel h1 { font-size: clamp(2.75rem, 4.8vw, 4.5rem); }
.access-panel h1 > span { display: block; }
.display-offset { color: var(--accent); }
.access-intro { max-width: 31ch; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.access-entry { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
#access-message { font-size: .85rem; max-width: 49ch; min-height: 2.8em; }
.access-entry .actions { margin: 1.25rem 0; }
#sign-in { gap: .9rem; padding: .8rem 1.15rem; min-height: 52px; }
#sign-in > span:last-child { margin-left: .8rem; font-size: 1.15rem; }
.microsoft-mark { width: 18px; height: 18px; fill: currentColor; }
.fine-print { max-width: 48ch; margin: 1.5rem 0 0; font-size: .73rem; }
.access-art { min-width: 0; margin: 0; color: var(--ink); }
.art-caption, .access-art figcaption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .72rem; color: var(--muted); }
.art-caption { border-top: 1px solid var(--line); padding-top: .7rem; }
.art-cross { font-size: 1.4rem; color: var(--accent); font-weight: 300; }
.studio-graphic { display: block; width: 100%; max-height: 560px; overflow: visible; }
.art-grid { stroke: var(--line); stroke-width: .5; }
.art-axis { stroke: var(--control-line); stroke-width: .7; }
.fold-lines { stroke: var(--art-line); stroke-width: .8; }
.fold-opening { stroke: var(--ink); stroke-width: 1; }
.fold-signal { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fold-tab { fill: var(--accent); }
.access-art figcaption > span:last-child { color: var(--accent); font-size: 1.5rem; }
body:has(#access:not([hidden])) .app-footer { border-top: 1px solid var(--line); margin-inline: 5%; padding-inline: 0; }

.workspace { max-width: 1960px; margin: auto; display: grid; grid-template-columns: 12.125rem minmax(0, 1fr); gap: 2.75rem; padding: 2rem 2.5rem 3rem 1.75rem; }
.navigation { position: sticky; top: calc(var(--header-height) + 1.75rem); align-self: start; display: grid; gap: .25rem; }
.nav-title { padding: 0 .75rem 1.1rem; font-size: .75rem; color: var(--muted); }
.navigation > button { position: relative; justify-content: flex-start; gap: .75rem; border-color: transparent; background: transparent; text-align: left; font-size: .84rem; padding: .65rem .75rem; font-weight: 500; }
.nav-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.35; flex: 0 0 auto; color: var(--muted); }
.nav-label { flex: 1; }
.navigation > button::after { content: ""; position: absolute; left: -1px; top: 25%; bottom: 25%; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform 240ms var(--ease); }
.navigation > button[aria-current="page"] { background: var(--soft); color: var(--accent); }
.navigation > button[aria-current="page"]::after { transform: scaleY(1); }
.navigation > button[aria-current="page"] .nav-icon { color: var(--accent); }
.nav-count { font-size: var(--meta-size); font-variant-numeric: tabular-nums; color: var(--muted); }
#nav-copilot { margin-top: 1.15rem; border-top: 1px solid var(--line); border-radius: 0; padding-top: 1rem; }
.nav-note { border-top: 1px solid var(--line); margin: 2rem .75rem 0; padding-top: 1.3rem; font-size: .73rem; color: var(--muted); line-height: 1.7; }
.nav-note strong { font-weight: 500; color: var(--ink); }
.nav-note p { margin-top: .6rem; }
.work-content { min-width: 0; view-transition-name: work-view; }
.page-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.page-heading > div { flex: 1 1 20rem; min-width: 0; }
.page-heading p { color: var(--muted); font-size: .86rem; margin: 0; max-width: 65ch; }
.snapshot { color: var(--muted); font-size: var(--meta-size); text-align: right; max-width: min(100%, 26ch); margin-left: auto; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#canonical-links { margin-bottom: 1rem; }
#canonical-links .button { font-size: .75rem; }
#canonical-links p { font-size: .72rem; margin: 0; }
.notice, .uncertain { margin: 0 0 1rem; padding: 1rem 1.15rem; border: 1px solid var(--control-line); border-radius: var(--radius); background: var(--soft); font-size: .85rem; overflow-wrap: anywhere; }
.notice.error, .uncertain { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.notice.pending { background: var(--warning-bg); border-color: var(--warning); color: var(--warning); }
.uncertain p { font-size: .88rem; }
.warnings { font-size: .82rem; }
.warnings p { margin: .3rem 0; }
.source-issues { color: var(--warning); margin-bottom: 1rem; }
.source-scope { color: var(--muted); margin-bottom: 1rem; }
.source-scope summary { font-weight: 400; overflow-wrap: anywhere; touch-action: manipulation; }
.source-scope summary:hover { color: var(--ink); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; }
.capture-section, #proposal-section { position: relative; z-index: 21; scroll-margin-top: 1rem; margin: 0 0 2rem; padding: 1.6rem; background: var(--paper); border: 1px solid var(--control-line); border-radius: var(--radius); }
.capture-section > p { color: var(--muted); font-size: .9rem; }
.capture-section .section-heading h2, #proposal-heading { font-size: 1.7rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem; margin: .8rem 0; }
.form-grid > div { min-width: 0; }
.form-grid .wide { grid-column: 1 / -1; }
.form-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.form-footer p { margin: 0; }

.today-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding: .75rem 0 2.25rem; }
.hero-copy { min-width: 0; }
.today-hero h2 { font-family: var(--display); font-size: clamp(1.9rem, 2.9vw, 3rem); line-height: 1.1; letter-spacing: -.04em; max-width: 22ch; margin: 0 0 1rem; font-weight: 400; }
.today-hero p { color: var(--muted); font-size: .85rem; max-width: 65ch; margin: 0; }
.today-action { display: flex; align-items: center; gap: 1rem; max-width: 100%; }
.studio-mark { display: block; width: 72px; height: 72px; color: var(--accent); }
.studio-mark svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1; }
.today-deck { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); gap: 2rem; margin-bottom: 2.7rem; }
.priority-section { min-width: 0; }
.priority-section .section-heading { padding-top: .9rem; border-top: 1px solid var(--control-line); }
.priority-grid { display: grid; }
.priority-card {
  position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: .35rem 1rem;
  text-align: left; min-width: 0; padding: 1.15rem .65rem 1.15rem 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-weight: 400;
}
.priority-card:hover { background: var(--paper); }
.priority-number { grid-column: 1; grid-row: 1 / span 3; color: var(--accent); font: 400 1.8rem/1.2 var(--display); letter-spacing: -.04em; }
.priority-card strong { grid-column: 2; font-size: 1rem; font-weight: 550; overflow-wrap: anywhere; }
.priority-card p { grid-column: 2; font-size: .8rem; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.priority-card .priority-reason { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: var(--meta-size); color: var(--muted); margin-top: .25rem; }
.priority-card > .status { grid-column: 3; grid-row: 1; align-self: start; }
.priority-card .row-timing { margin: 0; }
.priority-card .row-timing:empty { display: none; }
.focus-summary { align-self: start; padding: 1.35rem 1.5rem; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); }
.focus-summary h2 { font-size: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.focus-line { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.15rem; }
.focus-line p { flex-basis: 100%; margin: 0; font: 400 1.45rem/1.35 var(--display); letter-spacing: -.025em; overflow-wrap: anywhere; }
.focus-line .hint { flex-basis: 100%; font-size: var(--meta-size); }
.today-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.today-columns > section { min-width: 0; border-top: 1px solid var(--control-line); padding-top: 1rem; }
.today-columns h2 { margin-bottom: 1.5rem; }
.today-columns .actions { margin: 1rem 0; }
.today-columns .task-row { border-bottom: 1px solid var(--line); }
.today-columns .task-row:first-of-type { border-top: 1px solid var(--line); }

.task-scope { display: inline-flex; margin-bottom: 1rem; gap: .3rem; }
.task-scope button { border-color: transparent; background: transparent; }
.task-scope button[aria-pressed="true"] { background: var(--soft); color: var(--accent); border-color: var(--line); }
.task-scope button span + span { font-size: var(--meta-size); padding: .1rem .4rem; background: var(--paper); border-radius: 3px; }
.attention { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1rem; }
.attention p { font-size: .88rem; color: var(--muted); }
.attention .actions { margin-top: .7rem; }
.task-heading { margin-top: .4rem; }
.segmented { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--control-line); border-radius: var(--radius); overflow: hidden; }
.segmented button { flex: 1 1 auto; border: 0; border-radius: 0; background: transparent; font-size: .78rem; }
.segmented button[aria-pressed="true"] { background: var(--soft); color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; margin: 1.25rem 0 1.5rem; }
.filters label { flex: 0 1 9.375rem; min-width: 0; font-weight: 400; font-size: .75rem; color: var(--muted); }
.filters .search-label { flex: 1 1 11.25rem; }
.filters input, .filters select { font-size: .85rem; color: var(--ink); background: var(--paper); }
.task-layout { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(370px, 1fr); gap: 1.5rem; align-items: start; }
#list-pane { min-width: 0; }
.task-list { min-width: 0; }
.task-list:not(.board) { border-top: 1px solid var(--control-line); }
.task-row { position: relative; display: block; width: 100%; padding: 1.15rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; background: var(--paper); font-weight: 400; }
.task-row:hover { background: var(--elevated); }
.task-row[aria-pressed="true"] { background: var(--soft); box-shadow: inset 0 0 0 1px var(--accent); }
.task-row:focus-visible, .source-row:focus-visible, .priority-card:focus-visible { outline-offset: -3px; }
.task-row h3 { margin: .6rem 0 .4rem; font-size: 1rem; font-weight: 550; line-height: 1.35; text-wrap: pretty; overflow-wrap: anywhere; }
.task-row p { margin: .4rem 0 0; font-size: .83rem; color: var(--muted); overflow-wrap: anywhere; }
.task-row p.row-next { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.task-row .row-ai { color: var(--accent); font-size: .75rem; margin-top: .9rem; }
.row-top, .row-timing, .meta-line { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: var(--meta-size); overflow-wrap: anywhere; }
.row-top { justify-content: space-between; color: var(--muted); }
.row-timing { margin-top: .85rem; }
.status { display: inline-flex; align-items: center; min-height: 25px; padding: .15rem .45rem; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: var(--elevated); font-size: var(--meta-size); font-weight: 500; }
.status.ready, .status.doing, .status.completed, .status.merged { color: var(--accent); background: var(--soft); }
.status.waiting, .status.verify, .status.submitted, .status.pending { color: var(--warning); background: var(--warning-bg); border-color: var(--control-line); }
.status.failed, .status.uncertain, .status.invalidated, .status.expired { color: var(--danger); background: var(--danger-bg); border-color: var(--danger); }
.deadline { color: var(--danger); font-weight: 600; }
.review-due { color: var(--warning); }
.list-footer { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .75rem; margin: .9rem 0; }
.list-footer p { margin: 0; max-width: 42ch; }
.empty { padding: 1.4rem 1rem; color: var(--muted); font-size: .85rem; }
.empty strong { display: block; color: var(--ink); margin-bottom: .5rem; font-weight: 550; }
.empty p { margin-bottom: 0; }
.skeleton { height: 96px; margin: 0 0 1px; border-bottom: 1px solid var(--line); background: var(--paper); }
.skeleton::before, .skeleton::after { content: ""; display: block; height: 8px; margin: 24px 20px 14px; max-width: 50%; background: var(--line); }
.skeleton::after { margin-top: 0; max-width: 75%; }
.layout-board .task-layout { grid-template-columns: minmax(0, 1fr); }
.layout-board.task-selected .task-layout { grid-template-columns: minmax(0, 1fr) minmax(420px, 470px); }
.layout-board .inspector:has(.inspector-empty) { display: none; }
.board { display: flex; gap: 1rem; align-items: stretch; overflow-x: auto; padding: 2px 2px 1.1rem; scroll-snap-type: x proximity; scroll-padding-inline: 2px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--control-line) var(--page); }
.board:focus-visible { outline-offset: 3px; }
.board-lane { flex: 0 0 262px; min-width: 0; min-height: 350px; scroll-snap-align: start; border-top: 1px solid var(--control-line); background: var(--paper); padding: .9rem .65rem; }
.board-lane > h3 { display: flex; align-items: center; gap: .55rem; margin: 0 0 1rem; padding: 0 .25rem .8rem; font-size: .8rem; border-bottom: 1px solid var(--line); }
.lane-dot { width: 7px; height: 7px; border: 1px solid var(--muted); border-radius: 50%; flex-shrink: 0; }
.board-lane[data-stage="doing"] .lane-dot { background: var(--accent); border-color: var(--accent); }
.board-lane[data-stage="waiting"] .lane-dot, .board-lane[data-stage="verify"] .lane-dot { background: var(--warning); border-color: var(--warning); }
.lane-count { margin-left: auto; color: var(--muted); font-size: var(--meta-size); font-variant-numeric: tabular-nums; }
.board-lane .task-row { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; background: var(--page); padding: 1rem .85rem; }
.board-lane .task-row:hover { border-color: var(--control-line); transform: translateY(-2px); }
.board-lane .task-row h3 { font-size: .95rem; }
.board-lane .empty { padding: .35rem; font-size: .75rem; }
.board-lane.drag-over { border-color: var(--accent); background: var(--soft); }
.task-row.dragging { opacity: .45; }
.board-hint { color: var(--muted); font-size: .75rem; margin: .7rem 0; }

.inspector { position: sticky; top: calc(var(--header-height) + 1rem); max-height: calc(100dvh - var(--header-height) - 2rem); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--control-line) transparent; min-width: 0; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); scroll-padding-block: 1rem; }
.inspector-empty { padding: 2.5rem .25rem; }
.inspector-empty h2 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.2; max-width: 17ch; }
.inspector-empty p { color: var(--muted); font-size: .88rem; max-width: 40ch; }
.mobile-back { display: inline-flex; margin: -.5rem 0 .75rem -.5rem; }
.detail-header { padding-bottom: 1rem; }
.detail-title { font-family: var(--display); font-size: 1.8rem; font-weight: 400; letter-spacing: -.035em; margin: .85rem 0; line-height: 1.2; overflow-wrap: anywhere; }
.detail-header .meta-line { color: var(--muted); gap: .75rem; }
.outcome-block { padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: .75rem; }
.outcome-block .eyebrow { font-size: var(--meta-size); color: var(--muted); font-weight: 600; letter-spacing: .07em; }
.outcome-block p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; margin: .4rem 0 .9rem; }
.outcome-block p:last-child { margin-bottom: 0; }
.step-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 3.5rem), 1fr)); gap: .25rem; padding: .5rem 0 1.2rem; }
.step-rail button { min-width: 44px; padding: .45rem .1rem; display: flex; flex-direction: column; gap: .3rem; text-align: center; font-size: var(--meta-size); min-height: 56px; border-color: var(--line); line-height: 1.2; }
.step-rail .step-marker { font-size: .85rem; color: var(--accent); }
.step-rail button[data-complete="true"] { background: var(--soft); }
.step-rail button span:last-child { max-width: 100%; overflow-wrap: anywhere; }
.detail-tabs { display: flex; flex-wrap: wrap; gap: .1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.detail-tabs button { font-size: .76rem; padding: .6rem .5rem; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.detail-tabs button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.detail-section { margin: 1.15rem 0; }
.detail-section dt { font-size: .75rem; color: var(--muted); font-weight: 600; margin-top: 1rem; }
.detail-section dd { margin: .35rem 0 0; font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-panel > form { margin-top: 1rem; }
.detail-panel form > label { margin-top: .8rem; }
.detail-panel form > button { margin-top: 1rem; }
.detail-panel h3:first-child { margin-top: 0; }
.checkbox { display: flex; align-items: flex-start; gap: .65rem; padding: .65rem 0; min-height: 44px; font-size: .88rem; font-weight: 400; }
.checkbox span { min-width: 0; overflow-wrap: anywhere; }
.check-list { margin: 1rem 0; }
.check-list .checkbox { border-bottom: 1px solid var(--line); padding: 1rem .25rem; }
.area-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; margin: 1.5rem 0 2.5rem; }
.area-list button { justify-content: space-between; padding: 1.15rem; font-size: .95rem; font-weight: 500; border-color: var(--line); text-align: left; }
.section-block { border-top: 1px solid var(--line); margin-top: 1.75rem; padding-top: 1.4rem; }
.section-block h3 { margin-top: 0; }
#areas-section > form { padding: 1.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
#areas-section > form > h3 { font-size: 1.3rem; }
#activity-list { border-top: 1px solid var(--control-line); margin-top: 2rem; }
.proposal { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.proposal > h3 { margin: .7rem 0; font-size: 1.25rem; }
.proposal .source { color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.proposal .exact-action { margin: 1rem 0; }
.proposal .exact-action > p { font-size: .85rem; }
.proposal .actions { margin-top: .9rem; }
.result { margin: 1rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.result h4 { margin-top: .5rem; }
.result p, .result li { font-size: .9rem; }
.clarification { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.clarification > p { font-size: .9rem; }

.source-row { display: block; width: 100%; padding: 1.2rem; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--paper); font-weight: 400; overflow-wrap: anywhere; }
.source-row:hover { background: var(--elevated); }
.source-row[aria-pressed="true"] { background: var(--soft); box-shadow: inset 0 0 0 1px var(--accent); }
.source-row strong { display: block; font-size: 1rem; font-weight: 550; margin: .6rem 0; line-height: 1.5; }
.source-row p { font-size: .8rem; color: var(--muted); margin: .4rem 0 0; }
.knowledge-layout { display: grid; grid-template-columns: minmax(250px, .85fr) minmax(350px, 1.15fr); gap: 1.5rem; align-items: start; margin-top: 1.6rem; }
.knowledge-list { border-top: 1px solid var(--control-line); }
#knowledge-more { margin-top: 1rem; }
.knowledge-reader h2, .knowledge-reader h3 { overflow-wrap: anywhere; }
.knowledge-reader h2 { font-family: var(--display); font-weight: 400; font-size: 1.65rem; line-height: 1.3; margin-top: 1rem; }
.knowledge-reader blockquote { white-space: pre-wrap; overflow-wrap: anywhere; }
.knowledge-reader .actions { margin: 1rem 0; }
.knowledge-reader .source-meta { overflow-wrap: anywhere; font-size: var(--meta-size); }
.reader-back { margin-left: -.5rem; margin-bottom: .75rem; }
.reader-progress { display: none; }
.evidence-block { margin: 1.5rem 0; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.evidence-block > button { justify-content: flex-start; text-align: left; }
.feedback-form { margin-top: .75rem; }
.feedback-form input { max-width: 14rem; margin-bottom: .7rem; }
.source-prose { font-size: .95rem; line-height: 1.75; max-width: 70ch; overflow-wrap: anywhere; }
.source-prose p { white-space: pre-wrap; }
.source-prose h2 { font-size: 1.25rem; margin-top: 1.5rem; }
.source-prose h3 { font-size: 1.08rem; margin-top: 1.4rem; }
.source-prose li { margin: .6rem 0; }
.source-prose ul { padding-left: 1.25rem; }
#knowledge-status:empty { display: none; }
@supports (animation-timeline: scroll()) {
  .reader-progress { display: block; position: sticky; top: -1.5rem; height: 2px; margin: -1.5rem -1.5rem 1.5rem; background: var(--accent); transform-origin: left; transform: scaleX(0); animation: reader-progress auto linear both; animation-timeline: scroll(nearest block); }
  @keyframes reader-progress { to { transform: scaleX(1); } }
}

.quick-bar { position: fixed; bottom: var(--quick-bar-bottom); left: 50%; transform: translateX(-50%); z-index: 35; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem; width: min(360px, calc(100vw - 1.5rem)); border: 1px solid var(--control-line); border-radius: 12px; background: var(--paper); box-shadow: 0 8px 30px var(--shadow); }
.quick-bar .quiet { font-size: .85rem; flex: 1 1 auto; padding-inline: .4rem; overflow-wrap: normal; }
.mic-button { width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 0; border-radius: 50%; background: var(--soft); color: var(--accent); border: 1px solid var(--control-line); }
.mic-button:hover { background: var(--accent); color: var(--page); }
.header-mic { width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin-inline: .2rem; }
.mic-glyph { position: relative; display: block; width: 10px; height: 16px; border: 1.5px solid currentColor; border-radius: 7px; margin-top: -4px; }
.mic-glyph::before { content: ""; position: absolute; inset: 5px -5px -5px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 10px 10px; }
.mic-glyph::after { content: ""; position: absolute; width: 1.5px; height: 4px; background: currentColor; left: 50%; top: 19px; transform: translateX(-50%); }
.mic-button[aria-pressed="true"] { color: var(--danger); background: var(--danger-bg); border-color: var(--danger); }
.mic-button[aria-pressed="true"] .mic-glyph { width: 13px; height: 13px; border-radius: 2px; background: currentColor; margin: 0; }
.mic-button[aria-pressed="true"] .mic-glyph::before, .mic-button[aria-pressed="true"] .mic-glyph::after { display: none; }
.copilot-dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--control-line); border-radius: 12px; padding: 1.5rem; width: min(600px, calc(100vw - 2rem)); max-height: calc(100dvh - 3rem); box-shadow: 0 20px 80px #00000060; }
.copilot-dialog[open] { animation: dialog-enter 260ms var(--ease); }
.copilot-dialog::backdrop { background: #10130ed9; }
.copilot-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.copilot-heading h2 { font: 400 2rem/1.2 var(--display); letter-spacing: -.035em; margin: 0; }
.chat-shell { display: flex; flex-direction: column; min-height: 280px; }
.chat-context { color: var(--muted); font-size: var(--meta-size); margin: 0 0 1rem; }
.chat-messages { display: grid; gap: .9rem; max-height: 43dvh; overflow: auto; padding: .1rem .2rem 1rem; overscroll-behavior: contain; scrollbar-width: thin; }
.chat-welcome { padding: 1rem 0; }
.chat-welcome h3 { font-size: 1.25rem; margin: 0 0 .8rem; font-weight: 500; }
.chat-welcome p { color: var(--muted); font-size: .85rem; }
.chat-message { padding: .95rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: .87rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.user { background: var(--elevated); margin-left: 1.5rem; }
.chat-message.assistant { border-color: transparent; background: transparent; padding-left: 0; }
.message-role { display: block; color: var(--muted); font-size: .66rem; letter-spacing: .06em; margin-bottom: .5rem; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 1rem; }
.chat-suggestions button { font-size: .76rem; padding: .5rem .7rem; border-color: var(--line); font-weight: 400; }
.chat-form { margin-top: auto; padding: .6rem; border: 1px solid var(--control-line); border-radius: 8px; background: var(--page); }
.chat-form:focus-within { border-color: var(--accent); }
.chat-form textarea { border: 0; background: transparent; padding: .5rem; margin: 0; font-size: .88rem; min-height: 76px; max-height: 180px; }
.chat-form textarea:focus-visible { outline-offset: 0; outline-width: 1px; }
.chat-compose-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding-top: .6rem; }
.chat-compose-actions .mic-button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.chat-compose-actions .primary { font-size: .8rem; }
.speech-toggle { font-size: var(--meta-size); color: var(--muted); margin-right: auto; align-items: center; }
.speech-toggle input { width: 16px; height: 16px; min-height: 16px; margin: 0; }
.thinking { color: var(--accent); font-size: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.thinking::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .65rem; background: currentColor; border-radius: 50%; }
.voice-status { display: flex; align-items: center; gap: 1rem; color: var(--accent); font-size: .8rem; padding: .85rem 0; }
.waveform { display: flex; align-items: center; gap: 4px; height: 24px; }
.waveform span { width: 3px; height: 10px; border-radius: 2px; background: currentColor; transform-origin: center; }
.voice-status[data-recording="true"] .waveform span { animation: voice-wave 700ms ease-in-out infinite alternate; }
.waveform span:nth-child(2n) { animation-delay: -220ms !important; }
.waveform span:nth-child(3n) { animation-delay: -410ms !important; }
.ai-card { padding: 1.1rem; background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); font-size: .85rem; overflow-wrap: anywhere; }
.ai-card > h4 { font-size: 1rem; margin: .75rem 0; }
.ai-card.applied { border-color: var(--control-line); }
.ai-card.proposal { border-color: var(--warning); }
.ai-card p { white-space: pre-wrap; }
.ai-card .actions button { font-size: .78rem; }
.ai-diff { padding: .7rem 0; border-top: 1px solid var(--line); }
.ai-diff dt { color: var(--muted); font-size: var(--meta-size); }
.ai-diff dd { margin: .4rem 0; white-space: pre-wrap; }
.ai-diff .before { color: var(--muted); text-decoration: line-through; }
.plan-check { font-size: .82rem; }
.plan-check:has(input:checked) span { color: var(--muted); text-decoration: line-through; }
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; width: max-content; max-width: calc(100vw - 2rem); padding: .85rem 1rem; border: 1px solid var(--accent); border-radius: 8px; background: var(--paper); box-shadow: 0 8px 30px var(--shadow); font-size: .82rem; overflow-wrap: anywhere; }
.toast button { flex-shrink: 0; }
#assist-usage { display: block; margin-top: 1.2rem; font-variant-numeric: tabular-nums; font-size: var(--meta-size); }
#assist-usage summary { font-size: var(--meta-size); }
.usage-meter { display: block; width: 100%; height: 5px; accent-color: var(--accent); margin: .65rem 0; }
.usage-meter::-webkit-meter-bar { background: var(--line); border: 0; }
.usage-meter::-webkit-meter-optimum-value { background: var(--accent); }
.usage-meter::-moz-meter-bar { background: var(--accent); }
.info-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; width: 32px; min-width: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: help; font-weight: 400; }
.info-mark { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid var(--control-line); border-radius: 50%; font-size: .68rem; }
.tip-text { display: none; position: fixed; width: max-content; max-width: min(280px, calc(100vw - 2rem)); padding: .7rem .8rem; border: 1px solid var(--control-line); border-radius: var(--radius); color: var(--ink); background: var(--paper); box-shadow: 0 6px 24px var(--shadow); font-size: .76rem; line-height: 1.5; text-align: left; z-index: 45; }
.info-tip:not([data-dismissed]):is(:hover, :focus, [data-open]) .tip-text { display: block; }
.app-footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; max-width: 1960px; padding: 1.5rem 2.5rem 1.5rem 1.75rem; margin: auto; color: var(--muted); font-size: .7rem; }
.app-footer > span > span[aria-hidden] { color: var(--control-line); padding-inline: .5rem; }

@keyframes studio-enter { from { opacity: .4; transform: translateY(14px); } }
@keyframes fold-reveal { from { stroke-dashoffset: 1; } }
@keyframes drawer-enter { from { opacity: .5; transform: translateX(32px); } }
@keyframes dialog-enter { from { opacity: .5; transform: translateY(18px); } }
@keyframes voice-wave { to { transform: scaleY(2.1); } }
.access-copy { animation: studio-enter 650ms var(--ease) both; }
.access-art { animation: studio-enter 850ms var(--ease) both; }
.fold-signal { animation: fold-reveal 1300ms 180ms var(--ease) both; }
#capture-section:not([hidden]), #proposal-section:not([hidden]) { animation: studio-enter 260ms var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(work-view) { animation: none; opacity: 0; }
::view-transition-new(work-view) { animation: studio-enter 240ms var(--ease) both; }

@media (min-width: 1101px) and (max-width: 1599px) {
  .layout-board.task-selected .task-layout { grid-template-columns: minmax(0, 1fr); }
  .layout-board.task-selected .inspector {
    position: fixed; top: var(--header-height); right: 0; bottom: 0; z-index: 20;
    width: 490px; max-width: 94vw; max-height: none; border-radius: 0; border-width: 0 0 0 1px;
    border-color: var(--control-line); box-shadow: -18px 8px 60px var(--shadow);
    animation: drawer-enter 280ms var(--ease);
  }
}
@media (min-width: 1024px) {
  .quick-bar { display: none !important; }
}
@media (max-width: 1250px) {
  .brand-section, .brand-divider, .connection { display: none; }
  .workspace { grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem; }
  .navigation > button { font-size: .78rem; gap: .55rem; padding-inline: .55rem; }
  .filters label:not(.search-label) { flex-basis: 8.125rem; }
  .today-deck { gap: 1.25rem; }
  .today-action .studio-mark { display: none; }
  .snapshot { max-width: 23ch; }
}
@media (max-width: 1100px) {
  .task-layout, .layout-board.task-selected .task-layout { grid-template-columns: minmax(0, 1fr); }
  #inspector { position: static; max-height: none; }
  #inspector:has(.inspector-empty) { display: none; }
  .task-selected #list-pane, .task-selected .filters, .task-selected .task-heading, .task-selected .task-scope, .task-selected .attention { display: none; }
  .knowledge-layout { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
}
@media (max-width: 1023px) {
  .header-mic { display: none !important; }
  .workspace { padding-bottom: calc(var(--quick-bar-height) + var(--quick-bar-bottom) + 1.5rem); }
  .app-header { padding-inline: 1.25rem; }
  .header-actions { gap: .1rem; }
  .header-actions button { padding-inline: .55rem; }
  .today-deck { grid-template-columns: 1fr; }
  .focus-summary { max-width: none; }
  .focus-line p { font-size: 1.35rem; }
  .today-hero { align-items: start; gap: 1rem; }
  .today-hero h2 { font-size: 2.2rem; }
  .toast { bottom: calc(var(--quick-bar-height) + var(--quick-bar-bottom) + .75rem); }
  .app-footer { padding-bottom: calc(var(--quick-bar-height) + var(--quick-bar-bottom) + 1rem); }
}
@media (max-width: 930px) {
  .workspace { display: block; padding: 1.2rem 1.2rem calc(var(--quick-bar-height) + var(--quick-bar-bottom) + 1.5rem); }
  .navigation { display: flex; position: static; overflow-x: auto; gap: .35rem; padding: 0 0 .8rem; border-bottom: 1px solid var(--line); margin: 0 0 1.75rem; scrollbar-width: thin; }
  .navigation > button { flex: 0 0 auto; white-space: nowrap; padding: .6rem .75rem; font-size: .85rem; }
  .navigation > button::after { left: 20%; right: 20%; top: auto; bottom: 0; height: 2px; width: auto; transform: scaleX(0); }
  .navigation > button[aria-current="page"]::after { transform: scaleX(1); }
  .nav-title, .nav-note, #nav-copilot { display: none !important; }
  .nav-icon { width: 17px; height: 17px; }
  .page-heading { align-items: start; }
  .today-deck { grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); }
  .today-columns { gap: 1.25rem; }
  .access-panel { gap: 2rem; padding: 3rem 5%; }
  .access-panel h1 { font-size: clamp(3rem, 6.8vw, 4.5rem); }
}
@media (max-width: 690px) {
  .app-header { min-height: 65px; padding: .6rem .85rem; gap: .3rem; }
  .brand { font-size: 1.15rem; }
  .brand-symbol { width: 28px; height: 28px; margin-right: .4rem; }
  .header-actions { gap: 0; }
  #command-open, #capture-open { display: none; }
  #theme-toggle { width: 44px; min-width: 44px; padding: 8px; }
  #language-toggle { min-width: 44px; padding: .4rem; white-space: nowrap; }
  #sign-out { font-size: .75rem; padding-inline: .5rem; }
  .mock-banner { padding-inline: .75rem; font-size: .68rem; }
  .access-panel { display: flex; flex-direction: column; gap: 1.6rem; padding: 2.8rem 1.3rem 2rem; min-height: 0; align-items: stretch; }
  .access-copy { padding: 0; }
  .access-panel h1 { font-size: clamp(2.8rem, 12vw, 4.5rem); margin-bottom: 1.5rem; }
  :root:lang(ru) .access-panel h1 { font-size: clamp(2rem, 10.5vw, 2.8rem); }
  .access-intro { font-size: 1rem; max-width: 31ch; }
  .access-entry { margin-top: 1.5rem; }
  #access-message { font-size: .82rem; }
  #sign-in { width: 100%; font-size: .85rem; justify-content: flex-start; }
  #sign-in > span:last-child { margin-left: auto; }
  .access-art { margin-top: 1rem; }
  .studio-graphic { max-height: 335px; }
  .art-caption, .access-art figcaption { font-size: .68rem; }
  .fine-print { font-size: .73rem; }
  .workspace { padding-inline: 1rem; padding-top: 1rem; }
  .navigation { gap: .15rem; margin-bottom: 1.4rem; }
  .navigation > button { font-size: .8rem; padding: .6rem .7rem; }
  .navigation .nav-icon { display: none; }
  h1 { font-size: 2.4rem; }
  .page-heading { display: block; margin-bottom: 1.25rem; padding-bottom: 1.25rem; }
  .page-heading p { font-size: .82rem; max-width: 38ch; }
  .snapshot { display: block; text-align: left; max-width: 100%; margin: .85rem 0 0; }
  .today-hero { display: block; padding: .5rem 0 1.7rem; }
  .today-hero h2 { font-size: 2rem; max-width: 20ch; }
  .today-hero p { font-size: .8rem; }
  .today-action { margin-top: 1.1rem; }
  .today-deck, .today-columns, .knowledge-layout { display: block; }
  .today-deck { margin-bottom: 2rem; }
  .focus-summary { margin-top: 1.5rem; padding: 1.2rem; }
  .priority-card { grid-template-columns: 32px minmax(0, 1fr) auto; gap: .4rem .8rem; }
  .priority-card strong { font-size: .94rem; }
  .priority-number { font-size: 1.6rem; }
  .today-columns > section + section { margin-top: 2rem; }
  .filters { gap: .65rem; }
  .filters label:not(.search-label) { flex: 1 1 8rem; }
  .filters .search-label { flex-basis: 100%; }
  .task-heading { flex-wrap: wrap; gap: 1rem; }
  .task-heading h2 { font-size: 1.2rem; }
  .board-lane { flex-basis: min(280px, 84vw); }
  .task-layout, .layout-board.task-selected .task-layout { display: block; }
  .inspector { position: static; max-height: none; padding: 1.1rem; border-radius: var(--radius); }
  .detail-title { font-size: 1.65rem; }
  .detail-tabs { gap: 0; }
  .detail-tabs button { font-size: .76rem; padding: .6rem .4rem; }
  .step-rail { display: flex; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; padding-bottom: .8rem; margin-bottom: .5rem; }
  .step-rail button { flex: 0 0 4.75rem; scroll-snap-align: start; min-height: 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-footer { display: block; }
  .form-footer button { width: 100%; margin-top: 1rem; }
  .capture-section, #proposal-section { padding: 1.15rem; }
  .capture-section .section-heading { align-items: start; }
  .capture-section .section-heading h2, #proposal-heading { font-size: 1.5rem; }
  .capture-section .section-heading button { font-size: .72rem; }
  input, textarea, select, .chat-form textarea { font-size: 1rem; }
  .inspector:has(.inspector-empty) { display: none; }
  .knowledge-selected #knowledge-list-pane { display: none; }
  .knowledge-reader { margin-top: 0; }
  .knowledge-reader .actions button { flex: 1 1 auto; }
  .knowledge-reader h2 { font-size: 1.5rem; }
  #knowledge-section > .section-heading { display: block; }
  #knowledge-section > .section-heading .hint { display: block; margin-top: .5rem; }
  #areas-section > form { padding: 1.15rem; }
  .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-list button { font-size: .82rem; overflow-wrap: anywhere; }
  .copilot-dialog { margin: auto .5rem max(.5rem, env(safe-area-inset-bottom)); width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); padding: 1.1rem; }
  .chat-messages { max-height: 42dvh; }
  .chat-message.user { margin-left: .8rem; }
  .chat-compose-actions { gap: .35rem; }
  .chat-compose-actions .primary { padding-inline: .65rem; font-size: .75rem; }
  .toast { align-items: start; max-height: 35dvh; overflow: auto; font-size: .78rem; }
  .app-footer { padding-inline: 1rem; font-size: .65rem; }
  .footer-note { display: none; }
  body:has(#access:not([hidden])) .app-footer { padding-bottom: 1.5rem; }
  .reader-progress { top: -1.1rem; margin: -1.1rem -1.1rem 1.1rem; }
}
@media (pointer: coarse) {
  .info-tip { min-height: 44px; width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reader-progress { display: none; }
}
