@layer reset, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, figure { margin: 0; }
  button, input, select { font: inherit; }
  button { color: inherit; }
  img, svg { display: block; }
  a { color: inherit; }
}

@layer base {
  :root {
    color-scheme: light;
    --paper: #f6f3ed;
    --paper-deep: #eeeae1;
    --white: #fffdfa;
    --ink: #202522;
    --muted: #73766e;
    --line: #dedbd2;
    --line-strong: #c8c5ba;
    --coral: #df715b;
    --coral-dark: #b95240;
    --coral-pale: #f8e7e1;
    --sage: #547561;
    --sage-pale: #e6eee7;
    --amber: #a56c28;
    --amber-pale: #f4eddd;
    --red: #ab443d;
    --red-pale: #f8e8e5;
    --shadow: 0 16px 42px rgba(40, 43, 38, .06);
    --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: Iowan Old Style, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
  body { min-width: 320px; min-height: 100vh; display: flex; flex-direction: column; }
  body, input, select, button { font-family: var(--sans); }
  button { cursor: pointer; }
  button:disabled { cursor: not-allowed; opacity: .48; }
  ::selection { color: var(--ink); background: #f2c5b8; }
  :focus-visible { outline: 3px solid rgba(198, 86, 65, .7); outline-offset: 3px; }
  .skip-link { position: fixed; z-index: 50; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; background: var(--ink); color: white; border-radius: 5px; }
  .skip-link:focus { transform: none; }
}

@layer layout {
  .site-header { height: 78px; padding: 0 clamp(22px, 5.8vw, 92px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); background: rgba(246,243,237,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
  .wordmark { display: inline-flex; gap: 10px; align-items: center; width: fit-content; text-decoration: none; font-weight: 700; letter-spacing: -.055em; font-size: 21px; }
  .brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--coral); }
  .brand-mark svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .wordmark-period { color: var(--coral); }
  .event-label { justify-self: center; display: flex; align-items: center; gap: 9px; color: #565b55; font-size: 12px; letter-spacing: .025em; }
  .live-dot { height: 6px; width: 6px; background: var(--sage); border-radius: 50%; box-shadow: 0 0 0 3px var(--sage-pale); }
  .top-nav { justify-self: end; display: flex; align-items: center; gap: 30px; }
  .nav-link { padding: 9px 0; border: 0; background: transparent; color: #686c65; font-size: 12px; font-weight: 550; transition: color .18s ease; }
  .nav-link:hover, .nav-link.active { color: var(--ink); }
  .nav-link.active { box-shadow: 0 1px 0 var(--coral); }
  .nav-staff { display: flex; align-items: center; gap: 7px; color: var(--ink); }
  .nav-staff svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav-toggle, .mobile-nav { display: none; }
  main { flex: 1; width: 100%; min-height: 65vh; }
  .site-footer { min-height: 68px; border-top: 1px solid var(--line); padding: 20px clamp(22px, 5.8vw, 92px); color: #767971; font-size: 10px; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; }
  .footer-divider { padding: 0 6px; color: #b6b2a8; }
  .footer-note { text-transform: uppercase; letter-spacing: .14em; font-size: 9px; }
}

@layer components {
  .eyebrow { color: var(--coral-dark); font-size: 9px; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .18em; }
  .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
  .muted { color: var(--muted); }
  .section-shell { width: min(1216px, calc(100% - 64px)); margin: 0 auto; }
  .button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid transparent; border-radius: 4px; font-size: 11px; font-weight: 650; text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
  .button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .button:hover:not(:disabled) { transform: translateY(-1px); }
  .button-primary { background: var(--ink); color: white; }
  .button-primary:hover:not(:disabled) { background: #343b36; }
  .button-accent { background: var(--coral); color: white; }
  .button-accent:hover:not(:disabled) { background: var(--coral-dark); }
  .button-secondary { border-color: var(--line-strong); background: transparent; color: var(--ink); }
  .button-secondary:hover:not(:disabled) { background: var(--white); border-color: #9d9a90; }
  .button-quiet { color: #676b64; background: transparent; border-color: transparent; }
  .button-quiet:hover:not(:disabled) { background: var(--paper-deep); }
  .button-danger { color: var(--red); border-color: #e2bdb7; background: transparent; }
  .button-small { min-height: 34px; padding: 0 11px; font-size: 10px; }
  .button-block { width: 100%; }
  .icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 4px; background: transparent; }
  .icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .form-field { display: grid; gap: 7px; }
  .form-field label, .field-label { color: #515650; font-size: 10px; font-weight: 650; letter-spacing: .025em; }
  .form-field label .optional { color: #989990; font-weight: 450; }
  .form-field input, .form-field select, .input-control { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--ink); background: rgba(255,253,250,.68); font-size: 12px; }
  .form-field textarea { resize: vertical; }
  .form-field input::placeholder { color: #a0a197; }
  .form-field input:focus, .form-field select:focus { outline: 2px solid rgba(198,86,65,.3); border-color: var(--coral); }
  .field-help { color: #85877f; font-size: 10px; line-height: 1.5; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .form-grid .full { grid-column: 1 / -1; }
  .inline-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 13px; border: 1px solid #e2d3aa; border-radius: 3px; background: var(--amber-pale); color: #71582f; font-size: 10px; line-height: 1.5; }
  .inline-note svg { flex: 0 0 16px; width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .inline-note.error { border-color: #edc7c1; background: var(--red-pale); color: var(--red); }
  .inline-note.success { border-color: #cbd9cc; background: var(--sage-pale); color: #3e6449; }
  .status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 20px; font-size: 9px; font-weight: 680; letter-spacing: .015em; white-space: nowrap; }
  .status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
  .status-success { color: #456b50; background: var(--sage-pale); }
  .status-wait { color: #98641e; background: var(--amber-pale); }
  .status-bad { color: #a5453f; background: var(--red-pale); }
  .status-neutral { color: #666a62; background: #eae8e2; }
  .empty-state { padding: 38px 20px; text-align: center; color: var(--muted); font-size: 12px; }
  .empty-state strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 400; margin-bottom: 6px; }

  /* Public event */
  .public-wrap { overflow: hidden; }
  .hero-grid { width: min(1216px, calc(100% - 64px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr); gap: clamp(42px, 9vw, 132px); padding: 72px 0 55px; align-items: center; }
  .hero-copy { padding: 12px 0 20px; }
  .hero-copy .eyebrow { margin-bottom: 24px; }
  .hero-copy h1 { max-width: 675px; font-size: clamp(52px, 6.7vw, 90px); line-height: .96; }
  .hero-copy h1 em { color: var(--coral); font-style: italic; }
  .hero-description { max-width: 475px; color: #6c7069; font-size: 13px; line-height: 1.8; margin-top: 25px; }
  .hero-meta { display: flex; flex-wrap: wrap; gap: 21px; margin-top: 34px; color: #4d534d; font-size: 10px; }
  .meta-item { display: flex; gap: 8px; align-items: center; }
  .meta-item svg { width: 15px; height: 15px; fill: none; stroke: var(--coral); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .hero-mark { margin-top: 42px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; color: #85877f; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
  .hero-mark span:last-child { color: var(--ink); font-family: var(--serif); font-size: 15px; letter-spacing: -.01em; text-transform: none; }
  .hero-seal { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--coral); font-family: var(--serif); font-size: 15px; }
  .register-panel { padding: 27px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
  .panel-topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
  .panel-topline .eyebrow { color: #777b72; }
  .spots-inline { display: flex; align-items: center; gap: 6px; color: var(--sage); font-size: 9px; font-weight: 650; }
  .spots-inline svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
  .register-heading { font-family: var(--serif); font-size: 29px; letter-spacing: -.035em; font-weight: 400; margin: 19px 0 5px; }
  .register-subheading { color: #888a82; font-size: 10px; margin-bottom: 20px; }
  .role-options { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-bottom: 19px; }
  .role-option { position: relative; min-width: 0; }
  .role-option + .role-option { border-left: 1px solid var(--line); }
  .role-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
  .role-choice { display: flex; min-height: 81px; padding: 11px 6px 10px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #73766f; text-align: center; font-size: 9px; font-weight: 620; line-height: 1.3; cursor: pointer; }
  .role-choice svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
  .role-option input:checked + .role-choice { color: var(--coral-dark); background: #fbefeb; box-shadow: inset 0 -2px var(--coral); }
  .role-option input:focus-visible + .role-choice { outline: 3px solid rgba(198,86,65,.7); outline-offset: -3px; }
  .registration-fields { display: grid; gap: 13px; }
  .registration-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; margin-top: 16px; border-top: 1px solid var(--line); }
  .privacy-note { display: flex; gap: 6px; align-items: flex-start; max-width: 170px; color: #91938b; font-size: 9px; line-height: 1.4; }
  .privacy-note svg { flex: 0 0 12px; width: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
  .register-footnote { color: #9b9c94; font-size: 9px; line-height: 1.4; margin-top: 12px; }
  .form-error-slot { min-height: 0; }
  .form-error-slot:empty { display: none; }
  .form-error-slot .inline-note { padding: 9px 10px; }

  .event-strip { width: min(1216px, calc(100% - 64px)); margin: 0 auto; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
  .event-fact { padding: 21px 17px 27px 0; }
  .event-fact + .event-fact { padding-left: 28px; border-left: 1px solid var(--line); }
  .fact-label { color: #909189; font-size: 8px; text-transform: uppercase; letter-spacing: .16em; }
  .fact-value { margin-top: 8px; font-family: var(--serif); font-size: 17px; letter-spacing: -.02em; }
  .fact-detail { color: #7a7d75; font-size: 9px; margin-top: 4px; }

  /* Pass */
  .pass-page { padding: 37px 0 65px; }
  .page-heading { width: min(1040px, calc(100% - 48px)); margin: 0 auto 25px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
  .page-heading .eyebrow { margin-bottom: 9px; }
  .page-heading h1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); line-height: 1; font-weight: 400; letter-spacing: -.04em; }
  .page-heading p { margin-top: 9px; color: var(--muted); font-size: 11px; }
  .pass-layout { width: min(1040px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(285px, .75fr); gap: 25px; align-items: start; }
  .boarding-pass { overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .pass-top { padding: 23px 25px 20px; display: flex; justify-content: space-between; align-items: flex-start; background: #ece9df; border-bottom: 1px dashed #c8c4b8; position: relative; }
  .pass-top::before, .pass-top::after { content: ""; position: absolute; bottom: -9px; z-index: 1; width: 17px; height: 17px; background: var(--paper); border-radius: 50%; border: 1px solid var(--line); }
  .pass-top::before { left: -9px; border-left-color: transparent; border-top-color: transparent; transform: rotate(-45deg); }
  .pass-top::after { right: -9px; border-right-color: transparent; border-bottom-color: transparent; transform: rotate(-45deg); }
  .pass-brand { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: -.02em; }
  .pass-brand .brand-mark { width: 22px; height: 22px; border-radius: 6px; }
  .pass-brand .brand-mark svg { width: 15px; }
  .pass-number { color: #85877f; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
  .pass-body { padding: 24px 25px 22px; display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 19px; }
  .pass-person { min-width: 0; }
  .pass-kind { color: var(--coral-dark); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
  .pass-name { margin-top: 9px; font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1; letter-spacing: -.04em; overflow-wrap: anywhere; }
  .pass-email { color: #777a72; font-size: 10px; margin-top: 7px; overflow-wrap: anywhere; }
  .pass-data { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 25px; }
  .pass-data .fact-value { font-family: var(--sans); font-size: 11px; font-weight: 600; margin-top: 5px; letter-spacing: 0; }
  .pass-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .qr-frame { display: grid; place-items: center; width: 132px; height: 132px; border: 1px solid var(--line); background: white; padding: 7px; }
  .qr-frame img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
  .qr-caption { color: #91938b; text-align: center; font-size: 8px; line-height: 1.45; }
  .pass-segment { padding: 13px 25px 14px; border-top: 1px dashed var(--line-strong); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .pass-location { color: #656a63; display: flex; gap: 7px; align-items: center; font-size: 9px; }
  .pass-location svg { width: 14px; height: 14px; fill: none; stroke: var(--coral); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
  .pass-confirmation { color: var(--sage); display: flex; align-items: center; gap: 6px; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
  .pass-confirmation::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .pass-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px 20px; border-top: 1px solid var(--line); }
  .pass-side { display: grid; gap: 15px; }
  .side-panel { padding: 20px; border: 1px solid var(--line); background: rgba(255,253,250,.62); }
  .side-panel h2 { font-family: var(--serif); font-size: 22px; letter-spacing: -.03em; font-weight: 400; }
  .side-panel > p { color: #787b73; font-size: 10px; line-height: 1.55; margin-top: 8px; }
  .guest-progress { margin: 16px 0 14px; }
  .guest-progress-head { display: flex; justify-content: space-between; color: #767970; font-size: 9px; margin-bottom: 7px; }
  .progress-track { height: 4px; background: #e5e2da; border-radius: 3px; overflow: hidden; }
  .progress-track > span { display: block; height: 100%; background: var(--coral); border-radius: inherit; transition: width .25s ease; }
  .guest-list { list-style: none; padding: 0; margin: 15px 0 0; border-top: 1px solid var(--line); }
  .guest-list li { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); font-size: 10px; }
  .guest-list a { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 2px; font-size: 9px; }
  .guest-list .guest-kind { color: #898b83; font-size: 8px; }
  .pass-lookup { display: flex; gap: 8px; margin-top: 14px; }
  .pass-lookup input { min-width: 0; flex: 1; }
  .saved-passes { list-style: none; padding: 0; margin: 13px 0 0; }
  .saved-passes li + li { border-top: 1px solid var(--line); }
  .saved-passes button { display: flex; width: 100%; min-height: 39px; justify-content: space-between; align-items: center; border: 0; background: transparent; text-align: left; font-size: 10px; }
  .saved-passes button:hover { color: var(--coral-dark); }
  .saved-kind { color: #8b8e85; font-size: 8px; }
  .wallet-message { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 12px; display: flex; gap: 8px; color: #90928a; font-size: 9px; line-height: 1.5; }
  .wallet-message svg { flex: 0 0 15px; width: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
  .host-back-link { color: var(--coral-dark); text-decoration: none; font-size: 10px; }
  .host-back-link:hover { text-decoration: underline; }

  /* Staff */
  .staff-page { min-height: calc(100vh - 146px); padding: 35px 0 70px; }
  .staff-shell { width: min(1280px, calc(100% - 56px)); margin: 0 auto; }
  .staff-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
  .staff-heading h1 { font-family: var(--serif); font-size: clamp(33px, 4vw, 47px); font-weight: 400; letter-spacing: -.04em; line-height: 1; margin-top: 8px; }
  .staff-heading p { color: #80837b; font-size: 10px; margin-top: 10px; }
  .staff-heading-actions { display: flex; align-items: center; gap: 12px; }
  .staff-user { color: #71756d; font-size: 10px; }
  .login-layout { width: min(900px, calc(100% - 48px)); margin: 65px auto; display: grid; grid-template-columns: 1fr .8fr; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
  .login-intro { padding: 38px; background: var(--ink); color: #f9f7f1; display: flex; flex-direction: column; justify-content: space-between; min-height: 365px; }
  .login-intro .eyebrow { color: #efaa99; }
  .login-intro h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; font-size: 40px; line-height: 1.03; margin-top: 21px; }
  .login-intro p { color: #bdc1b9; font-size: 11px; line-height: 1.7; margin-top: 14px; max-width: 270px; }
  .login-intro .pass-brand { color: white; }
  .login-form-wrap { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
  .login-form-wrap h2 { font-family: var(--serif); font-size: 27px; font-weight: 400; letter-spacing: -.03em; }
  .login-form-wrap > p { color: #84867e; font-size: 10px; margin-top: 7px; margin-bottom: 22px; }
  .login-fields { display: grid; gap: 14px; }
  .demo-credentials { margin-top: 16px; padding: 11px 12px; border: 1px dashed var(--line-strong); color: #777b73; font-size: 9px; line-height: 1.55; }
  .demo-credentials strong { color: var(--ink); }
  .dashboard-view { display: grid; gap: 22px; }
  .dashboard-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 14px; background: var(--white); border: 1px solid var(--line); }
  .dashboard-toolbar-left { display: flex; align-items: center; gap: 12px; }
  .sync-state { color: #81847c; font-size: 9px; display: inline-flex; align-items: center; gap: 7px; }
  .sync-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }
  .dashboard-tabs { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); background: var(--paper); }
  .dashboard-tab { border: 0; padding: 8px 12px; font-size: 9px; color: #73776e; background: transparent; }
  .dashboard-tab[aria-selected="true"] { color: var(--ink); background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.07); }
  .metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--white); }
  .metric { padding: 18px 19px 17px; min-height: 110px; }
  .metric + .metric { border-left: 1px solid var(--line); }
  .metric-label { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: #777b72; font-size: 9px; }
  .metric-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: var(--coral-dark); background: var(--coral-pale); }
  .metric-icon svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .metric-number { display: block; margin-top: 13px; font-family: var(--serif); font-size: 30px; letter-spacing: -.05em; line-height: .9; }
  .metric-number small { color: #9c9e95; font-family: var(--sans); font-size: 10px; letter-spacing: 0; }
  .metric-foot { margin-top: 7px; color: #999b93; font-size: 8px; }
  .dashboard-main-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); gap: 18px; align-items: start; }
  .work-panel { min-width: 0; border: 1px solid var(--line); background: var(--white); }
  .work-panel-head { min-height: 57px; display: flex; justify-content: space-between; align-items: center; gap: 13px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
  .work-panel-head h2 { font-family: var(--serif); font-size: 19px; letter-spacing: -.025em; font-weight: 400; }
  .work-panel-head p { margin-top: 4px; color: #8a8d85; font-size: 9px; }
  .capacity-panel { padding: 17px; }
  .capacity-overview { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; }
  .capacity-ring { --checked-angle: 120deg; --reserved-angle: 100deg; width: 124px; height: 124px; position: relative; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--ink) 0 var(--checked-angle), #d7ac86 var(--checked-angle) calc(var(--checked-angle) + var(--reserved-angle)), #e8e5de calc(var(--checked-angle) + var(--reserved-angle)) 360deg); }
  .capacity-ring::after { content: ""; position: absolute; inset: 11px; background: var(--white); border-radius: 50%; }
  .ring-center { position: relative; z-index: 1; text-align: center; }
  .ring-center strong { display: block; font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.06em; line-height: 1; }
  .ring-center span { display: block; margin-top: 4px; color: #8a8d85; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
  .capacity-legend { display: grid; gap: 10px; }
  .legend-item { display: flex; align-items: center; gap: 8px; color: #666a63; font-size: 9px; }
  .legend-swatch { width: 7px; height: 7px; border-radius: 2px; background: var(--ink); }
  .legend-swatch.reserve { background: #d7ac86; }
  .legend-swatch.open { background: #e8e5de; border: 1px solid #d5d1c8; }
  .legend-item strong { color: var(--ink); margin-left: auto; font-size: 10px; }
  .capacity-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 17px; border-top: 1px solid var(--line); }
  .capacity-summary > div { padding: 13px 5px 0; }
  .capacity-summary > div + div { border-left: 1px solid var(--line); padding-left: 13px; }
  .capacity-summary strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: -.03em; }
  .capacity-summary span { display: block; margin-top: 3px; color: #8b8e85; font-size: 8px; }
  .reservation-callout { margin-top: 14px; padding: 10px 11px; display: flex; align-items: flex-start; gap: 8px; background: #f2efe7; color: #777a72; font-size: 9px; line-height: 1.45; }
  .reservation-callout svg { flex: 0 0 14px; width: 14px; fill: none; stroke: #a57943; stroke-width: 1.5; }
  .dashboard-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
  .scan-panel { padding: 15px; }
  .scanner-camera { position: relative; min-height: 180px; overflow: hidden; background: #202623; display: grid; place-items: center; }
  .scanner-camera video { width: 100%; height: 100%; min-height: 180px; position: absolute; inset: 0; object-fit: cover; }
  .camera-placeholder { position: relative; z-index: 1; padding: 20px; color: #b9c0b6; text-align: center; font-size: 9px; line-height: 1.5; }
  .camera-placeholder svg { width: 26px; height: 26px; fill: none; stroke: #8e9b90; stroke-width: 1.3; margin: 0 auto 10px; }
  .scan-frame { position: absolute; z-index: 2; width: 95px; height: 95px; border: 1px solid rgba(244,242,235,.7); border-radius: 8px; pointer-events: none; box-shadow: 0 0 0 999px rgba(16,20,18,.23); }
  .scan-frame::before, .scan-frame::after { content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--coral); border-style: solid; }
  .scan-frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 7px 0 0; }
  .scan-frame::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 7px; }
  .scanner-live { position: absolute; z-index: 3; left: 10px; top: 10px; padding: 5px 7px; border-radius: 2px; color: white; background: rgba(20,24,22,.65); display: flex; align-items: center; gap: 6px; font-size: 8px; }
  .scanner-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #6cbb7d; }
  .scanner-actions { display: flex; gap: 8px; margin-top: 10px; }
  .scanner-actions .button { flex: 1; }
  .manual-scan { display: flex; gap: 7px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
  .manual-scan input { flex: 1; min-width: 0; }
  .demo-shortcuts { margin-top: 14px; }
  .demo-shortcuts > span { display: block; color: #92948b; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
  .shortcut-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .shortcut { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line); border-radius: 3px; padding: 6px 8px; background: #faf8f3; color: #666a62; font-size: 8px; }
  .shortcut:hover { color: var(--coral-dark); border-color: #e0ab9e; }
  .scan-result { margin-top: 12px; padding: 11px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); background: var(--paper); }
  .scan-result[hidden] { display: none; }
  .result-indicator { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--sage); font-size: 12px; }
  .scan-result.denied .result-indicator, .scan-result.duplicate .result-indicator { background: var(--red); }
  .scan-result.pending .result-indicator { color: var(--ink); background: #e5c383; }
  .scan-result strong { display: block; font-size: 10px; }
  .scan-result p { color: #7c7f77; font-size: 9px; line-height: 1.45; margin-top: 3px; }
  .logs-list { list-style: none; padding: 0; margin: 0; }
  .logs-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 10px 13px; border-bottom: 1px solid #eeece6; }
  .log-time { color: #999b93; font-size: 8px; font-variant-numeric: tabular-nums; }
  .log-text { min-width: 0; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .log-text span { color: #888b82; }
  .log-outcome { font-size: 8px; font-weight: 650; color: var(--sage); }
  .log-outcome.denied, .log-outcome.duplicate, .log-outcome.cancelled { color: var(--red); }
  .log-outcome.confirmation_required { color: var(--amber); }
  .attendees-panel { overflow: hidden; }
  .attendees-controls { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .search-field { position: relative; min-width: 170px; flex: 1; max-width: 320px; }
  .search-field svg { position: absolute; top: 50%; left: 10px; width: 14px; transform: translateY(-50%); fill: none; stroke: #979990; stroke-width: 1.5; }
  .search-field input { width: 100%; height: 34px; padding: 0 10px 0 31px; border: 1px solid var(--line); background: #fcfaf6; font-size: 9px; }
  .filter-select { min-height: 34px; padding: 0 26px 0 9px; border: 1px solid var(--line); background: #fcfaf6; color: #666a62; font-size: 9px; }
  .table-scroll { overflow: auto; max-height: 395px; }
  .attendees-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
  .attendees-table th { position: sticky; top: 0; z-index: 2; padding: 9px 12px; color: #94968e; background: #fbfaf7; text-transform: uppercase; letter-spacing: .1em; font-size: 8px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .attendees-table td { padding: 10px 12px; border-bottom: 1px solid #efede7; font-size: 9px; }
  .attendee-name { font-weight: 620; }
  .attendee-sub { color: #96988f; font-size: 8px; margin-top: 3px; }
  .kind-label { color: #73776e; }
  .eligibility-toggle { accent-color: var(--sage); width: 14px; height: 14px; vertical-align: middle; }
  .eligibility-label { color: #787b73; font-size: 8px; margin-left: 4px; }
  .recent-panel { min-width: 0; }
  .recent-panel .logs-list { max-height: 230px; overflow: auto; }
  .attendees-empty-row td { text-align: center; padding: 25px; color: #898c84; }
  .dashboard-subview[hidden] { display: none; }
  .settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .68fr); gap: 18px; }
  .settings-form { padding: 19px; display: grid; gap: 16px; }
  .settings-form .form-grid { gap: 14px; }
  .toggle-row { padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .toggle-row strong { display: block; font-size: 10px; }
  .toggle-row p { color: #858880; font-size: 9px; line-height: 1.45; margin-top: 4px; }
  .switch { appearance: none; flex: 0 0 36px; width: 36px; height: 20px; margin: 0; border-radius: 12px; background: #d4d1c8; position: relative; transition: background .2s; cursor: pointer; }
  .switch::after { content: ""; position: absolute; width: 14px; height: 14px; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 2px #0002; transition: transform .2s; }
  .switch:checked { background: var(--sage); }
  .switch:checked::after { transform: translateX(16px); }
  .report-actions { padding: 18px; display: grid; gap: 10px; }
  .report-link { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); text-decoration: none; transition: border .15s, background .15s; }
  .report-link:hover { border-color: var(--coral); background: #fffaf7; }
  .report-link svg { width: 17px; fill: none; stroke: var(--coral-dark); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
  .report-link strong { display: block; font-size: 10px; }
  .report-link span { display: block; color: #878a81; font-size: 8px; margin-top: 3px; }
  .reset-note { padding: 14px 16px; color: #7e8078; font-size: 9px; line-height: 1.5; border-top: 1px solid var(--line); }

  .confirm-dialog { width: min(475px, calc(100% - 32px)); max-width: none; padding: 0; border: 1px solid var(--line); color: var(--ink); background: var(--white); box-shadow: 0 25px 90px #181c1860; }
  .confirm-dialog::backdrop { background: rgba(27,32,29,.52); backdrop-filter: blur(2px); }
  .dialog-shell { position: relative; padding: 34px; }
  .dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: transparent; color: #787b73; }
  .dialog-close svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
  .dialog-symbol { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 20px; border-radius: 50%; color: var(--amber); background: var(--amber-pale); }
  .dialog-symbol svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .dialog-shell h2 { font-family: var(--serif); font-size: 31px; font-weight: 400; letter-spacing: -.04em; margin-top: 8px; }
  .confirm-person { display: flex; align-items: center; gap: 11px; margin-top: 19px; padding: 13px; border: 1px solid var(--line); background: #fbfaf7; }
  .person-initials { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--coral-dark); background: var(--coral-pale); font-family: var(--serif); font-size: 15px; }
  .confirm-person strong { display: block; font-size: 11px; }
  .confirm-person span { display: block; color: #858880; font-size: 9px; margin-top: 4px; }
  .dialog-copy { margin-top: 14px; color: #686c65; font-size: 10px; line-height: 1.55; }
  .capacity-note { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); color: #878a82; font-size: 9px; }
  .dialog-actions { display: flex; gap: 9px; margin-top: 23px; }
  .dialog-actions .button { flex: 1; padding-left: 10px; padding-right: 10px; font-size: 10px; }
  .dialog-footnote { margin-top: 13px; text-align: center; color: #a0a197; font-size: 8px; }
  .toast-region { position: fixed; z-index: 40; bottom: 20px; right: 22px; display: grid; gap: 8px; width: min(360px, calc(100% - 32px)); pointer-events: none; }
  .toast { padding: 13px 16px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 8px 30px #292d281f; color: var(--ink); font-size: 10px; line-height: 1.45; animation: toast-in .2s ease-out; }
  .toast.error { color: var(--red); border-color: #e9c3bd; }
  .toast.success { color: #42654a; border-color: #cbdbce; }
  @keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

@layer utilities {
  [hidden] { display: none !important; }
  .text-coral { color: var(--coral-dark); }
  .align-right { text-align: right; }
  .mt-12 { margin-top: 12px; }
  .divider-top { padding-top: 13px; margin-top: 14px; border-top: 1px solid var(--line); }
}

@media (min-width: 1500px) {
  .hero-grid { padding-top: 91px; padding-bottom: 69px; }
}

@media (max-width: 1020px) {
  .site-header { grid-template-columns: 1fr auto 1fr; padding: 0 28px; gap: 14px; }
  .top-nav { gap: 20px; }
  .hero-grid { gap: 43px; grid-template-columns: minmax(0, 1.1fr) minmax(305px, .9fr); }
  .hero-copy h1 { font-size: clamp(50px, 7vw, 74px); }
  .register-panel { padding: 22px; }
  .dashboard-main-grid { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); }
  .capacity-overview { grid-template-columns: 115px 1fr; gap: 12px; }
  .capacity-ring { width: 108px; height: 108px; }
}

@media (max-width: 780px) {
  .site-header { height: 66px; grid-template-columns: 1fr auto; padding: 0 22px; }
  .event-label, .top-nav { display: none; }
  .mobile-nav-toggle { justify-self: end; display: flex; width: 38px; height: 38px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 1px solid var(--line); background: transparent; }
  .mobile-nav-toggle span { width: 15px; height: 1px; background: var(--ink); transition: transform .18s; }
  .mobile-nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .mobile-nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .mobile-nav { position: absolute; z-index: 19; top: 66px; left: 0; right: 0; padding: 10px 22px 15px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 22px #292d2812; }
  .mobile-nav:not([hidden]) { display: grid; }
  .mobile-nav button { min-height: 42px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 11px; }
  .mobile-nav button:last-child { border-bottom: 0; }
  .hero-grid { width: min(100% - 44px, 590px); padding: 50px 0 36px; grid-template-columns: 1fr; gap: 27px; }
  .hero-copy { padding: 0; }
  .hero-copy .eyebrow { margin-bottom: 15px; }
  .hero-copy h1 { font-size: clamp(53px, 12vw, 76px); max-width: 560px; }
  .hero-description { margin-top: 17px; font-size: 12px; max-width: 520px; }
  .hero-meta { margin-top: 22px; gap: 15px; }
  .hero-mark { display: none; }
  .register-panel { width: 100%; }
  .event-strip { width: min(100% - 44px, 590px); }
  .event-fact { padding: 17px 10px 20px 0; }
  .event-fact + .event-fact { padding-left: 13px; }
  .fact-value { font-size: 14px; }
  .pass-layout { grid-template-columns: 1fr; max-width: 620px; }
  .pass-side { grid-template-columns: 1fr 1fr; align-items: start; }
  .pass-page { padding-top: 27px; }
  .dashboard-main-grid { grid-template-columns: 1fr; }
  .dashboard-split { grid-template-columns: 1fr 1fr; }
  .staff-shell { width: calc(100% - 36px); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .metric:nth-child(4) { border-top: 1px solid var(--line); }
  .login-layout { margin: 35px auto; grid-template-columns: 1fr; max-width: 490px; }
  .login-intro { min-height: 245px; padding: 27px; }
  .login-intro h1 { font-size: 34px; margin-top: 12px; }
  .login-intro p { margin-top: 9px; }
  .login-intro .pass-brand { margin-top: 25px; }
  .login-form-wrap { padding: 27px; }
  .settings-layout { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .site-header { padding: 0 17px; }
  .site-footer { padding: 17px; }
  .footer-note { display: none; }
  .section-shell { width: calc(100% - 34px); }
  .hero-grid { width: calc(100% - 34px); padding-top: 39px; }
  .hero-copy h1 { font-size: clamp(49px, 13vw, 65px); }
  .hero-meta { gap: 12px 16px; }
  .hero-meta .meta-item { font-size: 9px; }
  .register-panel { padding: 18px 15px; }
  .register-heading { font-size: 26px; }
  .role-choice { min-height: 72px; font-size: 8px; }
  .role-choice svg { width: 15px; height: 15px; }
  .registration-foot { align-items: flex-start; flex-direction: column; }
  .registration-foot .button { width: 100%; }
  .privacy-note { max-width: unset; }
  .event-strip { width: calc(100% - 34px); }
  .event-fact { padding-right: 5px; }
  .event-fact + .event-fact { padding-left: 9px; }
  .fact-label { font-size: 7px; }
  .fact-value { font-size: 12px; }
  .fact-detail { font-size: 8px; line-height: 1.45; }
  .page-heading { width: calc(100% - 34px); align-items: flex-start; flex-direction: column; }
  .page-heading .button { width: 100%; }
  .pass-layout { width: calc(100% - 34px); }
  .pass-top { padding: 18px; }
  .pass-body { padding: 19px 17px; grid-template-columns: minmax(0,1fr) 105px; gap: 10px; }
  .qr-frame { width: 100px; height: 100px; padding: 5px; }
  .pass-data { grid-template-columns: 1fr 1fr; gap: 14px 9px; margin-top: 19px; }
  .pass-data .fact-label { font-size: 7px; }
  .pass-data .fact-value { font-size: 9px; }
  .pass-segment { padding: 12px 17px; }
  .pass-actions { padding: 12px; }
  .pass-actions .button { flex: 1 1 40%; }
  .pass-side { grid-template-columns: 1fr; }
  .side-panel { padding: 17px; }
  .staff-page { padding-top: 25px; }
  .staff-shell { width: calc(100% - 26px); }
  .staff-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .staff-heading-actions { width: 100%; justify-content: space-between; }
  .staff-heading-actions .button { min-height: 34px; }
  .login-layout { width: calc(100% - 28px); margin: 20px auto; }
  .login-intro { padding: 22px; min-height: 225px; }
  .login-form-wrap { padding: 22px; }
  .dashboard-toolbar { align-items: flex-start; flex-direction: column; }
  .dashboard-tabs { width: 100%; }
  .dashboard-tab { flex: 1; padding: 8px 3px; }
  .dashboard-toolbar-left { width: 100%; justify-content: space-between; }
  .metric { min-height: 94px; padding: 13px 12px; }
  .metric-label { font-size: 8px; }
  .metric-number { font-size: 27px; margin-top: 10px; }
  .dashboard-split { grid-template-columns: 1fr; }
  .capacity-panel { padding: 14px; }
  .capacity-overview { grid-template-columns: 105px 1fr; }
  .capacity-ring { width: 98px; height: 98px; }
  .ring-center strong { font-size: 25px; }
  .capacity-summary > div + div { padding-left: 7px; }
  .capacity-summary span { font-size: 7px; }
  .attendees-controls { flex-wrap: wrap; }
  .search-field { max-width: none; flex-basis: 100%; }
  .attendees-table th, .attendees-table td { padding-left: 9px; padding-right: 9px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .dialog-shell { padding: 27px 21px 22px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
