/* business module styles: operator portals and visitor commerce (prefix .biz-). Uses app.css tokens only. */

/* ---------- Shared bits ---------- */
.biz-page { padding-bottom: 12px; }
.biz-h2 { font: 650 21px/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 10px; }
.biz-h3 { font-size: 14px; font-weight: 800; margin: 18px 0 8px; }
.biz-section { margin: 26px 0 0; }
.biz-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; flex-wrap: wrap; }
.biz-section-head .biz-h2, .biz-section-head h3 { margin: 0; }
.biz-kicker { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
@media (prefers-color-scheme: dark) { .biz-kicker { color: var(--accent); } }
.biz-stack { display: grid; gap: 12px; }
.biz-price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.biz-danger { color: var(--danger) !important; }
.biz-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: 11.5px; font-weight: 800; white-space: nowrap; vertical-align: middle; }
.biz-pill--ok { background: var(--ok-soft); color: var(--ok); }
.biz-pill--warn { background: var(--warn-soft); color: var(--warn); }
.biz-pill--danger { background: var(--danger-soft); color: var(--danger); }
.biz-open { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 750; color: var(--muted); }
.biz-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.biz-open.is-open { color: var(--ok); }
.biz-open.is-open::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.biz-open.is-closed::before { background: var(--danger); }
.biz-code-small { font: 800 12.5px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; white-space: nowrap; }
.biz-pay-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); background: var(--sea-soft); border-radius: var(--r-sm); padding: 10px 12px; margin: 12px 0; }
.biz-pay-note .tg-i { width: 17px; height: 17px; color: var(--sea); margin-top: 1px; }
.biz-pay-note a { color: inherit; font-weight: 800; }

/* Covers and illustrations */
.biz-cover { position: relative; overflow: hidden; display: grid; place-items: center; color: rgba(255, 255, 255, .88); background: linear-gradient(135deg, var(--navy), var(--sea)); }
.biz-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.biz-cover--museum { background: linear-gradient(140deg, #6e4f3f 0%, #b9805a 100%); }
.biz-cover--bar { background: linear-gradient(140deg, #c4552f 0%, #efb56c 100%); }
.biz-cover--restaurant { background: linear-gradient(140deg, #174f57 0%, #3f9aa2 100%); }
.biz-cover--shop { background: linear-gradient(140deg, #13303a 0%, #4d7f7a 100%); }
.biz-art { width: 62%; max-width: 220px; height: auto; }
.biz-glyph { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; background: var(--sea); }
.biz-glyph .tg-i { width: 30px; height: 30px; }
.biz-glyph--museum { background: #9a6a4f; }
.biz-glyph--bar { background: var(--accent); }
.biz-glyph--restaurant { background: var(--sea); }
.biz-glyph--shop { background: var(--navy); }

/* Search and filters */
.biz-search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--muted); }
.biz-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.biz-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; min-height: 44px; }
.biz-filter-row { margin-top: 12px; margin-bottom: 4px; }

/* ---------- Directory ---------- */
.biz-dir-list { display: grid; gap: 10px; margin: 12px 0 18px; }
.biz-dir-card { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-decoration: none; transition: transform .12s var(--ease); }
.biz-dir-card:active { transform: scale(.98); }
.biz-dir-thumb { width: 84px; height: 84px; border-radius: var(--r-md); flex: none; }
.biz-dir-thumb .biz-art { width: 78%; }
.biz-dir-copy { display: grid; gap: 3px; min-width: 0; }
.biz-dir-copy strong { font-size: 16px; line-height: 1.25; }
.biz-dir-copy small { color: var(--muted); font-size: 13px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- Home carousel ---------- */
.biz-home { margin-top: 8px; }
.biz-home-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-decoration: none; }
.biz-home-card .biz-cover { aspect-ratio: 16 / 9; }
.biz-home-card .biz-art { width: 46%; }
.biz-home-copy { display: grid; gap: 4px; padding: 12px 14px 14px; }
.biz-home-copy strong { font-size: 15.5px; line-height: 1.25; }
.biz-home-copy small { color: var(--muted); }

/* ---------- Place sheet extras ---------- */
.biz-extra { margin: 14px 0 4px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); }
.biz-extra-head { display: flex; gap: 12px; align-items: center; }
.biz-extra-head > div { display: grid; gap: 2px; min-width: 0; }
.biz-extra-head strong { font-size: 16px; line-height: 1.25; }
.biz-extra-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- Public business page ---------- */
.biz-hero { position: relative; margin: 6px calc(-1 * var(--gutter)) 0; }
.biz-hero-cover { height: 210px; }
.biz-hero-cover .biz-art { width: 46%; max-width: 200px; }
.biz-hero-badges { position: absolute; left: var(--gutter); bottom: 12px; display: flex; gap: 6px; }
.biz-hero-badges .cover-badge { position: static; }
@media (min-width: 560px) { .biz-hero { margin: 6px 0 0; } .biz-hero-cover { border-radius: var(--r-xl); height: 260px; } }
.biz-head { padding: 16px 0 4px; }
.biz-head .app-page-title { margin-bottom: 6px; }
.biz-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.biz-langs { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.biz-description { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin-top: 12px; }
.biz-tiles { margin-top: 16px; }
.biz-manage-link { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 14px; border-radius: var(--r-md); background: var(--ink); color: var(--bg); text-decoration: none; font-size: 13.5px; }
.biz-manage-link span { flex: 1; }
.biz-manage-link .tg-i { width: 18px; height: 18px; }
.biz-news { padding: 14px 0; border-top: 1px solid var(--line); }
.biz-news small { color: var(--muted); font-weight: 700; font-size: 12px; }
.biz-news h3 { font-size: 16px; margin: 4px 0; }
.biz-news p { color: var(--ink-2); margin: 0; }
.biz-info h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; margin: 16px 0 8px; }
.biz-info h3:first-child { margin-top: 0; }
.biz-info h3 .tg-i { width: 18px; height: 18px; color: var(--accent-deep); }
.biz-info p { margin: 0 0 6px; color: var(--ink-2); }
.biz-hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.biz-hours th, .biz-hours td { padding: 6px 0; text-align: left; border-bottom: 1px solid var(--line); font-weight: 600; }
.biz-hours th { color: var(--ink-2); width: 42%; }
.biz-hours td { font-variant-numeric: tabular-nums; }
.biz-hours tr.is-today th, .biz-hours tr.is-today td { color: var(--ink); font-weight: 800; }
.biz-exceptions { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.biz-checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.biz-checklist li { display: flex; gap: 8px; align-items: center; font-weight: 650; font-size: 14px; }
.biz-checklist li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 900; flex: none; }

/* Mini tickets shown on the business page */
.biz-mini-list { display: grid; gap: 8px; }
.biz-mini-ticket { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1.5px dashed var(--line-strong); text-align: left; }
.biz-mini-ticket > span:nth-child(2) { flex: 1; display: grid; gap: 1px; }
.biz-mini-ticket small { color: var(--muted); font-size: 12.5px; }
.biz-mini-ticket .tg-i { color: var(--accent-deep); }
.biz-mini-code { font: 800 12.5px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); }

/* Museum booking */
.biz-book legend { font-size: 13px; font-weight: 750; color: var(--ink-2); margin: 10px 0 8px; }
.biz-book fieldset + fieldset { margin-top: 18px; }
.biz-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.biz-slot-grid .loading { padding: 10px 0; grid-column: 1 / -1; }
.biz-slot { position: relative; }
.biz-slot input { position: absolute; opacity: 0; inset: 0; }
.biz-slot span { display: grid; gap: 1px; padding: 10px 8px; border-radius: var(--r-sm); background: var(--bg-elev); box-shadow: inset 0 0 0 1.5px var(--line-strong); text-align: center; cursor: pointer; transition: .15s; }
.biz-slot strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.biz-slot small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.biz-slot input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.biz-slot input:checked + span small { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.biz-slot input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }
.biz-slot.is-full span { opacity: .45; cursor: not-allowed; text-decoration: line-through; text-decoration-color: var(--muted); }
.biz-slot-empty { grid-column: 1 / -1; margin: 0; }
.biz-ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.biz-ticket-row > div:first-child { display: grid; gap: 2px; min-width: 0; }
.biz-ticket-row small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.biz-stepper { display: inline-flex; align-items: center; border-radius: var(--r-pill); background: var(--surface-2); padding: 3px; flex: none; }
.biz-step-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-1); font-size: 18px; font-weight: 800; line-height: 1; color: var(--ink); }
.biz-stepper input { width: 34px !important; min-height: 34px !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: center; font-weight: 800; -moz-appearance: textfield; }
.biz-stepper input::-webkit-inner-spin-button, .biz-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.biz-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 0 4px; border-top: 1.5px solid var(--line-strong); margin-top: 4px; font-weight: 700; }
.biz-total strong { font-size: 22px; font-variant-numeric: tabular-nums; }

/* Exhibitions and in-app tour */
.biz-exhibit { display: grid; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); margin-bottom: 12px; }
.biz-exhibit > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); }
.biz-exhibit h3 { font: 650 19px/1.2 var(--display); margin: 4px 0 6px; }
.biz-exhibit p { color: var(--ink-2); margin: 0; }
.biz-photo-strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; }
.biz-photo-strip img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.biz-stop-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.biz-stop { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-align: left; }
.biz-stop > span:nth-child(2) { flex: 1; display: grid; gap: 1px; }
.biz-stop small { color: var(--muted); font-size: 12.5px; }
.biz-stop .stop-number { --cover: #9a6a4f; }
.biz-stop > .tg-i { color: var(--accent-deep); }
.biz-stop-photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--r-md); margin: 6px 0 4px; }
.biz-stop-text p { white-space: pre-line; }
.biz-stop-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }

/* Menu */
.biz-lang-switch { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter) 8px; margin: 0 calc(-1 * var(--gutter)) 6px; scrollbar-width: none; }
.biz-lang-switch::-webkit-scrollbar { display: none; }
.biz-lang-switch .chip small { font-weight: 700; opacity: .7; margin-left: 2px; }
.biz-menu-section { margin-top: 18px; }
.biz-menu-section h3 { font: 650 18px/1.2 var(--display); padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.biz-menu-items { list-style: none; margin: 0; padding: 0; }
.biz-dish { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.biz-dish > img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.biz-dish-copy { flex: 1; min-width: 0; }
.biz-dish-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.biz-dish-top strong { font-size: 15.5px; line-height: 1.3; }
.biz-dish p { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; margin: 4px 0 0; }
.biz-dish-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.biz-dish-tags:empty { display: none; }
.biz-diet, .biz-allergen { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 750; }
.biz-diet { background: var(--ok-soft); color: var(--ok); }
.biz-allergen { background: var(--warn-soft); color: var(--warn); }
.biz-dish.is-off { opacity: .55; }
.biz-dish.is-off .biz-dish-top strong { text-decoration: line-through; }
.biz-off { display: block; margin-top: 6px; font-weight: 750; color: var(--danger); font-size: 12px; }
.biz-menu-foot { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
[dir="rtl"] .biz-dish-top { flex-direction: row-reverse; }

/* Shop */
.biz-shop-head p { margin: 0; }
.biz-route-hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--ok-soft); color: var(--ink); font-size: 13.5px; margin: 12px 0; }
.biz-route-hint .tg-i { color: var(--ok); width: 20px; height: 20px; margin-top: 1px; }
.biz-route-hint strong { display: block; color: var(--ok); }
.biz-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (min-width: 560px) { .biz-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.biz-product { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.biz-product > img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.biz-product-art { width: 100%; aspect-ratio: 4 / 3; }
.biz-product-art .biz-art { width: 58%; }
.biz-product-copy { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; }
.biz-product-copy h3 { font-size: 14.5px; line-height: 1.25; }
.biz-product-copy p { color: var(--muted); font-size: 12.5px; line-height: 1.35; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.biz-product-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.biz-product-foot .button.small { min-height: 34px; padding: 0 12px; }
.biz-product-foot .biz-stepper { padding: 2px; }
.biz-product-foot .biz-step-btn { width: 30px; height: 30px; }
.biz-product-foot .biz-stepper input { width: 26px !important; }
.biz-stock-low { color: var(--warn); font-weight: 750; font-size: 11.5px; }
.biz-detail--shop { padding-bottom: 88px; }
.biz-cart-bar { position: fixed; z-index: 45; left: var(--gutter); right: var(--gutter); bottom: calc(var(--nav-h) + var(--safe-bottom) + 10px); max-width: 724px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); box-shadow: var(--shadow-3); text-align: left; animation: biz-rise .25s var(--ease); }
.biz-cart-bar > span:nth-child(2) { flex: 1; display: grid; }
.biz-cart-bar small { opacity: .75; font-size: 12px; }
.biz-cart-bar > strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.biz-cart-count { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; }
@keyframes biz-rise { from { transform: translateY(20px); opacity: 0; } }
@media (min-width: 960px) { .biz-cart-bar { bottom: 20px; left: calc(96px + var(--gutter)); } }
.biz-cart-lines { list-style: none; margin: 0; padding: 0; }
.biz-cart-lines li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.biz-cart-lines li > span { display: grid; min-width: 0; }
.biz-cart-lines small { color: var(--muted); }
.biz-pickup-days { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.biz-pickup-days legend { width: 100%; font-size: 13px; font-weight: 750; color: var(--ink-2); }
.biz-choice { position: relative; display: inline-flex; }
.biz-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.biz-choice span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.biz-choice input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.biz-choice input:disabled + span { opacity: .4; cursor: not-allowed; }
.biz-choice input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }

/* QR */
.biz-qr-card { display: grid; justify-items: center; gap: 6px; padding: 18px; margin: 8px 0; border-radius: var(--r-lg); background: #fff; color: #0b1b20; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.biz-qr-card .biz-qr-svg { width: min(72vw, 260px); height: auto; }
.biz-code { font: 800 26px/1.1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .12em; margin: 6px 0 0; }
.biz-qr-sub { margin: 0; color: #3c4d52; font-weight: 650; text-align: center; }
.biz-qr-thumb { width: 64px; height: 64px; padding: 5px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-1); flex: none; }
.biz-qr-thumb.small { width: 52px; height: 52px; }
.biz-qr-thumb .biz-qr-svg { width: 100%; height: 100%; }

/* ---------- My tickets & orders ---------- */
.biz-ticket { display: grid; grid-template-columns: 1fr auto; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
.biz-ticket-main { padding: 14px 14px 10px 16px; min-width: 0; }
.biz-ticket-main h3 { font: 650 18px/1.2 var(--display); margin: 4px 0; }
.biz-ticket-main p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.biz-ticket-meta { color: var(--muted) !important; font-size: 12.5px !important; margin-top: 4px !important; }
.biz-ticket-stub { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 12px 14px; border-left: 2px dashed var(--line-strong); position: relative; background: var(--surface-2); }
.biz-ticket-stub::before, .biz-ticket-stub::after { content: ""; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); }
.biz-ticket-stub::before { top: -8px; }
.biz-ticket-stub::after { bottom: -8px; }
.biz-ticket-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 16px 8px; border-top: 1px solid var(--line); }
.biz-order-card h3 { font: 650 18px/1.2 var(--display); margin-top: 3px; }
.biz-order-card p { margin: 6px 0 0; color: var(--ink-2); font-size: 13.5px; }
.biz-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.biz-progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 14px 0 8px; padding: 0; font-size: 10.5px; font-weight: 750; color: var(--muted); text-align: center; }
.biz-progress li { display: grid; gap: 6px; justify-items: center; }
.biz-progress li span { width: 100%; height: 5px; border-radius: 3px; background: var(--surface-3); }
.biz-progress li.is-done span { background: var(--ok); }
.biz-progress li.is-current { color: var(--ink); }
.biz-order-when { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink) !important; }
.biz-order-when .tg-i { width: 16px; height: 16px; color: var(--accent-deep); }
.biz-staff-note { font-style: italic; }
.biz-history { margin-top: 18px; }
.biz-past { list-style: none; margin: 8px 0 0; padding: 0; }
.biz-past li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.biz-past li .biz-kicker { grid-column: 1 / -1; }
.biz-past li > span:last-child { color: var(--muted); font-weight: 700; }

/* ---------- Operator space ---------- */
.biz-org-card { display: flex; gap: 14px; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.biz-org-thumb { width: 72px; height: 72px; border-radius: var(--r-md); flex: none; }
.biz-org-thumb .biz-art { width: 80%; }
.biz-org-copy { min-width: 0; flex: 1; }
.biz-org-copy h3 { font-size: 16.5px; margin: 3px 0 6px; }
.biz-org-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.biz-pending h3 { font-size: 17px; margin: 4px 0; }
.biz-pending p { margin: 4px 0 0; }
.biz-request { margin-top: 18px; }
.biz-request > summary { list-style: none; }
.biz-request > summary::-webkit-details-marker { display: none; }
.biz-request[open] > summary { display: none; }
.biz-form .panel + .panel { margin-top: 12px; }
.biz-place-picker { margin: 14px 0 6px; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); }
.biz-place-picker legend { float: left; width: 100%; font-size: 13px; font-weight: 750; color: var(--ink-2); margin-bottom: 6px; }
.biz-place-chosen { clear: both; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; margin: 0 0 10px; }
.biz-place-chosen .tg-i { width: 16px; height: 16px; color: var(--accent-deep); }
.biz-place-results { display: grid; gap: 6px; margin-top: 8px; }
.biz-place-results:empty { display: none; }
.biz-place-hit { display: grid; gap: 1px; text-align: left; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.biz-place-hit small { color: var(--muted); font-size: 12px; }
.biz-place-manual { margin-top: 10px; font-size: 13px; }
.biz-place-manual summary { cursor: pointer; font-weight: 750; color: var(--accent-deep); }

/* Manage page */
.biz-manage-head { display: flex; gap: 14px; align-items: center; padding: 10px 0 6px; }
.biz-manage-head h1 { font: 650 clamp(24px, 6.5vw, 32px)/1.1 var(--display); margin: 4px 0 6px; }
.biz-manage-head .text-button { margin-left: 6px; }
.biz-tabs { margin-top: 10px; margin-bottom: 4px; }
.biz-tabs .chip { text-decoration: none; }
.biz-manage-body { padding-top: 4px; }
.biz-rows { display: grid; gap: 1px; border-radius: var(--r-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.biz-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); flex-wrap: wrap; }
.biz-row > img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.biz-row-copy { flex: 1 1 170px; min-width: 0; display: grid; gap: 2px; }
.biz-row-copy strong { font-size: 14.5px; line-height: 1.3; }
.biz-row-copy small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.biz-row-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.biz-row-actions .button.small { min-height: 34px; padding: 0 10px; }
.biz-row.is-off .biz-row-copy { opacity: .55; }
.biz-switch { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--surface-3); transition: background .15s; flex: none; margin-right: 4px; }
.biz-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s var(--ease); }
.biz-switch[aria-checked="true"] { background: var(--ok); }
.biz-switch[aria-checked="true"]::after { transform: translateX(18px); }
.biz-week { display: grid; gap: 0; padding: 6px 14px; }
.biz-week-row { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.biz-week-row:last-child { border-bottom: 0; }
.biz-week-row > div { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-button.is-off { opacity: .5; text-decoration: line-through; }
.biz-checkin { margin-bottom: 14px; }
.biz-checkin-row { display: flex; gap: 8px; margin-bottom: 8px; }
.biz-checkin-row input { flex: 1; min-width: 0; font: 800 17px ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: .08em; text-transform: uppercase; }
.biz-checkin-result { margin-top: 12px; padding: 14px; border-radius: var(--r-md); border-left: 5px solid var(--sea); background: var(--sea-soft); }
.biz-checkin-result.is-ok { border-color: var(--ok); background: var(--ok-soft); }
.biz-checkin-result.is-danger { border-color: var(--danger); background: var(--danger-soft); }
.biz-checkin-result strong { display: block; font-size: 15.5px; }
.biz-checkin-result p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.biz-checkin-result .button { margin-top: 12px; }
.biz-day-picker { display: flex; align-items: center; gap: 6px; margin: 6px 0 12px; }
.biz-day-picker label { flex: 1; }
.biz-day-picker input { text-align: center; }
.biz-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.biz-metrics > div { padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.biz-metrics strong { display: block; font: 700 26px/1 var(--display); }
.biz-metrics small { color: var(--muted); font-weight: 700; font-size: 12px; }
.biz-slot-bars { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.biz-slot-bar { display: grid; grid-template-columns: 46px 1fr 56px; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.biz-slot-bar small { text-align: right; color: var(--muted); }
.biz-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.biz-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--sea), var(--accent)); }
.biz-menu-admin { margin-bottom: 12px; padding: 12px 12px 14px; }
.biz-menu-admin .biz-section-head { margin: 0 0 8px; }
.biz-menu-admin .biz-section-head h3 { font: 650 18px/1.2 var(--display); }
.biz-menu-admin .biz-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.biz-menu-admin > .button { margin-top: 12px; }
.biz-translate { display: grid; gap: 12px; margin: 8px 0 14px; }
.biz-translate .button { justify-self: start; }
.biz-translate p { margin: 0; }
.biz-tr-block { margin-bottom: 12px; padding: 12px 14px; }
.biz-tr-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.biz-tr-item:last-child { border-bottom: 0; }
.biz-tr-source { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.biz-tr-source strong { font-size: 14.5px; }
.biz-tr-source small { flex-basis: 100%; color: var(--muted); font-size: 12.5px; }
.biz-tr-source .biz-kicker { flex-basis: 100%; }
.biz-tr-item .field { margin: 8px 0 0; }
.biz-board { display: grid; gap: 4px; }
@media (min-width: 720px) { .biz-board { grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; } }
.biz-board-col .biz-order-card { margin-bottom: 10px; padding: 14px; }
.biz-order-card--received { border-left: 4px solid var(--accent); }
.biz-order-card--preparing { border-left: 4px solid var(--warn); }
.biz-order-card--ready { border-left: 4px solid var(--ok); }
.biz-order-lines { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.biz-order-lines li { padding: 2px 0; }
.biz-board-empty { margin: 0 0 10px; font-size: 13px; }
.biz-res p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.biz-res h3 { font: 650 18px/1.2 var(--display); margin-top: 3px; }

/* Profile editor */
.biz-cover-field { display: grid; gap: 10px; margin-bottom: 8px; }
.biz-cover-field .biz-photo-list { width: 100%; }
.biz-cover-field .biz-photo-list .biz-cover, .biz-cover-field .biz-photo-list img, .biz-cover-field .biz-thumb { width: 100%; height: 150px; border-radius: var(--r-md); }
.biz-cover-field .biz-thumb img { width: 100%; height: 100%; }
.biz-hours-editor { display: grid; gap: 6px; }
.biz-hours-row { display: grid; grid-template-columns: 40px 1fr; gap: 6px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.biz-hours-row:last-child { border-bottom: 0; }
.biz-hours-row strong { font-size: 13.5px; grid-row: span 2; align-self: start; padding-top: 10px; }
.biz-range { display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); align-items: center; }
.biz-range > span { text-align: center; color: var(--muted); }
.biz-hours-row .biz-range input { min-height: 42px; padding: 0 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (min-width: 560px) { .biz-hours-row { grid-template-columns: 44px 1fr 1fr; } .biz-hours-row strong { grid-row: auto; padding-top: 0; align-self: center; } }
.biz-ex-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 6px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.biz-ex-row .checkline { margin: 0; font-size: 13px; }
.biz-ex-row input[type="date"] { grid-column: 1 / 3; }
.biz-ex-row .checkline { grid-column: 3; }
.biz-ex-row input[name="ex_note"] { grid-column: 1 / 3; }
.biz-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.biz-check-grid .checkline { margin: 6px 0; font-size: 14px; }
.biz-sticky-save { position: sticky; bottom: calc(var(--nav-h) + var(--safe-bottom) + 10px); margin-top: 14px; z-index: 5; }
@media (min-width: 960px) { .biz-sticky-save { bottom: 16px; } }
.biz-staff { margin-top: 16px; }
.biz-members { list-style: none; margin: 0 0 8px; padding: 0; }
.biz-members li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.biz-members li > span:nth-child(2) { flex: 1; display: grid; min-width: 0; }
.biz-members small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.biz-members .account-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea); font-weight: 800; flex: none; }

/* Editor dialog fields */
.biz-multi { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.biz-multi legend { width: 100%; font-size: 13px; font-weight: 750; color: var(--ink-2); margin-bottom: 6px; }
.biz-multi .biz-choice span { height: 32px; padding: 0 12px; font-size: 12.5px; }
.biz-photo-field { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.biz-field-label { width: 100%; font-size: 13px; font-weight: 750; color: var(--ink-2); }
.biz-photo-list { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-photo-list:empty { display: none; }
.biz-thumb { position: relative; width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; display: block; }
.biz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.biz-thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(10, 22, 27, .65); color: #fff; font-size: 12px; }
.biz-upload { cursor: pointer; }
.biz-upload.is-busy { opacity: .6; pointer-events: none; }
.biz-upload.is-busy::after { content: "…"; }
.biz-scan-video { width: 100%; border-radius: var(--r-md); background: #000; aspect-ratio: 1 / 1; object-fit: cover; }
.biz-order-card .biz-ticket-actions { padding: 10px 0 0; margin-top: 10px; }
.biz-ticket-actions .text-button { white-space: nowrap; }
/* Inputs outside .field (check-in, hours editor, special days) share the design-system field look */
.biz-checkin-row input, .biz-hours-row input, .biz-ex-row input[type="date"], .biz-ex-row input[type="time"], .biz-ex-row input[name="ex_note"] {
  width: 100%; min-height: 46px; padding: 0 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--bg-elev); color: var(--ink); font-weight: 600; font-size: 15px; outline: none; appearance: none; -webkit-appearance: none;
}
.biz-checkin-row input:focus, .biz-hours-row input:focus, .biz-ex-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.biz-checkin-row input::placeholder { font: 600 14px var(--font); letter-spacing: 0; text-transform: none; }
.biz-row-copy { flex: 1 1 130px; }
.biz-row-actions { gap: 2px; }
.biz-row-actions .button.small { min-height: 34px; padding: 0 9px; font-size: 13px; }
.biz-section-head .biz-h2 { font-size: 19px; }
.biz-card-top > div { min-width: 0; }
