@font-face {
  font-family: "Italiana"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/italiana-400-latin.woff2") format("woff2");
}
/* Bellora Bakery — visual world taken from the wholesale price list:
   cream paper, espresso ink, hairline rules, Cormorant Garamond display over Inter. */

@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #faf7f2;
  --paper-2: #f3ece2;      /* second neutral layer: toolbars, inactive tabs */
  --sheet: #fffdf9;        /* raised surfaces */
  --ink: #2e2420;
  --ink-2: #4a3c35;
  --muted: #6b5b52;        /* 6.2:1 on paper */
  --rule: #e2d6c8;
  --rule-strong: #cdbcaa;
  --crust: #8c4a2f;        /* terracotta: links, focus, current state */
  --crust-soft: #f4e4da;
  --ok: #2f6b45;   --ok-soft: #e4f0e7;
  --warn: #8a5a12; --warn-soft: #f8ecd6;
  --bad: #9e2f2f;  --bad-soft: #f7e2e0;
  --info: #2f5578; --info-soft: #e3ebf3;
  --plum: #5b3d72; --plum-soft: #ece4f2;

  --display: "Italiana", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --night: #1b1410;        /* from the Coming Soon hero */
  --gold: #cfa862;
  --cream: #f6ebd6;
  --cream-soft: #dccbae;
  --r: 10px;
  --r-sm: 7px;
  --lift: 0 1px 2px rgba(46, 36, 32, .05), 0 6px 18px -8px rgba(46, 36, 32, .12);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--rule-strong) var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 400 15.5px/1.55 var(--sans);
  min-height: 100vh; display: flex; flex-direction: column; caret-color: var(--crust); accent-color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: var(--crust); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--crust); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { margin: 0 0 .45em; color: var(--ink); text-wrap: balance; }
h1 { font: 400 2.5rem/1.08 var(--display); letter-spacing: .01em; }
h2 { font: 400 1.65rem/1.18 var(--display); letter-spacing: .01em; }
h3 { font: 600 1rem/1.3 var(--sans); }
p { margin: 0 0 1em; max-width: 70ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.hidden { display: none !important; }
.num, table, .price, .k-qty, .stat .n { font-variant-numeric: tabular-nums; }
.icon { flex: none; vertical-align: -4px; }
.icon.x { transform: rotate(45deg); }
.icon.small { width: 15px; height: 15px; vertical-align: -3px; }

.env-banner { background: var(--info); color: #fff; text-align: center; font: 600 .72rem/1.9 var(--sans); letter-spacing: .08em; }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 24px; border-bottom: 1px solid var(--rule); background: var(--paper); flex-wrap: wrap; }
.brand { font: 400 1.05rem/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: .28em; text-transform: uppercase; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a, .nav .link { color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 7px 10px; border-radius: var(--r-sm); transition: background .18s var(--ease), color .18s var(--ease); }
.nav a:hover, .nav .link:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 32px 20px 64px; flex: 1; }
.narrow { max-width: 440px; margin: 0 auto; }
.footer { color: var(--muted); font-size: .85rem; padding: 24px; border-top: 1px solid var(--rule); display: flex; gap: 6px 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: var(--r-sm);
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--paper-2); border-color: var(--rule); color: var(--muted); cursor: not-allowed; transform: none; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { background: var(--paper-2); color: var(--ink); border-color: var(--rule-strong); }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #7f2424; border-color: #7f2424; }
.btn-ok { background: var(--ok); border-color: var(--ok); }
.btn-ok:hover { background: #245536; border-color: #245536; }
.btn-small { min-height: 34px; padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
button.link { background: none; border: 0; cursor: pointer; font: inherit; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 500; margin: 16px 0 6px; font-size: .9rem; color: var(--ink); }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 8px 0; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
input::placeholder, textarea::placeholder { color: #8a7a70; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(140, 74, 47, .18); }
input:disabled { background: var(--paper-2); color: var(--muted); }
textarea { min-height: 84px; resize: vertical; }
.hint { color: var(--muted); font-size: .84rem; margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Surfaces ---------- */
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 24px; margin-bottom: 20px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.page-head h1 { margin: 0; }
.page-head .actions { margin: 0; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* Dashboard counters: one quiet strip, not a wall of hero metrics */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); margin-bottom: 24px; overflow: hidden; }
.stat { padding: 14px 18px; text-decoration: none; color: var(--ink); display: block; border-right: 1px solid var(--rule); transition: background .18s var(--ease); }
.stat:last-child { border-right: 0; }
a.stat:hover { background: var(--paper-2); color: var(--ink); }
.stat .n { font: 600 1.6rem/1.1 var(--sans); letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.stat.attention .n { color: var(--crust); }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 20px; border: 1px solid; font-size: .95rem; }
.flash ul { margin: 0; padding-left: 18px; }
.flash-success { background: var(--ok-soft); border-color: #bcd8c4; color: #1f4a30; }
.flash-error { background: var(--bad-soft); border-color: #e5c1bd; color: #6e2020; }
.flash-info { background: var(--info-soft); border-color: #c3d3e3; color: #213d57; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: .76rem; letter-spacing: .04em; color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--ink); white-space: nowrap; }
th.right, td.right { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tr.row-link { cursor: pointer; transition: background .15s var(--ease); }
tr.row-link:hover td { background: var(--paper); }
td.total-row, tr.total td { border-top: 2px solid var(--ink); font-weight: 600; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font: 600 .76rem/1.6 var(--sans); background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.badge-new { background: var(--info-soft); color: var(--info); }
.badge-confirmed { background: var(--plum-soft); color: var(--plum); }
.badge-in_production { background: var(--warn-soft); color: var(--warn); }
.badge-ready { background: var(--ok-soft); color: var(--ok); }
.badge-completed { background: var(--paper-2); color: var(--muted); }
.badge-cancelled { background: var(--bad-soft); color: var(--bad); }
.badge-pending { background: var(--warn-soft); color: var(--warn); }
.badge-active { background: var(--ok-soft); color: var(--ok); }
.badge-blocked { background: var(--bad-soft); color: var(--bad); }
.badge-low { background: var(--warn-soft); color: var(--warn); }
.badge-short { background: var(--bad-soft); color: var(--bad); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-wholesale { background: var(--plum-soft); color: var(--plum); }
.badge-outline { background: transparent; border: 1px solid var(--rule-strong); color: var(--ink-2); }

/* ---------- Public: home / coming soon ---------- */
/* Dark photographic hero (Coming Soon mockup): three-photo triptych, night gradient, spaced capitals */
.showcase { position: relative; background: var(--night); color: var(--cream); overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; }
.showcase .panes { position: absolute; inset: 0; display: flex; gap: 6px; }
.showcase .panes picture { flex: 1; min-width: 0; }
.showcase .panes img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase .shade { position: absolute; inset: auto 0 0 0; height: 62%; background: linear-gradient(0deg, var(--night) 0%, rgba(27, 20, 16, .94) 34%, rgba(27, 20, 16, 0) 100%); }
.showcase .lockup { position: relative; width: 100%; padding: 0 20px 56px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.showcase h1 { margin: 0; font: 400 clamp(2rem, 4.4vw, 3.6rem)/1.05 var(--display); letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; color: var(--cream); }
.showcase .tag { margin-top: 16px; font: 500 .78rem/1.4 var(--sans); letter-spacing: .46em; padding-left: .46em; text-transform: uppercase; color: var(--gold); }
.showcase .rule { width: 48px; height: 1px; background: var(--gold); margin: 24px 0 20px; }
.showcase .status { font: 500 .82rem/1.4 var(--sans); letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: var(--cream-soft); }
.showcase .contact { margin-top: 22px; font-size: .9rem; color: var(--cream-soft); letter-spacing: .04em; }
.showcase .contact a { color: var(--cream); }
.showcase .actions { justify-content: center; margin-top: 26px; }
.showcase .btn { background: var(--cream); color: var(--night); border-color: var(--cream); }
.showcase .btn:hover { background: #fff; border-color: #fff; color: var(--night); }
.showcase .btn-secondary { background: transparent; color: var(--cream); border-color: rgba(246, 235, 214, .45); }
.showcase .btn-secondary:hover { background: rgba(246, 235, 214, .1); color: var(--cream); border-color: var(--cream); }
.showcase ::selection { background: var(--gold); color: var(--night); }
@media (max-width: 760px) {
  .showcase .panes picture:not(.lead) { display: none; }
  .showcase .shade { height: 75%; }
  .showcase h1 { letter-spacing: .18em; padding-left: .18em; }
}
body.dark { background: var(--night); }
body.dark .topbar { background: var(--night); border-color: rgba(246, 235, 214, .12); }
body.dark .topbar .brand, body.dark .nav a, body.dark .nav .link { color: var(--cream-soft); }
body.dark .nav a:hover, body.dark .nav .link:hover, body.dark .nav a[aria-current="page"] { background: rgba(246, 235, 214, .08); color: var(--cream); }
body.dark .nav .btn { background: var(--cream); color: var(--night) !important; border-color: var(--cream); }
body.dark .footer { background: var(--night); color: var(--cream-soft); border-color: rgba(246, 235, 214, .12); }
body.full .container { max-width: none; padding: 0; }
body.full .flash { margin: 16px 20px 0; }
.page-section { max-width: 1120px; margin: 0 auto; padding: 48px 20px; }
.page-section + .page-section { padding-top: 0; }
.hero { padding: 40px 0 28px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1; margin: 0; }
.hero .lede { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 18px; }
.hero .actions { margin: 0; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }
.notes { color: var(--muted); font-size: .85rem; line-height: 1.55; max-width: 80ch; }
.notes p { margin: 0 0 6px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* ---------- Price list (supplier style) ---------- */
.pricelist { width: 100%; }
.pl-head, .pl-row { display: grid; grid-template-columns: minmax(170px, 1.1fr) minmax(0, 2fr) 104px 150px repeat(var(--cols, 2), 104px); align-items: center; }
.pl-head { padding: 0 0 10px; border-bottom: 2px solid var(--ink); font-size: .76rem; font-weight: 600; letter-spacing: .04em; align-items: end; }
.pl-head > div, .pl-row > div { padding: 0 12px; }
.pl-head > div + div:not(.r), .pl-row > div + div:not(.r) { border-left: 1px solid var(--rule); }
.pl-row { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .87rem; line-height: 1.45; color: var(--muted); }
.pl-row:last-child { border-bottom: 2px solid var(--ink); }
.pl-name { font-weight: 600; color: var(--ink); font-size: .95rem; }
.pl-name small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.r { text-align: right; }
.pl-price { font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.pl-price small { display: none; font-size: .75rem; font-weight: 500; color: var(--muted); }
@media (max-width: 860px) {
  .pl-head { display: none; }
  .pl-row { grid-template-columns: 1fr repeat(var(--cols, 2), auto); gap: 4px 0; padding: 14px 0; }
  .pl-row > div + div:not(.r) { border-left: 0; }
  .pl-row .pl-name { grid-column: 1 / -1; }
  .pl-row .pl-meta { grid-column: 1 / -1; }
  .pl-row .pl-meta.hide-sm { display: none; }
  .pl-row .pl-price { padding-right: 0; padding-left: 16px; }
  .pl-row .pl-price small { display: block; }
}

/* ---------- Order form ---------- */
.menu-group { padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 28px; align-items: start; }
.menu-group:first-of-type { padding-top: 4px; }
.menu-group:last-of-type { border-bottom: 0; }
.menu-group .mg-name { font: 400 1.3rem/1.2 var(--display); margin-bottom: 2px; }
.menu-group .mg-meta { color: var(--muted); font-size: .86rem; }
.variants { display: grid; gap: 8px; min-width: 280px; }
.variant { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.variant .v-label { font-size: .9rem; }
.variant .v-price { font-weight: 600; min-width: 4.2em; text-align: right; }
.slice { display: flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); }
.slice select { width: auto; min-height: 36px; padding: 4px 30px 4px 10px; font-size: .85rem; }
@media (max-width: 700px) { .menu-group { grid-template-columns: 1fr; } .variants { min-width: 0; } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--sheet); overflow: hidden; }
.qty input { width: 52px; min-height: 40px; text-align: center; border: 0; border-radius: 0; padding: 6px 2px; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; background: var(--paper-2); }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .15s var(--ease); }
.qty button:hover { background: var(--paper-2); }
.qty.has-value { border-color: var(--ink); }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label { flex: 1; min-width: 150px; margin: 0; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); padding: 12px 14px; background: var(--sheet); cursor: pointer; display: flex; gap: 10px; align-items: center; font-weight: 500; transition: border-color .18s var(--ease), background .18s var(--ease); }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.summary-bar { position: sticky; bottom: 0; z-index: 5; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--lift); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.summary-bar .sum { font-size: .9rem; color: var(--muted); }
.summary-bar .sum strong { display: block; color: var(--ink); font-size: 1.45rem; font-weight: 600; }
.summary-bar .btn { min-width: 200px; }

/* ---------- Timeline / progress ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 7px 0 7px 20px; position: relative; color: var(--muted); font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.timeline li + li::after { content: ""; position: absolute; left: 6px; top: -6px; height: 20px; width: 1px; background: var(--rule-strong); }
.timeline strong { color: var(--ink); font-weight: 600; }
.progress { height: 4px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ink); transition: width .4s var(--ease); }

/* ---------- Kitchen (iPad) ---------- */
body.kitchen .container { max-width: none; padding: 20px; }
.k-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.k-tabs a { padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--r-sm); background: var(--sheet); border: 1px solid var(--rule-strong); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .92rem; }
.k-tabs a:hover { background: var(--paper-2); }
.k-tabs a.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.k-totals { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.k-total { border: 1px solid var(--rule); background: var(--sheet); border-radius: var(--r-sm); padding: 7px 12px; font-weight: 600; font-size: .9rem; }
.k-total span { color: var(--muted); font-weight: 400; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.k-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.k-card.ready { background: var(--ok-soft); border-color: #bcd8c4; }
.k-card.overdue { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.k-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.k-product { font: 600 1.2rem/1.2 var(--sans); }
.k-variant { display: block; font: 500 .85rem/1.4 var(--sans); color: var(--muted); margin-top: 2px; }
.k-qty { font: 600 1.9rem/1 var(--sans); letter-spacing: -.02em; }
.k-meta { color: var(--muted); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.k-meta .icon { width: 16px; height: 16px; vertical-align: -3px; }
.k-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.k-steps { display: flex; gap: 3px; }
.k-steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--paper-2); }
.k-steps span.done { background: var(--ink); }
.k-steps span.now { background: var(--crust); }
.k-stage { font-size: 1.15rem; font-weight: 600; }
.k-stage small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.k-overdue { color: var(--bad); font-weight: 600; }
.k-buttons { display: grid; grid-template-columns: 64px 1fr; gap: 8px; margin-top: auto; }
.k-buttons button { min-height: 60px; border-radius: 12px; font: 600 1rem/1.2 var(--sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; transition: background .18s var(--ease), transform .12s var(--ease); }
.k-buttons button:active:not(:disabled) { transform: scale(.98); }
.k-back { background: var(--sheet); color: var(--ink); border: 1px solid var(--rule-strong); }
.k-back:disabled { opacity: .4; cursor: default; }
.k-next { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.k-next:hover:not(:disabled) { background: var(--ink-2); }
.k-next:disabled { background: var(--ok); border-color: var(--ok); color: #fff; cursor: default; }
.k-next[aria-busy="true"] { opacity: .6; }
.k-empty { text-align: center; padding: 64px 20px; color: var(--muted); border: 1px dashed var(--rule-strong); border-radius: 14px; }
.k-empty strong { display: block; color: var(--ink); font: 400 1.45rem/1.2 var(--display); margin-bottom: 4px; }

/* ---------- Editors (recipe rows, steps) ---------- */
.rows .row { display: grid; grid-template-columns: 1fr 140px 40px; gap: 8px; margin-bottom: 8px; align-items: center; }
.rows.stages .row { grid-template-columns: 28px 1.2fr 1.5fr 104px 40px; }
.rows .row .num { color: var(--muted); text-align: center; font-size: .85rem; }
.rows .row button { height: 40px; border-radius: var(--r-sm); border: 1px solid var(--rule-strong); background: var(--sheet); cursor: pointer; color: var(--ink); }
.rows .row button:hover { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
@media (max-width: 640px) { .rows.stages .row { grid-template-columns: 22px 1fr 84px 36px; } .rows.stages .row .hint-input { display: none; } }

details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 600; }
details > summary::-webkit-details-marker { display: none; }
details > summary .icon { transition: transform .2s var(--ease); }
details[open] > summary .icon { transform: rotate(45deg); }

code { font: 500 .95em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .topbar, .footer, .actions, .env-banner, .no-print { display: none !important; }
  body { background: #fff; }
  .card { border: 0; padding: 0; }
}
