/* ============ CHEF DE SERENE — PORTAL MOCKUP ============ */
:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1A1A1A;
  --border: #262626;
  --text: #F7F5F0;
  --muted: #A1A1AA;
  --gold: #C5A059;
  --gold-hover: #D4AF37;
  --gold-soft: rgba(197, 160, 89, 0.12);
  --warn: #D9826B;
  --ok: #8BB38A;
  --border-strong: #3a3a3a;
  --gold-line: var(--gold-line);
  --glass: rgba(10,10,10,.85);
  --drawer-bg: rgba(20,20,20,.94);
  --ph-a: #1d1b17;
  --ph-b: #0f0f0f;
  --ph-text: rgba(247,245,240,.35);
  color-scheme: dark;
  --font-serif: 'Gilda Display', Georgia, serif;
  --font-sans: 'Clash Grotesk', -apple-system, 'Inter', sans-serif;
  --font-mono: var(--font-sans);
  --r: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background .25s, border-color .25s, color .25s, opacity .25s;
}
.btn-gold { background: var(--gold); color: #0A0A0A; font-weight: 600; }
.btn-gold:hover { background: var(--gold-hover); }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold-soft); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--border-strong); }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn-full { width: 100%; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { color: var(--muted); }
.input, .select, .textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: inherit; font-size: 15px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.textarea { resize: vertical; min-height: 84px; }

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 100px;
  white-space: nowrap;
}
.tag-gold { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.tag-warn { color: var(--warn); border-color: rgba(217,130,107,.4); background: rgba(217,130,107,.08); }
.tag-ok { color: var(--ok); border-color: rgba(139,179,138,.35); background: rgba(139,179,138,.08); }

/* ---------- Photo placeholder (swap for client's real imagery) ---------- */
.ph {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(197,160,89,.22), transparent 60%),
    linear-gradient(160deg, var(--ph-a), var(--ph-b));
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 12px;
}
.ph span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--ph-text); }

/* ---------- Light theme ---------- */
html[data-theme="light"] {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --surface-2: #F1EEE6;
  --border: #E3DED2;
  --border-strong: #CFC8B8;
  --text: #0A0A0A;
  --muted: #6B6A70;
  --gold: #A67C2E;
  --gold-hover: #8C6722;
  --gold-soft: rgba(166,124,46,.12);
  --gold-line: rgba(166,124,46,.38);
  --warn: #B4503A;
  --ok: #4C7D4B;
  --glass: rgba(247,245,240,.88);
  --drawer-bg: rgba(255,255,255,.96);
  --ph-a: #EFE9DA;
  --ph-b: #E2DAC6;
  --ph-text: rgba(10,10,10,.4);
  color-scheme: light;
}
html[data-theme="light"] .auth-logo,
html[data-theme="light"] .side-logo,
html[data-theme="light"] .c-brand img { content: url(../assets/images/logo-on-light.svg); }
html[data-theme="light"] .auth { background: radial-gradient(60% 50% at 50% 0%, rgba(166,124,46,.10), transparent 70%), var(--bg); }
html[data-theme="light"] .modal-back { background: rgba(10,10,10,.45); }
html[data-theme="light"] .btn-gold, html[data-theme="light"] .pill.active, html[data-theme="light"] .stepper button.now { color: #fff; }

/* ---------- Theme switch ---------- */
.theme-seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.theme-seg button { border: 0; background: transparent; color: var(--muted); font-family: var(--font-sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; }
.theme-seg button + button { border-left: 1px solid var(--border); }
.theme-seg button:hover { color: var(--text); }
html[data-theme="dark"] .theme-seg [data-set-theme="dark"],
html[data-theme="light"] .theme-seg [data-set-theme="light"] { background: var(--gold-soft); color: var(--gold); }
.side-theme { margin-top: auto; margin-bottom: 16px; }
.side-theme .theme-seg { width: 100%; }
.side-theme .theme-seg button { flex: 1; }
.side-user { margin-top: 0; }
.auth-theme { position: absolute; top: 20px; left: 24px; }
.c-theme { margin-right: 4px; }

/* ---------- Auth screens ---------- */
.auth {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 32px 16px;
  position: relative;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(197,160,89,.10), transparent 70%),
    var(--bg);
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 44px 40px 36px;
}
.auth-logo { width: 150px; margin: 0 auto 26px; }
.auth-eyebrow { text-align: center; color: var(--gold); margin-bottom: 10px; }
.auth-title { text-align: center; font-size: 28px; line-height: 1.2; margin-bottom: 8px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--gold); border-bottom: 1px solid var(--gold-line); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--muted); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-switch { position: absolute; top: 20px; right: 24px; color: var(--muted); }
.auth-switch a { color: var(--gold); }
.demo-note { margin-top: 18px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: var(--r); color: var(--muted); font-size: 12px; text-align: center; }

/* ---------- Admin shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 26px 18px;
  display: flex; flex-direction: column;
}
.side-logo { width: 120px; margin: 0 auto 36px; }
.side-role { text-align: center; color: var(--gold); margin-bottom: 28px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px;
  color: var(--muted);
  border-radius: var(--r);
  font-size: 14px;
  border-left: 2px solid transparent;
}
.side-nav a:hover { color: var(--text); background: var(--surface-2); }
.side-nav a.active { color: var(--text); background: var(--surface-2); border-left-color: var(--gold); }
.side-nav .count { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px 0 9px; border-radius: 999px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); font-family: 'Clash Grotesk', sans-serif; font-size: 12.5px; font-weight: 600; line-height: 1; letter-spacing: 0; }
.side-nav .count::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: cnt-dot 2s ease-in-out infinite; }
@keyframes cnt-dot { 0%, 100% { box-shadow: 0 0 0 0 var(--gold-line); } 50% { box-shadow: 0 0 0 4px transparent; opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .side-nav .count::before { animation: none; } }
.side-user { padding-top: 18px; border-top: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--font-serif); font-size: 14px; flex: none; }
.side-user small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.side-user a { color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

.main { padding: 34px 40px 80px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: 34px; line-height: 1.15; }
.page-head p { color: var(--muted); margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 22px; }
.stat .mono { color: var(--muted); }
.stat-num { font-family: var(--font-serif); font-size: 38px; line-height: 1.1; margin: 8px 0 2px; }
.stat small { color: var(--muted); font-size: 12.5px; }
.stat.hl { border-color: var(--gold-line); }
.stat.hl .stat-num { color: var(--gold); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 22px; }
.panel-body { padding: 22px; }

/* Menu builder */
.builder-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 16px; align-items: end; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.builder-top .field { margin: 0; }
.status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.profile {
  display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
  padding: 16px 22px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.profile-item small { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 4px; }
.profile-item .tags { display: flex; gap: 6px; flex-wrap: wrap; }

.builder { display: grid; grid-template-columns: 1fr 1fr; }
.col { padding: 22px; min-width: 0; }
.col + .col { border-left: 1px solid var(--border); }
.col-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.col-head h3 { font-size: 19px; }
.dish-list { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow: auto; padding-right: 4px; }
.dish-row {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.dish-row.conflict { border-color: rgba(217,130,107,.5); }
.dish-row h4 { font-family: var(--font-sans); font-size: 15px; font-weight: 500; line-height: 1.35; }
.dish-row p { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin: 3px 0 8px; }
.dish-row .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: var(--r); font-size: 16px; line-height: 1; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn[disabled] { opacity: .3; pointer-events: none; }
.added-mark { color: var(--ok); font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.max-ctl { display: flex; align-items: center; gap: 8px; }
.max-ctl small { color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-right: 2px; }
.qty { min-width: 18px; text-align: center; font-family: var(--font-mono); font-size: 14px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--r); font-size: 14px; }

.builder-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-top: 1px solid var(--border); background: var(--surface-2); }
.builder-foot .sum { color: var(--muted); font-size: 14px; }
.builder-foot .sum b { color: var(--text); font-weight: 500; }
.builder-foot .sum .bad { color: var(--warn); }
.foot-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 14px 22px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 16px 22px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.cell-name b { display: block; font-weight: 500; }
.cell-name small { color: var(--muted); font-size: 12.5px; }
.bar { width: 120px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 6px; }
.bar i { display: block; height: 100%; background: var(--gold); }
.quota-txt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.spacer { height: 28px; }

/* ---------- Client portal ---------- */
.c-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.c-head-in { max-width: 1280px; margin: 0 auto; padding: 14px 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.c-brand { display: flex; align-items: center; gap: 16px; }
.c-brand img { height: 48px; width: auto; }
.c-brand small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.c-brand b { font-weight: 500; font-size: 14px; }
.c-quota { min-width: 300px; text-align: center; }
.c-quota .mono { color: var(--muted); display: block; margin-bottom: 8px; }
.c-quota .mono b { color: var(--gold); font-weight: 500; }
.c-quota .bar { width: 100%; height: 5px; margin: 0; }
.c-right { display: flex; justify-content: flex-end; align-items: center; gap: 22px; text-align: right; }
.c-right .mono { color: var(--muted); display: block; }
.c-right b { font-weight: 500; font-size: 14px; }
.c-right a.logout { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.c-main { max-width: 1280px; margin: 0 auto; padding: 48px 32px 180px; }
.c-intro { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 30px; }
.c-intro h1 { font-size: 44px; line-height: 1.1; margin: 10px 0 10px; }
.c-intro p { color: var(--muted); max-width: 560px; }
.cutoff { padding: 14px 18px; border: 1px solid var(--gold-line); background: var(--gold-soft); border-radius: var(--r); }
.cutoff .mono { color: var(--gold); display: block; }
.cutoff b { font-weight: 500; }

.notice { padding: 14px 18px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r); margin-bottom: 24px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.notice.ok { border-color: rgba(139,179,138,.4); background: rgba(139,179,138,.06); }
.notice.ok b { color: var(--ok); font-weight: 500; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.pill {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 100px;
  font-size: 13px;
  transition: all .2s;
}
.pill:hover { color: var(--text); border-color: var(--border-strong); }
.pill.active { color: #0A0A0A; background: var(--gold); border-color: var(--gold); font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s; }
.card.on { border-color: var(--gold); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 21px; line-height: 1.25; margin-bottom: 6px; }
.card .desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-bottom: 14px; }
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.macros { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.macros div { padding: 10px 0; text-align: center; }
.macros div + div { border-left: 1px solid var(--border); }
.macros b { display: block; font-weight: 500; font-size: 15px; }
.macros small { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.card-foot .limit { color: var(--muted); font-size: 12px; }
.counter { display: flex; align-items: center; gap: 4px; }
.counter .qty { min-width: 34px; font-size: 16px; }
.counter .icon-btn { width: 38px; height: 38px; }

.drawer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--drawer-bg);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--gold);
  transform: translateY(110%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.drawer.show { transform: translateY(0); }
.drawer-in { max-width: 1280px; margin: 0 auto; padding: 18px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.drawer-info { display: flex; gap: 36px; flex-wrap: wrap; }
.drawer-info small { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.drawer-info b { font-weight: 500; }
.drawer-info b.gold { color: var(--gold); }

/* Modal */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); display: none; place-items: center; padding: 20px; }
.modal-back.show { display: grid; }
.modal { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 32px; }
.modal h2 { font-size: 26px; margin: 8px 0 6px; }
.modal > p { color: var(--muted); margin-bottom: 20px; }
.sel-list { border-top: 1px solid var(--border); margin-bottom: 20px; }
.sel-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sel-row span:last-child { font-family: var(--font-mono); color: var(--gold); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 120; background: var(--surface-2); border: 1px solid var(--gold); color: var(--text); padding: 13px 22px; border-radius: var(--r); font-size: 14px; transition: all .35s cubic-bezier(.22,1,.36,1); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .builder-top { grid-template-columns: 1fr 1fr; }
  .builder { grid-template-columns: 1fr; }
  .col + .col { border-left: 0; border-top: 1px solid var(--border); }
  .c-head-in { grid-template-columns: 1fr; gap: 12px; }
  .c-quota { min-width: 0; }
  .c-right { justify-content: space-between; text-align: left; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .side-logo { margin: 0; width: 90px; }
  .side-role, .side-user { display: none; }
  .side-theme { margin: 0 0 0 auto; }
  .side-theme .theme-seg { width: auto; }
  .side-nav { flex-direction: row; overflow-x: auto; width: 100%; }
  .side-nav a { white-space: nowrap; border-left: 0; }
  .main { padding: 24px 16px 60px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .builder-top { grid-template-columns: 1fr; }
  .auth-card { padding: 34px 22px 28px; }
  .c-main { padding: 32px 16px 200px; }
  .c-intro h1 { font-size: 34px; }
  .c-head-in, .drawer-in { padding-left: 16px; padding-right: 16px; }
  .drawer-info { gap: 18px; }
  .page-head h1 { font-size: 28px; }
}

/* ---------- Admin: extra page components ---------- */
.split { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.list { display: flex; flex-direction: column; }
.list-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--border); color: var(--text); padding: 16px 20px; border-left: 2px solid transparent; transition: background .2s; }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: var(--surface-2); }
.list-item.active { background: var(--surface-2); border-left-color: var(--gold); }
.list-item .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.list-item b { font-weight: 500; }
.list-item small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.detail-head { padding: 22px 26px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.detail-head h2 { font-size: 26px; line-height: 1.2; }
.detail-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.kv > div { padding: 14px 26px; border-bottom: 1px solid var(--border); }
.kv > div:nth-child(odd) { border-right: 1px solid var(--border); }
.kv small { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 3px; }
.kv .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.detail-actions { padding: 18px 26px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 200px; padding: 10px 14px; font-size: 14px; }
.section-label { padding: 16px 26px 6px; color: var(--muted); }
.mini-list { padding: 0 26px 18px; }
.mini-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.mini-row:last-child { border-bottom: 0; }
.mini-row span:last-child { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dish-tile .ph { aspect-ratio: 16 / 9; }
.dish-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.dish-tile .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-tile h3 { font-family: var(--font-serif); font-weight: 400; font-size: 19px; line-height: 1.25; }
.dish-tile p { color: var(--muted); font-size: 13px; }
.dish-tile .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.dish-tile .foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12.5px; }

/* chat */
.chat { display: flex; flex-direction: column; height: 560px; }
.chat-body { flex: 1; overflow: auto; padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 72%; padding: 11px 15px; border-radius: var(--r); border: 1px solid var(--border); background: var(--bg); font-size: 14px; line-height: 1.5; }
.bubble small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.bubble.chef { align-self: flex-end; background: var(--gold-soft); border-color: var(--gold-line); }
.chat-form { display: flex; gap: 10px; padding: 16px 26px; border-top: 1px solid var(--border); }

/* toggles + settings */
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: 0; }
.set-row b { font-weight: 500; display: block; }
.set-row small { color: var(--muted); font-size: 13px; }
.toggle { position: relative; width: 44px; height: 24px; flex: none; }
.toggle input { opacity: 0; width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle i { position: absolute; inset: 0; border: 1px solid var(--border); background: var(--bg); border-radius: 100px; transition: all .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: all .2s; }
.toggle input:checked + i { border-color: var(--gold); background: var(--gold-soft); }
.toggle input:checked + i::after { left: 23px; background: var(--gold); }
.inline-input { width: 150px; }

.stepper { display: flex; gap: 0; flex-wrap: wrap; }
.stepper button { flex: 1; min-width: 110px; padding: 10px 8px; background: var(--bg); border: 1px solid var(--border); color: var(--muted); font-size: 11.5px; letter-spacing: .05em; margin-left: -1px; }
.stepper button:first-child { margin-left: 0; border-radius: var(--r) 0 0 var(--r); }
.stepper button:last-child { border-radius: 0 var(--r) var(--r) 0; }
.stepper button.done { color: var(--text); background: var(--surface-2); }
.stepper button.now { color: #0A0A0A; background: var(--gold); border-color: var(--gold); font-weight: 600; }

@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cols-3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv > div:nth-child(odd) { border-right: 0; }
  .toolbar .input, .toolbar .select { width: 100%; }
}

/* ---------- Rounded system (matches the website) ---------- */
.btn, .theme-seg { border-radius: 999px; }
.input, .select { border-radius: 999px; padding-left: 20px; padding-right: 20px; }
.select { padding-right: 42px; background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; }
.textarea { border-radius: 20px; padding: 14px 20px; }
.icon-btn { border-radius: 50%; }
.toolbar .input, .toolbar .select { padding: 10px 20px; }
.toolbar .select { padding-right: 42px; }
.side-nav a { border-radius: 999px; border-left: 0; padding-left: 16px; padding-right: 16px; }
.side-nav a.active { box-shadow: inset 0 0 0 1px var(--gold-line); }
.list-item { border-left: 0; }
.list-item.active { box-shadow: inset 3px 0 0 var(--gold); }
.dish-row, .notice, .cutoff, .demo-note { border-radius: 14px; }
.stepper button:first-child { border-radius: 999px 0 0 999px; }
.stepper button:last-child { border-radius: 0 999px 999px 0; }
.theme-seg button { padding: 7px 14px; }
.modal, .panel, .stat, .auth-card, .card, .dish-tile { border-radius: 16px; }
.chat-form .input { border-radius: 999px; }
.bubble { border-radius: 18px; }
.panel { overflow: hidden; }

/* Dish photography */
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .ph, .dish-tile .ph { border-radius: 0; }

/* ---------- Scrollbars (follow the theme) ---------- */
.modal, .dish-list, .chat-body, .msg-body, html, .table-wrap { scrollbar-width: thin; scrollbar-color: var(--gold-line) transparent; }
@supports selector(::-webkit-scrollbar) {
  .modal, .dish-list, .chat-body, .msg-body, html, .table-wrap { scrollbar-width: auto; scrollbar-color: auto; }
  .modal::-webkit-scrollbar, .dish-list::-webkit-scrollbar, .chat-body::-webkit-scrollbar, .msg-body::-webkit-scrollbar, html::-webkit-scrollbar, .table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
  .modal::-webkit-scrollbar-track, .dish-list::-webkit-scrollbar-track, .chat-body::-webkit-scrollbar-track, .msg-body::-webkit-scrollbar-track, html::-webkit-scrollbar-track, .table-wrap::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
  .modal::-webkit-scrollbar-thumb, .dish-list::-webkit-scrollbar-thumb, .chat-body::-webkit-scrollbar-thumb, .msg-body::-webkit-scrollbar-thumb, html::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb { background: var(--gold-line); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
  .modal::-webkit-scrollbar-thumb:hover, .dish-list::-webkit-scrollbar-thumb:hover, .chat-body::-webkit-scrollbar-thumb:hover, .msg-body::-webkit-scrollbar-thumb:hover, html::-webkit-scrollbar-thumb:hover, .table-wrap::-webkit-scrollbar-thumb:hover { background: var(--gold); background-clip: content-box; }
}

/* ---------- Prices, payment and order tracking ---------- */
.price-in { display: inline-flex; align-items: center; gap: 4px; padding: 0 14px; height: 38px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--muted); }
.price-in:focus-within { border-color: var(--gold); }
.price-in input { width: 54px; border: 0; background: transparent; color: var(--text); font-family: inherit; font-size: 15px; outline: none; -moz-appearance: textfield; }
.price-in input::-webkit-inner-spin-button, .price-in input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.row-actions { flex-wrap: wrap; justify-content: flex-end; }
.card-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.card-title-row h3 { margin-bottom: 0; }
.card .price { font-family: var(--font-serif); font-size: 21px; color: var(--gold); white-space: nowrap; }
.sel-row small { font-size: 12.5px; }
.sel-total { font-weight: 500; border-bottom: 0; }
.sel-total span:last-child { font-size: 18px; }
.pay-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; margin-bottom: 20px; border: 1px solid var(--gold-line); background: var(--gold-soft); border-radius: 14px; }
.pay-total b { font-family: var(--font-serif); font-weight: 400; font-size: 26px; color: var(--gold); }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fm-err { color: var(--warn); font-size: 12.5px; }
.fm-err:empty { display: none; }
.field.bad .input { border-color: var(--warn); }
.order-box { display: block; }
.order-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.order-when { color: var(--muted); }
.order-when b { color: var(--text); font-weight: 500; }
.tracker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tracker span { text-align: center; padding: 9px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 12.5px; }
.tracker span.done { color: var(--text); background: var(--surface-2); }
.tracker span.now { color: #fff; background: var(--gold); border-color: var(--gold); font-weight: 600; }
html[data-theme="dark"] .tracker span.now { color: #0A0A0A; }
@media (max-width: 640px) { .tracker { grid-template-columns: 1fr 1fr; } .pay-row { grid-template-columns: 1fr; } }

/* ---------- Client portal sidebar layout ---------- */
.with-side .drawer { left: 248px; }
@media (max-width: 860px) { .with-side .drawer { left: 0; } }
.week-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.wb-q { flex: 1; min-width: 240px; }
.wb-q .mono { display: block; color: var(--muted); margin-bottom: 10px; }
.wb-q .mono b { color: var(--gold); font-weight: 500; }
.wb-q .bar { width: 100%; height: 5px; margin: 0; }
.wb-d .mono { display: block; color: var(--muted); }
.wb-d b { font-weight: 500; }
.stat small:empty { display: none; }

/* Sidebar: user block + separate log out button */
.side-logout {
  display: block; margin-top: 14px; padding: 11px 16px; text-align: center;
  border: 1px solid var(--border-strong); border-radius: 999px;
  color: var(--text); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: border-color .25s, background .25s, color .25s;
}
.side-logout:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
@media (max-width: 860px) { .side-logout { margin: 0; padding: 8px 14px; } }

/* ---------- Client dashboard widgets ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.s12 { grid-column: span 12; } .s7 { grid-column: span 7; } .s5 { grid-column: span 5; } .s4 { grid-column: span 4; }
.w-link { color: var(--gold); font-size: 13px; white-space: nowrap; }
.w-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty-soft { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 6px 0; color: var(--muted); font-size: 14.5px; }

.hero-card { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding: 28px 36px; margin-bottom: 20px; background: radial-gradient(90% 140% at 0% 0%, var(--gold-soft), transparent 60%), var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.hero-card h1 { font-size: 34px; line-height: 1.15; margin-bottom: 6px; }
.hero-title { font-size: 22px; font-weight: 400; color: var(--gold); margin-bottom: 6px; }
.hero-card p { color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.journey { list-style: none; display: flex; justify-content: space-between; gap: 6px; position: relative; padding: 0; }
.journey::before { content: ""; position: absolute; left: 6%; right: 6%; top: 17px; height: 1px; background: var(--border-strong); }
.journey li { position: relative; flex: 1; text-align: center; font-size: 13px; color: var(--muted); }
.journey li span { display: grid; place-items: center; width: 35px; height: 35px; margin: 0 auto 10px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); font-size: 13px; position: relative; }
.journey li.done { color: var(--text); }
.journey li.done span { background: var(--gold); border-color: var(--gold); color: #fff; }
html[data-theme="dark"] .journey li.done span { color: #0A0A0A; }
.journey li.now { color: var(--text); }
.journey li.now span { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

.del-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.del-date { font-size: 30px; line-height: 1.15; margin-bottom: 4px; }
.del-note { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; }
.del-note .muted { font-size: 12.5px; }

.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.thumb { position: relative; width: 62px; height: 62px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb b { position: absolute; right: 4px; bottom: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(10,10,10,.78); color: #fff; font-size: 11px; font-weight: 500; }
.thumb-more { display: grid; place-items: center; color: var(--muted); font-size: 14px; background: var(--surface-2); }
.order-line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.order-line b { font-family: var(--font-serif); font-weight: 400; font-size: 26px; color: var(--gold); }

.nut-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.nut-stats b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.nut-stats small { color: var(--muted); font-size: 12.5px; }
.macro-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 3px; margin-bottom: 14px; }
.macro-bar i { display: block; height: 100%; border-radius: 999px; }
.m-p { background: var(--gold); } .m-c { background: var(--muted); } .m-f { background: var(--border-strong); }
.macro-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.macro-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }

.pick img { width: 100%; height: 190px; object-fit: cover; display: block; }
.pick-body { padding: 18px 22px 22px; }
.pick-body h3 { font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.pick-body p { font-size: 14px; margin-bottom: 12px; }
.pick-body .tags { display: flex; gap: 6px; flex-wrap: wrap; }

.w-big { font-family: var(--font-serif); font-size: 34px; line-height: 1.1; color: var(--gold); margin-bottom: 4px; }
.w-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.w-rows > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.w-rows b { font-weight: 500; text-align: right; }
.w-tags { margin-top: 16px; }
.w-tags .muted { display: block; font-size: 12.5px; margin-bottom: 6px; }
.w-tags .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.quick { display: flex; gap: 8px; margin-top: 14px; }
.quick .input { padding: 10px 16px; font-size: 14px; }

.week-row { display: grid; grid-template-columns: 150px 80px 1fr 90px; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.week-row:last-child { border-bottom: 0; }
.wr-bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.wr-bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.wr-amt { text-align: right; font-weight: 500; }

@media (max-width: 1100px) {
  .s7, .s5 { grid-column: span 12; } .s4 { grid-column: span 6; }
  .hero-card { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}
@media (max-width: 640px) {
  .s4 { grid-column: span 12; }
  .hero-card h1 { font-size: 28px; }
  .nut-stats { grid-template-columns: 1fr; }
  .week-row { grid-template-columns: 1fr auto; } .wr-meals, .wr-bar { display: none; }
  .journey li { font-size: 11.5px; }
}

/* This week's order: horizontal dish cards */
.o-list { display: flex; flex-direction: column; gap: 10px; }
.o-card { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; }
.o-card img { flex: none; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.o-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.o-info b { font-weight: 500; font-size: 15px; line-height: 1.3; }
.o-info span { font-size: 13px; }
.o-amt { font-family: var(--font-serif); font-size: 18px; color: var(--gold); white-space: nowrap; }
.o-more { display: inline-block; margin-top: 12px; color: var(--gold); font-size: 13.5px; }
.o-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.o-sum { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.order-line { margin-bottom: 12px; }
.o-sum .bar { width: 100%; height: 5px; margin: 0; }
.del-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.del-facts > div { padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.del-facts b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 22px; line-height: 1.15; }
.del-facts small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) { .del-facts { grid-template-columns: 1fr; } }

/* Dashboard layout: delivery + numbers stacked on the left, order on the right */
.g-delivery { grid-column: 1 / span 7; grid-row: 1; }
.g-nutrition { grid-column: 1 / span 7; grid-row: 2; }
.g-order { grid-column: 8 / span 5; grid-row: 1 / span 2; }
.g-weeks { grid-column: 1 / -1; grid-row: 3; }
@media (max-width: 1100px) {
  .g-delivery, .g-nutrition, .g-order, .g-weeks { grid-column: 1 / -1; grid-row: auto; }
}

/* Hero art: progress ring around a dish photo */
.hero-art { display: flex; flex-direction: column; align-items: center; zoom: .68; }
.ring { position: relative; width: 240px; height: 240px; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-track { fill: none; stroke: var(--border-strong); stroke-width: 3; }
.ring-prog { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; }
.ring-photo { position: absolute; inset: 24px; width: 192px; height: 192px; border-radius: 50%; object-fit: cover; box-shadow: 0 14px 40px rgba(0,0,0,.25); }
.orbit { position: absolute; width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.orbit.o1 { top: -6px; right: 4px; }
.orbit.o2 { bottom: 6px; left: -18px; }
.ring-cap { margin-top: 14px; color: var(--muted); font-size: 19px; }
.ring-cap b { font-family: var(--font-serif); font-weight: 400; font-size: 36px; color: var(--gold); margin-right: 4px; }
@media (max-width: 1100px) { .hero-art { margin-top: 4px; } }

/* Dashboard hero: dark card even in the light theme */
html[data-theme="light"] .hero-card {
  --text: #F7F5F0; --muted: #A1A1AA; --border: #262626; --border-strong: #3a3a3a; --surface: #141414;
  --gold: #C5A059; --gold-hover: #D4AF37; --gold-soft: rgba(197,160,89,.14); --gold-line: rgba(197,160,89,.3);
  --ok: #8BB38A; --warn: #D9826B;
  background: radial-gradient(90% 140% at 0% 0%, rgba(197,160,89,.18), transparent 60%), #141414;
  border-color: #262626; color: var(--text);
}
html[data-theme="light"] .hero-card .btn-gold { color: #0A0A0A; }

/* ---------- This Week: dish cards with a plate cut-out ---------- */
.with-side .grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.dcard { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; transition: border-color .3s, transform .3s; }
.dcard:hover { transform: translateY(-3px); }
.dcard.on { border-color: var(--gold); }
.dart { position: relative; margin: -22px -22px 6px; aspect-ratio: 1.3 / 1; pointer-events: none; }
.dart .plate { position: absolute; top: -12%; right: -16%; width: 78%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0,0,0,.28)); }
.sel-badge { position: absolute; top: 22px; left: 22px; padding: 6px 14px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
html[data-theme="dark"] .sel-badge { color: #0A0A0A; }
.dcard .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.dcard h3 { font-family: var(--font-serif); font-weight: 400; font-size: 25px; line-height: 1.2; margin-bottom: 8px; }
.ddesc { font-style: italic; color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-bottom: 18px; }
.dcard .macros { margin-bottom: 4px; }
.dcard .macros b { font-size: 14px; }
.dcard .macros small { font-size: 9px; }
.dfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.dprice b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 32px; line-height: 1.05; }
.dprice small { color: var(--muted); font-size: 12px; }
.dcounter { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.dcounter .qty { min-width: 28px; font-size: 15px; }
.dcounter .icon-btn { width: 38px; height: 38px; background: var(--surface); }

/* Expandable table rows */
.acc-row { cursor: pointer; }
.acc-row:hover td { background: var(--gold-soft); }
.acc-row:focus-visible { outline: 2px solid var(--border-strong); outline-offset: -2px; }
.acc-end { width: 56px; text-align: right; color: var(--muted); }
.acc-chev { display: block; margin-left: auto; transition: transform .25s ease; }
.acc-row.open .acc-chev { transform: rotate(180deg); }
.acc-detail td { padding: 4px 22px 14px; background: var(--surface-2); }
.acc-list .mini-row:last-child { border-bottom: 0; }

/* Headings: tight tracking */
h1, h2, h3, h4, h1.serif, h2.serif, h3.serif, h4.serif, .hero-title { letter-spacing: -0.07em; }
.serif, .stat-num, .card h3, .dish-tile h3, .dcard h3, .card .price, .pay-total b, .order-line b, .nut-stats b, .w-big, .o-amt, .del-facts b, .dprice b, .ring-cap b { letter-spacing: -0.07em; }

.side-nav .nav-l { display: flex; align-items: center; gap: 12px; }
.nav-ico { flex: none; opacity: .8; }
.side-nav a.active .nav-ico { color: var(--gold); opacity: 1; }

/* Client messages */
.msg-wrap { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.msg-info { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px 22px; position: sticky; top: 24px; }
.info-top { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.info-top h2 { font-size: 22px; margin: 12px 0 4px; }
.info-top p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.info-sec { margin-bottom: 14px; }
.info-sec h3 { font-family: var(--font-sans); font-size: 10px; font-weight: 400; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info-row { display: flex; gap: 12px; padding: 9px 0; align-items: flex-start; }
.info-row svg { flex: none; color: var(--gold); margin-top: 2px; }
.info-row small { display: block; color: var(--muted); font-size: 11.5px; }
.info-row span { font-size: 13.5px; line-height: 1.4; }
.info-row a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--gold-line); }
.info-note { margin-top: 6px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.msg-av { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #0A0A0A; border: 1px solid var(--gold-line); overflow: hidden; }
.msg-av img { width: 78%; }
.msg-av.sm { width: 34px; height: 34px; }
.msg-av.lg { width: 76px; height: 76px; margin: 0 auto; }
.msg-chat { display: flex; flex-direction: column; height: calc(100vh - 68px); min-height: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.msg-head { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.msg-head h1 { font-size: 22px; line-height: 1.1; }
.msg-head p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.msg-online { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12px; color: var(--ok); background: rgba(139,179,138,.12); }
.msg-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.msg-body { flex: 1; overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.m { display: flex; gap: 12px; max-width: 82%; }
.m.me { align-self: flex-end; flex-direction: row-reverse; }
.m-col { min-width: 0; }
.m-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; margin-bottom: 5px; }
.m-meta b { font-weight: 500; }
.m-meta span { color: var(--muted); }
.m-bub { padding: 12px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; line-height: 1.55; }
.m.me .m-bub { background: var(--gold); border-color: var(--gold); color: #fff; }
.msg-av.me-av { background: var(--gold-soft); border: 1px solid var(--gold); color: var(--gold); font-family: var(--font-serif); font-size: 13px; }
.day { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; }
.day::before, .day::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.msg-form { margin: 0 18px 18px; border: 1px solid var(--border-strong); border-radius: 16px; padding: 12px 14px; background: var(--bg); }
.msg-form:focus-within { border-color: var(--gold); }
.msg-form textarea { width: 100%; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; }
.msg-send { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; font-size: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { border: 1px solid var(--border-strong); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 13px; font-size: 12px; cursor: pointer; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 1100px) { .msg-wrap { grid-template-columns: 1fr; } .msg-info { position: static; order: 2; } .msg-chat { height: 70vh; } }

/* message rows: avatar centred on the bubble, time underneath */
.m { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 5px; align-items: center; max-width: 82%; }
.m.me { grid-template-columns: minmax(0, 1fr) auto; }
.m .msg-av { grid-row: 1; }
.m.them .msg-av { grid-column: 1; } .m.them .m-bub { grid-column: 2; justify-self: start; } .m.them .m-time { grid-column: 2; }
.m.me .msg-av { grid-column: 2; } .m.me .m-bub { grid-column: 1; grid-row: 1; justify-self: end; } .m.me .m-time { grid-column: 1; text-align: right; }
.m-time { grid-row: 2; font-size: 11.5px; color: var(--muted); }
/* avatar matches the bubble height (size set in JS) */
.m .msg-av { align-self: center; }

/* composer bar */
.msg-form { padding: 10px 12px; border-radius: 18px; }
.msg-form .chips { margin: 0 4px 10px; }
.msg-form .cbar { position: relative; display: flex; align-items: center; gap: 10px; }
.bar-in { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; padding: 10px 4px; }
.bar-tools { display: flex; gap: 2px; }
.tool { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; }
.tool:hover { background: var(--surface-2); color: var(--gold); }
.tool.rec { color: #fff; background: #c0453a; animation: recp 1.2s ease-in-out infinite; }
@keyframes recp { 50% { opacity: .65; } }
.bar-sep { width: 1px; height: 28px; background: var(--border-strong); }
.emoji-pop { position: absolute; right: 120px; bottom: 54px; width: 252px; padding: 10px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.28); z-index: 5; }
.emoji-pop[hidden] { display: none; }
.emoji-pop button { border: 0; background: transparent; font-size: 22px; padding: 6px 0; border-radius: 10px; cursor: pointer; }
.emoji-pop button:hover { background: var(--surface-2); }
.pend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 4px 10px; }
.pend[hidden] { display: none; }
.pi { position: relative; width: 62px; height: 62px; }
.pi img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.pi button, .pf button { border: 0; cursor: pointer; }
.pi button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #0A0A0A; color: #fff; font-size: 13px; line-height: 1; }
.pf { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: 999px; background: var(--gold-soft); border: 1px solid var(--gold-line); font-size: 12.5px; }
.pf small { color: var(--muted); }
.pf button { width: 18px; height: 18px; border-radius: 50%; background: transparent; color: var(--muted); font-size: 14px; }
.att-img { display: block; max-width: 260px; width: 100%; border-radius: 12px; margin-bottom: 6px; }
.att-audio { display: block; width: 240px; max-width: 100%; height: 36px; margin-bottom: 4px; }
.att-file { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13.5px; }
.att-file small { display: block; opacity: .7; font-size: 11.5px; }
.m-bub > div + .att-img, .m-bub > .att-img + div { margin-top: 2px; }

.msg-chips { margin: 0 18px 10px; }
.msg-form { margin-top: 0; }

/* voice message player */
.vm { display: flex; align-items: center; gap: 12px; min-width: 230px; padding: 2px 0; }
.vm-play { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: #fff; color: var(--gold-hover); }
.m.me .vm-play { background: #fff; color: #8f7233; }
.m.them .vm-play { background: var(--gold); color: #0A0A0A; }
.vm-play .i-pause { display: none; }
.vm.playing .i-play { display: none; } .vm.playing .i-pause { display: block; }
.vm-main { flex: 1; min-width: 0; }
.vm-wave { display: flex; align-items: center; gap: 2px; height: 28px; cursor: pointer; }
.vm-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: currentColor; opacity: .4; transition: opacity .15s; }
.vm-wave i.on { opacity: 1; }
.vm-t { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.m.them .vm-wave i.on { background: var(--gold); opacity: 1; }
.m-bub { border-radius: 28px; padding: 12px 22px; }
.m-bub:has(.vm), .m-bub:has(.att-img) { border-radius: 28px; padding: 10px 18px 10px 12px; }

/* messages page fits the viewport, no page scroll */
.main.msg-main { padding-bottom: 34px; height: 100vh; overflow: hidden; }
.msg-main .msg-wrap { height: 100%; align-items: stretch; }
.msg-main .msg-info { position: static; overflow-y: auto; min-height: 0; }
.msg-main .msg-chat { height: 100%; min-height: 0; }
@media (max-width: 1100px) { .main.msg-main { height: auto; overflow: visible; padding-bottom: 60px; } .msg-main .msg-wrap { height: auto; } .msg-main .msg-chat { height: 70vh; } }
.msg-info { scrollbar-width: thin; scrollbar-color: var(--gold-line) transparent; }
.msg-info::-webkit-scrollbar { width: 8px; }
.msg-info::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
.msg-info::-webkit-scrollbar-thumb { background: var(--gold-line); border-radius: 999px; }
.msg-main .msg-info { padding: 18px 22px; }
.msg-main .info-top { padding-bottom: 12px; margin-bottom: 10px; }
.msg-main .msg-av.lg { width: 64px; height: 64px; }
.msg-main .info-top h2 { margin: 8px 0 2px; }
.msg-main .info-row { padding: 5px 0; }
.msg-main .info-sec { margin-bottom: 8px; }
.msg-main .msg-info { display: flex; flex-direction: column; }
.msg-main .info-note { margin-top: auto; }
.msg-main .info-sec:last-of-type { margin-bottom: 14px; }
.dish-row h4 { letter-spacing: -0.03em; }
[hidden] { display: none !important; }

/* ---------- Menu builder (per client) ---------- */
.crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs b { font-weight: 500; color: var(--text); }
.crumbs[hidden] { display: none; }
.mb-client { margin-bottom: 20px; padding: 22px 24px; }
.mbc-top { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.mbc-av { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); background: var(--gold-soft); color: var(--gold); font-size: 18px; }
.mbc-id { flex: 1; min-width: 0; }
.mbc-id h2 { font-size: 26px; line-height: 1.1; }
.mbc-id p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.mbc-facts { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: flex-end; }
.mbc-facts small { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 6px; }
.mbc-facts > div > span { font-size: 14px; }
.mbc-facts .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mbc-cycle { margin-left: auto; }
.mbc-cycle .select { min-width: 220px; padding: 9px 14px; font-size: 13.5px; }
.mb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mb-menu { position: sticky; top: 20px; display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.mb-menu .mb-list { overflow: auto; flex: 1; min-height: 120px; }
.mb-tools { padding: 14px 22px 4px; display: flex; flex-direction: column; gap: 12px; }
.mb-tools .input { padding: 10px 14px; font-size: 13.5px; }
.mb-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.mb-list { display: flex; flex-direction: column; gap: 10px; padding: 14px 22px 22px; }
.mb-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 22px; transition: border-color .2s; }
.mb-row:hover { border-color: var(--border-strong); }
.mb-row.conflict { border-color: rgba(217,130,107,.5); }
.mb-row.is-added { border-color: rgba(197,160,89,.45); }
.mb-th { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); overflow: hidden; }
.mb-th img { width: 118%; max-width: none; object-fit: contain; }
.mb-info h4 { font-family: var(--font-sans); font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -0.03em; }
.mb-info p { color: var(--muted); font-size: 12.5px; line-height: 1.4; margin: 2px 0 8px; }
.mb-info .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mb-info p + .tags { margin-top: 0; }
.mb-ctl { display: flex; align-items: center; gap: 8px; }
.mb-ctl .max-ctl { gap: 6px; }
.mb-foot { padding: 16px 22px 20px; border-top: 1px solid var(--border); background: var(--surface); border-radius: 0 0 20px 20px; }
.mb-meter-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 8px; }
.mb-meter-top b { font-family: var(--font-serif); font-weight: 400; font-size: 22px; color: var(--gold); }
.mb-bar { height: 6px; border-radius: 999px; background: var(--border-strong); overflow: hidden; }
.mb-bar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width .3s ease; }
.mb-bar.ok i { background: var(--ok); }
.mb-foot .sum { margin-top: 8px; font-size: 13px; }
.mb-foot .sum:empty { display: none; }
.mb-foot .foot-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 1100px) { .mb-grid { grid-template-columns: 1fr; } .mb-menu { position: static; max-height: none; } .mbc-cycle { margin-left: 0; } }
.mb-foot .sum .bad { color: var(--warn); line-height: 1.5; }

.mb-row.blocked .mb-th, .mb-row.blocked h4, .mb-row.blocked p, .mb-row.blocked .tags { opacity: .45; }
.mb-row.blocked { background: transparent; border-style: dashed; }
.mb-allergy { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12.5px; color: var(--warn); }
.mb-allergy svg { flex: none; }
.icon-btn[disabled] { cursor: not-allowed; }

td.cid { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; color: var(--gold); white-space: nowrap; }
.cid-chip { display: inline-block; margin-right: 10px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; }
#clientRows td { padding-left: 14px; padding-right: 14px; }
#clientRows td:first-child, thead th:first-child { padding-left: 22px; }
#clientRows .cell-name small { white-space: nowrap; }
#lq { min-width: 280px; }

#listStats .stat small { display: block; line-height: 1.45; }
#listStats .stat .stat-who { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--text); font-size: 12.5px; }

.stat-btn { display: block; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.stat-btn:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.stat-btn.active { border-color: var(--gold); background: var(--gold-soft); }
.stat-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.showing { min-height: 22px; margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
.showing b { color: var(--text); font-weight: 500; }
.link-btn { margin-left: 8px; border: 0; background: none; color: var(--gold); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.showing:empty { display: none; }

.stat-btn { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; height: 100%; }

#listView .toolbar { align-items: center; }
#listView .toolbar .input { height: 44px; padding-top: 0; padding-bottom: 0; }
.fpills { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fpill { height: 44px; padding: 0 20px; border: 1px solid var(--border-strong); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.fpill:hover { border-color: var(--gold); color: var(--gold); }
.fpill.active { background: var(--gold); border-color: var(--gold); color: #0A0A0A; font-weight: 500; }
.fpill.active { color: #fff; }
html[data-theme="dark"] .fpill.active { color: #0A0A0A; }

.pub-sum { margin: 4px 0 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
.pub-sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.pub-sum > div:last-child { border-bottom: 0; }
.pub-sum span { color: var(--muted); }
.pub-sum b { font-weight: 500; text-align: right; }
#rows td { padding-left: 14px; padding-right: 14px; }
#rows td:first-child, #rows + * { padding-left: 22px; }
#rows .cell-name small { white-space: nowrap; }
#lq { min-width: 280px; }

.toolbar .toolbar-btn { margin-left: auto; height: 44px; padding-top: 0; padding-bottom: 0; }

/* invite / add-client */
.inv-sum { margin: 4px 0 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
.inv-sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.inv-sum > div:last-child { border-bottom: 0; }
.inv-sum span { color: var(--muted); }
.inv-sum b { font-weight: 500; text-align: right; }
.inv-err { color: var(--warn); font-size: 13px; margin: -6px 0 14px; }

.modal.modal-lg { max-width: 680px; }
.ac-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; margin: 0 0 26px; }
.ac-steps li { display: flex; flex-direction: column; gap: 12px; }
.st-top { display: flex; align-items: center; gap: 12px; }
.ac-steps i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; font-style: normal; font-size: 13px; color: var(--muted); transition: all .25s; }
.st-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.st-txt b { font-weight: 500; font-size: 14px; color: var(--muted); }
.st-txt small { font-size: 11.5px; color: var(--muted); opacity: .8; }
.st-bar { display: block; height: 3px; border-radius: 999px; background: var(--border-strong); position: relative; overflow: hidden; }
.st-bar::after { content: ''; position: absolute; inset: 0; width: 0; background: var(--gold); border-radius: 999px; transition: width .35s ease; }
.ac-steps li.on i { background: var(--gold); border-color: var(--gold); color: #0A0A0A; box-shadow: 0 0 0 4px var(--gold-soft); }
.ac-steps li.on .st-txt b { color: var(--text); }
.ac-steps li.on .st-bar::after { width: 50%; }
.ac-steps li.done i { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.ac-steps li.done .st-txt b { color: var(--text); }
.ac-steps li.done .st-bar::after { width: 100%; }
html[data-theme="light"] .ac-steps li.on i { color: #fff; }
@media (max-width: 640px) { .st-txt small { display: none; } .ac-steps { gap: 8px; } }
.ac-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.ac-grid .ac-wide { grid-column: 1 / -1; }
.ac-grid .field { margin-bottom: 16px; }
.chip-set { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-check { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 14px; cursor: pointer; }
.ac-how { margin: 0 0 18px; padding-left: 20px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.ac-how b { color: var(--text); font-weight: 500; }
.ac-lbl { display: block; margin-bottom: 8px; color: var(--muted); }
.link-box { display: flex; gap: 10px; align-items: center; }
.link-box .input { flex: 1; min-width: 0; font-size: 13px; padding: 11px 16px; }
@media (max-width: 640px) { .ac-grid { grid-template-columns: 1fr; } }
.modal-actions.between { justify-content: space-between; }
.link-box { align-items: stretch; }
.link-box .btn { height: auto; align-self: stretch; padding-top: 0; padding-bottom: 0; }
.modal b, .modal strong, .auth-card b, .auth-card strong { font-weight: 500; }

.field.bad .input, .field.bad .select { border-color: var(--warn); }
.f-err { color: var(--warn); font-size: 12.5px; }
.modal-actions { flex-wrap: wrap; align-items: center; }
.modal-actions .btn { flex: 0 0 auto; width: auto; white-space: nowrap; }
.modal-back.modal-top { z-index: 110; }

.toolbar .toolbar-btn { text-transform: none; letter-spacing: .02em; font-size: 14px; font-weight: 500; gap: 10px; padding-left: 24px; padding-right: 26px; }
.toolbar .toolbar-btn .fa-plus { font-size: 13px; }

.prop-list { margin: 0 0 22px; padding-left: 20px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

.tag-blue { color: #7aa6d9; border-color: rgba(122,166,217,.45); background: rgba(122,166,217,.1); }
html[data-theme="light"] .tag-blue { color: #3d6ea6; border-color: rgba(61,110,166,.4); background: rgba(61,110,166,.08); }
.fp-n { margin-left: 4px; font-size: 12px; opacity: .65; }
.fpill.active .fp-n { opacity: .8; }
.toolbar .fpills { margin-left: auto; }
.toolbar .fpills + .toolbar-btn { margin-left: 0; }
.path-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.path { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 16px 16px 18px; border: 1px solid var(--border-strong); border-radius: 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.path:hover { border-color: var(--gold-line); }
.path.on { border-color: var(--gold); background: var(--gold-soft); }
.path input { position: absolute; opacity: 0; pointer-events: none; }
.path i { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--gold); font-size: 15px; }
.path span { display: flex; flex-direction: column; gap: 4px; }
.path b { font-weight: 500; font-size: 14.5px; }
.path small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
@media (max-width: 640px) { .path-cards { grid-template-columns: 1fr; } }

.dish-table td { vertical-align: middle; }
.dish-table td.dt-img { width: 84px; padding-right: 0; }
.dish-table .mb-th { width: 64px; height: 64px; }
.dt-name { min-width: 230px; }
.dt-name b { display: block; font-family: var(--font-sans); font-weight: 500; font-size: 15px; letter-spacing: -0.03em; }
.dt-name small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.4; max-width: 340px; }
.dish-table .tags { display: flex; gap: 6px; flex-wrap: wrap; max-width: 230px; }
.dt-macros { white-space: nowrap; color: var(--muted); font-size: 13px; }
.dt-price { font-family: var(--font-serif); font-size: 20px; letter-spacing: -0.07em; white-space: nowrap; }
.dish-table td { padding-top: 12px; padding-bottom: 12px; }
.dish-table .toggle { display: block; }

.dt-act { white-space: nowrap; width: 96px; }
.act-btn { width: 36px; height: 36px; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; transition: all .2s; }
.act-btn:hover { border-color: var(--gold-line); color: var(--gold); background: var(--gold-soft); }
.act-btn.act-del:hover { border-color: rgba(217,130,107,.5); color: var(--warn); background: rgba(217,130,107,.1); }
.ph-row { display: flex; align-items: center; gap: 14px; }
.ph-prev { width: 64px; height: 64px; }

/* popup heading + close */
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 6px; }
.modal-head h2 { margin: 0; }
.modal-x { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.modal-x:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.ph-row { gap: 18px; }
.ph-prev { width: 96px; height: 96px; flex: none; }
.ph-help { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ph-help small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.field.bad .ph-prev { border: 1px solid var(--warn); }

.mb-th .fa-camera { color: var(--gold); font-size: 22px; }
.ph-prev .fa-camera { font-size: 30px; }

/* long popups: heading and action bar stay put, the middle scrolls */
.modal.modal-lg { padding: 0; }
.modal.modal-lg > * { margin-left: 32px; margin-right: 32px; }
.modal.modal-lg > .ac-steps { margin-top: 28px; }
.modal.modal-lg > .modal-head { position: sticky; top: 0; z-index: 3; margin: 0; padding: 26px 32px 10px; background: var(--surface); }
.modal.modal-lg > .ac-steps + .modal-head { padding-top: 4px; }
.modal.modal-lg > .modal-actions { position: sticky; bottom: 0; z-index: 3; margin: 14px 0 0; padding: 16px 32px 22px; background: var(--surface); border-top: 1px solid var(--border); }
.modal.modal-lg > .modal-actions.between { justify-content: space-between; }
.modal.modal-lg > :last-child:not(.modal-actions) { margin-bottom: 28px; }

/* heading + intro text live together in one header block */
.modal-head { display: block; margin: 8px 0 20px; }
.modal-head .mh-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal-head .mh-row h2 { margin: 0; }
.modal-head > p { margin: 8px 0 0; color: var(--muted); }
.modal.modal-lg > .modal-head { margin: 0; padding: 26px 32px 16px; border-bottom: 1px solid var(--border); }
.modal.modal-lg > .ac-steps + .modal-head { padding-top: 4px; }
.modal.modal-lg > .modal-head + * { margin-top: 20px; }
.modal-head > p { margin-top: -2px; line-height: 1.4; }

/* stepper sits inside the sticky header, under the heading */
.modal-head .ac-steps { margin: 18px 0 0; }
.modal.modal-lg > .modal-head { padding-bottom: 18px; }

/* dish thumbnails: the plate itself is the circle, centred and filling the space */
.mb-th { background: transparent; overflow: visible; }
.mb-th img { width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center; filter: drop-shadow(0 3px 5px rgba(0,0,0,.22)); }
.mb-th:has(.fa-camera) { background: var(--surface-2); border-radius: 50%; }
.ph-prev:not(:has(.fa-camera)) { background: transparent; }
.modal-head > p { padding-right: 56px; }
.modal:not(.modal-lg) .modal-head > p { margin-top: 14px; line-height: 1.5; }
.modal:not(.modal-lg) .modal-head > p { margin-top: 6px; }

.use-banner { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--gold-line); border-radius: 16px; background: var(--gold-soft); }
.use-banner > i { flex: none; margin-top: 2px; color: var(--gold); font-size: 16px; }
.use-banner b { display: block; font-weight: 500; font-size: 14px; }
.use-banner small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.use-banner.none { background: transparent; border-color: var(--border); }
.ub-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ub-last { margin-top: 8px !important; }
.ub-impact { margin: 14px 0 6px; font-size: 13.5px; line-height: 1.5; }
.ub-impact b { color: var(--text); font-weight: 500; }
.ac-check { align-items: flex-start; }
.ac-check input { flex: none; margin: 3px 0 0; }
.ac-check span { line-height: 1.5; }

/* themed checkbox */
.ac-check input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg) center / 14px no-repeat; cursor: pointer; transition: background-color .15s, border-color .15s; margin: 2px 0 0; }
.ac-check input[type="checkbox"]:hover { border-color: var(--gold); }
.ac-check input[type="checkbox"]:checked { background-color: var(--gold); border-color: var(--gold); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>"); }
html[data-theme="light"] .ac-check input[type="checkbox"]:checked { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>"); }
.ac-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* every popup: header and action bar are full-width bands with a line, content has side padding */
.modal { padding: 0; }
#modalBody { display: contents; }
.modal > :not(.modal-head):not(.modal-actions):not(#modalBody),
.modal > #modalBody > :not(.modal-head):not(.modal-actions) { margin-left: 32px; margin-right: 32px; }
.modal .modal-head { position: sticky; top: 0; z-index: 3; margin: 0; padding: 26px 32px 16px; background: var(--surface); border-bottom: 1px solid var(--border); border-radius: inherit; }
.modal .modal-head + * { margin-top: 20px; }
.modal .modal-actions { position: sticky; bottom: 0; z-index: 3; margin: 14px 0 0; padding: 16px 32px 22px; background: var(--surface); border-top: 1px solid var(--border); }
.modal .modal-actions.between { justify-content: space-between; }
.modal > :last-child:not(.modal-actions), .modal > #modalBody > :last-child:not(.modal-actions) { margin-bottom: 24px; }
.modal-head .ac-steps { margin: 18px 0 0; }
.modal form:has(> .modal-actions) { margin-left: 0 !important; margin-right: 0 !important; }
.modal form:has(> .modal-actions) > :not(.modal-actions) { margin-left: 32px; margin-right: 32px; }
.modal .modal-head { border-radius: 0; }

.dish-table tr.is-off td:not(.dt-act):not(:has(.toggle)) { opacity: .5; }
.off-warn { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 6px; padding: 14px 16px; border: 1px solid rgba(217,130,107,.5); border-radius: 16px; background: rgba(217,130,107,.08); }
.off-warn > i { flex: none; margin-top: 2px; color: var(--warn); }
.off-warn b { display: block; font-weight: 500; font-size: 14px; }
.off-warn small { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.off-warn a { color: var(--gold); text-underline-offset: 3px; }
.mb-allergy.off { color: var(--muted); }
.mb-row.blocked .mb-allergy { opacity: 1; }

.notice-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; padding: 16px 20px; border: 1px solid var(--gold-line); border-radius: 20px; background: var(--gold-soft); }
.notice-card b { font-weight: 500; }
.notice-card p { color: var(--muted); font-size: 13.5px; margin-top: 3px; line-height: 1.5; }

.issue-card { margin: 0 0 18px; padding: 20px 22px; border: 1px solid rgba(217,130,107,.55); border-radius: 20px; background: rgba(217,130,107,.08); }
.issue-card.done { border-color: var(--gold-line); background: var(--gold-soft); }
.ic-body b { display: block; font-weight: 500; font-size: 15px; }
.ic-body p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.ic-body p strong { color: var(--text); font-weight: 500; }
.ic-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ic-pick { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.ic-pick[hidden] { display: none; }
.ic-pick .select { flex: 1; min-width: 220px; }

.off-client { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(217,130,107,.3); }
.off-client > span { font-size: 13.5px; }
.off-client .select { padding: 9px 14px; font-size: 13.5px; }
.off-client small { margin-top: 0 !important; }

.modal-back.modal-top2 { z-index: 120; }
.off-warn .off-line { color: var(--text); margin-top: 8px; }
.off-warn .off-msg { margin-top: 14px; }
.off-warn .off-msg i { margin-right: 8px; }
.ic-note { font-size: 12.5px !important; }
.bubble, .m-bub, .chat-body .bubble { white-space: pre-wrap; }

.off-hint { margin-top: 10px !important; color: var(--warn) !important; }
.btn[disabled] { cursor: not-allowed; }
.ic-pick { align-items: stretch; }
.ic-pick .btn { align-self: stretch; padding-top: 0; padding-bottom: 0; }
/* text-only popups: heading block flows straight into the button bar, so just one line (above the buttons) */
.modal .modal-head:has(+ .modal-actions) { border-bottom: 0; padding-bottom: 8px; }
.modal .modal-head + .modal-actions { margin-top: 0; }
.modal .modal-head:has(+ .modal-actions) { padding-bottom: 26px; }

#cards .stat small { display: block; line-height: 1.45; }
td.cid { white-space: nowrap; }
#q { min-width: 280px; }
/* expanded accordion: the clicked row is highlighted, the content below stays plain */
.acc-row.open td { background: var(--gold-soft); }
.acc-detail td { background: transparent; }

/* pills inside accordion rows keep the normal tag size */
.mini-row .tag, .acc-list .tag { font-size: 10px !important; letter-spacing: .12em !important; padding: 4px 9px !important; margin-left: 8px; vertical-align: middle; }
.mini-row span.tag-warn { color: var(--warn); }
.pend-note { display: block; margin-top: 4px; font-size: 12.5px; }
.mini-row span.tag-ok { color: var(--ok); }

/* "Total paid" band */
.acc-list .mini-row.total-row { margin-top: 12px; padding: 16px 22px; border: 0; border-radius: 14px; background: #0A0A0A; color: #F7F5F0; align-items: center; }
.acc-list .mini-row.total-row b { font-weight: 500; }
.acc-list .mini-row.total-row span:first-child { color: rgba(247,245,240,.75); }
.acc-list .mini-row.total-row span:first-child b { color: #F7F5F0; }
.acc-list .mini-row.total-row span:last-child { color: var(--gold); font-family: var(--font-sans); font-size: 20px; font-weight: 500; letter-spacing: 0; }
html[data-theme="dark"] .acc-list .mini-row.total-row { background: #000; border: 1px solid var(--border-strong); }
/* "Total paid" band: same soft tone as the highlighted row */
.acc-list .mini-row.total-row, html[data-theme="dark"] .acc-list .mini-row.total-row { background: var(--gold-soft); color: var(--text); border: 0; }
.acc-list .mini-row.total-row span:first-child { color: var(--muted); }
.acc-list .mini-row.total-row span:first-child b { color: var(--text); }

.od-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 6px; }
.od-lbl { display: block; margin-bottom: 8px; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.od-box { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; }
.od-box b { font-weight: 500; }
.prep-day { padding: 18px 22px 8px; }
.prep-day + .prep-day { border-top: 1px solid var(--border); }
.prep-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.prep-head b { font-family: var(--font-serif); font-weight: 400; font-size: 20px; letter-spacing: -0.07em; }
.prep-day td, .prep-day th { padding-left: 0; }
@media (max-width: 860px) { .od-grid { grid-template-columns: 1fr; } }
@media print { .side, .page-head, .stats, .toolbar, .showing, .panel:not(#prepPanel), #print { display: none !important; } .main { padding: 0; } #prepPanel { border: 0; } body { background: #fff; color: #000; } }

.od-grid { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
.od-box { gap: 6px; }
.tl { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 10px 0 4px; padding: 0; }
.tl li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 12.5px; color: var(--muted); }
.tl li::before { content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--border-strong); }
.tl li:first-child::before { display: none; }
.tl li.done::before, .tl li.now::before { background: var(--gold); }
.tl i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface); font-style: normal; font-size: 13px; color: var(--muted); }
.tl li.done i { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.tl li.now i { background: var(--gold); border-color: var(--gold); color: #0A0A0A; box-shadow: 0 0 0 5px var(--gold-soft); }
html[data-theme="light"] .tl li.now i { color: #fff; }
.tl li.now, .tl li.done { color: var(--text); }
.tl li.now span { font-weight: 500; }
.od-act { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
@media (max-width: 640px) { .tl span { font-size: 11px; } }
.od-grid + .od-lbl { margin-top: 24px; }
#detailView > .od-grid, #detailView > .notice-card { margin-top: 18px; }
#detailView > .od-lbl { margin-top: 24px; }

/* right-hand slide-in drawer */
.sd-back { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
html[data-theme="light"] .sd-back { background: rgba(10,10,10,.4); }
.sd-back.show { opacity: 1; pointer-events: auto; }
.sd { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(680px, 100vw); display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--border); box-shadow: -24px 0 60px rgba(0,0,0,.3); transform: translateX(100%); transition: transform .35s cubic-bezier(.22,.8,.3,1); }
.sd.show { transform: translateX(0); }
.sd-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--border); }
.sd-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sd-id h2 { font-size: 24px; line-height: 1.1; }
.sd-id p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.sd-body { flex: 1; overflow: auto; padding: 22px 28px 40px; }
.sd-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.sd .od-grid { grid-template-columns: 1fr; gap: 16px; }
.sd .notice-card { margin-top: 16px; }
.sd .od-lbl:not(.od-box .od-lbl) { margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .sd, .sd-back { transition: none; } }

.sd-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sd-name .tag { margin-top: 3px; }
.sd-tags { display: none; }
.od-acc { margin-top: 14px; border: 1px solid var(--border); border-radius: 16px; background: transparent; }
.od-acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; cursor: pointer; }
.od-acc > summary::-webkit-details-marker { display: none; }
.od-acc > summary b { display: block; font-weight: 500; font-size: 15px; }
.od-acc > summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.od-acc > summary .acc-chev { flex: none; color: var(--muted); transition: transform .25s ease; }
.od-acc[open] > summary .acc-chev { transform: rotate(180deg); }
.od-acc[open] > summary { border-bottom: 1px solid var(--border); }
.od-acc-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.od-acc-body .acc-list .mini-row:last-child { border-bottom: 0; }
/* progress line must not show through the completed circle */
.tl li.done i { background: linear-gradient(var(--gold-soft), var(--gold-soft)), var(--surface); }
.tl li::before { z-index: 0; }

/* staff sign in */
.role-cards { display: grid; gap: 10px; margin-bottom: 20px; }
.role { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.role:hover { border-color: var(--gold-line); }
.role.on { border-color: var(--gold); background: var(--gold-soft); }
.role input { position: absolute; opacity: 0; pointer-events: none; }
.rl-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-size: 16px; }
.role b { display: block; font-weight: 500; font-size: 15px; }
.role small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }

/* kitchen (staff) screens */
body.kitchen { background: var(--bg); color: var(--text); font-family: var(--font-sans); min-height: 100vh; }
.k-bar { display: flex; align-items: center; gap: 18px; padding: 14px 28px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.k-bar .side-logo { width: 96px; margin: 0; }
.k-who { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.k-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.k-main { max-width: 1280px; margin: 0 auto; padding: 28px 28px 80px; }
.k-head h1 { font-size: 34px; line-height: 1.1; }
.k-head p { color: var(--muted); margin-top: 6px; }
.k-info { margin-top: 18px; }
.k-days { margin: 18px 0 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 18px; }
.kb { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.kb.cooking { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.kb.cooked { opacity: .72; }
.kb-top { display: flex; align-items: flex-start; gap: 14px; }
.kb-img { width: 72px; height: 72px; flex: none; }
.kb-id { flex: 1; min-width: 0; }
.kb-id h3 { font-family: var(--font-serif); font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -0.07em; margin-bottom: 6px; }
.kb-id .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.kb-qty { text-align: right; flex: none; }
.kb-qty b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 48px; line-height: 1; color: var(--gold); letter-spacing: -0.07em; }
.kb-qty small { color: var(--muted); font-size: 12.5px; }
.kb-hold { padding: 10px 14px; border-radius: 14px; background: rgba(217,130,107,.1); border: 1px solid rgba(217,130,107,.45); color: var(--warn); font-size: 13px; line-height: 1.45; }
.kb-hold.note { background: var(--gold-soft); border-color: var(--gold-line); color: var(--text); }
.kb-who summary { cursor: pointer; font-size: 13.5px; color: var(--muted); padding: 4px 0; }
.kb-who[open] summary { margin-bottom: 6px; }
.kb-alg { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.kb-alg .tag { margin-right: 4px; }
.kb-act { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.k-btn { flex: 1; min-height: 52px; font-size: 13px; }
.k-done { flex: 1; font-size: 15px; color: var(--ok); }
.k-wait { flex-basis: 100%; margin: 0; font-size: 12.5px; }
@media (max-width: 640px) { .k-bar { padding: 12px 16px; } .k-main { padding: 20px 16px 60px; } .k-grid { grid-template-columns: 1fr; } }

.tl { grid-template-columns: repeat(5, 1fr); }
.tl li { font-size: 12px; }

/* chef board */
.k-sum { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.k-sum b { color: var(--text); font-weight: 500; }
.board { display: grid; grid-template-columns: repeat(3, minmax(300px, 1fr)); gap: 16px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.bcol { border: 1px solid var(--border); border-radius: 24px; background: var(--surface-2); min-height: 280px; transition: border-color .2s, background .2s; }
.bcol.drop { border-color: var(--gold); background: var(--gold-soft); }
.bcol-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 70px; background: inherit; border-radius: 24px 24px 0 0; z-index: 2; }
.bcol-head b { display: block; font-weight: 500; font-size: 16px; }
.bcol-head small { color: var(--muted); font-size: 12.5px; }
.bcol-body { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.bcol-empty { color: var(--muted); font-size: 13.5px; text-align: center; padding: 28px 0; margin: 0; }
.kb.kc { padding: 16px; gap: 12px; border-radius: 20px; cursor: grab; }
.kb.kc .kb-img { width: 56px; height: 56px; }
.kb.kc .kb-id h3 { font-size: 18px; }
.kb.kc .kb-qty b { font-size: 38px; }
.kb.kc.dragging { opacity: .45; }
.kb.kc.cooked { opacity: .85; }
.kb.kc .k-btn { min-height: 46px; }
@media (max-width: 1000px) { .board { grid-template-columns: repeat(3, 320px); } }
.bcol-head { position: static; }

.kb.kc .k-btn { min-height: 44px; padding-top: 0; padding-bottom: 0; }
.kb.kc .k-btn.k-side { flex: 0 0 auto; padding-left: 22px; padding-right: 22px; }
.kb.kc .k-btn { font-size: 11px; letter-spacing: .1em; }

.kb-date { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--gold-soft); font-size: 13.5px; }
.kb-date b { font-weight: 500; }
.kb-date { justify-content: space-between; }

.k-bar2 { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.k-bar2 .k-days { margin: 18px 0 20px; }
.k-empty { padding: 40px 24px; text-align: center; border: 1px dashed var(--border-strong); border-radius: 24px; }
.k-empty b { display: block; font-weight: 500; font-size: 18px; }
.k-empty p { color: var(--muted); margin: 8px 0 16px; }
.print-only { display: none; }
@media print {
  body.kitchen { background: #fff; color: #000; }
  body.kitchen > *:not(main), .k-bar, .k-head, .k-info, .k-bar2, #kStats, #kList, .toast { display: none !important; }
  .k-main { padding: 0; max-width: none; }
  .print-only { display: block !important; font-family: var(--font-sans); color: #000; }
  .print-only h1 { font-family: var(--font-serif); font-weight: 400; font-size: 28px; margin: 0 0 4px; }
  .pr-sub { color: #555; margin: 0 0 16px; font-size: 13px; }
  .print-only table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .print-only th { text-align: left; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #555; padding: 8px 8px; border-bottom: 2px solid #000; }
  .print-only td { padding: 10px 8px; border-bottom: 1px solid #ccc; vertical-align: top; }
  .pr-qty { font-size: 20px; font-weight: 600; }
  .pr-box { width: 26px; } .pr-box::before { content: ''; display: block; width: 16px; height: 16px; border: 1.5px solid #000; border-radius: 3px; }
}
.print-only b, .print-only strong { font-weight: 500; }
.pr-qty { font-weight: 500 !important; }
@media print { .print-only b, .print-only strong, .pr-qty { font-weight: 500 !important; } }
.k-rule { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; max-width: 760px; }

/* staff top bar */
.k-bar { padding: 0; }
.k-bar-in { max-width: 1280px; margin: 0 auto; padding: 14px 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.k-portal { font-family: var(--font-serif); font-size: 20px; letter-spacing: -0.07em; }
.k-logo { display: block; }
.k-logo img { display: block; width: 104px; }
html[data-theme="light"] .k-logo img { filter: invert(1) hue-rotate(180deg); }
.k-prof-wrap { position: relative; justify-self: end; }
.k-prof { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--border-strong); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s; }
.k-prof:hover, .k-prof[aria-expanded="true"] { border-color: var(--gold); }
.k-chev { color: var(--muted); }
.k-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); background: var(--gold-soft); color: var(--gold); font-size: 15px; }
.k-av.lg { width: 46px; height: 46px; font-size: 17px; flex: none; }
.k-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 280px; padding: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.3); z-index: 30; }
.k-menu[hidden] { display: none; }
.k-menu-top { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; border-bottom: 1px solid var(--border); }
.k-menu-top b { display: block; font-weight: 500; }
.k-menu-top small { color: var(--muted); font-size: 12.5px; }
.k-menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.k-menu-out { width: 100%; margin-top: 6px; padding: 12px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.k-menu-out:hover { background: var(--surface-2); color: var(--warn); }
@media (max-width: 640px) { .k-bar-in { padding: 12px 16px; } .k-logo img { width: 84px; } .k-portal { font-size: 16px; } }
html[data-theme="light"] .k-logo img { content: url(../assets/images/logo-on-light.svg); filter: none; }
.k-bar { display: block; gap: 0; }
.k-bar-in { width: 100%; box-sizing: border-box; }

.tm-who { display: flex; align-items: center; gap: 12px; }
.tm-who .mbc-av { width: 42px; height: 42px; font-size: 15px; flex: none; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rp-group { display: flex; flex-direction: column; gap: 10px; }
.rp-group .path { padding: 12px 14px; }
.rp-can { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.pin-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) { .role-pick { grid-template-columns: 1fr; } }

/* settings hub */
.set-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; }
.set-card { display: flex; align-items: center; gap: 18px; padding: 24px; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; cursor: pointer; transition: border-color .2s, transform .2s; }
.set-card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.set-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sc-ico { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); background: var(--gold-soft); color: var(--gold); font-size: 19px; }
.sc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sc-txt b { font-family: var(--font-serif); font-weight: 400; font-size: 22px; letter-spacing: -0.07em; }
.sc-txt small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.sc-txt em { font-style: normal; color: var(--gold); font-size: 12.5px; margin-top: 2px; }
.sc-go { flex: none; color: var(--muted); }
.set-sec { margin-bottom: 8px; }
.set-sec h3 { font-family: var(--font-sans); font-size: 10px; font-weight: 400; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin: 22px 0 4px; }
.sd .set-row { padding: 16px 0; border-bottom: 1px solid var(--border); }
.sd .set-row:last-of-type { border-bottom: 0; }
.set-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; }
.sd .inline-input { width: auto; min-width: 150px; }
@media (max-width: 640px) { .set-cards { grid-template-columns: 1fr; } }
.set-card { position: relative; flex-direction: column; align-items: flex-start; gap: 18px; }
.set-card .sc-txt { width: 100%; }
.set-card .sc-go { position: absolute; top: 24px; right: 24px; }
.role-pick { grid-template-columns: 1fr; gap: 10px; }

.role-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.role-two > div:first-child .od-lbl { display: block; margin-bottom: 10px; }
.can-card { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface-2); }
.can-card .od-lbl { margin: 0; }
.can-card b { font-family: var(--font-serif); font-weight: 400; font-size: 22px; letter-spacing: -0.07em; }
.can-card .rp-can { color: var(--text); }
@media (max-width: 760px) { .role-two { grid-template-columns: 1fr; } }

.tm-st { display: flex; align-items: center; gap: 12px; }
.tm-on { color: var(--ok); font-size: 13px; }
.tm-off { color: var(--muted); font-size: 13px; }
.toggle input:disabled { cursor: not-allowed; }
.toggle:has(input:disabled) { opacity: .55; }

/* admin messages inbox */
.main.am-main { padding: 22px 28px 22px; }
.am { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 0; height: calc(100vh - 44px); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--surface); }
.am .panel { border: 0; border-radius: 0; margin: 0; background: transparent; }
.am-list { display: flex; flex-direction: column; border-right: 1px solid var(--border) !important; min-height: 0; }
.am-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 14px; }
.am-top h1 { font-size: 28px; line-height: 1.1; }
.am-top p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.am-tools { display: flex; align-items: center; gap: 10px; }
.am-ico { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); display: grid; place-items: center; cursor: pointer; text-decoration: none; font-size: 15px; transition: border-color .2s, color .2s; }
.am-ico:hover { border-color: var(--gold); color: var(--gold); }
.am-new { background: var(--gold); border-color: var(--gold); color: #0A0A0A; }
html[data-theme="light"] .am-new { color: #fff; }
.am-search { padding: 0 22px 12px; }
.am-search .input { padding: 10px 14px; font-size: 14px; }
.am-search[hidden] { display: none; }
.am-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.am-tab { padding: 14px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 14.5px; cursor: pointer; }
.am-tab.on { color: var(--gold); border-bottom-color: var(--gold); }
.am-items { flex: 1; overflow: auto; }
.am-item { display: flex; gap: 14px; align-items: center; width: 100%; padding: 16px 22px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: background .15s; }
.am-item:hover { background: var(--surface-2); }
.am-item.on { background: var(--gold-soft); }
.am-av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); background: var(--gold-soft); color: var(--gold); font-family: var(--font-serif); font-size: 16px; }
.am-av.lg { width: 52px; height: 52px; }
.am-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.am-row1, .am-row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.am-row1 b { font-weight: 500; font-size: 15px; }
.am-row1 small { color: var(--muted); font-size: 12px; flex: none; }
.am-prev { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-prev.bold { color: var(--text); font-weight: 500; }
.am-badge { flex: none; min-width: 24px; padding: 2px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border-strong); font-size: 12px; text-align: center; }
.am-tick { flex: none; color: var(--muted); font-size: 13px; }
.am-tick.seen { color: var(--gold); }
.am-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.am-head { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.am-hid { flex: 1; min-width: 0; }
.am-hid h2 { font-size: 22px; line-height: 1.1; }
.am-hid p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.am-head .k-menu { width: 220px; }
.am-body { flex: 1; overflow: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.am-m { display: flex; flex-direction: column; gap: 6px; max-width: 78%; }
.am-m.me { align-self: flex-end; align-items: flex-end; }
.am-mh { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; }
.am-mh b { font-weight: 500; }
.am-mh span { color: var(--muted); }
.am-bub { padding: 12px 18px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.am-m.me .am-bub { background: var(--gold); border-color: var(--gold); color: #fff; }
html[data-theme="dark"] .am-m.me .am-bub { color: #0A0A0A; }
.am-m.me .vm-play { background: #fff; color: #8f7233; }
.am-m.them .vm-play { background: var(--gold); color: #0A0A0A; }
.am-seen { font-size: 12.5px; color: var(--muted); }
.am-seen.on { color: var(--gold); }
.am-comp { margin: 0 20px 20px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--bg); }
.am-comp:focus-within { border-color: var(--gold); }
.am-comp .cbar { position: relative; display: flex; align-items: center; gap: 10px; }
.am-comp .emoji-pop { right: 100px; }
.am-picks { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; margin: 4px 0 18px; }
.am-pick { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 16px; background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.am-pick:hover { border-color: var(--gold); }
.am-pick b { display: block; font-weight: 500; }
.am-pick small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) { .am { grid-template-columns: 1fr; height: auto; } .am-list { max-height: 360px; } .am-chat { height: 70vh; } }
/* messages: conversations and chat as two separate boxes */
.am { gap: 20px; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.am .panel { border: 1px solid var(--border) !important; border-radius: 24px; background: var(--surface); overflow: hidden; }
.am-list { border-right: 1px solid var(--border) !important; }
.am-m { align-items: flex-start; }
.am-m.me { align-items: flex-end; }
.am-bub { width: fit-content; max-width: 100%; }
.am-bub .vm { width: 300px; max-width: 100%; min-width: 0; }
.am-bub .att-img { max-width: 280px; }
.am-nm { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.am-nm .cid-chip { margin-top: 3px !important; }

/* admin chat uses the same message layout as the client portal */
.am-body { gap: 16px; }
.am-body .m { max-width: 82%; }
.am-body .m.them .m-bub { background: var(--surface-2); }
.am-body .m-time .am-seen { font-size: inherit; }
.am-body .m-time .am-seen i { margin-right: 2px; }
.m .msg-av { align-self: end; }

/* inquiries pipeline */
.view-seg { display: inline-flex; padding: 4px; border: 1px solid var(--border-strong); border-radius: 999px; }
.view-seg button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; }
.view-seg button.on { background: var(--gold); color: #0A0A0A; }
html[data-theme="light"] .view-seg button.on { color: #fff; }
.toolbar .view-seg { margin-left: 0; }
.ib-board { display: grid; grid-template-columns: repeat(5, minmax(250px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.ib-col { border: 1px solid var(--border); border-radius: 22px; background: var(--surface-2); min-height: 200px; }
.ib-col > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ib-col > header b { display: block; font-weight: 500; font-size: 15px; }
.ib-col > header small { color: var(--muted); font-size: 12px; }
.ib-body { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.ib-empty { margin: 0; padding: 26px 0; text-align: center; color: var(--muted); font-size: 13.5px; }
.ib-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); cursor: pointer; transition: border-color .2s, transform .2s; }
.ib-card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.ib-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ib-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ib-top small { color: var(--muted); font-size: 11.5px; }
.ib-card b { font-weight: 500; font-size: 16px; margin-top: 4px; }
.ib-sub, .ib-sum { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.ib-sum { color: var(--text); }
.ib-next { margin: 6px 0 0; padding-top: 8px; border-top: 1px dashed var(--border); color: var(--gold); font-size: 12.5px; line-height: 1.4; }
.iq-next { padding: 16px 18px; border: 1px solid var(--gold-line); border-radius: 18px; background: var(--gold-soft); }
.iq-next p { margin: 6px 0 0; font-size: 15px; }
.iq-client { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 18px; }
.iq-sec { margin-top: 24px; }
.iq-sec h3 { font-family: var(--font-sans); font-size: 10px; font-weight: 400; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.iq-log { display: flex; flex-direction: column; gap: 14px; }
.iq-l { display: flex; gap: 12px; align-items: flex-start; }
.iq-l i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-top: 7px; }
.iq-l span { display: block; font-size: 14px; line-height: 1.45; }
.iq-l small { color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) { .ib-board { grid-template-columns: repeat(5, 270px); } }
.ib-board { grid-template-columns: repeat(5, minmax(205px, 1fr)); }
.toolbar .fpills { flex-wrap: wrap; }

.iq-card { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.iq-r { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.iq-r:last-child { border-bottom: 0; }
.iq-r span { color: var(--muted); font-size: 13px; }
.iq-r b { font-weight: 400; font-size: 14.5px; line-height: 1.5; word-break: break-word; }
.iq-r a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--gold-line); }
.iq-r a:hover { color: var(--gold); }

.iq-nda { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--border-strong); border-radius: 18px; }
.iq-nda-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.iq-nda p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.att-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.att-row .btn i { margin-right: 8px; }
.att-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.field[hidden] { display: none; }

/* inquiry drawer: next-step and client cards */
.iq-next { padding: 22px; border: 1px solid var(--gold-line); border-radius: 22px; background: linear-gradient(160deg, var(--gold-soft), transparent 70%), var(--surface); }
.iq-n-top { display: flex; gap: 16px; align-items: flex-start; }
.iq-ico { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); background: var(--gold-soft); color: var(--gold); font-size: 18px; }
.iq-n-top h3 { font-family: var(--font-serif); font-weight: 400; font-size: 24px; line-height: 1.15; letter-spacing: -0.07em; margin: 6px 0 4px; }
.iq-n-top p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.iq-flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 18px; padding: 0; }
.iq-flow li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.iq-flow li::before { content: ''; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--border-strong); }
.iq-flow li:first-child::before { display: none; }
.iq-flow i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); }
.iq-flow li.done i { border-color: var(--gold); background: var(--gold); }
.iq-flow li.done::before, .iq-flow li.now::before { background: var(--gold); }
.iq-flow li.now i { border-color: var(--gold); background: var(--surface); box-shadow: 0 0 0 4px var(--gold-soft); }
.iq-flow li.now, .iq-flow li.done { color: var(--text); }
.iq-flow li.now span { font-weight: 500; }
.iq-flow.lost li { opacity: .5; }
.iq-acts { padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.iq-pri, .iq-sec2 { display: contents; }
.iq-acts .btn { flex: 1 1 140px; min-height: 46px; height: 46px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.iq-del { flex: 1 1 100%; text-align: center; margin-top: 2px; }
.iq-danger { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.iq-danger:hover { color: var(--warn); }
.iq-client { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 22px; }
.iq-cav { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); background: var(--gold-soft); color: var(--gold); font-size: 17px; }
.iq-cm { flex: 1; min-width: 0; }
.iq-cn { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.iq-cn b { font-weight: 400; font-size: 20px; letter-spacing: -0.07em; }
.iq-cm .muted { font-size: 13px; }
.iq-cs { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.iq-cs a { color: var(--gold); font-size: 13px; text-decoration: none; }
.iq-cs a:hover { text-decoration: underline; }
.iq-client { flex-direction: row !important; align-items: center !important; gap: 16px !important; }

.nda-list { display: flex; flex-direction: column; gap: 10px; }
.nda-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 18px; flex-wrap: wrap; }
.nda-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-size: 18px; }
.nda-meta { flex: 1; min-width: 180px; }
.nda-meta b { display: block; font-weight: 500; font-size: 15px; }
.nda-meta b .tag { margin-left: 8px; }
.nda-meta small { color: var(--muted); font-size: 12.5px; }
.nda-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nda-act label.btn { cursor: pointer; }

.est-box { border: 1px solid var(--gold-line); background: var(--gold-soft); border-radius: 16px; padding: 4px 0 10px; }
.est-box > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 16px; font-size: 14px; }
.est-box span { color: var(--muted); }
.est-box b { font-weight: 500; }
.est-box small { display: block; padding: 6px 16px 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.prop-price { margin-top: -8px; border-color: var(--gold-line); background: var(--gold-soft); }
.prop-fine { margin: -14px 0 20px; font-size: 12.5px; line-height: 1.5; }

.kb-info { margin-top: 14px; display: flex; flex-direction: column; }
.kb-info > div { padding: 12px 2px; border-top: 1px solid var(--border); }
.kb-info .od-lbl { display: block; margin: 0 0 4px; }
.kb-info p { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.45; }
.k-main .stats { margin-bottom: 0; }
.k-main .stats:empty { display: none; }
.k-main .k-bar2 .k-days { margin: 22px 0 20px; }

.kb:not(.kc) .kb-act { margin-top: 18px; flex-wrap: wrap; }
.kb:not(.kc) .kb-act .btn { height: 52px; min-height: 52px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-size: 13px; }
.kb:not(.kc) .kb-act .k-call, .kb:not(.kc) .kb-act .btn-sm { flex: 0 0 auto; }
.kb:not(.kc) .kb-act .k-btn { flex: 1 1 0; min-width: 0; }
.kb:not(.kc) .kb-act [data-dr].btn-ghost { flex: 1 1 100%; }
/* cook list print: every column the same size, only the dish name is a touch heavier */
.print-only td, .print-only td.pr-qty, .print-only .pr-qty { font-size: 13px !important; font-weight: 400 !important; line-height: 1.4; vertical-align: middle; }
.print-only td b { font-size: 13px; font-weight: 500 !important; }
.k-main .stats { margin-top: 26px; }
