/* Loro QR — single stylesheet, no build step.
   Visual system matched to lorotechz.com: violet on ink, Sora headings over
   Inter body text, pill buttons and soft mist surfaces. Fonts are self-hosted
   in assets/fonts/ so the Content-Security-Policy needs no external origins. */

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('fonts/sora-variable.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-variable.woff2') format('woff2');
}

:root {
    /* Brand palette, lifted from the Lorotechz stylesheet. */
    --ink: #14101f;
    --violet: #7c2fbf;
    --violet-2: #9d4edd;
    --grape: #4a1d7a;
    --paper: #ffffff;
    --mist: #f6f4fb;
    --mist-2: #efeaf8;
    --line: #e7e2f0;
    --slate: #6a6480;
    --slate-2: #908aa6;

    --grad-violet: linear-gradient(135deg, #9d4edd 0%, #7c2fbf 55%, #4a1d7a 100%);
    --grad-ink: linear-gradient(140deg, #1b1430 0%, #14101f 60%, #0e0a18 100%);

    /* Roles the rest of the sheet is written against. */
    --bg: var(--mist);
    --surface: var(--paper);
    --border: var(--line);
    --text: var(--ink);
    --muted: var(--slate);
    --accent: var(--violet);
    --accent-hover: var(--grape);
    --accent-soft: var(--mist-2);
    --danger: #c0392b;
    --success-bg: #e7f6ec;
    --success-text: #17603a;
    --error-bg: #fdeceb;
    --error-text: #97231a;
    --warn-bg: #fdf4e3;
    --warn-text: #7a5314;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 28px;
    --pill: 999px;
    --shadow-sm: 0 1px 2px rgba(20, 16, 31, .06), 0 1px 3px rgba(20, 16, 31, .04);
    --shadow: 0 8px 30px rgba(74, 29, 122, .10);
    --shadow-violet: 0 14px 40px rgba(124, 47, 191, .28);

    --font-display: 'Sora', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* The dark scheme keeps the same violet, dropped onto the brand's ink. */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e0a18;
        --surface: #1b1430;
        --border: #2e2545;
        --text: #f2effa;
        --muted: #a49dbb;
        --accent: var(--violet-2);
        --accent-hover: #b673e8;
        --accent-soft: #2a1f46;
        --danger: #e8776a;
        --success-bg: #11301f;
        --success-text: #9fe0bb;
        --error-bg: #3a1b18;
        --error-text: #f4a9a0;
        --warn-bg: #35290f;
        --warn-text: #f0cf8d;
        --shadow-sm: none;
        --shadow: 0 8px 30px rgba(0, 0, 0, .35);
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 var(--font-body);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    /* Column layout so the dark footer settles at the bottom of short pages
       instead of floating halfway up. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.main { padding: 2.25rem 0 4.5rem; flex: 1; }
.mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
.muted { color: var(--muted); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, .stat-value, .button, legend {
    font-family: var(--font-display);
    letter-spacing: -.02em;
}
h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 .25rem; line-height: 1.15; }
h2 { font-size: 1.1rem; font-weight: 600; margin: 0 0 1rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .2rem; }

/* Header ------------------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand {
    display: flex; align-items: center; gap: .6rem; text-decoration: none;
    font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; color: var(--text);
}
.brand-mark {
    width: 34px; height: 26px; flex-shrink: 0;
    background: url('lorotechz-logo.png') center / contain no-repeat;
}
.nav { display: flex; align-items: center; gap: .35rem; }
.nav a, .link-button {
    padding: .5rem .9rem; border-radius: var(--pill);
    color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
    transition: color .15s, background .15s;
}
.nav a:hover, .link-button:hover { color: var(--accent); background: var(--accent-soft); }
.nav a.is-active { color: var(--accent); background: var(--accent-soft); }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; cursor: pointer; font-family: inherit; }

.site-footer {
    background: var(--grad-ink); color: rgba(255, 255, 255, .7);
    padding: 2.25rem 0 1.75rem; font-size: .875rem; margin-top: auto;
}
.site-footer p { margin: 0; }
.site-footer code { color: rgba(255, 255, 255, .92); }

/* Page furniture ---------------------------------------------------------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head p { margin: 0; font-size: .95rem; color: var(--muted); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; }

.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .93rem; }
.alert-success { background: var(--success-bg); color: var(--success-text); }
.alert-error { background: var(--error-bg); color: var(--error-text); }

.notice { padding: .7rem .9rem; border-radius: var(--radius-sm); font-size: .87rem; margin: .9rem 0 0; }
.notice-warn { background: var(--warn-bg); color: var(--warn-text); }

.badge {
    display: inline-block; padding: .15rem .5rem; border-radius: var(--pill);
    background: var(--accent-soft); color: var(--accent);
    font-size: .72rem; font-weight: 500; vertical-align: middle;
}
.badge-paused { background: var(--warn-bg); color: var(--warn-text); }

/* Buttons ----------------------------------------------------------------- */
.button {
    display: inline-block; padding: .7rem 1.4rem; border-radius: var(--pill); border: 1px solid transparent;
    background: var(--grad-violet); color: #fff; font-size: .95rem; font-weight: 600;
    text-decoration: none; cursor: pointer; line-height: 1.35;
    box-shadow: var(--shadow-violet);
    transition: transform .18s, box-shadow .18s, background .18s;
}
.button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 18px 44px rgba(124, 47, 191, .34); }
.button:active { transform: translateY(0); }
.button-quiet {
    background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: none;
}
.button-quiet:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.button-danger { background: transparent; border-color: var(--danger); color: var(--danger); box-shadow: none; }
.button-danger:hover { background: var(--danger); color: #fff; box-shadow: none; }
.button-block { width: 100%; text-align: center; }
.button-small { padding: .45rem .95rem; font-size: .87rem; }

/* Stats ------------------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .85rem; margin-bottom: 1.25rem; }
.stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .15rem; box-shadow: var(--shadow-sm);
}
.stat-label { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.stat-value { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Chart ------------------------------------------------------------------- */
.chart-svg { width: 100%; height: 140px; display: block; }
.bar { fill: var(--accent); }
.bar-empty { fill: var(--border); }
.chart-axis { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: .4rem; }

/* Code list --------------------------------------------------------------- */
.code-list { list-style: none; margin: 0; padding: 0; }
.code-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.code-item:last-child { border-bottom: 0; padding-bottom: 0; }
.code-item:first-child { padding-top: 0; }
.code-thumb img { display: block; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; }
.code-body { flex: 1; min-width: 0; }
.code-body h3 a { color: var(--text); text-decoration: none; }
.code-body h3 a:hover { color: var(--accent); }
.code-target, .code-meta { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { margin: 0 .35rem; }
.code-actions { display: flex; gap: .4rem; flex-shrink: 0; }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .button { margin-top: .75rem; }

.search-form { display: flex; gap: .4rem; }
.search-form input { min-width: 220px; }

/* Forms ------------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--muted); font-size: .82rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="search"], select, textarea {
    width: 100%; padding: .65rem .85rem; font: inherit; font-size: .95rem;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: 0; border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="color"] { width: 100%; height: 42px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
input[readonly] { color: var(--muted); }
textarea { resize: vertical; }

.hint { font-size: .82rem; color: var(--muted); margin: .3rem 0 0; }
.static-value { margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.checkbox { display: flex; align-items: center; gap: .45rem; font-weight: 400; }
.checkbox input { width: auto; }
.field-check label.checkbox { margin-bottom: 0; }

.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.input-prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.input-prefix .prefix { display: flex; align-items: center; padding: 0 .7rem; background: var(--mist); color: var(--muted); border-right: 1px solid var(--border); white-space: nowrap; font-size: .9rem; }
.input-prefix input { border: 0; border-radius: 0; }
.input-prefix input:focus { box-shadow: none; }

.form-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.form-actions { display: flex; align-items: center; gap: .6rem; margin-top: .25rem; }
.form-actions .spacer { flex: 1; }

/* Live preview ------------------------------------------------------------ */
.preview { text-align: center; margin-bottom: 1.25rem; }
.preview img {
    border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
    max-width: 100%; height: auto; box-shadow: var(--shadow);
}
.preview-note { text-align: left; }
/* The preview swaps its src as the styling controls move; fading the change
   keeps a logo upload from flashing the whole square. */
.preview img.is-loading { opacity: .55; transition: opacity .15s; }

/* Code detail ------------------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.code-card { text-align: center; }
.code-image { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; max-width: 100%; height: auto; }
.short-link { display: flex; gap: .4rem; margin: 1rem 0 .6rem; }
.short-link input { flex: 1; min-width: 0; }
.download-row { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }

.breakdown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.breakdown-grid .card { margin-bottom: 0; }

.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.bars li { display: grid; grid-template-columns: minmax(70px, 30%) 1fr auto; align-items: center; gap: .6rem; font-size: .87rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: var(--mist-2); border-radius: var(--pill); height: 8px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--grad-violet); border-radius: var(--pill); }
.bar-value { color: var(--muted); font-variant-numeric: tabular-nums; }

.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.row-muted td { color: var(--muted); }

.danger-zone {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem 1.5rem; margin-top: 1.25rem;
}
.danger-zone h2 { margin: 0 0 .2rem; }
.danger-zone p { margin: 0; font-size: .87rem; color: var(--muted); }

/* Auth and errors --------------------------------------------------------- */
.auth-card { max-width: 420px; margin: 3rem auto; padding: 2rem; box-shadow: var(--shadow); }
.auth-card h1 { margin-bottom: .3rem; }
.auth-card > .muted { margin-top: 0; margin-bottom: 1.5rem; font-size: .9rem; }
.auth-card .button { margin-top: .3rem; }
.auth-alt { font-size: .88rem; margin: 1.1rem 0 0; text-align: center; color: var(--muted); }

/* body is a flex column, so the error card centres on the cross axis too. */
.error-page { justify-content: center; align-items: center; }
.error-card { max-width: 460px; margin: 0 auto; text-align: center; }
.error-code {
    font-family: var(--font-display); font-size: 3rem; font-weight: 800; margin: 0 0 .3rem;
    background: var(--grad-violet); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Bar widths as classes: the Content-Security-Policy blocks inline style
   attributes, so the percentage is rounded to the nearest 5 and set here. */
.w-2 { width: 2%; }
.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }

/* Install ----------------------------------------------------------------- */
.install-card { max-width: 560px; box-shadow: var(--shadow); }
.install-steps { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; font-size: .85rem; }
.install-steps li { color: var(--muted); }
.install-steps li.is-current { color: var(--accent); font-weight: 600; }
.check-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.check-list li { padding: .5rem 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; }
.check-list li:last-child { border-bottom: 0; }
.check-ok { color: var(--success-text); font-weight: 500; }
.check-fail { color: var(--error-text); font-weight: 500; }

@media (max-width: 820px) {
    .form-columns, .detail-grid { grid-template-columns: 1fr; }
    .code-item { flex-wrap: wrap; }
    .code-actions { width: 100%; }
}

@media (max-width: 520px) {
    .wrap { width: calc(100% - 1.5rem); }
    .header-inner { height: auto; padding: .75rem 0; flex-wrap: wrap; }
    .nav { gap: .15rem; }
    .nav a, .link-button { padding: .45rem .7rem; font-size: .9rem; }
    .field-row { grid-template-columns: 1fr; }
    .search-form { width: 100%; }
    .search-form input { min-width: 0; flex: 1; }
    h1 { font-size: 1.5rem; }
}

/* Type picker ------------------------------------------------------------- */
.group-note { margin-top: -.6rem; margin-bottom: 1rem; }
.type-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .85rem; }
.type-card {
    display: flex; flex-direction: column; gap: .2rem; height: 100%;
    padding: 1.1rem 1.15rem; border: 1px solid var(--border); border-radius: var(--radius);
    text-decoration: none; color: var(--text); background: var(--surface);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.type-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); }
.type-name { font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.type-description { font-size: .86rem; color: var(--muted); }
.type-flag { font-size: .76rem; color: var(--accent); font-weight: 500; margin-top: .15rem; }

/* Radio cards (delivery mode, menu mode) ---------------------------------- */
fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
legend { font-size: .9rem; font-weight: 600; padding: 0; margin-bottom: .5rem; }
.radio-card {
    display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .5rem;
    padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s;
}
.radio-card:hover { border-color: var(--accent); }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { margin-top: .25rem; flex-shrink: 0; }
.radio-card strong { display: block; font-size: .92rem; font-weight: 600; }
.radio-card .hint { margin-top: .1rem; }
.brand-fields { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem; }
.brand-fields legend { padding: 0 .4rem; margin-left: -.4rem; }

details.field-group { margin-bottom: 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem 1rem; background: var(--surface); }
details.field-group summary { cursor: pointer; font-size: .9rem; font-weight: 600; font-family: var(--font-display); }
details.field-group[open] summary { margin-bottom: .9rem; }

/* Menu builder ------------------------------------------------------------ */
.menu-section { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: .8rem; background: var(--surface); }
.menu-items { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .7rem; }
.menu-item { display: grid; grid-template-columns: 2fr 1fr; gap: .4rem; align-items: center; }
.menu-item-description { grid-column: 1 / -1; }
.menu-item-soldout { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }

/* Public pages ------------------------------------------------------------
   These carry the code owner's own brand colour, which layout.php injects as
   --accent, so they stay deliberately neutral around it. */
.public-page { background: var(--bg); }
.public-wrap { width: min(560px, 100% - 2rem); margin: 0 auto; padding: 2.5rem 0 1rem; flex: 1; }
.public-header { text-align: center; margin-bottom: 1.75rem; }
.public-header h1 { font-size: 1.6rem; margin: 0; }
.public-logo { display: block; margin: 0 auto .85rem; border-radius: var(--radius); object-fit: contain; }
.public-subtitle { color: var(--muted); margin: .3rem 0 0; font-size: .92rem; }
.public-lead { text-align: center; color: var(--muted); margin: 0 0 1.25rem; }
.public-note { font-size: .87rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem .95rem; }
.public-footer { text-align: center; color: var(--muted); font-size: .78rem; padding: 1.5rem 1rem 2.5rem; }
.public-footer p { margin: 0; }

.credential { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .95rem 1rem; margin-bottom: .8rem; }
.credential-label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: .35rem; }
.credential-row { display: flex; gap: .4rem; }
.credential-row input { flex: 1; min-width: 0; font-size: 1rem; }
.steps { color: var(--muted); font-size: .9rem; padding-left: 1.2rem; margin: 1.25rem 0; }
.steps li { margin-bottom: .3rem; }

.detail-list { list-style: none; margin: 1.25rem 0; padding: 0; }
.detail-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.detail-list li:last-child { border-bottom: 0; }
.detail-label { color: var(--muted); font-size: .85rem; flex-shrink: 0; }

.menu-section-public { margin-bottom: 1.75rem; }
.menu-section-public h2 {
    font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: .45rem; margin-bottom: .3rem;
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-row { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.menu-row:last-child { border-bottom: 0; }
.menu-row-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.menu-row-name { font-weight: 600; }
.menu-row-description { font-size: .86rem; color: var(--muted); }
.menu-row-price { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.menu-row.is-sold-out .menu-row-name, .menu-row.is-sold-out .menu-row-price { color: var(--muted); text-decoration: line-through; }
.menu-row.is-sold-out .badge { text-decoration: none; }
.menu-note { font-size: .84rem; color: var(--muted); text-align: center; margin-top: 1.5rem; }
.menu-image { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: .8rem; }

@media (max-width: 520px) {
    .menu-item { grid-template-columns: 1fr; }
}
