/* Q'Ocupa's own pages (public site, sign-in, panel).
   Provisional visual identity: the final brand is an owner decision. */

:root {
  --ink: var(--q-text);
  --ink-soft: var(--q-muted);
  --paper: var(--q-bg);
  --surface: var(--q-surface);
  --line: var(--q-line);
  --brand: var(--q-text);
  --brand-dark: var(--q-text);
  --warm: var(--q-accent);
  --danger: var(--q-bad-text);
  --radius: var(--q-r-8);
  --font: var(--q-font);
  --font-display: var(--q-font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--q-font); font-size: var(--q-fs-18); line-height: 1.6; color: var(--ink); background: var(--paper); }
h1, h2, h3 { font-family: var(--q-font); line-height: 1.15; margin: 0 0 .6em; font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--q-fs-28); letter-spacing: -.015em; }
h2 { font-size: var(--q-fs-28); }
h3 { font-size: var(--q-fs-18); }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }
code { font-size: var(--q-fs-14); }

/* Physical sides, not margin-inline or padding-block: those shorthands came in Chrome 87, and the HiPOS runs 81. */
.wrap { width: min(100% - 2.5rem, 68rem); margin-left: auto; margin-right: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 40rem); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.muted { color: var(--ink-soft); font-size: var(--q-fs-14); }
.pre { white-space: pre-wrap; }

/* Header and footer */
.logo { font-family: var(--font-display); font-weight: 700; font-size: var(--q-fs-22); color: var(--ink); text-decoration: none; }
.site-header, .app-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner, .app-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem; }
.site-nav, .app-nav { list-style: none; display: flex; align-items: center; gap: 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a:not(.button), .app-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:not(.button):hover, .app-nav a:hover { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); padding-top: 2.5rem; padding-bottom: 2.5rem; color: var(--ink-soft); }
.site-footer__links { list-style: none; display: flex; gap: 1.25rem; padding: 0; margin: 0; flex-wrap: wrap; }

/* Buttons */
.button { display: inline-block; padding: .75rem 1.35rem; border-radius: var(--q-r-full); border: 1px solid var(--brand); background: var(--brand); color: var(--q-surface); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--q-surface); }
.button--ghost { background: transparent; color: var(--brand); }
.button--ghost:hover { background: var(--brand); color: var(--q-surface); }
.button--small { padding: .4rem .9rem; font-size: var(--q-fs-15); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }

/* Public sections */
.hero { padding-top: clamp(3rem, 9vw, 6.5rem); padding-bottom: clamp(3rem, 9vw, 6.5rem); }
.hero h1 { max-width: 14ch; }
.eyebrow { font-weight: 600; color: var(--brand); letter-spacing: .02em; margin-bottom: .75rem; }
.lead { font-size: var(--q-fs-18); color: var(--ink-soft); max-width: 46ch; }
.band { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.band--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--call { background: var(--ink); color: var(--q-surface); }
.band--call .button--ghost { color: var(--q-surface); border-color: var(--q-line); }
.band--call .button--ghost:hover { background: var(--q-hover); color: var(--ink); }

.questions { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.question { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding: 1.1rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.question__q { font-family: var(--q-font); font-size: var(--q-fs-28); }
.question__a { color: var(--brand); font-weight: 600; }
.question__a::after { content: " →"; }
.question:hover { background: var(--surface); }

.cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--q-r-12); padding: 1.5rem; display: flex; flex-direction: column; }
.card__meta { color: var(--ink-soft); font-size: var(--q-fs-15); }
.card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .75rem; }
.steps { padding: 0; margin: 1.5rem 0 0; list-style: none; counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: var(--q-r-full); background: var(--warm); font-weight: 600; margin-bottom: .75rem; }
.chosen { background: var(--surface); border-left: 4px solid var(--warm); padding: .75rem 1rem; border-radius: var(--q-r-6); }

/* Forms */
.form { margin-top: 1.5rem; display: grid; gap: 1.1rem; }
.form--narrow { max-width: 26rem; }
.form fieldset:not(.field) { border: 0; padding: 0; margin: 0; display: grid; gap: 1.1rem; min-width: 0; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .3rem; padding: 0; }
.optional { font-weight: 400; color: var(--ink-soft); }
.hint { margin: 0 0 .35rem; color: var(--ink-soft); font-size: var(--q-fs-15); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], select, textarea { width: 100%; padding: .7rem .8rem; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--q-line-2); border-radius: var(--q-r-6); }
textarea { resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.choice { font-weight: 400 !important; display: inline-flex !important; align-items: center; gap: .4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* An inquiry's two acceptances (QOC-41): a box the person sees and ticks, the whole line a 44 px target. */
.consents { display: grid; gap: .15rem; }
.consent { display: flex; align-items: flex-start; gap: .6rem; min-height: 2.75rem; padding: .35rem 0; font-size: var(--q-fs-14); font-weight: 400; line-height: 1.4; cursor: pointer; }
.consent input { width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; flex: none; accent-color: var(--brand); }
.consent input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.notice { padding: .8rem 1rem; border-radius: var(--q-r-6); border: 1px solid; }
.notice--error { background: var(--q-bad-soft); border-color: var(--q-bad); color: var(--danger); }
/* Printing that may not happen now (devices.printing_alerts): a warning, never an error of the sale. */
.notice--warning { background: var(--q-accent-soft); border-color: var(--q-accent); color: var(--ink); }
.printing-alerts p { margin: .25rem 0; }
.notice--info { background: var(--surface); border-color: var(--line); }
.inline { display: inline-flex; align-items: center; gap: .75rem; margin: 0; }

/* Panel */
.app-main { padding-top: 2rem; padding-bottom: 4rem; padding-block: 2rem 4rem; }
.app-main h1 { font-size: var(--q-fs-28); }
.app-main h2 { margin-top: 2rem; }
.app-main h3 { margin-top: 1.5rem; }
.app-nav__org a { color: var(--ink-soft); }
.app-user { color: var(--ink-soft); font-size: var(--q-fs-15); }
.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem .25rem; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.filters .field { flex: 1 1 11rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: var(--q-fs-14); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.tag { display: inline-block; padding: .1rem .6rem; border-radius: var(--q-r-full); font-size: var(--q-fs-14); font-weight: 600; background: var(--line); }
.tag--new { background: var(--q-accent-soft); }
.tag--contacted { background: var(--q-info-soft); }
.tag--in_progress { background: var(--q-ok-soft); }
.tag--closed { background: var(--q-line-2); color: var(--ink-soft); }
.tag--active, .tag--success, .tag--completed, .tag--accepted, .tag--published, .tag--paid { background: var(--q-ok-soft); }
.tag--inactive, .tag--archived, .tag--voided, .tag--void, .tag--cancelled, .tag--waived { background: var(--q-line-2); color: var(--ink-soft); }
.tag--denied, .tag--failure, .tag--error, .tag--rejected, .tag--overdue, .tag--suspended { background: var(--q-bad-soft); color: var(--danger); }
.tag--draft, .tag--created, .tag--paused, .tag--pending, .tag--past_due { background: var(--q-accent-soft); }
.tag--approved, .tag--signed, .tag--submitted, .tag--processing { background: var(--q-info-soft); }
.table-scroll { overflow-x: auto; }
/* A table whose rows become labelled blocks on a phone, so nothing is read sideways. */
@media (max-width: 40rem) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .table--stack td { border: 0; padding: .1rem 0; overflow-wrap: anywhere; }
  .table.table--stack td:nth-child(3) { display: block; }
  .table--stack td:empty, .table.table--stack td:empty { display: none; }
  .table--stack td::before { content: attr(data-label) ": "; color: var(--ink-soft); }
}
.todo__item > p { margin: 0; padding: .35rem 1rem 0; }
.todo__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; padding: .6rem 1rem .8rem; }
.todo__actions .actions { margin: 0; }
.todo__actions details { flex: 1 1 14rem; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.app-nav { gap: .5rem 1.1rem; font-size: var(--q-fs-15); }
.stats { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--q-r-12); padding: 1rem 1.1rem; }
.stat__value { display: block; font-family: var(--q-font); font-size: var(--q-fs-28); font-weight: 600; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--ink-soft); font-size: var(--q-fs-15); }
.grid-2 { display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.lines { display: grid; gap: .6rem; }
.line { display: grid; gap: .5rem; grid-template-columns: minmax(10rem, 3fr) minmax(8rem, 2fr) repeat(3, minmax(5rem, 1fr)); align-items: end; }
.line .field label { font-size: var(--q-fs-14); font-weight: 400; color: var(--ink-soft); }
.totals { margin: 1.25rem 0; max-width: 24rem; }
.totals dd { text-align: right; font-variant-numeric: tabular-nums; }
.totals .totals__grand { font-weight: 600; font-size: var(--q-fs-18); }
.assistant { display: flex; gap: 1rem; align-items: flex-start; }
.assistant__avatar { width: 3.5rem; height: 3.5rem; flex: none; }
.assistant__bubble { background: var(--surface); border: 1px solid var(--line); border-radius: var(--q-r-12); padding: 1rem 1.25rem; flex: 1; min-width: 0; }
.watermark { border: 1px dashed var(--danger); color: var(--danger); padding: .75rem 1rem; border-radius: var(--q-r-6); font-weight: 600; }
input[type="number"], input[type="date"], input[type="month"] { width: 100%; padding: .7rem .8rem; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--q-line-2); border-radius: var(--q-r-6); }
.details { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 1.5rem 0; }
.details dt { color: var(--ink-soft); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.pager { margin-top: 1.25rem; display: flex; gap: 1.25rem; }
.context { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--q-r-12); padding: .6rem 1rem; margin-bottom: 1.25rem; }
.context__current { margin: 0; }
.context select { padding: .4rem .6rem; font: inherit; }
.line--return { grid-template-columns: minmax(12rem, 2fr) minmax(12rem, 3fr); }
.sale-total { background: var(--surface); border: 1px solid var(--line); border-radius: var(--q-r-12); padding: .25rem 1rem; margin: 1.25rem 0; }
/* Restaurant floor: salons as tabs, tables as large tiles that say their state in words. */
.salon-tabs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.salon-tabs a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: var(--q-r-full); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.salon-tabs a[aria-current] { border-color: var(--brand); background: var(--brand); color: var(--q-surface); }
.salon-tabs__count { font-weight: 400; font-variant-numeric: tabular-nums; }
.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.mesa form { height: 100%; margin: 0; }
.mesa__body { display: flex; flex-direction: column; gap: .15rem; width: 100%; height: 100%; min-height: 7rem; padding: .8rem .9rem; border: 1px solid var(--line); border-left-width: 8px; border-radius: var(--q-r-12); background: var(--surface); color: var(--ink); font: inherit; line-height: 1.35; text-align: left; text-decoration: none; overflow-wrap: anywhere; }
a.mesa__body, button.mesa__body { cursor: pointer; }
.mesa--available .mesa__body { border-color: var(--brand); }
.mesa--open .mesa__body { border-color: var(--warm); background: var(--q-raised); }
.mesa__name { font-size: var(--q-fs-18); }
.mesa__state { font-weight: 600; }
.mesa__amount { font-size: var(--q-fs-18); font-weight: 600; font-variant-numeric: tabular-nums; }
.mesa__action { margin-top: auto; padding-top: .4rem; font-weight: 600; color: var(--brand); text-decoration: underline; }
.place { margin: 0 0 1rem; font-size: var(--q-fs-18); }
.quick-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .6rem; margin: 0 0 1.5rem; }
.quick-menu__item { display: flex; flex-direction: column; justify-content: space-between; gap: .25rem; min-height: 4.5rem; padding: .7rem .8rem; border: 1px solid var(--brand); border-radius: var(--q-r-12); background: var(--surface); color: var(--ink); font: inherit; line-height: 1.3; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.quick-menu__item:active { background: var(--q-ok-soft); }
.quick-menu__item:disabled { border-style: dashed; border-color: var(--line); color: var(--ink-soft); background: transparent; cursor: not-allowed; }
.quick-menu__name { font-weight: 600; }
.quick-menu__price { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.disclosure { margin: 1.5rem 0; }
.disclosure > summary { display: flex; align-items: center; min-height: 2.75rem; cursor: pointer; color: var(--brand); }
.disclosure > summary h2 { margin: 0; display: inline; }
.place dd { font-weight: 600; }
.line--layout { grid-template-columns: minmax(10rem, 3fr) repeat(2, minmax(4.5rem, 1fr)) auto auto; }
.line--layout .choice { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; }
.line--layout .choice input { width: 1.4rem; height: 1.4rem; margin: 0; }
.salon-edit { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.5rem; }
.account-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.25rem; }
.account-actions .button { min-height: 2.75rem; display: inline-flex; align-items: center; }
.account-where { font-size: var(--q-fs-18); margin: 0 0 1rem; }
.split { display: grid; gap: .75rem; margin: 0 0 1.25rem; }
.split__row { display: grid; grid-template-columns: minmax(9rem, 2fr) minmax(0, 5fr) minmax(6.5rem, 1fr); gap: .75rem 1rem; align-items: center; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--q-r-12); background: var(--surface); }
.split__what { display: flex; flex-direction: column; overflow-wrap: anywhere; }
.split__what strong { font-size: var(--q-fs-18); }
.split__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); gap: .4rem .75rem; margin: 0; }
.split__facts dt { font-size: var(--q-fs-14); color: var(--ink-soft); }
.split__facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.split__now label { font-weight: 600; }
.split__now input { min-height: 2.75rem; font-size: var(--q-fs-18); text-align: center; }
.split__total { font-size: var(--q-fs-28); font-weight: 600; font-variant-numeric: tabular-nums; margin: 0 0 .5rem; }
.checks { display: grid; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check { display: grid; grid-template-columns: minmax(5rem, 1fr) minmax(7rem, 1fr) minmax(0, 2fr) minmax(0, 2fr); gap: .25rem 1rem; align-items: baseline; padding: .7rem .9rem; border: 1px solid var(--line); border-left: 8px solid var(--brand); border-radius: var(--q-r-12); background: var(--surface); }
.check__name { font-weight: 600; }
.check__amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.transfer-ends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.25rem; }
.transfer-end { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border: 1px solid var(--line); border-left-width: 8px; border-radius: var(--q-r-12); background: var(--surface); overflow-wrap: anywhere; }
.transfer-end--from { border-color: var(--warm); background: var(--q-raised); }
.transfer-end--to { border-color: var(--brand); }
.transfer-end__label { font-size: var(--q-fs-14); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.transfer-end strong { font-size: var(--q-fs-18); }
.transfer-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.transfer-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pay-check { font-size: var(--q-fs-18); margin: 0 0 1rem; }
.pay-check--short { color: var(--danger); }
.split-parts { margin: .25rem 0 .5rem; padding-left: 1.5rem; }
.ticket-previews { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); align-items: start; }
.ticket-preview { margin: 0 0 1rem; min-width: 0; container-type: inline-size; }
.ticket-preview figcaption { font-weight: 600; margin-bottom: .35rem; }
/* QOC-68: the ticket's logo and QR codes, between its text blocks, as the printer draws them (centered). */
.ticket-preview__logo { display: block; max-width: 55%; max-height: 7rem; margin: .5rem auto; filter: grayscale(1); }
.ticket-preview__qr { width: 9rem; margin: .5rem auto; }
.ticket-preview__qr svg { display: block; width: 100%; height: auto; }
.ticket-preview pre + pre { border-top: 0; }
/* 48 columns of 80 mm fit whole in the space the preview has: the size follows it, never below legibility. */
.ticket-preview pre { font: clamp(.6rem, calc((100cqi - 1.7rem) / 29), .78rem)/1.35 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--q-surface); color: var(--q-text); border: 1px solid var(--line, var(--q-line)); border-radius: var(--q-r-6); padding: .75rem; margin: 0; overflow-x: auto; max-width: 100%; }
@media (max-width: 48rem) { .line { grid-template-columns: 1fr 1fr; padding-bottom: .6rem; border-bottom: 1px solid var(--line); } }
/* Restaurant modifiers: what a line was added with, under its product; and choosing them, one group at a time. */
.mods { list-style: none; margin: .15rem 0 0; padding: 0; font-size: var(--q-fs-15); font-weight: 400; color: var(--ink-soft); overflow-wrap: anywhere; }
.mods li { padding-left: .9rem; text-indent: -.9rem; }
.mods li::before { content: "· "; }
.line--modifier { grid-template-columns: minmax(10rem, 3fr) repeat(3, minmax(5rem, 1fr)) auto auto; }
.line--modifier .choice, .line--assign .choice { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; }
.line--modifier .choice input, .line--assign .choice input { width: 1.4rem; height: 1.4rem; margin: 0; flex: none; }
.line--assign { grid-template-columns: minmax(0, 4fr) minmax(4.5rem, 7rem); }
.form fieldset.mod-group { border: 1px solid var(--line); border-radius: var(--q-r-12); padding: .8rem .9rem 1rem; background: var(--surface); gap: .6rem; }
.mod-group legend { padding: 0 .4rem; font-weight: 600; font-size: var(--q-fs-18); }
.mod-group__rule { margin: 0; font-weight: 600; }
.mod-group--required .mod-group__rule { color: var(--brand); }
.mod-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .5rem; }
.mod-option { display: flex !important; align-items: center; gap: .6rem; min-height: 2.9rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: var(--q-r-12); font-weight: 400 !important; cursor: pointer; overflow-wrap: anywhere; }
.mod-option input { width: 1.4rem; height: 1.4rem; margin: 0; flex: none; }
.mod-option:has(input:checked) { border-color: var(--brand); font-weight: 600 !important; }
.mod-option__price { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.mod-price { font-size: var(--q-fs-22); font-weight: 600; font-variant-numeric: tabular-nums; }
.transfer-list .mods li { display: block; padding: 0 0 0 .9rem; border: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 48rem) {
  .line--modifier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .line--modifier .field:first-child { grid-column: 1 / -1; }
  .split__row { grid-template-columns: minmax(0, 1fr) minmax(6.5rem, 9rem); }
  .split__facts { grid-column: 1 / -1; grid-row: 2; }
  .check { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 34rem) {
  .account-actions .button { flex: 1 1 calc(50% - .6rem); justify-content: center; text-align: center; padding-left: .6rem; padding-right: .6rem; }
  .transfer-ends { grid-template-columns: 1fr; }
  .split__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .floor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details { grid-template-columns: 1fr; gap: 0; }
  .details dd { margin-bottom: .6rem; }
  /* A sum keeps each amount on its label's line: a phone reads «Total ₡2 200,00», not the figure a line below. */
  .details.totals { grid-template-columns: 1fr auto; gap: .35rem 1rem; max-width: none; }
  .details.totals dd { margin-bottom: 0; }
  /* The inquiry list alone gives up its third column on a phone; every other list scrolls in its own box. */
  .table--inquiries th:nth-child(3), .table--inquiries td:nth-child(3) { display: none; }
}

/* Kitchen (restaurant R4): a station's work surface, read at a distance and touched. State is said in words. */
.kds-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; color: var(--ink-soft); }
.kds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; margin: 0 0 2rem; }
.kds__column { min-width: 0; padding: .75rem; border: 1px solid var(--line); border-top: 8px solid var(--line); border-radius: var(--q-r-12); background: var(--surface); }
.kds__column--queued { border-top-color: var(--warm); }
.kds__column--preparing { border-top-color: var(--q-info); }
.kds__column--ready { border-top-color: var(--brand); background: var(--q-ok-soft); }
.kds__column h2 { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-family: var(--q-font); font-size: var(--q-fs-18); text-transform: uppercase; letter-spacing: .04em; }
.kds__count { font-variant-numeric: tabular-nums; }
.kds__cards { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.comanda { border: 1px solid var(--line); border-radius: var(--q-r-12); background: var(--surface); overflow-wrap: anywhere; }
.comanda--ready { border-color: var(--brand); border-width: 3px; }
.comanda__head { display: flex; flex-direction: column; gap: .1rem; padding: .6rem .75rem; border-bottom: 1px solid var(--line); border-radius: var(--q-r-12) var(--q-r-12) 0 0; background: var(--paper); line-height: 1.35; }
.comanda__place { font-size: var(--q-fs-22); line-height: 1.2; }
.comanda__moved { font-weight: 600; color: var(--danger); }
.comanda__items { list-style: none; margin: 0; padding: 0; }
.comanda__item { padding: .7rem .75rem; border-top: 1px solid var(--line); }
.comanda__items .comanda__item:first-child { border-top: 0; }
.comanda__what { margin: 0; font-size: var(--q-fs-22); font-weight: 600; line-height: 1.25; }
.comanda__qty { font-variant-numeric: tabular-nums; }
.comanda__item .mods { font-size: var(--q-fs-18); color: var(--ink); }
.comanda__note { margin: .35rem 0 0; padding: .3rem .5rem; border-left: 4px solid var(--warm); background: var(--q-raised); }
.comanda__partly { margin: .3rem 0 0; font-weight: 600; color: var(--danger); }
.comanda__state { margin: .4rem 0; font-size: var(--q-fs-14); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.comanda__action { margin: 0 0 .25rem; }
.comanda__cancel { display: inline-flex; align-items: center; min-height: 2.75rem; }
.kds-button { width: 100%; min-height: 3.5rem; border-radius: var(--q-r-12); font-size: var(--q-fs-18); }
.kds-cancelled { margin: 0 0 1.25rem; padding: .75rem 1rem; border: 3px solid var(--danger); border-radius: var(--q-r-12); background: var(--q-bad-soft); }
.kds-cancelled h2 { font-family: var(--q-font); font-size: var(--q-fs-18); text-transform: uppercase; letter-spacing: .04em; color: var(--danger); }
.kds-cancelled > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; list-style: none; margin: 0; padding: 0; }
.kds-cancelled > ul > li { padding: .6rem .75rem; border: 1px solid var(--q-bad); border-radius: var(--q-r-6); background: var(--surface); overflow-wrap: anywhere; }
.kds-cancelled .comanda__what { text-decoration: line-through; }
.kds-cancelled p { margin: .2rem 0 0; }
.tag--kitchen-queued { background: var(--q-accent-soft); }
.tag--kitchen-preparing { background: var(--q-info-soft); }
.tag--kitchen-ready { background: var(--q-ok-soft); }
.tag--kitchen-delivered { background: var(--q-line-2); color: var(--ink-soft); }
.tag--kitchen-cancelled { background: var(--q-bad-soft); color: var(--danger); }
.mesa__kitchen { display: flex; flex-wrap: wrap; gap: .25rem; margin: .1rem 0; }
.chip { padding: .05rem .45rem; border: 1px solid var(--ink-soft); border-radius: var(--q-r-full); background: var(--surface); font-size: var(--q-fs-14); font-weight: 600; line-height: 1.4; }
.chip--ready { border-color: var(--brand); background: var(--brand); color: var(--q-surface); }
.chip--unsent { border-style: dashed; }
.kitchen-line { display: block; font-size: var(--q-fs-14); color: var(--ink-soft); }
.send-group { margin: 0 0 1rem; padding: .75rem 1rem; border: 1px solid var(--line); border-left: 8px solid var(--brand); border-radius: var(--q-r-12); background: var(--surface); }
.send-group--skipped { border-left-color: var(--line); }
.send-list { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.send-list > li { display: flex; flex-direction: column; overflow-wrap: anywhere; }
.send-list strong { font-size: var(--q-fs-18); }
.kds__column h2, .kds-cancelled h2, .send-group h2 { margin-top: 0; }
.kds-status .button { min-height: 2.75rem; display: inline-flex; align-items: center; }
.kds--pass { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pass__state { font-weight: 600; }
.kds-sound { margin: 0 0 .75rem; }
.setup-tests { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.findings { display: grid; gap: .6rem; list-style: none; margin: 0 0 1.5rem; padding: 0; }
.finding { padding: .6rem .9rem; border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: var(--q-r-12); background: var(--surface); overflow-wrap: anywhere; }
.finding p { margin: .2rem 0; }
.finding--problem { border-left-color: var(--danger); }
.finding--warning { border-left-color: var(--warm); }
.finding--ok { border-left-color: var(--brand); }
.kds-sound [hidden] { display: none; }
#kds-board.kds-alert { animation: kds-alert 1s ease-in-out 3; border-radius: var(--q-r-12); }
@keyframes kds-alert { 50% { box-shadow: 0 0 0 6px var(--warm); } }
@media (prefers-reduced-motion: reduce) { #kds-board.kds-alert { animation: none; box-shadow: 0 0 0 6px var(--warm); } }
.comanda--ready .pass__state { color: var(--brand); }
.line--route { grid-template-columns: minmax(0, 3fr) minmax(10rem, 2fr); align-items: center; }
.line--route select { min-height: 2.75rem; width: 100%; }
@media (max-width: 52rem) { .kds { grid-template-columns: 1fr; } }
@media (max-width: 34rem) { .line--route { grid-template-columns: 1fr; } }
.kds-offline { position: sticky; top: 0; z-index: 5; margin: 0 0 .75rem; padding: .6rem 1rem; border: 1px solid var(--warm); border-radius: var(--q-r-12); background: var(--q-raised); font-weight: 600; text-align: center; }
.kds-offline[hidden] { display: none; }
/* Tiempos and «Unir cuenta» (restaurant R6). A Tiempo is said in words, above what it holds. */
.tiempo { margin: 0 0 1.25rem; }
.tiempo__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .5rem; padding: .45rem .75rem; border-left: 8px solid var(--brand); border-radius: var(--q-r-6); background: var(--q-ok-soft); }
.tiempo__head h3 { margin: 0; margin-right: auto; font-family: var(--q-font); font-size: var(--q-fs-18); text-transform: uppercase; letter-spacing: .05em; overflow-wrap: anywhere; }
.tiempo__head .button { min-height: 2.75rem; display: inline-flex; align-items: center; }
.tiempo-tag { margin: 0 0 .15rem; font-size: var(--q-fs-14); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-dark); overflow-wrap: anywhere; }
.comanda__item .tiempo-tag { font-size: var(--q-fs-15); }
.tiempo-scope { padding: .6rem .9rem; border-left: 8px solid var(--brand); border-radius: var(--q-r-6); background: var(--q-ok-soft); }
.merge-blocked { margin: 0 0 1.25rem; padding: .9rem 1rem; border: 3px solid var(--danger); border-radius: var(--q-r-12); background: var(--q-bad-soft); overflow-wrap: anywhere; }
.merge-blocked h2 { margin: 0 0 .4rem; font-family: var(--q-font); font-size: var(--q-fs-18); color: var(--danger); }
.merge-blocked p:last-child { margin: 0; }
.merge-after dt { font-weight: 600; overflow-wrap: anywhere; }
.transfer-list .chip { white-space: nowrap; }
.line .tiempo-fields { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(9rem, 16rem) minmax(0, 22rem); gap: .5rem 1rem; align-items: end; }
.tiempo-fields select, .tiempo-fields input { min-height: 2.75rem; width: 100%; }
@media (max-width: 34rem) { .line .tiempo-fields { grid-template-columns: 1fr; } }
/* Ingredients, recipes and waste (restaurant R7). A quantity always carries its unit. */
.ingredient { margin: 0 0 .9rem; padding: 0 0 .9rem; border-bottom: 1px solid var(--line); }
.line--ingredient { grid-template-columns: minmax(10rem, 3fr) minmax(9rem, 2fr) auto auto auto; }
.line--ingredient-unit { grid-template-columns: minmax(10rem, 3fr) minmax(9rem, 2fr) auto; align-items: center; }
.line--recipe { grid-template-columns: minmax(0, 3fr) minmax(7rem, 1fr); }
.line--ingredient .choice, .form > .choice { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; }
.line--ingredient .choice input, .form > .choice input { width: 1.4rem; height: 1.4rem; margin: 0; flex: none; }
.line--ingredient select, .line--ingredient-unit select, .line--recipe select, .line--recipe input { min-height: 2.75rem; width: 100%; }
.ingredient__stock { margin: .4rem 0 0; color: var(--ink-soft); font-size: var(--q-fs-15); overflow-wrap: anywhere; }
.ingredient__name { margin: 0; overflow-wrap: anywhere; }
.ingredient .button--small { min-height: 2.75rem; }
.field__label { display: block; margin-bottom: .3rem; font-size: var(--q-fs-14); color: var(--ink-soft); }
.field__fixed { margin: 0; min-height: 2.75rem; display: flex; align-items: center; font-weight: 600; }
.recipe-list { list-style: none; margin: 0 0 1.25rem; padding: 0; max-width: 30rem; border: 1px solid var(--line); border-radius: var(--q-r-12); background: var(--surface); }
.recipe-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .9rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.recipe-list li:first-child { border-top: 0; }
.recipe-list strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.recipe-note { display: block; margin-top: .2rem; font-size: var(--q-fs-15); overflow-wrap: anywhere; }
.tag--ingredient { background: var(--q-info-soft); }
.tag--waste-manual { background: var(--q-accent-soft); }
.tag--waste-preparation { background: var(--q-info-soft); }
@media (max-width: 48rem) {
  .line--ingredient, .line--ingredient-unit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .line--ingredient .field:first-child, .line--ingredient-unit .ingredient__name { grid-column: 1 / -1; }
  .line--recipe { grid-template-columns: minmax(0, 3fr) minmax(6rem, 1fr); }
}
@media (max-width: 34rem) { .line--recipe { grid-template-columns: 1fr; } }

/* Restaurant R8: devices and print state */
.pairing-code { border: 1px solid var(--line); border-radius: var(--q-r-12); padding: 1rem 1.25rem; margin: 1rem 0; }
.pairing-code__value { font-size: var(--q-fs-28); font-weight: 600; letter-spacing: .12em; font-family: var(--q-mono); overflow-wrap: anywhere; margin: .25rem 0 .5rem; }
.print-state { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: .5rem; }
.print-state__job { padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.print-state__job p { margin: .2rem 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: .2rem 0; }
code { overflow-wrap: anywhere; }
.device-card { border: 1px solid var(--line); border-radius: var(--q-r-12); padding: .75rem 1rem; margin: .75rem 0; overflow-wrap: anywhere; }
.device-card h3 { margin: 0 0 .25rem; }
.device-card--revoked { opacity: .8; border-style: dashed; }
.device-card details summary { min-height: 2.75rem; display: flex; align-items: center; cursor: pointer; color: var(--brand); }
.route-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.route-form .field { flex: 1 1 14rem; min-width: 0; margin: 0; }
.route-form select { max-width: 100%; }
.route-form .choice { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; }
.link-button--touch { min-height: 2.75rem; padding: 0 .25rem; }
.print-state__job .actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.print-state__job .actions form { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tag--qualified, .tag--case-in_progress, .tag--priority-normal { background: var(--q-info-soft); }
.tag--won, .tag--case-resolved, .tag--survey-published { background: var(--q-ok-soft); }
.tag--lost, .tag--case-closed, .tag--priority-low, .tag--survey-closed, .tag--survey-archived { background: var(--q-line-2); color: var(--ink-soft); }
.tag--case-open, .tag--case-waiting, .tag--priority-high, .tag--survey-draft { background: var(--q-accent-soft); }
.tag--priority-urgent { background: var(--q-bad-soft); color: var(--danger); }
.case-notes { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; }
.case-notes li { border: 1px solid var(--line); border-radius: var(--q-r-12); padding: .7rem .9rem; background: var(--surface); }
.case-notes p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.survey-address { overflow-wrap: anywhere; }
.form fieldset.survey-question { border: 1px solid var(--line); border-radius: var(--q-r-12); padding: .8rem .9rem 1rem; background: var(--surface); gap: .6rem; }

/* Q'Ocupa's own home: what is pending, each line a count and its list. */
.todo { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.todo__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--q-r-12); }
.todo__link { display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding: .6rem 1rem; text-decoration: none; color: inherit; }
.todo__link:hover .todo__label, .todo__link:focus-visible .todo__label { text-decoration: underline; }
@supports not (aspect-ratio: 1) { .todo__link:hover .todo__label { text-decoration: underline; } }
.todo__count { font-family: var(--q-font); font-size: var(--q-fs-28); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; color: var(--brand); }
.todo__note { margin: 0; padding: 0 1rem .7rem; }
.todo-clear { background: var(--surface); border: 1px solid var(--line); border-radius: var(--q-r-12); padding: 1rem 1.1rem; margin-top: 1rem; }
.goal, .more { margin: 1rem 0; }
.goal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: flex-start; }
.goal details { flex: 1 1 16rem; max-width: 26rem; }
.goal__remove { margin: 0; }
.goal summary, .more summary { min-height: 2.75rem; display: inline-flex; align-items: center; cursor: pointer; color: var(--brand); font-weight: 600; }
.filter { margin: 1rem 0 1.5rem; }
.suggested { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.suggested li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--q-r-12); padding: .7rem .9rem; }
.suggested .muted { display: block; margin-top: .2rem; }
.suggested .choice { min-height: 2.75rem; }
.filter .button, .filter .actions a, .goal .button, .switch .button { min-height: 2.75rem; display: inline-flex; align-items: center; }
/* Sections of a page side by side where there is room; one column on a phone.
   (`.cards` and `.card` are the lists of the public site, the assistant and the
   accountant: these are other names on purpose.) */
.panels { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin-top: 1.25rem; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--q-r-12); padding: 1.1rem 1.25rem 1.25rem; min-width: 0; }
.app-main .panel h2 { margin-top: 0; font-size: var(--q-fs-22); }
.app-main .panel h3 { margin-top: 1rem; font-size: var(--q-fs-18); }
.panel .details { margin: 0; }
.panel .form { margin-top: .75rem; }
.panel .table-scroll + .table-scroll { margin-top: 1rem; }
.panel > :last-child { margin-bottom: 0; }
.panel .actions { margin-top: .25rem; }
.stack { display: grid; gap: 1.1rem; align-content: start; }
.stack > h2 { margin-bottom: 0; }
@media (min-width: 48rem) {
  .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel--wide { grid-column: 1 / -1; }
}
/* A form whose fields sit two or three across where they fit, never stretched over the whole screen. */
.form--grid { display: grid; gap: 1.1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); align-items: start; }
.form--grid > h3, .form--grid > p, .form--grid > .actions { grid-column: 1 / -1; margin-bottom: 0; }
.more > .panels { margin-top: .5rem; }
#recommendation[aria-busy="true"] { opacity: .55; }
#recommendation-failed[hidden] { display: none; }
.panel .more { margin: .75rem 0 0; }
/* A fiscal document's four steps: done, in course, stopped, rejected, still to come. */
.fiscal-progress { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1rem; counter-reset: step; }
.fiscal-progress__step { counter-increment: step; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: var(--q-r-full); font-size: var(--q-fs-15); background: var(--surface); }
.fiscal-progress__step::before { content: counter(step) ". "; font-weight: 600; }
.fiscal-progress__step--done { border-color: var(--brand); }
.fiscal-progress__step--current { border-color: var(--brand); font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand); }
.fiscal-progress__step--stopped, .fiscal-progress__step--rejected { border-color: var(--danger); color: var(--danger); font-weight: 600; }
.fiscal-progress__step--waiting { color: var(--ink-soft); border-style: dashed; }
/* «Recorrido del primer día»: the stages in order, each a link with its state. */
.first-day { display: grid; gap: .4rem; padding-left: 1.4rem; margin: 0 0 1.25rem; }
.first-day__stage { padding: .1rem 0; }
/* A stage's link is a touch target: at least 24 px high (WCAG 2.5.8), however short its words. */
.first-day__stage a, .readiness-action { display: inline-block; min-height: 24px; padding: .1rem 0; }
.first-day__stage--pending a { font-weight: 600; }
.receipt-preview__paper { background: var(--q-paper); color: var(--q-ink); border: 1px solid var(--line, var(--q-paper)); border-radius: var(--q-r-6); padding: .75rem; text-align: center; }
.receipt-preview__paper .receipt__logo { display: block; max-width: 60%; max-height: 120px; width: auto; height: auto; object-fit: contain; margin: 0 auto .5rem; }
.quick-menu__group { grid-column: 1 / -1; margin: .75rem 0 .1rem; font-size: var(--q-fs-15); }
.mesa__next { font-size: var(--q-fs-14); }
/* A product's photo in the panel (product_photos): as the menu shows it, never stretched. */
.product-photo { display: block; max-width: 100%; height: auto; border-radius: var(--q-r-8); }
.product-photo-frame { margin: 0 0 1rem; max-width: 18rem; }
.product-photo-frame figcaption { margin-top: .35rem; font-size: var(--q-fs-14); }
.product-photo--row { display: inline-block; vertical-align: middle; width: 2.75rem; height: 2.75rem; object-fit: cover; margin-right: .6rem; }

/* «P2» (QOC-5 Restaurante al 100 %, «Comensal por línea», 0164): whom a dish is for. One small chip wherever a line or a
   comanda is read; Grafito and Cocina tint it with their own tokens. «Mesa» is the dashed one. */
.guest-chip { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; min-width: 1.9rem; height: 1.4rem;
              margin-right: .35rem; padding: 0 .35rem; border-radius: var(--q-r-6); background: var(--q-text); color: var(--q-surface); font-size: var(--q-fs-14); font-weight: 650;
              line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; vertical-align: .08em; white-space: nowrap; }
.guest-chip--mesa { border: 1px dashed currentColor; background: transparent; color: inherit; font-weight: 600; }

/* Formularios (QOC-58, docs/UX_COMPONENTS.md «Formularios»): the shared form pieces of ``ui.py``. Tokens only, so
   the public site, the panel and Grafito (dark and «marfil») each draw them in their own colours: an error in
   ``--ux-attention`` where the panel defines it, ``--danger`` elsewhere. Every target is at least 44 px; text never
   under 14 px. A few selectors carry one class or attribute more than the theme's own field rules, so an error
   border and the inner padding of a field with a prefix survive the theme drawn after this sheet. */
input[type="time"] { width: 100%; padding: .7rem .8rem; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--q-line-2); border-radius: var(--q-r-6); }
.field--s { max-width: 14rem; }
.field--m { max-width: 18rem; }
.field-error { margin: 0 0 .35rem; color: var(--ux-attention, var(--danger)); font-size: var(--q-fs-15); font-weight: 600; }
.field--error { padding-left: .85rem; border-left: 4px solid var(--ux-attention-edge, var(--danger)); }
fieldset.field--error { padding-left: .85rem; }
.field.field--error :is(input, select, textarea)[aria-invalid="true"][id] { border-color: var(--ux-attention-edge, var(--danger)); box-shadow: inset 0 0 0 1px var(--ux-attention-edge, var(--danger)); }
@supports not (aspect-ratio: 1) { .field.field--error input[aria-invalid="true"][id], .field.field--error select[aria-invalid="true"][id], .field.field--error textarea[aria-invalid="true"][id] { border-color: var(--ux-attention-edge, var(--danger)); box-shadow: inset 0 0 0 1px var(--ux-attention-edge, var(--danger)); } }
.error-summary { margin: 0 0 1.25rem; padding: 1rem 1.1rem; border: 3px solid var(--ux-attention-edge, var(--danger)); border-radius: var(--q-r-8); background: var(--surface); color: var(--ink); }
.error-summary:focus { outline: 3px solid var(--warm); outline-offset: 2px; }
.error-summary__title { margin: 0 0 .5rem; font-family: var(--q-font); font-size: var(--q-fs-18); }
.error-summary__list { margin: 0; padding-left: 1.2rem; }
.error-summary__list li { margin: .15rem 0; }
.error-summary__list a { display: inline-block; min-height: 2.75rem; padding: .55rem 0; color: var(--ux-attention, var(--danger)); font-weight: 600; }
.affix { position: relative; display: flex; align-items: center; }
.affix__text { position: absolute; left: .85rem; z-index: 1; color: var(--ink-soft); font-weight: 600; pointer-events: none; }
.field .affix > input.affix__input[type] { padding-left: 3.6rem; }
.field--check .choice { min-height: 2.75rem; }
.field--check .choice input { width: 1.3rem; height: 1.3rem; margin: 0; flex: none; }
.fx-toggle__name { font-weight: 600; }
.form fieldset.form-section, fieldset.form-section { display: grid; gap: 1.1rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.form-section + .form-section { margin-top: .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.form-section__legend { display: block; margin: 0 0 .25rem; padding: 0; font-family: var(--q-font); font-size: var(--q-fs-18); font-weight: 600; line-height: 1.2; }
.cr-address__places { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .5rem; }
.form-actions .button { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 47.99rem) {
  /* On a phone the buttons stay in reach while the form scrolls; the panel's bar of tabs stays visible below. */
  .form-actions { position: sticky; bottom: 0; z-index: 5; padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom, 0px));
                  border-top: 1px solid var(--line); background: var(--cream, var(--paper)); }
  .form-actions .button { flex: 1 1 10rem; }
  .app:not(.app--work) .form-actions { bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)); }
}

/* Chrome 81 (the HiPOS point of sale): no gap in a flex box before Chrome 84 («revert»): margins keep buttons apart. */
@supports not (color: revert) {
  .actions > *, .form-actions > *, .card__actions > *, .todo__actions > *, .account-actions > *, .filters > *,
  .salon-tabs > * { margin-right: .5rem; margin-bottom: .5rem; }
}
