/* Единый стиль кабинета, входа и служебных страниц */
:root {
    --bg: #f6f3ee; --surface: #fff; --ink: #211d19; --muted: #6b635b; --line: #e6e0d8; --field: #a39a90;
    --accent: #c2410c; --accent-dark: #a0340a;
    --green: #256b42; --green-soft: #e0f1e6; --amber: #855008; --amber-soft: #fdefcf;
    --blue: #275a94; --blue-soft: #e2edf9; --red: #a82318; --red-soft: #fbe3e0;
    --side: #231e1a; --side-ink: #cfc6bc; --r: 16px;
    --shadow: 0 1px 2px rgb(60 40 20 / .05), 0 6px 20px rgb(60 40 20 / .05);
}
*, ::before, ::after { box-sizing: border-box; }
[hidden], .miss { display: none !important; }
html { scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
h3 { margin: 0; font-size: 15px; }
p { margin: 8px 0; }
a { color: var(--accent-dark); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.i { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hint { color: var(--muted); font-size: 14px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }

/* Каркас */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column; width: 232px; padding: 20px 12px 12px; background: var(--side); color: var(--side-ink); }
.sidebar :focus-visible { outline-color: #ffb38a; }
.brand { display: block; padding: 0 12px 20px; color: inherit; text-decoration: none; }
.brand b { display: block; color: #fff; font-size: 20px; letter-spacing: -.02em; }
.brand span { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; }
.sidebar nav, .nav-more { display: flex; flex: 1; flex-direction: column; gap: 4px; min-height: 0; }
.sidebar nav a, .more { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: inherit; font-weight: 500; text-decoration: none; }
.sidebar nav a:hover { background: rgb(255 255 255 / .07); color: #fff; }
.sidebar nav a[aria-current] { background: var(--accent); color: #fff; }
.sidebar .more { display: none; border: 0; background: none; font: inherit; cursor: pointer; }
.account { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 12px 0 0 12px; border-top: 1px solid rgb(255 255 255 / .12); }
.account div { min-width: 0; }
.account b { display: block; overflow: hidden; color: #fff; text-overflow: ellipsis; }
.account span { display: block; font-size: 13px; }
.page { max-width: 1472px; padding: 32px 32px 64px 264px; }
.page > * + * { margin-top: 20px; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.top .title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.back { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; border-radius: 12px; color: var(--ink); }
.back:hover { background: var(--line); }

/* Кнопки */
.btn, .icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn { padding: 8px 18px; background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-dark); }
.btn.ghost, .icon-btn { border-color: var(--line); background: var(--surface); color: var(--ink); font-weight: 500; }
.btn.ghost:hover, .icon-btn:hover { border-color: var(--field); background: var(--bg); }
.btn.danger, .icon-btn.danger { color: var(--red); }
.btn.danger:hover, .icon-btn.danger:hover { border-color: var(--red); background: var(--red-soft); }
.btn.wide { width: 100%; }
.icon-btn { flex: none; width: 44px; padding: 0; }
.btn:disabled, .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
[aria-busy=true] { pointer-events: none; opacity: .65; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row.end { justify-content: flex-end; }
.row form { display: contents; }

/* Карточки */
.card { padding: 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.card > * + * { margin-top: 14px; }
.card > h2 + .hint { margin-top: 6px; }
.card > [type=hidden] + *, .card.form > * { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 20px; }
.stack { display: grid; gap: 20px; min-width: 0; }
.empty { padding: 48px 20px; border: 1px dashed var(--field); border-radius: var(--r); color: var(--muted); text-align: center; }
.empty h2 { color: var(--ink); }

.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 13px; background: #ece7e0; color: #544c45; font-size: 13px; font-weight: 600; }
.badge.new { background: var(--accent); color: #fff; }
.badge.work { background: var(--amber-soft); color: var(--amber); }
.badge.ready { background: var(--green-soft); color: var(--green); }
.badge.way { background: var(--blue-soft); color: var(--blue); }
.badge.bad { background: var(--red-soft); color: var(--red); }
.alert { padding: 12px 16px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 500; }
.alert.warn { background: var(--amber-soft); color: var(--amber); }
.alert.bad { background: var(--red-soft); color: var(--red); }
.alert a { color: inherit; }

/* Главная */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; padding: 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
a.stat { transition: transform .15s; }
a.stat:hover { transform: translateY(-2px); }
.stat span { color: var(--muted); }
.stat b { margin: 4px 0; font-size: 32px; line-height: 1.2; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat small { margin-top: auto; color: var(--muted); font-size: 13px; }
.stat.hot { background: var(--accent); color: #fff; }
.stat.hot span, .stat.hot small { color: #fff; }

.cafe { display: flex; flex-direction: column; scroll-margin-top: 20px; }
.cafe h2, .cafe .who { overflow-wrap: anywhere; }
.cafe .term { margin: auto 0 0; }
.cafe .who + .hint { margin-bottom: 14px; }
.cafe details { margin-top: 4px; }

/* Списки */
.list { padding: 4px 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.item { display: flex; align-items: center; gap: 12px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.item .main > b, .item .main > a:first-child { font-size: 16px; font-weight: 600; }
.item .main > a:first-child { color: var(--ink); text-decoration: none; }
.item .main > a:first-child:hover { color: var(--accent-dark); text-decoration: underline; }
.item .main .hint { display: block; }
.item.off .main { opacity: .6; }
.position { display: grid; place-items: center; flex: none; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; background: var(--bg); color: var(--muted); font-weight: 600; }

/* Заказы */
.order { display: flex; flex-direction: column; }
.order .head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.order .head a { color: var(--ink); font-size: 18px; font-weight: 700; text-decoration: none; }
.order .head a:hover { color: var(--accent-dark); }
.order .head time { margin-left: 6px; color: var(--muted); font-size: 13px; }
.order .who { overflow-wrap: anywhere; }
.order .who b { display: block; }
.order .sum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: auto; padding-top: 14px; }
.order .sum b { font-size: 20px; }
.order .row .btn { flex: 1; }
.clamp { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.order.cart { border: 1px dashed var(--field); background: none; box-shadow: none; }
.conditions > div { margin-top: 4px; overflow-wrap: anywhere; }

.lines { width: 100%; border-collapse: collapse; }
.lines th { padding: 0 8px 8px 0; color: var(--muted); font-size: 13px; font-weight: 500; text-align: left; }
.lines td { padding: 12px 8px 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.lines .r { text-align: right; }
.lines td:last-child, .lines th:last-child { padding-right: 0; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 2px solid var(--ink); font-weight: 600; }
.total b { font-size: 24px; }
.actions { display: grid; gap: 8px; }

/* Товары */
.photo { display: grid; place-items: center; flex: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee8e0; color: var(--field); }
.product { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.product .body { display: flex; flex: 1; flex-direction: column; gap: 8px; margin: 0; padding: 16px; }
.product h2 { overflow-wrap: anywhere; font-size: 16px; }
.product .hint { display: -webkit-box; overflow: hidden; margin: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow-wrap: anywhere; }
.product .price { margin-top: auto; font-size: 18px; font-weight: 700; }
.product .row .btn { flex: 1; padding-inline: 8px; }
.product.off .photo { opacity: .6; filter: grayscale(1); }
.pick { max-height: 560px; overflow-y: auto; }
.pick .photo { width: 56px; height: 56px; border-radius: 10px; aspect-ratio: auto; }
.pick .item { align-items: flex-start; }
.pick form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 8px; }
.pick form > div { flex-basis: 100%; }
.pick input[type=number] { width: 76px !important; }

/* Поля */
.form { display: grid; gap: 16px; }
.form > p { margin: 0; }
.field { display: block; min-width: 0; }
.field > span { display: block; margin-bottom: 6px; font-weight: 600; }
.field > small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
input:not([type=checkbox], [type=radio], [type=file], [type=hidden]), select, textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--field); border-radius: 10px; background: #fff; color: inherit; font: inherit; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -1px; }
::placeholder { color: #857b71; opacity: 1; }
input[type=checkbox], input[type=radio] { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.inline { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.inline > form { flex: 1 1 auto; }
.inline > * + * { margin-top: 0; }
dialog .photo-pick { max-width: none; }
.inline .field { flex: 1 1 110px; }
.inline .field > span { margin-bottom: 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.inline .field.big { flex-basis: 170px; }
.search { display: flex; gap: 8px; width: min(380px, 100%); }
.search input { flex: 1; min-width: 0; }
.photo-pick { position: relative; display: block; max-width: 320px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.photo-pick img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee8e0; }
.photo-pick span { display: block; padding: 10px; overflow: hidden; font-weight: 500; text-align: center; text-overflow: ellipsis; }
.photo-pick input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.photo-pick:hover { border-color: var(--field); }
.photo-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Фото блюда: список, первое главное */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-content: start; max-width: 520px; }
.photos .shot { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.photos .shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee8e0; }
.photos figcaption { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
.photos .main { padding: 4px 8px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }
.photos .btn.small { min-height: 30px; padding: 0 8px; font-size: 13px; }
.photos .photo-pick { max-width: none; }
.photos .photo-pick img:not([hidden]) { aspect-ratio: 4 / 3; }
.photos .hint { grid-column: 1 / -1; margin: 0; }
.chat { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 8px 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.chat small { display: block; color: var(--muted); font-size: 13px; }
.hours { display: grid; grid-template-columns: auto 130px 130px; align-items: center; justify-content: start; gap: 8px 12px; }
.group { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.group > * + * { margin-top: 12px; }

/* Переключатели */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.chips.sticky { position: sticky; top: 0; z-index: 2; padding-block: 12px; background: var(--bg); }
.chips > * { flex: none; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.chips > :hover { border-color: var(--field); }
.chips [aria-pressed=true], .chips [aria-current] { border-color: var(--ink); background: var(--ink); color: #fff; }
.chips.pages { justify-content: center; }

summary { min-height: 44px; padding: 10px 0; font-weight: 600; cursor: pointer; }

/* Окна */
dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 24px; overflow-y: auto; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
dialog::backdrop { background: rgb(33 29 25 / .55); }
dialog .top { flex-wrap: nowrap; margin-bottom: 16px; }
dialog.confirm { width: min(400px, calc(100vw - 32px)); }
dialog.confirm p { margin: 0 0 20px; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }

/* Вход, регистрация и сообщения */
.single { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.panel { width: min(420px, 100%); padding: 32px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.panel > * + * { margin-top: 16px; }
.logo { display: block; color: var(--accent); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }

/* Непринятые заказы: счётчик в меню, просьба включить звук, подсветка только что пришедшего заказа */
.sidebar nav a { position: relative; }
.count { min-width: 22px; height: 22px; margin-left: auto; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.sidebar nav a[aria-current] .count { background: #fff; color: var(--accent-dark); }
.ring { position: fixed; top: 12px; left: 50%; z-index: 20; max-width: calc(100% - 24px); min-height: 44px; padding: 10px 18px; border: 0; border-radius: 22px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; box-shadow: 0 8px 30px rgb(0 0 0 / .25); transform: translateX(-50%); cursor: pointer; }
.order.arrived { animation: arrived 3s ease-out; }
@keyframes arrived { from { box-shadow: 0 0 0 3px var(--accent), var(--shadow); } }

@media (max-width: 1180px) {
    .columns { grid-template-columns: minmax(0, 1fr); }
    /* Сначала этап и оплата, потом добавление блюд */
    .order-page .stack { display: contents; }
    .order-page .last { order: 1; }
}

@media (max-width: 860px) {
    body:not(.single) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    h1 { font-size: 24px; }
    .page { padding: 20px 16px 32px; }
    .sidebar { inset: auto 0 0; width: auto; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
    .brand { display: none; }
    .count { position: absolute; top: 3px; left: calc(50% + 4px); min-width: 18px; height: 18px; margin: 0; padding: 0 5px; font-size: 11px; line-height: 18px; }
    .sidebar nav { flex-direction: row; justify-content: space-around; }
    .sidebar nav > a, .sidebar .more { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; min-height: 52px; padding: 0 2px; font-size: 11px; }
    .nav-more { position: absolute; inset: auto 8px calc(100% + 8px); display: none; padding: 12px; border-radius: 16px; background: var(--side); box-shadow: 0 8px 40px rgb(0 0 0 / .35); }
    .nav-more.open { display: flex; }
    .more[aria-expanded=true] { background: rgb(255 255 255 / .12); color: #fff; }
    .card { padding: 16px; }
    .product { padding: 0; }
    .list { padding: 4px 16px; }
    .item.wrap { flex-wrap: wrap; }
    .item.wrap .main { flex-basis: calc(100% - 60px); }
    .chat { grid-template-columns: 1fr; }
    .hours { grid-template-columns: 1fr 1fr; justify-content: stretch; }
    .hours > span { grid-column: 1 / -1; margin-top: 4px; font-weight: 600; }
    .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { padding: 14px; }
    .stat b { font-size: 24px; }
    .panel { padding: 24px 20px; }
    .search { width: 100%; }
}
/* На телефоне Safari увеличивает страницу, если шрифт поля меньше 16px */
@media (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { transition: none !important; } }

/* Выбор вида меню */
.choice .check { align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.choice .check:has(:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice small { display: block; color: var(--muted); font-size: 14px; }
#onlinePaymentSection:has([name=bank][value=monobank]:checked) .bank-liqpay,
#onlinePaymentSection:has([name=bank][value=liqpay]:checked) .bank-monobank { display: none; }

/* Промокоды и отчёт */
.discount { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; overflow-wrap: anywhere; }
/* Владелец сервиса в чужом кабинете: плашка всегда видна сверху */
.inside { position: fixed; top: 8px; left: 50%; z-index: 60; max-width: calc(100% - 16px); padding: 10px 16px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-weight: 600; text-align: center; text-decoration: none; box-shadow: var(--shadow); transform: translateX(-50%); }
.inside:hover { text-decoration: underline; }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.attention { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.attention a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; }
.attention a:hover { background: var(--bg); }
.attention .hot { border-left-color: var(--accent); }
.attention .warn { border-left-color: var(--amber); }
.attention .bad { border-left-color: var(--red); }
.attention small { display: block; color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.chart { position: relative; display: flex; height: 220px; margin: 36px 0 40px; padding-left: 76px; border-bottom: 1px solid var(--field); }
.chart .line { position: absolute; right: 0; left: 76px; border-top: 1px solid var(--line); pointer-events: none; }
.chart .line span { position: absolute; right: 100%; padding-right: 8px; white-space: nowrap; transform: translateY(-50%); color: var(--muted); font-size: 12px; }
.bar { position: relative; display: flex; flex: 1; align-items: end; justify-content: center; min-width: 0; padding: 0 1px; }
.bar i { width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; background: var(--accent); }
.bar:hover, .bar:focus { background: rgb(33 29 25 / .05); }
.bar small { position: absolute; top: calc(100% + 8px); left: 50%; color: var(--muted); font-size: 12px; white-space: nowrap; transform: translateX(-50%); }
.bar .tip { position: absolute; bottom: 100%; left: 50%; z-index: 1; display: none; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.bar .tip b { display: block; font-size: 16px; }
.bar.first .tip { left: 0; transform: none; }
.bar.last .tip { right: 0; left: auto; transform: none; }
.bar:hover .tip, .bar:focus .tip { display: block; }
@media (max-width: 600px) { .bar small.wide { display: none; } }

/* Архив */
.archive-filter { margin-bottom: 16px; }
.item .dishes { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
@media (max-width: 600px) { .archive-filter .big, .archive-filter .btn { flex: 1 1 100%; } }

/* Вигляд меню: темы со снимками */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 12px; }
.theme { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 14px; border: 1px solid var(--line); border-radius: 18px;
    background: var(--surface); cursor: pointer; }
.theme:has(:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.theme:has(:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme input { position: absolute; top: 18px; right: 18px; z-index: 1; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.theme-name b { display: block; }
.theme-name small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.theme a { align-self: flex-start; font-size: 14px; font-weight: 600; }
/* Снимок настоящего меню в этой теме, верхняя часть */
.theme .shot { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 12px;
    background: var(--line); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.color-field input[type=color] { width: 72px; min-height: 44px; padding: 4px; cursor: pointer; }
