/* ============================================================
   OdooTimeBridge — shared stylesheet
   Paste this block verbatim into the shared Delphi layout function.
   Sections:
     1. Design tokens (light + dark)
     2. Reset & basics
     3. Header + navigation
     4. Page layout
     5. Buttons
     6. Status badges
     7. Data tables (toolbar, search, sort, scroll)
     8. Disclosure (<details>) — match reason etc.
     9. Cards & service status
    10. Tree (collapsible hierarchy)
    11. Dry-run flow (steps / assessments)
    12. Mermaid panel
    13. Utilities
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* brand (GDK) */
  --brand:      #2f7493;  /* steel blue — primary actions, links, active */
  --brand-strong:#1d6c91;
  --navy:       #004880;  /* heritage navy — headings, dark surfaces */
  --accent:     #78c040;  /* GDK green — success, positive status */
  /* semantic */
  --ok:         #5e9e2e;  --ok-bg:   #eef7e4;  --ok-line:   #b6df96;
  --busy:       #2f7493;  --busy-bg: #e0eef7;  --busy-line: #8fb6c8;
  --warn:       #b97400;  --warn-bg: #fdf2dc;  --warn-line: #ecc57e;
  --err:        #cf3b2c;  --err-bg:  #fbe7e4;  --err-line:  #efaba2;
  --wait:       #647179;  --wait-bg: #f0f3f5;  --wait-line: #cad2d7;
  /* surfaces & text */
  --bg:         #f2f6f8;
  --surface:    #ffffff;
  --surface-2:  #f7fafb;  /* zebra, subheadings */
  --ink:        #14252f;
  --ink-2:      #46555f;
  --muted:      #71828c;
  --border:     #dfe7ea;
  --border-2:   #c8d4d9;
  --link:       #1d6c91;
  --link-hover: #004880;
  --focus:      rgba(47,116,147,.45);
  --shadow-sm:  0 1px 2px rgba(20,37,47,.06);
  --shadow-md:  0 2px 8px rgba(20,37,47,.08), 0 1px 2px rgba(20,37,47,.05);
  --radius:     8px;
  --radius-sm:  6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, Menlo, monospace;
  color-scheme: light;
}
/* Dark tokens: one block, two entry points (system preference + manual override) */
[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }
[data-theme="dark"],
:root:not([data-theme="light"]).os-dark { /* .os-dark is unused; see the media block below */ }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand:#5b93ac; --brand-strong:#7fb2c7; --navy:#8fb6c8; --accent:#93ce66;
    --ok:#93ce66;  --ok-bg:rgba(120,192,64,.14);  --ok-line:rgba(120,192,64,.4);
    --busy:#7fb2c7;--busy-bg:rgba(91,147,172,.16);--busy-line:rgba(91,147,172,.45);
    --warn:#e8a33d;--warn-bg:rgba(217,138,0,.15); --warn-line:rgba(217,138,0,.45);
    --err:#f08a7d; --err-bg:rgba(207,59,44,.16);  --err-line:rgba(207,59,44,.45);
    --wait:#93a5ae;--wait-bg:rgba(133,147,153,.14);--wait-line:rgba(133,147,153,.4);
    --bg:#0f1b22; --surface:#172630; --surface-2:#1c2d38;
    --ink:#dde8ee; --ink-2:#a9bcc6; --muted:#7e929d;
    --border:#273b46; --border-2:#33505e;
    --link:#7fb2c7; --link-hover:#a8cddd; --focus:rgba(91,147,172,.5);
    --shadow-sm:0 1px 2px rgba(0,0,0,.3); --shadow-md:0 2px 10px rgba(0,0,0,.35);
  }
}
[data-theme="dark"] {
  --brand:#5b93ac; --brand-strong:#7fb2c7; --navy:#8fb6c8; --accent:#93ce66;
  --ok:#93ce66;  --ok-bg:rgba(120,192,64,.14);  --ok-line:rgba(120,192,64,.4);
  --busy:#7fb2c7;--busy-bg:rgba(91,147,172,.16);--busy-line:rgba(91,147,172,.45);
  --warn:#e8a33d;--warn-bg:rgba(217,138,0,.15); --warn-line:rgba(217,138,0,.45);
  --err:#f08a7d; --err-bg:rgba(207,59,44,.16);  --err-line:rgba(207,59,44,.45);
  --wait:#93a5ae;--wait-bg:rgba(133,147,153,.14);--wait-line:rgba(133,147,153,.4);
  --bg:#0f1b22; --surface:#172630; --surface-2:#1c2d38;
  --ink:#dde8ee; --ink-2:#a9bcc6; --muted:#7e929d;
  --border:#273b46; --border-2:#33505e;
  --link:#7fb2c7; --link-hover:#a8cddd; --focus:rgba(91,147,172,.5);
  --shadow-sm:0 1px 2px rgba(0,0,0,.3); --shadow-md:0 2px 10px rgba(0,0,0,.35);
}

/* ---------- 2. Reset & basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 14px/1.5 var(--font);
  overflow-x: hidden; /* safety net: wide tables scroll inside their own .table-scroll, never the body */
}
h1,h2,h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: 20px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 600; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-radius: 4px; }
code, .mono { font-family: var(--mono); font-size: .93em; }

/* External link: arrow affordance */
a.ext::after { content: "\2197"; font-size: .78em; margin-left: .3em; opacity: .65; vertical-align: .12em; }
a.ext:hover::after { opacity: 1; }

/* ---------- 3. Header + navigation ---------- */
.app-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.app-header__bar {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 24px; height: 52px;
}
.app-brand { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 15px; color: var(--ink); white-space: nowrap; }
.app-brand .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); align-self: center; }
.app-brand b { color: var(--brand); font-weight: 800; }
.app-nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; }
.app-nav a {
  display: block; padding: 15px 11px 13px; color: var(--ink-2);
  font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.app-nav a:hover { color: var(--ink); text-decoration: none; background: var(--surface-2); }
.app-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.app-header__meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- 4. Page layout ---------- */
.page { max-width: 1280px; margin: 0 auto; padding: 24px 20px 56px; }
.page-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); font-size: 13px; }
.page-head .spacer { flex: 1; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs a {
  display: block; padding: 8px 12px; margin-bottom: -1px; color: var(--ink-2);
  font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs a:hover { color: var(--ink); text-decoration: none; background: var(--surface-2); }
.tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

/* Modal dialog — e.g. the companies sync-selection popup */
.modal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 20px;
  min-width: 320px;
  max-width: min(440px, 90vw);
  box-shadow: var(--shadow-md);
}
.modal::backdrop { background: rgba(20, 37, 47, .45); }
.modal h2 { margin: 0 0 4px; font-size: 1.05rem; }
.modal__sub { margin: 0 0 12px; color: var(--ink-2); font-size: .85rem; }
.modal__warning {
  margin: 12px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--warn-line);
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: .82rem;
}
.modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 50vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.check-item { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check-item input { accent-color: var(--brand); }
.section { margin-bottom: 24px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); max-width: 100%; min-width: 0; }
.panel__head { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.panel__head h2 { margin: 0; font-size: 14px; }
.panel__body { padding: 16px; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 13.5px/1 var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); padding: 9px 14px; cursor: pointer;
  transition: background .12s ease, border-color .12s ease, transform .05s ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--brand); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
[data-theme="dark"] .btn--primary, .btn--primary { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { color: #0f1b22; } }
[data-theme="dark"] .btn--primary { color: #0f1b22; }
.btn--sm { padding: 5px 9px; font-size: 12.5px; border-radius: 5px; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--link); }
.btn--ghost:hover { background: var(--busy-bg); border-color: transparent; color: var(--link-hover); }
.btn .ico { font-size: 13px; line-height: 1; opacity: .8; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--icon { padding: 5px 7px; }
.btn--icon .ico { font-size: 14px; }

/* ---------- 6. Status badges ----------
   .badge + modifier. Dot variants (service) via .badge--dot. */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px/1 var(--font); letter-spacing: .01em;
  padding: 4px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.badge--wait  { color: var(--wait); background: var(--wait-bg); border-color: var(--wait-line); }
.badge--busy  { color: var(--busy); background: var(--busy-bg); border-color: var(--busy-line); }
.badge--ok    { color: var(--ok);   background: var(--ok-bg);   border-color: var(--ok-line); }
.badge--warn  { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.badge--err   { color: var(--err);  background: var(--err-bg);  border-color: var(--err-line); }
.badge--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--busy.badge--dot::before { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- 7. Data tables ---------- */
.table-toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.table-toolbar .count { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.search {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 0 10px; height: 32px; min-width: 240px;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }
.search input { border: 0; background: transparent; color: var(--ink); font: 400 13px var(--font); flex: 1; min-width: 0; }
.search input:focus { outline: none; }
.search .ico { color: var(--muted); font-size: 13px; }

.table-scroll {
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 0 0 var(--radius) var(--radius);
}
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.data-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface-2); color: var(--ink-2);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border-2); white-space: nowrap;
}
.data-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.data-table tbody tr:hover td { background: var(--busy-bg); }
.data-table tbody tr[data-href] { cursor: pointer; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td .mono { color: var(--ink-2); }
.data-table .nowrap { white-space: nowrap; }

/* per-column filters — the filter row is injected by the JS */
.data-table thead tr.filter-row th {
  position: static; z-index: 1;
  padding: 5px 8px; text-transform: none; letter-spacing: 0; font-weight: 400;
  background: var(--surface); border-bottom: 1px solid var(--border-2);
}
.col-filter {
  width: 100%; box-sizing: border-box;
  font: inherit; font-size: 12px; font-weight: 400;
  padding: 4px 7px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
}
.col-filter:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }

/* sortable column headers */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--brand); background: var(--busy-bg); }
th.sortable::after { content: "\2195"; margin-left: 6px; opacity: .35; font-size: 11px; }
th.sortable[aria-sort="ascending"]::after  { content: "\25B2"; opacity: 1; color: var(--brand); }
th.sortable[aria-sort="descending"]::after { content: "\25BC"; opacity: 1; color: var(--brand); }

/* empty state after filtering */
.data-table tr.empty-row td { text-align: center; color: var(--muted); padding: 28px 12px; font-style: italic; background: none; }

/* ---------- 8. Disclosure (<details>) ---------- */
details.disclosure > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  color: var(--link); font-weight: 600; font-size: 12.5px;
}
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::before { content: "\25B8"; font-size: 10px; transition: transform .12s ease; }
details.disclosure[open] > summary::before { transform: rotate(90deg); }
details.disclosure > summary:hover { color: var(--link-hover); text-decoration: underline; }
details.disclosure .disclosure__body {
  margin-top: 6px; padding: 8px 10px; max-width: 420px;
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius-sm);
  color: var(--ink); font-size: 12.5px; line-height: 1.45;
}
/* Inside a table cell the match reason is a popover that opens to the left from the
   cell's right edge. That keeps the column narrow (no absolute width in the flow) and
   lets the box grow into the visible space instead of being clipped at the viewport edge. */
.data-table td details.disclosure { display: inline-block; position: relative; }
.data-table td details.disclosure .disclosure__body {
  position: absolute; right: 0; top: calc(100% + 4px);
  width: 300px; max-width: 300px;
  white-space: normal; overflow-wrap: anywhere;
  z-index: 40; box-shadow: var(--shadow-md);
}

/* ---------- 9. Cards & service status ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; }
.svc-card { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--wait-line); }
.svc-card--on  { border-top-color: var(--accent); }
.svc-card--off { border-top-color: var(--err); }
.svc-card__head { display: flex; align-items: center; gap: 10px; }
.svc-card__head h3 { margin: 0; font-size: 15px; }
.svc-card__head .badge { margin-left: auto; }
.svc-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.svc-dot--on  { background: var(--accent); box-shadow: 0 0 0 3px var(--ok-bg); }
.svc-dot--off { background: var(--err);   box-shadow: 0 0 0 3px var(--err-bg); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- 10. Tree ---------- */
.tree { font-size: 13px; }
.tree details { border-left: 2px solid var(--border); margin-left: 10px; }
.tree > details { border-left: 0; margin-left: 0; }
.tree summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
}
.tree summary::-webkit-details-marker { display: none; }
.tree summary:hover { background: var(--busy-bg); }
.tree summary::before { content: "\25B8"; color: var(--muted); font-size: 11px; width: 12px; transition: transform .12s ease; }
.tree details[open] > summary::before { transform: rotate(90deg); }
.tree .node-title { font-weight: 600; }
.tree .node-key { font-family: var(--mono); font-size: 12px; color: var(--brand); }
.tree .node-meta { color: var(--muted); font-size: 12px; margin-left: auto; display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.tree .children { padding: 2px 0 6px 18px; }
.tree .leaf {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 26px;
  color: var(--ink-2); border-radius: var(--radius-sm);
}
.tree .leaf::before { content: "\2022"; color: var(--border-2); }
.tree .leaf:hover { background: var(--surface-2); }
.tree .leaf .node-meta { margin-left: auto; }

/* ---------- 11. Dry-run flow ---------- */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.flow > li { position: relative; padding: 0 0 18px 44px; counter-increment: step; }
.flow > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--busy-bg); color: var(--brand); border: 1px solid var(--busy-line);
  font: 700 12px/24px var(--font); text-align: center;
}
.flow > li::after {
  content: ""; position: absolute; left: 12.5px; top: 30px; bottom: 4px;
  width: 1px; background: var(--border-2);
}
.flow > li:last-child::after { display: none; }
.flow > li:last-child { padding-bottom: 0; }
.flow .step-title { font-weight: 600; padding-top: 4px; }
.flow .step-detail { color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.flow > li.flow--stop::before { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); content: "\2713"; }

/* assessments: create / update / unchanged */
.assess { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 8px; }
.assess__tag { flex: none; font: 700 11px/1 var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 4px; }
.assess--create { border-color: var(--ok-line); background: var(--ok-bg); }
.assess--create .assess__tag { background: var(--ok); color: #fff; }
.assess--update { border-color: var(--busy-line); background: var(--busy-bg); }
.assess--update .assess__tag { background: var(--busy); color: #fff; }
.assess--same .assess__tag { background: var(--wait); color: #fff; }
.assess__body { font-size: 13px; }
.assess__body .mono { font-size: 12px; }

/* notifications in dry-run */
.note-list { margin: 0; padding: 0; list-style: none; }
.note-list li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.note-list li:last-child { border-bottom: 0; }

/* ---------- 12. Mermaid panel ---------- */
.mermaid-panel { overflow-x: auto; padding: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.mermaid-panel pre.mermaid { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.mermaid-panel svg { max-width: 100%; height: auto; }
#mermaid-svg .nodeLabel small { font-size: 11px; }
#mermaid-svg .nodeLabel small b { line-height: 1.9; background: rgba(120,192,64,.18); box-shadow: inset 0 0 0 1px rgba(120,192,64,.55); border-radius: 999px; padding: 2px 11px; font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
#mermaid-svg .edgeLabel { font-size: 12px; font-weight: 600; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- 13. Utilities ---------- */
.muted { color: var(--muted); }
.right { text-align: right; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 14. Period picker & date filter ---------- */
.sync-period { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.sync-period label, .date-filter label { display: inline-flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.sync-period input[type="date"], .date-filter input[type="date"] { font: inherit; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.sync-period__hint { align-self: center; font-size: 12px; color: var(--muted); }
.date-filter { display: inline-flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }

/* ---------- 15. Pagination ---------- */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 4px 2px; }
.pager__info { font-size: 12px; color: var(--muted); }
.pager__links { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.pager__page { font-size: 12px; color: var(--ink-2); padding: 0 6px; font-variant-numeric: tabular-nums; }
.pager__size { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.pager__size select { font: inherit; padding: 4px 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--ink); }

/* ---------- 16. Login & first administrator ---------- */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.auth-card--wide { max-width: 460px; }
.auth-card h1 { margin: 14px 0 6px; font-size: 20px; }
.auth-card .muted { font-size: 13px; line-height: 1.5; }
.auth-card code { font-family: var(--mono); font-size: 12px; }
.auth-form { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.auth-form label { font-size: 12px; color: var(--muted); margin-top: 8px; }
.auth-form input { font: inherit; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--ink); }
.auth-form button { margin-top: 18px; justify-content: center; }
.auth-alert { margin-top: 14px; padding: 10px 12px; border-radius: var(--radius); background: var(--err-bg); color: var(--err); font-size: 13px; }
.app-header__user { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.inline-form + .inline-form { margin-top: 6px; }
.input--sm { font: inherit; font-size: 12px; padding: 4px 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--ink); max-width: 150px; }
