/* ============================================================
   Youshi CMS — design system
   Same family as Youshi Partner (glass cards, blue→purple glow,
   light & dark), simplified for catering: bigger targets, fewer
   words, one job per screen. Two mode colours: Organizer (indigo)
   and Associate (teal). No color-mix(); Chromium 108 safe.
   ============================================================ */
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url(/fonts/ps-400.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url(/fonts/ps-500.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url(/fonts/ps-600.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url(/fonts/ps-700.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 800; font-display: swap; src: url(/fonts/ps-800.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 600; font-display: swap; src: url(/fonts/pf-600.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url(/fonts/pf-700.woff2) format("woff2"); }
@font-face { font-family: "Noto Gujarati"; font-weight: 400; font-display: swap; src: url(/fonts/gu-400.woff2) format("woff2"); unicode-range: U+0A80-0AFF, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Gujarati"; font-weight: 600 800; font-display: swap; src: url(/fonts/gu-600.woff2) format("woff2"); unicode-range: U+0A80-0AFF, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Devanagari"; font-weight: 400; font-display: swap; src: url(/fonts/dev-400.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+25CC, U+A8E0-A8FF; }
@font-face { font-family: "Noto Devanagari"; font-weight: 600 800; font-display: swap; src: url(/fonts/dev-600.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+25CC, U+A8E0-A8FF; }
@font-face { font-family: "Noto Bengali"; font-weight: 400; font-display: swap; src: url(/fonts/bn-400.woff2) format("woff2"); unicode-range: U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Bengali"; font-weight: 600 800; font-display: swap; src: url(/fonts/bn-600.woff2) format("woff2"); unicode-range: U+0980-09FE, U+200C-200D, U+25CC; }

:root {
  --font: "Public Sans", "Noto Devanagari", "Noto Gujarati", "Noto Bengali", "Nirmala UI", "Segoe UI", -apple-system, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --r: 20px; --r-sm: 13px; --r-xs: 9px;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.2, 1.4, .4, 1);
  --org: #6d5cff; --org-2: #9b5cff; --asc: #10b5a0; --asc-2: #22c6e0;
}
body.dg-theme {
  color-scheme: dark;
  --bg-0: #05060d; --bg-1: #0b0f1f; --bg-2: #10152b; --bg-solid: #0d1226;
  --glass: rgba(20, 26, 48, .58); --glass-strong: rgba(20, 26, 48, .86);
  --border: rgba(255, 255, 255, .08); --border-glow: rgba(120, 150, 255, .35);
  --text: #eef1fb; --soft: #99a3c4; --faint: #5c6690;
  --green: #34d399; --red: #f65c6f; --amber: #ffb454; --blue: #4d8dff;
  --t1: rgba(255, 255, 255, .045); --t2: rgba(255, 255, 255, .07); --t3: rgba(255, 255, 255, .11); --t4: rgba(255, 255, 255, .2);
  --shadow: 0 0 0 1px var(--border), 0 8px 32px rgba(0, 0, 0, .45), 0 0 40px -20px rgba(120, 150, 255, .25);
  --green-bg: rgba(52, 211, 153, .14); --red-bg: rgba(246, 92, 111, .14); --amber-bg: rgba(255, 180, 84, .14); --blue-bg: rgba(77, 141, 255, .14);
  --backdrop: radial-gradient(ellipse 900px 500px at 15% -5%, rgba(77, 141, 255, .14), transparent 60%), radial-gradient(ellipse 800px 600px at 90% 10%, rgba(181, 101, 245, .12), transparent 60%), radial-gradient(ellipse 1000px 700px at 50% 100%, rgba(77, 141, 255, .08), transparent 60%), #05060d;
}
body.lg-theme {
  color-scheme: light;
  --bg-0: #eef1fb; --bg-1: #ffffff; --bg-2: #f6f7fb; --bg-solid: #ffffff;
  --glass: rgba(255, 255, 255, .66); --glass-strong: rgba(255, 255, 255, .94);
  --border: rgba(30, 35, 60, .09); --border-glow: rgba(99, 102, 241, .3);
  --text: #1e2233; --soft: #5b6478; --faint: #8991a8;
  --green: #10b981; --red: #ef4444; --amber: #d97706; --blue: #6366f1;
  --t1: rgba(15, 23, 42, .035); --t2: rgba(15, 23, 42, .06); --t3: rgba(15, 23, 42, .1); --t4: rgba(15, 23, 42, .16);
  --shadow: 0 0 0 1px var(--border), 0 8px 28px rgba(30, 41, 59, .09), 0 0 32px -18px rgba(99, 102, 241, .25);
  --green-bg: rgba(16, 185, 129, .12); --red-bg: rgba(239, 68, 68, .1); --amber-bg: rgba(217, 119, 6, .12); --blue-bg: rgba(99, 102, 241, .1);
  --backdrop: radial-gradient(ellipse 900px 520px at 10% -10%, rgba(99, 102, 241, .16), transparent 60%), radial-gradient(ellipse 800px 600px at 95% 5%, rgba(217, 70, 239, .12), transparent 60%), radial-gradient(ellipse 900px 700px at 50% 110%, rgba(16, 185, 160, .1), transparent 60%), #eef1fb;
}
/* The mode colour drives every accent. */
body { --a: var(--org); --a2: var(--org-2); --a-soft: rgba(109, 92, 255, .16); --a-glow: rgba(109, 92, 255, .45); }
body[data-mode="asc"] { --a: var(--asc); --a2: var(--asc-2); --a-soft: rgba(16, 181, 160, .16); --a-glow: rgba(16, 181, 160, .45); }
body { --grad: linear-gradient(135deg, var(--a) 0%, var(--a2) 100%); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); background: var(--backdrop); background-attachment: fixed; color: var(--text); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--a); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
::selection { background: var(--a-soft); }
.serif { font-family: var(--serif); letter-spacing: -.01em; }
.muted { color: var(--soft); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .tiny { font-size: 11px; }
.num { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 14px; }
.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)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--glass); border-right: 1px solid var(--border); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); z-index: 30; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; box-shadow: 0 6px 18px var(--a-glow); transition: background .5s, box-shadow .5s; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand b { display: block; font-size: 15px; line-height: 1.15; } .brand small { color: var(--faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.nav-sec { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 800; padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--soft); font-weight: 600; font-size: 14.5px; position: relative; transition: background .2s, color .2s, transform .15s; }
.nav a .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; background: var(--t1); transition: transform .3s var(--spring), background .2s; }
.nav a:hover { background: var(--t1); color: var(--text); } .nav a:hover .ic { transform: scale(1.12) rotate(-6deg); }
.nav a:active { transform: scale(.98); }
.nav a.on { color: var(--text); background: var(--a-soft); }
.nav a.on .ic { background: var(--grad); box-shadow: 0 4px 14px var(--a-glow); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--grad); animation: grow-y .35s var(--ease); }
.nav a .badge { margin-left: auto; }
.side-foot { margin-top: auto; padding-top: 12px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 12px; padding: 12px 26px; background: var(--glass); border-bottom: 1px solid var(--border); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.top .menu-btn { display: none; }
.page { padding: 24px 26px 90px; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.page-head p { margin: 4px 0 0; color: var(--soft); }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-105%); transition: transform .35s var(--ease); box-shadow: var(--shadow); background: var(--glass-strong); }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .top { padding: 10px 14px; } .top .menu-btn { display: inline-grid; }
  .page { padding: 18px 14px 100px; }
  .top .hide-sm { display: none !important; }
}
.scrim { position: fixed; inset: 0; background: rgba(5, 6, 13, .45); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 28; }

/* Mode switch — looks and feels like the theme switch. */
.mode-switch { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--t2); border: 1px solid var(--border); }
.mode-switch button { position: relative; z-index: 1; border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--soft); cursor: pointer; display: flex; align-items: center; gap: 7px; transition: color .3s; white-space: nowrap; }
.mode-switch button.on { color: #fff; }
.mode-switch .knob { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--grad); box-shadow: 0 4px 16px var(--a-glow); transition: transform .45s var(--spring), width .45s var(--spring), background .5s; }
.mode-switch.single .knob { display: none; }
.mode-wipe { position: fixed; z-index: 200; border-radius: 50%; pointer-events: none; transform: scale(0); opacity: .9; }
.mode-wipe.go { animation: wipe .7s var(--ease) forwards; }
@keyframes wipe { 0% { transform: scale(0); opacity: .85; } 70% { opacity: .55; } 100% { transform: scale(1); opacity: 0; } }
.mode-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--a-soft); color: var(--a); }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); background: var(--t2); color: var(--text); padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; position: relative; overflow: hidden; transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; user-select: none; }
.btn:hover { background: var(--t3); border-color: var(--border-glow); }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 20px var(--a-glow); }
.btn.primary:hover { box-shadow: 0 8px 26px var(--a-glow); filter: brightness(1.06); }
.btn.good { background: var(--green); color: #fff; border-color: transparent; } .btn.danger { background: var(--red-bg); color: var(--red); border-color: transparent; } .btn.danger.solid { background: var(--red); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--t2); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; } .btn.lg { padding: 14px 22px; font-size: 16px; border-radius: 15px; } .btn.block { width: 100%; }
.btn.icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; font-size: 17px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .25; animation: ripple .6s var(--ease); pointer-events: none; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

label.field { display: block; } label.field > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--soft); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--border); background: var(--t1); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; font-size: 15px; }
.input:focus { border-color: var(--a); box-shadow: 0 0 0 4px var(--a-soft); background: var(--t2); }
.input::placeholder { color: var(--faint); }
textarea.input { min-height: 84px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
body.dg-theme select.input option { background: #11162b; }
.input.sm { padding: 8px 11px; font-size: 14px; border-radius: 10px; }
.input-icon { position: relative; } .input-icon .input { padding-left: 42px; } .input-icon > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.mic { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.mic.on { color: var(--red); animation: pulse 1s infinite; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; }
.check input { display: none; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--t4); display: grid; place-items: center; transition: all .2s var(--spring); flex: none; }
.check input:checked + .box { background: var(--grad); border-color: transparent; transform: scale(1.06); }
.check input:checked + .box::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 900; animation: pop .3s var(--spring); }
.switch { position: relative; width: 46px; height: 26px; flex: none; display: inline-block; }
.switch input { display: none; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--t3); transition: background .25s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .3s var(--spring); }
.switch input:checked + i { background: var(--grad); } .switch input:checked + i::after { transform: translateX(20px); }
.stepper { display: inline-flex; align-items: center; border-radius: 13px; background: var(--t2); border: 1px solid var(--border); overflow: hidden; }
.stepper button { width: 40px; height: 42px; border: 0; background: none; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--text); transition: background .15s, transform .1s; }
.stepper button:hover { background: var(--t3); } .stepper button:active { transform: scale(.85); }
.stepper input { width: 70px; text-align: center; border: 0; background: none; outline: none; font-weight: 800; font-size: 17px; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--t2); border: 1px solid var(--border); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--soft); cursor: pointer; transition: all .2s var(--ease); }
.seg button.on { background: var(--glass-strong); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.seg button:active { transform: scale(.95); }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.card.tight { padding: 14px 16px; } .card.flat { box-shadow: none; }
.card h3 { margin: 0 0 4px; font-size: 16px; } .card .sub { color: var(--soft); font-size: 13px; margin-bottom: 12px; }
.lift { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.lift:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.tile { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--border); box-shadow: var(--shadow); cursor: pointer; text-align: left; position: relative; overflow: hidden; transition: transform .25s var(--ease), border-color .25s; color: var(--text); }
.tile:hover { transform: translateY(-4px); border-color: var(--border-glow); } .tile:active { transform: scale(.97); }
.tile .ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: var(--grad); box-shadow: 0 6px 18px var(--a-glow); transition: transform .4s var(--spring); }
.tile:hover .ic { transform: scale(1.1) rotate(-8deg); }
.tile b { font-size: 15.5px; } .tile span { color: var(--soft); font-size: 12.5px; }
.tile::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--a-soft), transparent 70%); transition: transform .5s; }
.tile:hover::after { transform: scale(1.5); }
.stat { padding: 16px 18px; } .stat .l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--faint); }
.stat .v { font-size: 26px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; } .stat .s { font-size: 12.5px; color: var(--soft); margin-top: 2px; }
.stat.good .v { color: var(--green); } .stat.bad .v { color: var(--red); } .stat.accent .v { color: var(--a); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--t2); color: var(--soft); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.nodot::before { display: none; }
.pill.green { background: var(--green-bg); color: var(--green); } .pill.red { background: var(--red-bg); color: var(--red); } .pill.amber { background: var(--amber-bg); color: var(--amber); } .pill.blue { background: var(--blue-bg); color: var(--blue); } .pill.accent { background: var(--a-soft); color: var(--a); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; animation: pop .4s var(--spring); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 7px; background: var(--t2); color: var(--soft); }
.veg, .nonveg, .jain, .egg { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 2px solid; border-radius: 4px; flex: none; }
.veg { border-color: #16a34a; } .veg::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.nonveg { border-color: #b91c1c; } .nonveg::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid #b91c1c; }
.jain { border-color: #d97706; } .jain::after { content: "J"; font-size: 9px; font-weight: 900; color: #d97706; line-height: 1; }
.egg { border-color: #ca8a04; } .egg::after { content: ""; width: 7px; height: 8px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #ca8a04; }

.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--border); transition: transform .2s var(--ease), border-color .2s, background .2s; cursor: pointer; }
.item:hover { border-color: var(--border-glow); transform: translateX(3px); background: var(--glass-strong); }
.item .av { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 20px; background: var(--t2); overflow: hidden; font-weight: 800; }
.item .av img { width: 100%; height: 100%; object-fit: cover; }
.item b { display: block; font-size: 15px; } .item .meta { color: var(--soft); font-size: 12.5px; }
.item .end { margin-left: auto; text-align: right; flex: none; }
.date-chip { width: 52px; flex: none; border-radius: 14px; background: var(--grad); color: #fff; text-align: center; padding: 6px 0; box-shadow: 0 4px 14px var(--a-glow); }
.date-chip b { display: block; font-size: 20px; line-height: 1; } .date-chip small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.date-chip.dim { background: var(--t3); color: var(--soft); box-shadow: none; }

table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 800; padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s; } .tbl tbody tr:hover td { background: var(--t1); }
.tbl .r { text-align: right; }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 15px; background: var(--t1); border: 1px solid var(--border); overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: none; padding: 9px 15px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--soft); cursor: pointer; transition: all .2s var(--ease); display: flex; gap: 7px; align-items: center; }
.tabs button.on { background: var(--glass-strong); color: var(--text); box-shadow: 0 2px 12px rgba(0, 0, 0, .14); }
.tabs button em { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--t3); }
.tabs button.on em { background: var(--a-soft); color: var(--a); }

.empty { text-align: center; padding: 44px 20px; border-radius: var(--r); border: 1.5px dashed var(--border-glow); background: var(--t1); color: var(--soft); }
.empty .art { font-size: 46px; animation: float 3s ease-in-out infinite; display: inline-block; }
.empty h3 { color: var(--text); margin: 10px 0 4px; font-size: 18px; }
.empty p { margin: 0 auto 16px; max-width: 420px; }
.skel { border-radius: 14px; background: linear-gradient(90deg, var(--t1), var(--t3), var(--t1)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }

.progress { height: 8px; border-radius: 99px; background: var(--t3); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transform-origin: left; animation: grow-x .9s var(--ease) both; }
.progress.green i { background: var(--green); }

/* Steps (one job per screen). */
.steps { display: flex; gap: 6px; margin-bottom: 16px; }
.steps span { flex: 1; height: 6px; border-radius: 99px; background: var(--t3); position: relative; overflow: hidden; }
.steps span.done::after, .steps span.cur::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform-origin: left; animation: grow-x .5s var(--ease) both; }
.steps span.cur::after { opacity: .85; }

/* ---------------------------------------------------------------- overlays */
.modal-wrap { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 13, .5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: fade .2s ease both; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 24px; background: var(--bg-solid); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); padding: 22px 24px; animation: rise .35s var(--spring) both; }
.modal.wide { width: min(860px, 100%); } .modal.xl { width: min(1100px, 100%); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-head h2 { margin: 0; font-size: 20px; flex: 1; } .modal-head p { margin: 3px 0 0; color: var(--soft); font-size: 13.5px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal-wrap.out { animation: fade .2s ease reverse both; } .modal-wrap.out .modal { animation: rise .2s ease reverse both; }
@media (max-width: 640px) { .modal-wrap { place-items: end center; padding: 0; } .modal { border-radius: 24px 24px 0 0; max-height: 92vh; animation: sheet .35s var(--ease) both; } }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 420px; padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--border); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: toast-in .45s var(--spring) both; }
.toast .ti { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--a-soft); font-size: 16px; }
.toast.good .ti { background: var(--green-bg); } .toast.bad .ti { background: var(--red-bg); }
.toast b { display: block; font-size: 14px; } .toast span { font-size: 12.5px; color: var(--soft); }
.toast .act { margin-left: auto; }
.toast.out { animation: toast-out .3s ease both; }
@media (max-width: 640px) { .toasts { left: 12px; right: 12px; bottom: 12px; align-items: stretch; } .toast { min-width: 0; max-width: none; } }
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 60px; height: 60px; border-radius: 20px; border: 0; background: var(--grad); color: #fff; font-size: 28px; box-shadow: 0 10px 30px var(--a-glow); cursor: pointer; transition: transform .3s var(--spring); display: none; }
.fab:hover { transform: rotate(90deg) scale(1.05); }
@media (max-width: 900px) { .fab { display: grid; place-items: center; } }

/* Confetti for happy moments (accepted, paid, done). */
.confetti { position: fixed; pointer-events: none; z-index: 400; width: 9px; height: 14px; border-radius: 2px; animation: confetti 1.1s var(--ease) forwards; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

/* Page and list motion. */
.view-in { animation: view-in .45s var(--ease) both; }
.stagger > * { animation: rise-sm .5s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s; } .stagger > *:nth-child(2) { animation-delay: .06s; } .stagger > *:nth-child(3) { animation-delay: .1s; } .stagger > *:nth-child(4) { animation-delay: .14s; } .stagger > *:nth-child(5) { animation-delay: .18s; } .stagger > *:nth-child(6) { animation-delay: .22s; } .stagger > *:nth-child(7) { animation-delay: .26s; } .stagger > *:nth-child(8) { animation-delay: .3s; } .stagger > *:nth-child(n+9) { animation-delay: .34s; }
@keyframes view-in { from { opacity: 0; transform: translateY(12px) scale(.995); } to { opacity: 1; transform: none; } }
@keyframes rise-sm { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.shake { animation: shake .4s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------------------------------------------------------------- pieces */
.hello { position: relative; overflow: hidden; border-radius: 26px; padding: 24px 26px; background: var(--glass); border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 18px; }
.hello::before { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--a-soft), transparent 65%); animation: float 6s ease-in-out infinite; }
.hello h1 { margin: 0; font-size: 26px; font-weight: 800; position: relative; } .hello p { margin: 6px 0 0; color: var(--soft); position: relative; }
.money-line { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; position: relative; }
.money-line .pill { font-size: 13px; padding: 6px 12px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { border-radius: 16px; padding: 10px 8px; text-align: center; background: var(--t1); border: 1px solid var(--border); cursor: pointer; transition: transform .2s var(--ease), border-color .2s; min-height: 92px; }
.day:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.day.today { border-color: var(--a); box-shadow: 0 0 0 3px var(--a-soft); }
.day small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); } .day b { font-size: 20px; }
.day .dots { display: flex; justify-content: center; gap: 3px; margin-top: 6px; flex-wrap: wrap; }
.day .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--a); animation: pop .4s var(--spring) both; }
.day .dots i.asc { background: var(--asc); } .day .clash { font-size: 10px; color: var(--red); font-weight: 800; margin-top: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .h { text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--faint); padding: 4px 0; }
.cal .c { min-height: 96px; border-radius: 13px; padding: 6px; background: var(--t1); border: 1px solid var(--border); cursor: pointer; transition: border-color .2s, transform .2s; overflow: hidden; }
.cal .c:hover { border-color: var(--border-glow); } .cal .c.out { opacity: .35; } .cal .c.today { border-color: var(--a); }
.cal .c .d { font-size: 12.5px; font-weight: 800; color: var(--soft); }
.cal .ev { display: block; font-size: 11.5px; font-weight: 700; padding: 3px 6px; border-radius: 7px; margin-top: 4px; background: var(--a-soft); color: var(--a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: rise-sm .3s var(--ease) both; }
.cal .ev.asc { background: rgba(16, 181, 160, .16); color: var(--asc); } .cal .ev.lost { opacity: .45; text-decoration: line-through; }
.cal .c.full { background: var(--red-bg); }

.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.dish { border-radius: 18px; overflow: hidden; background: var(--glass); border: 1px solid var(--border); cursor: pointer; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; position: relative; }
.dish:hover { transform: translateY(-4px); border-color: var(--border-glow); box-shadow: var(--shadow); }
.dish .ph { height: 120px; background: var(--t2); display: grid; place-items: center; font-size: 40px; position: relative; overflow: hidden; }
.dish .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); } .dish:hover .ph img { transform: scale(1.07); }
.dish .bd { padding: 10px 12px 12px; } .dish b { display: block; font-size: 14.5px; line-height: 1.25; } .dish .meta { font-size: 12px; color: var(--soft); margin-top: 3px; }
.dish .price { position: absolute; top: 10px; right: 10px; padding: 4px 9px; border-radius: 10px; font-weight: 800; font-size: 12.5px; background: var(--glass-strong); }
.dish.off { opacity: .5; }
.dish.picked { border-color: var(--a); box-shadow: 0 0 0 3px var(--a-soft); }
.dish .tick { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 9px; background: var(--glass-strong); display: grid; place-items: center; font-weight: 900; transition: all .25s var(--spring); }
.dish.picked .tick { background: var(--grad); color: #fff; transform: scale(1.1); }
.pkg { border-radius: 20px; padding: 18px; position: relative; overflow: hidden; background: var(--glass); border: 1px solid var(--border); cursor: pointer; transition: transform .25s var(--ease), border-color .25s; }
.pkg:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.pkg .band { position: absolute; left: 0; top: 0; right: 0; height: 5px; }
.pkg h3 { margin: 4px 0 2px; font-size: 19px; } .pkg .pp { font-size: 24px; font-weight: 800; } .pkg .pp small { font-size: 13px; color: var(--soft); font-weight: 600; }

.drop-photo { border: 1.5px dashed var(--border-glow); border-radius: 16px; display: grid; place-items: center; min-height: 140px; cursor: pointer; background: var(--t1); color: var(--soft); text-align: center; transition: background .2s, border-color .2s; overflow: hidden; position: relative; }
.drop-photo:hover { background: var(--t2); border-color: var(--a); }
.drop-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--t3); border-radius: 2px; }
.timeline > div { position: relative; padding: 0 0 12px; font-size: 13.5px; }
.timeline > div::before { content: ""; position: absolute; left: -19px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 3px var(--a-soft); }
.timeline small { color: var(--faint); display: block; font-size: 11.5px; }

.flow { display: flex; gap: 6px; flex-wrap: wrap; }
.flow span { padding: 6px 12px 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--t2); color: var(--faint); position: relative; transition: all .3s; }
.flow span.done { background: var(--a-soft); color: var(--a); } .flow span.cur { background: var(--grad); color: #fff; box-shadow: 0 4px 14px var(--a-glow); animation: pop .4s var(--spring); }

.notice { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px; background: var(--blue-bg); border: 1px solid var(--border); margin-bottom: 14px; animation: rise-sm .4s var(--ease) both; }
.notice.warn { background: var(--amber-bg); } .notice.good { background: var(--green-bg); }

.kbd { display: inline-block; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border); font-size: 11px; color: var(--soft); background: var(--t1); }
.avatar { width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; flex: none; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 13px; border: 1px solid var(--border); background: var(--t1); cursor: pointer; transition: background .2s; }
.chip-btn:hover { background: var(--t2); }
.dropdown { position: absolute; z-index: 90; min-width: 220px; padding: 6px; border-radius: 16px; background: var(--bg-solid); border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); animation: rise .25s var(--spring) both; }
.dropdown button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 11px; border: 0; background: none; cursor: pointer; text-align: left; font-weight: 600; }
.dropdown button:hover { background: var(--t2); } .dropdown button.on { color: var(--a); }
.dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 6px 4px; }

/* Tutorial overlay. */
.tour { position: fixed; inset: 0; z-index: 500; pointer-events: none; }
.tour .hole { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(5, 6, 13, .62); transition: all .5s var(--ease); pointer-events: none; }
.tour .hole::after { content: ""; position: absolute; inset: -6px; border-radius: 22px; border: 2px solid var(--a); animation: pulse 1.4s infinite; }
.tour .tip { position: fixed; width: min(360px, calc(100vw - 30px)); padding: 18px 20px; border-radius: 22px; background: var(--bg-solid); border: 1px solid var(--border); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); pointer-events: auto; transition: top .5s var(--ease), left .5s var(--ease); animation: rise .4s var(--spring) both; }
.tour .tip .em { font-size: 34px; } .tour .tip h3 { margin: 6px 0 4px; font-size: 18px; } .tour .tip p { margin: 0; color: var(--soft); font-size: 14px; }
.tour .dots { display: flex; gap: 5px; } .tour .dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--t3); transition: all .3s; } .tour .dots i.on { width: 20px; background: var(--grad); }
.tour .welcome { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: auto; background: rgba(5, 6, 13, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .3s both; }
.tour .welcome .modal { text-align: center; width: min(520px, calc(100vw - 30px)); }

/* Print */
@media print { .side, .top, .fab, .toasts, .no-print { display: none !important; } body { background: #fff !important; color: #000 !important; } .page { padding: 0; } .card { box-shadow: none; border: 1px solid #ddd; background: #fff; } }
@media (max-width: 760px) { #tiles { grid-template-columns: 1fr 1fr; } #tiles .tile { padding: 14px; } #tiles .tile span:last-child { display: none; } }

/* ---------------------------------------------------------------- printers */
.printer-card { display: flex; flex-direction: column; gap: 6px; transition: transform .25s var(--ease), opacity .25s, border-color .25s; }
.printer-card:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.printer-card.off { opacity: .55; }
.pr-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; background: var(--a-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.chips span { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--t2); color: var(--soft); }
.chips.sel span { background: var(--a-soft); color: var(--a); }
.chips.pick button { border: 1px solid var(--border); background: var(--t1); color: var(--text); padding: 7px 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s var(--ease); }
.chips.pick button:hover { border-color: var(--a); }
.chips.pick button.on { background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.03); }
.role-pick { display: grid; gap: 8px; margin-top: 6px; }
.role-pick .tile { gap: 3px; box-shadow: none; }
.role-pick .tile.on { border-color: var(--a); box-shadow: 0 0 0 3px var(--a-soft); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.paper-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.paper-preview { position: sticky; top: 0; }
.pv-stage { margin-top: 8px; border-radius: 16px; background: repeating-linear-gradient(45deg, var(--t1), var(--t1) 10px, var(--t2) 10px, var(--t2) 20px); border: 1px solid var(--border); overflow: hidden; display: flex; justify-content: center; padding: 10px; min-height: 160px; transition: height .3s var(--ease); }
.pv-box { position: relative; flex: none; overflow: hidden; border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: rise .35s var(--spring) both; }
.pv-box iframe { position: absolute; left: 0; top: 0; transform-origin: top left; }
.pv-stage iframe { border: 0; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); border-radius: 4px; flex: none; animation: rise .35s var(--spring) both; }
.rule { display: flex; flex-direction: column; gap: 4px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.stepper button { border: 0; background: var(--t1); color: var(--text); width: 32px; height: 30px; font-size: 16px; cursor: pointer; transition: background .15s; }
.stepper button:active { background: var(--a-soft); transform: scale(.92); }
.stepper b { min-width: 26px; text-align: center; }
.prio { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.prio li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: var(--t1); border: 1px solid var(--border); animation: rise .3s var(--ease) both; }
.prio li.fixed { opacity: .7; }
.prio .n { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; background: var(--a-soft); color: var(--a); flex: none; }
.fmt-list .item { padding: 9px 12px; }
.fmt-list .item.on { border-color: var(--a); box-shadow: 0 0 0 3px var(--a-soft); }
.copy-row .av { font-weight: 800; color: var(--a); }
@media (max-width: 900px) { .paper-grid { grid-template-columns: 1fr; } .paper-preview { position: static; } .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
