/* PrintHub console in the style of b-egg.farm: cream paper, a greige band with a milk-splash edge, giant
   condensed capitals with a brush script laid over them, small mono capitals for labels, black pill buttons
   with yolk lettering, square black-outlined cells. Fonts are free stand-ins for B-Egg's: Bebas Neue (Summer
   Loving Sans), Caveat Brush (Summer Loving), Archivo (GT America), DM Mono (GT America Mono). */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bebas Neue"; font-weight: 400; font-display: swap; src: url("fonts/bebas-neue-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Caveat Brush"; font-weight: 400; font-display: swap; src: url("fonts/caveat-brush-400-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-display: swap; src: url("fonts/dm-mono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-display: swap; src: url("fonts/dm-mono-500-latin.woff2") format("woff2"); }

:root {
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --display: "Bebas Neue", "Archivo", Impact, sans-serif;
  --brush: "Caveat Brush", "Segoe Print", cursive;
  --mono: "DM Mono", "Cascadia Code", Consolas, monospace;

  --bg: #FBF9F1;           /* B-Egg cream */
  --surface: #FFFFFF;
  --surface-2: #F4F1E4;
  --surface-3: #E8E6D7;
  --band-a: #E8E6D7;       /* the greige hero band */
  --band-b: #DDD9C5;
  --border: #000000;
  --hair: #DDD9C5;
  --text: #000000;
  --text-2: #4D4733;
  --text-3: #8A8468;
  --yolk: #F4B30C;
  --yolk-soft: #FCEBB6;
  --salmon: #FF7A7A;
  --khaki: #BBB283;
  --link: #000000;
  --primary-bg: #000000;
  --primary-text: #F4B30C;

  --ok: #3E6B23;       --ok-soft: #E4EDD3;
  --warn: #8A5A00;     --warn-soft: #FCEBB6;
  --bad: #C0362D;      --bad-soft: #FFE2DD;
  --info: #191200;     --info-soft: #E8E6D7;
  --lilac-text: #5E4E91; --lilac-soft: #ECE7F5;
  --muted-soft: #EFECDF;

  --ticket: #FBF9F1;
  --shadow-float: 0 16px 40px rgba(25, 18, 0, 0.16);
  --shadow-lg: 0 24px 60px -12px rgba(25, 18, 0, 0.35);
  --ring: 0 0 0 3px rgba(244, 179, 12, 0.55);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #191200;
  --surface: #221A05;
  --surface-2: #2A210A;
  --surface-3: #33290F;
  --band-a: #2A210A;
  --band-b: #221A05;
  --border: #FBF9F1;
  --hair: #3E3418;
  --text: #FBF9F1;
  --text-2: #D9D3BC;
  --text-3: #A69E80;
  --link: #F4B30C;
  --primary-bg: #F4B30C;
  --primary-text: #000000;
  --ok: #B9D99A;       --ok-soft: rgba(110, 160, 70, 0.22);
  --warn: #F4C54A;     --warn-soft: rgba(244, 179, 12, 0.18);
  --bad: #FF9A92;      --bad-soft: rgba(255, 122, 122, 0.2);
  --info: #FBF9F1;     --info-soft: rgba(251, 249, 241, 0.1);
  --lilac-text: #C9BDF0; --lilac-soft: rgba(142, 124, 195, 0.22);
  --muted-soft: rgba(251, 249, 241, 0.08);
  --ticket: #2A210A;
  --shadow-float: 0 16px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 15px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 600; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: .95; text-transform: uppercase; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 15px; height: 15px; }
.i.lg { width: 22px; height: 22px; }
:focus-visible { outline: none; box-shadow: var(--ring); }
.label-mono, .kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------------------------------------------------------------- top bar (B-Egg: quiet bar, logo, mono links) */

/* clip, not hidden: the bands bleed past the page edges without a sideways scroll, and the sticky bar still sticks */
.app { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.band { position: sticky; top: 0; z-index: 20; background: var(--band-a); color: var(--text); }
.cmyk { display: none; }
.bar { max-width: 1280px; margin: 0 auto; padding: 12px 36px; display: flex; align-items: center; gap: 22px; position: relative; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; display: block; object-fit: contain; }
.brand-name { font-family: var(--display); font-size: 28px; line-height: .9; letter-spacing: .02em; color: var(--text); }
.brand-org { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; }
.nav a, .navbtn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; border: 0; background: none;
  color: var(--text); font: 400 12.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.nav a:hover, .navbtn:hover { background: rgba(0, 0, 0, .07); }
.nav a.active, .navbtn.active { background: #000; color: var(--yolk); }
:root[data-theme="dark"] .nav a.active, :root[data-theme="dark"] .navbtn.active { background: var(--yolk); color: #000; }
.nav a .i { display: none; }
.nav .count { font: 500 11px var(--mono); background: var(--salmon); color: #000; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.nav .m-only { display: none; }
.navdrop { position: relative; }
.navdrop .menu { left: 0; right: auto; }
.bar .spacer { flex: 1; }
.searchbtn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 14px; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--text); cursor: pointer; flex: none; font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.searchbtn:hover { background: rgba(0, 0, 0, .06); }
.kbd { font: 400 11px var(--mono); border-radius: 999px; padding: 2px 8px; background: #000; color: var(--yolk); }
:root[data-theme="dark"] .kbd { background: var(--yolk); color: #000; }
.iconbtn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; flex: none; }
.iconbtn:hover { border-color: var(--border); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 400 20px var(--display); color: #000; background: var(--yolk); padding-top: 2px; }
.avatar.sm { width: 28px; height: 28px; font-size: 15px; }
.usermenu { position: relative; flex: none; }
.usermenu > button { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; cursor: pointer; padding: 3px 10px 3px 3px; border-radius: 999px; color: var(--text); }
.usermenu > button:hover { background: rgba(0, 0, 0, .07); }
.usermenu .who { text-align: left; line-height: 1.2; }
.usermenu .who b { display: block; font-size: 13px; }
.usermenu .who span { font: 400 11px var(--mono); text-transform: uppercase; color: var(--text-2); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--bg); color: var(--text); border: 1px solid var(--border); padding: 6px; z-index: 50; box-shadow: var(--shadow-float); animation: pop .14s ease-out; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--text); text-decoration: none; font: 400 12.5px var(--mono); text-transform: uppercase; letter-spacing: .03em; }
.menu button:hover, .menu a:hover { background: var(--surface-3); }
.menu a.active { background: var(--yolk-soft); }
.menu hr { border: 0; border-top: 1px solid var(--hair); margin: 6px 0; }
.menu .danger { color: var(--bad); }
.menu b { font-family: var(--font); text-transform: none; }
.hamburger { display: none; }
.crumbs { display: none; }

/* ---------------------------------------------------------------- page frame: greige band + milk-splash edge */

.content { max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 36px 70px; flex: 1; }
.pagehead, .hero { position: relative; background: var(--band-a); color: var(--text); box-shadow: 0 0 0 100vmax var(--band-a); clip-path: inset(0 -100vmax); }
/* the milk splash: a cream wave along the bottom of the band, like b-egg.farm's spilled-milk edge */
.pagehead::after, .hero::after {
  content: ""; position: absolute; left: -50vw; right: -50vw; bottom: -1px; height: 46px; pointer-events: none;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46V30c60-4 90-22 150-18s70 20 130 18 80-26 150-24 60 22 120 20 100-28 170-24 70 26 140 24 90-20 150-18 90 18 190 22v16z'/%3E%3C/svg%3E") bottom / 1200px 46px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46V30c60-4 90-22 150-18s70 20 130 18 80-26 150-24 60 22 120 20 100-28 170-24 70 26 140 24 90-20 150-18 90 18 190 22v16z'/%3E%3C/svg%3E") bottom / 1200px 46px repeat-x;
}
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px 0 84px; }
.pagehead h1 { font-size: clamp(48px, 7vw, 92px); line-height: .88; }
.pagehead p { margin: 10px 0 0; color: var(--text-2); max-width: 640px; font-size: 15px; }
.pagehead + *, .hero + * { position: relative; margin-top: -26px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Overview hero: brush greeting over giant capitals, and a printer with a yolk drip (B-Egg's cartons) */
.hero { padding: 30px 0 110px; min-height: 380px; }
.hero .copy { position: relative; z-index: 1; max-width: 640px; }
.hero .date { font: 400 12.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.hero .brushline { display: block; font: 400 clamp(38px, 4.4vw, 58px)/1 var(--brush); transform: rotate(-5deg); transform-origin: left; margin: 18px 0 -10px 8px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(64px, 9vw, 128px); line-height: .84; color: #FFFFFF; -webkit-text-stroke: 0; text-shadow: 0 1px 0 rgba(0, 0, 0, .05); }
:root[data-theme="dark"] .hero h1 { color: #FBF9F1; }
.hero p { margin: 16px 0 0; font-size: 16px; color: var(--text); max-width: 560px; }
.hero .actions { margin-top: 24px; }
.printer-art { position: absolute; right: -10px; bottom: 30px; width: min(470px, 42vw); height: auto; pointer-events: none; filter: drop-shadow(0 30px 30px rgba(25, 18, 0, .18)); }
.hero + .strip { margin-top: -40px; }

/* Today's numbers: B-Egg's "easy / compact / quality" facts in square black cells */
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--bg); border: 1px solid var(--border); position: relative; z-index: 1; }
.strip.still, .strip { animation: none; }
.strip.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kp { position: relative; padding: 16px 20px 18px; min-width: 0; }
.kp + .kp { border-left: 1px solid var(--border); }
.kp .label { font: 400 26px/1 var(--brush); text-transform: lowercase; color: var(--text); }
.kp .value { margin-top: 8px; font-family: var(--display); font-size: 64px; line-height: .9; font-variant-numeric: tabular-nums; }
.kp .value small { font-size: 34px; color: var(--text-3); }
.kp .foot { margin-top: 8px; font: 400 11.5px var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); }
.kp .foot.warn { color: var(--warn); }
.kp.moving .value { color: var(--text); }
.kp.alert .value { color: var(--bad); }

/* ---------------------------------------------------------------- building blocks */

.card { background: var(--bg); border: 1px solid var(--border); }
.card-h { display: flex; align-items: baseline; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.card-h h3 { font-size: 30px; }
.card-h .sub { font: 400 11.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.card-h .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card-b { padding: 16px 20px 20px; }
.card-b.flush { padding: 8px 0 4px; }
.card.dark { background: #000; color: #FBF9F1; border-color: #000; }
:root[data-theme="dark"] .card.dark { background: #0E0A00; border-color: #FBF9F1; }
.card.dark .card-h .sub { color: #D9D3BC; }
.count-pill { font: 500 12px var(--mono); background: var(--salmon); color: #000; border-radius: 999px; padding: 0 9px; line-height: 20px; }
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-main { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1.2fr); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 22px; }
.mt-lg { margin-top: 34px; }
.section-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-h h2 { font-size: 44px; }
.section-h a { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; }

/* B-Egg's black pill call to action, mono capitals in yolk */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text);
  font: 400 12.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, color .15s;
}
.btn:hover { background: rgba(0, 0, 0, .06); text-decoration: none; }
:root[data-theme="dark"] .btn:hover { background: rgba(255, 255, 255, .08); }
.btn.primary { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-text); }
.btn.primary:hover { background: #2A2205; }
:root[data-theme="dark"] .btn.primary:hover { background: #FFC93D; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.danger.solid { background: var(--salmon); border-color: var(--salmon); color: #000; }
.btn.ghost { border-color: transparent; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 11.5px; }
.btn.lg { height: 52px; padding: 0 28px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.spin { display: inline-block; width: 14px; height: 14px; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
.tile-ico { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border: 1px solid var(--border); background: var(--yolk); color: #000; border-radius: 50%; }
.pico-sm { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border: 1px solid var(--border); border-radius: 50%; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; background: var(--muted-soft); color: var(--text-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info, .badge.brand { background: var(--info-soft); color: var(--info); }
.badge.lilac { background: var(--lilac-soft); color: var(--lilac-text); }
.badge.live::before { animation: blink 1.4s ease-in-out infinite; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border: 1px solid var(--border); border-radius: 999px; font: 400 11px var(--mono); text-transform: uppercase; color: var(--text); }
.chip.code { font-weight: 500; }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--khaki); position: relative; }
.dot.on { background: var(--yolk); }
.dot.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--yolk); opacity: 0; animation: ping 2s ease-out infinite; }
.dot.off { background: var(--salmon); }
.dot.warn { background: var(--khaki); }

/* Bar chart: yolk printed, salmon failed, khaki other, black today */
.chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 10px; height: 200px; padding: 10px 0 0; border-bottom: 1px solid var(--border); }
.chart .col { display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.chart .bars { width: 100%; max-width: 36px; display: flex; flex-direction: column-reverse; overflow: hidden; min-height: 3px; background: var(--surface-3); transition: height .4s ease; }
.chart .bars span { display: block; }
.chart .bars .done { background: var(--yolk); }
.chart .bars .failed { background: var(--salmon); }
.chart .bars .other { background: var(--khaki); }
.chart .col.today .bars .done { background: var(--text); }
.chart .x { font: 400 10.5px var(--mono); text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.chart .col.today .x { color: var(--text); font-weight: 500; }
.legend { display: flex; gap: 14px; font: 400 11px var(--mono); text-transform: uppercase; color: var(--text-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }

/* Tables: spec-sheet rows with mono headers */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.t td { padding: 13px 16px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover { background: var(--surface-2); }
.t tr.group td { background: var(--surface-3); font: 500 11.5px var(--mono); text-transform: uppercase; padding: 8px 16px; }
.t .r { text-align: right; }
.cell-main { font-weight: 700; }
.cell-sub { font-size: 12.5px; color: var(--text-3); }
.tablebar { display: flex; gap: 10px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pager { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--border); color: var(--text-2); font: 400 12px var(--mono); text-transform: uppercase; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label, .label-text { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.field .hint { font-size: 12.5px; color: var(--text-3); }
.input, .select, textarea.input { height: 44px; width: 100%; padding: 0 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); transition: box-shadow .15s; }
textarea.input { height: auto; min-height: 80px; padding: 12px 16px; border-radius: 18px; resize: vertical; }
.input:focus, .select:focus { outline: none; box-shadow: var(--ring); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }
.input.search { padding-left: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 15px center; }
.input-group { position: relative; }
.input-group .iconbtn { position: absolute; right: 3px; top: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--hair); cursor: pointer; background: var(--surface); }
.check:hover { border-color: var(--border); }
.check input { margin: 3px 0 0; accent-color: #000; width: 16px; height: 16px; flex: none; }
.check b { display: block; font-size: 13.5px; font-weight: 700; }
.check span { font-size: 12.5px; color: var(--text-2); }
.check.on { border-color: var(--border); background: var(--yolk-soft); }
.checks { display: grid; gap: 8px; }
.checks.two { grid-template-columns: 1fr 1fr; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; cursor: pointer; font: 400 11.5px var(--mono); text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.seg button.on { background: #000; color: var(--yolk); }
.switch { position: relative; width: 42px; height: 24px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--khaki); transition: background .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFF; transition: transform .18s; }
.switch input:checked + span { background: #000; }
.switch input:checked + span::after { transform: translateX(18px); background: var(--yolk); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; height: 44px; }
.stepper button { width: 40px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.stepper input { width: 48px; height: 100%; border: 0; text-align: center; background: transparent; font: 400 26px var(--display); padding-top: 3px; }
.error-text { color: var(--bad); font-size: 13px; margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.strength { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.strength span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .2s, background .2s; }

/* Empty states and notices */
.empty { text-align: center; padding: 40px 20px; color: var(--text-2); }
.empty .art { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--yolk); color: #000; }
.empty h4 { font-size: 30px; color: var(--text); margin-bottom: 4px; }
.notice { display: flex; gap: 10px; padding: 12px 16px; background: var(--surface-3); color: var(--text); font-size: 13.5px; align-items: flex-start; border-left: 3px solid var(--border); }
.notice.warn { background: var(--warn-soft); border-left-color: var(--yolk); }
.notice.bad { background: var(--bad-soft); border-left-color: var(--salmon); }
.notice.ok { background: var(--ok-soft); border-left-color: var(--ok); }
.notice .i { margin-top: 1px; }
.secret { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface); border: 1px dashed var(--border); font-family: var(--mono); font-size: 13px; word-break: break-all; }
.secret code { flex: 1; }
pre.code { margin: 0; padding: 14px 16px; background: #000; color: #FBF9F1; font: 12.5px/1.6 var(--mono); overflow-x: auto; white-space: pre; }

/* Job tickets: cream ticket, yolk stub, perforation, notches in the panel colour */
.tickets { list-style: none; margin: 0; padding: 6px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.tk { display: flex; background: var(--ticket); color: var(--text); min-height: 64px; }
.card.dark .tk { background: #FBF9F1; color: #000; }
.tk[data-action] { cursor: pointer; }
.tk[data-action]:hover .body b { text-decoration: underline; }
.tk .stub { position: relative; flex: none; width: 52px; display: grid; place-items: center; border-right: 2px dashed rgba(0, 0, 0, .35); background: var(--yolk); color: #000; }
.tk .stub::before, .tk .stub::after { content: ""; position: absolute; right: -9px; width: 16px; height: 16px; border-radius: 50%; background: #000; }
:root[data-theme="dark"] .tk .stub::before, :root[data-theme="dark"] .tk .stub::after { background: #0E0A00; }
.tk .stub::before { top: -8px; }
.tk .stub::after { bottom: -8px; }
.tk .stub.warn { background: var(--yolk); }
.tk .stub.bad { background: var(--salmon); }
.tk .stub.lilac { background: #CFC4F0; }
.tk .body { flex: 1; min-width: 0; padding: 10px 14px 10px 16px; display: flex; align-items: center; gap: 10px; }
.tk .body > div { flex: 1; min-width: 0; }
.tk b { display: block; font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tk .where { font: 400 11px var(--mono); text-transform: uppercase; color: #4D4733; }
.card.dark .empty { color: #D9D3BC; }
.card.dark .empty h4 { color: #FBF9F1; }

/* Stations: square cells with yolk/salmon printer dots */
.stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; border: 1px solid var(--border); }
.stations > .card { border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0 -1px -1px 0; }
.station { padding: 18px 20px; cursor: pointer; transition: background .15s; background: var(--bg); }
.station:hover { background: var(--surface-2); }
.station.down { background: var(--bad-soft); }
.station h3 { font-size: 32px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.station .loc { color: var(--text-2); font: 400 11.5px var(--mono); text-transform: uppercase; display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.station .state { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.pdots { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pdots i { width: 11px; height: 11px; border-radius: 50%; background: var(--yolk); border: 1px solid #000; }
.pdots i.off { background: var(--salmon); }
.station .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.station .stat b { display: block; font: 400 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.station .stat span { font: 400 10.5px var(--mono); text-transform: uppercase; color: var(--text-2); }
.station .extra { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.meter { height: 6px; background: var(--surface-3); overflow: hidden; margin-top: 14px; }
.meter span { display: block; height: 100%; background: var(--yolk); transition: width .4s; }

/* Printer picker */
.pgroup { margin-bottom: 18px; }
.pgroup h4 { font-size: 24px; margin: 4px 2px 8px; display: flex; align-items: center; gap: 8px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pcard { text-align: left; border: 1px solid var(--hair); padding: 12px 13px; background: var(--surface); cursor: pointer; display: flex; gap: 11px; align-items: flex-start; transition: border-color .15s, background .15s; color: var(--text); }
.pcard:hover { border-color: var(--border); }
.pcard.on { border-color: var(--border); background: var(--yolk-soft); box-shadow: inset 0 0 0 1px var(--border); }
.pcard .pico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); flex: none; }
.pcard.on .pico { background: #000; color: var(--yolk); }
.pcard b { display: block; font-size: 13.5px; }
.pcard .meta { font: 400 10.5px var(--mono); text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 6px; margin-top: 3px; }

/* Dropzone */
.drop { border: 1.5px dashed var(--border); padding: 32px 20px; text-align: center; cursor: pointer; background: var(--surface); transition: background .15s; }
.drop:hover, .drop.over { background: var(--yolk-soft); }
.drop .art { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--yolk); color: #000; }
.drop h4 { font-size: 28px; }
.drop p { margin: 6px 0 0; color: var(--text-3); font: 400 11px var(--mono); text-transform: uppercase; }
.filechip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); background: var(--surface); }
.ficon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 500 10px var(--mono); color: #000; background: var(--khaki); flex: none; letter-spacing: .03em; }
.t .ficon, .feed .ficon, .drawer-h .ficon { width: 34px; height: 34px; font-size: 9px; }
.ficon.pdf { background: var(--salmon); } .ficon.img { background: #CFE3B5; } .ficon.doc { background: #BFD8F0; } .ficon.xls { background: #BFE3C8; } .ficon.ppt { background: var(--yolk); }
.progress { height: 6px; background: var(--surface-3); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--yolk); transition: width .2s; }

/* Handed over from ERPNext: first page as the ticket stub */
.handoff { display: flex; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.handoff-preview { width: 150px; flex: none; object-fit: cover; object-position: top; background: #FFF; border-right: 2px dashed var(--border); min-height: 190px; }
.handoff-body { padding: 14px 18px; min-width: 0; flex: 1; }
.handoff-body h3 { font-size: 34px; margin-top: 4px; overflow-wrap: anywhere; }
.handoff-body .kv { grid-template-columns: 110px 1fr; font-size: 13px; }

/* Live job tracker */
.tracker { display: flex; align-items: center; margin-top: 10px; }
.tracker .st { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; position: relative; font: 400 10px var(--mono); text-transform: uppercase; color: var(--text-3); }
.tracker .st::before { content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: var(--hair); z-index: 0; }
.tracker .st:first-child::before { display: none; }
.tracker .st i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--khaki); background: var(--bg); z-index: 1; }
.tracker .st.done i { background: var(--yolk); border-color: #000; }
.tracker .st.done::before, .tracker .st.now::before { background: #000; }
.tracker .st.now i { border-color: #000; box-shadow: 0 0 0 4px var(--yolk-soft); animation: pulse 1.3s infinite; }
.tracker .st.fail i { background: var(--salmon); border-color: #000; }
.tracker .st.done, .tracker .st.now { color: var(--text); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--hair); }
.timeline li:last-child::before { display: none; }
.timeline .node { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid #000; flex: none; margin-top: 2px; }
.timeline .node.ok { background: var(--yolk); }
.timeline .node.bad { background: var(--salmon); }
.timeline .node.warn { border-color: var(--yolk); }
.timeline b { font-size: 13.5px; }
.timeline .when { font: 400 10.5px var(--mono); text-transform: uppercase; color: var(--text-3); }

/* Activity feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--hair); align-items: center; }
.feed li:first-child { border-top: 0; }
.feed .fi { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text); }
.feed .fi.ok { background: var(--yolk); color: #000; }
.feed .fi.bad { background: var(--salmon); color: #000; }
.feed .fi.info { background: var(--surface-3); }
.feed .fi.warn { background: var(--yolk-soft); color: var(--warn); }
.feed .txt { min-width: 0; flex: 1; }
.feed li[data-action] { cursor: pointer; }
.feed li[data-action]:hover { background: var(--surface-2); }
.feed .txt b { font-weight: 700; }
.feed .when { font: 400 10.5px var(--mono); text-transform: uppercase; color: var(--text-3); white-space: nowrap; }

/* PCs (agents) */
.pcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.pc { padding: 18px; position: relative; }
.setup-steps { margin: 0; padding-left: 22px; }
.setup-steps li { margin-bottom: 16px; padding-left: 4px; line-height: 1.6; }
.setup-steps code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-3); padding: 1px 6px; }
.pc .top { display: flex; gap: 12px; align-items: center; }
.pc .pcicon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--yolk); color: #000; flex: none; }
.pc dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 14px 0 0; font-size: 12.5px; }
.pc dt { font: 400 10.5px var(--mono); text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
.pc dd { margin: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-big { font-family: var(--mono); font-size: 15px; letter-spacing: .06em; padding: 14px 16px; background: var(--surface); border: 1px dashed var(--border); word-break: break-all; }

/* Matrix (who can print where) */
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child, .matrix td:nth-child(2), .matrix th:nth-child(2) { text-align: left; }
.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--yolk); color: #000; }
.tick.no { background: transparent; color: var(--text-3); }

/* Workspace (company name and logos) */
.logo-slot { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--hair); background: var(--surface); }
.logo-slot .preview-box { width: 180px; height: 72px; display: grid; place-items: center; background: #FFF; border: 1px dashed var(--khaki); flex: none; }
.logo-slot .preview-box.square { width: 72px; }
.logo-slot img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Modal, drawer, toasts, palette */
.overlay { position: fixed; inset: 0; background: rgba(25, 18, 0, 0.55); z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 7vh 16px 16px; overflow-y: auto; animation: fade .15s ease-out; }
.modal { width: 100%; max-width: 560px; background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal.wide { max-width: 760px; }
.modal-h { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 6px; }
.modal-h h2 { font-size: 40px; }
.modal-h p { margin: 6px 0 0; color: var(--text-2); font-size: 13.5px; }
.modal-h .iconbtn { margin-left: auto; margin-top: -4px; }
.modal-b { padding: 14px 24px 8px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 22px; }
.steps { display: flex; gap: 8px; margin: 2px 0 16px; }
.steps span { flex: 1; height: 4px; background: var(--surface-3); }
.steps span.on { background: #000; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(25, 18, 0, 0.4); z-index: 70; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--bg); border-left: 1px solid var(--border); z-index: 71; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s ease-out; }
.drawer-h { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; }
.drawer-h h2, .drawer-h h3 { font-size: 30px; }
.drawer-b { padding: 18px 22px 30px; overflow-y: auto; flex: 1; }
.drawer-f { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; }
.preview { border: 1px solid var(--hair); background: var(--surface-3); padding: 14px; display: grid; place-items: center; min-height: 220px; }
.preview img { max-width: 100%; max-height: 420px; box-shadow: 0 6px 20px rgba(0,0,0,.18); background: #FFF; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { font: 400 11px var(--mono); text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 120; }
.toast { display: flex; align-items: flex-start; gap: 10px; min-width: 280px; max-width: 420px; padding: 12px 16px; border-radius: 999px; background: #000; color: #FBF9F1; box-shadow: var(--shadow-lg); animation: rise .2s ease-out; font-size: 13.5px; }
.toast .i { margin-top: 1px; color: var(--yolk); }
.toast.bad .i { color: var(--salmon); }
.palette { width: 100%; max-width: 620px; background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .15s ease-out; }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--border); padding: 18px 20px 18px 50px; font-size: 16px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 20px center; color: var(--text); }
.palette input:focus { outline: none; }
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: 380px; overflow-y: auto; }
.palette li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.palette li.on { background: var(--yolk-soft); }
.palette li .k { margin-left: auto; font: 400 10.5px var(--mono); text-transform: uppercase; color: var(--text-3); }
.palette .grp { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: 10px 12px 4px; cursor: default; }
.skel { background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

/* ---------------------------------------------------------------- sign-in (the original layout, in B-Egg's dress) */

.auth { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(400px, 0.85fr); min-height: 100vh; }
.auth-hero { position: relative; overflow: hidden; background: linear-gradient(170deg, #ECE9DB 0%, #DDD9C5 70%); color: #000; display: flex; flex-direction: column; padding: 44px 56px 0; }
.auth-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: #FBF9F1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70V44c70-8 100-34 170-30s80 30 150 28 90-38 170-34 70 32 140 30 110-40 190-34 80 36 160 34 100-28 170-26v58z'/%3E%3C/svg%3E") bottom / 100% 70px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70V44c70-8 100-34 170-30s80 30 150 28 90-38 170-34 70 32 140 30 110-40 190-34 80 36 160 34 100-28 170-26v58z'/%3E%3C/svg%3E") bottom / 100% 70px no-repeat; }
.auth-hero .brand .brand-name, .auth-hero .brand .brand-org { color: #000; }
.auth-hero h1 { margin-top: 46px; font-size: clamp(72px, 8.4vw, 132px); line-height: .84; color: #FFFFFF; text-shadow: 0 1px 0 rgba(0,0,0,.04); }
.auth-hero .brushline { display: block; margin: -6px 0 0 10px; font: 400 clamp(40px, 4.4vw, 64px)/1 var(--brush); color: #000; transform: rotate(-4deg); transform-origin: left; }
.auth-hero p { color: #191200; font-size: 16px; max-width: 520px; margin: 18px 0 0; }
.auth-hero .net { width: 100%; max-width: 560px; margin: 12px 0 0; }
.auth-hero .feats { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 96px; }
.auth-hero .feats span { display: inline-flex; gap: 8px; align-items: center; padding: 10px 18px; border-radius: 999px; background: #000; color: var(--yolk); font: 400 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 32px; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .wordmark { display: block; max-width: 260px; max-height: 64px; margin-bottom: 34px; object-fit: contain; }
:root[data-theme="dark"] .auth-card .wordmark { background: #FBF9F1; padding: 10px 16px; border-radius: 16px; box-sizing: content-box; }
:root[data-theme="dark"] .brand-mark { background: #FBF9F1; border-radius: 50%; padding: 2px; }
.auth-card .brand { margin-bottom: 30px; display: none; }
.auth-card h2 { font-size: 72px; }
.auth-card .lead { color: var(--text-2); margin: 8px 0 28px; }
.auth-card .btn.primary { width: 100%; height: 54px; font-size: 13px; margin-top: 8px; }
.auth-foot { margin-top: 26px; font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); text-align: center; }
/* the hub drawn as an egg: white with a yolk centre; stations around it, linked by dashed ink */
.net .link { stroke: #000; stroke-width: 1.4; stroke-dasharray: 3 7; opacity: .7; animation: flow 1.8s linear infinite; }
.net .link.b { animation-duration: 2.6s; }
.net .node { fill: #FBF9F1; stroke: #000; stroke-width: 1.6; }
.net .halo { fill: none; stroke: #000; stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: halo 3s ease-out infinite; }
.net .white { fill: #FFFFFF; filter: drop-shadow(0 10px 18px rgba(25, 18, 0, .15)); }
.net .yolk { fill: var(--yolk); }
.net .yolkring { fill: none; stroke: var(--yolk); stroke-width: 1.4; opacity: .7; transform-box: fill-box; transform-origin: center; animation: halo 2.6s ease-out infinite; }

/* ---------------------------------------------------------------- animations */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
@keyframes pop { from { transform: translateY(6px) scale(.98); opacity: 0; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes halo { 0% { transform: scale(.75); opacity: .8; } 100% { transform: scale(2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- smaller screens */

@media (max-width: 1200px) { .usermenu .who { display: none; } }
@media (max-width: 1100px) {
  .searchbtn .label, .searchbtn .kbd { display: none; }
  .cols-main, .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kp:nth-child(4) { border-left: 0; }
  .kp:nth-child(n+4) { border-top: 1px solid var(--border); }
  .strip.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip.four .kp:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .strip.four .kp:nth-child(4) { border-left: 1px solid var(--border); }
  .printer-art { opacity: .35; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-card .brand { display: flex; }
}
@media (max-width: 1000px) {
  .hamburger { display: inline-grid; }
  .nav { display: none; position: absolute; left: 16px; right: 16px; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; background: var(--bg); border: 1px solid var(--border); padding: 8px 10px 14px; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .m-only { display: inline-flex; }
  .nav .navdrop { display: none; }
}
@media (max-width: 760px) {
  .bar { padding: 10px 16px; gap: 10px; }
  .brand-org { display: none; }
  .content { padding: 0 16px 50px; }
  .hero { padding: 20px 0 96px; min-height: 0; }
  .printer-art { display: none; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kp:nth-child(n) { border-left: 0; border-top: 0; }
  .kp:nth-child(even) { border-left: 1px solid var(--border); }
  .kp:nth-child(n+3) { border-top: 1px solid var(--border); }
  .kp:last-child { grid-column: 1 / -1; border-left: 0; }
  .kp .value { font-size: 52px; }
  .form-row, .checks.two { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt { margin-top: 8px; }
  .chart { gap: 4px; }
  .chart .col:nth-child(even) .x { visibility: hidden; }
  .card-h .right { margin-left: 0; }
  .feed li { padding: 11px 16px; }
  .tickets { padding: 6px 14px 16px; }
  .handoff { flex-direction: column; } .handoff-preview { width: 100%; height: 180px; border-right: 0; border-bottom: 2px dashed var(--border); }
  .auth-card h2 { font-size: 60px; }
}

/* ---------------------------------------------------------------- platform (several companies on one server) */

.landing { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); color: var(--text); }
.landing-card { width: 100%; max-width: 440px; }
.landing-card .brand { margin-bottom: 28px; }
.landing-card .brand > span { display: flex; flex-direction: column; }
.landing-card h2 { font-size: 48px; line-height: .95; margin: 0 0 8px; }
.landing-card .auth-foot { margin-top: 28px; }
.landing-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.input-group.prefix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding-left: 14px; background: var(--bg); }
.input-group.prefix > span { color: var(--text-2); font-size: 13px; white-space: nowrap; }
.input-group.prefix .input { border: 0; background: transparent; padding-left: 4px; flex: 1; min-width: 0; }
.tenant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.card.tenant { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.card.tenant:hover { background: var(--surface-2); }
.tenant-h { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.tenant-h > div { display: flex; flex-direction: column; min-width: 0; }
.tenant-h b { font-size: 17px; }
.tenant-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
.tenant-stats span { display: flex; flex-direction: column; font: 400 10.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.tenant-stats b { font: 400 26px/1 var(--display); color: var(--text); letter-spacing: .02em; }

/* sign in with ERPNext */
.sso-btn { width: 100%; justify-content: center; }
.sso-alt { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 12px; }
.sso-alt summary { cursor: pointer; color: var(--text-2); font-size: 14px; margin-bottom: 12px; }
