/* GroupaXion ERP · design system
   Brand from groupaxion.com: red #d8142b, ink #131015, paper #f4f1ec, Unbounded + Instrument Sans.
   Red means action or selection. Status colors carry meaning and are never decoration. */
:root {
  --red: #d8142b; --red-hover: #b80f23; --red-soft: #fbe7ea;
  --ink: #131015; --ink-2: #2b262c; --muted: #6a6369; --faint: #8e878c;
  --paper: #f4f1ec; --surface: #ffffff; --surface-2: #faf8f5; --line: #e6e1da; --line-2: #d6d0c8;
  --side: #131015; --side-2: #1f1b20; --side-text: #cfc8cc; --side-muted: #8a8287;
  --ok: #157a3c; --ok-soft: #e3f3e8; --warn: #a65a06; --warn-soft: #fbefdc; --bad: #b42318; --bad-soft: #fde8e6; --info: #2558c4; --info-soft: #e6eefc;
  --f-ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'Unbounded', 'Instrument Sans', system-ui, sans-serif;
  --r: 12px; --r-sm: 8px; --shadow: 0 1px 2px rgba(19,16,21,.06), 0 8px 24px -12px rgba(19,16,21,.18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ink: #f3eee9; --ink-2: #ddd6d1; --muted: #a39ba0; --faint: #7d757a; --paper: #0d0b0d; --surface: #171418; --surface-2: #1d191e;
  --line: #2d282e; --line-2: #3a343b; --side: #080608; --side-2: #171418; --red-soft: #3a1016; --red: #ef3a4c; --red-hover: #ff5a6a;
  --ok: #4ade80; --ok-soft: #10301c; --warn: #fbbf24; --warn-soft: #33260b; --bad: #fb7185; --bad-soft: #3a1219; --info: #7aa7ff; --info-soft: #132342;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.7); color-scheme: dark; } }
:root[data-theme="dark"] {
  --ink: #f3eee9; --ink-2: #ddd6d1; --muted: #a39ba0; --faint: #7d757a; --paper: #0d0b0d; --surface: #171418; --surface-2: #1d191e;
  --line: #2d282e; --line-2: #3a343b; --side: #080608; --side-2: #171418; --red-soft: #3a1016; --red: #ef3a4c; --red-hover: #ff5a6a;
  --ok: #4ade80; --ok-soft: #10301c; --warn: #fbbf24; --warn-soft: #33260b; --bad: #fb7185; --bad-soft: #3a1219; --info: #7aa7ff; --info-soft: #132342;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.7); color-scheme: dark;
}
:root[lang="ar"] { --f-ui: 'IBM Plex Sans Arabic', 'Instrument Sans', system-ui, sans-serif; --f-display: 'IBM Plex Sans Arabic', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 14px/1.5 var(--f-ui); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.num, td.n, .kpi b { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px 24px;
  display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; scrollbar-color: #3a343b transparent; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font: 800 15px/1 'Montserrat', var(--f-ui); letter-spacing: .02em; }
.brand b i { font-style: normal; color: var(--red); }
.brand small { display: block; font-size: 11px; color: var(--side-muted); font-weight: 500; letter-spacing: 0; margin-top: 3px; }
.nav-group { margin-top: 10px; }
.nav-group > button { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  padding: 6px 10px; color: var(--side-muted); font-size: 12px; font-weight: 600; border-radius: 6px; }
.nav-group > button:hover { color: #fff; }
.nav-group > button svg { width: 12px; transition: transform .18s var(--ease); }
.nav-group.closed > button svg { transform: rotate(-90deg); }
[dir="rtl"] .nav-group.closed > button svg { transform: rotate(90deg); }
.nav-group.closed .nav-items { display: none; }
.nav-items a { display: block; padding: 6px 10px 6px 14px; border-radius: 6px; color: var(--side-text); position: relative; font-size: 13.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .12s; }
.nav-items a:hover { background: var(--side-2); color: #fff; }
.nav-items a[aria-current="page"] { background: var(--side-2); color: #fff; font-weight: 600; }
.nav-items a[aria-current="page"]::before { content: ''; position: absolute; inset-inline-start: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--red); }
.nav-home { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--side-text); font-weight: 600; }
.nav-home[aria-current="page"], .nav-home:hover { background: var(--side-2); color: #fff; }
.side-foot { margin-top: auto; padding: 16px 10px 0; font-size: 11.5px; color: var(--side-muted); line-height: 1.4; }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 24px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span:last-child { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.searchbtn { display: flex; align-items: center; gap: 10px; min-width: 240px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); cursor: pointer; }
.searchbtn svg { width: 16px; height: 16px; flex: none; }
.searchbtn kbd { margin-inline-start: auto; font: 11px var(--f-ui); color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--ink-2); position: relative; }
.iconbtn:hover { background: var(--surface); border-color: var(--line); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn .dot { position: absolute; top: 6px; inset-inline-end: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.seg button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.me { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 4px; border-radius: 999px; cursor: default; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.menu-burger { display: none; }

main { padding: 24px 28px 64px; max-width: 1480px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font: 600 26px/1.15 var(--f-display); letter-spacing: -.01em; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 72ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .14s, border-color .14s, transform .1s; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn.ghost { border-color: transparent; background: none; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--red); }
.input, select.input, textarea.input { height: 40px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 12px; background: var(--surface); width: 100%; transition: border-color .14s, box-shadow .14s; }
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent); }
.field.invalid .input { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 12px; }
.check { display: flex; gap: 8px; align-items: center; height: 40px; }

/* ---------------------------------------------------------------- dashboard */
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.section-title h2 { font: 600 16px/1.2 var(--f-ui); margin: 0; }
.section-title a { color: var(--muted); font-size: 13px; }
.section-title a:hover { color: var(--red); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 104px; }
.kpi span { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi b { font: 500 25px/1.1 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpi b small { font: 500 12px var(--f-ui); color: var(--muted); margin-inline-start: 4px; letter-spacing: 0; }
.kpi em { font-style: normal; font-size: 12px; color: var(--muted); margin-top: auto; }
.kpi.alert b { color: var(--red); }
a.kpi:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.card h3 { font-size: 14px; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card h3 small { font-weight: 500; color: var(--muted); font-size: 12px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars i { display: block; width: 100%; max-width: 34px; background: var(--ink); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .4s var(--ease); }
.bars div:last-child i { background: var(--red); }
.bars span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; margin: 7px 0; font-size: 13px; }
.hbar .track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.hbar .track i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.hbar.hot .track i { background: var(--red); }
.hbar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows { display: flex; flex-direction: column; }
.rows a, .rows > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--line); align-items: center; }
.rows a:first-child, .rows > div:first-child { border-top: 0; }
.rows a:hover b { color: var(--red); }
.rows small { color: var(--muted); grid-column: 1; font-size: 12px; }
.empty { color: var(--muted); padding: 24px 4px; text-align: center; }

/* ---------------------------------------------------------------- tables */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .input { width: 280px; height: 36px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; font-weight: 500; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
th { position: sticky; top: 0; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--muted); z-index: 1; cursor: pointer; user-select: none; }
th:hover { color: var(--ink); }
th.sorted { color: var(--ink); }
td { font-size: 13.5px; }
td.n, th.n { text-align: end; }
tbody tr { cursor: pointer; transition: background .1s; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td.title { font-weight: 600; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 13px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.pill.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; margin-inline-end: 4px; }

/* ---------------------------------------------------------------- record */
.record { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.fields .wide { grid-column: 1 / -1; }
.kv dt { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 3px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd a { color: var(--red); font-weight: 500; }
.kv dd.long { white-space: pre-wrap; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.totals .grand { font: 600 18px var(--f-display); color: var(--ink); padding-top: 8px; border-top: 1px solid var(--line); }
.totals .due { color: var(--red); font-weight: 700; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 22px 0 12px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--red); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-size: 13px; margin-bottom: 14px; }
.notice.info { background: var(--info-soft); color: var(--info); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------------------------------------------------------------- kanban & calendar */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-height: 300px; display: flex; flex-direction: column; gap: 8px; }
.col.drop { border-color: var(--red); background: var(--red-soft); }
.col header { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; padding: 2px 4px 6px; }
.col header small { color: var(--muted); font-weight: 500; }
.opp { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: grab; display: flex; flex-direction: column; gap: 4px; }
.opp:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.opp b { font-size: 13.5px; }
.opp small { color: var(--muted); }
.opp .amt { font: 500 14px var(--f-display); font-variant-numeric: tabular-nums; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cal > div { background: var(--surface); min-height: 180px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cal .day { font-size: 12px; color: var(--muted); font-weight: 600; }
.cal .today .day { color: var(--red); }
.ev { border-inline-start: 3px solid var(--ink); background: var(--surface-2); border-radius: 6px; padding: 6px 8px; font-size: 12px; cursor: pointer; }
.ev.training { border-color: var(--red); } .ev.team { border-color: var(--info); } .ev.assessment { border-color: var(--warn); } .ev.coaching { border-color: var(--ok); }
.ev b { display: block; font-size: 12.5px; }
.ev small { color: var(--muted); }

/* ---------------------------------------------------------------- overlays */
.overlay { position: fixed; inset: 0; background: rgba(19,16,21,.42); z-index: 50; display: flex; justify-content: flex-end; animation: fade .18s; }
.overlay.center { justify-content: center; align-items: flex-start; padding-top: 10vh; }
.drawer { width: min(560px, 100%); height: 100%; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; animation: slide .22s var(--ease); }
[dir="rtl"] .drawer { animation-name: slide-rtl; }
.drawer.wide { width: min(880px, 100%); }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font: 600 18px var(--f-display); margin: 0; }
.drawer .body { padding: 20px 22px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.drawer footer { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.palette { width: min(640px, 92vw); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; animation: pop .16s var(--ease); }
.palette .input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; height: 54px; font-size: 16px; padding: 0 18px; }
.palette .input:focus { box-shadow: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.palette li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; }
.palette li a:hover, .palette li a.sel { background: var(--surface-2); }
.palette li small { color: var(--muted); }
.combo { position: relative; }
.combo ul { position: absolute; z-index: 5; inset-inline: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); box-shadow: var(--shadow); max-height: 240px; overflow-y: auto; }
.combo li { padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.combo li:hover { background: var(--surface-2); }
.lines { width: 100%; border-collapse: collapse; }
.lines td, .lines th { padding: 6px 4px; border-bottom: 1px solid var(--line); max-width: none; }
.lines th { position: static; background: none; cursor: default; }
.lines .input { height: 34px; padding: 0 8px; }
#toasts { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: var(--paper); padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 420px; animation: pop .18s var(--ease); font-size: 13.5px; }
.toast.bad { background: var(--bad); color: #fff; }
.assistant .answer { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.assistant .answer ul { margin: 8px 0 0; padding-inline-start: 18px; }
.assistant .answer li { margin: 3px 0; }
.assistant .src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.assistant .src a { font-size: 12px; border: 1px solid var(--line-2); border-radius: 99px; padding: 2px 9px; }
.assistant .src a:hover { border-color: var(--red); color: var(--red); }
.assistant .sugg { margin-top: 10px; color: var(--info); font-size: 13px; }
.assistant .q { display: flex; flex-wrap: wrap; gap: 6px; }
@keyframes fade { from { opacity: 0 } }
@keyframes slide { from { transform: translateX(40px); opacity: 0 } }
@keyframes slide-rtl { from { transform: translateX(-40px); opacity: 0 } }
@keyframes pop { from { transform: scale(.97); opacity: 0 } }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sh 1.2s infinite; margin: 10px 0; }
@keyframes sh { to { background-position: -200% 0 } }

/* ---------------------------------------------------------------- login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); }
.login-art { background: var(--side); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art svg.mark { position: absolute; width: 70%; inset-inline-end: -12%; top: 50%; transform: translateY(-50%); opacity: .95; }
.login-art h1 { font: 600 clamp(28px, 3.4vw, 44px)/1.08 var(--f-display); max-width: 15ch; margin: 0; position: relative; letter-spacing: -.02em; }
.login-art p { color: var(--side-text); max-width: 46ch; position: relative; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 80px); gap: 16px; background: var(--paper); }
.login-form h2 { font: 600 22px var(--f-display); margin: 0 0 6px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) { .record { grid-template-columns: 1fr; } .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 272px; z-index: 60; transform: translateX(-100%); transition: transform .22s var(--ease); }
  [dir="rtl"] .side { transform: translateX(100%); }
  .shell.nav-open .side { transform: none; box-shadow: var(--shadow); }
  .menu-burger { display: inline-grid; }
  .top { padding: 0 12px; }
  .searchbtn { min-width: 0; width: 36px; padding: 0; justify-content: center; border-radius: 10px; }
  .searchbtn span, .searchbtn kbd, .seg.lang, .me .who { display: none; }
  main { padding: 18px 14px 48px; }
  .grid2, .fields { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 12px; min-height: 92px; } .kpi b { font-size: 20px; }
  .page-head h1 { font-size: 21px; }
  .hbar { grid-template-columns: minmax(70px, 110px) 1fr auto; }
  .login { grid-template-columns: 1fr; } .login-art { min-height: 220px; padding: 28px; } .login-art svg.mark { width: 60%; }
  .toolbar .input { width: 100%; }
  th, td { padding: 9px 10px; }
}
