:root {
  --wine: #881944;
  --wine-dark: #5f0e2d;
  --wine-soft: #f6e8ed;
  --ink: #111111;
  --muted: #6f696b;
  --cream: #f7f4f1;
  --white: #ffffff;
  --line: #e7dfdf;
  --green: #237653;
  --red: #a72b2b;
  --shadow: 0 16px 50px rgba(36, 20, 26, .08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--sans); background: var(--white); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.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; }
.eyebrow { margin: 0; font-size: .68rem; line-height: 1; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; }
.color-wine { color: var(--wine); }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; }

/* Public menu */
.menu-body { background: var(--white); }
.menu-hero { position: relative; min-height: 610px; padding: 28px max(6vw, 24px); overflow: hidden; color: #fff; background: var(--ink); }
.menu-hero::before { content: ""; position: absolute; inset: -25%; background: radial-gradient(circle at 76% 54%, rgba(136, 25, 68, .82), transparent 30%), radial-gradient(circle at 87% 33%, rgba(136, 25, 68, .25), transparent 18%), linear-gradient(130deg, transparent 45%, rgba(136, 25, 68, .18)); transform: rotate(-4deg); }
.menu-hero::after { content: ""; position: absolute; width: 55vw; height: 55vw; right: -15vw; top: -32vw; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; }
.menu-hero__top, .menu-hero__content, .scroll-cue { position: relative; z-index: 2; }
.menu-hero__top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.public-brand img { width: auto; height: 54px; max-width: 230px; object-fit: contain; filter: brightness(0) invert(1); }
.menu-hero__content { max-width: 850px; margin: 115px auto 70px; }
.menu-hero__content > .eyebrow { color: #dfa8bb; }
.menu-hero h1 { font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 7rem); line-height: .92; letter-spacing: -.055em; margin: 18px 0 28px; font-weight: 600; }
.menu-hero h1 em { color: #dca6b8; font-weight: 400; }
.menu-hero__content > p:last-child { max-width: 540px; color: #d9d3d5; font-size: 1.05rem; line-height: 1.75; }
.hero-orbit { position: absolute; width: 330px; height: 330px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 50%; right: 7%; bottom: -92px; display: grid; place-items: center; }
.hero-orbit::before { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; }
.hero-orbit span { font-family: var(--serif); font-size: 9rem; color: rgba(255, 255, 255, .07); }
.scroll-cue { position: absolute; bottom: 30px; left: max(6vw, 24px); display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.scroll-cue i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; font-style: normal; }
.menu-shell { max-width: 1240px; margin: auto; padding: 0 5vw 90px; }
.menu-tools { position: sticky; z-index: 8; top: 0; margin: 0 -5vw 42px; padding: 16px 5vw 14px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .025); }
.menu-tools__row { display: flex; align-items: center; gap: 10px; float: left; margin-right: 16px; }
.search { height: 45px; min-width: 260px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); padding: 0 12px; background: var(--cream); }
.search > span { font-size: 1.25rem; line-height: 1; }
.search input { border: 0; background: transparent; outline: 0; width: 100%; color: var(--ink); }
.search button { border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.filter-toggle { display: none; height: 45px; border: 1px solid var(--ink); background: #fff; padding: 0 14px; font-weight: 700; }
.diet-filters { display: flex; float: right; gap: 6px; margin: 3px 0 11px; }
.filter-chip { min-height: 38px; white-space: nowrap; padding: 8px 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .75rem; font-weight: 700; }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--wine); background: var(--wine-soft); color: var(--wine); }
.category-tabs { display: flex; clear: both; gap: 7px; overflow: auto; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; text-decoration: none; border: 1px solid var(--ink); padding: 10px 16px; font-size: .8rem; font-weight: 700; transition: .2s ease; }
.chip.is-active, .chip:hover { background: var(--wine); color: #fff; border-color: var(--wine); }
.menu-notice { display: flex; align-items: center; gap: 14px; margin: 0 0 52px; padding: 16px 20px; color: var(--wine-dark); background: var(--wine-soft); border-left: 3px solid var(--wine); }
.menu-notice span { font-size: 1.2rem; }
.menu-notice p { margin: 0; font-size: .9rem; }
.menu-section { scroll-margin-top: 135px; margin-bottom: 78px; }
.section-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.section-heading > span { color: var(--wine); font-size: .7rem; font-weight: 800; }
.section-heading h2 { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3.35rem); line-height: 1; letter-spacing: -.03em; margin: 0; font-weight: 600; }
.section-heading p { margin: 8px 0 0; color: var(--muted); font-size: .84rem; }
.section-heading i { height: 1px; background: var(--ink); flex: 1; margin-left: 10px; }
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dish-card { position: relative; min-width: 0; min-height: 220px; background: #fff; transition: opacity .2s; }
.dish-card__body { height: 100%; padding: 30px; display: flex; flex-direction: column; }
.dish-card__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dish-card h3 { max-width: 75%; font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; margin: 0; font-weight: 600; }
.dish-card__title strong { color: var(--wine); white-space: nowrap; }
.dish-card__body > p { color: var(--muted); line-height: 1.65; margin: 13px 0; font-size: .92rem; }
.dish-card--image { display: grid; grid-template-columns: 40% 60%; min-height: 285px; }
.dish-card__image { position: relative; overflow: hidden; min-height: 250px; }
.dish-card__image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s ease; }
.dish-card:hover .dish-card__image img { transform: scale(1.035); }
.dish-card__image > span { position: absolute; inset: 12px auto auto 12px; z-index: 2; padding: 7px 10px; background: var(--ink); color: #fff; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.dish-card.is-unavailable { opacity: .63; }
.dish-card.is-unavailable .dish-card__image img { filter: grayscale(.8); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.tag { padding: 5px 8px; background: var(--cream); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; }
.tag--accent { background: var(--wine-soft); color: var(--wine); }
.tag--diet { color: var(--green); background: #e8f3ee; }
.allergens { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .67rem; line-height: 1.5; }
.allergens span { color: var(--ink); font-weight: 700; }
.sold-out { position: absolute; right: 28px; bottom: 26px; padding: 5px 8px; color: #fff; background: var(--ink); font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; }
.no-results { padding: 100px 20px; text-align: center; background: var(--cream); }
.no-results > span { display: block; color: var(--wine); font-family: var(--serif); font-size: 4rem; }
.no-results h2 { margin: 10px 0; font-family: var(--serif); font-size: 2rem; }
.no-results p { color: var(--muted); }
.allergen-note { max-width: 790px; margin: 30px auto 0; color: var(--muted); font-size: .7rem; line-height: 1.6; text-align: center; }
.menu-footer { padding: 70px max(6vw, 24px) 25px; color: #fff; background: var(--wine); }
.menu-footer__main { max-width: 1120px; margin: 0 auto 70px; display: flex; justify-content: space-between; gap: 50px; }
.menu-footer__main > div:first-child { max-width: 380px; }
.menu-footer__main img { width: auto; height: 65px; object-fit: contain; filter: brightness(0) invert(1); }
.menu-footer__main .wordmark { font-size: 1.8rem; }
.menu-footer__main p { color: rgba(255, 255, 255, .72); line-height: 1.6; }
.footer-details { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 38px; }
.footer-details p { margin: 0; }
.footer-details span { display: block; color: #fff; margin-bottom: 8px; font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.footer-details a { color: inherit; }
.menu-footer__bottom { max-width: 1120px; margin: auto; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .25); display: flex; justify-content: space-between; font-size: .67rem; color: rgba(255, 255, 255, .6); }
.menu-footer__bottom div { display: flex; gap: 18px; }

/* Shared controls */
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; padding: 10px 17px; font-weight: 750; font-size: .82rem; text-decoration: none; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: #fff; background: var(--wine); border-color: var(--wine); }
.button--primary:hover { background: var(--wine-dark); }
.button--dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.button--secondary { color: var(--ink); background: #fff; border-color: #cfc7c9; }
.button--secondary:hover { border-color: var(--ink); }
.button--ghost { color: var(--muted); background: transparent; }
.button--wide { width: 100%; }
.button--small { min-height: 36px; padding: 7px 12px; font-size: .75rem; }
.button--large { min-height: 51px; }
.text-link, .back-link { color: var(--wine); font-size: .78rem; font-weight: 700; }
.back-link { display: inline-block; margin-bottom: 20px; text-decoration: none; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: #fff; text-decoration: none; cursor: pointer; }
.danger { color: var(--red) !important; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--wine); border-radius: 50%; font-family: var(--serif); font-size: 1.35rem; }
.brand-mark--large { width: 62px; height: 62px; font-size: 2rem; }
.flash { max-width: calc(100% - 64px); margin: 18px 32px 0; min-height: 48px; padding: 11px 14px; display: flex; align-items: center; gap: 10px; font-size: .82rem; border: 1px solid; }
.flash > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; }
.flash > button { margin-left: auto; border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; }
.flash--success { color: #175a3f; background: #eaf6f0; border-color: #bddbcd; }
.flash--success > span { background: var(--green); }
.flash--error { color: #812222; background: #fbecec; border-color: #e9c0c0; }
.flash--error > span { background: var(--red); }

/* Admin shell */
.admin-body { min-height: 100vh; background: #f5f3f2; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 244px; display: flex; flex-direction: column; color: #fff; background: var(--ink); }
.sidebar__brand { min-height: 90px; padding: 22px 20px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255, 255, 255, .12); text-decoration: none; }
.sidebar__brand strong, .sidebar__brand small { display: block; }
.sidebar__brand strong { font-family: var(--serif); font-size: 1rem; }
.sidebar__brand small { margin-top: 3px; color: rgba(255, 255, 255, .48); font-size: .61rem; text-transform: uppercase; letter-spacing: .1em; }
.sidebar__nav { padding: 24px 12px; display: grid; gap: 4px; }
.sidebar__nav a, .sidebar__bottom a, .sidebar__bottom button { min-height: 45px; display: flex; align-items: center; gap: 13px; padding: 10px 13px; border: 0; color: rgba(255, 255, 255, .68); background: transparent; text-decoration: none; font-size: .79rem; cursor: pointer; }
.sidebar__nav a > span, .sidebar__bottom span { width: 20px; text-align: center; font-size: 1rem; }
.sidebar__nav a:hover, .sidebar__nav a.is-active, .sidebar__bottom a:hover, .sidebar__bottom button:hover { color: #fff; background: rgba(136, 25, 68, .55); }
.sidebar__nav a.is-active { position: relative; background: var(--wine); }
.sidebar__nav a.is-active::before { content: ""; position: absolute; left: -12px; width: 3px; height: 24px; background: #fff; }
.sidebar__bottom { margin-top: auto; padding: 15px 12px 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.sidebar__bottom form, .sidebar__bottom button { width: 100%; }
.admin-main { min-height: 100vh; margin-left: 244px; display: flex; flex-direction: column; }
.admin-topbar { min-height: 90px; padding: 16px 32px; display: flex; align-items: center; gap: 15px; background: #fff; border-bottom: 1px solid var(--line); }
.admin-topbar > div:first-of-type p { margin: 0 0 4px; color: var(--muted); font-size: .67rem; }
.admin-topbar h1 { margin: 0; font-family: var(--serif); font-size: 1.65rem; font-weight: 600; }
.sidebar-toggle { display: none; }
.admin-user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-user > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--wine); background: var(--wine-soft); font-family: var(--serif); font-weight: 700; }
.admin-user strong, .admin-user small { display: block; }
.admin-user strong { font-size: .77rem; }
.admin-user small { margin-top: 3px; color: var(--muted); font-size: .64rem; }
.admin-content { width: 100%; max-width: 1480px; margin: 0 auto; padding: 32px; flex: 1; }
.admin-footer { min-height: 55px; padding: 15px 32px; display: flex; justify-content: space-between; align-items: center; color: #9b9597; border-top: 1px solid var(--line); font-size: .66rem; }
.panel { background: #fff; border: 1px solid var(--line); box-shadow: 0 5px 25px rgba(43, 28, 34, .025); }
.panel__head { min-height: 82px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.panel__head h2 { margin: 6px 0 0; font-family: var(--serif); font-size: 1.28rem; }
.panel__head > a, .panel__head > span { color: var(--wine); font-size: .71rem; font-weight: 700; text-decoration: none; }
.page-actions { min-height: 48px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.page-actions p { margin: 0; color: var(--muted); font-size: .85rem; }

/* Dashboard */
.welcome-row { margin-bottom: 27px; padding: 5px 0 7px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.welcome-row h2 { margin: 7px 0; font-family: var(--serif); font-size: 2rem; }
.welcome-row p:last-child { margin: 0; color: var(--muted); font-size: .84rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { min-height: 145px; padding: 22px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.stat-card > span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 750; }
.stat-card strong { margin-top: auto; font-family: var(--serif); font-size: 2.5rem; font-weight: 600; }
.stat-card small { color: var(--muted); font-size: .68rem; }
.stat-card--accent { color: #fff; background: var(--wine); border-color: var(--wine); }
.stat-card--accent > span, .stat-card--accent small { color: rgba(255, 255, 255, .7); }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.compact-list { padding: 4px 22px; }
.compact-item { min-height: 76px; display: grid; grid-template-columns: 46px 1fr auto 10px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); text-decoration: none; }
.compact-item:last-child { border-bottom: 0; }
.compact-item img, .thumb-placeholder { width: 44px; height: 44px; object-fit: cover; }
.thumb-placeholder { display: grid; place-items: center; color: var(--wine); background: var(--wine-soft); font-family: var(--serif); font-size: 1.25rem; }
.compact-item strong, .compact-item small { display: block; }
.compact-item strong { font-size: .78rem; }
.compact-item small { margin-top: 4px; color: var(--muted); font-size: .65rem; }
.compact-item > b { color: #aaa; font-size: 1.3rem; }
.status-dot { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .65rem; }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #bbb; }
.status-dot.is-on { color: var(--green); }
.status-dot.is-on::before { background: var(--green); }
.timeline { padding: 13px 22px 16px; }
.timeline__item { position: relative; min-height: 61px; display: flex; gap: 13px; }
.timeline__item::before { content: ""; position: absolute; left: 4px; top: 16px; bottom: -5px; width: 1px; background: var(--line); }
.timeline__item:last-child::before { display: none; }
.timeline__item i { position: relative; z-index: 1; width: 9px; height: 9px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 4px var(--wine-soft); }
.timeline__item strong, .timeline__item small { display: block; }
.timeline__item strong { font-size: .75rem; }
.timeline__item small { max-width: 260px; margin-top: 5px; color: var(--muted); font-size: .62rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-panel { margin-top: 20px; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #fff; background: var(--ink); }
.quick-panel > div { display: flex; align-items: center; gap: 14px; }
.quick-panel strong { display: block; font-family: var(--serif); font-size: 1.12rem; }
.quick-panel p { margin: 5px 0 0; color: rgba(255, 255, 255, .57); font-size: .7rem; }
.quick-panel .button--secondary { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .35); }

/* Tables and filters */
.filterbar { margin-bottom: 16px; padding: 13px; display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); }
.search--admin { min-width: 280px; height: 39px; }
.filterbar select { min-height: 39px; padding: 0 30px 0 11px; border: 1px solid var(--line); background: #fff; font-size: .75rem; }
.filterbar .text-link { margin-left: auto; }
.table-panel { overflow: visible; }
.table-meta { min-height: 60px; padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.table-meta strong { font-size: .8rem; }
.table-meta span { color: var(--muted); font-size: .68rem; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { height: 43px; padding: 10px 15px; color: var(--muted); background: #faf9f8; border-bottom: 1px solid var(--line); font-size: .62rem; text-transform: uppercase; letter-spacing: .09em; text-align: left; white-space: nowrap; }
.data-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); font-size: .74rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fdfcfc; }
.dish-cell { min-width: 290px; display: flex; align-items: center; gap: 12px; }
.dish-cell img { width: 52px; height: 52px; flex: 0 0 auto; object-fit: cover; }
.dish-cell strong, .dish-cell small { display: block; }
.dish-cell strong { max-width: 240px; font-size: .78rem; }
.dish-cell small { max-width: 320px; margin-top: 4px; color: var(--muted); font-size: .64rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-tags { display: flex; gap: 4px; margin-top: 5px; }
.mini-tags span { padding: 2px 5px; color: var(--wine); background: var(--wine-soft); font-size: .55rem; text-transform: uppercase; }
.state-actions { display: grid; justify-items: start; gap: 5px; }
.state-actions form { margin: 0; }
.pill, .availability { border: 0; background: none; cursor: pointer; font-size: .65rem; }
.pill { min-width: 69px; padding: 5px 8px; display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; }
.pill i { width: 6px; height: 6px; border-radius: 50%; }
.pill--on { color: var(--green); background: #e7f4ed; }
.pill--on i { background: var(--green); }
.pill--off { color: var(--muted); background: #eee; }
.pill--off i { background: #999; }
.availability { color: var(--green); }
.availability.is-unavailable { color: var(--red); font-weight: 700; }
.move-actions { display: flex; gap: 3px; }
.move-actions form { margin: 0; }
.move-actions button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.row-actions { position: relative; min-width: 82px; display: flex; justify-content: flex-end; gap: 4px; }
.action-menu { display: none; position: absolute; z-index: 10; right: 0; top: 42px; min-width: 155px; padding: 5px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.action-menu.is-open { display: block; }
.action-menu form { margin: 0; }
.action-menu button { width: 100%; padding: 9px 10px; border: 0; background: none; text-align: left; cursor: pointer; font-size: .72rem; }
.action-menu button:hover { background: var(--cream); }
.cell-note { display: block; max-width: 350px; margin-top: 4px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { padding: 35px; color: var(--muted); text-align: center; font-size: .78rem; }
.empty-state--large { padding: 75px 25px; }
.empty-state--large > span { font-size: 2rem; color: var(--wine); }
.empty-state--large h2 { margin: 10px 0 5px; color: var(--ink); font-family: var(--serif); }
.empty-state--large p { margin: 0; }

/* Forms */
.field { display: grid; gap: 7px; }
.field > span, fieldset > legend { color: #3d383a; font-size: .7rem; font-weight: 750; }
.field input, .field select, .field textarea, .input-suffix { width: 100%; border: 1px solid #d8d1d3; background: #fff; outline: 0; transition: border-color .2s, box-shadow .2s; }
.field input, .field select { min-height: 44px; padding: 9px 11px; }
.field textarea { padding: 11px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus, .input-suffix:focus-within { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(136, 25, 68, .1); }
.field small { color: var(--muted); font-size: .6rem; text-align: right; }
.input-suffix { display: flex; align-items: center; }
.input-suffix input { border: 0; box-shadow: none !important; }
.input-suffix span { padding: 0 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.form-grid--compact { gap: 10px; }
.field--wide { grid-column: 1 / -1; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 20px; }
.editor-main { display: grid; gap: 20px; }
.editor-side { position: sticky; top: 18px; display: grid; gap: 14px; }
.form-section { padding: 24px; }
.form-section > h2 { margin: 6px 0; font-family: var(--serif); font-size: 1.3rem; }
.form-section > p { color: var(--muted); font-size: .74rem; line-height: 1.55; }
.form-section__head { margin: -24px -24px 23px; padding: 21px 24px; display: flex; gap: 14px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.form-section__head > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: var(--wine); border: 1px solid var(--wine); border-radius: 50%; font-size: .64rem; font-weight: 800; }
.form-section__head h2 { margin: 0; font-family: var(--serif); font-size: 1.28rem; }
.form-section__head p { margin: 5px 0 0; color: var(--muted); font-size: .68rem; }
fieldset { margin: 0; padding: 0; border: 0; }
fieldset > legend { margin-bottom: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.choice-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 7px; }
.choice-row legend { flex-basis: 100%; }
.check-card input { position: absolute; opacity: 0; pointer-events: none; }
.check-card > span { min-height: 38px; padding: 8px 10px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; font-size: .67rem; cursor: pointer; }
.check-card i { width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid #bbb; color: transparent; font-style: normal; font-size: .6rem; }
.check-card input:checked + span { color: var(--wine); border-color: var(--wine); background: var(--wine-soft); }
.check-card input:checked + span i { color: #fff; background: var(--wine); border-color: var(--wine); }
.spicy-field { max-width: 240px; margin-top: 20px; }
.fine-print { margin: 17px 0 0 !important; color: var(--muted); font-size: .61rem !important; line-height: 1.5; }
.upload-box { display: block; margin-top: 14px; }
.upload-box input { position: absolute; opacity: 0; pointer-events: none; }
.upload-preview { min-height: 180px; padding: 18px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; color: var(--muted); background: var(--cream); border: 1px dashed #c9bec1; text-align: center; cursor: pointer; overflow: hidden; }
.upload-preview:hover { color: var(--wine); border-color: var(--wine); }
.upload-preview > b { color: var(--wine); font-size: 1.8rem; font-weight: 400; }
.upload-preview > strong { color: var(--ink); font-size: .75rem; }
.upload-preview > small { font-size: .59rem; }
.upload-preview img { width: 100%; height: 180px; object-fit: cover; }
.upload-box--logo .upload-preview { min-height: 210px; background: var(--ink); color: rgba(255, 255, 255, .55); }
.upload-box--logo .upload-preview > strong { color: #fff; }
.upload-box--logo .upload-preview img { height: 190px; object-fit: contain; filter: brightness(0) invert(1); }
.inline-check { margin: 12px 0; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .67rem; }
.switch-row { padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row span strong, .switch-row span small { display: block; }
.switch-row span strong { font-size: .71rem; }
.switch-row span small { margin-top: 4px; color: var(--muted); font-size: .59rem; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row > i { position: relative; width: 37px; height: 21px; flex: 0 0 auto; border-radius: 20px; background: #c7c2c3; cursor: pointer; transition: .2s; }
.switch-row > i::after { content: ""; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch-row input:checked + i { background: var(--wine); }
.switch-row input:checked + i::after { transform: translateX(16px); }
.form-section hr { margin: 22px 0; border: 0; border-top: 1px solid var(--line); }

/* Categories and settings */
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.sticky-panel { position: sticky; top: 18px; }
.category-list { padding: 4px 20px; }
.category-row { min-height: 102px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.category-row:last-child { border-bottom: 0; }
.drag-index { color: var(--wine); font-family: var(--serif); font-size: .9rem; }
.category-edit { flex: 1; display: grid; grid-template-columns: minmax(140px, .8fr) minmax(180px, 1fr) auto auto auto; align-items: end; gap: 9px; }
.category-edit .field { gap: 4px; }
.category-edit input { min-height: 36px; padding: 7px 9px; font-size: .72rem; }
.category-edit .inline-check { min-height: 36px; margin: 0; }
.dish-count { min-height: 36px; display: flex; align-items: center; color: var(--muted); white-space: nowrap; font-size: .64rem; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.settings-layout > div { display: grid; gap: 20px; }

/* QR */
.qr-layout { display: grid; grid-template-columns: minmax(350px, .8fr) 1.2fr; gap: 35px; align-items: center; max-width: 1000px; margin: 10px auto 40px; }
.qr-card { position: relative; padding: 30px 38px 35px; text-align: center; background: #fff; box-shadow: 0 20px 60px rgba(30, 13, 20, .12); border: 1px solid var(--line); overflow: hidden; }
.qr-card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -120px; top: -120px; border: 30px solid var(--wine-soft); border-radius: 50%; }
.qr-card__brand { min-height: 50px; margin-bottom: 28px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.qr-card__brand img { width: auto; height: 55px; object-fit: contain; }
.qr-card__brand strong { font-family: var(--serif); }
.qr-card h2 { margin: 10px 0 18px; font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.qr-image { display: block; width: 240px; height: 240px; margin: auto; }
.scan-copy { margin: 12px 0 5px; font-weight: 700; font-size: .72rem; }
.qr-card > small { color: var(--muted); font-size: .58rem; }
.qr-help { display: grid; gap: 13px; }
.steps { padding: 0; margin: 25px 0; list-style: none; }
.steps li { display: flex; gap: 13px; margin-bottom: 19px; }
.steps li > span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--wine); background: var(--wine-soft); font-size: .68rem; font-weight: 800; }
.steps strong { font-size: .75rem; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: .67rem; }
.tip-card { display: flex; gap: 12px; padding: 15px; color: #fff; background: var(--wine); }
.tip-card > span { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; font-size: .7rem; }
.tip-card p { margin: 0; color: rgba(255, 255, 255, .75); font-size: .67rem; line-height: 1.5; }
.tip-card strong { display: block; color: #fff; }
.url-card { padding: 14px; background: #fff; border: 1px solid var(--line); }
.url-card > span { display: block; margin-bottom: 7px; font-size: .65rem; font-weight: 700; }
.url-card > div { display: flex; }
.url-card input { min-width: 0; flex: 1; padding: 9px; border: 1px solid var(--line); background: var(--cream); font-size: .67rem; }
.url-card button { border: 0; padding: 0 13px; color: #fff; background: var(--ink); font-size: .67rem; cursor: pointer; }

/* Profile and login */
.profile-grid { max-width: 900px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 20px; margin: auto; }
.profile-identity { margin: 25px 0; display: flex; align-items: center; gap: 13px; }
.profile-identity > span { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: var(--wine); border-radius: 50%; font-family: var(--serif); font-size: 1.6rem; }
.profile-identity p { margin: 5px 0 0; color: var(--muted); font-size: .7rem; }
.profile-grid form { display: grid; gap: 14px; margin-top: 22px; }
.login-page { min-height: 100vh; background: var(--cream); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .9fr) 1.1fr; }
.login-brand { position: relative; padding: 44px max(5vw, 40px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff; background: var(--ink); }
.login-brand::before { content: ""; position: absolute; width: 520px; height: 520px; right: -250px; bottom: -160px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; box-shadow: inset 0 0 0 100px rgba(136, 25, 68, .16), inset 0 0 0 180px rgba(136, 25, 68, .14); }
.login-brand > * { position: relative; z-index: 1; }
.login-brand > a { text-decoration: none; }
.login-brand h1 { margin: 16px 0 25px; font-family: var(--serif); font-size: clamp(3rem, 5vw, 5.3rem); line-height: .93; letter-spacing: -.045em; }
.login-brand h1 em { color: #dca6b8; font-weight: 400; }
.login-brand div > p:last-child { max-width: 440px; color: rgba(255, 255, 255, .62); line-height: 1.7; }
.login-brand > small { color: rgba(255, 255, 255, .38); }
.login-form-wrap { display: grid; place-items: center; padding: 40px; }
.login-form { width: min(400px, 100%); }
.login-form .brand-mark { margin-bottom: 28px; }
.login-form h2 { margin: 9px 0; font-family: var(--serif); font-size: 2.2rem; }
.form-intro { margin: 0 0 27px; color: var(--muted); font-size: .82rem; }
.login-form .field { margin-bottom: 16px; }
.login-form .flash { max-width: 100%; margin: 0 0 18px; }
.password-field { display: flex; border: 1px solid #d8d1d3; background: #fff; }
.password-field:focus-within { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(136, 25, 68, .1); }
.password-field input { border: 0 !important; box-shadow: none !important; }
.password-field button { width: 44px; border: 0; background: transparent; cursor: pointer; }
.secure-note { color: var(--muted); text-align: center; font-size: .61rem; }
.secure-note::first-letter { color: var(--green); }

/* Error */
.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--cream); text-align: center; }
.error-page main { padding: 30px; }
.error-page main > span { font-family: var(--serif); font-size: 7rem; line-height: 1; color: var(--wine); }
.error-page h1 { font-family: var(--serif); }
.error-page p { color: var(--muted); }

@media (max-width: 1150px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
  .category-edit { grid-template-columns: 1fr 1fr auto; }
  .category-edit .inline-check, .category-edit .dish-count { grid-row: 2; }
  .category-edit .button { grid-row: 2; }
}

@media (max-width: 940px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .sidebar.is-open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .sidebar-toggle { display: grid; }
  .dashboard-grid, .editor-layout, .settings-layout, .split-layout, .profile-grid { grid-template-columns: 1fr; }
  .editor-side, .sticky-panel { position: static; }
  .editor-side { grid-template-columns: 1fr 1fr; }
  .editor-side > .button { align-self: stretch; }
  .settings-layout > aside { order: -1; }
  .qr-layout { grid-template-columns: 380px 1fr; gap: 20px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 300px; padding: 35px; }
  .login-brand div { margin-top: 55px; }
  .login-brand h1 { font-size: 3.5rem; }
  .login-brand > small { display: none; }
}

@media (max-width: 760px) {
  .menu-hero { min-height: 540px; }
  .menu-hero__content { margin-top: 90px; }
  .menu-hero h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .hero-orbit { width: 270px; height: 270px; right: -115px; }
  .menu-tools { margin-bottom: 30px; }
  .menu-tools__row { width: 100%; float: none; }
  .search { min-width: 0; flex: 1; }
  .filter-toggle { display: block; }
  .diet-filters { display: none; float: none; padding: 10px 0 4px; overflow: auto; }
  .diet-filters.is-open { display: flex; }
  .category-tabs { padding-top: 9px; }
  .dish-grid { grid-template-columns: 1fr; }
  .dish-card { min-height: 0; }
  .dish-card--image { grid-template-columns: 38% 62%; min-height: 265px; }
  .menu-footer__main { display: block; margin-bottom: 50px; }
  .footer-details { margin-top: 40px; grid-template-columns: 1fr 1fr; }
  .admin-topbar { min-height: 76px; padding: 12px 18px; }
  .admin-topbar h1 { font-size: 1.35rem; }
  .admin-user div { display: none; }
  .admin-content { padding: 20px 16px; }
  .admin-footer { padding: 15px 18px; }
  .flash { max-width: calc(100% - 32px); margin: 14px 16px 0; }
  .welcome-row, .page-actions { align-items: flex-start; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .quick-panel { align-items: flex-start; flex-direction: column; }
  .filterbar { flex-wrap: wrap; }
  .search--admin { min-width: 100%; }
  .filterbar select { flex: 1; }
  .filterbar .text-link { margin-left: 5px; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .editor-side { grid-template-columns: 1fr; }
  .category-row { align-items: flex-start; padding: 16px 0; flex-wrap: wrap; }
  .category-edit { order: 3; flex-basis: 100%; grid-template-columns: 1fr 1fr; }
  .category-edit .inline-check, .category-edit .dish-count, .category-edit .button { grid-row: auto; }
  .category-edit .button { align-self: end; }
  .qr-layout { grid-template-columns: 1fr; }
  .qr-card { max-width: 400px; margin: auto; }
}

@media (max-width: 540px) {
  .menu-hero { min-height: 510px; padding-left: 20px; padding-right: 20px; }
  .menu-hero__top > .eyebrow { font-size: .58rem; }
  .public-brand img { max-width: 170px; height: 44px; }
  .menu-hero__content { margin-top: 82px; }
  .menu-hero__content > p:last-child { font-size: .9rem; }
  .scroll-cue { left: 20px; }
  .menu-shell { padding-left: 16px; padding-right: 16px; }
  .menu-tools { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .filter-toggle { font-size: .72rem; }
  .menu-notice { margin-bottom: 40px; }
  .section-heading i { display: none; }
  .section-heading h2 { font-size: 2rem; }
  .dish-card--image { display: block; }
  .dish-card__image { min-height: 220px; }
  .dish-card__body { padding: 23px; }
  .dish-card h3 { font-size: 1.28rem; }
  .footer-details { grid-template-columns: 1fr; gap: 20px; }
  .menu-footer__bottom { display: block; }
  .menu-footer__bottom div { margin-top: 12px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { min-height: 125px; padding: 16px; }
  .stat-card strong { font-size: 2rem; }
  .welcome-row { display: block; }
  .welcome-row .button { margin-top: 18px; width: 100%; }
  .form-grid, .category-edit { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .category-description { display: none; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .form-section { padding: 18px; }
  .form-section__head { margin: -18px -18px 20px; padding: 18px; }
  .login-form-wrap { padding: 35px 22px; }
  .login-brand { min-height: 275px; padding: 28px 22px; }
  .login-brand div { margin-top: 40px; }
  .login-brand h1 { font-size: 2.65rem; }
  .qr-card { padding: 28px 20px; }
  .qr-image { width: 220px; height: 220px; }
}

@media print {
  body { background: #fff !important; }
  .sidebar, .admin-topbar, .admin-footer, .flash, .page-actions, .qr-help { display: none !important; }
  .admin-main { margin: 0; }
  .admin-content { padding: 0; }
  .qr-layout { display: block; margin: 0; }
  .qr-card { width: 105mm; min-height: 148mm; margin: 10mm auto; padding-top: 16mm; box-shadow: none; border: 1px solid #ccc; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Mobile-first menu and consistency refinements */
.menu-body { min-width: 320px; color: var(--ink); background: #fbfaf9; font-size: .875rem; }
.menu-header { background: #fff; border-bottom: 1px solid var(--line); }
.menu-header__inner { min-height: 72px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.menu-header__inner > span { color: var(--wine); font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.menu-header .public-brand { min-width: 0; }
.menu-header .public-brand img { display: block; width: auto; height: 44px; max-width: 190px; object-fit: contain; filter: none; }
.menu-header .wordmark { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.2rem; }
.menu-shell { max-width: 1180px; margin: 0 auto; padding: 0 14px 42px; }
.menu-tools { position: sticky; z-index: 8; top: 0; margin: 0 -14px 24px; padding: 10px 14px 9px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(12px); }
.menu-tools__row { width: 100%; margin: 0; display: flex; float: none; gap: 8px; }
.menu-tools .search { min-width: 0; height: 42px; flex: 1; background: var(--cream); }
.menu-tools .search input { font-size: .82rem; }
.menu-tools .filter-toggle { height: 42px; display: block; padding: 0 12px; font-size: .72rem; }
.menu-tools .diet-filters { display: none; float: none; gap: 6px; margin: 0; padding: 9px 0 1px; overflow-x: auto; scrollbar-width: none; }
.menu-tools .diet-filters.is-open { display: flex; }
.filter-chip { min-height: 34px; padding: 7px 10px; font-size: .68rem; }
.category-tabs { padding-top: 9px; gap: 6px; }
.chip { padding: 8px 12px; font-size: .72rem; }
.menu-notice { margin: 0 0 30px; padding: 12px 14px; gap: 10px; }
.menu-notice p { font-size: .78rem; line-height: 1.45; }
.menu-section { margin-bottom: 42px; scroll-margin-top: 110px; }
.section-heading { margin-bottom: 15px; gap: 10px; align-items: flex-start; }
.section-heading > span { margin-top: 5px; font-size: .62rem; }
.section-heading h2 { font-size: 1.65rem; line-height: 1.08; }
.section-heading p { margin-top: 5px; font-size: .74rem; line-height: 1.4; }
.section-heading i { display: none; }
.dish-grid { grid-template-columns: 1fr; gap: 10px; background: transparent; border: 0; }
.dish-card { min-height: 0; border: 1px solid var(--line); }
.dish-card--image { display: block; min-height: 0; }
.dish-card__image { min-height: 176px; aspect-ratio: 16 / 9; }
.dish-card__body { padding: 18px; }
.dish-card__title { gap: 14px; }
.dish-card h3 { max-width: none; font-size: 1.12rem; line-height: 1.28; }
.dish-card__title strong { font-size: .88rem; }
.dish-card__body > p { margin: 9px 0; font-size: .8rem; line-height: 1.5; }
.tags { padding-top: 9px; }
.tag { font-size: .59rem; }
.allergens { margin-top: 10px; padding-top: 9px; font-size: .62rem; }
.sold-out { right: 18px; bottom: 16px; }
.no-results { padding: 55px 16px; }
.no-results > span { font-size: 3rem; }
.no-results h2 { font-size: 1.5rem; }
.allergen-note { margin-top: 24px; font-size: .64rem; }
.menu-social { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; background: var(--ink); }
.menu-social > span { font-family: var(--serif); font-size: .9rem; }
.menu-social nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.menu-social a { color: rgba(255, 255, 255, .82); font-size: .67rem; font-weight: 700; text-decoration: none; }

.menu-popup { width: min(92vw, 480px); max-height: min(88vh, 720px); margin: auto; padding: 0; border: 0; color: var(--ink); background: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, .32); overflow: visible; }
.menu-popup::backdrop { background: rgba(8, 5, 6, .72); backdrop-filter: blur(3px); }
.menu-popup__close { position: absolute; z-index: 2; width: 38px; height: 38px; right: 9px; top: 9px; border: 0; border-radius: 50%; color: #fff; background: rgba(17, 17, 17, .88); font-size: 1.35rem; cursor: pointer; }
.menu-popup__content { overflow: auto; max-height: min(88vh, 720px); }
.menu-popup__content.is-text { padding: 34px 24px 25px; }
.menu-popup__content.is-text h2 { margin: 12px 0 10px; font-family: var(--serif); font-size: 1.65rem; line-height: 1.15; }
.menu-popup__content.is-text > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; white-space: pre-line; }
.menu-popup__content.is-image > img, .menu-popup__content.is-image > a:first-child img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.menu-popup__button { width: calc(100% - 40px); margin: 20px; }
.menu-popup__content.is-text .menu-popup__button { width: 100%; margin: 22px 0 0; }

/* Stronger active navigation and cleaner type scale */
.sidebar__nav a { position: relative; border-left: 4px solid transparent; padding-left: 11px; }
.sidebar__nav a.is-active { border-left-color: #fff; background: var(--wine); color: #fff; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.sidebar__nav a.is-active::before { display: none; }
.sidebar__nav a.is-active > span { color: #fff; }
.sidebar__bottom a.is-active { color: #fff; background: var(--wine); font-weight: 800; box-shadow: inset 4px 0 #fff; }
.admin-topbar h1 { font-size: 1.35rem; line-height: 1.15; }
.welcome-row h2 { font-size: 1.7rem; }
.panel__head h2, .form-section > h2, .form-section__head h2 { font-size: 1.15rem; line-height: 1.25; }
.page-actions p, .welcome-row p:last-child { font-size: .8rem; line-height: 1.45; }
.data-table td { font-size: .72rem; }
.button { font-size: .78rem; }

/* Admin mobile-first refinements */
.admin-content { padding: 18px 14px; }
.page-actions { align-items: stretch; flex-direction: column; }
.page-actions .button { width: 100%; }
.stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
.stat-card { min-height: 120px; padding: 15px; }
.stat-card strong { font-size: 1.9rem; }
.quick-panel { align-items: stretch; flex-direction: column; }
.quick-panel > div:last-child { align-items: stretch; flex-direction: column; width: 100%; }
.filterbar { align-items: stretch; }
.filterbar .button { flex: 1; }
.data-table { min-width: 780px; }
.form-section { padding: 18px; }
.form-section__head { margin: -18px -18px 20px; padding: 18px; }
.editor-layout, .settings-layout, .split-layout, .profile-grid { grid-template-columns: 1fr; }
.editor-side, .sticky-panel { position: static; }
.form-grid { grid-template-columns: 1fr; }
.field--wide { grid-column: auto; }
.choice-grid { grid-template-columns: 1fr 1fr; }

.popup-admin-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.popup-admin-grid > .empty-state { grid-column: 1 / -1; }
.popup-admin-card { overflow: hidden; }
.popup-admin-card.is-active { border-color: var(--wine); box-shadow: inset 0 3px 0 var(--wine); }
.popup-admin-card__preview { min-height: 170px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); background: var(--cream); }
.popup-admin-card__preview img { width: 100%; height: 190px; object-fit: contain; }
.popup-admin-card__preview > span { color: var(--wine); font-size: 2rem; }
.popup-admin-card__preview strong { margin-top: 9px; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; }
.popup-admin-card__preview p { margin: 7px 0 0; font-size: .7rem; line-height: 1.45; }
.popup-admin-card__body { padding: 17px; }
.popup-admin-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.popup-admin-card__head > div { display: flex; gap: 5px; }
.popup-admin-card__head small { color: var(--muted); font-size: .61rem; }
.popup-admin-card__body h2 { margin: 13px 0 4px; font-family: var(--serif); font-size: 1.15rem; }
.popup-admin-card__body > p { margin: 0; color: var(--muted); font-size: .63rem; }
.popup-admin-card__actions { margin-top: 15px; display: flex; align-items: center; gap: 6px; }
.popup-admin-card__actions form:last-child { margin-left: auto; }
.popup-type-panel { margin-top: 22px; }
.popup-upload .upload-preview { min-height: 240px; }
.popup-upload .upload-preview img { height: auto; max-height: 360px; object-fit: contain; }
.popup-frequency { margin-top: 18px; }

.qr-card::before { display: none; }
.qr-card { padding: 26px 20px 30px; }
.qr-card__brand strong { font-family: var(--serif); font-size: 1rem; }
.qr-card h2 { font-size: 1.65rem; }
.qr-image { width: min(240px, 78vw); height: auto; aspect-ratio: 1; }

.login-shell { display: block; }
.login-brand { min-height: 84px; padding: 24px 20px; display: flex; justify-content: center; }
.login-brand > div, .login-brand > small { display: none; }
.login-brand::before { display: none; }
.login-form-wrap { padding: 32px 20px; }
.login-form h2 { font-size: 1.8rem; }
.security-note { margin-top: 18px; padding: 12px; display: flex; gap: 10px; color: var(--muted); background: var(--cream); border: 1px solid var(--line); }
.security-note > span { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: .68rem; }
.security-note p { margin: 0; font-size: .62rem; line-height: 1.45; }
.security-note strong { display: block; color: var(--ink); }
.security-status { margin: 18px 0; padding: 12px; display: flex; align-items: flex-start; gap: 10px; color: var(--muted); background: var(--cream); border: 1px solid var(--line); }
.security-status > i { width: 9px; height: 9px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: #b08924; }
.security-status.is-on > i { background: var(--green); }
.security-status strong, .security-status span { display: block; }
.security-status strong { color: var(--ink); font-size: .7rem; }
.security-status span { margin-top: 3px; font-size: .61rem; line-height: 1.4; }
.verify-shell { min-height: 100vh; padding: 28px 20px; display: grid; place-items: center; }
.verify-form { width: min(420px, 100%); padding: 26px 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.verify-form h1 { margin: 10px 0; font-family: var(--serif); font-size: 1.85rem; }
.verify-form .back-link { display: block; margin: 18px 0 0; text-align: center; }
.otp-field input { height: 58px; font-size: 1.65rem; font-weight: 800; letter-spacing: .28em; text-align: center; }

@media (min-width: 700px) {
  .menu-header__inner { min-height: 84px; padding: 14px 28px; }
  .menu-header .public-brand img { height: 52px; max-width: 230px; }
  .menu-shell { padding: 0 28px 64px; }
  .menu-tools { margin: 0 -28px 36px; padding: 12px 28px 10px; }
  .menu-tools__row { width: auto; float: left; margin-right: 14px; }
  .menu-tools .search { min-width: 280px; }
  .menu-tools .filter-toggle { display: none; }
  .menu-tools .diet-filters { display: flex; float: right; padding: 4px 0 9px; }
  .category-tabs { clear: both; }
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .section-heading h2 { font-size: 2rem; }
  .menu-section { margin-bottom: 58px; }
  .menu-social { padding: 24px 28px; }
  .menu-social > span { font-size: 1.05rem; }
  .menu-social a { font-size: .72rem; }
  .admin-content { padding: 26px 24px; }
  .page-actions { align-items: center; flex-direction: row; }
  .page-actions .button { width: auto; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .popup-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-card { padding: 30px 38px 35px; }
}

@media (min-width: 941px) {
  .admin-content { padding: 30px 32px; }
  .admin-topbar h1 { font-size: 1.5rem; }
  .welcome-row h2 { font-size: 1.85rem; }
  .editor-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .settings-layout { grid-template-columns: minmax(0, 1fr) 350px; }
  .split-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .profile-grid { grid-template-columns: .75fr 1.25fr; }
  .editor-side, .sticky-panel { position: sticky; top: 18px; }
  .popup-admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .82fr) 1.18fr; }
  .login-brand { min-height: 100vh; padding: 44px max(5vw, 40px); display: flex; justify-content: space-between; }
  .login-brand > div, .login-brand > small { display: block; }
  .login-brand::before { display: block; }
  .login-brand h1 { font-size: clamp(3rem, 4.6vw, 4.8rem); }
}

@media print {
  .qr-card::before { display: none !important; }
}
