@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --canvas: #f8f9fc;
  --surface: #fff;
  --ink: #20242d;
  --muted: #586174;
  --line: #dce1e9;
  --faint: #f3f5f9;
  --cobalt: #2445d7;
  --cobalt-dark: #1839bd;
  --tint: #edf0ff;
  --green: #236044;
  --amber: #765000;
  --danger: #932f33;
  --radius: 12px;
  font-family: "Golos Text", "Segoe UI", Arial, sans-serif;
  font-size: 100%;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--cobalt); text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
:where(button, a, input, textarea, select, summary) { scroll-margin: 18px; }
.primary:focus-visible { outline: 3px solid #172c87; outline-offset: 4px; }
.sprite, .sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: 12px; top: -90px; z-index: 20; background: #fff; padding: 10px; }
.skip:focus { top: 12px; }
.ic { display: inline-block; width: 19px; height: 19px; fill: currentColor; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; vertical-align: middle; }
h1, h2, h3, h4, p, dl { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.625rem, 2.5vw, 2rem); letter-spacing: -.035em; font-weight: 600; }
h2 { font-size: 1.1875rem; letter-spacing: -.025em; font-weight: 600; }
h3 { font-size: 1.0625rem; letter-spacing: -.02em; font-weight: 600; }
h4 { font-size: .9375rem; letter-spacing: -.01em; font-weight: 600; }
small, .hint, .intro, .section-heading p, .dialog-card > p { color: var(--muted); }
small, .hint { font-size: 13px; line-height: 1.5; }
.intro, .section-heading p { font-size: 15px; margin-top: 7px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
input:not([type=checkbox]):not([type=hidden]), select, textarea {
  display: block; min-width: 0; width: 100%; border: 1px solid #8a95a6; border-radius: 7px;
  color: var(--ink); background: white; font-size: .9375rem; font-weight: 400; line-height: 1.55;
  padding: 9px 12px; transition: border-color 120ms ease;
}
textarea { resize: vertical; }
::placeholder { color: #687285; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #636e81; }
.switch { appearance: none; margin: 0; width: 44px; height: 26px; padding: 2px; border: 1px solid #7b8596; background: #808b9d; border-radius: 16px; cursor: pointer; flex: none; }
.switch::after { content: ""; display: block; width: 20px; height: 20px; border-radius: 50%; background: white; transition: transform 130ms ease; }
.switch:checked { background: var(--cobalt); border-color: var(--cobalt); }
.switch:checked::after { transform: translateX(18px); }
.primary, .secondary, .quiet, .icon-action, .text-action, .mobile-back, .compare-link, .suggestion, .search-go, .eye {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 7px;
  font-size: 14px; font-weight: 600; line-height: 1.35; min-height: 42px; padding: 9px 15px;
  text-align: center; border: 1px solid transparent; transition: background-color 120ms ease;
}
.primary { color: white; background: var(--cobalt); }
.primary:hover { background: var(--cobalt-dark); }
.primary:active { background: #142e9e; }
.secondary { color: var(--ink); background: white; border-color: #a5aeba; }
.secondary:hover, .icon-action:hover, .quiet:hover { background: var(--faint); }
.primary:disabled, .secondary:disabled { color: #535c6a; background: #e6e9ef; border-color: #d7dce5; }
.icon-action, .eye, .search-go { color: var(--muted); background: transparent; min-width: 36px; min-height: 36px; padding: 7px; }
.text-action, .mobile-back, .compare-link { color: var(--cobalt); background: transparent; padding-inline: 2px; justify-content: flex-start; }
.text-action:hover, .compare-link:hover, .mobile-back:hover { text-decoration: underline; }
.actions, .version-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stack { display: grid; gap: 18px; align-content: start; }
.shell { display: grid; grid-template-columns: 222px minmax(0,1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100dvh; border-right: 1px solid var(--line); background: #f2f4f8; padding: 24px 14px 16px; display: flex; flex-direction: column; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.375rem; font-weight: 670; line-height: 1; letter-spacing: -.05em; }
.brand .ic, .login-glyph .ic { stroke: currentColor; stroke-width: 1.65; }
.brand .ic { color: var(--cobalt); width: 32px; height: 32px; }
.rail > .brand { margin: 0 9px 28px; }
.rail-menu { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.studio, .identity { display: flex; align-items: center; gap: 10px; }
.studio { margin: 0 2px 24px; padding: 0 5px 20px; border-bottom: 1px solid #d7dde7; }
.studio-mark { display: grid; place-items: center; width: 34px; height: 38px; flex: none; color: #6d503c; background: #eee5dc; border-radius: 8px; }
.studio small, .identity small, .studio strong, .identity strong, .sub-item small, .sub-item strong { display: block; }
.studio small { font-size: .75rem; font-weight: 450; }
.studio strong, .identity strong { font-size: 13px; font-weight: 650; }
.rail-link { display: flex; align-items: center; gap: 11px; color: #455571; border-radius: 7px; padding: 11px 12px; font-size: 14px; font-weight: 640; }
.rail-link:hover { background: #e9edf6; }
.rail-link.selected { background: #e2e7fb; color: #223fa7; }
.identity { padding: 16px 2px 0; margin-top: auto; border-top: 1px solid var(--line); }
.identity > div { min-width: 0; flex: 1; }
.identity small { font-size: .75rem; overflow-wrap: anywhere; }
.identity .icon-action { min-width: 30px; padding: 4px; }
.avatar { display: inline-grid; place-items: center; width: 37px; height: 37px; flex: 0 0 auto; font-size: 16px; font-weight: 650; border-radius: 11px; }
.avatar.agent { background: #e7ecff; color: #334aac; border: 1px solid #d3dcfb; }
.avatar.owner { width: 32px; height: 32px; border-radius: 50%; color: #5c4b39; background: #e8e1d8; font-size: 13px; }
.avatar.large { width: 48px; height: 48px; font-size: 1.25rem; border-radius: 12px; }
.workspace { min-width: 0; }
.topbar { min-height: 48px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 8px clamp(20px,3.2vw,48px); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cobalt); }
.crumbs .ic { width: 12px; height: 12px; color: #7d8799; }
.main { max-width: 1380px; margin-inline: auto; padding: 26px clamp(20px,3.2vw,48px) 48px; }
.main:focus { outline: none; }
.page-head, .section-heading, .directory-tools, .chat-toolbar, .panel-title, .report-head, .subnav-head, .switch-row, .save-bar {
 display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.page-head { margin: 0 0 18px; }
.page-head > :first-child, .section-heading > :first-child { min-width: 0; overflow-wrap: anywhere; }
.page-head > .secondary, .page-head > .actions { flex-shrink: 0; max-width: 100%; }
.employee-heading { display: flex; align-items: center; gap: 12px; min-width: 0; overflow-wrap: anywhere; }
.employee-heading h1 { font-size: clamp(1.375rem, 2.1vw, 1.75rem); }
.head-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.badge, .mode-label { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; font-size: 12px; line-height: 1.35; font-weight: 550; border-radius: 5px; padding: 4px 8px; }
.badge::before { content: ""; display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.badge.active { color: var(--green); background: #e7f4eb; }
.badge.draft { color: var(--amber); background: #fff3d2; }
.badge.danger { color: var(--danger); background: #fae9e8; }
.badge.neutral, .mode-label { color: #4f5d74; background: #edf0f5; }
.mode-label .ic { width: 15px; height: 15px; }
.tabs { display: flex; gap: clamp(10px,1.6vw,24px); border-bottom: 1px solid #d3dae5; margin: 0 0 20px; flex-wrap: wrap; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; font-size: .875rem; font-weight: 500; color: #536074; padding: 10px 1px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a .ic { width: 18px; height: 18px; }
.tabs [aria-current=page] { color: var(--cobalt); border-color: var(--cobalt); }
.tabs a:hover { color: var(--cobalt); }
.section-heading { margin-bottom: 19px; }
.section-heading p { margin-top: 4px; font-size: 14px; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.directory-tools, .chat-toolbar { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.directory-tools h2 { font-size: 18px; }
.search { display: flex; align-items: center; gap: 7px; padding-left: 10px; border-radius: 7px; border: 1px solid #a4adbe; color: var(--muted); max-width: 280px; }
.search input[type=search] { padding: 8px 0; border: 0; font-size: 14px; }
.search:focus-within { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.search input:focus { outline: none; }
.people-table { border-collapse: collapse; width: 100%; }
.people-table :is(td,th) { padding: 13px 18px; text-align: left; overflow-wrap: anywhere; }
.people-table th { background: #f8f9fc; color: var(--muted); font-weight: 550; font-size: 12px; border-bottom: 1px solid var(--line); }
.people-table tr + tr td { border-top: 1px solid var(--line); }
.people-table .person-link { color: var(--ink); display: inline-flex; align-items: center; gap: 12px; }
.people-table .person-link:hover { color: var(--cobalt); }
.people-table td:first-child { padding-left: 24px; }
.people-table td:last-child { text-align: right; }
.doc-count { font-size: 14px; }
.split { display: grid; grid-template-columns: minmax(175px,24%) minmax(0,1fr); }
.subnav { border-right: 1px solid var(--line); padding: 16px 12px; background: #fbfcfe; border-radius: var(--radius) 0 0 var(--radius); }
.list-caption { display: block; color: var(--muted); font-size: 12px; font-weight: 610; padding: 5px 8px 12px; }
.subnav-head { margin-bottom: 6px; }
.subnav-head .list-caption { padding-bottom: 5px; }
.sub-item { display: flex; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 7px; color: var(--ink); padding: 11px 10px; font-size: 14px; overflow-wrap: anywhere; }
.sub-item.current { border-color: #d7dfff; background: #edf1ff; color: #28439f; }
.sub-item:hover { background: #f0f3fb; }
.sub-item strong { font-size: 14px; font-weight: 620; }
.sub-item small { margin-top: 1px; font-size: 12px; font-weight: 400; }
.subnav .text-action { padding: 10px; font-size: 13px; }
.editor, .pane { min-width: 0; }
.edit-body, .version-detail { padding: 22px; }
.panel-title { justify-content: flex-start; gap: 10px; overflow-wrap: anywhere; }
.sheet-icon, .empty-icon { display: inline-grid; place-items: center; color: var(--cobalt); background: var(--tint); border: 1px solid #dce3ff; border-radius: 10px; height: 38px; width: 38px; }
.form-row { display: grid; grid-template-columns: minmax(150px,24%) minmax(0,1fr); align-items: start; gap: 18px; margin-bottom: 18px; }
.form-row:last-child { margin-bottom: 0; }
.form-row > label { padding-top: 10px; }
.form-row small, .switch-row small { font-weight: 400; display: block; }
.form-row input.short { max-width: 90px; }
.form-fold, .suite { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 16px; }
summary { cursor: pointer; }
.form-fold summary, .suite summary, .report-case summary { list-style: none; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; min-height: 34px; }
summary::-webkit-details-marker { display: none; }
summary .ic:last-child { margin-left: auto; width: 15px; height: 15px; }
details[open] > summary .ic:last-child { transform: rotate(180deg); }
.hours-grid { display: grid; gap: 7px; margin-top: 10px; }
.day { display: grid; grid-template-columns: minmax(90px,1fr) 110px 20px 110px; align-items: center; gap: 8px; }
.day strong, .day span { font-size: 13px; }
.day input[type=time] { padding: 6px; font-size: 14px; }
.save-bar { border-top: 1px solid var(--line); padding: 14px 24px; }
.save-status { font-size: 13px; color: var(--muted); }
[data-dirty] .save-status { color: var(--amber); }
.compare-link { margin: 0 24px 12px; font-size: 13px; }
.switch-row { padding: 12px 14px; background: #f7f8fa; border: 1px solid #e0e5ec; border-radius: 8px; }
.switch-row small { margin-top: 3px; }
.empty { text-align: center; display: grid; justify-items: center; gap: 9px; padding: 56px 24px; }
.empty-icon { width: 48px; height: 48px; margin-bottom: 5px; }
.empty-icon .ic { width: 24px; height: 24px; }
.empty p { color: var(--muted); max-width: 44ch; font-size: 14px; }
.suggestion { min-height: 36px; border-color: #cbd5f4; color: #334b9c; background: #f8faff; margin-top: 6px; font-weight: 500; }
.chat-toolbar { padding: 16px 20px; }
.chat-toolbar h3 { font-size: 17px; }
.target-form { display: flex; align-items: center; gap: 9px; }
.target-form label { color: var(--muted); font-size: 12px; }
.target-form select { width: auto; max-width: 100%; font-size: 14px; padding: 6px 9px; }
.chat-feed { display: flex; flex-direction: column-reverse; max-height: max(280px,55vh); overflow: auto; }
.chat-empty { min-height: 260px; align-content: center; }
.exchange { padding: 20px; }
.exchange + .exchange { border-bottom: 1px solid var(--line); }
.question { margin-bottom: 16px; }
.question small, .source { color: var(--muted); font-size: 12px; }
.question p { margin-top: 2px; font-weight: 600; }
.responses { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,205px),1fr)); border: 1px solid var(--line); border-radius: 8px; }
.response { padding: 13px 15px; min-width: 0; }
.response + .response { border-left: 1px solid var(--line); }
.reply, .question p, .diff-row span, dd { white-space: pre-line; overflow-wrap: anywhere; }
.reply { margin-top: 12px; line-height: 1.55; }
.source, .waiting, .response-error { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
.source .ic { width: 14px; height: 14px; }
.waiting { font-size: 14px; color: var(--muted); }
.response-error { color: var(--danger); font-size: 14px; }
.composer { padding: 16px 20px; border-top: 1px solid var(--line); }
.composer > label { margin-bottom: 7px; font-size: 13px; }
.composer-box { display: flex; align-items: flex-end; gap: 8px; padding: 6px; border: 1px solid #939db0; background: white; border-radius: 9px; }
.composer-box:focus-within { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.composer-box textarea { border: none; resize: vertical; min-height: 46px; padding: 5px 7px; }
.composer-box textarea:focus { outline: none; }
.send { height: 42px; min-width: 42px; padding: 9px; }
.diff, .report-head { margin: 22px 0 10px; }
.diff-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.diff-row strong { flex: 1 1 130px; }
.diff-row .ic { width: 15px; height: 15px; }
.old { color: var(--muted); }
.new { font-weight: 620; }
.report-case { padding: 7px 0; border-bottom: 1px solid var(--line); }
.report-case summary small { margin-left: auto; }
.report-case summary .ic:last-child { margin-left: 0; }
.report-case dl { padding: 8px 4px; }
.report-case dt { font-size: 12px; color: var(--muted); margin: 6px 0 1px; }
.report-case dd { margin: 0; font-size: 14px; }
.version-actions { margin: 18px 0 5px; }
.suite { margin: 22px 0 0; border-bottom: 0; }
.suite form { margin-top: 12px; }
.case-edit { display: grid; gap: 8px; grid-template-columns: 1fr 1fr auto; align-items: end; margin: 10px 0; }
.flash-group { display: grid; gap: 6px; }
.flash { display: flex; align-items: center; gap: 10px; border: 1px solid #bedccc; background: #edf8f1; color: var(--green); padding: 10px 14px; margin: 0 0 16px; border-radius: 7px; }
.flash.error, .field-error { color: var(--danger); background: #fbeef0; border: 1px solid #dec2c6; }
.field-error { padding: 10px 12px; border-radius: 6px; font-size: 14px; }
dialog { padding:0; width:min(30rem,calc(100% - 28px)); max-width:100%; max-height:85dvh; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); color:var(--ink); box-shadow:0 12px 40px rgb(22 32 55 / 16%); }
dialog::backdrop { background:rgb(24 34 53 / 36%); }
.dialog-card { --dialog-pad:24px; padding:var(--dialog-pad); overflow-wrap:anywhere; }
.dialog-card.stack { gap:16px; }
.dialog-card h2 { font-size:1.25rem; }
.dialog-heading p { font-size:.875rem; color:var(--muted); margin-top:6px; }
.dialog-card .actions { justify-content:flex-end; padding:14px var(--dialog-pad); margin:4px calc(-1 * var(--dialog-pad)) calc(-1 * var(--dialog-pad)); border-top:1px solid var(--line); background:var(--faint); }
.dialog-card input:focus-visible { outline:2px solid var(--cobalt); outline-offset:1px; }
.public-shell { min-height: 100dvh; background: #f5f6fa; }
.public-shell > .brand { position: absolute; top: 28px; left: clamp(20px,4vw,64px); }
.public-main { min-height: 100dvh; display: grid; align-content: center; justify-items: center; padding: 102px 20px 60px; }
.login-card { width: min(378px,100%); }
.login-card h1 { font-size: 1.875rem; }
.login-card .intro { margin: 8px 0 26px; }
.login-glyph { display: grid; align-items: center; justify-content: center; width: 54px; height: 54px; background: #e5eaff; color: var(--cobalt); border: 1px solid #cad5ff; border-radius: 14px; margin-bottom: 22px; }
.login-glyph .ic { width: 33px; height: 33px; }
.password-box { position: relative; display: block; }
.password-box input { padding-right: 46px !important; }
.eye { position: absolute; right: 3px; top: 3px; }
.login-submit { margin-top: 4px; justify-content: space-between; padding: 13px 16px; }
.settings-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.settings-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.setting-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--tint); color: var(--cobalt); }
.setting-icon .ic { width: 21px; height: 21px; }
.skill-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 500; color: var(--muted); }
.settings-note { margin-top: 4px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.settings-note a { text-underline-offset: 2px; text-decoration: underline; }
.skill-fields { display: grid; gap: 20px; }
.skill-field { display: grid; grid-template-columns: minmax(130px, 21%) minmax(0, 1fr); align-items: baseline; gap: 6px 18px; font-weight: 550; }
.settings-editor .save-bar { padding: 12px 22px; }
.mobile-nav, .mobile-back { display: none; }
@media (min-width:1600px) { .main { margin-inline: 0; } }
@media (max-width:1000px) {
  .shell { grid-template-columns: 186px minmax(0,1fr); }
  .rail { padding-inline: 12px; }
  .tabs { gap: 15px; }
  .tabs a { gap: 5px; }
  .main { padding-inline: 24px; }
  .edit-body, .version-detail { padding: 18px; }
}
@media (max-width:800px) {
  .shell { display: block; }
  .rail { position: relative; z-index: 2; height: auto; padding: 10px 18px; display: flex; flex-direction: row; justify-content: space-between; align-items: center; border: 0; border-bottom: 1px solid var(--line); }
  .rail > .brand { margin: 0; font-size: 21px; }
  .brand .ic { width: 28px; height: 28px; }
  .mobile-nav { display: inline-flex; background: transparent; color: var(--ink); }
  .rail-menu { display: none; position: absolute; top: calc(100% + 1px); left: 8px; right: 8px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 4px 14px rgb(22 32 55 / 12%); }
  .rail-menu.open { display: flex; }
  .studio { margin-bottom: 12px; padding-bottom: 12px; }
  .identity { margin-top: 16px; }
  .topbar { min-height: 42px; padding-inline: 20px; }
  .main { padding: 20px 20px 40px; }
  .responses { grid-template-columns: 1fr; }
  .response + .response { border-left: 0; border-top: 1px solid var(--line); }
  .avatar.large { width: 42px; height: 42px; }
}
@media (max-width:620px) {
  .main { padding-inline: 14px; }
  .page-head, .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .page-head { margin-bottom: 12px; }
  .tabs { gap: 0 12px; margin-bottom: 16px; }
  .tabs a { padding-block: 10px; min-height: 44px; font-size: .8125rem; }
  .tabs a .ic { display: none; }
  .directory-tools, .chat-toolbar { flex-wrap: wrap; padding: 14px; gap: 10px; }
  .search { max-width: none; width: 100%; }
  .people-table :is(td,th) { padding: 10px 5px; font-size: 12px; }
  .people-table :is(td,th):first-child { padding-left: 10px; }
  .people-table :is(td,th):nth-child(n+3) { display: none; }
  .people-table .avatar { width: 29px; height: 29px; font-size: 13px; }
  .people-table .person-link { gap: 7px; min-height: 44px; }
  .split { display: block; }
  .subnav { border-right: 0; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
  [data-master-detail].show-list .pane, [data-master-detail].show-pane .subnav { display: none; }
  .mobile-back { display: inline-flex; font-size: 13px; }
  .sub-item { min-height: 48px; }
  .settings-head { align-items: start; padding: 12px 15px; gap: 3px 12px; }
  .skill-field { grid-template-columns: minmax(0, 1fr); }
  .skill-fields { gap: 15px; }
  .settings-editor .save-bar { padding-inline: 15px; }
  input:not([type=checkbox]):not([type=hidden]), select, textarea { font-size: 1rem; }
  .form-row { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; }
  .day { grid-template-columns: minmax(0,1fr) 77px 13px 77px; gap: 3px; }
  .day input[type=time] { padding: 3px; }
  .edit-body,.version-detail,.exchange,.composer { padding: 15px; }
  .save-bar { flex-wrap: wrap; padding: 12px 15px; }
  .primary, .secondary, .icon-action, .eye, .suggestion, .text-action { min-height: 44px; }
  .chat-feed { max-height: none; }
  .chat-empty { min-height: 220px; padding: 24px 12px; }
  .target-form { flex-wrap: wrap; }
  .composer-box textarea { min-height: 52px; }
  .case-edit { grid-template-columns: 1fr; border-top: 1px solid var(--line); padding-top: 10px; }
  .dialog-card { --dialog-pad:18px; }
  .dialog-card .actions > * { flex: 1 1 auto; }
}
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; } }

.amount { font-variant-numeric: tabular-nums; font-weight: 660; white-space: nowrap; }
.past-attempts { margin-top: 10px; color: var(--muted); font-size: 12px; }
.past-attempts summary { padding-block: 4px; }
.past-attempts p { margin-top: 4px; }
[aria-invalid=true] { border-color: var(--danger) !important; }

.save-bar, .version-actions { position: sticky; bottom: 0; z-index: 1; background: var(--surface); }
.save-bar { border-radius: 0 0 var(--radius) var(--radius); }
.version-actions { padding-block: 10px; border-block: 1px solid var(--line); }
:where(input,textarea,select,summary) { scroll-margin-bottom: 86px; }
.rollback-change { padding: 12px 14px; border-radius: 7px; border: 1px solid var(--line); background: var(--faint); }
.rollback-change span { display: block; color: var(--muted); font-size: 13px; }
.rollback-value { display:block; margin-top:4px; font-size:.9375rem; font-weight:550; white-space:pre-line; overflow-wrap:anywhere; }
@media (max-height:600px) and (max-width:800px) {
  .save-bar, .version-actions { position: static; }
}

.connection-pane { max-width: 48rem; padding: clamp(1rem, 3vw, 2rem); }
.connection-head, .model-summary { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.connection-head h2, .connection-pane h2 { margin: 0; }
.connection-pane .stack { margin: 1.25rem 0; }
.connection-pane .stack > label { margin-bottom: -.35rem; }
.connection-pane input, .connection-pane select { width: 100%; min-width: 0; }
.connection-actions, .model-route-form { border-top: 1px solid var(--line, #dce1eb); padding-top: 1rem; margin-top: 1.5rem; }
.connection-actions summary { cursor: pointer; }
.connection-pane { overflow-wrap:anywhere; }
.connection-head { justify-content:space-between; }
.connection-head + .hint, .key-meta { margin-top:10px; }
.key-meta { color:var(--muted); font-size:.875rem; font-variant-numeric:tabular-nums; }
.connection-actions > summary, .probe-details > summary { padding:9px 0; min-height:40px; color:var(--cobalt); font-weight:600; font-size:.875rem; cursor:pointer; }
.route-status { margin-top:14px; }
.route-key, .route-caption { font-size:.8125rem; color:var(--muted); }
.saved-route { display:grid; gap:3px; margin:16px 0; }
.saved-route strong { font-size:1.125rem; }
.probe-outcome { margin:12px 0; }
.probe-outcome > p { margin-bottom:4px; }
.probe-details p { margin-block:5px; }
.route-probe { display:grid; gap:6px; margin-top:14px; }
.model-back { display:inline-flex; align-items:center; min-height:42px; margin-top:12px; font-size:.875rem; }
.oauth-login { display:grid; justify-items:start; gap:10px; margin:16px 0; }
.manual-key > summary { cursor:pointer; padding:10px 0; color:var(--cobalt); font-size:.875rem; }
[data-model-picker] button[hidden] { display:none; }
.identity small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.connection-pane .policy-check { display: flex; align-items: flex-start; gap: .65rem; font-weight: 400; }
.connection-pane .policy-check input { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .15rem; }
