/* Presentation only. Keep business state, calculations and permissions in app.js / APIs. */
:root {
  --ink: #101014;
  --surface: #1a191f;
  --surface-2: #232129;
  --text: #f4f2f0;
  --muted: #b4b1bc;
  --gold: #ddbd7c;
  --gold-soft: #efdbaf;
  --line: #ffffff26;
  --radius: 16px;
}
body { background: var(--ink); line-height: 1.6; }
[id] { scroll-margin-top: 84px; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
button, .button-link { border-radius: 10px; font-weight: 650; transition: background .15s, border-color .15s, box-shadow .15s; }
button:hover, .button-link:hover { transform: none; }
.primary { background: #dfbf80; border-color: #e8cf9d; color: #201809; box-shadow: 0 2px 8px #0002; }
.secondary { background: #813250; border-color: #ad4a70; box-shadow: none; }
.ghost { color: #e6e2e7; border-color: #ffffff30; background-color: #ffffff05; }
.danger { background: #491e2a; border-color: #ac4b61; }
button:not(:disabled):hover, .button-link:hover { filter: brightness(1.08); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline-color: #f0d397; outline-offset: 3px; }
.topbar { min-height: 68px; padding-block: .5rem; background: #141318f5; border-color: #ffffff24; }
.brand { flex-wrap: wrap; row-gap: .25rem; }
.brand-logo { width: 126px; }
.brand-subtitle { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: .75rem; }
.user-chip, .user-chip > span { min-width: 0; overflow-wrap: anywhere; }
.user-chip b { letter-spacing: 0; font-weight: 600; border: 1px solid #ffffff20; background: #ffffff0c; color: #d8d3db; }
.app-shell { width: min(1180px, calc(100% - 3rem)); margin-top: 1rem; gap: 1.25rem; }
.workspace-nav { width: min(1180px, calc(100% - 3rem)); margin: 1rem auto 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); padding: 4px; gap: 4px; background: #1c1a21; border: 1px solid #ffffff1f; border-radius: 12px; }
.workspace-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--muted); font-size: .875rem; font-weight: 600; text-decoration: none; border-radius: 8px; }
.workspace-nav a:hover { background: #ffffff08; color: var(--text); }
.workspace-nav a[aria-current="page"] { background: #ddbd7c18; color: #f1d69d; box-shadow: inset 0 0 0 1px #ddbd7c40; }
.panel, .hero-panel { background: #1a191f; border-color: #ffffff80; box-shadow: 0 4px 20px #0001; }
.panel { padding: 1.5rem; }
.hero-panel { padding: 1.5rem; }
.hero-panel::after { display: none; }
.hero-panel h1 { font-weight: 650; letter-spacing: -.025em; }
#business-date-heading { font-size: min(clamp(1.35rem, 4.8vw, 2rem), 7.5vw); letter-spacing: -.02em; margin: 0 0 .45rem; }
.business-date-note { margin: 0 0 .5rem; color: #b4b1bc; }
.hero-schedule-result-alert { flex-wrap: wrap; row-gap: .2rem; white-space: normal; }
.hero-schedule-result-alert > :is(strong, span) { min-width: 0; overflow-wrap: anywhere; }
.status-orb { width: auto; height: auto; min-width: 106px; border: 0; border-left: 1px solid #ffffff24; border-radius: 0; background: transparent; padding: .25rem 0 .25rem 1.25rem; }
.status-orb strong { font-size: .9rem; color: var(--text); }
.workspace-subpage .hero-panel { padding: 1rem 1.25rem; }
.workspace-subpage #business-date-heading { font-size: 1.25rem; }
.section-back { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-width: 0; }
.workspace-page-title { font-size: 1rem; font-weight: 650; color: #e6e0e6; text-align: right; }
.panel h2 { color: #f4f2f0; font-size: 1.3rem; letter-spacing: -.015em; margin: 0 0 1rem; font-weight: 700; }
.panel h3 { color: #e9deca; font-size: 1.05rem; margin-bottom: .8rem; }
.panel h4 { margin: .3rem 0; }
.section-heading { margin-bottom: .5rem; }
.section-heading h2 { margin-bottom: .4rem; }
.hint, .subtle, .privacy-note, .plain-list { color: var(--muted); }
.hint { font-size: .8125rem; line-height: 1.65; }
.record-grid { gap: .85rem; }
.record-card, .staff-directory-group, .menu-item-card, .schedule-list-item, .electronic-ticket-link { border-color: #ffffff24; background: #ffffff03; box-shadow: none; border-radius: 12px; }
.record-card { padding: 1.15rem; }
.record-title { margin-bottom: .9rem; align-items: center; }
.record-card dt, .ticket-archive-ticket dt { color: #b4b1bc; }
.record-card dd { color: #f2edf1; }
.record-card dl { gap: .65rem; }
.record-card.shift-card { padding: 0; }
.shift-summary { flex-wrap: wrap; }
.shift-card .shift-time { white-space: normal; }
.shift-card-body > form + :is(form, button, details, .alert) { margin-top: 1rem; }
.payroll-statement { container-type: inline-size; }
.payroll-statement .record-title { flex-wrap: wrap; }
.payroll-statement-actions { display: grid; gap: 1rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.payroll-statement-actions:not(:has(> *)) { display: none; }
.payroll-statement-actions > :is(button, .button-link) { width: 100%; }
.payroll-statement-actions > .hint { margin: 0; }
.payroll-statement-actions > .correct-payroll-form { padding-top: 1rem; border-top: 1px solid var(--line); }
.payroll-statements-panel > .button-link { margin-top: 1rem; }
@container (max-width: 420px) {
  .payroll-statement dl > div { grid-template-columns: minmax(0,1fr); gap: .2rem; }
  .payroll-statement dd { text-align: left; white-space: normal; overflow-wrap: anywhere; }
}
.money, .money-small { color: #f1d69d; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.sales-summary-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr)); gap: .75rem; }
.sales-summary-item { padding: .85rem 1rem; background: #ffffff04; border-color: #ffffff20; border-radius: 12px; }
.sales-summary-item .money { font-size: clamp(1.3rem,4.5vw,1.75rem); font-weight: 650; margin-top: .4rem; }
.badge { padding: .3rem .55rem; font-weight: 600; letter-spacing: 0; border-radius: 6px; }
.menu-grid { gap: .75rem; }
.menu-card { min-height: 100px; padding: 1.1rem 2.5rem 1.1rem 1.1rem; align-content: center; border-color: #ffffff30; background: #ffffff03; border-radius: 12px; }
.menu-card:hover, .staff-name-link:hover, .electronic-ticket-link:hover, .payment-staff-card:hover { background: #ffffff08; border-color: #ddbd7c80; }
.menu-card strong { color: #f3ede2; font-size: 1rem; }
.menu-card span { font-size: .8125rem; }
.menu-card b { font-size: 1.2rem; }
.dashboard-menu > .hint { margin-top: -.5rem; margin-bottom: 1.15rem; }
.menu-group + .menu-group { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #ffffff1c; }
.menu-group h3 { margin: 0 0 .75rem; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.stack-form, .stack-form.compact { gap: 1rem; align-content: start; }
.stack-form:not(.sales-entry-form) { grid-template-columns: minmax(0,1fr); grid-auto-rows: max-content; }
.stack-form label, fieldset, .ticket-set-panel label, .ticket-customer-field { color: #e4dfe7; font-size: .875rem; font-weight: 500; }
/* Native WebKit legend sizing can retain the landscape grid width. */
:is(#store-form, #user-form) > fieldset { display: block; }
:is(#store-form, #user-form) > fieldset > :not(legend) + :not(legend) { margin-top: .45rem; }
fieldset > legend { max-width: 100%; overflow-wrap: anywhere; }
input, select, textarea { background-color: #121116; border-color: #ffffff30; border-radius: 9px; color: #f4f2f0; padding-block: .8rem; }
input::placeholder, textarea::placeholder { color: #9c97a4; }
input:focus, select:focus, textarea:focus { border-color: #e2c58c; box-shadow: 0 0 0 3px #e2c58c1f; }
input[readonly], textarea[readonly] { background: #ffffff06; border-color: #ffffff20; color: #d9cdb6; }
.electronic-ticket-line label > .ticket-line-name-display { display: block; width: 100%; min-height: 50px; padding: .8rem; border: 1px solid #ffffff20; border-radius: 9px; background: #ffffff06; color: #d9cdb6; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.stack-form > button[type="submit"] { align-self: start; }
.store-settings-layout { align-items: start; }
.settings-details, .integrated-history, .technical-details { border-color: #ffffff24; background: #ffffff02; border-radius: 10px; }
.settings-details > summary, .integrated-history > summary, .technical-details > summary { color: #e6e0e6; font-size: .9rem; font-weight: 600; padding: 1rem; }
.settings-details-body { padding: .25rem 1rem 1rem; }
.reservation-section-fold { border-color: #ffffff50; background: #ffffff02; }
.reservation-section-fold > summary { font-weight: 650; padding: 1rem; }
.reservation-section-fold[open] > summary { border-bottom: 1px solid #ffffff20; margin-bottom: 1rem; }
.schedule-section { padding: 0; }
.schedule-section-summary { padding: 1rem 1.25rem; }
.schedule-section-body { grid-template-columns: minmax(0, 1fr); container-type: inline-size; }
.schedule-section-body > .schedule-legend .schedule-status { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@container (max-width: 16rem) {
  .schedule-section-body > .schedule-month-header { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-section-body > .schedule-month-header > h2 { grid-column: 1 / -1; grid-row: 1; }
  .schedule-section-body > .schedule-month-header > a { grid-row: 2; justify-self: start; }
  .schedule-section-body > .schedule-month-header > a:last-child { justify-self: end; }
}
.schedule-calendar, .guest-calendar { gap: .4rem; }
.schedule-calendar-day, .guest-calendar-day { border-radius: 10px; }
.schedule-month-header, .guest-week-header { margin-bottom: 1rem; }
.guest-week-timeline-scroll, .seat-schedule-scroll, .report-table-wrap { border-color: #ffffff40; }
.guest-week-timeline-header, .guest-week-hours, .guest-week-time-corner { background: #201d25; }
.ticket-set-panel, .ticket-menu-picker { background: #ffffff03; border-color: #ffffff30; border-radius: 12px; padding: 1.1rem; }
.ticket-set-summary, .ticket-set-timer { font-variant-numeric: tabular-nums; }
.ticket-menu-item { background: #121116; border-color: #ffffff30; }
.ticket-menu-item:hover { border-color: #ddbd7c; }
.electronic-ticket-switcher { padding: 4px; gap: 4px; border: 1px solid #ffffff24; border-radius: 12px; background: #1c1a21; }
.electronic-ticket-switcher .ticket-mode-button { border-radius: 8px; box-shadow: none; }
.ticket-editor-actions > button, .payment-completion-actions > .button-link { min-height: 52px; }
.ticket-total { border-color: #ffffff30; }
.confirm-dialog { border-color: #ffffff50; background: #201c25; }
.confirm-dialog-card h2 { font-weight: 650; }
.toast { background: #26222c; border-color: #ffffff50; }
.empty { padding: 1rem; margin: .25rem 0; border: 1px dashed #ffffff35; border-radius: 10px; background: #ffffff02; text-align: center; }
.empty a { text-underline-offset: .2em; }
.record-grid > .empty { grid-column: 1 / -1; }
.auth-card { border-color: #ffffff50; background: #1a191f; border-radius: 20px; box-shadow: 0 20px 70px #0004; }
.auth-logo { width: min(100%,270px); margin-bottom: .75rem; }
.auth-card .stack-form { margin-top: 1.75rem; }
.auth-card .primary { min-height: 52px; margin-top: .25rem; }
.auth-service-name { color: #dbd5df; font-weight: 500; }
.public-ticket-page { background: #0d0c0f; }
.public-ticket-logo { width: min(70%,280px); }
.public-ticket-card { background: #17151a; border-color: #ffffff50; box-shadow: none; border-radius: 16px; }
.public-ticket-title { padding-block: 1.25rem; }
.public-ticket-title span { color: #efebe6; }
.public-ticket-lines > div { display: flex; flex-wrap: wrap; padding-block: 1.15rem; border-color: #ffffff24; }
.public-ticket-lines > div > span { flex: 1 1 10rem; }
.public-ticket-lines > div > small { order: 2; flex-basis: 100%; }
.public-ticket-lines > div > strong { order: 1; margin-left: auto; }
.public-ticket-lines strong { color: #f1ebe2; }
.public-ticket-total { background: #ffffff03; border-top: 1px solid #ffffff25; padding-block: 1.25rem; }
.public-ticket-total strong { color: #f1d69d; }
.public-ticket-card > p { padding-top: .75rem; background: #ffffff03; }
.payment-summary-grid .record-card { background: #ffffff04; gap: .5rem; }
.payment-summary-grid .record-card > span { color: var(--muted); font-size: .8125rem; }
.payment-summary-grid strong { color: #f1d69d; font-variant-numeric: tabular-nums; }
.payment-status-panel > h3 { margin-top: 1.75rem; }
#payment-detail-items { margin-top: 1rem; }
.report-table th { background: #ffffff08; color: #e9deca; font-weight: 600; }
.report-table tbody tr:nth-child(even) { background: #ffffff02; }
.report-table tbody tr:hover { background: #ffffff06; }
/* Inventory starts with the real balance. Setup stays behind named disclosures. */
.inventory-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.inventory-page-heading h1 { margin: 0; font-size: 1.8rem; font-weight: 700; letter-spacing: -.025em; }
.inventory-page-heading p { margin: .3rem 0 0; font-size: .875rem; color: var(--muted); }
.inventory-page-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.inventory-page-actions > * { white-space: nowrap; }
.inventory-page-actions .inventory-recipe-shortcut { font-weight: 500; }
.inventory-ingredients { display: grid; gap: .85rem; }
.inventory-ingredient-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,.5fr) auto; gap: .65rem; align-items: end; padding-bottom: .85rem; border-bottom: 1px solid #ffffff20; }
.inventory-ingredient-quantity { display: flex; align-items: center; gap: .5rem; }
.inventory-ingredient-quantity input { width: 100%; min-width: 0; }
.inventory-ingredient-quantity > span { flex: 0 0 auto; color: var(--muted); font-size: .8125rem; }
.inventory-ingredient-remove { min-width: 48px; padding-inline: .6rem; font-size: .8125rem; }
[data-recipe-rows]:empty { display: none; }
.inventory-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.inventory-metric { display: flex; flex-direction: column; justify-content: center; gap: .2rem; padding: 1rem 1.2rem; border: 1px solid #ffffff30; border-radius: 12px; background: #1a191f; color: var(--text); text-decoration: none; min-width: 0; }
.inventory-metric > span { font-size: .8125rem; color: var(--muted); }
.inventory-metric strong { font-size: 1.75rem; font-weight: 650; line-height: 1.4; font-variant-numeric: tabular-nums; }
.inventory-metric small { margin-left: .3rem; color: var(--muted); font-size: .75rem; font-weight: 400; }
.inventory-metric.attention { border-color: #e0a84b80; background: #e0a84b0a; }
.inventory-metric.attention strong { color: #f8ce88; }
.inventory-list-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.15rem; }
.inventory-list-heading h2 { margin: 0; }
.inventory-live { margin: 0; color: #a6d8bc; font-size: .75rem; }
.inventory-live::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: .4rem; background: currentColor; }
.inventory-stock-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
.inventory-card { border: 0; border-bottom: 1px solid #ffffff18; border-radius: 0; background: none; }
.inventory-card > summary { gap: .65rem; min-height: 56px; padding: .35rem .15rem; }
.inventory-name strong { font-size: .9375rem; font-weight: 500; color: #f5f0e9; line-height: 1.5; }
.inventory-name small { margin-top: .1rem; font-size: .75rem; color: var(--muted); }
.inventory-name [data-stock-summary-state] { color: #a6d8bc; font-size: .75rem; }
.inventory-card.is-low [data-stock-summary-state] { color: #f7c98b; }
.inventory-card > summary > b { font-size: .7rem; color: var(--muted); transition: transform .15s; }
.inventory-card[open] > summary > b { transform: rotate(180deg); }
.inventory-card-body { padding: .75rem .15rem 1rem; }
.inventory-facts { display: grid; gap: .5rem; margin: 0; }
.inventory-facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .75rem; }
.inventory-facts dt { color: var(--muted); font-size: .75rem; }
.inventory-facts dd { margin: 0; color: #eee9ef; font-size: .8125rem; text-align: right; overflow-wrap: anywhere; }
.inventory-card-body > details { border-top: 1px solid #ffffff24; }
.inventory-card-body details > summary { min-height: 48px; color: #e9e3e9; font-size: .875rem; }
.bottle-meter { --bottle-liquid: #62c8a5; --bottle-depth: #2a6c55; display: block; position: relative; flex: 0 0 38px; width: 38px; height: 84px; margin: 0; border: 0; border-radius: 0; background: none; }
.bottle-meter::before { content: ''; position: absolute; z-index: 2; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: url('/static/inventory-bottle-outline.svg') center / contain no-repeat; pointer-events: none; }
.bottle-meter > span { position: absolute; inset: 0; height: 100%; max-height: none; border-radius: 0; background: none; -webkit-mask: url('/static/inventory-bottle-shape.svg') center / contain no-repeat; mask: url('/static/inventory-bottle-shape.svg') center / contain no-repeat; }
.bottle-meter > span::after { content: ''; position: absolute; bottom: 7%; left: 0; right: 0; height: calc(var(--fill) * .76); max-height: 76%; background: linear-gradient(180deg,var(--bottle-liquid),var(--bottle-depth)); border-top: 1px solid #d8fff066; transition: height .4s ease; }
.bottle-meter.low { --bottle-liquid: #e1af69; --bottle-depth: #8c582d; }
.bottle-meter.low > span { background: none; }
.bottle-meter.unconfigured::before { filter: grayscale(1); opacity: .55; }
.bottle-meter.unconfigured > span::after { height: 76%; border: 0; background: repeating-linear-gradient(135deg,#ffffff0c 0 3px,transparent 3px 7px); }
.inventory-catalog { margin-top: .25rem; }
.inventory-catalog-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.inventory-catalog-heading h3 { margin: 0; }
.inventory-catalog-heading > span { color: var(--muted); font-size: .75rem; }
.inventory-catalog-group { margin-top: 1.3rem; }
.inventory-catalog-group > h3 { margin: 0 0 .3rem; padding-bottom: .5rem; border-bottom: 1px solid #ffffff38; font-size: .9375rem; font-weight: 650; color: #f1d69d; }
.inventory-product-list { display: grid; grid-template-columns: minmax(0,1fr); }
.inventory-catalog-item { display: grid; grid-template-columns: minmax(0,1fr) auto 22px; align-items: center; gap: .65rem; min-width: 0; min-height: 56px; padding: .25rem .15rem; border-bottom: 1px solid #ffffff18; color: #f0ece5; text-decoration: none; }
.inventory-catalog-item:hover, .inventory-card > summary:hover { background: #ffffff05; }
.inventory-catalog-item:focus-visible { outline: 2px solid #e8ca8c; outline-offset: 2px; }
.inventory-product-name { min-width: 0; overflow-wrap: anywhere; font-size: .9375rem; line-height: 1.5; }
.inventory-row-quantity { flex: 0 0 auto; color: #eee4d1; font-size: .875rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inventory-row-quantity small { margin-left: .15rem; font-size: .6875rem; }
.inventory-catalog-item .bottle-meter, .inventory-card > summary .bottle-meter { flex-basis: 22px; width: 22px; height: 48px; }
.inventory-help { margin-top: 1rem; border-top: 1px solid #ffffff24; padding-top: .5rem; }
.inventory-help > summary { color: var(--muted); font-size: .8125rem; padding: .55rem 0; }
.inventory-empty { grid-column: 1 / -1; display: grid; justify-items: center; padding: 1.75rem 1rem; gap: .8rem; text-align: center; border: 1px dashed #ffffff40; border-radius: 12px; background: #ffffff02; }
.inventory-empty h3 { margin: 0; font-size: 1.125rem; color: #f4f0e9; }
.inventory-empty p { margin: 0; max-width: 32rem; color: var(--muted); font-size: .875rem; }
.inventory-example-meter { opacity: .7; margin-bottom: .75rem; }
.inventory-empty .button-link { width: min(100%,320px); }
.inventory-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; padding: .5rem 0 0; color: var(--muted); font-size: .75rem; }
.inventory-steps span { display: inline-flex; align-items: center; gap: .35rem; }
.inventory-steps b { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid #ffffff30; border-radius: 50%; font-weight: 500; }
#inventory-new { margin-top: 1.25rem; }
#inventory-new > summary { color: #f1d69d; }
.inventory-registration { padding: .25rem 1rem 1.25rem; }
.inventory-registration .field-hint { color: var(--muted); font-size: .75rem; font-weight: 400; }
.inventory-registration .grid.two { gap: 1rem; }
.inventory-fold > summary { display: flex; justify-content: space-between; align-items: center; gap: .75rem; list-style: none; min-height: 56px; }
.inventory-fold > summary::-webkit-details-marker { display: none; }
.inventory-fold > summary > span:first-child { display: grid; gap: .2rem; min-width: 0; }
.inventory-fold > summary strong { color: #f4f2f0; font-size: 1.125rem; font-weight: 650; }
.inventory-fold > summary small { color: var(--muted); font-size: .8125rem; }
.inventory-fold > summary > b { font-size: .875rem; color: #e7cc98; white-space: nowrap; }
.inventory-fold[open] > summary { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #ffffff24; }
.inventory-fold[open] > summary > b { font-size: 0; }
.inventory-fold[open] > summary > b::after { content: '閉じる ⌃'; font-size: .75rem; }
.inventory-fold-body { min-width: 0; }
.inventory-fold-body > .hint:first-child { margin-top: 0; }
.inventory-notice { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; border: 1px solid #e0a84b60; border-radius: 10px; background: #e0a84b0a; font-size: .8125rem; color: #f4d399; }
.inventory-notice a { font-weight: 600; }
.inventory-footer { padding: 0 .25rem; }
.inventory-footer .hint { font-size: .75rem; }
@media (min-width: 721px) {
  .menu-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .inventory-registration { max-width: 760px; }
  .inventory-registration > button { justify-self: start; min-width: 240px; }
}
@media (max-width: 720px) {
  .topbar { min-height: 60px; padding: .5rem .85rem; gap: .5rem; }
  .brand-logo { width: 108px; }
  .topbar .small { padding-inline: .7rem; font-size: .75rem; }
  .user-chip { margin-left: auto; }
  .user-chip b { font-size: .625rem; padding: .2rem .4rem; }
  .app-shell, .workspace-nav { width: calc(100% - 1.5rem); }
  .app-shell { margin-top: .85rem; margin-bottom: 2rem; gap: 1rem; }
  .workspace-nav { margin-top: .75rem; gap: 2px; padding: 3px; }
  .workspace-nav a { font-size: .75rem; }
  .panel { padding: 1rem; border-radius: 14px; }
  .panel h2 { font-size: 1.2rem; }
  .panel h3 { font-size: 1rem; }
  .hero-panel { padding: 1.05rem; border-radius: 14px; display: block; }
  .status-orb { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; margin-top: .6rem; padding: .5rem 0 0; border: 0; border-top: 1px solid #ffffff20; }
  .status-orb span { font-size: .6875rem; }
  .status-orb strong { margin: 0; font-size: .75rem; }
  .workspace-subpage .hero-panel { padding: .85rem 1rem; }
  .workspace-subpage #business-date-heading { font-size: 1.1rem; }
  .section-back { gap: .5rem; flex-wrap: wrap; }
  .section-back .button-link { width: auto; min-height: 44px; font-size: .8125rem; padding: .6rem .75rem; }
  .workspace-page-title { font-size: .875rem; }
  .record-card { padding: 1rem; }
  .menu-card { min-height: 86px; padding: .95rem 2.3rem .95rem 1rem; }
  .menu-card strong { font-size: 1rem; }
  .menu-card span { font-size: .8125rem; }
  .sales-summary-item { padding: .75rem; }
  .sales-summary-item span { font-size: .75rem; }
  .sales-summary-item .money { font-size: clamp(1.15rem,4.7vw,1.5rem); }
  .action-panel .action-row { display: grid; grid-template-columns: minmax(0,1fr); }
  .schedule-section { padding: 0; }
  .schedule-calendar, .guest-calendar { gap: .22rem; }
  .schedule-section-summary { padding: 1rem; }
  .schedule-calendar-day, .guest-calendar-day { border-radius: 8px; }
  .ticket-set-panel, .ticket-menu-picker { padding: .85rem; }
  .electronic-ticket-editor .section-back .button-link { width: 100%; }
  .electronic-ticket-heading { align-items: flex-start; }
  .electronic-ticket-link { padding: .9rem; }
  .inventory-page-heading { display: block; padding: .25rem; }
  .inventory-page-heading h1 { font-size: 1.6rem; }
  .inventory-page-heading p { font-size: .8125rem; }
  .inventory-page-actions { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: .5rem; margin-top: 1rem; }
  .inventory-page-actions > * { width: 100%; font-size: .8125rem; padding-inline: .5rem; }
  .inventory-page-actions .inventory-recipe-shortcut { grid-column: 1 / -1; }
  .inventory-ingredient-row { grid-template-columns: minmax(0,1fr) auto; }
  .inventory-ingredient-row > label:first-child { grid-column: 1 / -1; }
  .inventory-overview { gap: .5rem; }
  .inventory-metric { padding: .75rem .6rem; border-radius: 10px; }
  .inventory-metric > span { font-size: .6875rem; }
  .inventory-metric strong { font-size: 1.5rem; }
  .inventory-metric small { font-size: .6875rem; margin-left: .2rem; }
  .inventory-list-heading { margin-bottom: 1rem; }
  .inventory-live { font-size: .6875rem; }
  .inventory-stock-grid { grid-template-columns: minmax(0,1fr); }
  .inventory-card > summary { padding: .35rem .15rem; gap: .5rem; }
  .inventory-card-body { padding-inline: .15rem; }
  .inventory-empty { padding: 1.5rem .85rem; gap: .85rem; }
  .inventory-empty h3 { font-size: 1rem; }
  .inventory-empty p { font-size: .8125rem; }
  .inventory-steps { gap: .5rem .75rem; font-size: .6875rem; }
  .inventory-registration { padding-inline: .85rem; }
  .inventory-registration .grid.two { grid-template-columns: minmax(0,1fr); }
  .inventory-fold > summary strong { font-size: 1rem; }
  .inventory-fold > summary small { font-size: .75rem; }
  .inventory-fold > summary > b { font-size: .75rem; }
  .auth-page { padding: 1.25rem; }
  .auth-card { padding: 1.5rem; }
  .public-ticket-shell { width: calc(100% - 1.5rem); }
  .public-ticket-title .public-ticket-customer { font-size: 1.2rem; }
  .public-ticket-lines span, .public-ticket-lines strong { font-size: 1.125rem; }
  .public-ticket-lines small { font-size: .875rem; }
  .public-ticket-total { gap: .5rem; }
  .public-ticket-total span { font-size: 1rem; }
  .public-ticket-total strong { font-size: clamp(1.8rem,8vw,2.75rem); }
  .public-ticket-total .public-ticket-long-total { font-size: clamp(1.2rem,8vw,1.8rem); }
  .electronic-ticket-total { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding-inline: 0; }
  .electronic-ticket-total > span { white-space: nowrap; }
  .electronic-ticket-total > strong { margin-left: auto; text-align: right; }
  .electronic-ticket-total > small { flex-basis: 100%; }
  .payment-summary-grid { grid-template-columns: minmax(0,1fr); }
  .payment-summary-grid .record-card { display: flex; flex-wrap: wrap; align-items: center; padding: 1rem; }
  .payment-summary-grid .record-card > span { width: auto; flex: 1 1 8rem; }
  .payment-summary-grid .record-card > strong { width: auto; margin-left: auto; }
  .payment-summary-grid strong { font-size: 1.25rem; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  button, .button-link, .inventory-card > summary > b { transition: none; }
  .bottle-meter > span::after { transition: none; }
}
/* Keep role choices and narrow calendar status labels readable on phones. */
.user-role-form { grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) auto; }
.selected-option-summary { margin: -.2rem 0 0; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .user-role-form { grid-template-columns: minmax(0, 1fr); }
  .user-role-form > button { grid-column: auto; }
  .schedule-calendar-day > .calendar-unacknowledged-label:has(> span) { justify-self: stretch; width: auto; max-width: none; margin-inline: -.2rem; text-align: center; }
  .calendar-unacknowledged-label > span { white-space: normal; overflow-wrap: anywhere; }
}
