/* ================= Polices (intégrées à l'appli) ================= */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jakarta'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/jakarta.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jakarta'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/jakarta-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ================= Couleurs : sombre par défaut (vert profond et laiton), clair en option ================= */
:root {
  --bg: #0c0f0e; --surface: #151a18; --surface-2: #1d2421; --text: #eef1ed; --muted: #95a09a; --line: #2a322e;
  --brand: #2db8bd; --brand-ink: #04282a; --gold: var(--brand); --accent: #e8874a;
  --ok: #4fca82; --ok-bg: #12291c; --warn: #eab54f; --warn-bg: #30260f; --bad: #ff7c6e; --bad-bg: #36191a; --info: #7fb0f0; --info-bg: #15233a;
  --radius: 3px; --r: 3px; --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 30px -14px rgba(0, 0, 0, .7); --ring: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent);
  --serif: 'Jakarta', 'Inter', system-ui, sans-serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f2ed; --surface: #ffffff; --surface-2: #eeebe4; --text: #181a19; --muted: #6d726f; --line: #dfdbd2;
  --brand: #2db8bd; --brand-ink: #04282a; --gold: var(--brand); --accent: #c2662d;
  --ok: #2f7d4f; --ok-bg: #e2f0e6; --warn: #956612; --warn-bg: #f7edd5; --bad: #a8322a; --bad-bg: #f7e1dd; --info: #2c5a8c; --info-bg: #e3ebf5;
  --shadow: 0 1px 2px rgba(40, 32, 20, .05), 0 10px 28px -12px rgba(40, 32, 20, .18); color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f4f2ed; --surface: #ffffff; --surface-2: #eeebe4; --text: #181a19; --muted: #6d726f; --line: #dfdbd2;
    --brand: #2db8bd; --brand-ink: #04282a; --gold: var(--brand); --accent: #c2662d;
    --ok: #2f7d4f; --ok-bg: #e2f0e6; --warn: #956612; --warn-bg: #f7edd5; --bad: #a8322a; --bad-bg: #f7e1dd; --info: #2c5a8c; --info-bg: #e3ebf5;
    --shadow: 0 1px 2px rgba(40, 32, 20, .05), 0 10px 28px -12px rgba(40, 32, 20, .18); color-scheme: light;
  }
}

/* ================= Base ================= */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15.5px/1.45 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; font-feature-settings: 'cv11', 'ss01'; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 1.85rem; margin: 0 0 14px; line-height: 1.15; }
h2 { font-size: 1.2rem; margin: 22px 0 10px; } h3 { font-size: 1.02rem; margin: 14px 0 6px; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--ring); }
::selection { background: color-mix(in srgb, var(--gold) 35%, transparent); }
.muted { color: var(--muted); } .small { font-size: .85rem; } .right { text-align: right; } .num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; } .stack > * + * { margin-top: 10px; }

/* ================= Barre du haut : bouton du menu + titre de l'écran ================= */
#topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top));
  background: #070908; color: #f1f3f2; border-bottom: 2px solid var(--brand); }
.pagetitle { flex: 1; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#topbar .brand { color: #9aa4a0; text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.brand-logo { height: 30px; max-width: 110px; object-fit: contain; background: #fff; border-radius: var(--r); padding: 2px; }
.startbtn { position: relative; width: 46px; height: 42px; min-height: 0; padding: 0; background: var(--brand); color: var(--brand-ink); border-radius: var(--r); box-shadow: none; }
.startbtn svg { width: 22px; height: 22px; transition: transform .25s; }
.startbtn:hover svg { transform: rotate(90deg); }
.start-dot { position: absolute; top: -6px; right: -6px; background: #ff5a4e; color: #fff; }
main { padding: 22px 18px; max-width: 1400px; margin: 0 auto; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
@media (max-width: 600px) {
  #topbar { padding: 6px 10px; gap: 10px; }
  #topbar .brand span { display: none; }
  main { padding: 14px 12px; }
  h1 { font-size: 1.5rem; }
}

/* ================= Boutons et champs ================= */
button, .btn { font: inherit; font-weight: 600; border: 1px solid transparent; border-radius: var(--r); padding: 10px 18px; min-height: 44px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--brand); color: var(--brand-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .08); transition: transform .06s, filter .15s, background .15s; }
button:hover:not(:disabled), .btn:hover { filter: brightness(1.08); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: var(--surface-2); color: var(--text); border-color: var(--line); box-shadow: none; }
button.ghost, .btn.ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
button.secondary:hover:not(:disabled), button.ghost:hover:not(:disabled) { filter: none; background: color-mix(in srgb, var(--surface-2) 70%, var(--line)); }
button.danger { background: var(--bad); color: #fff; }
button.ok { background: var(--ok); color: #fff; }
button.warn { background: var(--accent); color: #fff; }
button.small, .btn.small { min-height: 34px; padding: 4px 12px; font-size: .84rem; border-radius: var(--r); }
button.big { min-height: 60px; font-size: 1.08rem; padding: 14px 24px; border-radius: var(--r); }
input, select, textarea { font: inherit; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); min-height: 44px; max-width: 100%;
  transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--brand); }
input[type=search] { padding-left: 14px; }
label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; letter-spacing: .01em; }
.field { margin-bottom: 14px; }

/* ================= Blocs ================= */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(var(--min, 140px), 1fr)); }
/* Onglets façon « contrôle segmenté » */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); width: fit-content; max-width: 100%; scrollbar-width: none; }
.tabs button { background: transparent; color: var(--muted); white-space: nowrap; box-shadow: none; min-height: 38px; padding: 6px 14px; border-radius: var(--r); }
.tabs button:hover:not(:disabled) { filter: none; color: var(--text); }
.tabs button.active { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.tabs button.active { color: var(--gold); }
:root[data-theme="light"] .tabs button.active { color: var(--brand); }
.badge { display: inline-block; min-width: 19px; padding: 1px 6px; border-radius: var(--r); font-size: .72rem; font-weight: 700; background: var(--gold); color: #1d1b17; text-align: center; line-height: 1.45; }
.pill { display: inline-block; padding: 2px 10px; border-radius: var(--r); font-size: .76rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid transparent; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.info { background: var(--info-bg); color: var(--info); }
table.list { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.list th, table.list td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
table.list .right { text-align: right; }
table.list th { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); }
.scroll-x { overflow-x: auto; }
.notice { padding: 12px 16px; border-radius: var(--r); background: var(--warn-bg); color: var(--warn); margin-bottom: 14px; border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }
.notice.info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.empty { text-align: center; color: var(--muted); padding: 48px 10px; font-family: var(--serif); font-size: 1.1rem; }
.total-big { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; letter-spacing: -.02em; }

/* ================= Connexion ================= */
body.logged-out { background:
  radial-gradient(900px 500px at 15% -10%, color-mix(in srgb, var(--gold) 28%, transparent), transparent 60%),
  radial-gradient(700px 600px at 110% 110%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 60%),
  linear-gradient(160deg, color-mix(in srgb, var(--brand) 85%, #000), var(--brand)); min-height: 100vh; }
.login { max-width: 440px; margin: 7vh auto; text-align: center; background: var(--surface); border-radius: var(--r); padding: 30px 26px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); }
.login h1 { font-size: 2rem; margin-bottom: 4px; }
.login .tagline { color: var(--muted); margin: 0 0 22px; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
.login-logo { display: block; max-height: 100px; max-width: 70%; margin: 0 auto 14px; object-fit: contain; }
.fp-btn { width: 100%; min-height: 104px; font-size: 1.1rem; flex-direction: column; border-radius: var(--r); gap: 10px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 85%, #fff 15%), var(--brand)); }
.fp-btn svg { width: 44px; height: 44px; color: var(--gold); }
.user-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.user-pick button { background: var(--surface); color: var(--text); border: 1px solid var(--line); flex-direction: column; min-height: 84px; box-shadow: none; gap: 4px; }
.user-pick button:hover { border-color: var(--gold); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 290px; margin: 14px auto; }
.keypad button { min-height: 62px; font-size: 1.4rem; font-family: var(--serif); background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: none; border-radius: var(--r); }
.pin-dots { font-size: 2rem; letter-spacing: 10px; min-height: 52px; }

/* ================= Salle ================= */
.tables { --min: 128px; }
.table-tile { position: relative; aspect-ratio: 1.1; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; text-align: left; overflow: hidden;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 12px 12px 10px 16px; border-radius: var(--r); box-shadow: var(--shadow); font-weight: 500; }
.table-tile::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--line); }
.table-tile .label { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
.table-tile:hover { filter: none; border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); }
.table-tile.open { background: color-mix(in srgb, var(--info-bg) 60%, var(--surface)); } .table-tile.open::before { background: var(--info); }
.table-tile.ready { background: color-mix(in srgb, var(--ok-bg) 70%, var(--surface)); animation: pulse 1.4s infinite; } .table-tile.ready::before { background: var(--ok); }
.table-tile.to_pay { background: color-mix(in srgb, var(--warn-bg) 70%, var(--surface)); } .table-tile.to_pay::before { background: var(--gold); }
.table-tile.reserved { border-style: dashed; border-color: var(--gold); } .table-tile.reserved::before { background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 10px); }
.table-tile.other { opacity: .5; }
.table-tile .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 25%, transparent); } }

/* ================= Commande d'une table ================= */
.order-layout { display: grid; gap: 18px; grid-template-columns: minmax(300px, 430px) 1fr; align-items: start; }
@media (max-width: 860px) { .order-layout { grid-template-columns: 1fr; } }
.ticket { border-top: 3px solid var(--gold); }
.ticket .course { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px; }
.ticket .course-title, .course-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; }
.item { display: flex; align-items: center; gap: 8px; padding: 7px 0; }
.item .name { flex: 1; } .item .note { display: block; font-size: .8rem; color: var(--accent); font-weight: 500; }
.item.cancelled .name { text-decoration: line-through; color: var(--muted); }
.cart { position: sticky; bottom: 10px; background: var(--surface); border: 1px solid var(--gold); border-radius: var(--r); padding: 14px; margin-top: 16px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35); }
.qty { display: inline-flex; align-items: center; gap: 4px; } .qty button { min-height: 34px; width: 34px; padding: 0; }
.actions-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions-bar button { flex: 1 1 150px; }

/* ================= Cuisine : lisible de loin (A− / A+) ================= */
.kitchen-screen { font-size: calc(16px * var(--k, 1.2)); }
.kitchen-screen h1 { font-size: 1.5em; } .kitchen-screen h2 { font-size: 1.1em; }
.ktop { margin-bottom: .6em; } .clock { font-family: var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); margin-left: .4em; font-weight: 500; } .ktop button { font-size: .9em; }
.kitchen { display: grid; gap: .8em; grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(300px * var(--k, 1.2))), 1fr)); align-items: start; }
.kitchen.dim { opacity: .65; }
.kcard { background: var(--surface); border: 3px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.kcard header { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 .6em; padding: .5em .75em; background: var(--surface-2); }
.kcard header .t { font-family: var(--serif); font-size: 2.4em; font-weight: 700; line-height: 1; grid-row: span 2; }
.kcard header .time { font-size: 1.4em; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.kcard header .meta { font-size: .8em; color: var(--muted); text-align: right; }
.kcard.late { border-color: var(--bad); } .kcard.late header { background: var(--bad); color: #fff; } .kcard.late header .meta { color: #fff; }
.kcard.done { border-color: var(--ok); } .kcard.done header { background: var(--ok-bg); }
.kcard .body { padding: .3em .6em .7em; }
.kcard .course { font-size: .72em; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: .7em 0 .2em; }
.kitem { display: flex; align-items: center; gap: .5em; width: 100%; padding: .55em .6em; margin: .3em 0; border-radius: var(--r); border: 2px solid transparent; text-align: left; box-shadow: none;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 1.15em; font-weight: 700; min-height: 2.6em; cursor: pointer; }
.kitem .qty { font-size: 1.2em; font-weight: 900; min-width: 1.8em; }
.kitem .kdish { flex: 1; line-height: 1.2; } .kitem em { font-style: normal; font-weight: 600; color: var(--info); }
.kitem .note { display: block; margin-top: .2em; padding: .1em .45em; border-radius: var(--r); background: var(--warn-bg); color: var(--warn); font-size: .85em; font-weight: 800; width: fit-content; }
.kitem .st { font-size: .72em; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.kitem.preparing { background: var(--warn-bg); border-color: var(--warn); }
.kitem.ready { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.kitem.hold { background: transparent; border: 2px dashed var(--line); color: var(--muted); cursor: default; font-weight: 500; font-size: 1em; }
.kitem:disabled { cursor: default; opacity: 1; }
.allready { width: 100%; margin-top: .5em; font-size: 1.05em; min-height: 2.8em; }
.waiting { color: var(--ok); font-weight: 700; margin: .5em 0 0; }
.todo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .55em .8em; margin-bottom: .8em; display: flex; flex-wrap: wrap; gap: .4em .9em; align-items: center; box-shadow: var(--shadow); }
.todo-item b { font-size: 1.2em; color: var(--info); margin-right: .15em; }
.call { display: flex; align-items: center; gap: 12px; padding: .7em 1em; margin-bottom: .6em; border-radius: var(--r); background: var(--accent); color: #fff; font-size: 1.35em; font-weight: 900; animation: flash 1s infinite alternate; }
.call button { background: #fff; color: var(--accent); font-size: .8em; }
@keyframes flash { to { filter: brightness(1.2); } }

/* ================= Caisse et rapports ================= */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.pay-methods button { background: var(--surface-2); color: var(--text); border-color: var(--line); box-shadow: none; min-height: 52px; }
.pay-methods button:hover { border-color: var(--gold); filter: none; }
.report dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.report dt { color: var(--muted); } .report dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ================= Divers ================= */
#offline { position: sticky; top: 0; z-index: 20; background: var(--bad); color: #fff; font-weight: 700; padding: 10px 16px; text-align: center; }
.setup { margin-bottom: 16px; border-left: 4px solid var(--gold); }
.setup ul { margin: 8px 0 0; padding-left: 0; list-style: none; } .setup li { padding: 3px 0; } .setup li.done { color: var(--muted); }
.logo-preview { min-height: 64px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--r); padding: 8px; min-width: 140px; }
.logo-preview img { max-height: 64px; max-width: 200px; }
.icon-preview { width: 64px; height: 64px; border-radius: var(--r); box-shadow: var(--shadow); }
.swatch { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: var(--r); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); display: inline-block; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.swatch.on { box-shadow: 0 0 0 3px var(--gold); }
body.busy button, body.busy .btn { pointer-events: none; }
body.busy { cursor: progress; }

/* Messages */
#toasts { position: fixed; right: 18px; bottom: 18px; left: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; z-index: 50; pointer-events: none; }
.toast { pointer-events: auto; max-width: 420px; width: 100%; background: #1f1d19; color: #f5efe4; padding: 14px 16px 14px 18px; border-radius: var(--r); font-weight: 600; cursor: pointer;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); border-left: 4px solid var(--gold); animation: toast-in .2s ease-out; }
.toast.ok { border-left-color: #5cc285; } .toast.bad { border-left-color: #ff7a6e; } .toast.big { font-size: 1.15rem; padding: 18px 18px 18px 20px; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* Fenêtres */
dialog { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--surface); color: var(--text); width: min(480px, calc(100vw - 32px)); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45); }
dialog h2 { margin-top: 0; font-size: 1.4rem; }
dialog::backdrop { background: rgba(20, 16, 10, .45); backdrop-filter: blur(3px); }

/* Impression (tickets, factures, Z) */
#print-area { display: none; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; color: #000; background: #fff; font: 12px/1.35 ui-monospace, Menlo, Consolas, monospace; width: 72mm; }
  #print-area table { width: 100%; border-collapse: collapse; } #print-area td { padding: 1px 0; vertical-align: top; }
  #print-area .c { text-align: center; } #print-area .plogo { display: block; margin: 0 auto 4px; max-width: 48mm; max-height: 24mm; filter: grayscale(1) contrast(1.4); } #print-area .r { text-align: right; } #print-area hr { border: 0; border-top: 1px dashed #000; }
  @page { margin: 4mm; }
}

/* Téléphones */
@media (max-width: 600px) {
  .tables { --min: 98px; gap: 9px; }
  .table-tile { aspect-ratio: 1; padding: 9px 8px 8px 12px; border-radius: var(--r); }
  .table-tile .label { font-size: 1.5rem; }
  #toasts { top: calc(env(safe-area-inset-top) + 92px); bottom: auto; align-items: stretch; }
  .toast { max-width: none; }
  .tabs { width: 100%; }
}

/* ================= Mode Service (serveurs) : plein écran, pensé pour le pouce ================= */
body.service-mode #app { padding: 0; max-width: none; }
body.service-mode { overscroll-behavior: none; }
.svc { display: flex; flex-direction: column; height: 100dvh; }
.svc-top { display: flex; align-items: center; gap: 6px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--brand) 22%, #070908); color: #f4f1ea; border-bottom: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.svc-brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.svc-logo { height: 30px; max-width: 90px; object-fit: contain; background: #fff; border-radius: var(--r); padding: 2px; }
.svc-icon { position: relative; background: rgba(255, 255, 255, .07); color: inherit; border: 1px solid rgba(255, 255, 255, .12); box-shadow: none; min-width: 44px; padding: 6px 10px; font-size: 1.05rem; }
.svc-icon .badge { position: absolute; top: -4px; right: -4px; }
.svc-main { flex: 1; overflow-y: auto; padding: 14px 14px 0; -webkit-overflow-scrolling: touch; }
.svc-tabs { display: flex; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.svc-tabs button { flex: 1; flex-direction: column; gap: 2px; background: transparent; color: var(--muted); box-shadow: none; border-radius: 0; min-height: 60px; font-size: .78rem; position: relative; }
.svc-tabs button b { font-size: 1.25rem; line-height: 1; }
.svc-tabs button.active { color: var(--gold); }
.svc-tabs button.active::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
.svc-tabs .badge { position: absolute; top: 6px; left: calc(50% + 8px); }
.svc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.svc-head h1 { margin: 0; }
.svc-zone { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 18px 0 8px; font-family: var(--sans); }
/* Contrôle segmenté */
.seg { display: inline-flex; gap: 3px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.seg button { background: transparent; color: var(--muted); box-shadow: none; min-height: 40px; padding: 6px 12px; border-radius: var(--r); font-size: .9rem; }
.seg button.active { background: var(--surface); color: var(--gold); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.seg.wide { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 10px 0; }
/* Tables */
.svc-tables { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.stile { position: relative; aspect-ratio: 1; flex-direction: column; align-items: flex-start; justify-content: space-between; text-align: left; padding: 10px 10px 9px 14px; overflow: hidden;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); font-weight: 500; }
.stile::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--line); }
.stile .n { font-family: var(--serif); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.stile .s { font-size: .74rem; color: var(--muted); line-height: 1.3; } .stile .s b { color: var(--text); font-weight: 600; }
.stile .flag { position: absolute; top: 8px; right: 8px; background: var(--ok); color: #06140c; font-weight: 800; font-size: .78rem; border-radius: var(--r); padding: 2px 8px; }
.stile.open::before { background: var(--info); } .stile.open { background: color-mix(in srgb, var(--info-bg) 55%, var(--surface)); }
.stile.ready::before { background: var(--ok); } .stile.ready { background: color-mix(in srgb, var(--ok-bg) 70%, var(--surface)); animation: pulse 1.4s infinite; }
.stile.to_pay::before { background: var(--gold); } .stile.to_pay { background: color-mix(in srgb, var(--warn-bg) 70%, var(--surface)); }
.stile.reserved { border-style: dashed; border-color: var(--gold); }
.stile.other { opacity: .5; }
/* À servir */
.ready-card { margin-bottom: 12px; border-left: 4px solid var(--ok); } .ready-card.other { opacity: .7; border-left-color: var(--line); }
.rtable { font-family: var(--serif); font-size: 1.3rem; font-weight: 800; }
/* Une table */
.tbl-head { display: flex; align-items: center; gap: 10px; }
.tbl-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.banner { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 12px; border-radius: var(--r); margin-top: 10px; font-weight: 700; }
.banner.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); animation: pulse 1.6s infinite; }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.tbl-panes { display: grid; gap: 14px; margin-top: 10px; }
.tbl[data-pane=order] .p-add, .tbl[data-pane=add] .p-order { display: none; }
.titem { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 4px; background: transparent; color: var(--text); border: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  border-radius: 0; box-shadow: none; text-align: left; font-weight: 500; min-height: 48px; }
.titem .name { flex: 1; } .titem .note { display: block; font-size: .8rem; color: var(--accent); }
.titem.cancelled .name { text-decoration: line-through; color: var(--muted); }
.titem.ready { background: color-mix(in srgb, var(--ok-bg) 60%, transparent); }
.ticket .tot { border-top: 2px solid var(--line); margin-top: 10px; padding-top: 10px; font-size: 1.05rem; }
.picker-top { position: sticky; top: -14px; z-index: 3; background: var(--bg); padding: 4px 0 8px; margin-top: -4px; }
.picker-top input { width: 100%; font-size: 1.05rem; min-height: 50px; border-radius: var(--r); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; scrollbar-width: none; }
.chips button { flex: none; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); box-shadow: none; min-height: 40px; padding: 6px 14px; border-radius: var(--r); font-size: .9rem; }
.chips button.active { background: var(--gold); color: #17140d; border-color: var(--gold); }
.dgrid { display: grid; gap: 9px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); padding-bottom: 12px; }
.dtile { position: relative; flex-direction: column; align-items: stretch; justify-content: space-between; text-align: left; min-height: 92px; padding: 11px 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); font-weight: 600; line-height: 1.25; }
.dtile .dn { font-size: .95rem; } .dtile .dp { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: .78rem; }
.dtile .dp b { font-family: var(--serif); font-size: 1rem; color: var(--gold); } .dtile .low { color: var(--accent); font-weight: 700; }
.dtile.in { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.dtile .dq { position: absolute; top: -7px; right: -7px; min-width: 26px; height: 26px; border-radius: var(--r); background: var(--gold); color: #17140d; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.dtile:active:not(:disabled) { transform: scale(.97); }
.dtile:disabled { opacity: .35; box-shadow: none; }
/* Barre d'actions : toujours sous le pouce */
.svc-actions { position: sticky; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 12px; margin-top: 8px;
  background: linear-gradient(to top, var(--bg) 75%, transparent); }
.svc-actions button { min-height: 54px; } .svc-actions .grow { flex: 1 1 150px; }
.cart-sheet { flex-basis: 100%; max-height: 45dvh; overflow-y: auto; background: var(--surface); border: 1px solid var(--gold); border-radius: var(--r); padding: 10px; }
.cline { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cline select { min-height: 36px; padding: 4px 8px; } .cline .note { display: block; font-size: .8rem; color: var(--accent); }
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.covers button { min-height: 58px; font-size: 1.2rem; }
/* Tablette : commande et carte côte à côte */
@media (min-width: 900px) {
  .svc-main { padding: 18px 22px 0; }
  .tbl .seg.wide { display: none; }
  .tbl-panes { grid-template-columns: minmax(320px, 400px) 1fr; align-items: start; }
  .tbl[data-pane] .p-order, .tbl[data-pane] .p-add { display: block; }
  .p-order { position: sticky; top: 0; }
}

/* Mode Service : messages sous la barre du haut */
@media (max-width: 600px) { body.service-mode #toasts { top: calc(env(safe-area-inset-top) + 64px); } }

/* ================= Menu à tuiles « Metro » ================= */
.start { position: fixed; inset: 0; z-index: 40; overflow-y: auto; padding: max(18px, env(safe-area-inset-top)) 22px 30px;
  background: rgba(6, 9, 9, .9); backdrop-filter: blur(10px); animation: start-in .22s ease-out; }
.start.closing { animation: start-out .2s ease-in forwards; }
.start.closing .tile { animation: tile-out .18s ease-in forwards; }
.start-head { display: flex; align-items: flex-start; justify-content: space-between; max-width: 980px; margin: 10px auto 22px; color: #fff; }
.start-title { font-family: var(--serif); font-size: 2.6rem; font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.start-sub { color: #a5b0ac; margin-top: 6px; }
.start-close { background: transparent; border: 1px solid #ffffff33; color: #fff; box-shadow: none; width: 44px; min-height: 44px; padding: 0; }
.tiles { display: grid; gap: 8px; max-width: 980px; margin: 0 auto; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); grid-auto-rows: 130px; grid-auto-flow: dense; perspective: 1200px; }
.tile { position: relative; display: block; text-align: left; padding: 12px; overflow: hidden; color: #fff; background: var(--c); border: 0; border-radius: 0; box-shadow: none;
  font-weight: 500; transform-origin: left center; animation: tile-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 35ms);
  transition: transform .12s, filter .15s, outline-color .15s; outline: 3px solid transparent; outline-offset: -3px; }
.tile:hover:not(:disabled) { filter: brightness(1.12); outline-color: #ffffff55; }
.tile:active:not(:disabled) { transform: scale(.96) perspective(600px) rotateX(4deg); }
.tile.current { outline-color: #fff; }
.t-w { grid-column: span 2; } .t-l { grid-column: span 2; grid-row: span 2; }
.tile-icon svg { width: 40px; height: 40px; } .t-l .tile-icon svg { width: 64px; height: 64px; }
.tile-label { position: absolute; left: 12px; bottom: 10px; right: 12px; font-size: .92rem; font-weight: 600; line-height: 1.2; }
.t-l .tile-label { font-size: 1.25rem; }
.tile-live { display: block; margin-top: 8px; font-size: .85rem; opacity: .9; line-height: 1.3; animation: live-in .5s .4s both; }
.t-l .tile-live { font-size: 1.05rem; }
.tile-count { position: absolute; top: 8px; right: 10px; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.t-l .tile-count { font-size: 2.6rem; }
.tile-avatar { display: inline-grid; place-items: center; width: 46px; height: 46px; background: #ffffff2e; font-weight: 700; font-size: 1.05rem; }
.tile-clock { font-family: var(--serif); font-size: 2.6rem; font-weight: 300; line-height: 1; }
.tile[data-act="none"] { cursor: default; } .tile[data-act="none"] .tile-label { text-transform: capitalize; }
@keyframes start-in { from { opacity: 0; } }
@keyframes start-out { to { opacity: 0; } }
@keyframes tile-in { from { opacity: 0; transform: translateX(60px) rotateY(-35deg); } }
@keyframes tile-out { to { opacity: 0; transform: translateX(-30px) rotateY(20deg); } }
@keyframes live-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 600px) { .t-w .tile-live { display: none; } .tile { padding: 9px; } .tile-label { left: 9px; bottom: 7px; font-size: .78rem; } .tile-icon svg { width: 30px; height: 30px; } .tiles { grid-template-columns: repeat(3, 1fr); grid-auto-rows: calc((100vw - 60px) / 3); gap: 6px; } .start { padding: 14px 12px 24px; } .start-title { font-size: 2rem; } .t-l .tile-icon svg { width: 48px; height: 48px; } }

/* Changement d'écran : apparition douce */
.page { animation: page-in .25s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Connexion : fond sombre, carte nette */
body.logged-out { background: radial-gradient(800px 500px at 20% -10%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 60%), var(--bg); }
.login { border-color: var(--brand); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); animation: page-in .35s ease-out; }
.fp-btn { background: var(--brand); color: var(--brand-ink); }
.fp-btn svg { color: var(--brand-ink); }

/* Plugins (administration) */
.perm-list { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.plugin-log { white-space: pre-wrap; font-size: .75rem; background: var(--surface-2); padding: 8px; max-height: 180px; overflow: auto; }

/* Cuisine : deux colonnes « à préparer » / « prêts et servis » */
.kcols { display: grid; gap: 1em; grid-template-columns: 1fr; }
@media (min-width: 900px) { .kcols { grid-template-columns: 3fr 2fr; align-items: start; } }
.kcols > section { display: grid; gap: .7em; align-content: start; }
.kcol-title { margin: 0; font-size: 1.1em; display: flex; align-items: center; gap: .5em; text-transform: uppercase; letter-spacing: .06em; }
.kcol-sub { margin: .6em 0 0; font-size: .85em; color: var(--muted); }
.kcard.waiting-late { border-color: var(--accent); } .kcard.waiting-late header { background: var(--warn-bg); }
.kcard.served { opacity: .6; }
.later { margin-top: .5em; font-size: .85em; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .4em; }
.served-list { display: flex; flex-wrap: wrap; gap: .3em .9em; margin-top: .4em; font-size: .85em; color: var(--muted); }

/* Repas fini, relances douces */
.stile.finished::before { background: var(--muted); } .stile.finished .s b { color: var(--ok); }
.banner.fin { background: var(--surface-2); color: var(--ok); border: 1px solid var(--line); }
.toast.nag { background: var(--surface-2); color: var(--text); border-left-color: var(--warn); font-weight: 500; }
body.has-waiting .startbtn, body.has-waiting #svc-bell { animation: nag-pulse 2s ease-in-out infinite; }
@keyframes nag-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--warn) 45%, transparent); } }

/* Menus du jour (chef) */
.menus-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 12px; }
.menu-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); padding: 14px; box-shadow: var(--shadow); }
.menu-card.off { opacity: .55; border-top-color: var(--muted); }
.menu-name { font-family: var(--serif); font-size: 1.15rem; } .menu-price { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--brand); }
.menu-course { padding: 6px 0; border-bottom: 1px dashed var(--line); } .menu-course span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.menu-course em { color: var(--muted); font-style: normal; font-size: .85em; }
.menu-edit-course { margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); padding: 2px 2px 2px 10px; }
.chip button { min-height: 26px; padding: 0 6px; border: 0; }
.warn-text { color: var(--accent); font-weight: 700; }
/* Menus dans la prise de commande */
.dtile.menu { border-top: 4px solid var(--brand); }
.choice-group { margin-bottom: 12px; } .choice-group .covers { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.choice-group button { min-height: 52px; font-size: .95rem; }
.titem.menu-line { font-weight: 700; } .titem.menu-part .name { padding-left: 14px; }

/* Lecteur de QR code (bons cadeaux) */
.scanner { position: relative; background: #000; aspect-ratio: 4 / 3; overflow: hidden; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .scan-frame { position: absolute; inset: 18%; border: 3px solid var(--brand); box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); animation: scan 1.6s ease-in-out infinite alternate; }
.scanner .scan-msg { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; color: #fff; margin: 0; text-shadow: 0 1px 2px #000; }
.scanner.off { aspect-ratio: auto; background: transparent; } .scanner.off video, .scanner.off .scan-frame { display: none; }
.scanner.off .scan-msg { position: static; color: var(--warn); text-shadow: none; }
@keyframes scan { to { inset: 22%; } }

/* Tuiles : avatar (photo ou emoji) et météo */
img.tile-avatar { object-fit: cover; padding: 0; }
.tile-avatar { font-size: 1.6rem; }
.tile-meteo { display: flex; align-items: center; gap: 10px; }
.meteo-sky { font-size: 2.4rem; line-height: 1; } .meteo-temp { font-family: var(--serif); font-size: 2.3rem; font-weight: 300; }
.meteo-more { font-size: .82rem; opacity: .9; line-height: 1.3; }

/* Jours de fête : fond doux, uniquement sur le menu à tuiles */
.start[data-season] { background-blend-mode: normal; }
.start[data-season="noel"] { background: radial-gradient(circle at 20% 10%, #ffffff14 0 2px, transparent 3px) 0 0 / 46px 46px, radial-gradient(circle at 70% 60%, #ffffff10 0 1.5px, transparent 2.5px) 0 0 / 34px 34px, linear-gradient(160deg, #0b2a17f2, #2a0a0ef2); }
.start[data-season="nouvel-an"] { background: radial-gradient(circle at 30% 20%, #e9c46a22 0 1.5px, transparent 2.5px) 0 0 / 28px 28px, linear-gradient(160deg, #0d0d14f2, #2b2410f2); }
.start[data-season="saint-valentin"] { background: radial-gradient(circle at 50% 50%, #ff4d6d14 0 3px, transparent 4px) 0 0 / 40px 40px, linear-gradient(160deg, #2a0812f2, #12060df2); }
.start[data-season="halloween"] { background: linear-gradient(160deg, #1a0a02f2, #0b0505f2); }
.start[data-season="quatorze-juillet"] { background: linear-gradient(110deg, #0a1f45f2 0 34%, #0d0f14f2 34% 66%, #3d0b0bf2 66%); }
.start[data-season="paques"] { background: radial-gradient(circle at 50% 50%, #ffd16612 0 3px, transparent 4px) 0 0 / 44px 44px, linear-gradient(160deg, #0f2318f2, #1d1630f2); }
.start[data-season="musique"] { background: linear-gradient(160deg, #1a0633f2, #061a2ef2); }
.start[data-season="muguet"] { background: linear-gradient(160deg, #0b1f14f2, #0d1410f2); }
.start[data-season="epiphanie"], .start[data-season="chandeleur"] { background: linear-gradient(160deg, #20160af2, #0e0c08f2); }

/* Réglage mis en évidence (lien direct) */
.flash { animation: flash-in 2.4s ease-out; } @keyframes flash-in { 0%, 40% { box-shadow: 0 0 0 3px var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); } }

/* Avatars */
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: 1.05rem; object-fit: cover; }
.avatar.sm { width: 30px; height: 30px; font-size: .95rem; } .avatar.lg { width: 84px; height: 84px; font-size: 2.6rem; }
.avatars { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar-pick { width: 48px; height: 48px; min-height: 0; padding: 2px; background: transparent; border: 3px solid transparent; box-shadow: none; border-radius: 50%; transition: transform .12s; }
.avatar-pick svg, .av-svg svg { width: 100%; height: 100%; display: block; }
.avatar-pick:hover { transform: scale(1.08); }
.av-svg { background: none; padding: 0; overflow: hidden; }
.avatar-pick.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 20%, var(--surface-2)); }
.user-pick button { display: flex; align-items: center; gap: 10px; }

/* Messagerie */
.chat { display: flex; flex-direction: column; gap: 10px; max-height: calc(100dvh - 300px); min-height: 200px; overflow-y: auto; padding: 4px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 720px; }
.msg.mine { flex-direction: row-reverse; margin-left: auto; }
.bubble { background: var(--surface); border: 1px solid var(--line); padding: 8px 12px; max-width: min(560px, 80vw); }
.msg.mine .bubble { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble button { min-height: 22px; padding: 0 6px; margin-left: 6px; }
.chat-form { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; } .chat-form textarea { flex: 1; resize: vertical; }

/* Mode guidé du chef */
dialog.wide { width: min(900px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.steps li { padding: 6px 12px; background: var(--surface-2); color: var(--muted); font-size: .85rem; font-weight: 600; }
.steps li.on { background: var(--brand); color: var(--brand-ink); } .steps li.done { color: var(--ok); }
.qty-grid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 6px 0 14px; }
.qty-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--surface-2); color: var(--text); margin: 0; }
.qty-row.off { opacity: .55; }
.chips.pick { flex-wrap: wrap; } .chips.pick .chip { padding: 6px 12px; cursor: pointer; }
.chat-form { flex-direction: column; align-items: stretch; }
.to-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-btn { min-height: 34px; padding: 4px 12px; font-size: .85rem; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.chip-btn.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
#mic.listening { background: #d24b42; color: #fff; animation: nag-pulse 1.2s ease-in-out infinite; }

/* Bandeau foot (écran cuisine) : en bas, lisible, défilement lent ; n'apparaît que pendant une info */
.ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: stretch; height: 54px; background: #e63946; border-top: 3px solid #b71c2c; box-shadow: 0 -8px 24px rgba(0, 0, 0, .45); }
.ticker-label { display: flex; align-items: center; padding: 0 18px; background: #b71c2c; color: #fff; font: 800 1.15rem/1 var(--sans, sans-serif); letter-spacing: .06em; white-space: nowrap; }
.ticker-track { position: relative; flex: 1; overflow: hidden; }
.ticker-text { position: absolute; top: 50%; left: 0; white-space: nowrap; color: #fff; font-size: 1.45rem; font-weight: 700; transform: translate(100vw, -50%); }
@keyframes ticker { from { transform: translate(100vw, -50%); } to { transform: translate(-100%, -50%); } }
body.has-ticker .kitchen-screen { padding-bottom: 64px; }
pre.detail { white-space: pre-wrap; word-break: break-word; max-height: 50vh; overflow: auto; font-size: .8rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
