/* MyMenu: digital product look.
   Navy ink + electric cobalt, mint only for "live" states. One variable Georgian sans:
   condensed & heavy for display, regular for text. Motif: QR-module dot grid on dark surfaces. */
:root {
  --ink: #0b1226;
  --ink-2: #16203d;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e3e7ef;
  --line-strong: #cfd5e2;
  --muted: #5b6478;
  --brand: #2b59ff;
  --brand-ink: #1233b8;
  --brand-soft: #e8eeff;
  --live: #12c98b;
  --live-soft: #ddf8ee;
  --warn: #ffb020;
  --warn-soft: #fff4dc;
  --danger: #e5484d;
  --danger-soft: #fdeced;
  --accent: var(--brand);
  --font: 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 18, 38, .06), 0 8px 24px rgba(11, 18, 38, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/1.6 var(--font); font-variation-settings: 'wdth' 100; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font); line-height: 1.08; margin: 0 0 .5em; font-weight: 800; font-stretch: 78%; font-variation-settings: 'wdth' 78; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.12rem; font-weight: 700; font-stretch: 90%; font-variation-settings: 'wdth' 90; letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
.num, .price, .amount, .big, .stat-row b { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[x-cloak] { display: none !important; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 12px; border: 1.5px solid transparent; font: 600 .95rem/1 var(--font); cursor: pointer; text-decoration: none;
  background: var(--brand); color: #fff; transition: transform .08s ease, background .15s ease, border-color .15s ease; }
.btn:hover { background: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.green { background: var(--live); color: var(--ink); }
.btn.green:hover { background: #0fb27b; }
.btn.danger { background: var(--danger); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .85rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 11px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(43, 89, 255, .14); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.field + .field { margin-top: 14px; }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.alert { padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-soft); border: 1px solid #ffe2a3; }
.alert.error { background: var(--danger-soft); border-color: #f7c5c7; color: #8d1d21; }
.alert.ok { background: var(--brand-soft); border-color: #cdd9ff; }

/* ---------- site header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { font: 800 1.3rem/1 var(--font); font-stretch: 80%; font-variation-settings: 'wdth' 80; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.logo svg { width: 28px; height: 28px; }
.site-head nav { display: flex; gap: 4px; align-items: center; }
.site-head nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; }
.site-head nav a:not(.btn):hover { background: var(--bg); }
@media (max-width: 640px) { .site-head nav .hide-m { display: none; } }

/* ---------- landing ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 7vw, 96px); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
/* QR-module dot grid, fading out to the left so the headline stays clean. */
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1.3px, transparent 1.6px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%); mask-image: linear-gradient(100deg, transparent 30%, #000 75%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; max-width: 17ch; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.03; }
.hero .lede { font-size: 1.12rem; color: #b8c1d9; max-width: 44ch; margin-bottom: 28px; }
.hero .btn { background: var(--brand); }
.hero .btn:hover { background: #4a72ff; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero .btn.ghost:hover { border-color: #fff; }
.hero .fine { color: #8e98b3; font-size: .9rem; margin-top: 14px; }
.hero .qr-hint { display: flex; gap: 16px; align-items: center; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); max-width: 480px; }
.hero .qr-hint img { width: 84px; height: 84px; background: #fff; padding: 6px; border-radius: 12px; flex: none; }
.hero .qr-hint p { color: #b8c1d9; margin: 0; }
.hero .qr-hint a { color: #fff; }
.stage { position: relative; max-width: 350px; margin-inline: auto; width: 100%; }
.phone { background: var(--surface); color: var(--ink); border-radius: 36px; padding: 16px 14px 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
  border: 7px solid #1c2748; }
.phone .mini-head { padding: 8px 6px 10px; }
.phone .mini-head b { font: 800 1.2rem/1.15 var(--font); font-stretch: 80%; font-variation-settings: 'wdth' 80; display: block; }
.phone .langs { display: flex; gap: 4px; margin-top: 8px; }
.phone .langs span { font-size: .68rem; font-weight: 600; border-radius: 6px; padding: 2px 7px; background: var(--bg); color: var(--muted); }
.phone .langs span.on { background: var(--ink); color: #fff; }
.phone .cat-label { font: 700 .78rem/1 var(--font); color: var(--muted); margin: 12px 6px 2px; }
.toast { position: absolute; left: -56px; bottom: -34px; width: 250px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45); border-left: 4px solid var(--live); animation: toast-in .7s cubic-bezier(.2, .9, .3, 1.2) 1.2s both; }
.toast .t1 { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
.toast .t1::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px var(--live-soft); }
.toast .t2 { font-size: .8rem; color: var(--muted); margin-top: 2px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-24px, 12px) scale(.96); } }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .toast { left: 50%; margin-left: -125px; } .stage { margin-bottom: 30px; } }

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section.alt { background: var(--bg); }
.section h2 { max-width: 22ch; }
.lead { color: var(--muted); max-width: 58ch; font-size: 1.05rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 36px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.compare .col { padding: 28px 32px; background: var(--surface); }
.compare .col + .col { border-left: 1px solid var(--line); }
.compare .col.us { background: var(--ink); color: #fff; }
.compare .col.us .muted { color: #9aa4bf; }
.compare .label { font-weight: 600; font-size: .95rem; }
.compare .big { font: 800 clamp(2.6rem, 6vw, 4rem)/1 var(--font); font-stretch: 75%; font-variation-settings: 'wdth' 75; margin: 14px 0 8px; letter-spacing: -.02em; }
.compare .col.them .big { color: var(--danger); }
.compare .col.us .big { color: var(--live); }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } .compare .col + .col { border-left: 0; border-top: 1px solid var(--line); } }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.steps li { list-style: none; counter-increment: s; padding: 20px 24px 0 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 800 .95rem/1 var(--font); color: var(--brand); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; gap: 8px 16px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: 36px; padding: 0; }
.features li { list-style: none; padding: 18px 0 22px; border-top: 1px solid var(--line); }
.features b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.features .muted { font-size: .95rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.price-card { background: var(--surface); border-radius: var(--r-lg); padding: 36px; border: 1px solid var(--line); max-width: 560px; box-shadow: var(--shadow); }
.price-card .amount { font: 800 4rem/1 var(--font); font-stretch: 75%; font-variation-settings: 'wdth' 75; letter-spacing: -.02em; margin-bottom: 14px; }
.price-card .amount .per { font: 400 1rem var(--font); color: var(--muted); letter-spacing: 0; }
.site-foot { padding: 36px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* ---------- menu (guest) ---------- */
.menu-page { background: var(--surface); min-height: 100vh; padding-bottom: 120px; }
.menu-top { padding: 32px 0 8px; }
.menu-top h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); margin-bottom: 8px; }
.menu-top .meta { color: var(--muted); font-size: .92rem; }
.table-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; font-weight: 600; border-radius: 8px; padding: 4px 10px; font-size: .82rem; margin-top: 10px; }
.table-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.lang-bar { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.lang-bar a { flex: none; text-decoration: none; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 6px 12px; font-size: .86rem; font-weight: 500; }
.lang-bar a[aria-current] { background: var(--ink); color: #fff; }
.cat-nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  padding: 8px 0; border-bottom: 1px solid var(--line); }
.cat-nav .row { overflow-x: auto; scrollbar-width: none; }
.cat-nav a { flex: none; text-decoration: none; color: var(--ink); padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; border: 1.5px solid var(--line); }
.cat-nav a:hover { border-color: var(--ink); }
.cat { padding-top: 28px; scroll-margin-top: 60px; }
.cat h2 { font-size: 1.55rem; margin-bottom: 4px; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dish .line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.dish .name { font-weight: 600; font-size: 1.04rem; line-height: 1.35; }
.dish .leader { display: none; }
.dish .price { font-weight: 700; font-size: 1rem; white-space: nowrap; }
.dish .desc { grid-column: 1; color: var(--muted); font-size: .9rem; margin: 2px 0 0; line-height: 1.45; }
.dish .orig { display: block; font-size: .78rem; color: #8b93a7; margin-top: 2px; }
.dish .act { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.dish.off { opacity: .45; }
.dish.has-img { grid-template-columns: 1fr 104px; gap: 2px 16px; }
.dish.has-img .thumb { grid-column: 2; grid-row: 1 / span 2; position: relative; width: 104px; height: 104px; }
.dish.has-img .thumb img { width: 104px; height: 104px; object-fit: cover; border-radius: 14px; background: var(--bg); }
.dish.has-img .act { grid-column: 2; grid-row: 1 / span 2; align-self: end; justify-self: end; margin: 0 -6px -6px 0; z-index: 1; }
.dish.has-img .add { background: var(--surface); box-shadow: 0 4px 12px rgba(11, 18, 38, .18); }
.ai-chip { position: absolute; top: 6px; left: 6px; font: 700 .62rem/1 var(--font); letter-spacing: .02em; color: #fff; background: rgba(11, 18, 38, .62); backdrop-filter: blur(4px); padding: 3px 5px; border-radius: 5px; }
.ai-chip.static { position: static; display: inline-block; background: var(--ink); vertical-align: 1px; }
.brand-row { display: flex; align-items: center; gap: 14px; }
.brand-row h1 { margin-bottom: 0; }
.brand-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.menu-top .meta { margin-top: 8px; }
.qty { display: inline-flex; align-items: center; background: var(--ink); color: #fff; border-radius: 12px; overflow: hidden; }
.qty button { width: 36px; height: 38px; border: 0; background: transparent; color: #fff; font-size: 1.15rem; cursor: pointer; }
.qty span { min-width: 20px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.add { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--bg); color: var(--accent); font-size: 1.4rem; line-height: 1; cursor: pointer; font-weight: 500; }
.add:hover { background: var(--accent); color: #fff; }
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(255, 255, 255, .95) 35%); }
.cart-bar .btn { width: min(680px, 100%); margin-inline: auto; display: flex; justify-content: space-between; min-height: 58px; font-size: 1.02rem; background: var(--accent); border-radius: 16px; box-shadow: 0 12px 32px rgba(11, 18, 38, .28); }
.sheet-back { position: fixed; inset: 0; background: rgba(11, 18, 38, .55); z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--surface); border-radius: 22px 22px 0 0; max-height: 92vh; overflow-y: auto;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); }
.sheet .inner { width: min(640px, 100%); margin-inline: auto; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--bg); padding: 4px; border-radius: 12px; }
.seg button { border: 0; background: transparent; padding: 10px; border-radius: 9px; font: 600 .92rem var(--font); cursor: pointer; color: var(--muted); }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(11, 18, 38, .14); }
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.sum-row.total { font-weight: 800; font-size: 1.2rem; border-top: 1.5px solid var(--ink); margin-top: 6px; padding-top: 10px; }
.powered { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 40px; }

/* ---------- order status ---------- */
.track { list-style: none; padding: 0; margin: 24px 0; }
.track li { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: #a3abbd; }
.track li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.track li.done { color: var(--ink); }
.track li.done::before { background: var(--brand); border-color: var(--brand); }
.track li.now { color: var(--ink); font-weight: 700; }
.track li.now::before { background: var(--live); border-color: var(--live); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(18, 201, 139, .2); } }
@media (prefers-reduced-motion: reduce) { .track li.now::before, .toast, .ticket.new { animation: none; } * { scroll-behavior: auto !important; } }

/* ---------- dashboard ---------- */
.app-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.app-side { background: var(--ink); color: #b8c1d9; padding: 20px 12px; position: sticky; top: 0; height: 100vh; }
.app-side .logo { color: #fff; margin: 4px 10px 22px; }
.app-side a.tab { display: block; color: #b8c1d9; text-decoration: none; padding: 10px 12px; border-radius: 10px; margin-bottom: 2px; font-weight: 500; }
.app-side a.tab:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.app-side a.tab[aria-current] { background: var(--brand); color: #fff; }
.app-side .rest-name { font-size: .82rem; color: #7f89a6; padding: 0 12px; margin-bottom: 10px; }
.app-side form { margin-top: 20px; }
.app-side .link-btn { background: none; border: 0; color: #7f89a6; cursor: pointer; padding: 10px 12px; font: inherit; }
.app-main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; background: var(--bg); }
.app-main h1 { font-size: 2rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.plan-strip { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--r-sm); background: var(--warn-soft); margin-bottom: 18px; font-size: .92rem; }
.plan-strip.expired { background: var(--danger-soft); }
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: sticky; top: 0; height: auto; z-index: 20; padding: 8px 10px; display: flex; gap: 2px; overflow-x: auto; align-items: center; }
  .app-side .logo, .app-side .rest-name { display: none; }
  .app-side a.tab { white-space: nowrap; margin: 0; padding: 8px 10px; }
  .app-side form { margin: 0; }
}

/* orders board */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.ticket { background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); padding: 16px; position: relative; overflow: hidden; }
.ticket::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line-strong); }
.ticket.new::before { background: var(--live); }
.ticket.new { box-shadow: 0 0 0 2px var(--live-soft), var(--shadow); animation: arrive .6s ease-out; }
.ticket.accepted::before, .ticket.preparing::before { background: var(--warn); }
.ticket.ready::before { background: var(--brand); }
.ticket.done, .ticket.cancelled { opacity: .55; }
.ticket .num { font: 800 1.7rem/1 var(--font); font-stretch: 78%; font-variation-settings: 'wdth' 78; }
.ticket .kind { font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--bg); font-size: .82rem; }
.ticket ul { padding: 0; margin: 12px 0; list-style: none; }
.ticket li { padding: 5px 0; border-bottom: 1px solid var(--line); }
@keyframes arrive { from { transform: translateY(-6px); opacity: .3; } }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.stat-row { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-row div b { display: block; font: 800 1.8rem/1.1 var(--font); font-stretch: 78%; font-variation-settings: 'wdth' 78; color: var(--ink); }

/* menu editor */
.ed-cat { margin-top: 20px; }
.ed-cat > .row input { font-weight: 700; font-size: 1.05rem; background: var(--bg); border-color: transparent; }
.ed-item { display: grid; grid-template-columns: 88px 1fr 110px auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ed-thumb { position: relative; width: 88px; height: 88px; border-radius: 12px; background: var(--bg); border: 1.5px dashed var(--line-strong); overflow: hidden; }
.ed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ed-thumb.busy::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%) var(--brand-soft); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ed-thumb-tools { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; gap: 3px; justify-content: center; z-index: 1; }
.mini { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 5px; margin: 0; border: 0; border-radius: 6px; background: rgba(11, 18, 38, .78); color: #fff; font: 700 .68rem/1 var(--font); cursor: pointer; }
.mini:hover { background: var(--brand); }
.mini[disabled] { opacity: .4; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px var(--live-soft); margin-right: 6px; vertical-align: 1px; }
.ed-item textarea { min-height: 40px; font-size: .9rem; resize: vertical; }
.ed-item .tools { display: flex; gap: 6px; align-items: center; }
@media (max-width: 640px) { .ed-item { grid-template-columns: 76px 1fr 84px; } .ed-thumb { width: 76px; height: 76px; } .ed-item .tools { grid-column: 1 / -1; } }
.drop { border: 2px dashed var(--line-strong); border-radius: var(--r-md); padding: 32px; text-align: center; background: var(--bg); cursor: pointer; display: block; }
.drop:hover { border-color: var(--brand); }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.progress { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 40%; background: var(--brand); animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* QR print cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card-qr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; text-align: center; break-inside: avoid; }
.card-qr .rn { font-weight: 700; font-size: 1rem; }
.card-qr .tn { font: 800 2.1rem/1 var(--font); font-stretch: 78%; font-variation-settings: 'wdth' 78; margin: 8px 0; }
.card-qr img { width: 160px; height: 160px; margin: 8px auto; }
.card-qr .langs { font-size: .72rem; color: var(--muted); }
@media print {
  .app-side, .no-print, .plan-strip { display: none !important; }
  .app-shell { display: block; } .app-main { padding: 0; background: #fff; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 8mm; } .card-qr { border: 1px dashed #999; }
}

/* admin */
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th, table.t td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-weight: 600; color: var(--muted); }
.scroll-x { overflow-x: auto; }
.pill { display: inline-block; border-radius: 6px; padding: 1px 8px; font-size: .78rem; font-weight: 600; background: var(--bg); }
.pill.good { background: var(--live-soft); color: #0b6b4a; }
.pill.warn { background: var(--warn-soft); color: #7a5205; }
.pill.bad { background: var(--danger-soft); color: #8d1d21; }
.kill-zone { border: 2px solid var(--danger); }
pre.report { white-space: pre-wrap; font: .88rem/1.5 var(--font); background: var(--bg); padding: 12px; border-radius: var(--r-sm); margin: 6px 0 0; }

/* logo studio */
.logo-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.logo-opt { position: relative; width: 120px; height: 120px; margin: 0; padding: 0; border-radius: 16px; overflow: hidden; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.logo-opt img { width: 100%; height: 100%; object-fit: cover; }
.logo-opt.on { border-color: var(--brand); cursor: default; }
.logo-opt figcaption, .logo-opt span { position: absolute; left: 6px; bottom: 6px; font: 600 .7rem/1 var(--font); background: var(--ink); color: #fff; padding: 4px 7px; border-radius: 6px; }
.logo-opt.on figcaption { background: var(--brand); }
.logo-opt:not(.on):hover { border-color: var(--ink); }
