/* Mithila Naturals People (HRMS) — design system
   Brand: deep Mithila green, makhana ivory, harvest gold, earthen brown.
   Signature: the Madhubani "kachni" double line with ticks (sidebar edge, page-title rule). */

:root {
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;

  --forest: #0E3A1C;        /* sidebar */
  --forest-2: #134726;
  --green: #1F5E14;         /* primary */
  --green-h: #174a0f;
  --leaf: #4EA72E;
  --gold: #C9A04A;
  --gold-ink: #8a6a22;
  --brown: #7B4A2A;
  --ivory: #F4ECDD;

  --bg: #F5F6F1;
  --surface: #FFFFFF;
  --surface-2: #F9FAF6;
  --surface-3: #EFF2EA;
  --line: #E2E6DC;
  --line-2: #D3D9CC;
  --ink: #17251B;
  --ink-2: #44514A;
  --muted: #6E7A70;
  --primary: var(--green);
  --primary-h: var(--green-h);
  --primary-soft: #E6F0E0;
  --primary-ink: #FFFFFF;
  --focus: #4EA72E;

  --ok: #2E7D22;    --ok-soft: #E3F1DD;
  --warn: #9A6B10;  --warn-soft: #FBF0D6;
  --bad: #B3261E;   --bad-soft: #FBE4E1;
  --info: #22628E;  --info-soft: #E2EEF6;
  --neutral-soft: #EEF0EA;

  --s1: #2E7D22; --s2: #2A7AB0; --s3: #C08B2C; --s4: #7A5FA0; --s5: #A0522D; --s-other: #A3ABA2;
  --seq-1: #F3E2C8; --seq-2: #E2B884; --seq-3: #C98848; --seq-4: #A35A26; --seq-5: #6E3613;

  --r-s: 6px; --r: 10px; --r-l: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 22, .06), 0 1px 1px rgba(16, 40, 22, .04);
  --shadow-l: 0 18px 50px rgba(9, 30, 15, .18), 0 2px 6px rgba(9, 30, 15, .08);
  --side-w: 244px;
  --top-h: 58px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --forest: #08170E;
  --forest-2: #0E2316;
  --bg: #0C1610;
  --surface: #122019;
  --surface-2: #16261D;
  --surface-3: #1B2E23;
  --line: #24382C;
  --line-2: #2F4638;
  --ink: #E9EBE2;
  --ink-2: #C3CABF;
  --muted: #8E9A90;
  --primary: #4A9E36;
  --primary-h: #5BB044;
  --primary-soft: #1D3A22;
  --primary-ink: #07120A;
  --ok: #69B85A;   --ok-soft: #1B3320;
  --warn: #D9A84A; --warn-soft: #3A2E14;
  --bad: #E57368;  --bad-soft: #3D1E1B;
  --info: #6AA8D6; --info-soft: #17303F;
  --neutral-soft: #1E2C24;
  --s1: #3F9A3A; --s2: #3F8BC9; --s3: #B9862C; --s4: #8E78CC; --s5: #C0643C; --s-other: #6C786F;
  --seq-1: #3A2A17; --seq-2: #6B4520; --seq-3: #9A6230; --seq-4: #C98848; --seq-5: #EBC08A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-l: 0 18px 50px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
svg[aria-hidden="true"] { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.num, td.num, .money { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden, [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 14px; }
.gap-s { gap: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ------------------------------------------------------------ boot & auth */
.boot { min-height: 100vh; display: grid; place-items: center; background: var(--forest); }
.boot img { height: 92px; opacity: .9; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); background: var(--surface); }
.auth-art { background: var(--forest); color: var(--ivory); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art img { height: 120px; width: auto; align-self: flex-start; }
.auth-art h1 { font-family: var(--serif); font-size: 40px; font-weight: 600; max-width: 14ch; line-height: 1.15; }
.auth-art p { color: rgba(244, 236, 221, .72); max-width: 42ch; font-size: 15px; }
.auth-art .kachni { position: absolute; right: 0; top: 0; bottom: 0; width: 22px; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; }
.auth-form form { width: 100%; max-width: 360px; }
.auth-form h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 4px; }
.auth-form .lead { color: var(--muted); margin: 0 0 22px; }
.auth-form .field { margin-bottom: 14px; }
.auth-form .btn { width: 100%; justify-content: center; height: 42px; }
.auth-foot { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } .auth-art { min-height: 220px; padding: 28px; } .auth-art h1 { font-size: 28px; } .auth-art img { height: 70px; } }

/* the kachni double line (SVG background, drawn once) */
.kachni { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='16'%3E%3Cg stroke='%23C9A04A' stroke-width='1.2' fill='none' opacity='.55'%3E%3Cpath d='M4 0V16M18 0V16'/%3E%3Cpath d='M4 2L18 10'/%3E%3C/g%3E%3C/svg%3E"); background-repeat: repeat-y; }

/* ------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.shell.collapsed { --side-w: 68px; }
.side { position: sticky; top: 0; height: 100vh; background: var(--forest); color: rgba(244, 236, 221, .82); display: flex; flex-direction: column; z-index: 30; }
.side::after { content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 6px; border-left: 1px solid rgba(201, 160, 74, .35); border-right: 1px solid rgba(201, 160, 74, .35);
  background: repeating-linear-gradient(160deg, transparent 0 9px, rgba(201, 160, 74, .35) 9px 10px); pointer-events: none; }
.side-brand { height: 76px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid rgba(244, 236, 221, .08); }
.side-brand img { height: 50px; width: auto; }
.side-brand .wordmark { font-family: var(--serif); color: var(--ivory); font-weight: 600; font-size: 15px; line-height: 1.1; }
.side-brand .wordmark small { display: block; font-family: var(--font); font-weight: 500; font-size: 11px; color: rgba(244, 236, 221, .55); letter-spacing: .02em; }
.collapsed .side-brand { justify-content: center; padding: 0; }
.collapsed .side-brand .wordmark, .collapsed .nav-label, .collapsed .nav-group-title, .collapsed .nav-caret, .collapsed .nav-sub, .collapsed .side-foot .who { display: none; }
.nav { flex: 1; overflow-y: auto; padding: 10px 10px 20px; scrollbar-width: thin; scrollbar-color: rgba(244,236,221,.15) transparent; }
.nav-group-title { font-size: 11.5px; color: rgba(244, 236, 221, .42); padding: 14px 10px 6px; font-weight: 600; }
.nav a, .nav button.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 7px 10px; border-radius: 8px; color: inherit; background: none; border: 0; cursor: pointer;
  text-align: left; font-size: 13.5px; font-weight: 500; position: relative; }
.nav a:hover, .nav button.nav-item:hover { background: rgba(244, 236, 221, .07); color: var(--ivory); text-decoration: none; }
.nav a.active { background: rgba(244, 236, 221, .1); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav-caret { margin-left: auto; transition: transform .15s; opacity: .6; }
.nav-item[aria-expanded="true"] .nav-caret { transform: rotate(90deg); }
.nav-sub { padding-left: 29px; }
.nav-sub a { padding: 5px 10px; font-size: 13px; color: rgba(244, 236, 221, .7); }
.nav-sub a.active::before { left: -39px; }
.collapsed .nav a, .collapsed .nav button.nav-item { justify-content: center; padding: 9px 0; }
.side-foot { border-top: 1px solid rgba(244, 236, 221, .08); padding: 10px; display: flex; align-items: center; gap: 8px; }
.side-foot .collapse-btn { margin-left: auto; color: rgba(244, 236, 221, .6); background: none; border: 0; padding: 6px; border-radius: 6px; cursor: pointer; }
.side-foot .collapse-btn:hover { background: rgba(244, 236, 221, .08); }
.side-foot .who { font-size: 12px; line-height: 1.25; min-width: 0; }
.side-foot .who b { display: block; color: var(--ivory); font-weight: 600; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: var(--top-h); position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 22px; }
.top .menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.crumbs a { color: var(--muted); }
.crumbs span:last-child { color: var(--ink); font-weight: 600; }
.searchbox { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 9px; color: var(--muted); cursor: pointer; min-width: 260px; font-size: 13px; }
.searchbox svg { width: 16px; height: 16px; }
.searchbox .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchbox:hover { border-color: var(--line-2); }
.kbd { font: 600 11px/1 var(--font); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; color: var(--muted); background: var(--surface-2); margin-left: auto; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--ink-2); position: relative; flex: none; }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn svg { width: 18px; height: 18px; }
.dot { position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 11.5px; color: #fff; background: var(--green); flex: none; letter-spacing: .02em; }
.avatar.s { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.l { width: 52px; height: 52px; font-size: 17px; }
.content { padding: 22px 26px 60px; max-width: 1600px; width: 100%; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-l); }
  .shell.nav-open .side { transform: none; }
  .shell.collapsed { --side-w: 0; }
  .top .menu-btn { display: inline-grid; }
  .searchbox { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  .searchbox .label, .searchbox .kbd { display: none; }
  .content { padding: 16px 16px 60px; }
  .top { padding: 0 12px; }
  .crumbs { display: none; }
}
.scrim { position: fixed; inset: 0; background: rgba(8, 20, 12, .45); z-index: 25; }

/* ------------------------------------------------------------ page header */
.page-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: -.005em; }
.page-head .sub { color: var(--muted); margin-top: 3px; font-size: 13.5px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.title-rule { height: 7px; width: 72px; margin-top: 8px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  background: repeating-linear-gradient(120deg, transparent 0 5px, var(--gold) 5px 6px); opacity: .8; }

/* ------------------------------------------------------------ buttons & inputs */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-h); border-color: var(--primary-h); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #24180a; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.ghost { border-color: transparent; background: none; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.s { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 6px; gap: 4px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--muted) transparent var(--muted) transparent; animation: spin .8s linear infinite; }
.btn.primary.loading::after { border-color: #fff transparent #fff transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-group { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--surface); }
.btn-group button { border: 0; background: none; padding: 0 12px; height: 34px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.btn-group button + button { border-left: 1px solid var(--line); }
.btn-group button.on { background: var(--primary-soft); color: var(--primary); }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--bad); }
.field .help { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12px; color: var(--bad); font-weight: 500; }
.input, select.input, textarea.input { height: 38px; padding: 0 11px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; width: 100%; min-width: 0; transition: border-color .12s, box-shadow .12s; }
textarea.input { height: auto; min-height: 92px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.input.invalid { border-color: var(--bad); }
.input.s { height: 32px; font-size: 13px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E7A70' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.input-wrap .input { padding-left: 33px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-grid, .form-grid.three { grid-template-columns: 1fr; } }
.form-section { font-weight: 700; font-size: 13px; color: var(--ink); margin: 6px 0 -4px; grid-column: 1 / -1; padding-top: 6px; border-top: 1px dashed var(--line); }

/* relation picker */
.picker { position: relative; }
.picker-menu { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-l); max-height: 260px; overflow: auto; padding: 4px; }
.picker-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 9px; border-radius: 7px; cursor: pointer; }
.picker-menu button:hover, .picker-menu button.hl { background: var(--surface-3); }
.picker-menu .sub { font-size: 12px; color: var(--muted); }
.picker .clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; }

/* ------------------------------------------------------------ cards, panels */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.card-h h3 { font-size: 14.5px; font-weight: 700; }
.card-h .sub { color: var(--muted); font-size: 12.5px; }
.card-h .actions { margin-left: auto; display: flex; gap: 6px; }
.card-b { padding: 14px 16px 16px; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side-r { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1200px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.side-r { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .grid.c2, .grid.c3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid.c4 { grid-template-columns: 1fr; } }

/* KPI tiles: quiet surfaces, numbers do the talking */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px 12px; min-width: 0; }
.kpi .k { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .v { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.kpi .d { font-size: 12px; margin-top: 2px; color: var(--muted); }
.kpi .d .up { color: var(--ok); font-weight: 600; }
.kpi .d .down { color: var(--bad); font-weight: 600; }
.kpi.hero { grid-column: span 2; background: var(--forest); color: var(--ivory); border-color: var(--forest); position: relative; overflow: hidden; }
.kpi.hero .k { color: rgba(244, 236, 221, .7); }
.kpi.hero .v { font-size: 32px; color: #fff; }
.kpi.hero .d { color: rgba(244, 236, 221, .7); }
.kpi.hero .d .up { color: #9FD98A; }
.kpi.hero .d .down { color: #F4A99F; }
.kpi.hero .meter { height: 6px; border-radius: 4px; background: rgba(244, 236, 221, .15); margin-top: 10px; overflow: hidden; }
.kpi.hero .meter span { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
@media (max-width: 520px) { .kpi.hero { grid-column: auto; } }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--neutral-soft); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.brand { background: var(--primary-soft); color: var(--primary); }
.badge.gold { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-ink); }
:root[data-theme="dark"] .badge.gold { color: var(--gold); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--line); }
.tag button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0; line-height: 1; }
.score { display: inline-grid; place-items: center; width: 34px; height: 22px; border-radius: 6px; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ tables */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar .input-wrap { width: 280px; max-width: 100%; }
.views { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.views button { border: 0; background: none; padding: 8px 10px 9px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.views button:hover { color: var(--ink); }
.views button.on { color: var(--primary); border-bottom-color: var(--primary); }
.views button .x { opacity: .5; font-size: 14px; line-height: 1; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
.table-scroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.t th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
table.t th.sortable { cursor: pointer; user-select: none; }
table.t th.sortable:hover { color: var(--ink); }
table.t th .arrow { margin-left: 4px; opacity: .7; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; max-width: 340px; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { cursor: default; }
table.t tbody tr.clickable { cursor: pointer; }
table.t tbody tr:hover td { background: var(--surface-2); }
table.t tr.sel td { background: color-mix(in srgb, var(--primary-soft) 70%, var(--surface)); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t td.check-col, table.t th.check-col { width: 36px; padding-right: 0; }
table.t .primary-cell { font-weight: 600; color: var(--ink); }
table.t td.primary-col { white-space: nowrap; }
table.t td { overflow-wrap: normal; }
table.t .sub-cell { font-size: 12px; color: var(--muted); }
table.t.compact td { padding: 7px 10px; }
.table-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.table-foot .pager { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.bulkbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--primary-soft); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; flex-wrap: wrap; }
/* tables condense to cards on phones */
@media (max-width: 720px) {
  table.t.responsive thead { display: none; }
  table.t.responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 4px; }
  table.t.responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 10px; max-width: none; text-align: right; }
  table.t.responsive td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
  table.t.responsive td.check-col { display: none; }
  table.t.responsive td.primary-col { font-size: 14.5px; text-align: left; }
  table.t.responsive td.primary-col::before { display: none; }
}

/* skeletons & states */
.sk { background: linear-gradient(90deg, var(--surface-3) 0, var(--surface-2) 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; border-radius: 6px; height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.state { padding: 46px 20px; text-align: center; color: var(--muted); }
.state svg { width: 40px; height: 40px; color: var(--line-2); margin-bottom: 8px; }
.state h3 { color: var(--ink); font-size: 15.5px; margin-bottom: 4px; }
.state p { margin: 0 auto 14px; max-width: 46ch; }
.state.err svg { color: var(--bad); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 10px; background: var(--info-soft); color: var(--ink); font-size: 13px; border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); }
.notice svg { width: 18px; height: 18px; flex: none; color: var(--info); margin-top: 1px; }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.notice.warn svg { color: var(--warn); }
.notice.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.notice.bad svg { color: var(--bad); }
.notice.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.notice.ok svg { color: var(--ok); }

/* ------------------------------------------------------------ overlays */
.modal-bg, .drawer-bg { position: fixed; inset: 0; background: rgba(6, 18, 10, .45); z-index: 70; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { position: fixed; z-index: 71; left: 50%; top: 9vh; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); max-height: 82vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-l); animation: pop .16s ease; }
.modal.wide { width: min(860px, calc(100vw - 24px)); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } }
.modal-h, .drawer-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-h h2, .drawer-h h2 { font-size: 16.5px; font-weight: 700; }
.modal-b { padding: 16px 18px; overflow: auto; }
.modal-f, .drawer-f { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-l) var(--r-l); }
.drawer { position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: var(--surface); box-shadow: var(--shadow-l); display: flex; flex-direction: column; animation: slide .18s ease; }
.drawer.wide { width: min(880px, 100vw); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.drawer-b { flex: 1; overflow: auto; padding: 16px 18px 30px; }
.drawer-f { border-radius: 0; }
.drawer-h .meta { color: var(--muted); font-size: 12.5px; }
.close { margin-left: auto; }

.menu { position: fixed; z-index: 80; background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; box-shadow: var(--shadow-l); padding: 5px; min-width: 200px; animation: fade .1s; }
.menu button, .menu a { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: var(--ink); font-size: 13.5px; }
.menu button:hover, .menu a:hover { background: var(--surface-3); text-decoration: none; }
.menu svg { width: 16px; height: 16px; color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 2px; }
.menu .head { padding: 8px 10px 6px; font-size: 12.5px; color: var(--muted); }
.menu .head b { display: block; color: var(--ink); font-size: 13.5px; }

#toasts { position: fixed; z-index: 90; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--forest); color: var(--ivory); padding: 11px 14px; border-radius: 10px; box-shadow: var(--shadow-l); display: flex; gap: 12px; align-items: center; max-width: 420px; font-size: 13.5px; animation: pop2 .18s ease; }
@keyframes pop2 { from { opacity: 0; transform: translateY(6px); } }
.toast.bad { background: #5c1510; }
.toast button { background: none; border: 0; color: var(--gold); font-weight: 700; cursor: pointer; padding: 0; }

/* command palette */
.cmdk { position: fixed; z-index: 85; left: 50%; top: 12vh; transform: translateX(-50%); width: min(640px, calc(100vw - 24px)); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-l); overflow: hidden; border: 1px solid var(--line-2); }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.cmdk-in svg { width: 18px; height: 18px; color: var(--muted); }
.cmdk-in input { flex: 1; border: 0; background: none; height: 52px; font-size: 16px; outline: none; }
.cmdk-list { max-height: 56vh; overflow: auto; padding: 6px; }
.cmdk-group { font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 10px 4px; }
.cmdk-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.cmdk-item svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.cmdk-item .sub { color: var(--muted); font-size: 12.5px; margin-left: auto; padding-left: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.cmdk-item.hl { background: var(--primary-soft); }
.cmdk-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--surface-2); }

/* notifications panel */
.notif-panel { position: fixed; z-index: 75; top: calc(var(--top-h) + 6px); right: 14px; width: min(400px, calc(100vw - 20px)); max-height: 70vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-l); overflow: hidden; }
.notif-panel .h { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); gap: 8px; }
.notif-panel .h h3 { font-size: 14.5px; }
.notif-list { overflow: auto; }
.notif { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface)); }
.notif .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--primary); flex: none; }
.notif .ic svg { width: 16px; height: 16px; }
.notif b { font-size: 13.5px; font-weight: 600; display: block; }
.notif .when { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------ timeline */
.timeline { position: relative; }
.tl-item { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 0 0 14px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 1px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.tl-ic svg { width: 15px; height: 15px; }
.tl-ic.call { color: #2A7AB0; } .tl-ic.whatsapp { color: #2E7D22; } .tl-ic.email { color: #7A5FA0; } .tl-ic.order, .tl-ic.payment { color: var(--gold-ink); } .tl-ic.ticket, .tl-ic.sla_breach { color: var(--bad); }
.tl-body b { font-weight: 600; font-size: 13.5px; }
.tl-body .meta { font-size: 12px; color: var(--muted); }
.tl-body .txt { font-size: 13px; color: var(--ink-2); margin-top: 3px; white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 9px 12px 10px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13.5px; }
.tabs button.on { color: var(--primary); border-bottom-color: var(--primary); }
.tabs button .n { font-size: 11.5px; background: var(--surface-3); border-radius: 9px; padding: 1px 7px; margin-left: 4px; color: var(--muted); }

/* key-value lists */
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 7px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------------------ pipeline */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; min-height: 60vh; }
.col { flex: 0 0 280px; background: var(--surface-3); border-radius: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 210px); border: 1px solid var(--line); }
.col-h { padding: 10px 12px 8px; }
.col-h b { font-size: 13.5px; }
.col-h .m { font-size: 12px; color: var(--muted); }
.col-h .bar { height: 3px; border-radius: 2px; background: var(--line-2); margin-top: 8px; overflow: hidden; }
.col-h .bar span { display: block; height: 100%; background: var(--primary); }
.col.won .col-h .bar span { background: var(--ok); }
.col.lost .col-h .bar span { background: var(--bad); }
.col-b { padding: 4px 8px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 80px; }
.col.drop { outline: 2px dashed var(--primary); outline-offset: -3px; background: var(--primary-soft); }
.deal { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; cursor: grab; box-shadow: var(--shadow); font-size: 13px; }
.deal:hover { border-color: var(--line-2); }
.deal.dragging { opacity: .45; }
.deal b { display: block; font-size: 13.5px; line-height: 1.3; }
.deal .who { color: var(--muted); font-size: 12px; margin-top: 2px; }
.deal .foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.deal .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.deal .late { color: var(--bad); font-weight: 600; }

/* ------------------------------------------------------------ 360 */
.hero360 { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding: 18px; }
.hero360 h1 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.hero360 .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 18px; width: 100%; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.hero360 .facts div span { display: block; font-size: 12px; color: var(--muted); }
.hero360 .facts div b { font-variant-numeric: tabular-nums; font-size: 14.5px; }
.meter { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--primary); }
.meter.warn span { background: var(--warn); }
.meter.bad span { background: var(--bad); }
.tree { font-size: 13.5px; }
.tree a { display: inline-flex; gap: 6px; align-items: center; }
.tree a svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------ charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .val-label { fill: var(--ink-2); font-size: 11px; font-weight: 600; font-family: var(--font); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart-tip { position: absolute; pointer-events: none; z-index: 5; background: var(--forest); color: var(--ivory); font-size: 12.5px; padding: 8px 10px; border-radius: 8px; box-shadow: var(--shadow-l); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
.chart-tip b { display: block; font-weight: 700; margin-bottom: 2px; }
.chart-tip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.line { height: 2px; border-radius: 1px; width: 14px; }
.legend i.dash { height: 0; border-top: 2px dashed currentColor; width: 14px; border-radius: 0; background: none !important; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hbar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hbar .trk { height: 12px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.hbar .trk span { display: block; height: 100%; background: var(--s1); border-radius: 0 4px 4px 0; }
.hbar .v { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12.5px; min-width: 70px; text-align: right; }
.funnel { display: flex; flex-direction: column; gap: 6px; }
.funnel .st { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; font-size: 13px; }
.funnel .st .b { height: 26px; border-radius: 6px; background: var(--primary); color: #fff; display: flex; align-items: center; padding: 0 9px; font-weight: 600; font-size: 12px; white-space: nowrap; min-width: 28px; font-variant-numeric: tabular-nums; }
.aging { display: flex; height: 16px; border-radius: 5px; overflow: hidden; gap: 2px; margin: 6px 0 12px; }
.aging span { display: block; height: 100%; }

/* lists inside cards */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.list-item:last-child { border-bottom: 0; }
.list-item .main { min-width: 0; flex: 1; }
.list-item .main b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .main span { color: var(--muted); font-size: 12px; }
.list-item.link { cursor: pointer; }
.list-item.link:hover b { color: var(--primary); }
.pill-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); flex: none; }
.pill-ic svg { width: 15px; height: 15px; }

/* quotation builder */
.lines-table input.input { height: 34px; padding: 0 8px; }
.lines-table td { vertical-align: top; }
.totals { margin-left: auto; width: min(360px, 100%); font-size: 13.5px; }
.totals div { display: flex; justify-content: space-between; padding: 5px 0; }
.totals .grand { border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 9px; font-weight: 700; font-size: 16px; }
.totals .grand span:last-child { font-family: var(--serif); }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); border-radius: 12px; overflow: hidden; }
.cal .dh { padding: 8px; font-size: 12px; font-weight: 700; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cal .day { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal .day.out { background: var(--surface-2); color: var(--muted); }
.cal .day.today .dn { background: var(--primary); color: #fff; border-radius: 6px; padding: 0 6px; }
.cal .dn { font-size: 12px; font-weight: 700; align-self: flex-start; }
.cal .ev { font-size: 11.5px; padding: 2px 6px; border-radius: 5px; background: var(--primary-soft); color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; border-left: 3px solid var(--primary); }
.cal .ev.done { opacity: .5; text-decoration: line-through; }
.cal .ev.overdue { background: var(--bad-soft); color: var(--bad); border-left-color: var(--bad); }
.cal .more { font-size: 11.5px; color: var(--muted); }
.week { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 70vh; }
.week .hcell { position: sticky; top: 0; background: var(--surface-2); z-index: 1; padding: 8px; font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.week .slot { height: 44px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); position: relative; font-size: 11px; color: var(--muted); padding: 2px 4px; }
@media (max-width: 760px) { .cal .day { min-height: 70px; } .cal .ev { font-size: 10px; } }

/* chat */
.chat { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - 180px); min-height: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); overflow: auto; }
.chat-row { padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; gap: 10px; }
.chat-row:hover, .chat-row.on { background: var(--surface-2); }
.chat-row .t { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-h { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.chat-msgs { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.bubble { max-width: 72%; padding: 8px 11px; border-radius: 12px; font-size: 13.5px; white-space: pre-wrap; box-shadow: var(--shadow); }
.bubble.in { background: var(--surface); align-self: flex-start; border-top-left-radius: 4px; }
.bubble.out { background: var(--primary-soft); align-self: flex-end; border-top-right-radius: 4px; }
.bubble .m { font-size: 11px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; justify-content: flex-end; }
.chat-compose { border-top: 1px solid var(--line); padding: 10px; display: flex; gap: 8px; align-items: flex-end; }
.chat-compose textarea { min-height: 42px; height: 42px; }
@media (max-width: 860px) { .chat { grid-template-columns: 1fr; } .chat.has-thread .chat-list { display: none; } .chat:not(.has-thread) .chat-main { display: none; } }

/* permissions matrix */
.matrix th, .matrix td { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix input { width: 16px; height: 16px; accent-color: var(--primary); }

/* AI */
.ai-answer { white-space: pre-wrap; font-size: 14px; line-height: 1.6; }
.ai-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gold-ink); background: color-mix(in srgb, var(--gold) 16%, transparent); padding: 3px 9px; border-radius: 6px; }
:root[data-theme="dark"] .ai-label { color: var(--gold); }
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.prompt { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 13px; cursor: pointer; font-weight: 600; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.prompt:hover { border-color: var(--primary); }
.prompt svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 1px; }

/* misc */
.dropzone { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 28px; text-align: center; color: var(--muted); cursor: pointer; background: var(--surface-2); }
.dropzone:hover, .dropzone.over { border-color: var(--primary); color: var(--ink); }
.steps { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.steps span { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 20px; background: var(--surface-3); color: var(--muted); }
.steps span.on { background: var(--primary); color: #fff; }
.steps span.done { background: var(--primary-soft); color: var(--primary); }
.code { font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-3); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-dot.connected { background: var(--ok); } .status-dot.error { background: var(--bad); } .status-dot.needs_attention { background: var(--warn); } .status-dot.disconnected { background: var(--s-other); }
.sep { height: 1px; background: var(--line); margin: 14px 0; }
.empty-inline { color: var(--muted); font-size: 13px; padding: 10px 0; }
.pill-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pill-nav a { padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13px; color: var(--ink-2); }
.pill-nav a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.pill-nav a:hover { text-decoration: none; border-color: var(--line-2); }

/* ================================================================ HRMS additions */
.kpi .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi .val { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums lining-nums; }
.span2 { grid-column: span 2; }
@media (max-width: 860px) { .span2 { grid-column: auto; } }
.bad-ink { color: var(--bad); font-weight: 600; }
.pos { color: var(--ok); } .neg { color: var(--bad); }
.linklike { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.linklike:hover b, .linklike:hover { color: var(--primary); }
.sortbtn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.sortbtn:hover { color: var(--ink); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn.icon-only { width: 36px; padding: 0; justify-content: center; }
.section-title { font-size: 15px; font-weight: 700; margin: 22px 0 10px; display: flex; gap: 10px; align-items: baseline; }
.section-title:first-child { margin-top: 0; }
.form-card { max-width: 980px; }
.card-f { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-l) var(--r-l); }

/* shell extras */
.nav-count { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--gold); color: #24180a; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.collapsed .nav-count { position: absolute; top: 2px; right: 6px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.demo-bar { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); padding: 7px 22px; font-size: 12.5px; font-weight: 600; }
.clock-btn { border-color: color-mix(in srgb, var(--primary) 40%, var(--line-2)); color: var(--primary); }
@media (max-width: 960px) { .clock-btn span { display: none; } }

/* home */
.hero-strip { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr); gap: 16px; margin-bottom: 16px; }
.today-card { background: var(--forest); color: var(--ivory); border-radius: var(--r-l); padding: 18px 20px; position: relative; overflow: hidden; }
.today-card::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 10px; border-left: 1px solid rgba(201,160,74,.4);
  background: repeating-linear-gradient(160deg, transparent 0 9px, rgba(201,160,74,.4) 9px 10px); }
.today-card .muted, .today-card .small.muted { color: rgba(244,236,221,.68); }
.today-state { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 6px 0 8px; display: flex; gap: 8px; align-items: center; color: #fff; }
.today-card .btn:not(.primary) { background: transparent; color: var(--ivory); border-color: rgba(244,236,221,.35); }
.today-card .btn:not(.primary):hover { background: rgba(244,236,221,.08); }
.today-card .btn.primary { background: var(--gold); border-color: var(--gold); color: #24180a; }
.todo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px 18px; box-shadow: var(--shadow); }
.todo-card h3 { font-size: 14.5px; margin-bottom: 4px; }
.todo-card .list-item { color: var(--ink); }
.todo-card .list-item:hover { text-decoration: none; }
.todo-card .list-item:hover b { color: var(--primary); }
@media (max-width: 860px) { .hero-strip { grid-template-columns: 1fr; } }
.balances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.bal { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bal .dot { position: static; width: 8px; height: 8px; min-width: 0; padding: 0; border: 0; border-radius: 50%; }
.bal .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.bal b { font-variant-numeric: tabular-nums; }
.balances.big { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bal-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c, var(--s1)); border-radius: var(--r); padding: 12px 14px; }
.bal-card .lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bal-card .val { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.2; margin: 2px 0; }
td .dot, .list-item .dot { position: static; display: inline-block; width: 8px; height: 8px; min-width: 0; padding: 0; border: 0; border-radius: 50%; vertical-align: middle; }
.date-chip { width: 44px; flex: none; border-radius: 8px; border: 1px solid var(--line); text-align: center; font-size: 10.5px; color: var(--muted); padding: 3px 0; line-height: 1.1; background: var(--surface-2); }
.date-chip b { display: block; font-family: var(--serif); font-size: 17px; color: var(--ink); }
.kudo { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kudo:last-child { border-bottom: 0; }
.kudo p { margin: 4px 0 0; color: var(--ink-2); }
.list.approvals .ap { cursor: pointer; }
.list.approvals .ap:hover b { color: var(--primary); }
.steps-v { list-style: none; margin: 0; padding: 0 0 0 4px; }
.steps-v li { position: relative; padding: 0 0 12px 22px; font-size: 13px; }
.steps-v li::before { content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.steps-v li::after { content: ""; position: absolute; left: 5px; top: 17px; bottom: 0; width: 1px; background: var(--line); }
.steps-v li:last-child::after { display: none; }
.steps-v li.approved::before { background: var(--ok); border-color: var(--ok); }
.steps-v li.rejected::before { background: var(--bad); border-color: var(--bad); }
.steps-v li.current::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }

/* admin index */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.admin-tile { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: 13.5px; }
.admin-tile svg { width: 18px; height: 18px; color: var(--primary); }
.admin-tile b { font-weight: 600; }
.admin-tile:hover { border-color: var(--primary); text-decoration: none; }

/* attendance */
.clock-face { text-align: center; padding: 6px 0 14px; }
.clock-face .time { font-family: var(--serif); font-size: 44px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.punches { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.punch { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 12px; background: var(--surface-3); color: var(--ink-2); text-transform: capitalize; }
.punch.in { background: var(--ok-soft); color: var(--ok); }
.punch.out { background: var(--bad-soft); color: var(--bad); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--stc, var(--line-2)); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 2px 6px 4px; }
.cal-cell { min-height: 74px; border: 1px solid var(--line); border-left: 3px solid var(--stc, var(--line)); border-radius: 8px; background: var(--surface); padding: 5px 6px; text-align: left; display: flex; flex-direction: column; gap: 1px; cursor: pointer; font-size: 11.5px; position: relative; min-width: 0; color: var(--ink); }
.cal-cell:hover { border-color: var(--line-2); border-left-color: var(--stc, var(--line-2)); background: var(--surface-2); }
.cal-cell.empty { border: 0; background: none; cursor: default; }
.cal-cell .d { font-weight: 700; font-size: 12.5px; }
.cal-cell .cd { font-weight: 700; color: var(--stc, var(--muted)); }
.cal-cell .t { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-cell.today .d { background: var(--primary); color: #fff; border-radius: 5px; padding: 0 5px; align-self: flex-start; }
.cal-cell.st-upcoming { background: var(--surface-2); color: var(--muted); }
.flag { position: absolute; top: 4px; right: 5px; font-size: 9.5px; font-weight: 700; padding: 0 4px; border-radius: 4px; background: var(--info-soft); color: var(--info); }
.flag.late { background: var(--warn-soft); color: var(--warn); }
.flag + .flag { right: 30px; }
.st-present { --stc: var(--ok); } .st-half_day, .st-half_leave { --stc: var(--warn); } .st-leave { --stc: var(--s2); } .st-absent { --stc: var(--bad); }
.st-missed_punch { --stc: var(--s5); } .st-holiday { --stc: var(--gold); } .st-week_off { --stc: var(--s-other); } .st-remote, .st-on_duty { --stc: var(--s4); }
.cal-legend i.st-present, .cal-legend i[class^="st-"] { background: var(--stc); }
@media (max-width: 640px) { .cal-cell { min-height: 52px; } .cal-cell .t { display: none; } }

/* roster & leave grid */
.shift-chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; padding: 3px 9px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--line-2)); }
.shift-chip.off { border-left-color: var(--s-other); }
table.t.roster th.today { color: var(--primary); }
table.t.roster td { text-align: center; }
table.t.roster td.primary-col { text-align: left; }
.shift-cell { display: inline-grid; place-items: center; min-width: 40px; height: 26px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 700;
  background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.shift-cell.off { background: var(--surface-3); color: var(--muted); border-color: var(--line); }
.shift-cell.hol { background: color-mix(in srgb, var(--gold) 18%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
table.t.leave-grid th, table.t.leave-grid td { padding: 4px 2px; text-align: center; min-width: 22px; }
table.t.leave-grid td.primary-col, table.t.leave-grid th:first-child { text-align: left; padding: 6px 10px; min-width: 150px; }
.lv { display: block; height: 14px; border-radius: 3px; background: var(--c); }
.lv.pending { background: repeating-linear-gradient(135deg, var(--c) 0 3px, transparent 3px 6px); border: 1px solid var(--c); }
.holiday-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.holiday { display: flex; gap: 12px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.holiday .main b { display: block; }
.holiday .main span { font-size: 12px; color: var(--muted); }
.holiday.past { opacity: .55; }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; max-height: 260px; overflow: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }

/* people */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.person-card { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); min-width: 0; }
a.person-card:hover { border-color: var(--primary); text-decoration: none; }
.person-card .main { min-width: 0; }
.person-card .main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-card .main span { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-wrap { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; }
.org-tree, .org-tree ul { list-style: none; margin: 0; padding: 0; }
.org-tree ul { margin-left: 22px; padding-left: 16px; border-left: 1px dashed var(--line-2); }
.org-tree li { padding: 4px 0; }
.org-node { display: inline-flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 240px; font-size: 13px; }
.org-node b { display: block; }
.org-node > div span { display: block; font-size: 12px; }
.org-node.focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.org-toggle { margin-left: auto; min-width: 28px; height: 24px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 12px; font-weight: 700; cursor: pointer; }
.org-toggle[aria-expanded="true"] { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; }
label.chip { cursor: pointer; }
label.chip:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.chip input { accent-color: var(--primary); margin: 0; }
.meter-dots { color: var(--gold-ink); letter-spacing: 1px; font-size: 10px; }
.badge-pick { display: flex; flex-wrap: wrap; gap: 6px; }

/* payroll & documents */
.slip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.slip { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); }
.slip:hover { border-color: var(--primary); text-decoration: none; }
.slip .m { font-weight: 700; }
.stepper { list-style: none; display: flex; gap: 0; margin: 0 0 16px; padding: 0; overflow-x: auto; }
.stepper li { flex: 1; min-width: 108px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 3px solid var(--line); white-space: nowrap; }
.stepper li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 11.5px; flex: none; }
.stepper li.done { color: var(--ok); border-bottom-color: var(--ok); }
.stepper li.done span { background: var(--ok); color: #fff; }
.stepper li.now { color: var(--ink); border-bottom-color: var(--gold); }
.stepper li.now span { background: var(--gold); color: #24180a; }
.warn-box { margin-bottom: 14px; border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); background: var(--warn-soft); }
.warn-box summary { padding: 11px 14px; cursor: pointer; font-size: 13px; }
.warn-box ul { margin: 0; padding: 0 16px 12px 34px; font-size: 13px; max-height: 300px; overflow: auto; }
.rule-ver { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rule-ver:last-child { border-bottom: 0; }
table.t.decl input.input { height: 32px; }
.doc { background: #fff; color: #17251B; max-width: 860px; margin: 0 auto; padding: 32px 36px; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); font-size: 13px; }
.doc .muted, .doc .small.muted { color: #6E7A70; }
.doc-h { display: flex; gap: 14px; align-items: center; }
.doc-h h2 { font-family: var(--serif); font-size: 19px; color: #0E3A1C; }
.doc-h .right { margin-left: auto; text-align: right; }
.doc-logo { height: 56px; width: auto; }
.doc-title { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #1F5E14; }
.kachni-rule { height: 8px; margin: 12px 0 18px; border-top: 2px solid #1F5E14; border-bottom: 1px solid #C9A04A; background: repeating-linear-gradient(120deg, transparent 0 5px, rgba(201,160,74,.75) 5px 6px); }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; margin-bottom: 18px; }
.doc .kv dt { color: #6E7A70; }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px; }
.doc table.t th { background: #F4ECDD; color: #44514A; }
.doc table.t td, .doc table.t th { border-color: #E2E6DC; }
.doc table.t tfoot th { background: none; border-top: 1px solid #D3D9CC; color: #17251B; position: static; }
.doc table.t tbody tr:hover td { background: none; }
.net { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 14px; border-radius: 8px; background: #E6F0E0; color: #0E3A1C; margin: 8px 0 12px; }
.net b { font-family: var(--serif); font-size: 22px; }
.net .small { flex-basis: 100%; color: #44514A; }
.doc footer { margin-top: 18px; padding-top: 10px; border-top: 1px solid #E2E6DC; }
.letter-title { font-family: var(--serif); font-size: 18px; margin: 4px 0 12px; }
.letter-body { font-size: 13.5px; line-height: 1.7; max-width: 68ch; }
.letter-body p { margin: 0 0 12px; }
.letter-preview { margin-top: 14px; }
.letter-preview:empty { display: none; }
.letter-preview .doc { padding: 20px; box-shadow: none; }
@media (max-width: 640px) { .doc { padding: 18px; } .doc-grid, .doc-cols { grid-template-columns: 1fr; } .doc-h { flex-wrap: wrap; } .doc-h .right { margin-left: 0; text-align: left; } }

/* talent */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.job-card { display: block; padding: 14px 15px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); }
.job-card:hover { border-color: var(--primary); text-decoration: none; }
.job-card .small { color: var(--muted); }
.iv { padding: 10px 0; border-bottom: 1px solid var(--line); }
.iv:last-child { border-bottom: 0; }
.fb { margin: 6px 0 0 12px; padding: 7px 10px; border-left: 2px solid var(--gold); background: var(--surface-2); border-radius: 0 6px 6px 0; font-size: 13px; }
.checklist { display: flex; flex-direction: column; }
.task { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.task:last-child { border-bottom: 0; }
.task.done .check, .task.not_applicable .check { color: var(--muted); text-decoration: line-through; }
h4 { font-size: 13.5px; margin: 14px 0 6px; }

/* workplace */
.msg { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--surface); }
.msg.me { background: var(--surface-2); }
.msg.internal { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.msg p { margin: 5px 0 0; }
.post { margin-bottom: 12px; }
.post h3 { font-size: 16px; margin: 6px 0; }
.policy-doc .card-b { font-size: 14px; line-height: 1.7; max-width: 76ch; }
.policy-doc p { margin: 0 0 12px; }
.survey-q { padding: 12px 0; border-bottom: 1px solid var(--line); }
.survey-q:last-child { border-bottom: 0; }
.scale { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.scale label { display: inline-grid; place-items: center; width: 44px; height: 38px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; font-weight: 700; }
.scale label:has(input:checked) { background: var(--primary); color: #fff; border-color: var(--primary); }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.dist { display: flex; gap: 8px; align-items: flex-end; height: 120px; }
.dist > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-size: 12px; }
.dist span { display: block; width: 100%; max-width: 48px; background: var(--s1); border-radius: 4px 4px 0 0; min-height: 2px; }
.comments { margin: 0; padding-left: 18px; font-size: 13.5px; }
.comments li { margin-bottom: 6px; }
.q-row, .act-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.q-row .input:first-child { flex: 1; min-width: 200px; }
.act-row .input { flex: 1; min-width: 140px; }
.cond-row { margin-bottom: 8px; }
.cond-row .input { flex: 1; min-width: 0; }

/* printing documents from inside the app */
@media print {
  .side, .top, .demo-bar, .no-print, #toasts, .scrim { display: none !important; }
  .shell { display: block; }
  body, .content { background: #fff; padding: 0; }
  .doc { border: 0; box-shadow: none; padding: 0; max-width: none; }
  @page { size: A4; margin: 12mm; }
}
.content:focus, .content:focus-visible { outline: none; }
.toast button { white-space: nowrap; }
