/*
 * Polish layer (docs/frontend-polish-audit.md). Loaded after nb.css / nb-extensions.css
 * and before nb-mobile.css. Same font, colours and brand - tokens only; this file only
 * makes forms, focus, layering and spacing consistent everywhere.
 *
 *  - One field radius (--r-field = the card radius) for inputs, selects, input groups
 *    and the buttons inside forms. Pills stay for chips, nav and standalone CTAs.
 *  - Field height: 48px on phones, 44px from 769px. Text 16px (no iOS zoom).
 *  - Focus: one 2px brand ring (--acc-d: 3:1+ on every surface; --acc is 2.9:1 on --bg).
 *  - Layers: one z-index scale (below), so bars, sheets, toasts and the cookie banner
 *    never cover each other the wrong way.
 */
:root {
  --r-field: var(--r);
  --h-field: 44px;
  --ring-c: var(--acc-d);
  /* ONE z-index scale (UI sweep): use these, never a raw number above 20 */
  --z-base: 1;
  --z-sticky: 100;   /* sticky page bars */
  --z-dropdown: 200; /* dropdowns, popovers, action menus */
  --z-header: 300;   /* the site top bar (its own menus open inside it) */
  --z-bar: 800;      /* phone tab bar, checkout / wizard action bars */
  --z-banner: 850;   /* cookie banner - above the tab bar, below overlays */
  --z-overlay: 900;  /* backdrops */
  --z-sheet: 1000;   /* bottom sheets */
  --z-modal: 1000;   /* blocking dialogs */
  --z-toast: 1100;   /* toasts sit above an open sheet */
  --z-tip: 1200;     /* tooltips */
}
@media (max-width: 768px) { :root { --h-field: 48px; } }

/* The page ground reaches the edges: an explicit body colour, and .nb contains its
   children's margins (an auth card's top margin used to leak out as a white strip). */
body:has(> .nb) { background: var(--bg); }
.nb { display: flow-root; }

/* The hidden attribute always wins over a component's display value. */
.nb [hidden] { display: none !important; }

/* ------------------------------------------------------------------ focus */
.nb a:focus-visible, .nb button:focus-visible, .nb summary:focus-visible, .nb [tabindex]:focus-visible,
.nb input:focus-visible, .nb select:focus-visible, .nb textarea:focus-visible, .nb .chip:focus-within {
  outline: 2px solid var(--ring-c); outline-offset: 2px;
}
/* Text fields: the ring hugs the border instead of floating 2px out. */
.nb .field input:not([type=radio]):not([type=checkbox]):focus-visible, .nb .field select:focus-visible, .nb .field textarea:focus-visible {
  outline: 2px solid var(--ring-c); outline-offset: -1px; border-color: var(--ring-c); box-shadow: none;
}

/* ------------------------------------------------------------------ labels + help */
.nb .field > label, .nb .field > .field-label, .nb .field legend {
  display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink);
  letter-spacing: 0; text-transform: none;
}
.nb .field .req { color: var(--acc-d); }
.nb .field .hint { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--mut); }
.nb .field .opt { font-weight: 400; color: var(--mut); }

/* ------------------------------------------------------------------ controls */
.nb .field input:not([type=radio]):not([type=checkbox]):not([type=file]):not([type=range]),
.nb .field select, .nb .field textarea {
  width: 100%; height: var(--h-field); padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-field); background-color: var(--surface);
  color: var(--ink); font: 400 16px/1.4 var(--ff); outline: 0;
  transition: border-color .15s;
}
.nb .field textarea { height: auto; min-height: 112px; padding: 12px 14px; resize: vertical; }
.nb .field input::placeholder, .nb .field textarea::placeholder { color: var(--faint-2); }
.nb .field input:hover:not(:focus):not([readonly]), .nb .field select:hover:not(:focus), .nb .field textarea:hover:not(:focus) { border-color: color-mix(in srgb, var(--ink-2) 35%, var(--line)); }
.nb .field input[readonly], .nb .field input:disabled, .nb .field select:disabled { background-color: var(--line-2); color: var(--ink-2); }

/* Selects: one chevron (Lucide chevron-down, --ink-2), aligned with the text padding. */
.nb .field select, .nb select.select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23403E3A' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}

/* Browser autofill: no blue/yellow wash. */
.nb input:-webkit-autofill, .nb input:-webkit-autofill:hover, .nb input:-webkit-autofill:focus,
.nb textarea:-webkit-autofill, .nb select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 9999s ease-out 0s;
}

/* Input group (+91, ₹ ...): one box - same height and border, shared outer radius,
   neutral prefix with a 1px divider, focus ring around the whole group. */
.nb .phone-in, .nb .in-group {
  display: flex; align-items: stretch; height: var(--h-field);
  border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface); overflow: hidden;
}
.nb .phone-in__prefix, .nb .in-group__fix {
  display: inline-flex; align-items: center; flex: none; padding: 0 12px; margin: 0;
  border: 0; border-right: 1px solid var(--line); border-radius: 0;
  background: var(--line-2); color: var(--ink-2); font: 600 16px/1 var(--ff); font-variant-numeric: tabular-nums;
}
.nb .in-group__fix--end { border-right: 0; border-left: 1px solid var(--line); }
.nb .field .phone-in input, .nb .field .in-group input, .nb .phone-in input, .nb .in-group input {
  flex: 1; min-width: 0; height: 100% !important; border: 0 !important; border-radius: 0 !important; background: transparent; box-shadow: none;
}
.nb .phone-in:focus-within, .nb .in-group:focus-within { outline: 2px solid var(--ring-c); outline-offset: -1px; border-color: var(--ring-c); }
.nb .phone-in input:focus-visible, .nb .in-group input:focus-visible { outline: 0 !important; }

/* Read-only verified value (mobile already confirmed) with a small "Change" link. */
.nb .field-static { display: flex; align-items: center; gap: 8px; min-height: var(--h-field); padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--line-2); font-size: 16px; font-variant-numeric: tabular-nums; }
.nb .field-static .truncate { flex: 0 1 auto; }
.nb .field-static .ok { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: 13px; font-weight: 600; }
.nb .field-static a { margin-left: auto; color: var(--acc-d); font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------------ errors */
.nb .field .hint.t-err:not(:empty) { display: flex; align-items: flex-start; gap: 6px; color: var(--err); }
.nb .field .hint.t-err:not(:empty)::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nb .field:has(.hint.t-err:not(:empty)) > input, .nb .field:has(.hint.t-err:not(:empty)) > select, .nb .field:has(.hint.t-err:not(:empty)) > textarea,
.nb .field:has(.hint.t-err:not(:empty)) .phone-in, .nb .field:has(.hint.t-err:not(:empty)) .in-group,
.nb .field [aria-invalid="true"] { border-color: var(--err) !important; }

/* ------------------------------------------------------------------ field layout */
/* Pairs stack on phones, sit side by side from 600px. */
.nb .fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; } /* minmax: a long <select> option can't widen the column */
.nb .field select { max-width: 100%; text-overflow: ellipsis; }
@media (min-width: 600px) { .nb .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nb .fields > .full, .nb .fields > .field-actions { grid-column: 1 / -1; }

/* ------------------------------------------------------------------ buttons in forms */
.nb form:not(.bigsearch):not(.city) .btn:not(.b-sm):not(.chip),
.nb .form-card .btn:not(.b-sm), .nb .checkout-cta .btn, .nb .pay-cta .btn {
  height: var(--h-field); border-radius: var(--r-field);
}
.nb .btn { min-height: 0; }
.nb .btn[aria-busy="true"] { cursor: progress; opacity: .85; }
.nb .btn[aria-busy="true"] .spin { margin-right: 2px; }
.nb .btn:disabled:not([aria-busy="true"]) { opacity: .55; cursor: not-allowed; transform: none; }
/* Secondary action as a text link. */
.nb .text-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--acc-d); font: 600 14px/1.4 var(--ff); cursor: pointer; text-decoration: none; }
.nb .text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.nb .text-link--mut { color: var(--mut); font-weight: 500; }

/* ------------------------------------------------------------------ chips (≤ 6 options) */
.nb .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nb .chip { position: relative; display: inline-flex; cursor: pointer; }
.nb .chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.nb .chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: .15s;
}
.nb .chip:hover span { border-color: color-mix(in srgb, var(--ink-2) 40%, var(--line)); }
.nb .chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.nb .chip input:focus-visible + span { outline: 2px solid var(--ring-c); outline-offset: 2px; }
.nb .chip:focus-within { outline: 0; }
@media (max-width: 768px) { .nb .chip span { min-height: 44px; } }
.nb .toolbar .chips { flex-wrap: nowrap; }
.nb .toolbar .chips .chip span { min-height: 40px; }

/* ------------------------------------------------------------------ headings + cards */
/* Form headings line up with the fields (no centred title over a left-aligned form). */
.nb .auth-shell h1, .nb .auth-shell .auth-sub, .nb .auth-shell .auth-switch { text-align: left; }
.nb .auth-shell .auth-sub { font-size: 15px; line-height: 1.5; margin-bottom: 20px; }
.nb .auth-shell h1 { font-size: 24px; margin-bottom: 6px; }
.nb .form-section { padding: 24px; }
@media (max-width: 768px) { .nb .form-section { padding: 16px; } }

/* Long text: wrap cleanly, never push the page sideways. */
.nb h1, .nb h2, .nb h3, .nb .row-title, .nb .list-row > div { overflow-wrap: anywhere; }
.nb .truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb .clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------------------------------------------ layers */
.nb .topbar { z-index: var(--z-sticky); }
.nb .m-tabbar, .nb .checkout-cta { z-index: var(--z-bar); }
.nb .m-sheet-backdrop, .nb .sheet-overlay { z-index: var(--z-sheet) !important; }
.nb .m-sheet, .nb .sheet { z-index: calc(var(--z-sheet) + 1) !important; }
.iziToast-wrapper { z-index: var(--z-toast) !important; }
/* toasts: the library sets Lato / Tahoma on its title + message - use the site text font */
.iziToast, .iziToast * { font-family: var(--ff) !important; }
.nb-tip { z-index: var(--z-tip); }
.nb .ew-modal { z-index: var(--z-modal); }
.nb .ew-bar { z-index: var(--z-bar); }

/* ------------------------------------------------------------------ cookie banner */
.nb .cookies-card {
  position: fixed; left: 16px; bottom: 16px; z-index: var(--z-banner);
  display: flex; align-items: flex-start; gap: 12px; width: min(440px, calc(100vw - 32px));
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--s3); color: var(--ink); text-align: left;
  transition: transform .25s ease, opacity .25s ease;
}
.nb .cookies-card.hide { transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none; }
.nb .cookies-card__icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--line-2); color: var(--ink-2); }
.nb .cookies-card__content { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.nb .cookies-card__content a { color: var(--acc-d); font-weight: 600; }
.nb .cookies-card .btn { margin-top: 10px; }
.nb .cookies-card__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.nb .cookies-card__btns .btn { min-height: 44px; }
@media (max-width: 768px) {
  .nb .cookies-card { left: 12px; right: 12px; width: auto; }
  /* above the floating tab bar when it's showing (--tb-clear: nb-mobile.css) */
  .nb:has(.m-tabbar) .cookies-card { bottom: calc(var(--tb-clear, 66px) + 10px); }
}

/* ------------------------------------------------------------------ tooltips (icon-only buttons, desktop) */
.nb-tip.is-below { transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ motion */
.nb .is-pressable { transition: transform .12s ease, box-shadow .18s ease; }
@media (hover: none) { .nb .is-pressable:active { transform: scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  .nb *, .nb *::before, .nb *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .nb .is-pressable:active { transform: none; }
}

/* ------------------------------------------------------------------ password show / hide (nb-polish.js) */
.nb .pw-wrap { position: relative; }
.nb .field .pw-wrap input { padding-right: 52px !important; }
.nb .pw-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--mut); }
.nb .pw-toggle:hover { color: var(--ink); }

/* ------------------------------------------------------------------ "More options" disclosure */
.nb .more-options > summary { display: flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--ink); }
.nb .more-options > summary::-webkit-details-marker { display: none; }
.nb .more-options > summary svg { margin-left: auto; color: var(--mut); transition: transform .15s; }
.nb .more-options[open] > summary svg { transform: rotate(180deg); }
.nb .field-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 599px) { .nb .field-actions .btn { width: 100%; } }
.nb .chips__label { align-self: center; margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--mut); }
.nb .toolbar .chips { flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------------ toolbars, steppers, row selects: same field height + radius */
.nb .toolbar .search { height: var(--h-field); border-radius: var(--r-field); }
.nb .toolbar .search:focus-within { outline: 2px solid var(--ring-c); outline-offset: -1px; border-color: var(--ring-c); }
.nb .toolbar .search input { font-size: 16px; min-height: 0 !important; }
.nb .toolbar .search input:focus-visible { outline: 0; }
.nb .toolbar .search button { width: 40px; height: 40px; min-height: 0 !important; }
.nb .toolbar select.select { height: var(--h-field); border-radius: var(--r-field); font-size: 16px; }
.nb .toolbar-filters-btn { height: var(--h-field) !important; }
.nb .qty-stepper { border-radius: var(--r-field); }
.nb .qty-btn, .nb .qty-input { height: var(--h-field); min-height: 0 !important; }
.nb .qty-btn { width: var(--h-field); }
.nb .qty-input { width: 52px; font-size: 16px; }
.nb .list-row select, .nb .form-card select:not([multiple]) { height: var(--h-field); min-height: 0 !important; border: 1px solid var(--line); border-radius: var(--r-field); background-color: var(--surface); padding: 0 40px 0 12px; font-size: 16px; color: var(--ink);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23403E3A' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }

/* Payment page: a single gateway is information, not a choice. */
.nb .pay-methods--single .gateway-input { position: absolute; opacity: 0; pointer-events: none; }
.nb .pay-methods--single .pay-method { cursor: default; background: var(--line-2); border-color: var(--line); }
.nb .pay-amount-group { width: 180px; }

/* Option labels inside a field (radio pills, chips, checkboxes) are options, not field
   labels: 14px body text (nb-extensions' `.field label` made them 11.5px). */
.nb .field .radio-pill, .nb .field .chk, .nb .field label.chip { font-size: 14px; font-weight: 500; margin: 0; }
.nb .field .radio-pill { height: var(--h-field); border-radius: var(--r-pill); }
.nb .field .radio-pill:has(input:checked) { font-weight: 600; }

/* Create-event ₹ / suffix inputs: the same input group as .in-group. */
.nb .ew .ew-prefix, .nb .ew .ew-suffix { height: var(--h-field); border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface); overflow: hidden; }
.nb .ew .ew-prefix span, .nb .ew .ew-suffix span { border: 0 !important; border-radius: 0 !important; background: var(--line-2); font-size: 16px; padding: 0 12px; }
.nb .ew .ew-prefix span { border-right: 1px solid var(--line) !important; }
.nb .ew .ew-suffix span { border-left: 1px solid var(--line) !important; }
.nb .ew .ew-prefix input, .nb .ew .ew-suffix input { flex: 1; height: 100% !important; border: 0 !important; border-radius: 0 !important; outline: 0 !important; }
.nb .ew .ew-prefix:focus-within, .nb .ew .ew-suffix:focus-within { outline: 2px solid var(--ring-c); outline-offset: -1px; border-color: var(--ring-c); }
.nb .ew-dup select { height: var(--h-field); border-radius: var(--r-field); font-size: 16px; }

/* Links inside a sentence or a checkbox label: brand text, underlined, no extra box. */
.nb .inline-link { color: var(--acc-d); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; padding: 0 !important; margin: 0 !important; display: inline !important; min-height: 0 !important; border: 0; }
.nb .chk { flex-wrap: wrap; align-items: center; gap: 4px 8px; line-height: 1.5; }

/* Stacked rows on phones: an inline align-items:center (meant for the desktop grid)
   centred every child once the row became a column - keep them left-aligned. */
@media (max-width: 760px) {
  .nb .list-row[style*="align-items:center"]:not([style*="1fr auto"]) { align-items: stretch !important; }
  .nb .list-row[style*="align-items:center"]:not([style*="1fr auto"]) > * { justify-self: start; }
  .nb .list-row[style*="align-items:center"]:not([style*="1fr auto"]) select { align-self: flex-start; }
}

/* Contrast (Lighthouse): --mut on the pale --line-2 / --acc-w fills is 4.3:1 - small text there uses --ink-2. */
.nb .status-badge.tone-neutral { color: var(--ink-2); }

/* Organizer "Finish setting up" checklist (organizer/partials/setup_checklist). */
.nb .setup-list { margin-bottom: 20px; }
.nb .setup-list__title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; font-size: 17px; }
.nb .setup-list__items { list-style: none; margin: 0; padding: 0; display: grid; }
.nb .setup-list__items li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.nb .setup-list__items li:first-child { border-top: 0; }
.nb .setup-list__mark { flex: none; color: var(--mut); display: grid; }
.nb .setup-list__items li.is-done .setup-list__mark { color: var(--ok); }
.nb .setup-list__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nb .setup-list__text strong { font-size: 15px; font-weight: 600; }
.nb .setup-list__items li.is-done strong { color: var(--mut); text-decoration: line-through; text-decoration-thickness: 1px; }
.nb .setup-list__text small { font-size: 13px; color: var(--ink-2); }

/* Checkout: "Your mobile number" (email sign-ups, once) - mobile-gate in buy.blade.php */
.nb .mobile-gate { border-bottom: 1px solid var(--line); }
.nb .mobile-gate .otp-boxes__box { height: 52px; }

/* ================================================================== header (components/nb/topbar)
   PassOut-hero-C-spotlight design, sticky on every screen. Desktop: one row (logo | search
   pill [search · city · date · Search] | List your event · My passes · avatar). Phone: logo |
   city · passes · avatar, then the search pill on its own row. Homepage: a dotted perforation
   + category chips BELOW the header (they scroll away). --hdr-h = the header's height, used by
   every other sticky element and anchor offset. */
/* Edge to edge on every screen (the browser's default 8px body margin made a frame and a
   jump under the sticky header; phones already had it removed in nb-mobile.css). */
body { margin: 0; font-family: var(--ff); font-feature-settings: "lnum" 1; } /* toasts, dialogs and sheets outside .nb use the site text font too; Syne defaults to old-style numbers - lining ones read better in dates and prices */
.nb { --hdr-h: 93px; }
@media (max-width: 999px) { .nb { --hdr-h: 131px; } }
.nb .topbar { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid #EDE4DC; } /* no backdrop-filter: it would trap the fixed city sheet inside the header */
.nb .topbar-in { max-width: var(--shell); margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 18px var(--pad); }
.nb .topbar .brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; line-height: 0; color: var(--ink); text-decoration: none; }
.nb .topbar .wordmark { display: block; height: 44px; width: auto; overflow: visible; } /* two-ticket logo, aspect 4.1:1 */

/* search pill */
.nb .tb-search { flex: 1 1 560px; max-width: 680px; min-width: 0; display: flex; align-items: center; height: 56px; padding: 0 6px 0 20px; border: 1.5px solid var(--ink); border-radius: var(--r-pill); background: var(--surface); }
.nb .tb-search:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.nb .tb-search__q { flex: 1; min-width: 150px; display: flex; align-items: center; gap: 0; color: var(--ink); cursor: text; }
.nb .tb-search__q svg { flex: none; }
.nb .tb-search__q input { flex: 1; min-width: 0; width: 100%; height: 44px; padding: 0 12px; border: 0; outline: 0; background: none; font: 400 15px/1 var(--ff); color: var(--ink); }
.nb .tb-search__q input::placeholder { color: var(--mut); }
.nb .tb-search__q input::-webkit-search-cancel-button { display: none; }
.nb .tb-search__div { flex: none; width: 1px; height: 28px; background: #E4DCD5; }
.nb .tb-search__seg { flex: none; }
.nb .tb-search__when { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; color: var(--ink); cursor: pointer; }
.nb .tb-search__when > svg { color: var(--rust); flex: none; }
.nb .tb-search__when select { appearance: none; -webkit-appearance: none; border: 0; outline: 0; background: none; padding: 0; font: 500 15px/1 var(--ff); color: var(--ink); cursor: pointer; }
.nb .tb-search__when:focus-within { border-radius: var(--r-pill); box-shadow: inset 0 0 0 2px var(--acc-d); }
.nb .tb-search__go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--acc); color: var(--ink); font: 700 15px/1 var(--ff); cursor: pointer; }
.nb .tb-search__go:hover { filter: brightness(1.05); }
.nb .tb-search__go:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* city picker (inside the pill on desktop; next to the logo on phones) */
.nb .city-pick { position: relative; flex: none; }
.nb .city-pick > summary { list-style: none; }
.nb .city-pick > summary::-webkit-details-marker { display: none; }
.nb .topbar .city { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; margin: 0; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink);
  font: 500 15px/1 var(--ff); cursor: pointer; outline: 0; user-select: none; white-space: nowrap; }
.nb .topbar .city:hover { background: transparent; }
.nb .topbar .city:focus-visible { box-shadow: inset 0 0 0 2px var(--acc-d); }
.nb .topbar .city > svg:first-child { color: var(--rust); flex: none; }
.nb .topbar .city__chev { color: var(--ink); flex: none; transition: transform .15s ease; }
.nb .city-pick[open] .city__chev { transform: rotate(180deg); }
.nb .city__name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb .city-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: var(--z-dropdown); min-width: 240px; padding: 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--s3); }
.nb .city-menu__title { margin: 4px 10px 8px; font-size: 13px; font-weight: 600; color: var(--mut); }
.nb .city-menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: var(--r-sm); color: var(--ink); font-size: 15px; text-decoration: none; }
.nb .city-menu a svg { color: var(--mut); flex: none; }
.nb .city-menu a:hover, .nb .city-menu a:focus-visible { background: var(--bg); outline: 0; }
.nb .city-menu a[aria-current="true"] { font-weight: 600; }
.nb .city-menu__on { margin-left: auto; color: var(--acc-d) !important; }
.nb .tb-city-m { display: none; }

/* actions */
.nb .h-right { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.nb .tb-btn-outline { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font: 700 15px/1 var(--ff); white-space: nowrap; text-decoration: none; }
.nb .tb-btn-outline:hover { background: var(--ink); color: var(--surface); }
.nb .tb-btn-text { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: var(--r-pill); color: var(--ink); font: 500 15px/1 var(--ff); white-space: nowrap; text-decoration: none; }
.nb .tb-btn-text:hover { background: var(--bg); }
.nb .icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); cursor: pointer; list-style: none; text-decoration: none; }
.nb .icon-btn:hover { background: var(--bg); }
.nb .icon-btn:focus-visible { outline: 2px solid var(--acc-d); outline-offset: 1px; }
.nb .topbar-login-icon { display: none; }
.nb .topbar .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--acc); font: 900 18px/1 var(--fd); text-decoration: none; }


/* narrower desktops: the date segment goes first, then "List your event" */
/* "My passes" is an icon (tooltip + screen-reader label): the 1200px shell can't fit the
   search pill's date segment and the text label side by side. */
.nb .tb-btn-text { width: 44px; padding: 0; justify-content: center; }
.nb .tb-btn-text__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1320px) { .nb .topbar-in { gap: 16px; } }
/* The bar sheds parts by its OWN width, not the screen's: what sits beside it changes
   (logged out "List your event" + "Log in" is wider than an avatar), so a screen
   breakpoint let the Search button spill past the bar's edge at 1366-1440px.
   Thresholds are the content box: the date shows while the text field keeps ~190px. */
.nb .tb-search { container-type: inline-size; container-name: tbsearch; }
@container tbsearch (max-width: 569px) { .nb .tb-search__when, .nb .tb-search__div:nth-of-type(2) { display: none; } }
@container tbsearch (max-width: 420px) { .nb .tb-search__go-label { display: none; } .nb .tb-search__go { width: 44px; padding: 0; justify-content: center; } }

/* phones + tablets */
@media (max-width: 999px) {
  .nb .topbar-in { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .nb .topbar .wordmark { height: 36px; }
  .nb .h-right { gap: 4px; }
  .nb .tb-desk, .nb .topbar-login { display: none; }
  .nb .tb-city-m { display: block; }
  .nb .tb-city-m .city { padding: 0 8px; gap: 4px; font-weight: 700; font-size: 14px; }
  .nb .topbar-login-icon { display: inline-grid; border: 1.5px solid var(--ink); background: var(--surface); }
  .nb .topbar .avatar { width: 40px; height: 40px; font-size: 16px; }
  .nb .tb-search { order: 3; flex: 1 1 100%; max-width: none; height: 50px; padding: 0 5px 0 16px; }
  .nb .tb-search__seg, .nb .tb-search__div, .nb .tb-search__go-label { display: none; }
  .nb .tb-search__go { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .nb .tb-search__q { min-width: 0; }
  .nb .tb-search__q input { font-size: 16px; } /* no zoom on iOS */
  /* phones: cities open as a bottom sheet */
  .nb .city-pick[open]::before { content: ""; position: fixed; inset: 0; z-index: calc(var(--z-dropdown) - 1); background: rgba(18,18,17,.35); }
  .nb .city-menu { position: fixed; top: auto; left: 0; right: 0; bottom: 0; min-width: 0; padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; max-height: 75vh; overflow-y: auto; }
  .nb .city-menu::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 2px; background: var(--line); }
}
@media (max-width: 380px) {
  .nb .topbar .wordmark { height: 32px; }
  .nb .tb-city-m .city__name { max-width: 64px; }
  .nb .icon-btn { width: 40px; height: 40px; }
}

/* ================================================================== footer (components/nb/footer)
   PassOut-footer-F1-black-ticket: a black ticket stub - CTA row, a dotted rust perforation
   with two notches cut in the page colour, logo (white "Pass" + orange "Out") + four link columns, copyright, and a
   giant faded "PassOut". Orange TEXT on the black uses --acc-ink (contrast-gate). On
   phones the footer itself clears the bottom tab bar, so no page-colour strip shows
   under it. */
.nb footer.pof { --pof-bg: #141414; --pof-soft: #E9DED5; --pof-mut: #B9AFA7; --pof-edge: #2E2A28;
  position: relative; overflow: hidden; margin-top: 56px; padding-top: 56px; background: var(--pof-bg); color: var(--cream); }
.nb .pof__wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.nb .pof__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; }
.nb .pof__cta h2 { margin: 0; max-width: 820px; font-family: var(--fd); font-weight: 900; font-size: 34px; line-height: 1.12; letter-spacing: -.02em; color: var(--cream); }
.nb .pof__cta em { font-style: normal; color: var(--acc-ink); }
.nb .pof__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--acc); color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .15s ease, background .15s ease; }
.nb .pof__btn:hover { background: var(--cream); color: var(--ink); }
.nb .pof__btn:active { transform: translateY(1px); }
.nb .pof__perf { position: relative; height: 2px; margin: 48px 0; background: radial-gradient(circle, var(--rust) 1.2px, transparent 1.6px) 0 50% / 10px 2px repeat-x; }
.nb .pof__perf::before, .nb .pof__perf::after { content: ""; position: absolute; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); }
.nb .pof__perf::before { left: -14px; }
.nb .pof__perf::after { right: -14px; }
.nb .pof__cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.nb .pof__brand a:first-child { display: inline-flex; color: #fff; --wm-o: var(--acc); }
.nb .pof__brand .pof__tagline { margin: 18px 0 0; font-family: var(--fd); font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; color: var(--acc); }
.nb .pof__brand .pof__tagline + p { margin-top: 8px; }
.nb .pof__brand p { margin: 16px 0 0; max-width: 260px; font-size: 15px; line-height: 1.55; color: var(--pof-mut); }
.nb .pof__social { display: flex; gap: 4px; margin: 14px 0 0 -10px; }
.nb .pof__social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--pof-soft); }
.nb .pof__social a:hover { color: var(--acc-ink); }
.nb .pof__col h3 { margin: 0 0 14px; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-ink); }
.nb .pof__col ul { margin: 0; padding: 0; list-style: none; }
.nb .pof__col a { display: inline-flex; align-items: center; min-height: 34px; font-size: 15px; color: var(--pof-soft); text-decoration: none; }
.nb .pof__col a:hover { color: var(--acc-ink); }
.nb footer.pof a:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
/* the rule spans the content width only (not the wrap's side padding) */
.nb .pof__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; padding-bottom: 20px;
  font-size: 13px; color: var(--pof-mut); background: linear-gradient(var(--pof-edge), var(--pof-edge)) 32px 0 / calc(100% - 64px) 1px no-repeat; }
.nb .pof__giant { margin: 0 0 -.18em; font-family: var(--fd); font-weight: 900; font-size: clamp(64px, 17vw, 240px); line-height: 1; letter-spacing: -.04em;
  text-align: center; color: #1F1C1B; white-space: nowrap; user-select: none; pointer-events: none; }
@media (max-width: 999px) {
  .nb .pof__cols { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .nb .pof__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nb footer.pof { padding-top: 40px; }
  .nb .pof__wrap { padding: 0 16px; }
  .nb .pof__cta h2 { font-size: 24px; }
  .nb .pof__btn { width: 100%; }
  .nb .pof__perf { margin: 36px 0; }
  /* phones: Explore as wrapping pills (full width), Organisers + PassOut side by side,
     Legal as one wrapped row of smaller links - short instead of a long list of 44px rows. */
  .nb .pof__cols { gap: 28px 16px; }
  .nb .pof__col h3 { margin-bottom: 10px; }
  .nb .pof__col a { min-height: 40px; }
  .nb .pof__col--explore, .nb .pof__col--legal { grid-column: 1 / -1; }
  .nb .pof__col--explore ul, .nb .pof__col--legal ul { display: flex; flex-wrap: wrap; }
  .nb .pof__col--explore ul { gap: 8px; }
  .nb .pof__col--explore a { min-height: 40px; padding: 0 16px; border: 1px solid var(--pof-edge); border-radius: 999px; font-size: 14px; }
  .nb .pof__col--explore a:hover { border-color: var(--acc-ink); }
  .nb .pof__col--legal ul { gap: 0 18px; }
  .nb .pof__col--legal a { min-height: 36px; font-size: 14px; color: var(--pof-mut); }
  .nb .pof__bottom { margin-top: 32px; }
  .nb .pof__bottom { background-position: 16px 0; background-size: calc(100% - 32px) 1px; }
}
@media (max-width: 768px) {
  body.has-tabbar .nb:has(footer.pof) { padding-bottom: 0; }
  body.has-tabbar .nb footer.pof { padding-bottom: calc(var(--tb-clear) + 16px); } /* clears the floating tab bar (nb-mobile.css) */
}

/* Confirmation dialog for nb pages (partials/nb_confirm_dialog) - safe delete, organizer side. */
.nb-confirm { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--s3); }
.nb-confirm::backdrop { background: rgba(18, 18, 17, .45); }
.nb-confirm__box { padding: 22px; margin: 0; }
.nb-confirm__text { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.nb-confirm__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nb-confirm__actions .btn { min-height: 44px; }

/* ================================================================== account menu (components/nb/account-menu)
   The header avatar shows the real picture (buyer photo / organizer logo) or initials and
   opens shortcuts: a dropdown on desktop, a bottom sheet on phones (same pattern as the
   city picker; nb-polish.js closes it on outside tap / Esc). */
.nb .acct { position: relative; flex: none; }
.nb .acct > summary { list-style: none; cursor: pointer; border-radius: 50%; }
.nb .acct > summary::-webkit-details-marker { display: none; }
.nb .acct > summary:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.nb .acct__avatar { overflow: hidden; background: var(--ink); border: 0; color: var(--cream); font-family: var(--fd); font-weight: 900; font-size: 14px; letter-spacing: -.02em; transition: box-shadow .15s; }
.nb .acct__avatar.has-photo { background: var(--line-2); }
.nb .acct__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nb .acct > summary:hover .acct__avatar, .nb .acct[open] > summary .acct__avatar { box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 35%, transparent); background: var(--ink); }
.nb .acct > summary:hover .acct__avatar.has-photo, .nb .acct[open] > summary .acct__avatar.has-photo { background: var(--line-2); }
.nb .acct__menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: var(--z-dropdown); width: 280px; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 18px 40px -18px rgba(18, 18, 17, .35); }
.nb .acct__who { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; margin-bottom: 6px; border-bottom: 1px dashed var(--line); }
.nb .acct__avatar--lg { width: 48px; height: 48px; font-size: 16px; }
.nb .acct__name { min-width: 0; display: grid; gap: 2px; }
.nb .acct__name strong { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb .acct__name small { font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb .acct__item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.nb .acct__item svg { flex: none; color: var(--ink-2); }
.nb .acct__item:hover, .nb .acct__item:focus-visible { background: var(--bg); outline: 0; }
.nb .acct__item[aria-current="page"] { background: var(--cream); font-weight: 700; }
.nb .acct__item[aria-current="page"] svg { color: var(--rust); }
.nb .acct__item--hint { color: var(--acc-d); font-weight: 600; }
.nb .acct__item--hint svg { color: var(--acc-d); }
.nb .acct__item--out { margin-top: 6px; border-top: 1px solid var(--line-2); border-radius: 0 0 12px 12px; padding-top: 2px; color: var(--err); }
.nb .acct__item--out svg { color: var(--err); }
@media (max-width: 999px) {
  .nb .acct[open]::before { content: ""; position: fixed; inset: 0; z-index: calc(var(--z-dropdown) - 1); background: rgba(18, 18, 17, .35); }
  .nb .acct__menu { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; max-height: 80vh; overflow-y: auto; }
  .nb .acct__menu::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 2px; background: var(--line); }
}
/* phones with the bottom tab bar: the header (and so this sheet) sits under the tab bar's
   layer, so the sheet ends above it instead of behind it */
@media (max-width: 999px) {
  body.has-tabbar .nb .acct__menu { bottom: calc(66px + env(safe-area-inset-bottom)); max-height: calc(100vh - 160px); padding-bottom: 12px; border-radius: 18px; margin: 0 8px; }
  body.has-tabbar .nb .city-menu { bottom: calc(66px + env(safe-area-inset-bottom)); max-height: calc(100vh - 160px); padding-bottom: 12px; border-radius: 18px; margin: 0 8px; }
}
/* phones: end above the floating tab bar (--tb-clear: nb-mobile.css) */
@media (max-width: 768px) {
  body.has-tabbar .nb .acct__menu, body.has-tabbar .nb .city-menu { bottom: calc(var(--tb-clear) + 8px); max-height: calc(100vh - var(--tb-clear) - 96px); }
}

/* Radio pills (support priority, payout method, custom form fields). The whole pill is
   the option: `.field label { display:block }` (nb-extensions) outranked `.radio-pill`'s
   flex and left the native dot stuck top-left. The native input stays real (keyboard,
   required, form value) and is redrawn as the dot; the pill shows focus and selection. */
.nb .radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nb .radio-pill, .nb .field label.radio-pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; height: 46px; min-width: 112px; padding: 0 20px; margin: 0; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.nb .radio-pill:hover { border-color: var(--ink); }
.nb .radio-pill input[type=radio] { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--mut); border-radius: 50%; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.nb .radio-pill input[type=radio]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); transform: scale(0); transition: transform .12s; }
.nb .radio-pill input[type=radio]:focus, .nb .radio-pill input[type=radio]:focus-visible { outline: 0; box-shadow: none; }
.nb .radio-pill:has(input:checked), .nb .field .radio-pill:has(input:checked) { border-color: var(--acc); background: var(--cream); color: var(--rust); font-weight: 600; }
.nb .radio-pill:has(input:checked) input[type=radio] { border-color: var(--acc); }
.nb .radio-pill:has(input:checked) input[type=radio]::before { transform: scale(1); }
.nb .radio-pill:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.nb .radio-pill:has(input:disabled) { opacity: .5; cursor: not-allowed; }
/* a short fixed set (Low / Medium / High): equal widths */
.nb .radio-row--even { display: grid; grid-auto-flow: column; grid-auto-columns: 136px; justify-content: start; }
@media (max-width: 640px) {
  .nb .radio-row { gap: 8px; }
  .nb .radio-pill, .nb .field label.radio-pill { flex: 1 1 0; min-width: min(max-content, 100%); padding: 0 12px; }
  .nb .radio-row--even { grid-auto-columns: 1fr; justify-content: stretch; }
  .nb .radio-row--even .radio-pill, .nb .field .radio-row--even label.radio-pill { min-width: 0; padding: 0 8px; gap: 8px; }
}
/* checkbox rows inside a field had the same block-label problem */
.nb .field label.chk { display: flex; align-items: center; gap: 8px; }

/* Status badge: a fifth tone for "the customer replied" (cream / rust) */
.nb .status-badge.tone-acc, .nb .page-grid > section .status-badge.tone-acc { background: var(--cream); color: var(--rust); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rust) 30%, transparent); }

/* Support ticket header (x-nb.ticket-head): ticket no. + subject left, status and Close
   ticket right - both 36px pills on one centre line. */
.nb .tk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 20px; }
.nb .tk-head__info { min-width: 0; }
.nb .tk-head__no { display: block; margin-bottom: 8px; font-family: var(--fm); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--rust); }
.nb .tk-head h1 { margin: 0; font-family: var(--fd); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: break-word; }
.nb .tk-head__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nb .tk-head__actions form { margin: 0; display: flex; }
.nb .tk-head .status-badge, .nb .page-grid > section .tk-head .status-badge { height: 36px; padding: 0 16px; gap: 8px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.nb .tk-head .status-badge::before, .nb .page-grid > section .tk-head .status-badge::before { width: 8px; height: 8px; }
.nb .tk-close { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; /* O-48 */ padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 700 13.5px/1 var(--ff); cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s; }
.nb .tk-close:hover { background: var(--ink); color: var(--surface); }
.nb .tk-close:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (max-width: 640px) {
  .nb .tk-head { flex-direction: column; align-items: stretch; }
  .nb .tk-head__actions { width: 100%; }
  .nb .tk-head__actions > * { flex: 1 1 0; }
  .nb .tk-head__actions .status-badge, .nb .tk-head__actions .tk-close { width: 100%; justify-content: center; }
}
/* the same pills wherever a page header's actions mix a status with a button */
.nb .head-actions { align-items: center; }
.nb .head-actions > form { margin: 0; display: flex; }
.nb .head-actions .status-badge, .nb .page-grid > section .head-actions .status-badge { height: 36px; padding: 0 16px; gap: 8px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
/* a message's header: name (+ Staff) left, time right; wraps as whole pieces */
.nb .tk-msg__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.nb .tk-msg__who { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.nb .tk-msg__head .hint { white-space: nowrap; }

/* /events: the toolbar holds only category + sort (the header has the search) */
.nb .toolbar select.select { font-family: var(--ff); font-size: 14px; }
.nb .evl .toolbar select.select { height: 40px; }
@media (max-width: 768px) {
  .nb .toolbar--no-search, .nb .evl .toolbar--no-search { padding: 0; border: 0; background: none; box-shadow: none; }
}

/* Pass page: "Request cancellation" (opens a support ticket - no self-service cancel) */
.nb .tkv-cancel { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.nb .tkv-cancel > summary, .nb .tkv-page .tkv-more .tkv-cancel > summary { min-height: 36px; font-family: var(--ff); font-size: 14px; font-weight: 700; }
.nb .tkv-cancel > summary { display: inline-flex; align-items: center; min-height: 36px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--err); }
.nb .tkv-cancel > summary::-webkit-details-marker { display: none; }
.nb .tkv-cancel > summary:hover { text-decoration: underline; }
.nb .tkv-cancel__form { display: grid; gap: 10px; margin-top: 6px; }
.nb .tkv-cancel__form .hint { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--mut); }
.nb .tkv-cancel__form textarea { width: 100%; min-height: 88px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 400 14px/1.5 var(--ff); resize: vertical; }
.nb .tkv-cancel__form textarea:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.nb .tkv-cancel__form .btn { justify-self: start; }
/* "Which passes?" - a plain field group like the others (no browser fieldset box), one tick row per pass */
.nb .tkv-cancel__form .rq-passes { min-width: 0; margin: 0; padding: 0; border: 0; }
.nb .tkv-cancel__form .rq-passes > legend { float: left; width: 100%; padding: 0; font-weight: 700; }
.nb .tkv-cancel__form .rq-passes > legend + * { clear: left; }
.nb .tkv-cancel__form .rq-passes > label.chk { display: flex; min-height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface); font-size: 14px; font-weight: 400; color: var(--ink); }
.nb .tkv-cancel__form .rq-passes > label.chk + label.chk { margin-top: 8px; }
.nb .tkv-cancel__form .rq-passes code { font: 500 13px/1.4 var(--fm); letter-spacing: .04em; color: var(--mut); }
.nb .tkv-cancel__form .field { margin: 0; }
/* "Where should the refund go?" - UPI or bank, two tap targets, then the fields (phones first) */
.nb .tkv-cancel__form .rq-dest { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.nb .tkv-cancel__form .rq-dest > legend { float: left; width: 100%; padding: 0; font-weight: 700; }
.nb .tkv-cancel__form .rq-dest > legend + * { clear: left; }
.nb .tkv-cancel__form .rq-dest__choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nb .tkv-cancel__form .rq-dest__choice > label.chk { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface); font-size: 14px; font-weight: 400; color: var(--ink); }
.nb .tkv-cancel__form .rq-dest__choice > label.chk:has(input:checked) { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.nb .tkv-cancel__form .rq-dest__bank { display: grid; gap: 8px; }
.nb .tkv-cancel__form .rq-dest__bank[hidden], .nb .tkv-cancel__form .rq-dest [data-dest][hidden] { display: none; }
.nb .tkv-cancel__form .rq-dest input[type=text] { width: 100%; }
.nb .tkv-cancel--sent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; color: var(--ink-2); }
.nb .tkv-cancel--sent svg { color: var(--rust); flex: none; }
/* the approved refund, every rupee (flow audit 07-08): label left, amount right, the refund as the total row */
.nb .tkv-cancel--sent .tkv-refund-bd { flex-basis: 100%; margin: 4px 0 0; display: grid; gap: 4px; max-width: 460px; }
.nb .tkv-refund-bd__row { display: flex; justify-content: space-between; gap: 12px; }
.nb .tkv-refund-bd__row dt { font-weight: 400; min-width: 0; }
.nb .tkv-refund-bd__row dd { margin: 0; white-space: nowrap; }
.nb .tkv-refund-bd__row.is-total { border-top: 1px solid var(--line, rgba(0,0,0,.12)); padding-top: 4px; font-weight: 600; color: var(--ink); }
.nb .tkv-cancel--sent .tkv-refund-bd__note { flex-basis: 100%; margin: 2px 0 0; overflow-wrap: anywhere; }

/* Focus rings for keyboard users only (nb-polish.js sets <html data-input>). After a mouse
   or touch pick, a select, dropdown, chip, pill or button no longer keeps a ring; Tab
   still shows every ring. Text fields keep their focus highlight - that's where you type. */
html[data-input="mouse"] .nb :is(a, button, summary, select, label, [tabindex], input[type=radio], input[type=checkbox], input[type=file], input[type=range]):focus-visible { outline: none !important; }
html[data-input="mouse"] .nb :is(.chip, .radio-pill, .ew-tile, .ew-card, .upload-box, .gallery-add):has(input:focus-visible),
html[data-input="mouse"] .nb .chip input:focus-visible + span { outline: none !important; }
html[data-input="mouse"] .nb .tb-search__when:focus-within, html[data-input="mouse"] .nb .topbar .city:focus-visible { box-shadow: none !important; }
html[data-input="mouse"] .nb .tb-search:focus-within:not(:has(.tb-search__q input:focus)) { box-shadow: none; }

/* ---------------------------------------------------------------- upload boxes
   x-nb.file-upload: the box is a <label> around a visually hidden file input, so the
   whole box opens the picker (and Enter / Space when focused). These rules win over
   the generic `.field label` (block, 11.5px) and `.field input` (43px tall) styles. */
.nb .upload-field { min-width: 0; }
.nb .upload-field label.upload-box, .nb .field .upload-field label.upload-box { display: flex; margin: 0; font-size: inherit; font-weight: inherit; }
.nb .upload-field .upload-box .upload-input, .nb .field .upload-field .upload-box input.upload-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0;
}
.nb .upload-field .upload-box .upload-copy { pointer-events: none; }
.nb .upload-field .upload-box:hover, .nb .upload-field .upload-box.is-drag { border: 1.5px dashed var(--acc); background: var(--acc-w); }
.nb .upload-field .upload-box.is-drag { box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 18%, transparent); }
.nb .upload-field .upload-box:focus-within { outline: 2px solid var(--acc); outline-offset: 2px; }
.nb .upload-field .upload-box.has-error { border: 1.5px solid var(--err); }
/* preview at the stored shape (e.g. the 1920x460 cover) instead of a fixed 205px box */
.nb .upload-field .upload-box[data-ratio] { width: 100%; height: auto; min-height: 120px; aspect-ratio: var(--upload-ratio); }
.nb .upload-field .upload-box img.upload-preview { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.nb .upload-field .upload-box img.upload-preview[hidden] { display: none; }
.nb .upload-actions { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13.5px; color: var(--mut); }
.nb .upload-actions[hidden], .nb .upload-actions [hidden] { display: none; }
.nb .field label.upload-remove-saved { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 4px 0 0; font-size: 13.5px; font-weight: 500; color: var(--ink-2); } /* O-40 */
.nb .upload-actions .upload-act, .nb .field .upload-actions label.upload-act { display: inline; margin: 0; padding: 0; border: 0; background: none; font: 700 13.5px/1.4 var(--ff); color: var(--acc-d); cursor: pointer; }
.nb .upload-actions .upload-act:hover { text-decoration: underline; text-underline-offset: 3px; }
.nb .upload-actions button.upload-act { color: var(--err); }
.nb .upload-err { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--err); }
.nb .upload-err[hidden] { display: none; }
@media (max-width: 640px) { .nb .upload-field .upload-box[data-ratio] { min-height: 104px; } .nb .upload-field .upload-box[data-ratio] .upload-icon { width: 36px; height: 36px; margin-bottom: 6px; } }
html[data-input="mouse"] .nb .upload-field .upload-box:focus-within { outline: none; }

/* A file input inside a <label> box: visually hidden but still focusable (not display:none),
   so the label opens it on click / Enter / Space, including iPhone Safari. */
.nb input.sr-file, .nb .field input.sr-file, .nb .ew .field input.sr-file { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; opacity: 0; }
/* the box's inner parts are <span>s now (a <label> may only hold inline content): undo the
   older `.upload-copy span` text style for the icon circle and the text wrapper */
.nb .upload-field .upload-box .upload-copy .upload-icon { display: grid; place-items: center; margin-top: 0; color: var(--ink); font-size: inherit; }
.nb .upload-field .upload-box .upload-copy .upload-text { display: block; margin-top: 0; color: inherit; font-size: inherit; }
.nb .upload-field .upload-box.compact .upload-copy .upload-icon { margin: 0; }
.nb .upload-field .upload-box .upload-copy .upload-text b { color: inherit; }
.nb .upload-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--mut); }
.nb .upload-actions:has([data-upload-remove][hidden]) > span[aria-hidden] { display: none; }

/* Organizer order page: why a checked-in order can't be cancelled (replaces the button) */
.nb .tk-used-note { display: flex; align-items: flex-start; gap: 8px; margin: -8px 0 18px; padding: 12px 14px; border-radius: 14px; background: var(--ok-w); color: var(--ink); font-size: 14px; line-height: 1.45; }
.nb .tk-used-note svg { flex: none; margin-top: 1px; color: var(--ok); }

/* Pass page: customer cancel for free / unpaid bookings (no money involved) */
.nb .tkv-cancel__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--err); border-radius: 999px; background: var(--surface); color: var(--err); font: 700 14px/1 var(--ff); cursor: pointer; }
.nb .tkv-cancel__btn:hover { background: var(--err-w); }
.nb .tkv-cancel .hint { margin: 8px 0 0; font-size: 13px; color: var(--mut); }

/* the refund rule under the checkout button (flow audit 06-07): one short line, inside the phone pay bar too */
.nb .checkout-cta .checkout-cta__note { margin: 6px 0 0; font-size: 12px; line-height: 1.4; text-align: center; }

/* Settlement by event (flow audit 09-05): the wide table scrolls inside its card instead of clipping the Net column;
   columns keep a gap so headers like COMMISSION / FEES don't run together */
.nb .stmt-settle { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nb .stmt-settle > .data-table { min-width: var(--settle-min, 100%); }
.nb .stmt-settle .table-head, .nb .stmt-settle .list-row { column-gap: 16px; }
.nb .stmt-settle .table-head > div { white-space: nowrap; }
.nb .stmt-settle .table-head > :first-child, .nb .stmt-settle .list-row > :first-child { position: sticky; left: 0; z-index: 1; background: var(--surface, #fff); box-shadow: 8px 0 8px -8px rgba(0,0,0,.18); }
.nb .stmt-settle .table-head > :first-child { background: inherit; }
.nb .stmt-settle__hint { margin: 0 0 8px; }

/* Send refund: where to send it (the buyer's UPI ID / bank account) - wraps on phones */
.nb .rf-send__dest { display: grid; gap: 2px; margin: 4px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-field, 12px); background: var(--surface-2, var(--surface)); }
.nb .rf-send__dest-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); }
.nb .rf-send__dest strong { overflow-wrap: anywhere; }

/* Send refund: the 5-working-day deadline (overdue in the error colour) */
.nb .rf-send__due { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); }
.nb .rf-send__due.is-overdue { color: var(--err); }

/* Footer credit: "A Concept Crafters product" links to conceptcrafters.in */
.nb .pof__bottom a { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.nb .pof__bottom a:hover { color: var(--acc-ink); text-decoration-color: currentColor; }
