/* Acumatica Support Hub - the one style sheet of the app and of the mockups.
   Rules: docs/design-system.md. Use the tokens. Do not write a raw colour in a component.
   Look (version 2, 4 Dec 2026): warm paper neutrals and a quiet tinted sidebar (Notion), a content panel that floats
   on the shell (T3 Chat), a serif for titles (Claude), coloured status pills and dense lists (ClickUp). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader.woff2") format("woff2"); }

:root {
  /* colour */
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #f4f3ee;
  --hover: rgb(55 53 47 / 0.06);
  --border: #e9e7e0;
  --border-strong: #d8d5cc;
  --text: #1f1e1b;
  --text-2: #46443e;
  --muted: #6e6b63;
  --primary: #1f1e1b;
  --on-primary: #ffffff;
  --accent: #5b47d6;
  --accent-hover: #4937bd;
  --accent-soft: #efecfd;
  --on-accent: #ffffff;
  --ok: #17703f;
  --ok-soft: #def4e6;
  --warn: #8f5200;
  --warn-soft: #fcefcc;
  --danger: #b93227;
  --danger-hover: #9c261c;
  --danger-soft: #fce5e2;
  --info: #2552b3;
  --info-soft: #e3ecfd;
  --ring: #5b47d6;

  /* type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-md: 0.9063rem;
  --fs-lg: 1.0625rem;
  --fs-xl: 1.875rem;

  /* space: 4 px steps */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(31 30 27 / 0.05);
  --shadow-lg: 0 1px 2px rgb(31 30 27 / 0.04), 0 16px 44px rgb(31 30 27 / 0.10);
  --sidebar: 15.5rem;
  --ease: 160ms ease-out;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font: 400 var(--fs-md)/1.55 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1 { font: 560 var(--fs-xl)/1.15 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: var(--fs-lg); line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }
h3 { font-size: var(--fs-md); font-weight: 600; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
code, pre, .mono { font-family: var(--mono); font-size: 0.875em; }
pre { margin: 0; white-space: pre-wrap; word-break: break-word; }
svg.icon { width: 1.0625rem; height: 1.0625rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--on-primary); padding: var(--s2) var(--s4); z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { left: var(--s2); top: var(--s2); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: var(--s4); }
.stack-sm > * + * { margin-top: var(--s2); }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.hidden { display: none !important; }

/* ---------- shell: a tinted sidebar and a content panel that floats on it ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  background: var(--bg); display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; overflow-y: auto;
  padding: var(--s2) var(--s2) var(--s2) var(--s3);
}
.brand { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s2) var(--s3); text-decoration: none; color: var(--text); border-radius: var(--radius-sm); }
.brand-mark {
  width: 1.875rem; height: 1.875rem; border-radius: 9px; color: var(--on-accent); display: grid; place-items: center;
  font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.03em;
  background: linear-gradient(140deg, #7d6cf2, var(--accent-hover)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18), 0 1px 2px rgb(73 55 189 / 0.35);
}
.brand-name { font-weight: 650; line-height: 1.2; font-size: var(--fs-md); letter-spacing: -0.005em; }
.brand-sub { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; letter-spacing: 0; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-title { font-size: 0.6875rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; padding: var(--s4) var(--s2) var(--s1); }
.nav a {
  display: flex; align-items: center; gap: 0.625rem; min-height: 2.125rem; padding: 0 var(--s2);
  border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; font-weight: 500; font-size: var(--fs-md);
  transition: background var(--ease), color var(--ease);
}
.nav a svg.icon { color: var(--muted); transition: color var(--ease); }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 0 0 1px var(--border), var(--shadow); }
.nav a[aria-current="page"] svg.icon { color: var(--accent); }
.nav .count { margin-left: auto; background: var(--accent); color: var(--on-accent); font-size: 0.6875rem; font-weight: 600; border-radius: 999px; min-width: 1.25rem; text-align: center; padding: 0 0.375rem; line-height: 1.25rem; }
.sidebar-foot { margin-top: auto; padding: var(--s3) var(--s2); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--muted); }
.sidebar-foot .who { font-weight: 600; color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; }

.main {
  min-width: 0; display: flex; flex-direction: column; background: var(--surface);
  margin: var(--s2) var(--s2) var(--s2) 0; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  min-height: calc(100dvh - 1rem); overflow: clip;
}
.topbar {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s5); min-height: 3.25rem;
  background: rgb(255 255 255 / 0.86); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10; border-radius: 14px 14px 0 0;
}
.client-switch { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; font-size: var(--fs-md); }
.client-switch select { font: inherit; font-weight: 600; border: 1px solid transparent; border-radius: var(--radius-sm); padding: var(--s1) var(--s5) var(--s1) var(--s2); background-color: transparent; min-height: 2.125rem; cursor: pointer; color: var(--text); transition: background var(--ease); }
.client-switch select:hover { background-color: var(--hover); }
.env-tag { font-size: var(--fs-xs); font-weight: 600; padding: 2px var(--s2); border-radius: 6px; }
.content { padding: var(--s6) clamp(1.25rem, 3.4vw, 3rem) var(--s7); max-width: 74rem; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.page-head p { color: var(--muted); margin-top: var(--s2); max-width: 44rem; }
.btn.menu-btn { display: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 1rem; height: 1rem; cursor: pointer; }

/* ---------- parts ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-pad { padding: var(--s5); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 0.875rem var(--s5); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-foot { padding: var(--s3) var(--s5); border-top: 1px solid var(--border); color: var(--muted); font-size: var(--fs-sm); background: #fcfbf9; border-radius: 0 0 var(--radius) var(--radius); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 2.25rem; padding: 0 0.875rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 500 var(--fs-md)/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow);
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgb(73 55 189 / 0.30), inset 0 1px 0 rgb(255 255 255 / 0.14); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--danger); border-color: #f0c4bf; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { min-height: 1.875rem; padding: 0 0.625rem; font-size: var(--fs-sm); border-radius: 7px; }
.btn.block { width: 100%; min-height: 2.625rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn.is-busy { position: relative; color: transparent; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 1rem; height: 1rem; border: 2px solid var(--on-accent); border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge { display: inline-flex; align-items: center; gap: 0.375rem; font-size: var(--fs-xs); font-weight: 600; line-height: 1; padding: 0.3125rem 0.5rem; border-radius: 6px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }

.alert { display: flex; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.alert svg.icon { margin-top: 3px; }
.alert.info { background: var(--info-soft); border-color: #cfdcfa; color: var(--info); }
.alert.warn { background: var(--warn-soft); border-color: #f3dfa6; color: var(--warn); }
.alert.danger { background: var(--danger-soft); border-color: #f5cdc8; color: var(--danger); }
.alert.ok { background: var(--ok-soft); border-color: #bfe6cd; color: var(--ok); }

/* ---------- forms ---------- */
.field { display: block; }
.field + .field { margin-top: var(--s4); }
.label { display: block; font-weight: 550; font-size: var(--fs-sm); margin-bottom: 0.375rem; color: var(--text); }
.hint { display: block; font-size: var(--fs-sm); color: var(--muted); margin-top: 0.375rem; }
.error-text { display: block; font-size: var(--fs-sm); color: var(--danger); margin-top: 0.375rem; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 2.375rem; padding: 0.4375rem 0.75rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: 400 var(--fs-md)/1.4 var(--font); box-shadow: inset 0 1px 1px rgb(31 30 27 / 0.03);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #9b988f; }
.input:hover, .select:hover, .textarea:hover { border-color: #bdb9ae; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px rgb(91 71 214 / 0.16); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[readonly] { background: var(--surface-2); color: var(--text-2); }
.textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }
.textarea.tall { min-height: 20rem; font-family: var(--mono); font-size: var(--fs-sm); line-height: 1.65; }
.select.sm { min-height: 1.875rem; padding: 0 var(--s2); font-size: var(--fs-sm); width: auto; border-radius: 7px; }
.code-input { font-family: var(--mono); font-size: 1.5rem; letter-spacing: 0.4em; text-align: center; min-height: 3.25rem; }
.check { display: inline-flex; align-items: center; gap: var(--s2); cursor: pointer; min-height: 2rem; }
.switch { position: relative; display: inline-flex; align-items: center; gap: var(--s3); cursor: pointer; min-height: 2rem; }
.switch input { position: absolute; opacity: 0; width: 2.25rem; height: 1.3rem; margin: 0; cursor: pointer; }
.switch .track { width: 2.25rem; height: 1.3rem; border-radius: 999px; background: #cfccc3; transition: background var(--ease); position: relative; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.3rem - 4px); height: calc(1.3rem - 4px); border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgb(31 30 27 / 0.25); transition: transform var(--ease); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(0.95rem); }
.switch input:focus-visible + .track { outline: 2px solid var(--ring); outline-offset: 2px; }
.switch input:disabled + .track { opacity: 0.5; }
.copy { display: flex; gap: var(--s2); }
.copy .input { font-family: var(--mono); font-size: var(--fs-sm); background: var(--surface-2); }
.form-actions { display: flex; gap: var(--s3); margin-top: var(--s5); flex-wrap: wrap; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 550; padding: 0; margin-bottom: var(--s2); }

/* ---------- tables ---------- */
.toolbar { display: flex; align-items: center; gap: var(--s2) var(--s3); padding: 0.625rem var(--s4); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.search { position: relative; flex: 1 1 14rem; max-width: 19rem; }
.search svg.icon { position: absolute; left: 0.625rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 2.125rem; min-height: 2rem; font-size: var(--fs-md); background: var(--surface-2); border-color: transparent; box-shadow: none; }
.search .input:hover { border-color: var(--border-strong); }
.search .input:focus { background: var(--surface); border-color: var(--ring); }
.chips { display: flex; gap: 2px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 1.875rem; padding: 0 0.625rem; border-radius: 7px; border: 0; background: transparent; color: var(--text-2); font: 500 var(--fs-sm) var(--font); text-decoration: none; cursor: pointer; transition: background var(--ease), color var(--ease); }
.chip:hover { background: var(--hover); color: var(--text); }
.chip[aria-pressed="true"], .chip.on, .chip[aria-current="true"], .chip[aria-current="page"] { background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.table th { text-align: left; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); padding: 0.5625rem var(--s4); border-bottom: 1px solid var(--border); background: var(--surface); white-space: nowrap; }
.table td { padding: 0.6875rem var(--s4); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--ease); }
.table tbody tr:hover { background: #faf9f6; }
.table tr.group td { background: var(--surface); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: var(--s4) var(--s4) var(--s2); }
.table tr.group:hover { background: none; }
.table tr.is-off td { color: var(--muted); }
.table tr.is-off .title { color: var(--muted); }
.table td.actions { text-align: right; white-space: nowrap; }
.table .title { font-weight: 550; color: var(--text); text-decoration: none; }
a.title:hover { color: var(--accent); text-decoration: underline; }
.table .sub { display: block; font-size: var(--fs-sm); color: var(--muted); font-weight: 400; }
.empty { padding: var(--s7) var(--s5); text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: var(--s1); font-size: var(--fs-lg); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 0.625rem var(--s4); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--muted); }

/* key and value list */
.kv { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 0.625rem var(--s4); }
.kv dt { color: var(--muted); font-size: var(--fs-sm); padding-top: 1px; }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
.codebox { background: #1d1c19; color: #ece9e1; border-radius: 10px; padding: var(--s4) 1.125rem; font-family: var(--mono); font-size: var(--fs-sm); line-height: 1.65; overflow-x: auto; white-space: pre; }
.meter { height: 0.375rem; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* tabs and steps */
.tabs { display: flex; gap: var(--s1); border-bottom: 1px solid var(--border); padding: 0 var(--s4); overflow-x: auto; }
.tab { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.625rem; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 500 var(--fs-md) var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; margin-bottom: -1px; transition: color var(--ease); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
ol.steps { list-style: none; padding: 0; counter-reset: step; }
ol.steps li { counter-increment: step; position: relative; padding: 2px 0 var(--s5) 2.75rem; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-hover); font-weight: 650; font-size: var(--fs-sm); display: grid; place-items: center; }
ol.steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(0.875rem - 0.5px); top: 2.125rem; bottom: 0.375rem; width: 1px; background: var(--border); }
ol.steps li:last-child { padding-bottom: 0; }
ul.ticks { list-style: none; padding: 0; }
ul.ticks li { display: flex; gap: var(--s3); padding: 0.4375rem 0; }
ul.ticks svg.icon { color: var(--ok); margin-top: 3px; }
ul.ticks li.no svg.icon { color: var(--muted); }

/* dialog */
dialog.dialog { border: 0; border-radius: 14px; padding: 0; box-shadow: var(--shadow-lg); width: min(30rem, calc(100vw - 2rem)); color: var(--text); }
dialog.dialog::backdrop { background: rgb(31 30 27 / 0.45); }
.dialog-body { padding: var(--s5); }
.dialog-foot { display: flex; justify-content: flex-end; gap: var(--s3); padding: var(--s3) var(--s5) var(--s5); }
.toast { position: fixed; right: var(--s5); bottom: var(--s5); background: var(--primary); color: var(--on-primary); padding: var(--s3) var(--s4); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 50; font-size: var(--fs-md); }

/* ---------- the light pages: sign in, sign up, consent ---------- */
.auth { min-height: 100dvh; display: grid; place-items: start center; padding: clamp(2rem, 9vh, 5.5rem) var(--s4) var(--s7); background: radial-gradient(60rem 30rem at 50% -8rem, #e9e4fb 0%, rgb(233 228 251 / 0) 70%); }
.auth-box { width: 100%; max-width: 26rem; }
.auth-box.wide { max-width: 30rem; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: var(--s3); margin-bottom: var(--s5); color: var(--text); text-decoration: none; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: var(--s6); }
.auth-card h1 { font-size: 1.625rem; text-align: center; margin-bottom: var(--s2); }
.auth-card .lead { text-align: center; color: var(--muted); margin-bottom: var(--s5); }
.auth-foot { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s4); }
.pair { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin-bottom: var(--s5); }
.pair .logo { width: 3rem; height: 3rem; border-radius: 13px; border: 1px solid var(--border); background: var(--surface-2); display: grid; place-items: center; font-weight: 700; color: var(--text-2); }
.pair .logo.dark { background: linear-gradient(140deg, #7d6cf2, var(--accent-hover)); color: var(--on-accent); border-color: transparent; box-shadow: 0 2px 6px rgb(73 55 189 / 0.35); }
.pair svg.icon { color: var(--muted); }
.divider { height: 1px; background: var(--border); margin: var(--s5) 0; }

/* ---------- added by the app (foundation) ---------- */
/* A POST form inside a line of text (Sign out in the sidebar), and a button that looks like a link. */
.inline-form { display: inline; }
.link-btn { background: none; border: 0; padding: 0; margin: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-btn:hover { color: var(--accent-hover); }
.center { text-align: center; }

/* ---------- small screens ---------- */
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(18rem, 85vw); z-index: 40; transform: translateX(-100%); transition: transform var(--ease); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .main { margin: 0; border: 0; border-radius: 0; min-height: 100dvh; }
  .topbar { padding: var(--s2) var(--s4); border-radius: 0; }
  .topbar { gap: var(--s2); }
  .topbar .grow { flex: 0 0 0; }
  .client-switch { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .client-switch > .muted { display: none; }
  .client-switch select { min-width: 0; width: 100%; text-overflow: ellipsis; }
  .topbar .badge { flex: none; }
  .btn.menu-btn { display: inline-flex; }
  .content { padding: var(--s5) var(--s4) var(--s6); }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv dd { margin-bottom: var(--s3); }
  .btn { min-height: 2.75rem; }
  .btn.sm { min-height: 2.25rem; }
  .input, .select, .textarea { font-size: 1rem; min-height: 2.75rem; }
  .select.sm { min-height: 2.25rem; font-size: var(--fs-md); }
  h1 { font-size: 1.625rem; }
  .auth-card { padding: var(--s5); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
