/* ==========================================================================
   Al Fajar ERP  -  "Dum & Saffron" design system
   Warm parchment workspace, charcoal chrome (like the logo's pot), saffron accents.
   ========================================================================== */
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('../fonts/DMSerifDisplay.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --canvas: #f5efe4;
  --surface: #fffcf6;
  --surface-2: #faf4e8;
  --surface-3: #f2eadb;
  --ink: #1e1913;
  --ink-2: #5c5245;
  --ink-3: #8b7f6e;
  --line: #e6dccb;
  --line-2: #efe7d8;

  --gold: #f2b300;
  --gold-600: #d79a00;
  --gold-700: #a87400;
  --gold-100: #fdf1c8;
  --gold-50: #fff8e3;

  --char: #16110d;
  --char-2: #211a14;
  --char-3: #2e251c;
  --char-line: #3a2f24;

  --copper: #b5532a;
  --copper-100: #f7e3d8;
  --ok: #1d8a5a;   --ok-100: #d9f0e4;
  --bad: #c93a2b;  --bad-100: #fadcd7;
  --warn: #b26a00; --warn-100: #fdebc5;
  --info: #2c6c9b; --info-100: #dbeaf4;

  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(60,40,10,.06), 0 1px 1px rgba(60,40,10,.04);
  --shadow-2: 0 10px 28px -10px rgba(60,40,10,.22), 0 2px 6px rgba(60,40,10,.06);
  --shadow-3: 0 24px 60px -16px rgba(40,25,5,.38);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --side-w: 248px;
  --top-h: 64px;
  --ease: cubic-bezier(.22,.8,.3,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.5; color: var(--ink); background: var(--canvas);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
::selection { background: var(--gold); color: var(--char); }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--ink-3); }
.mono { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.hide { display: none !important; }

.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; background: var(--char); color: #e9dfcf; display: flex; flex-direction: column;
  border-right: 1px solid #000; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--char-line) transparent;
}
.side::before {   /* faint steam of the pot behind the logo */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(242,179,0,.16), transparent 70%);
}
.brand { position: relative; display: flex; align-items: center; gap: 12px; padding: 20px 20px 14px; }
.brand img { width: 52px; height: 52px; border-radius: 12px; mix-blend-mode: screen; object-fit: contain; }
.brand b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.05; color: #fff; }
.brand span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.nav { padding: 6px 12px 12px; display: flex; flex-direction: column; gap: 1px; position: relative; }
.nav h6 { margin: 16px 10px 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8c7d68; font-weight: 800; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; color: #d8ccb8; font-weight: 600; font-size: 14px;
  transition: background .18s, color .18s, transform .18s var(--ease);
}
.nav a .i { font-size: 18px; opacity: .85; }
.nav a:hover { background: var(--char-3); color: #fff; }
.nav a.active { background: var(--gold); color: var(--char); font-weight: 800; box-shadow: 0 6px 18px -8px rgba(242,179,0,.7); }
.nav a.active .i { opacity: 1; }
.nav a .count { margin-left: auto; font-size: 11.5px; font-weight: 800; background: var(--bad); color: #fff; border-radius: 99px; padding: 1px 7px; min-width: 20px; text-align: center; }
.nav a.active .count { background: var(--char); color: var(--gold); }
.side .me {
  margin-top: auto; padding: 14px 16px; border-top: 1px solid var(--char-line); display: flex; align-items: center; gap: 10px; position: relative;
}
.side .me .who { min-width: 0; line-height: 1.25; }
.side .me .who b { display: block; font-size: 13.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .me .who span { font-size: 11.5px; color: #a89a85; }
.side .me form { margin-left: auto; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; transition: background .15s; }
.side .icon-btn { color: #cbbda6; }
.side .icon-btn:hover { background: var(--char-3); color: #fff; }
.icon-btn:hover { background: rgba(0,0,0,.06); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.top .burger { display: none; }
.top .crumb { font-size: 12px; color: var(--ink-3); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.top .spacer { flex: 1; }
.clock { font-weight: 800; font-size: 14px; color: var(--ink-2); text-align: right; line-height: 1.15; }
.clock small { display: block; font-weight: 600; font-size: 11px; color: var(--ink-3); }
.shiftpill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 99px; font-weight: 800; font-size: 12.5px; border: 1px solid var(--line); background: var(--surface); }
.shiftpill i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.shiftpill.on { border-color: #bfe3cf; background: var(--ok-100); color: #0f5d3a; }
.shiftpill.on i { background: var(--ok); box-shadow: 0 0 0 0 rgba(29,138,90,.6); animation: pulse 2s infinite; }
.shiftpill.off { background: var(--warn-100); border-color: #f0d28f; color: #7a4a00; }
.shiftpill.off i { background: var(--warn); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(29,138,90,0); } 100% { box-shadow: 0 0 0 0 rgba(29,138,90,0); } }

.scope { position: relative; }
.scope > button {
  display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--surface); padding: 7px 12px 7px 10px; border-radius: 12px;
  font-weight: 800; cursor: pointer; box-shadow: var(--shadow-1);
}
.scope > button .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bc, var(--gold)); }
.scope .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); padding: 6px; display: none; }
.scope.open .menu { display: block; animation: pop .16s var(--ease); }
.scope .menu button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-weight: 700; text-align: left; }
.scope .menu button:hover, .scope .menu button.sel { background: var(--gold-50); }
.scope .menu button .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bc, var(--ink-3)); }
.scope .menu button small { display: block; font-weight: 600; color: var(--ink-3); font-size: 11.5px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

.page { padding: 26px 28px 60px; width: 100%; max-width: 1480px; margin: 0 auto; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.page.full { max-width: none; padding: 0; }
.phead { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.phead h1 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.05; letter-spacing: 0; }
.phead p { color: var(--ink-3); margin-top: 4px; font-weight: 500; }
.phead .tools { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 12px; padding: 10px 18px; font-weight: 800; font-size: 14px; cursor: pointer;
  background: var(--gold); color: var(--char); transition: transform .12s var(--ease), box-shadow .18s, background .15s, border-color .15s; white-space: nowrap; line-height: 1.2;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 6px 14px -8px rgba(215,154,0,.9);
}
.btn:hover { background: #ffc21a; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.dark { background: var(--char); color: #fff; box-shadow: 0 6px 14px -8px rgba(0,0,0,.8); }
.btn.dark:hover { background: var(--char-3); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-1); }
.btn.ghost:hover { border-color: var(--gold-600); background: var(--gold-50); }
.btn.danger { background: var(--bad); color: #fff; box-shadow: none; }
.btn.danger:hover { background: #b02f21; }
.btn.ok { background: var(--ok); color: #fff; box-shadow: none; }
.btn.ok:hover { background: #167548; }
.btn.soft { background: var(--gold-100); color: var(--gold-700); box-shadow: none; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-top-color: transparent; color: var(--char); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 13px; font-weight: 600; transition: border-color .15s, box-shadow .15s; min-height: 44px;
}
.input:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 4px rgba(242,179,0,.22); }
.input::placeholder { color: #b3a791; font-weight: 500; }
textarea.input { min-height: 80px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b7f6e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input.sm { min-height: 36px; padding: 6px 10px; border-radius: 10px; font-size: 13.5px; }
.input-group { display: flex; align-items: stretch; }
.input-group .pre { display: grid; place-items: center; padding: 0 12px; background: var(--surface-3); border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; font-weight: 800; color: var(--ink-2); }
.input-group .input { border-radius: 0 12px 12px 0; }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.form-grid > .c3 { grid-column: span 3; } .form-grid > .c4 { grid-column: span 4; } .form-grid > .c5 { grid-column: span 5; }
.form-grid > .c6 { grid-column: span 6; } .form-grid > .c8 { grid-column: span 8; } .form-grid > .c12 { grid-column: span 12; }
.check { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold-600); }

.seg { display: inline-flex; padding: 4px; background: var(--surface-3); border-radius: 13px; gap: 2px; border: 1px solid var(--line); }
.seg button, .seg a { border: 0; background: none; padding: 7px 14px; border-radius: 10px; font-weight: 800; font-size: 13px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.seg button.on, .seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--surface-3); font-weight: 700; font-size: 12.5px; }

/* ---------------------------------------------------------------- cards, kpis, tables */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.card.pad { padding: 20px; }
.card .card-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card .card-h h3 { font-size: 15.5px; }
.card .card-h .sub { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.card .card-h .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card .card-b { padding: 20px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g-3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }

.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .lbl { display: flex; align-items: center; gap: 8px; }
.kpi .val { font-family: var(--display); font-size: 34px; line-height: 1.1; margin: 8px 0 4px; letter-spacing: 0; white-space: nowrap; }
.kpi .val small { font-size: .5em; color: var(--ink-3); font-family: var(--font); font-weight: 700; }
.kpi .delta { font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.kpi .delta.up { color: var(--ok); } .kpi .delta.down { color: var(--bad); } .kpi .delta.flat { color: var(--ink-3); }
.kpi .ico { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-700); font-size: 19px; }
.kpi.dark { background: var(--char); color: #fff; border-color: #000; }
.kpi.dark .lbl, .kpi.dark .delta.flat { color: #bfae93; }
.kpi.dark .ico { background: rgba(242,179,0,.18); color: var(--gold); }
.kpi.gold { background: linear-gradient(135deg, #ffd24a, var(--gold)); border-color: #e3a600; color: var(--char); }
.kpi.gold .lbl { color: #5a3f00; } .kpi.gold .ico { background: rgba(0,0,0,.1); color: var(--char); }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--gold-50); }
.tbl tbody tr.click { cursor: pointer; }
.tbl tfoot td { font-weight: 800; background: var(--surface-2); border-top: 2px solid var(--line); }
.tbl .num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl td.strong { font-weight: 800; }
.tbl .sub { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.tbl.compact td { padding: 8px 14px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge-ok { background: var(--ok-100); color: #0f5d3a; } .badge-bad { background: var(--bad-100); color: #8d2318; }
.badge-warn { background: var(--warn-100); color: #7a4a00; } .badge-info { background: var(--info-100); color: #1d4c70; }
.badge-mute { background: var(--surface-3); color: var(--ink-2); } .badge-gold { background: var(--gold-100); color: var(--gold-700); }
.bchip { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12px; padding: 2px 9px 2px 7px; border-radius: 99px; background: var(--surface-3); }
.bchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--bc); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: hsl(var(--h) 38% 38%); flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }

.flash { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: 13px; margin-bottom: 18px; font-weight: 600; border: 1px solid; animation: rise .3s var(--ease); }
.flash.success { background: var(--ok-100); border-color: #b7e0c9; color: #0f5d3a; }
.flash.error { background: var(--bad-100); border-color: #f0b8b0; color: #8d2318; }
.flash.warn, .flash.info { background: var(--gold-50); border-color: #f1dca0; color: #6a4700; }

.empty { text-align: center; padding: 44px 20px; color: var(--ink-3); }
.empty .i { font-size: 38px; color: #cdbf9f; margin-bottom: 10px; }
.empty b { display: block; color: var(--ink-2); font-size: 16px; margin-bottom: 4px; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; }
.filters .field { min-width: 150px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 16px; font-weight: 800; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--gold); }
.tabs a .n { background: var(--surface-3); border-radius: 99px; padding: 0 8px; font-size: 12px; }
.pager { display: flex; gap: 4px; justify-content: center; padding: 16px; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-weight: 800; }
.pager a:hover { background: var(--gold-50); } .pager .cur { background: var(--char); color: #fff; } .pager .gap { color: var(--ink-3); }

.hbar { display: grid; grid-template-columns: minmax(100px, 170px) 1fr auto; gap: 12px; align-items: center; padding: 7px 0; }
.hbar .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { height: 12px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), #ffd45a); width: 0; animation: grow .9s var(--ease) forwards; }
.hbar .fill.cu { background: linear-gradient(90deg, var(--copper), #d9774a); }
.hbar .v { font-weight: 800; min-width: 80px; text-align: right; white-space: nowrap; }
@keyframes grow { to { width: var(--w); } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart text { font-family: var(--font); font-size: 11px; fill: var(--ink-3); font-weight: 700; }
svg.chart .bar { transform-origin: bottom; transform-box: fill-box; animation: barUp .7s var(--ease) both; }
svg.chart .draw { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.4s var(--ease) forwards; }
svg.chart .fade { animation: fadeIn 1.2s .3s both; }
@keyframes barUp { from { transform: scaleY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
.heat { display: grid; grid-template-columns: 56px repeat(var(--cols, 24), minmax(0, 1fr)); gap: 3px; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.heat .c { aspect-ratio: 1.5; border-radius: 4px; background: hsl(42 95% 50% / var(--a, 0)); border: 1px solid var(--line-2); }
.heat .l { display: flex; align-items: center; }

/* ---------------------------------------------------------------- modal & toast */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(22,17,13,.55); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-back.open { display: flex; animation: fadeBg .18s; }
@keyframes fadeBg { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-3); width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; animation: modalIn .28s var(--ease); }
.modal.wide { width: min(940px, 100%); } .modal.sm { width: min(420px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 20px 24px 8px; }
.modal-h h3 { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: 0; }
.modal-h .x { margin-left: auto; }
.modal-b { padding: 12px 24px 24px; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; padding: 0 24px 22px; flex-wrap: wrap; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { background: var(--char); color: #fff; padding: 13px 18px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow-3); display: flex; gap: 10px; align-items: center; animation: toastIn .3s var(--ease); max-width: 420px; }
.toast.err { background: var(--bad); } .toast.ok { background: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------------------------------------------------------------- login */
body.login-body { background: var(--char); }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); }
.login .hero {
  position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-start; padding: 64px 56px;
  background: #1b130d url('../img/brand/cover-site.webp') 14% 100% / cover no-repeat;
}
.login .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,17,13,.93) 0%, rgba(22,17,13,.78) 34%, rgba(22,17,13,.05) 62%, rgba(22,17,13,.25) 100%); }
.login .hero > * { position: relative; }
.login .hero h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: 0; max-width: 560px; }
.login .hero h2 em { font-style: normal; color: var(--gold); }
.login .hero p { color: #d8ccb8; max-width: 480px; margin-top: 14px; font-size: 16px; font-weight: 500; }
.login .hero .facts { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.login .hero .facts div { font-size: 12.5px; color: #bcae98; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.login .hero .facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--gold); letter-spacing: 0; text-transform: none; }
.login .panel { background: var(--canvas); display: flex; align-items: center; justify-content: center; padding: 40px; }
.login .box { width: min(400px, 100%); animation: rise .5s var(--ease); }
.login .box .logo { width: 84px; height: 84px; border-radius: 22px; background: var(--char); padding: 4px; margin-bottom: 22px; box-shadow: var(--shadow-2); }
.login .box .logo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; border-radius: 18px; }
.login .box h1 { font-family: var(--display); font-weight: 400; font-size: 36px; letter-spacing: 0; }
.login .box .lead { color: var(--ink-3); margin: 6px 0 26px; font-weight: 500; }
.login .box form { display: flex; flex-direction: column; gap: 16px; }
.login .box .pw { position: relative; }
.login .box .pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.login .who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.login .who button { border: 1.5px dashed var(--line); background: transparent; padding: 10px 6px; border-radius: 12px; cursor: pointer; font-weight: 800; font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.login .who button:hover { border-color: var(--gold-600); background: var(--gold-50); }
.login .who button small { display: block; font-weight: 600; color: var(--ink-3); font-size: 11px; }
.login .foot { margin-top: 28px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }

/* ---------------------------------------------------------------- POS */
body.pos-body .page { padding: 0; max-width: none; animation: none; }
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: calc(100vh - var(--top-h)); }
.pos-menu { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); }
.pos-search { position: relative; display: flex; gap: 12px; padding: 14px 20px 10px; align-items: center; }
.pos-search .input { max-width: 420px; padding-left: 42px; background-image: none; }
.pos-search .sico { position: absolute; left: 35px; top: 50%; transform: translateY(-38%); color: var(--ink-3); pointer-events: none; z-index: 1; }
.cats { display: flex; gap: 8px; padding: 4px 20px 12px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 11px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; cursor: pointer; white-space: nowrap; transition: all .15s; }
.cat .ci { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--cc) 18%, white); color: var(--cc); font-size: 16px; }
.cat:hover { border-color: var(--cc); }
.cat.on { background: var(--char); color: #fff; border-color: var(--char); }
.cat.on .ci { background: var(--cc); color: var(--char); }
.dishes { flex: 1; overflow-y: auto; padding: 4px 20px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; align-content: start; }
.dish { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s var(--ease), box-shadow .2s, border-color .15s; overflow: hidden; }
.dish::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cc); }
.dish:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--cc) 55%, var(--line)); }
.dish .dtop { display: flex; gap: 10px; align-items: flex-start; padding-left: 4px; }
.dish .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--cc) 16%, white); color: var(--cc); font-size: 19px; flex: none; }
.dish .nm { font-weight: 800; line-height: 1.22; }
.dish .ds { font-size: 12px; color: var(--ink-3); font-weight: 500; line-height: 1.3; margin-top: 2px; }
.dish .vs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-left: 4px; }
.vbtn { flex: 1 1 0; min-width: 84px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 7px 11px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--surface-2); cursor: pointer; text-align: left; transition: all .12s; }
.vbtn small { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; line-height: 1.2; }
.vbtn b { font-weight: 800; font-size: 15px; }
.vbtn:hover { background: var(--gold-100); border-color: var(--gold); transform: translateY(-1px); }
.vbtn:active { transform: scale(.97); }
.vbtn.out { opacity: .38; pointer-events: none; text-decoration: line-through; }
.dish.single .vbtn { flex-direction: row; justify-content: space-between; align-items: center; }
.dish .out-tag { position: absolute; right: 10px; top: 10px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 6px; padding: 1px 7px; text-transform: uppercase; letter-spacing: .06em; }
@keyframes tap { 40% { transform: scale(.94); } }
.dish.tap { animation: tap .25s; }

.ticket { display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.tk-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 12px 14px 8px; }
.tk-types button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); font-weight: 800; font-size: 11.5px; cursor: pointer; color: var(--ink-2); transition: all .15s; }
.tk-types button .i { font-size: 20px; }
.tk-types button.on { background: var(--char); border-color: var(--char); color: var(--gold); }
.tk-types button:disabled { opacity: .5; cursor: not-allowed; }
.tk-ctx { padding: 4px 14px 10px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px dashed var(--line); }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.tables button { height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface-2); font-weight: 800; cursor: pointer; }
.tables button.on { background: var(--gold); border-color: var(--gold-600); }
.tables button.busy { background: var(--bad-100); border-color: #efb3aa; color: #8d2318; }
.tk-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px 6px; }
.tk-head h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tk-head .tn { margin-left: auto; font-family: var(--display); font-size: 22px; line-height: 1; }
.tk-lines { flex: 1; overflow-y: auto; padding: 0 10px; min-height: 90px; }
.tk-empty { text-align: center; color: var(--ink-3); padding: 34px 20px; font-weight: 600; }
.tk-empty .i { font-size: 40px; color: #d6c9ac; display: block; margin: 0 auto 8px; }
.ln { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 8px; border-bottom: 1px solid var(--line-2); animation: lnIn .25s var(--ease); }
@keyframes lnIn { from { opacity: 0; transform: translateX(14px); } }
.ln.sent { background: var(--surface-2); border-radius: 10px; border-bottom-color: transparent; margin: 2px 0; }
.ln.void { opacity: .45; text-decoration: line-through; }
.ln .t { font-weight: 800; line-height: 1.2; }
.ln .t small { font-weight: 600; color: var(--ink-3); }
.ln .p { font-weight: 800; text-align: right; }
.ln .ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; background: var(--surface-3); border-radius: 11px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-weight: 800; font-size: 17px; color: var(--ink-2); }
.qty button:hover { background: var(--gold); color: var(--char); }
.qty b { min-width: 26px; text-align: center; font-weight: 800; }
.ln .note { flex: 1; min-width: 0; border: 0; background: transparent; border-bottom: 1px dashed var(--line); padding: 4px 2px; font-size: 12.5px; font-weight: 600; }
.ln .note:focus { outline: none; border-color: var(--gold-600); }
.ln .rm { color: var(--ink-3); }
.ln .rm:hover { color: var(--bad); }
.tk-totals { padding: 12px 18px 6px; border-top: 1px solid var(--line); background: var(--surface-2); }
.tl { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 0; font-weight: 600; color: var(--ink-2); }
.tl b { color: var(--ink); font-weight: 800; }
.tl.disc b { color: var(--ok); }
.tl.big { font-family: var(--display); font-size: 28px; color: var(--ink); padding: 8px 0 2px; align-items: center; }
.tl.big b { font-family: var(--display); font-weight: 400; font-size: 32px; }
.tl.alt { font-size: 12.5px; color: var(--ink-3); padding-bottom: 6px; }
.tk-actions { padding: 8px 14px 14px; background: var(--surface-2); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-actions .btn { padding: 12px 10px; }
.tk-actions .pay { grid-column: 1 / -1; font-size: 17px; padding: 15px; }
.tk-mini { display: flex; gap: 6px; padding: 0 14px 6px; background: var(--surface-2); }
.tk-mini button { flex: 1; border: 1.5px dashed var(--line); background: transparent; border-radius: 10px; padding: 6px 4px; font-weight: 800; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.tk-mini button:hover { border-color: var(--gold-600); background: var(--gold-50); }
.pos-drawer-btn { display: none; }

/* payment modal */
.pm { display: grid; grid-template-columns: 300px 1fr; gap: 0; }
.pm-bill { background: var(--char); color: #fff; padding: 26px 24px; border-radius: 22px 0 0 22px; display: flex; flex-direction: column; gap: 14px; }
.pm-bill h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #bfae93; }
.pm-bill .amt { font-family: var(--display); font-size: 46px; line-height: 1; color: var(--gold); }
.pm-bill .alt { background: rgba(255,255,255,.07); border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; }
.pm-bill .alt b { white-space: nowrap; font-size: 17px; }
.pm-bill .alt small { display: block; font-weight: 600; color: #bfae93; }
.pm-bill .kv { display: flex; justify-content: space-between; color: #d8ccb8; font-weight: 600; }
.pm-bill .kv b { color: #fff; }
.pm-main { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.pm-rows { display: flex; flex-direction: column; gap: 12px; }
.pm-row { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 12px; }
.methods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.methods button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; font-size: 11.5px; cursor: pointer; }
.methods button .i { font-size: 20px; }
.methods button small { font-weight: 700; color: var(--ink-3); font-size: 10.5px; }
.methods button.on { background: var(--gold); border-color: var(--gold-600); }
.methods button.on small { color: var(--char); }
.methods.three { grid-template-columns: repeat(3, 1fr); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 7px 12px; font-weight: 800; cursor: pointer; }
.quick button:hover { border-color: var(--gold-600); background: var(--gold-50); }
.pm-calc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pm-calc div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.pm-calc small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pm-calc b { font-size: 18px; font-weight: 800; }
.pm-calc .chg b { color: var(--ok); } .pm-calc .rem b { color: var(--bad); }
.done { text-align: center; padding: 34px 28px 10px; }
.done .tick { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; font-size: 44px; animation: tick .5s var(--ease); }
@keyframes tick { from { transform: scale(.4); opacity: 0; } }
.done h3 { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: 0; }
.done .change { margin: 16px auto 4px; padding: 14px 26px; border-radius: 16px; background: var(--gold-100); display: inline-block; }
.done .change small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); }
.done .change b { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1.1; }
.done .meta { color: var(--ink-3); font-weight: 600; margin-top: 6px; }

/* ---------------------------------------------------------------- orders, kitchen, daig */
.ord-list { display: grid; gap: 10px; }
.kds { background: #120d09; min-height: calc(100vh - var(--top-h)); padding: 22px 26px; color: #f0e6d4; }
.kds-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.kds-col h3 { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #bfae93; margin-bottom: 14px; }
.kds-col h3 .n { background: var(--char-3); border-radius: 99px; padding: 1px 10px; color: var(--gold); }
.tkt { background: #1d1611; border: 1.5px solid #3a2f24; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; position: relative; overflow: hidden; animation: lnIn .3s var(--ease); }
.tkt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--tc, #4a7d5f); }
.tkt.warn { --tc: var(--gold); } .tkt.late { --tc: var(--bad); border-color: #6b2c24; }
.tkt .h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tkt .tok { font-family: var(--display); font-size: 32px; line-height: 1; color: #fff; min-width: 44px; }
.tkt .h .ty { font-weight: 800; font-size: 13px; color: #d8ccb8; display: flex; gap: 6px; align-items: center; }
.tkt .h .age { margin-left: auto; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.08); }
.tkt.late .age { background: var(--bad); color: #fff; } .tkt.warn .age { background: var(--gold); color: var(--char); }
.tkt ul { list-style: none; margin: 0; padding: 0; }
.tkt li { display: flex; gap: 10px; padding: 5px 0; font-size: 16px; font-weight: 700; border-top: 1px dashed #3a2f24; }
.tkt li:first-child { border-top: 0; }
.tkt li .q { color: var(--gold); min-width: 30px; font-weight: 800; }
.tkt li small { color: #a89a85; font-weight: 600; font-size: 12.5px; display: block; }
.tkt li.newkot { background: rgba(242,179,0,.12); border-radius: 8px; padding-left: 6px; }
.tkt .meta { color: #a89a85; font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.tkt .btns { display: flex; gap: 8px; margin-top: 12px; }
.tkt .btns .btn { flex: 1; padding: 10px; }
.kds .empty { color: #6e604d; } .kds .empty .i { color: #4a3d2e; }
.kds .tabs { border-color: #3a2f24; } .kds .tabs a { color: #8c7d68; } .kds .tabs a.on { color: #fff; }
.daig-card { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .2s; }
.daig-card:hover { box-shadow: var(--shadow-2); }
.daig-card .when { text-align: center; border-radius: 14px; background: var(--char); color: #fff; padding: 8px 4px; }
.daig-card .when b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; color: var(--gold); }
.daig-card .when small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #bfae93; }
.daig-card.late .when { background: var(--bad); } .daig-card.late .when b { color: #fff; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li i { position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); }
.timeline li.reached i { background: var(--ok); border-color: var(--ok); }
.timeline li.now i { border-color: var(--gold-600); background: var(--gold); box-shadow: 0 0 0 5px rgba(242,179,0,.25); }
.timeline li b { display: block; font-weight: 800; } .timeline li span { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.bill { font-variant-numeric: tabular-nums; }
.bill .tl { padding: 5px 0; }
.bill .tl.sep { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }
.kv-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.kv-list dt { color: var(--ink-3); font-weight: 700; font-size: 13px; } .kv-list dd { margin: 0; font-weight: 700; }
.denoms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.denoms label { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.denoms label span { width: 70px; text-align: right; color: var(--ink-2); }
.denoms .input { min-height: 38px; padding: 6px 10px; }
.big-num { font-family: var(--display); font-size: 44px; line-height: 1; }
.progress { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--ok); transition: width .6s var(--ease); }
.progress.warn i { background: var(--gold); } .progress.bad i { background: var(--bad); }
.banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r); background: var(--char); color: #fff; margin-bottom: 18px; overflow: hidden; position: relative; }
.banner::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(242,179,0,.35), transparent 65%); }
.banner b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 0; }
.banner .btn { margin-left: auto; position: relative; z-index: 1; }
.banner.warn { background: #3b2a08; }
.welcome { font-family: var(--display); font-size: 34px; letter-spacing: 0; line-height: 1.1; }
.welcome em { font-style: normal; color: var(--gold-700); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pos { grid-template-columns: minmax(0, 1fr) 380px; }
  .kds-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); z-index: 60; transform: translateX(-102%); transition: transform .25s var(--ease); }
  body.nav-open .side { transform: none; box-shadow: var(--shadow-3); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 50; }
  .top { padding: 0 14px; } .top .burger { display: grid; }
  .page { padding: 18px 14px 50px; }
  .g2, .g3, .g-2-1, .g-3-2 { grid-template-columns: 1fr; }
  .form-grid > * { grid-column: span 12 !important; }
  .login { grid-template-columns: 1fr; } .login .hero { display: none; }
  .pos { grid-template-columns: 1fr; height: auto; }
  .pos-menu { border-right: 0; height: calc(100vh - var(--top-h)); }
  .ticket { position: fixed; inset: var(--top-h) 0 0 auto; width: min(430px, 100%); z-index: 45; transform: translateX(102%); transition: transform .25s var(--ease); box-shadow: var(--shadow-3); }
  body.tk-open .ticket { transform: none; }
  .pos-drawer-btn { display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 40; box-shadow: var(--shadow-3); }
  .pm { grid-template-columns: 1fr; } .pm-bill { border-radius: 22px 22px 0 0; }
  .kds-cols { grid-template-columns: 1fr; }
  .daig-card { grid-template-columns: 64px 1fr; } .daig-card > :last-child { grid-column: 1 / -1; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .val { font-size: 28px; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: 1fr; }
  .phead h1 { font-size: 28px; }
  .top .clock { display: none; }
  .tk-types button { font-size: 10.5px; }
  .methods { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; } }
