/* NSysNets Client Portal: the app's own layout. Colours, fonts, corners, buttons,
   cards, fields, pills and messages come from the shared brand part:
   brand/theme.css (the client's look), brand/staff-theme.css (its light look,
   for staff pages, scoped to .staff), and components/brand/base.css. */

:root { --gutter: clamp(16px, 4vw, 40px); --focus: 0 0 0 3px var(--accent); --danger: #a4271f; }
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { pointer-events: none; }
.app { min-height: 100vh; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
/* The drawings' cards are plain blocks, spaced by each part's own margins, as these styles
   were made from them. The shared card is a grid, which adds gaps and stretches buttons. */
:where(.app) .nsys-card { display: block; }
.customer .nsys-card { padding: 28px; }
/* Buttons set display, which would otherwise show them while they're still hidden. */
.app [hidden] { display: none !important; }
.visually-hidden, .trap {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.icon { display: inline-flex; flex: none; width: 20px; height: 20px; }
.icon svg { width: 100%; height: 100%; }
.small { font-size: 14px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.page-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.section-heading { font-size: 21px; }
.brand-link { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.customer-top, .staff-top { --wordmark-accent: var(--header-accent); --wordmark-muted: var(--header-muted); }
.sign-in-brand, .error-brand { --wordmark-accent: var(--accent-text); --wordmark-muted: var(--muted); }
.nsys-button .icon { width: 18px; height: 18px; }
.small-button { min-height: 44px; padding: 0 14px; }
.center { justify-content: center; }
.form-problem { margin-top: 18px; }
.empty-note { margin-top: 22px; }
.short-input { max-width: 140px; }
.note-box { padding: 10px 14px; min-height: 92px; }
.nav-button { min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--header-muted); font: 700 14.5px var(--body-font); cursor: pointer; }
.nav-button:hover { color: var(--header-text); }
.staff-nav form { display: flex; }
.danger-button { border-color: var(--danger); color: var(--danger); }
.add-day { margin-top: 6px; }

/* Fields */
.field-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; }
.check-line input { width: 20px; height: 20px; accent-color: var(--accent); }
.hint { margin-top: 6px; font-size: 14px; color: var(--muted); }
.field-error { margin-top: 8px; font-size: 14.5px; color: var(--bad-text); }

/* Customer pages */
.customer { background: var(--page); color: var(--text); }
.nsys-card.sign-in-card, .nsys-card.message-card, .nsys-card.sent-card { padding: 28px; }
/* The code boxes need 298px on phones over 360 wide, and smaller ones below that. The sign-in
   card's sides shrink from 28px to make room, so at 390 wide it stays as drawn. 166px is half of
   the boxes, the card's borders and both 16px gutters. */
@media (min-width: 361px) and (max-width: 420px) {
  .customer .nsys-card.sign-in-card { padding-inline: clamp(14px, calc(50vw - 166px), 28px); }
}
.card-icon { display: inline-flex; width: 44px; height: 44px; color: var(--accent-text); }
.card-icon svg, .card-icon .icon { width: 100%; height: 100%; }
.sign-in-card .card-icon, .message-card .card-icon, .sent-card .card-icon { justify-self: center; }
.customer h1 { font: 700 clamp(28px, 4vw, 40px)/1.15 var(--heading-font); }
.customer .credit { font-size: 13px; color: var(--muted); }
.credit a { text-decoration: none; white-space: nowrap; }
.credit a:hover { text-decoration: underline; }
.customer .meter { background: color-mix(in srgb, var(--text) 14%, transparent); }
.customer .meter span { background: var(--accent); }

/* Customer sign in */
.sign-in { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 480px; padding-block: 48px 32px; }
.sign-in .credit { text-align: center; }
.sign-in-brand { padding-bottom: 6px; }
.sign-in-card { width: 100%; text-align: center; }
.sign-in-card h1 { margin-top: 10px; }
.sign-in-card > p { margin-top: 8px; color: var(--muted); }
.code-form { display: grid; gap: 10px; margin-top: 20px; text-align: left; }
.code-form .field-label { margin-bottom: 0; }
.code-entry { position: relative; }
.code-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.code-boxes span { display: flex; align-items: center; justify-content: center; height: 58px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); font: 700 26px/1 var(--body-font); color: var(--text); }
.code-boxes .is-next { border: 2px solid var(--accent); }
/* One real field lies over the six boxes, so typing, pasting and phone code suggestions all work. */
.code-entry .code-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.code-entry:focus-within .code-boxes .is-next { box-shadow: var(--focus); }
.code-entry.has-error .code-boxes span { border-color: var(--bad-text); }
.code-form .nsys-button { margin-top: 6px; }
.privacy { width: 100%; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; }
.privacy summary { display: flex; align-items: center; gap: 10px; min-height: 28px; font-weight: 700; cursor: pointer; }
.privacy summary svg, .privacy summary .icon { width: 20px; height: 20px; color: var(--accent-text); }
.book-privacy { margin-top: 22px; }
.privacy ul { display: grid; gap: 8px; margin-top: 12px; padding-left: 30px; list-style: disc; font-size: 14.5px; color: var(--muted); }
.message-card { width: 100%; text-align: center; }
.message-card > p { margin-top: 8px; color: var(--muted); }
.message-title { font: 700 26px/1.2 var(--heading-font) !important; margin-top: 6px; }

/* Customer top bar */
.customer-top { border-bottom: 1px solid var(--line); background: var(--header-bg); color: var(--header-text); }
.customer-top-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.event-name { margin-left: auto; font: 700 17px/1.2 var(--heading-font); }
.event-name span { font: 400 15px var(--body-font); color: var(--header-muted); }
.customer-nav { display: flex; gap: 4px; }
.customer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--header-muted); }
.customer-nav a:hover, .customer-nav a[aria-current="page"] { color: var(--header-accent); }
/* Staff looking at a customer's page as the customer would. */
.preview-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding: 10px var(--gutter); background: #fbefcf; color: #4a3305; font-size: 14px; font-weight: 600; text-align: center; }
.preview-note a { color: inherit; }

/* Gallery */
.gallery { padding-block: 36px 24px; }
.gallery-intro { max-width: 760px; }
.gallery-intro h1 { margin-top: 6px; }
.gallery-intro p:last-child { margin-top: 10px; color: var(--muted); font-size: 17px; }
.section-tabs { display: flex; gap: 8px; margin-top: 26px; padding-bottom: 4px; overflow-x: auto; }
.section-tabs a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; flex: none;
  border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 700; text-decoration: none;
}
.section-tabs a span { font-weight: 400; color: var(--muted); }
.section-tabs a[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.section-tabs a[aria-current="page"] span { color: var(--on-accent); }
.section-title { margin-top: 28px; font: 700 24px/1.2 var(--heading-font); }
.section-title span { margin-left: 8px; font: 400 15px var(--body-font); color: var(--muted); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 16px; }
.photo-grid.small { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 6px; }
.thumb { position: relative; }
.thumb-photo { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--surface); }
.thumb-photo img { width: 100%; height: 100%; object-fit: cover; }
/* The tick on each tile is a small form's button, so choosing works without scripts too. */
.pick { position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.pick:focus-visible { outline: none; }
span.pick { cursor: default; }
/* The tick sits on the photo, so it keeps the same light ring on every brand. */
.pick-mark {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border: 2px solid #ffffff; border-radius: 50%; background: rgba(0, 0, 0, .42); color: transparent;
}
.pick-mark svg { width: 18px; height: 18px; }
.thumb.chosen .thumb-photo { outline: 4px solid var(--accent); outline-offset: -4px; }
.thumb.chosen .pick .pick-mark { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.pick:focus-visible .pick-mark { box-shadow: var(--focus); }
.thumb .pick.remove .pick-mark { border-color: #ffffff; background: rgba(0, 0, 0, .66); color: #ffffff; width: 28px; height: 28px; }
.pick .when-on, .thumb.chosen .pick .when-off { display: none; }
.thumb.chosen .pick .when-on { display: flex; }
.photo-grid.small .thumb.chosen .thumb-photo { outline: none; }
.photo-grid.small .thumb:not(.chosen) .thumb-photo { opacity: .3; }

.more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; color: var(--muted); font-size: 14.5px; }
.next-section { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 12px; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.next-section span { display: inline-flex; width: 18px; height: 18px; }

.choose-bar { position: sticky; bottom: 0; z-index: 2; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--page) 96%, transparent); }
.choose-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.choose-count { font-size: 15.5px; color: var(--muted); }
.choose-count strong { font-size: 19px; color: var(--text); }
.saved { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: 13.5px; color: var(--muted); }
.saved .icon { width: 16px; height: 16px; color: var(--accent-text); }

.customer-foot { padding-block: 26px 30px; border-top: 1px solid var(--line); }
.customer-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; color: var(--muted); }

/* One photo */
.viewer-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-inline: var(--gutter); border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.viewer-back { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.viewer { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px var(--gutter); }
.proof { position: relative; display: inline-block; overflow: hidden; }
.proof img { max-height: 620px; width: auto; }
/* In the real app the mark is part of each small copy. Here it's drawn on top. */
.proof-mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-24deg);
  font: 700 clamp(18px, 3.6vw, 44px)/1 var(--heading-font); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255, 255, 255, .34); text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.viewer-step {
  display: flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--text);
}
.viewer-step svg { width: 26px; height: 26px; }
.viewer-step.none { visibility: hidden; }
.viewer-bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px var(--gutter) 36px; text-align: center; }
.file-name { font-size: 13.5px; letter-spacing: .04em; color: var(--muted); }
.choose-button { min-width: 300px; min-height: 54px; border-color: var(--accent); color: var(--accent-text); font-size: 14.5px; }
.choose-button .when-on { display: none; }
.choose-button span { display: inline-flex; align-items: center; gap: 8px; }
.choose-button[aria-pressed="true"] { background: linear-gradient(var(--accent-light), var(--accent-deep)); color: var(--on-accent); }
.choose-button[aria-pressed="true"] .when-off { display: none; }
.choose-button[aria-pressed="true"] .when-on { display: inline-flex; }
.choose-problem { max-width: 460px; }
.limit-note { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 460px; padding: 18px 22px; border: 1px solid var(--accent); border-radius: 12px; background: var(--surface); }

/* My choices */
.review { padding-block: 26px 40px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.customer .back-link { color: var(--muted); }
.review h1 { margin-top: 6px; }
.review-count { margin-top: 8px; font-size: 17px; color: var(--muted); }
.review-count strong { color: var(--text); }
.send-box { margin-top: 30px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.send-box h2 { font: 700 24px/1.2 var(--heading-font); }
.send-box p { max-width: 680px; margin: 8px 0 18px; color: var(--muted); }

/* Choices sent */
.sent-page { display: flex; justify-content: center; padding-block: 56px; }
.sent-card { max-width: 620px; text-align: center; }
.sent-card h1 { margin-top: 12px; }
.sent-card > p { margin-top: 10px; color: var(--muted); font-size: 17px; }
.sent-card .small { margin-top: 18px; color: var(--muted); }
.facts { display: grid; gap: 10px; margin: 22px 0; text-align: left; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 700; text-align: right; }
.card-icon.done { width: 56px; height: 56px; }

/* Staff pages */
.staff { background: var(--page); color: var(--text); }
.staff h1 { font: 700 clamp(28px, 3.4vw, 36px)/1.15 var(--heading-font); }
.staff h2 { font: 700 21px/1.25 var(--heading-font); }
.staff .eyebrow { color: var(--accent-text); }
.staff .credit { font-size: 13px; color: var(--muted); }
.staff .back-link { color: var(--muted); }
.staff .facts div { border-bottom-color: var(--line); }
.staff .facts dt { color: var(--muted); }

.staff-top { background: var(--header-bg); color: var(--header-text); }
.staff-top-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand-link { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.staff-nav { display: flex; gap: 4px; margin-left: auto; }
.staff-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-bottom: 2px solid transparent; font-size: 14.5px; font-weight: 700; text-decoration: none; color: var(--header-muted); }
.staff-nav a[aria-current="page"] { border-bottom-color: var(--header-accent); color: var(--header-text); }
.staff-foot { padding-block: 24px 30px; }
.staff-main { padding-block: 28px 40px; }
.staff-main.narrow { max-width: 820px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.meta { margin-top: 4px; color: var(--muted); }
.staff .nsys-card { padding: 22px 24px; }
.staff .nsys-card.sign-in-card { padding: 28px; }
.note { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.note .icon { margin-top: 1px; color: var(--accent-text); }

.staff-sign-in-page .sign-in { padding-top: 64px; }
.staff-card { width: 100%; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.staff-card h1 { margin-top: 6px; }
.stack-form { display: grid; gap: 6px; margin-top: 18px; text-align: left; }
.stack-form .field-label { margin-top: 8px; margin-bottom: 0; }
.stack-form .nsys-button { margin-top: 16px; }
.staff-card .small { margin-top: 16px; color: var(--muted); }

/* Events list */
.space { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 22px; }
.space-text { flex: 1 1 320px; }
.space-text p { margin-top: 2px; color: var(--muted); }
.space-text strong { color: var(--text); }
.space .meter { flex: 1 1 280px; }
.meter { height: 10px; overflow: hidden; border-radius: 5px; background: #e8e6e0; }
.meter span { display: block; height: 100%; border-radius: 5px; background: var(--accent-deep); }
.table-box { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.events-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.events-table th, .events-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.events-table thead th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #fafaf8; }
.events-table tbody tr:last-child > * { border-bottom: 0; }
.events-table tbody th { font-weight: 700; }
.events-table tbody th a { color: var(--text); text-decoration-color: var(--accent-deep); text-underline-offset: 3px; }
/* Status colours mean the same for every client. */
.chip { flex: none; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.chip.choosing { background: #fbefcf; color: #6b4a08; }
.chip.adding { background: #e0f0ef; color: #155e63; }
.chip.booked { background: #e2ecf6; color: #1d4b7a; }
.chip.new { background: #ece6fb; color: #4b2d91; }
.chip.sent { background: #e1f0e3; color: #1f5a2a; }
.chip.waiting, .chip.closed { background: #eeebe4; color: #4d4a44; }

/* Forms */
.form-panel { display: grid; gap: 18px; margin-top: 20px; }
.form-panel h2 + .hint { margin-top: -12px; }
.form-panel > .nsys-button, .form-panel > .nsys-buttons, .form-panel > .text-button { justify-self: start; }
.field { min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
fieldset.field { margin: 0; padding: 0; border: 0; }
.package-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.package-option { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 44px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.package-option input { position: absolute; left: 14px; top: 17px; width: 20px; height: 20px; margin: 0; accent-color: var(--accent-deep); }
.package-option:has(input:checked) { border: 2px solid var(--accent-deep); padding: 13px 15px 13px 43px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.package-name { font-weight: 700; }
.package-limit { font-size: 14px; color: var(--muted); }
.hint a { color: var(--accent-text); font-weight: 700; }
.package-rows { display: grid; gap: 10px; }
.package-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto 44px; align-items: center; gap: 10px; }
.package-row span { color: var(--muted); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.icon-button:hover { color: var(--text); }
.icon-button svg { width: 20px; height: 20px; }
.unit-input { display: flex; align-items: center; gap: 10px; }
.unit-input input { max-width: 120px; }
.unit-input span { color: var(--muted); }

/* One event */
.staff-main .back-link + .page-head { margin-top: 4px; }
.event-columns { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 22px; }
.side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.drop-zone {
  display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; padding: 28px 24px;
  border: 2px dashed color-mix(in srgb, var(--accent-deep) 55%, var(--surface)); border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface)); text-align: center;
}
.drop-icon { display: inline-flex; width: 40px; height: 40px; color: var(--accent-text); }
.drop-icon svg { width: 100%; height: 100%; }
.drop-zone .hint { max-width: 460px; }
.drop-zone.over { border-style: solid; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.upload .form-problem { margin-top: 14px; }
.finish-form { display: grid; justify-items: start; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-sent { margin-top: 24px; }
.phone-only { display: none; }
.progress { margin-top: 22px; }
.progress-total { margin-bottom: 8px; }
.section-progress { display: grid; gap: 2px; margin-top: 14px; }
.section-progress li { display: grid; grid-template-columns: minmax(0, 1fr) auto 120px 92px; align-items: center; gap: 14px; min-height: 44px; border-top: 1px solid var(--line); font-size: 15px; }
.section-name { font-weight: 700; }
.section-count { color: var(--muted); }
.mini-meter { height: 6px; overflow: hidden; border-radius: 3px; background: #e8e6e0; }
.mini-meter span { display: block; height: 100%; background: var(--accent-deep); }
.section-state { font-size: 13.5px; font-weight: 700; text-align: right; }
.section-progress .done .section-state { color: #1f5a2a; }
.section-progress .uploading .section-state { color: #1d4b7a; }
.section-progress .waiting .section-state { color: var(--muted); }
.share > .field-label, .share > p.field-label { margin-top: 16px; }
.copy-row { display: flex; align-items: center; gap: 10px; }
.copy-row input { flex: 1; min-width: 0; font-size: 14.5px; }
.code-show { font: 700 30px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; }
.copy-row .text-button { margin-left: auto; }
.message-preview { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.share .nsys-buttons { margin-top: 16px; }
.details .facts { margin: 14px 0 16px; }
.danger h2 { color: var(--danger); }
.danger-button { margin-top: 14px; border-color: var(--danger); color: var(--danger); background: var(--surface); }

/* Staff: choices sent */
.sent-panel { margin-top: 22px; }
.sent-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sent-head .card-icon { color: #2e7d3a; width: 44px; height: 44px; }
.file-names { min-height: 92px; font: 13.5px/1.55 ui-monospace, Menlo, Consolas, monospace; background: #fafaf8; resize: vertical; }
.sent-panel .nsys-buttons { margin-top: 16px; }
.grid-title { margin-top: 30px; }
.photo-grid.named { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px 8px; }
.named-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.named-photo span { display: block; margin-top: 4px; font: 12.5px/1.3 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }

/* Booking page */
.public-note { margin-left: auto; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--header-muted); }
.book { padding-block: 36px 40px; }
.book-intro { max-width: 760px; }
.book-intro h1 { margin-top: 6px; }
.book-intro p:last-child { margin-top: 10px; color: var(--muted); font-size: 17px; }
.book-form { display: grid; gap: 22px; margin-top: 26px; }
.book-step { margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.book-step > legend { float: left; display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 18px; padding: 0; font: 700 21px/1.2 var(--heading-font); }
.book-step > legend + * { clear: both; }
.book-step .field-row + .field { margin-top: 16px; }
.step-number { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 16px/1 var(--body-font); }
.package-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.package-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 16px 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); cursor: pointer; }
.package-card input { position: absolute; left: 16px; top: 19px; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.package-card:has(input:checked) { border: 2px solid var(--accent); padding: 15px 15px 15px 47px; }
.package-card:has(input:focus-visible) { box-shadow: var(--focus); }
.package-card-name { font: 700 19px/1.25 var(--heading-font); }
.package-card-summary { color: var(--muted); font-size: 15px; }
.package-card-list { display: grid; gap: 2px; margin-top: 4px; font-size: 14.5px; }
.package-card-list span::before { content: "· "; color: var(--accent-text); }
.package-card-detail { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--accent-text); }
.package-card-price { margin-top: 6px; font-size: 17px; font-weight: 700; }
.calendar { max-width: 480px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calendar-month { font: 700 18px/1.2 var(--heading-font); }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; color: var(--text); }
.icon-link svg { width: 22px; height: 22px; }
.calendar-days, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-days span { padding: 4px 0; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-align: center; text-transform: uppercase; color: var(--muted); }
.day { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; cursor: pointer; }
.day input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.day.blank { border: 0; }
.day.taken { border-style: dashed; color: var(--muted); cursor: not-allowed; background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--text) 9%, transparent) 6px 8px); }
.day.taken span { text-decoration: line-through; }
.day.chosen, .day:has(input:checked) { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.day:has(input:focus-visible) { box-shadow: var(--focus); }
.calendar-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.key { display: inline-block; width: 16px; height: 16px; margin-left: 8px; border: 1px solid var(--line); border-radius: 4px; }
.key:first-child { margin-left: 0; }
.key.taken { border-style: dashed; background: repeating-linear-gradient(135deg, transparent 0 3px, color-mix(in srgb, var(--text) 18%, transparent) 3px 4px); }
.key.chosen { border-color: var(--accent); background: var(--accent); }
.book-send { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.book-send .small { color: var(--muted); }

/* A customer's private page */
.event-home { padding-block: 36px 48px; }
.event-home h1 { margin-top: 6px; }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin-top: 24px; }
.event-grid h2 { margin-top: 4px; font: 700 23px/1.2 var(--heading-font); }
.event-grid .facts { margin: 16px 0 12px; }
.event-grid .small { color: var(--muted); }
.files-card > p { margin: 8px 0 14px; color: var(--muted); }
.files-card .meter { margin-bottom: 8px; }
.files-card .nsys-button { margin-top: 16px; }
.steps-list { display: grid; gap: 8px; margin-top: 12px; padding-left: 20px; list-style: disc; color: var(--muted); }

/* Staff: requests */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.requests { margin-top: 22px; }
.request-list { margin-top: 10px; }
.request-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.request-who strong { display: block; }
.request-who span, .request-sent { font-size: 14.5px; color: var(--muted); }
.answer .nsys-buttons { margin: 16px 0 4px; }
.free-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; color: #1f5a2a; font-weight: 700; }
.panel .message-preview { margin-bottom: 16px; }
.event-columns.single { grid-template-columns: minmax(0, 760px); }

/* Staff: settings */
.package-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.package-list span { color: var(--muted); text-align: right; }
.closed-days li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 4px 2px; border-top: 1px solid var(--line); }
.booking-link { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; padding-top: 4px; }
.qr { width: 128px; height: 128px; border: 1px solid var(--line); border-radius: 8px; }
.link-text { font: 700 15px/1.4 ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.booking-link .nsys-buttons { margin-top: 12px; }

/* Phones */
@media (max-width: 760px) {
  .customer-top-row { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-block: 12px 8px; }
  .event-name { order: 3; width: 100%; margin: 8px 0 0; }
  .customer-nav { margin-left: auto; }
  .customer-nav a:not(:last-child) { display: none; }
  .brand-tagline { font-size: 8.5px; }
  .gallery { padding-top: 24px; }
  .gallery-intro p:last-child { font-size: 16px; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .photo-grid.small { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .pick { width: 44px; height: 44px; }
  .pick-mark { width: 26px; height: 26px; }
  .thumb .pick.remove .pick-mark { width: 24px; height: 24px; }
  .choose-bar-row { min-height: 68px; }
  .choose-bar .nsys-button { padding: 0 14px; }
  .saved { display: flex; margin: 2px 0 0; }
  .viewer { padding: 16px 0; gap: 0; }
  .viewer-section { display: none; }
  .viewer-step { position: absolute; top: 50%; z-index: 1; width: 44px; height: 44px; margin-top: -22px; border-color: rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .5); color: #ffffff; }
  .viewer-step.previous { left: 8px; }
  .viewer-step.next { right: 8px; }
  .proof img { width: 100%; max-height: none; }
  .choose-button { width: 100%; min-width: 0; }
  .send-box { padding: 22px 20px; }
  .send-box .nsys-button { width: 100%; }
  .facts div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
  .sent-page { padding-block: 28px; }
  .sent-card { padding: 24px 20px; }
  .center .nsys-button { width: 100%; }

  .staff-top-row { flex-wrap: wrap; gap: 0; padding-top: 12px; }
  .staff-nav { width: 100%; margin: 6px 0 0 -14px; }
  .staff-main { padding-top: 20px; }
  .page-head .nsys-button { width: 100%; }
  .table-box { border: 0; background: transparent; overflow: visible; }
  .events-table, .events-table tbody, .events-table tr, .events-table th, .events-table td { display: block; }
  .events-table thead { display: none; }
  .events-table tr { margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .events-table tbody th { padding: 0 0 8px; border: 0; font: 700 19px/1.25 var(--heading-font); white-space: normal; }
  .events-table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); white-space: normal; text-align: right; }
  .events-table td::before { content: attr(data-label); font-size: 14px; color: var(--muted); text-align: left; }
  .events-table tbody tr > :last-child { border-bottom: 0; }
  .field-row, .package-options, .package-cards, .event-grid { grid-template-columns: minmax(0, 1fr); }
  .book-step { padding: 18px 16px; }
  .book-send .nsys-button { width: 100%; }
  .public-note { display: none; }
  .request-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .request-sent { grid-column: 1; grid-row: 2; }
  .request-list .nsys-button { grid-row: 1 / 3; grid-column: 2; }
  .day { min-height: 42px; }
  .event-columns { grid-template-columns: minmax(0, 1fr); }
  .drop-zone { display: none; }
  .phone-only { display: flex; }
  .section-progress li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-block: 8px; }
  .mini-meter { grid-column: 1 / -1; }
  .section-state { grid-row: 1; grid-column: 2; }
  .section-count { grid-column: 1; font-size: 14px; }
  .copy-row { flex-wrap: wrap; }
  .share .nsys-buttons .nsys-button, .sent-panel .nsys-buttons .nsys-button { width: 100%; }
  .photo-grid.named { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 4px; }
  .package-row { grid-template-columns: minmax(0, 1fr) 84px auto 44px; }
}
