/* Property console, layered on site.css: the property's own vibe, type and
   colour, at the density of a tool used all day. Display face for titles and
   headline figures; body face with tabular figures for everything staff read
   in rows. Hairline rows on the ground colour instead of boxed panels. One bold
   element per screen. */

/* ------------------------------------------------------------ index ---- */
.pitch + .idx { min-height: calc(100svh - 44px); }
.idx__kicker { margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.idx__list--roles a { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
.idx__list--roles .idx__s { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.idx__new { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.idx__new::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.idx__foot a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 420px) { .idx__list--roles a { grid-template-columns: minmax(0, 1fr); } .idx__list--roles .idx__d { grid-column: 1; } }

body:has(.startclean) { padding-bottom: 64px; }
.startclean { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 89; font: 500 13px/1.3 "Instrument Sans", system-ui, sans-serif; }
.startclean__go { min-height: 36px; padding: 0 14px; border: 1px solid #3A3A3E; border-radius: 999px; background: #1E1E20; color: #EDEBE6; font: inherit; cursor: pointer; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .5); opacity: .82; transition: opacity 150ms ease; }
.startclean__go:hover, .startclean__go:focus-visible { opacity: 1; }
.startclean__ask { display: grid; grid-template-columns: auto auto; gap: 10px 8px; width: min(300px, calc(100vw - 32px)); padding: 14px; border-radius: 14px; background: #1E1E20; color: #EDEBE6; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55); }
.startclean__ask[hidden] { display: none; }
.startclean__ask p { grid-column: 1 / -1; color: #CFCCC4; }
.startclean__yes, .startclean__no { min-height: 36px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.startclean__yes { border: 0; background: #EDEBE6; color: #1E1E20; }
.startclean__no { border: 1px solid #55555A; background: transparent; color: #EDEBE6; }
@media print { .startclean { display: none; } }

/* ------------------------------------------------------------ shell ---- */
:root { --ctop-h: 64px; }
.ctop { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.ctop__in { display: flex; align-items: stretch; gap: 8px 28px; min-height: var(--ctop-h); }
.ctop__who { display: grid; align-content: center; gap: 1px; text-decoration: none; color: var(--ink); }
.ctop__who b { font: var(--display-weight) calc(1.3rem * var(--ds))/1.1 var(--display); letter-spacing: var(--display-track); white-space: nowrap; }
.ctop__who span { font-size: 13px; color: var(--muted); }
.ctabs { display: flex; gap: 4px; }
.ctabs button { display: inline-flex; align-items: center; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 500 15px/1 var(--body); cursor: pointer; white-space: nowrap; transition: color 150ms ease, border-color 150ms ease; }
.ctabs button:hover { color: var(--ink); }
.ctabs button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.ctop__out { display: flex; align-items: center; gap: 18px; margin-left: auto; font-size: 14px; }
.ctop__out a { color: var(--muted); text-underline-offset: 3px; }
.ctop__out a:hover { color: var(--ink); }

.cmain { display: grid; align-content: start; gap: clamp(24px, 3vw, 36px); padding-block: 0 clamp(64px, 8vw, 104px); font-size: 15px; line-height: 1.5; }
.chead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; padding-top: clamp(24px, 3.4vw, 40px); }
.chead h1 { font-size: calc(clamp(2rem, 4vw, 2.9rem) * var(--ds)); }
.chead p { font-size: 14px; color: var(--muted); }
.cmain:focus { outline: none; }

/* ----------------------------------------------------------- atoms ---- */
.muted { color: var(--muted); }
.r { text-align: right; }
.cbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 16px; border: 1px solid var(--deep); border-radius: var(--r-btn); background: var(--deep); color: var(--on-deep); font: 600 14px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.cbtn:hover { background: color-mix(in oklab, var(--deep) 86%, var(--ink)); }
.cbtn--line { background: transparent; color: var(--ink); border-color: color-mix(in oklab, var(--ink) 24%, transparent); }
.cbtn--line:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); border-color: var(--ink); }
.cbtn--line.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cbtn--band { background: var(--band-btn); border-color: var(--band-btn); color: var(--band-btn-ink); }
.cbtn--band:hover { background: color-mix(in oklab, var(--band-btn) 88%, white); }
.cbtn--sq { width: 38px; padding: 0; font-size: 18px; }
.cbtn--sm { min-height: 30px; padding: 0 11px; font-size: 13px; }
.cbtn--sq.cbtn--sm { width: 30px; padding: 0; font-size: 15px; }
.cbtn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
.cselect { min-height: 38px; max-width: 100%; padding: 0 12px; border: 1px solid color-mix(in oklab, var(--ink) 24%, transparent); border-radius: var(--r-btn); background: transparent; color: var(--ink); font: 500 14px/1 var(--body); }
.cselect[disabled] { opacity: .45; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.cempty { padding: 16px 0; color: var(--muted); font-size: 14px; list-style: none; }

/* Where a booking came from: a filled dot for direct, an open one for a travel site. */
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.src::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--deep); flex: none; }
.src--ota::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.src--fresh::before { background: var(--accent); }
.due { font-size: 13px; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.paid { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------- figures ---- */
.figs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.fig { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.fig b { font: var(--display-weight) calc(clamp(1.6rem, 2.6vw, 2.15rem) * var(--ds))/1.05 var(--display); letter-spacing: var(--display-track); overflow-wrap: anywhere; }
.fig span { font-size: 13px; color: var(--muted); }
.fig--quiet b { color: var(--muted); }
.fig--lead { padding: 0; border: 0; }
.fig--lead b { font-size: calc(clamp(3rem, 7vw, 5rem) * var(--ds)); line-height: .95; }
.fig--lead span { font-size: 15px; }

/* ---------------------------------------------------------- sections ---- */
.csec { min-width: 0; }
.csec__h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.csec__h h2 { font-size: calc(1.45rem * var(--ds)); }
.csec__h span { font-size: 13px; color: var(--muted); }
.cols { display: grid; gap: 32px; }

.crows { list-style: none; margin: 0; padding: 0; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.crow__main { display: grid; gap: 1px; min-width: 0; }
.crow__main b { font-weight: 600; }
.crow__main span { font-size: 13px; color: var(--muted); }
.crow__meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.crow > .cbtn, .crow > .paid { grid-column: 2; grid-row: 1 / span 2; }
.crow--plain > .crow__meta { grid-column: 2; grid-row: 1 / span 2; }
.crow--res { grid-template-columns: 3.6rem minmax(0, 1fr) auto; }
.crow--res .crow__time { grid-row: 1 / span 2; font: var(--display-weight) calc(1.25rem * var(--ds))/1 var(--display); }
.crow--res .crow__meta { grid-column: 2; }
.crow--res > .cbtn, .crow--res > .paid { grid-column: 3; }
.crow--fresh { padding-left: 14px; box-shadow: inset 3px 0 0 var(--accent); }
.crow--focus { background: color-mix(in oklab, var(--accent) 10%, transparent); }

/* ------------------------------------------------------------ landed ---- */
/* The booking just made on the website, on the screen of whoever handles it. */
.landed { display: grid; gap: 20px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-card); background: var(--deep); color: var(--on-deep); animation: land var(--dur) var(--ease) both; }
.landed:focus { outline: none; }
.landed__k { font-size: 14px; color: var(--deep-muted); }
.landed h2 { margin-top: 6px; font-size: calc(clamp(1.9rem, 3.6vw, 2.8rem) * var(--ds)); }
.landed__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 24px; margin: 0; padding-top: 18px; border-top: 1px solid var(--deep-line); }
.landed__facts dt { font-size: 13px; color: var(--deep-muted); }
.landed__facts dd { margin: 2px 0 0; font: var(--display-weight) calc(1.3rem * var(--ds))/1.2 var(--display); }
.landed__go { display: flex; flex-wrap: wrap; gap: 8px; }
.landed .cbtn--line { color: var(--on-deep); border-color: var(--deep-line); }
.landed .cbtn--line:hover { background: rgba(255, 255, 255, .08); border-color: var(--on-deep); }
@keyframes land { from { opacity: 0; transform: translateY(8px); } }

/* -------------------------------------------------------------- desk ---- */
.deskbar { display: grid; gap: 16px; }
.search { width: 100%; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); color: var(--ink); font: 400 16px/1 var(--body); }
.search:focus { outline: 2px solid var(--ink); outline-offset: -1px; }

.deskbar__do { display: flex; gap: 8px; }
.deskbar__do .search { flex: 1 1 280px; min-width: 0; }
.cbtn--tall { min-height: 48px; padding: 0 20px; }

/* ------------------------------------------------------- new booking ---- */
.cdialog--form { width: min(640px, calc(100vw - 32px)); }
.nb { display: grid; gap: 18px; }
.nb > .muted { margin-top: -12px; font-size: 14px; }
.nb__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.nb .field input, .nb .field select { min-height: 44px; }
.cdialog .field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.nb__rooms { margin: 0; padding: 0; border: 0; min-width: 0; }
.nb__rooms legend { margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.nb__room { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.nb__room:first-child { border-top: 1px solid var(--ink); }
.nb__room input { width: 18px; height: 18px; margin: 0; accent-color: var(--deep); }
.nb__rname { display: grid; font-weight: 600; }
.nb__rname small { font-size: 13px; font-weight: 400; color: var(--muted); }
.nb__room b { font: var(--display-weight) calc(1.15rem * var(--ds))/1 var(--display); }
.nb__room:has(input:checked) { background: color-mix(in oklab, var(--deep) 8%, transparent); }
.nb__room.is-full { opacity: .45; cursor: default; }
.nb__err { padding: 10px 12px; border-radius: min(var(--r-card), 10px); background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--ink); font-size: 14px; }
@media (max-width: 480px) { .nb__grid > .field:has([name="guest"]), .nb__grid > .field:has([name="phone"]) { grid-column: 1 / -1; } .deskbar__do { flex-wrap: wrap; } .deskbar__do .cbtn { width: 100%; } }

/* -------------------------------------------------------------- rack ---- */
.rack { display: grid; gap: 12px; min-width: 0; }
.rack__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.rack__range { font-size: 14px; color: var(--muted); }
.rack__key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }
.rack__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: min(var(--r-card), 14px); background: var(--surface); overscroll-behavior-x: contain; }
.rack__in { min-width: 920px; }
.rack__in--venues { min-width: 1100px; }
.rack__row { display: grid; grid-template-columns: 84px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.rack__row:last-child { border-bottom: 0; }
.rack__in--venues .rack__row { grid-template-columns: 170px minmax(0, 1fr); }
.rack__row--head { position: sticky; top: 0; z-index: 2; background: var(--surface); }
.rack__unit { position: sticky; left: 0; z-index: 1; display: flex; align-items: center; padding: 0 14px; border-right: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; }
.rack__unit--wide { font-size: 13px; font-weight: 500; line-height: 1.25; }
.rack__group { position: sticky; left: 0; width: max-content; padding: 14px 14px 6px; font: var(--display-weight) calc(1.05rem * var(--ds))/1.2 var(--display); color: var(--muted); }
.rack__track { position: relative; display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); grid-template-rows: 40px; }
.rack__track > i { grid-row: 1; border-right: 1px solid color-mix(in oklab, var(--line) 60%, transparent); }
.rack__track > i.is-we { background: color-mix(in oklab, var(--ink) 3%, transparent); }
.rack__track > i.is-today { background: color-mix(in oklab, var(--accent) 10%, transparent); }
.rack__track--head { grid-template-rows: auto; }
.rack__d { display: grid; justify-items: center; gap: 1px; padding: 8px 0; border-right: 1px solid color-mix(in oklab, var(--line) 60%, transparent); }
.rack__d small { font-size: 11px; color: var(--muted); }
.rack__d b { min-width: 26px; font-size: 14px; font-weight: 600; text-align: center; border-radius: 999px; }
.rack__d.is-we { background: color-mix(in oklab, var(--ink) 3%, transparent); }
.rack__d.is-today b { background: var(--accent); color: var(--on-accent); }
.bar { grid-row: 1; align-self: center; min-width: 0; height: 28px; margin: 0 2px; padding: 0 8px; border: 0; border-radius: min(var(--r-btn), 8px); font: 600 12px/28px var(--body); text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer; }
span.bar { cursor: default; }
.bar > span { display: block; overflow: hidden; text-overflow: ellipsis; }
.bar--direct { background: var(--deep); color: var(--on-deep); }
.bar--ota { background: color-mix(in oklab, var(--ink) 13%, var(--surface)); color: var(--ink); }
.bar--fresh { background: var(--accent); color: var(--on-accent); }
.bar--focus { outline: 2px solid var(--accent); outline-offset: 2px; animation: ring 1.4s ease 3; }
@keyframes ring { 50% { outline-offset: 5px; } }

/* --------------------------------------------------------- enquiries ---- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 84%); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.lane { scroll-snap-align: start; min-width: 0; }
.lane__h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.lane__h h2 { font-size: calc(1.3rem * var(--ds)); }
.lane__h span { font-size: 13px; color: var(--muted); }
.lane__list { list-style: none; margin: 0; padding: 0; }
.enq { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.enq__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.enq__top b { font-size: 15px; font-weight: 600; }
.enq__sub { font-size: 13px; color: var(--muted); }
.enq__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.enq__foot b { font: var(--display-weight) calc(1.2rem * var(--ds))/1 var(--display); }
.enq--fresh { padding-left: 14px; box-shadow: inset 3px 0 0 var(--accent); }
.enq--focus { background: color-mix(in oklab, var(--accent) 10%, transparent); padding-right: 12px; }

/* ----------------------------------------------------------- billing ---- */
.table-wrap { overflow-x: auto; }
.ctbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.ctbl--folio { min-width: 560px; }
.ctbl th { padding: 0 12px 10px 0; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 500; color: var(--muted); text-align: left; white-space: nowrap; }
.ctbl th.r { text-align: right; }
.ctbl td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctbl td:last-child, .ctbl th:last-child { padding-right: 0; }
.ctbl small { font-size: 12px; color: var(--muted); }
.settle { display: grid; width: min(340px, 100%); margin: 0 0 0 auto; }
.settle div { display: flex; justify-content: space-between; gap: 24px; padding: 5px 0; }
.settle dt { color: var(--muted); }
.settle dd { margin: 0; }
.settle__due { margin-top: 6px; padding-top: 12px !important; border-top: 1px solid var(--ink); align-items: baseline; }
.settle__due dt { color: var(--ink); font-weight: 600; }
.settle__due dd { font: var(--display-weight) calc(1.7rem * var(--ds))/1 var(--display); }

.cdialog { width: min(560px, calc(100vw - 32px)); max-height: min(88svh, 900px); padding: clamp(20px, 3vw, 28px); border: 0; border-radius: min(var(--r-card), 18px); background: var(--surface); color: var(--ink); overscroll-behavior: contain; }
.cdialog--wide { width: min(880px, calc(100vw - 32px)); }
.cdialog::backdrop { background: rgba(10, 12, 10, .5); }
.cdialog__h { font-size: calc(1.6rem * var(--ds)); }
.cdialog > .muted { margin-top: 4px; font-size: 14px; }
.cdialog__go { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 16px; }
.invoice { display: grid; gap: 20px; font-size: 14px; }
.invoice__h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.invoice__h h2 { margin-bottom: 6px; font-size: calc(1.7rem * var(--ds)); }
.invoice__meta { text-align: right; }
.invoice__meta h3 { margin-bottom: 4px; font-size: calc(1.2rem * var(--ds)); }
.invoice__note { font-size: 13px; }

/* ---------------------------------------------------------- restaurant ---- */
.resto { display: grid; gap: 32px; align-items: start; }
.resto__plan { display: grid; gap: 14px; min-width: 0; }
.resto__plan .csec { margin-top: 14px; }
.plan { width: 100%; height: auto; border-radius: min(var(--r-card), 14px); background: var(--surface); border: 1px solid var(--line); }
.plan__room { fill: var(--bg); stroke: var(--line); stroke-width: .4; }
.plan__door { font-size: 2.4px; fill: var(--muted); }
.pt text { font: 600 3.4px var(--body); fill: var(--ink); pointer-events: none; }
.pt .pt__m { font-size: 2.5px; font-weight: 500; fill: var(--muted); }
.pt circle, .pt rect { stroke-width: .5; cursor: pointer; transition: fill 150ms ease, stroke 150ms ease; }
.pt--free circle, .pt--free rect { fill: var(--surface); stroke: color-mix(in oklab, var(--ink) 30%, var(--surface)); }
.pt--booked circle, .pt--booked rect { fill: var(--surface); stroke: var(--deep); stroke-dasharray: 1.3 .9; }
.pt--busy circle, .pt--busy rect { fill: color-mix(in oklab, var(--deep) 22%, var(--surface)); stroke: var(--deep); }
.pt--fresh circle, .pt--fresh rect { stroke: var(--accent); stroke-width: .9; stroke-dasharray: none; }
.pt--on circle, .pt--on rect { fill: var(--accent); stroke: var(--accent); }
.pt--on text, .pt--on .pt__m { fill: var(--on-accent); }
.pt:hover circle, .pt:hover rect { stroke: var(--ink); }
.pt:focus-visible { outline: none; }
.pt:focus-visible circle, .pt:focus-visible rect { stroke: var(--ink); stroke-width: .9; }
.key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.k { display: flex; align-items: center; gap: 7px; }
.k::before { content: ''; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--ink) 30%, var(--surface)); background: var(--surface); }
.k--booked::before { border: 1.5px dashed var(--deep); }
.k--busy::before { border-color: var(--deep); background: color-mix(in oklab, var(--deep) 22%, var(--surface)); }
.k--on::before { border-color: var(--accent); background: var(--accent); }
.k--in::before { border-color: transparent; background: color-mix(in oklab, var(--deep) 55%, var(--surface)); }
.k--late::before { border-color: transparent; background: color-mix(in oklab, var(--accent) 70%, var(--surface)); }
.k--off::before { border-color: var(--line); background: transparent; }

.order { padding: clamp(18px, 2.4vw, 24px); border: 1px solid var(--line); border-radius: min(var(--r-card), 18px); background: var(--surface); min-width: 0; }
.order__none { padding: 56px 0; text-align: center; color: var(--muted); }
.order__lines { list-style: none; margin: 0 0 12px; padding: 0; }
.order__lines li:not(.cempty) { display: grid; grid-template-columns: minmax(0, 1fr) auto 5.5rem; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.order__qty { display: inline-flex; align-items: center; gap: 8px; }
.order__qty b { min-width: 1.2em; text-align: center; }
.order__go { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.menu { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--line); }
.menu__cat { margin: 14px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.menu__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.menu__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: min(var(--r-btn), 10px); background: var(--surface); color: var(--ink); font: 400 14px/1.25 var(--body); text-align: left; cursor: pointer; }
.menu__item:hover { border-color: var(--ink); }
.menu__item b { font-weight: 600; white-space: nowrap; }

/* ------------------------------------------------------------ kitchen ---- */
/* The pass. The oldest ticket is the loud one. */
.queue__head { font-size: 16px; color: var(--muted); }
.queue__none { padding: 64px 0; text-align: center; font: var(--display-weight) calc(1.8rem * var(--ds))/1.2 var(--display); color: var(--muted); }
.queue { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; gap: 12px; }
.tick { display: grid; gap: 12px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: min(var(--r-card), 18px); background: var(--surface); }
.tick__top { display: flex; align-items: baseline; gap: 14px; }
.tick__no { font: var(--display-weight) calc(2.6rem * var(--ds))/.9 var(--display); letter-spacing: var(--display-track); }
.tick__where { margin-right: auto; font-size: 15px; color: var(--muted); }
.tick__age { font-size: 16px; color: var(--muted); }
.tick--late .tick__age { color: var(--accent-ink); font-weight: 600; }
.tick__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 1.3rem; line-height: 1.3; }
.tick__items b { display: inline-block; min-width: 1.5em; font-weight: 600; }
.tick__go { width: 100%; min-height: 60px; border: 0; border-radius: var(--r-btn); background: var(--deep); color: var(--on-deep); font: 600 17px/1 var(--body); cursor: pointer; }
.tick--ready { background: var(--tint); }
.tick--ready .tick__go { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 30%, transparent); }
.queue > .tick:first-child { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.queue > .tick:first-child .tick__where, .queue > .tick:first-child .tick__age { color: var(--deep-muted); }
.queue > .tick:first-child.tick--late .tick__age { color: var(--band-btn); }
.queue > .tick:first-child .tick__go { background: var(--band-btn); color: var(--band-btn-ink); box-shadow: none; }

/* ------------------------------------------------------- housekeeping ---- */
.hklist { list-style: none; margin: 0; padding: 0; max-width: 780px; }
.hkr { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hkr__no { grid-row: 1 / 3; font: var(--display-weight) calc(1.7rem * var(--ds))/1 var(--display); }
.hkr__what { font-size: 13px; color: var(--muted); }
.hkr__state { grid-column: 2; font-size: 16px; font-weight: 500; }
.hkr--dirty .hkr__state { color: var(--accent-ink); font-weight: 600; }
.hkr--clean .hkr__state { color: var(--muted); }
.hkr__go { grid-row: 1 / 3; grid-column: 3; min-height: 52px; padding: 0 18px; border: 1px solid color-mix(in oklab, var(--ink) 24%, transparent); border-radius: var(--r-btn); background: transparent; color: var(--ink); font: 600 15px/1 var(--body); cursor: pointer; }
.hkr--dirty .hkr__go { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.hkr__go:hover { border-color: var(--ink); }

/* -------------------------------------------------------------- owner ---- */
.owner__lead { display: grid; gap: 14px; }
.owner__fees { max-width: 62ch; font-size: 16px; color: var(--muted); }
.owner__fees b { color: var(--ink); font-weight: 600; }
.hbars { list-style: none; margin: 0; padding: 16px 0 0; display: grid; gap: 14px; }
.hbar { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.hbar__k { grid-row: span 2; font-size: 14px; }
.hbar__track { height: 12px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.hbar__fill { display: block; height: 100%; min-width: 2px; border-radius: 0 3px 3px 0; background: var(--deep); }
.hbar__fill--ota { background: color-mix(in oklab, var(--ink) 30%, var(--surface)); }
.hbar__v { font-size: 14px; font-weight: 600; }
.hbar__v small { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--muted); }
.rota { min-width: 620px; }
.rota__head, .rota__row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(7, 38px) 110px; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rota__head { font-size: 12px; color: var(--muted); text-align: center; }
.rota__head span:first-child, .rota__head span:last-child { text-align: left; }
.rota__head .is-today { color: var(--ink); font-weight: 600; }
.rota__who { display: grid; min-width: 0; }
.rota__who b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rota__who small { font-size: 12px; color: var(--muted); }
.rota__shift { font-size: 13px; color: var(--muted); white-space: nowrap; }
.att { width: 16px; height: 16px; border-radius: 4px; justify-self: center; }
.att--in { background: color-mix(in oklab, var(--deep) 55%, var(--surface)); }
.att--late { background: color-mix(in oklab, var(--accent) 70%, var(--surface)); }
.att--off { box-shadow: inset 0 0 0 1px var(--line); }
.csec .key { margin-top: 12px; }

/* ------------------------------------------------------------- notices ---- */
.toast { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: min(var(--r-btn), 14px); background: var(--ink); color: var(--bg); font-size: 14px; transform: translateX(-50%); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); animation: rise 250ms ease both; transition: opacity 300ms ease, transform 300ms ease; }
.toast.is-out { opacity: 0; transform: translate(-50%, 10px); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } }
.ping { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 91; display: flex; align-items: center; gap: 14px; width: min(440px, calc(100vw - 32px)); padding: 14px 14px 14px 18px; border-radius: min(var(--r-card), 18px); background: var(--deep); color: var(--on-deep); box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .5); animation: land var(--dur) var(--ease) both; }
.ping p { flex: 1; font-size: 14px; }
.ping__x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--deep-muted); font-size: 20px; cursor: pointer; }

/* --------------------------------------------------------------- touch ---- */
/* A tablet at the pass, a phone in a corridor: bigger targets, same language. */
[data-touch] .cbtn { min-height: 48px; padding: 0 18px; font-size: 15px; }
[data-touch] .cbtn--sq { width: 48px; padding: 0; }
[data-touch] .cbtn--sm { min-height: 40px; }
[data-touch] .cbtn--sq.cbtn--sm { width: 40px; }
[data-touch] .cselect { min-height: 48px; }
[data-touch] .ctabs button { font-size: 16px; }

/* ------------------------------------------------------------- phones ---- */
@media (max-width: 759px) {
  .ctop__in { flex-wrap: wrap; align-items: center; padding-top: 10px; }
  .ctop__who b { font-size: calc(1.15rem * var(--ds)); }
  .ctabs { order: 3; width: calc(100% + 2 * var(--gut)); margin-inline: calc(-1 * var(--gut)); padding-inline: calc(var(--gut) - 12px); overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
  .ctabs button { min-height: 46px; }
  .ctop__out { gap: 14px; font-size: 13px; }
  .ctop__out a:last-child { display: none; }
  .crow--res { grid-template-columns: 3rem minmax(0, 1fr) auto; }
}

/* ------------------------------------------------------------- tablet ---- */
@media (min-width: 760px) {
  .figs { display: flex; border-bottom: 1px solid var(--line); }
  .fig { flex: 1 1 0; padding: 16px 22px; border-bottom: 0; border-left: 1px solid var(--line); }
  .fig:first-child { padding-left: 0; border-left: 0; }
  .board { grid-auto-columns: minmax(260px, 46%); }
  .owner__lead { grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 20px 48px; }
}

/* ------------------------------------------------------------ desktop ---- */
@media (min-width: 1080px) {
  .cols { grid-template-columns: 1fr 1fr; gap: 48px; }
    .board { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
}

/* The floor on a tablet in landscape and up: plan and bookings on the left, the
   order always in reach on the right. */
@media (min-width: 900px) {
  .resto { grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr); grid-template-areas: "plan order" "list order"; gap: 28px 40px; }
  .resto__plan { grid-area: plan; }
  .resto__list { grid-area: list; }
  .resto > .order { grid-area: order; align-self: start; position: sticky; top: calc(var(--ctop-h) + 16px); max-height: calc(100svh - var(--ctop-h) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}

@media (prefers-reduced-motion: reduce) {
  .landed, .ping, .toast, .bar--focus { animation: none; }
}

/* ============================================================ front desk ==== */
.linkbtn { padding: 0; border: 0; background: none; color: var(--ink); font: 500 14px/1.3 var(--body); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--ink) 35%, transparent); text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { text-decoration-color: currentColor; }
.linkbtn--sm { font-size: 12px; font-weight: 500; color: var(--muted); }
.csec__h .linkbtn { margin-left: 12px; font-size: 13px; }
.rowlink { padding: 0; border: 0; background: none; color: var(--ink); font: 600 15px/1.35 var(--body); text-align: left; cursor: pointer; }
.rowlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.ctag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 7%, transparent); font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.ctag--warn { background: color-mix(in oklab, var(--accent) 22%, transparent); color: var(--ink); }
.crow--req, .crow--house { grid-template-columns: 3.6rem minmax(0, 1fr) auto; }
.crow--req, .crow--house { grid-template-columns: 4.8rem minmax(0, 1fr) auto; }
.crow--req .crow__time, .crow--house .crow__time { white-space: nowrap; grid-row: 1 / span 2; font: var(--display-weight) calc(1.15rem * var(--ds))/1 var(--display); }
.crow--req .crow__meta, .crow--house .crow__meta { grid-column: 2; }
.crow--req > .cbtn, .crow--house > .cbtn { grid-column: 3; }
.crow--req.is-done { opacity: .6; }
.crow__note { font-weight: 400; color: var(--muted); }
.deskbar--solo { display: flex; }
.deskbar__do { flex-wrap: wrap; }
.gnote { margin-top: 10px; font-size: 14px; color: var(--muted); }
.gnote--warn { padding: 10px 12px; border-radius: min(var(--r-card), 10px); background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--ink); }
.back { margin-bottom: -12px; }

/* The guest page: the stay at a glance, then what the desk does to it. */
.gpage { display: grid; gap: 18px; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r-card); background: var(--deep); color: var(--on-deep); }
.gfacts { padding-top: 0; border-top: 0; }
.gpage__who { font-size: 14px; color: var(--deep-muted); }
.gpage__do { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--deep-line); }
.gpage .cbtn:not(.cbtn--line) { background: var(--band-btn); border-color: var(--band-btn); color: var(--band-btn-ink); }
.gpage .cbtn--line { color: var(--on-deep); border-color: var(--deep-line); }
.gpage .cbtn--line:hover { background: rgba(255, 255, 255, .08); border-color: var(--on-deep); }
.gside { display: grid; gap: 32px; align-content: start; min-width: 0; }
.crow--id { grid-template-columns: minmax(0, 1fr) auto; }
.idthumbs { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; align-items: center; }
.idthumbs img { width: 64px; height: 42px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.sigimg { display: block; max-width: 280px; margin-top: 12px; padding: 8px; border-bottom: 1px solid var(--ink); background: var(--surface); }
.kv { display: grid; gap: 8px; margin: 12px 0 0; }
.kv div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.ctbl tr.is-disc td { color: var(--accent-ink); }

/* Wizards: check-in, checkout, settling a bill. The footer never scrolls away. */
.cdialog--wizard { width: min(760px, calc(100vw - 24px)); height: min(92svh, 920px); padding: 0; display: flex; }
.cdialog--wizard[open] { display: flex; }
.wiz { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.wiz__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.wiz__x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.wiz__x:hover { background: var(--tint); color: var(--ink); }
.wiz__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 18px; padding: 18px 24px 24px; }
.wiz > .nb__err { margin: 0 24px 12px; }
.wiz > .cdialog__go { margin: 0; padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.csteps { padding: 12px 24px 0; font-size: 14px; }
.csteps p { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.csteps p span { margin-left: auto; color: var(--muted); }
.csteps__track { height: 3px; margin-top: 10px; border-radius: 3px; background: var(--line); overflow: hidden; }
.csteps__track i { display: block; height: 100%; background: var(--deep); transition: width var(--dur) var(--ease); }
.wiz__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-block: 1px solid var(--line); font-weight: 500; }
.stepper { display: inline-flex; align-items: center; gap: 12px; }
.wiz__alt { font-size: 14px; }
.field--wide { grid-column: 1 / -1; }
.gcard { display: grid; gap: 14px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: min(var(--r-card), 14px); min-width: 0; }
.gcard legend { padding: 0 6px; font: var(--display-weight) calc(1.15rem * var(--ds))/1 var(--display); }
.idpair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.idslot { display: grid; align-content: start; gap: 8px; min-height: 120px; padding: 10px; border: 1px dashed color-mix(in oklab, var(--ink) 30%, transparent); border-radius: 10px; background: var(--bg); }
.idslot.has-img { border-style: solid; }
.idslot img, .idslot video, .idslot__none { max-height: 150px; }
.idslot img, .idslot video { width: 100%; aspect-ratio: 1.585; object-fit: cover; border-radius: 6px; background: var(--ink); }
.idslot__none { display: grid; place-items: center; aspect-ratio: 1.585; border-radius: 6px; background: var(--tint); font-size: 13px; color: var(--muted); }
.idslot[data-idslot$=":front"] .idslot__none::before { content: 'Front of the ID'; }
.idslot[data-idslot$=":back"] .idslot__none::before { content: 'Back of the ID'; }
.idslot__none { font-size: 0; }
.idslot__none::before { font-size: 13px; }
.idslot__do { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.idslot__do .linkbtn { font-size: 13px; }
.grc { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 13px; }
.grc .doc__h h1 { font-size: 1.3rem; }
.sig { display: grid; gap: 6px; }
.sig__pad { width: 100%; height: 150px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); touch-action: none; cursor: crosshair; }
.sig__line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.choice { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.choice legend { margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.choice label, .check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.choice input, .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--deep); flex: none; }
.choice--row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choice--row legend { width: 100%; }
.settle--wide { width: 100%; }
.pays { display: grid; gap: 8px; }
.pays__rows { display: grid; gap: 8px; }
.pays__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 8px; }
.pays__row select, .pays__row input { min-height: 44px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: calc(var(--r-card) / 2); background: var(--field-bg); color: var(--ink); font: 500 16px/1 var(--body); }
.pays__x { border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.pays__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 14px; }
.pays__foot .is-ok { color: var(--muted); }
.pays__foot .is-off { color: var(--accent-ink); font-weight: 600; }
.nb__or { font-size: 13px; font-weight: 500; color: var(--muted); }

/* Rooms: one tile per room, coloured by what has to happen next. */
.tiles { display: grid; gap: 22px; }
.tiles__group h2 { margin-bottom: 10px; font-size: calc(1.2rem * var(--ds)); color: var(--muted); }
.tiles__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tile { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: min(var(--r-card), 12px); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.tile b { font: var(--display-weight) calc(1.6rem * var(--ds))/1 var(--display); }
.tile span { font-size: 13px; font-weight: 600; }
.tile small { font-size: 12px; color: var(--muted); }
.tile:hover { border-color: var(--ink); }
.tile--occupied, .tile--dueout { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.tile--occupied small, .tile--dueout small { color: var(--deep-muted); }
.tile--dirty { background: color-mix(in oklab, var(--accent) 22%, var(--surface)); border-color: transparent; }
.tile--oos { background: repeating-linear-gradient(135deg, var(--tint) 0 6px, var(--surface) 6px 12px); color: var(--muted); }
.rack__unit small { display: block; font-size: 10px; font-weight: 500; color: var(--accent-ink); }
.rack__unit { flex-direction: column; justify-content: center; align-items: flex-start; }
.rack__track.is-oos > i { background: repeating-linear-gradient(135deg, var(--tint) 0 5px, transparent 5px 10px); }
.drawer { display: grid; gap: 16px; padding-top: 16px; }
.drawer__go { display: flex; justify-content: flex-end; }

/* ========================================================= restaurant ==== */
.search--sm { min-height: 42px; font-size: 15px; }
.menu__find { display: grid; gap: 10px; margin: 14px 0 10px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 500 13px/1 var(--body); cursor: pointer; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.vmark { display: inline-block; flex: none; width: 11px; height: 11px; margin-right: 8px; border: 1.5px solid; border-radius: 2px; vertical-align: -1px; position: relative; }
.vmark::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }
.vmark--veg { color: #2E7D32; }
.vmark--non { color: #A1362B; }
.order__lines li:not(.cempty) { grid-template-columns: minmax(0, 1fr) auto 3.8rem 4.8rem; }
.order__lines li.is-new { background: color-mix(in oklab, var(--accent) 9%, transparent); margin-inline: -8px; padding-inline: 8px; border-radius: 6px; }
.order__name { display: grid; justify-items: start; gap: 2px; }
.order__name small { font-size: 12px; color: var(--accent-ink); }
.order__state { font-size: 12px; color: var(--muted); text-align: right; }
.order__lines li.is-new .order__state { color: var(--accent-ink); font-weight: 600; }
.pt--new circle, .pt--new rect { fill: color-mix(in oklab, var(--accent) 30%, var(--surface)); stroke: var(--accent); }
.k--new::before { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 30%, var(--surface)); }
.seg .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; }
.seat { display: grid; gap: 14px; margin-top: 14px; }
.tick__items small { display: block; margin-left: 1.5em; font-size: 1rem; color: var(--accent-ink); }
.queue > .tick:first-child .tick__items small { color: var(--band-btn); }
.hkr--dueout .hkr__state, .hkr--oos .hkr__state { color: var(--muted); }
.hkr--arriving .hkr__state { color: var(--deep); font-weight: 600; }

@media (max-width: 759px) {
  .idpair { grid-template-columns: 1fr; }
  .wiz__h, .wiz__body, .csteps { padding-inline: 16px; }
  .wiz > .cdialog__go { padding-inline: 16px; }
  .cdialog--wizard { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; margin: 0; border-radius: 0; }
  .order__lines li:not(.cempty) { grid-template-columns: minmax(0, 1fr) auto 4.4rem; }
  .order__state { display: none; }
  .kv div { grid-template-columns: 6rem minmax(0, 1fr); }
}
@media (min-width: 1080px) {
  .cols--guest { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

/* ============================================================== print ==== */
/* One document at a time: the console hides and only #printzone prints. */
#printzone { display: none; }
.doc { color: #111; font: 13px/1.45 system-ui, sans-serif; }
.doc__h { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1.5px solid #111; }
.doc__h h1 { font: 600 1.5rem/1.1 var(--display); }
.doc__h h2 { font-size: 1.1rem; }
.doc__meta { text-align: right; }
.doc__kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin: 0 0 14px; }
.doc__kv div { display: grid; grid-template-columns: 9rem 1fr; gap: 8px; }
.doc__kv dt { color: #555; }
.doc__kv dd { margin: 0; }
.doc__tbl { margin: 8px 0 12px; }
.doc__tbl th { border-bottom-color: #111; color: #444; }
.doc__terms { margin: 14px 0 0; padding-left: 18px; font-size: 12px; color: #333; }
.doc__sign { display: flex; justify-content: space-between; gap: 40px; margin-top: 56px; }
.doc__sign span { flex: 1; padding-top: 6px; border-top: 1px solid #111; font-size: 12px; }
.doc__note { margin-top: 10px; font-size: 12px; }
.doc__to { margin-bottom: 12px; }
@media print {
  .is-printing body > *:not(#printzone) { display: none !important; }
  .is-printing #printzone { display: block; }
  .is-printing body { background: #fff; }
  @page { margin: 14mm; }
}
