@font-face { font-family: Inter; src: url("assets/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Metropolis; src: url("assets/metropolis-bold.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  --ink: #20252d;
  --muted: #667080;
  --line: #dfe3e8;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --navy: #091e3a;
  --pink: #ec008c;
  --blue: #00aeef;
  --royal: #2e3192;
  --green: #73c043;
  --irish-green: #117945;
  --orange: #f47b20;
  --shadow: 0 18px 48px rgba(22, 35, 59, .11);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 18px; padding: 10px 14px; color: white; background: var(--navy); border-radius: 0 0 8px 8px; font-weight: 800; }
.skip-link:focus { top: 0; }
h1, h2, h3, .brand strong { font-family: Metropolis, Inter, sans-serif; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #ffdd00; outline-offset: 3px; }

.esn-ribbon { height: 7px; background: linear-gradient(90deg, var(--blue) 0 20%, var(--pink) 20% 40%, var(--green) 40% 60%, var(--orange) 60% 80%, var(--royal) 80%); }
.site-header { height: 78px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 118px; height: auto; display: block; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--navy); font-size: 18px; letter-spacing: -.02em; }
.brand small { color: var(--muted); margin-top: -3px; font-size: 11px; }
.service-name { padding-left: 12px; border-left: 1px solid var(--line); }
.site-header nav { display: flex; align-items: center; gap: 8px; }
.site-header nav a { padding: 10px 14px; text-decoration: none; color: #424b58; border-radius: 10px; font-weight: 700; font-size: 14px; }
.site-header nav a:hover, .site-header nav a.is-active { color: var(--royal); background: #f0f1fb; }
.account-control { display: flex; align-items: center; gap: 9px; padding-left: 18px; border-left: 1px solid var(--line); }
.account-control > span:not(.account-avatar) { min-width: 0; }
.account-control strong, .account-control small { display: block; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-control strong { font-size: 13px; }
.account-control small { color: var(--muted); font-size: 11px; }
.account-control .text-button { margin-left: 6px; }
.account-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; color: white; background: var(--royal); border-radius: 50%; font-size: 16px; }
.menu-button { display: none; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-weight: 800; }
.prototype-banner { padding: 9px clamp(20px, 5vw, 72px); display: flex; justify-content: center; gap: 10px; background: #fff7dc; border-bottom: 1px solid #f0dda2; color: #654f0f; font-size: 13px; }
.auth-locked .site-header nav, .auth-locked .menu-button { display: none; }
.auth-locked #app { display: none; }

.auth-gate { min-height: calc(100vh - 85px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr); align-items: stretch; background: #f7f9fb; }
body:not(.auth-locked) .auth-gate { display: none; }
.login-card { width: min(650px, calc(100% - 44px)); margin: auto; padding: clamp(34px, 6vw, 64px); background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.login-logo { width: 170px; height: auto; display: block; margin-bottom: 42px; }
.login-card h1 { max-width: 580px; margin: 10px 0 18px; font-size: clamp(39px, 5vw, 64px); line-height: 1.03; letter-spacing: -.05em; }
.login-card > p { color: var(--muted); font-size: 17px; }
.demo-profile-label { display: grid; gap: 7px; margin: 27px 0 14px; color: var(--navy); font-weight: 850; font-size: 13px; }
.demo-profile-label select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.account-button { gap: 10px; color: white; background: var(--royal); box-shadow: 0 9px 22px rgba(46,49,146,.18); }
.account-button:hover { background: #232675; }
.account-button span { color: #ffdd00; }
.login-security { margin: 15px 0 0; color: var(--muted); font-size: 12px !important; text-align: center; }
.developer-login { margin-top: 22px; border-top: 1px solid var(--line); }
.developer-login summary { padding-top: 17px; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 800; }
.developer-login-body { display: grid; gap: 10px; padding: 8px 0 0; }
.developer-login-body small { color: var(--muted); }
.login-explainer { padding: clamp(48px, 8vw, 100px); color: white; background: var(--navy); display: flex; flex-direction: column; justify-content: center; }
.login-explainer .eyebrow { color: var(--blue); }
.login-explainer h2 { margin: 10px 0 36px; max-width: 540px; font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -.05em; }
.login-explainer ul { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.login-explainer li { display: grid; gap: 3px; padding: 18px 0 18px 30px; border-top: 1px solid rgba(255,255,255,.16); position: relative; }
.login-explainer li::before { content: ""; position: absolute; left: 0; top: 23px; width: 11px; height: 11px; background: var(--green); transform: rotate(45deg); }
.login-explainer li:nth-child(2)::before { background: var(--pink); }
.login-explainer li:nth-child(3)::before { background: var(--orange); }
.login-explainer li span { color: #bdc8d8; }

.view { display: none; }
.view.is-active { display: block; }
.hero { min-height: 560px; padding: 78px clamp(22px, 7vw, 110px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: clamp(44px, 7vw, 100px); align-items: center; background: radial-gradient(circle at 80% 15%, rgba(0,174,239,.11), transparent 30%), radial-gradient(circle at 16% 80%, rgba(236,0,140,.08), transparent 25%), linear-gradient(180deg, #fff, #f8fafc); }
.hero-copy { max-width: 760px; }
.eyebrow { color: var(--pink); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.01; letter-spacing: -.055em; margin: 12px 0 24px; }
.hero-copy > p { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 700px; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; font-weight: 850; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--irish-green); box-shadow: 0 9px 22px rgba(17,121,69,.2); }
.button.primary:hover { background: #0a5c32; }
.button.secondary { color: var(--ink); background: white; border-color: var(--line); }
.button.secondary:hover { border-color: #b7bec7; box-shadow: 0 6px 18px rgba(22,35,59,.08); }
.button.full { width: 100%; }
.button.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.text-button { appearance: none; border: 0; background: none; color: var(--pink); font-weight: 850; cursor: pointer; }

.hero-panel { background: var(--navy); color: white; padding: 34px; border-radius: 30px 30px 30px 8px; box-shadow: 22px 26px 0 rgba(122,193,67,.14), var(--shadow); transform: rotate(1deg); }
.hero-panel h2 { font-size: 38px; margin: 20px 0 2px; letter-spacing: -.04em; }
.muted { color: #adb7c8; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 850; }
.status-pill.open { background: #e7f7dc; color: #315f18; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 32px 0 0; }
.quick-facts div { background: rgba(255,255,255,.08); padding: 16px; border-radius: 14px; }
.quick-facts dt { font-size: 25px; font-weight: 900; }
.quick-facts dd { margin: 0; color: #c5ccda; font-size: 12px; }

.content-section { padding: 76px clamp(22px, 7vw, 110px); }
.content-section.soft { background: var(--soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { margin: 4px 0 0; font-size: clamp(31px, 4vw, 48px); letter-spacing: -.04em; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-grid.single-event { grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); }
.single-event .event-card.featured { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); }
.single-event .event-card.featured .event-visual { height: 100%; min-height: 320px; }
.event-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 22px rgba(22,35,59,.05); }
.event-card.featured { border-color: rgba(236,0,140,.35); box-shadow: var(--shadow); }
.event-visual { height: 145px; display: grid; place-items: center; color: white; font-size: 36px; font-weight: 950; letter-spacing: -.06em; background-image: linear-gradient(135deg, rgba(255,255,255,.22), transparent), repeating-linear-gradient(45deg, transparent 0 15px, rgba(255,255,255,.09) 15px 16px); }
.event-visual.pink { background-color: var(--pink); }
.event-visual.blue { background-color: var(--blue); }
.event-visual.green { background-color: var(--green); }
.event-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.event-card h3 { font-size: 23px; letter-spacing: -.025em; margin: 8px 0; }
.event-card p { color: var(--muted); flex: 1; }
.card-meta, .event-details { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; font-weight: 800; }
.card-meta { color: var(--pink); text-transform: uppercase; letter-spacing: .08em; }
.event-details { color: #545e6d; margin: 8px 0 20px; }
.event-details span::before { content: "•"; color: var(--blue); margin-right: 6px; }
.events-note { padding: clamp(25px, 4vw, 42px); color: white; background: var(--royal); border-radius: var(--radius); box-shadow: var(--shadow); }
.events-note .eyebrow { color: #8ce1ff; }
.events-note h3 { margin: 8px 0 14px; font-size: clamp(25px, 3vw, 35px); line-height: 1.08; }
.events-note p { color: #e6e7ff; }
.events-note ul { display: grid; gap: 9px; margin: 24px 0 0; padding: 0; list-style: none; }
.events-note li { padding: 10px 0 10px 24px; border-top: 1px solid rgba(255,255,255,.16); position: relative; }
.events-note li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; background: var(--green); transform: rotate(45deg); }
.steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 0; margin: 0; list-style: none; }
.steps-list li { display: flex; gap: 18px; padding: 24px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.steps-list li > span { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--navy); color: white; font-weight: 900; }
.steps-list h3 { margin: 2px 0 6px; }
.steps-list p { margin: 0; color: var(--muted); }

.page-shell { max-width: 1320px; margin: 0 auto; padding: 58px 26px 90px; }
.page-shell.narrow { max-width: 1180px; }
.page-heading { margin-bottom: 34px; max-width: 780px; }
.page-heading h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 12px; }
.page-heading p { color: var(--muted); font-size: 18px; }
.back-link { color: var(--muted); font-weight: 750; text-decoration: none; display: inline-block; margin-bottom: 24px; }
.back-link:hover { color: var(--pink); }
.registration-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 28px; align-items: start; }
.registration-summary { position: sticky; top: 120px; padding: 25px; background: var(--navy); color: white; border-radius: var(--radius); }
.registration-summary h2 { margin: 18px 0; }
.registration-summary dl { margin: 0; }
.registration-summary dl div { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.13); }
.registration-summary dt { color: #aeb7c8; font-size: 12px; }
.registration-summary dd { margin: 2px 0 0; font-weight: 800; }
.registration-summary .privacy-note { color: #c6cddd; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.13); margin-top: 20px; }
.registration-form, .success-panel { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0 0 40px; list-style: none; }
.progress li { position: relative; text-align: center; color: #9aa2ad; font-weight: 800; }
.progress li::after { content: ""; position: absolute; height: 2px; background: var(--line); left: 50%; right: -50%; top: 17px; z-index: 0; }
.progress li:last-child::after { display: none; }
.progress span { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; margin: 0 auto 6px; border-radius: 50%; background: white; border: 2px solid var(--line); }
.progress li.is-current, .progress li.is-complete { color: var(--pink); }
.progress li.is-current span, .progress li.is-complete span { color: white; border-color: var(--pink); background: var(--pink); }
.progress li.is-complete::after { background: var(--pink); }
.progress small { font-size: 11px; }
.form-step { display: none; }
.form-step.is-active { display: block; }
.account-prefill { display: flex; gap: 12px; align-items: center; margin: 0 0 18px; padding: 13px 14px; color: var(--navy); background: #f0f1fb; border: 1px solid #dfe0f3; border-radius: 11px; }
.account-prefill strong, .account-prefill small { display: block; }
.account-prefill small { color: var(--muted); }
.form-heading { margin-bottom: 26px; }
.form-heading > span { color: var(--pink); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.form-heading h2 { font-size: 32px; letter-spacing: -.035em; margin: 3px 0 6px; }
.form-heading p { color: var(--muted); }
.registration-form label:not(.ticket-card):not(.check-row), fieldset { display: block; margin: 0 0 20px; font-weight: 800; }
.registration-form input:not([type="checkbox"]):not([type="radio"]), .registration-form select, .registration-form textarea, .filters input, .filters select { width: 100%; margin-top: 7px; padding: 13px 14px; color: var(--ink); background: white; border: 1px solid #cbd1d8; border-radius: 10px; outline: none; }
.registration-form input:focus, .registration-form select:focus, .registration-form textarea:focus, .filters input:focus, .filters select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,174,239,.12); }
.registration-form [aria-invalid="true"] { border-color: #c33131 !important; box-shadow: 0 0 0 3px rgba(195,49,49,.1) !important; }
fieldset { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
legend { padding: 0 6px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-weight: 600; }
.check-row input { margin-top: 5px; accent-color: var(--pink); }
.ticket-options { display: grid; gap: 12px; }
.ticket-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.ticket-card:has(input:checked) { border-color: var(--pink); background: #fff5fb; box-shadow: 0 0 0 2px rgba(236,0,140,.08); }
.ticket-card input { accent-color: var(--pink); }
.ticket-card strong, .ticket-card small { display: block; }
.ticket-card small { color: var(--muted); margin-top: 2px; }
.ticket-card b { font-size: 20px; color: var(--navy); }
.info-callout { display: flex; gap: 12px; margin: 22px 0; padding: 16px; border-left: 4px solid var(--blue); background: #eefaff; border-radius: 8px; }
.info-callout strong { min-width: max-content; }
.review-card { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; margin-bottom: 20px; }
.review-row { display: grid; grid-template-columns: 160px 1fr; gap: 15px; padding: 12px 16px; border-top: 1px solid var(--line); }
.review-row:first-child { border-top: 0; }
.review-row span { color: var(--muted); font-size: 13px; }
.consent-row { padding: 14px !important; border: 1px solid var(--line); border-radius: 10px; }
.privacy-note { padding: 13px 15px; color: #5b6572; background: #f6f7f9; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.form-actions { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }
.form-actions .primary { margin-left: auto; }
.success-panel { text-align: center; margin-left: 338px; }
.success-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--green); color: white; border-radius: 50%; font-size: 30px; font-weight: 900; }
.success-panel h2 { font-size: 38px; margin: 6px 0 8px; }
.success-panel > p { max-width: 620px; margin-left: auto; margin-right: auto; color: var(--muted); }
.success-panel .button-row { justify-content: center; }
.status-timeline { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0; text-align: left; }
.status-timeline div { position: relative; padding: 18px; background: var(--soft); border-left: 1px solid white; }
.status-timeline div:first-child { border-radius: 12px 0 0 12px; }
.status-timeline div:last-child { border-radius: 0 12px 12px 0; }
.status-timeline span { width: 26px; height: 26px; display: grid; place-items: center; background: #c9ced5; color: white; border-radius: 50%; font-size: 12px; font-weight: 900; }
.status-timeline .done span { background: var(--green); }
.status-timeline strong, .status-timeline small { display: block; }
.status-timeline strong { margin-top: 10px; }
.status-timeline small { color: var(--muted); }

.admin-shell { min-height: calc(100vh - 123px); display: grid; grid-template-columns: 250px minmax(0,1fr); background: var(--soft); }
.admin-sidebar { padding: 34px 24px; background: var(--navy); color: white; }
.admin-sidebar h1 { font-size: 26px; letter-spacing: -.03em; margin: 6px 0 2px; }
.admin-sidebar > div > p { color: #aeb8c8; }
.admin-sidebar nav { margin: 34px 0; display: grid; gap: 5px; }
.admin-nav { appearance: none; text-align: left; padding: 11px 12px; color: #cad1dc; background: transparent; border: 0; border-radius: 10px; font-weight: 800; cursor: pointer; }
.admin-nav:hover, .admin-nav.is-active { color: white; background: rgba(255,255,255,.11); }
.role-card { display: grid; gap: 3px; padding: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.role-card span, .role-card small { color: #b8c0ce; }
.admin-sidebar .back-link { margin-top: 28px; color: #cbd2dd; }
.admin-main { padding: clamp(28px, 5vw, 58px); min-width: 0; }
.admin-view { display: none; }
.admin-view.is-active { display: block; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 26px; }
.admin-heading h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; margin: 3px 0 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 18px; }
.metric-grid article { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); }
.metric-grid strong { display: block; margin: 8px 0 3px; font-size: 32px; letter-spacing: -.04em; }
.admin-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.panel { padding: 23px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.panel-heading h3 { margin: 0; }
.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.funnel { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; align-items: end; min-height: 190px; }
.funnel div { display: flex; flex-direction: column; height: 100%; justify-content: end; text-align: center; }
.funnel span { order: 3; display: block; height: var(--value); min-height: 38px; margin-top: 8px; border-radius: 9px 9px 3px 3px; background: linear-gradient(180deg, var(--blue), #088bc0); }
.funnel b { font-size: 21px; }
.funnel small { color: var(--muted); }
.action-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 17px; }
.action-list li { display: flex; gap: 12px; }
.action-list strong, .action-list small { display: block; }
.action-list small { color: var(--muted); }
.dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; margin-top: 7px; }
.dot.pink { background: var(--pink); }.dot.orange { background: var(--orange); }.dot.blue { background: var(--blue); }
.security-panel { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 25px; border-left: 5px solid var(--orange); }
.security-panel p { color: var(--muted); margin-bottom: 0; max-width: 820px; }
.filters { display: flex; gap: 10px; margin-bottom: 16px; }
.filters .search-field { flex: 1; }
.filters input, .filters select { margin-top: 0; }
.table-wrap { overflow: auto; background: white; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--muted); background: #f9fafb; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
tbody tr:last-child td { border-bottom: 0; }
.table-name strong, .table-name small { display: block; }
.table-name small { color: var(--muted); }
.table-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #edf0f3; color: #515b68; font-size: 12px; font-weight: 800; }
.table-status.paid, .table-status.accepted { background: #e8f6df; color: #37651e; }
.table-status.pending { background: #fff3d4; color: #785b0b; }
.table-status.active { background: #e8f6df; color: #37651e; }
.builder-grid { grid-template-columns: 1.15fr .85fr; }
.builder-list, .ticket-admin-list { display: grid; gap: 10px; }
.builder-item, .ticket-admin-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.builder-item .handle { color: #9aa2ad; font-weight: 900; }
.builder-item strong, .builder-item small, .ticket-admin-item strong, .ticket-admin-item small { display: block; }
.builder-item small, .ticket-admin-item small { color: var(--muted); }
.builder-controls { display: flex; gap: 4px; }
.icon-button { width: 31px; height: 31px; border: 1px solid var(--line); background: white; border-radius: 8px; cursor: pointer; }
.icon-button:hover { border-color: var(--pink); color: var(--pink); }
.required-toggle { display: flex; gap: 7px; align-items: center; font-size: 12px; color: var(--muted); }
.required-toggle input { accent-color: var(--pink); }
.admin-intro { max-width: 760px; margin: 8px 0 0; color: var(--muted); }
.status-pill.proposal { color: #34367d; background: #eeecfa; }
.access-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.access-summary > div { padding: 16px 18px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.access-summary strong, .access-summary span { display: block; }
.access-summary span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.access-grid { align-items: start; grid-template-columns: 1.2fr .8fr; }
.mapping-list { display: grid; gap: 10px; }
.mapping-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.mapping-row strong, .mapping-row small { display: block; }
.mapping-row small { color: var(--muted); }
.mapping-icon { width: 34px; height: 34px; display: grid; place-items: center; color: white; border-radius: 50%; }
.mapping-icon.blue { background: var(--royal); }
.mapping-icon.pink { background: var(--pink); }
.mapping-badge { padding: 5px 8px; color: #4f5664; background: #f1f3f6; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.info-callout.compact { margin-top: 16px; }
.grant-form { display: grid; gap: 12px; }
.grant-form label { display: grid; gap: 5px; color: #424b58; font-size: 12px; font-weight: 850; }
.grant-form input, .grant-form select { width: 100%; margin: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.grants-panel, .permission-panel { margin-top: 18px; }
.grants-panel code { padding: 1px 4px; color: var(--royal); background: #eeecfa; border-radius: 4px; }
.permission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.permission-grid div { min-height: 112px; padding: 16px; background: #f8fafc; border: 1px solid var(--line); border-top: 4px solid var(--royal); border-radius: 10px; }
.permission-grid div:nth-child(2) { border-top-color: var(--blue); }
.permission-grid div:nth-child(3) { border-top-color: var(--pink); }
.permission-grid div:nth-child(4) { border-top-color: var(--orange); }
.permission-grid div:nth-child(5) { border-top-color: var(--green); }
.permission-grid div:nth-child(6) { border-top-color: var(--navy); }
.permission-grid strong, .permission-grid span { display: block; }
.permission-grid span { margin-top: 6px; color: var(--muted); font-size: 13px; }
.email-preview { max-width: 760px; margin: 0 auto; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.email-meta { padding: 18px 24px; background: #f4f6f8; border-bottom: 1px solid var(--line); }
.email-meta div { display: grid; grid-template-columns: 80px 1fr; padding: 5px 0; font-size: 13px; }
.email-meta span { color: var(--muted); }
.email-body { padding: clamp(28px, 5vw, 54px); }
.email-logo { display: flex; align-items: center; gap: 13px; color: var(--navy); font-family: Metropolis, Inter, sans-serif; font-weight: 900; margin-bottom: 34px; }
.email-logo img { width: 130px; height: auto; }
.email-logo span { padding-left: 13px; border-left: 1px solid var(--line); }
.email-body h2 { font-size: 32px; }
.email-body p { color: #4e5865; }
.email-status { display: flex; justify-content: space-between; padding: 16px; margin: 20px 0; background: #fff5db; border-radius: 10px; }
.email-link { display: inline-block; margin: 12px 0 24px; color: white; background: var(--pink); padding: 11px 16px; border-radius: 9px; font-weight: 800; }
.email-body hr { border: 0; border-top: 1px solid var(--line); }
.email-body small { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 25px); opacity: 0; pointer-events: none; padding: 12px 17px; color: white; background: var(--navy); border-radius: 10px; box-shadow: var(--shadow); font-weight: 750; transition: all .2s ease; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.site-footer { display: flex; align-items: center; gap: 18px; min-height: 130px; padding: 30px clamp(22px, 7vw, 110px); color: #cad2df; background: var(--navy); }
.site-footer img { width: 115px; padding: 8px; background: white; border-radius: 8px; }
.site-footer strong, .site-footer span { display: block; }
.site-footer span { color: #aeb8c8; font-size: 12px; }
.site-footer nav { display: flex; gap: 24px; margin-left: auto; text-align: right; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; }
.environment-badge { position: fixed; right: 18px; bottom: 18px; z-index: 60; padding: 7px 10px; color: white; background: rgba(9,30,58,.92); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; box-shadow: var(--shadow); font-size: 11px; font-weight: 850; }
.oauth-error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f4f6f8; }
.oauth-error-card { width: min(620px, 100%); padding: clamp(28px, 5vw, 48px); background: white; border: 1px solid var(--line); border-top: 6px solid var(--royal); border-radius: 18px; box-shadow: var(--shadow); }
.oauth-error-card h1 { font-size: clamp(34px, 5vw, 52px); }
.oauth-error-card p { color: var(--muted); }
.oauth-error-card a { color: var(--royal); font-weight: 800; }

.legal-page { min-height: 100vh; background: #f4f6fa; color: var(--ink); }
.legal-header { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 14px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); background: #fff; }
.legal-brand { display: flex; align-items: center; gap: 13px; color: var(--navy); font-family: Metropolis, Inter, sans-serif; font-size: 18px; font-weight: 700; text-decoration: none; }
.legal-brand img { width: 104px; height: auto; }
.legal-main { width: min(820px, calc(100% - 40px)); margin: 48px auto 72px; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(9, 24, 54, .08); }
.legal-main h1 { max-width: 690px; margin: 8px 0 18px; color: var(--navy); font-size: clamp(34px, 6vw, 54px); line-height: 1.02; }
.legal-main h2 { margin: 0 0 9px; color: var(--navy); font-size: 19px; }
.legal-main section { padding: 24px 0; border-top: 1px solid var(--line); }
.legal-main section:first-of-type { margin-top: 34px; }
.legal-main p { margin: 0 0 12px; line-height: 1.7; }
.legal-main p:last-child { margin-bottom: 0; }
.legal-status { display: inline-flex; padding: 7px 11px; border-radius: 999px; color: #7a4700; background: #fff0cc; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.legal-lead { color: var(--muted); font-size: 17px; }
.legal-updated { margin-top: 32px !important; color: var(--muted); font-size: 12px; }
.legal-footer { margin-top: 0; }

@media (max-width: 980px) {
  .auth-gate { grid-template-columns: 1fr; }
  .login-card { margin-block: 44px; }
  .login-explainer { min-height: 480px; }
  .hero { grid-template-columns: 1fr; }
  .hero-panel { max-width: 600px; }
  .event-grid { grid-template-columns: 1fr 1fr; }
  .event-grid.single-event { grid-template-columns: 1fr; }
  .single-event .event-card.featured { grid-column: auto; }
  .event-card.featured { grid-column: span 2; display: grid; grid-template-columns: .8fr 1.2fr; }
  .event-card.featured .event-visual { height: 100%; min-height: 300px; }
  .steps-list { grid-template-columns: 1fr; }
  .registration-layout { grid-template-columns: 1fr; }
  .registration-summary { position: static; }
  .success-panel { margin-left: 0; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
  .admin-sidebar nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; margin: 0; }
  .admin-sidebar .back-link { margin: 0; }
  .role-card { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .permission-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .legal-header { min-height: 68px; }
  .legal-brand img { width: 86px; }
  .legal-main { width: calc(100% - 24px); margin: 20px auto 40px; padding: 24px 20px; border-radius: 15px; }
  .legal-main section { padding: 20px 0; }
  .site-header { height: auto; min-height: 68px; flex-wrap: wrap; padding: 12px 18px; }
  .brand img { width: 98px; }
  .brand small { display: none; }
  .account-control { margin-left: auto; padding-left: 10px; }
  .account-control > span:not(.account-avatar), .account-control .text-button { display: none; }
  .menu-button { display: block; }
  .site-header nav { display: none; width: 100%; padding-top: 10px; }
  .site-header nav.is-open { display: grid; }
  .prototype-banner { text-align: center; flex-direction: column; gap: 0; }
  .login-card { width: calc(100% - 30px); padding: 28px 22px; }
  .login-logo { width: 145px; margin-bottom: 30px; }
  .login-card h1 { font-size: 39px; }
  .login-explainer { min-height: 0; padding: 48px 24px; }
  .login-explainer h2 { font-size: 42px; }
  .hero { padding-top: 52px; }
  h1 { font-size: 43px; }
  .hero-panel { padding: 25px; transform: none; }
  .quick-facts { grid-template-columns: 1fr; }
  .section-heading, .admin-heading, .security-panel { align-items: flex-start; flex-direction: column; }
  .event-grid { grid-template-columns: 1fr; }
  .single-event .event-card.featured { display: flex; }
  .single-event .event-card.featured .event-visual { min-height: 145px; height: 145px; }
  .event-card.featured { grid-column: auto; display: flex; }
  .event-card.featured .event-visual { min-height: 145px; height: 145px; }
  .progress small { display: none; }
  .registration-form, .success-panel { padding: 20px; }
  .ticket-card { grid-template-columns: auto 1fr; }
  .ticket-card b { grid-column: 2; }
  .review-row { grid-template-columns: 1fr; gap: 2px; }
  .status-timeline { grid-template-columns: 1fr; gap: 2px; }
  .status-timeline div { border-radius: 7px !important; }
  .admin-sidebar { grid-template-columns: 1fr; }
  .admin-sidebar nav { overflow-x: auto; flex-wrap: nowrap; }
  .admin-nav { white-space: nowrap; }
  .admin-sidebar .back-link { display: none; }
  .admin-main { padding: 26px 17px 60px; }
  .metric-grid, .admin-grid, .builder-grid { grid-template-columns: 1fr; }
  .access-summary, .permission-grid { grid-template-columns: 1fr; }
  .mapping-row { grid-template-columns: auto 1fr; }
  .mapping-badge { grid-column: 2; width: max-content; }
  .filters { flex-direction: column; }
  .info-callout { flex-direction: column; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; }
  .site-footer nav { width: 100%; margin-left: 0; flex-direction: column; gap: 5px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Operational product layout */
body { background: #f6f7f9; }
.esn-ribbon { height: 4px; }
.site-header { height: 72px; padding: 0 clamp(20px, 4vw, 56px); box-shadow: 0 1px 0 rgba(9,30,58,.04); }
.brand img { width: 104px; }
.brand strong { font-size: 17px; }
.brand small { font-size: 11px; margin-top: -1px; }
.site-header nav { gap: 2px; }
.site-header nav a { padding: 9px 12px; border-radius: 7px; }
.site-header nav a:hover, .site-header nav a.is-active { color: var(--navy); background: #eef1f5; }
.account-control { gap: 10px; }
.account-avatar { width: 36px; height: 36px; flex-basis: 36px; border-radius: 9px; background: var(--navy); font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.account-control .text-button { color: #4e5967; font-size: 13px; }

.auth-gate { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr; place-items: center; padding: 56px 20px; background: #f4f6f8; }
.login-card { width: min(500px, 100%); margin: 0; padding: clamp(32px, 5vw, 48px); border-radius: 16px; box-shadow: 0 16px 45px rgba(9,30,58,.08); }
.login-card h1 { margin: 8px 0 12px; font-size: clamp(34px, 5vw, 46px); line-height: 1.08; letter-spacing: -.04em; }
.login-card > p { font-size: 16px; }
.account-button { margin-top: 24px; border-radius: 9px; background: var(--navy); box-shadow: none; }
.account-button:hover { background: #142f52; }
.login-security { line-height: 1.45; }
.login-help { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.developer-login { margin-top: 16px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.guest-login-panel { display: grid; gap: 12px; margin-top: 16px; padding: 18px; background: #f5f7fa; border: 1px solid var(--line); border-radius: 10px; }
.guest-login-panel label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.guest-login-panel input { min-height: 44px; padding: 9px 11px; border: 1px solid #b8c1cc; border-radius: 7px; font: inherit; }
.guest-login-panel small { color: var(--muted); line-height: 1.45; }

.workspace-shell { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 206px); margin: 0 auto; padding: 54px 0 80px; }
.workspace-heading { max-width: 700px; margin-bottom: 32px; }
.workspace-heading h1 { margin: 5px 0 8px; font-size: clamp(38px, 5vw, 52px); }
.workspace-heading p { color: var(--muted); font-size: 17px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); gap: 20px; align-items: start; }
.dashboard-panel { min-width: 0; padding: 26px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.dashboard-panel .panel-heading { margin-bottom: 22px; }
.dashboard-panel .panel-heading h2 { margin: 0; font-size: 22px; }
.dashboard-panel .panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.event-list-card { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px 0 0; border-top: 1px solid var(--line); }
.event-date { width: 78px; height: 84px; display: grid; place-content: center; text-align: center; color: white; background: var(--navy); border-radius: 10px; }
.event-date strong, .event-date span { display: block; }
.event-date strong { font-family: Metropolis, Inter, sans-serif; font-size: 22px; }
.event-date span { color: #c9d3df; font-size: 11px; }
.event-labels { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.event-list-copy h3 { margin: 8px 0 5px; font-size: 23px; }
.event-list-copy > p { margin-bottom: 16px; color: var(--muted); }
.event-facts { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; }
.event-facts div { display: grid; gap: 1px; }
.event-facts dt { color: var(--muted); font-size: 11px; }
.event-facts dd { margin: 0; font-size: 13px; font-weight: 800; }
.event-action { min-width: 104px; box-shadow: none !important; }
.empty-registration { padding: 18px 0 3px; border-top: 1px solid var(--line); }
.empty-registration-mark { width: 46px; height: 46px; display: grid; place-items: center; color: var(--navy); background: #eef1f5; border-radius: 10px; font-weight: 900; }
.empty-registration h3 { margin: 18px 0 7px; font-size: 18px; }
.empty-registration p { color: var(--muted); font-size: 14px; }
.text-link { color: var(--royal); font-size: 14px; font-weight: 850; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.support-strip { display: flex; justify-content: space-between; gap: 28px; margin-top: 20px; padding: 19px 22px; background: #eef3f7; border-radius: 12px; }
.support-strip strong, .support-strip span { display: block; }
.support-strip span { color: var(--muted); font-size: 13px; }
.event-page-shell, .status-page-shell { width: min(1000px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 80px; }
.event-detail-hero { display: flex; justify-content: space-between; gap: 30px; padding: 34px; color: white; background: var(--navy); border-radius: 16px; }
.event-detail-hero h1 { margin: 8px 0; font-size: clamp(36px, 5vw, 52px); }
.event-detail-hero p { max-width: 650px; color: #d9e1ea; }
.event-detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; margin-top: 20px; }
.event-detail-grid .panel { padding: 26px; }
.event-detail-grid h2 { margin-top: 0; }
.ticket-summary { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.registration-status-card { padding: 30px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.registration-status-card h2 { margin: 14px 0 20px; }
.status-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.status-detail-grid div { display: grid; gap: 4px; padding: 14px; background: #f5f7fa; border-radius: 8px; }
.status-detail-grid span { color: var(--muted); font-size: 12px; }
.event-settings-form { padding: 26px; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.event-settings-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; }
.event-settings-form input, .event-settings-form select, .event-settings-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #b8c1cc; border-radius: 7px; font: inherit; }
.email-actions { display: flex; align-items: center; gap: 10px; }
.email-actions select { min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; }
.table-action { color: var(--royal); font-weight: 850; }

.page-shell.narrow { max-width: 1100px; }
.registration-heading { max-width: none; margin-bottom: 28px; }
.registration-heading .back-link { margin-bottom: 28px; }
.registration-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.registration-title-row h1 { margin: 3px 0 0; font-size: clamp(36px, 5vw, 50px); }
.registration-heading > p { margin: 8px 0 0; font-size: 16px; }
.registration-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
.registration-form { order: 1; padding: clamp(24px, 4vw, 36px); border-radius: 14px; box-shadow: none; }
.registration-summary { order: 2; top: 98px; padding: 22px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 14px; }
.registration-summary .status-pill { margin-bottom: 15px; }
.registration-summary h2 { margin: 0 0 12px; font-size: 20px; }
.registration-summary dl div { padding: 12px 0; border-color: var(--line); }
.registration-summary dt { color: var(--muted); }
.registration-summary .privacy-note { margin-top: 15px; color: var(--muted); background: #f7f8fa; border-color: var(--line); }
.progress { margin-bottom: 32px; }
.account-prefill { color: var(--ink); background: #f5f7fa; border-color: var(--line); }
.form-heading h2 { font-size: 29px; }
.registration-form input:not([type="checkbox"]):not([type="radio"]), .registration-form select, .registration-form textarea { border-radius: 8px; }
.ticket-card { border-radius: 9px; }
.site-footer { min-height: 92px; padding: 22px clamp(20px, 4vw, 56px); }
.site-footer img { width: 92px; }
.site-footer nav { gap: 18px; }
.success-panel { margin-left: 0; }
.success-panel > .status-pill { margin: 0 auto 14px; }
.mapping-icon { font-size: 9px; font-weight: 900; }

@media (max-width: 900px) {
  .site-header { height: auto; min-height: 68px; flex-wrap: wrap; padding: 10px 16px; }
  .menu-button { display: block; margin-left: auto; }
  .site-header nav { display: none; order: 4; width: 100%; padding-top: 10px; }
  .site-header nav.is-open { display: grid; }
  .account-control { margin-left: 8px; padding-left: 10px; }
  .account-control > span:not(.account-avatar) { display: none; }
  .account-control .text-button { display: inline-block; margin-left: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .registration-layout { grid-template-columns: 1fr; }
  .event-detail-grid { grid-template-columns: 1fr; }
  .event-detail-hero { align-items: flex-start; flex-direction: column; }
  .registration-form { order: 1; }
  .registration-summary { order: 2; position: static; }
}

@media (max-width: 620px) {
  .service-name { padding-left: 9px; }
  .brand img { width: 88px; }
  .brand strong { font-size: 15px; }
  .auth-gate { padding: 26px 14px; }
  .login-card { padding: 28px 22px; }
  .login-card h1 { font-size: 34px; }
  .login-help { display: grid; gap: 2px; }
  .workspace-shell { width: min(100% - 28px, 1180px); padding: 38px 0 60px; }
  .workspace-heading h1 { font-size: 38px; }
  .dashboard-panel { padding: 20px; }
  .event-list-card { grid-template-columns: 62px minmax(0, 1fr); gap: 15px; }
  .event-date { width: 62px; height: 70px; }
  .event-action { grid-column: 1 / -1; width: 100%; }
  .event-facts { gap: 12px; }
  .support-strip { padding: 16px 18px; }
  .page-shell { padding: 36px 15px 64px; }
  .registration-title-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .registration-heading .back-link { margin-bottom: 20px; }
  .registration-form { padding: 20px; }
  .site-footer { align-items: center; }
  .form-columns, .status-detail-grid { grid-template-columns: 1fr; }
}

.environment-badge { top: 88px; bottom: auto; }

/* Hosted product polish and edition-aware administration */
html { overflow-x: hidden; }
body { min-width: 0; overflow-x: hidden; }
button, input, select, textarea { max-width: 100%; }
.account-photo { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid var(--line); border-radius: 9px; object-fit: cover; background: white; }
.workspace-context { padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.workspace-context h1 { margin: 6px 0 5px; font-size: 26px; line-height: 1.1; }
.workspace-context p { display: flex; align-items: center; gap: 8px; margin: 0; color: #cbd6e2; font-size: 12px; }
.workspace-status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(122,193,66,.15); }
.past-events-panel { margin-top: 20px; }
.edition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.edition-card { min-width: 0; display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfc; }
.edition-card h3 { margin: 9px 0 5px; font-size: 18px; }
.edition-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.edition-card dl { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; }
.edition-card dl div { display: grid; gap: 2px; }
.edition-card dt { color: var(--muted); font-size: 11px; }
.edition-card dd { margin: 0; font-size: 13px; font-weight: 800; }
.archived-event-hero { border-bottom-color: #cfd6df; }
.archive-note { align-self: start; }
.edition-admin-list { display: grid; gap: 14px; margin-bottom: 18px; }
.edition-admin-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 28px; align-items: center; padding: 22px; }
.edition-admin-card h3 { margin: 9px 0 3px; }
.edition-admin-card p { margin: 0; color: var(--muted); }
.edition-admin-card dl { display: flex; gap: 26px; margin: 0; }
.edition-admin-card dl div { display: grid; gap: 3px; }
.edition-admin-card dt { color: var(--muted); font-size: 11px; }
.edition-admin-card dd { margin: 0; font-weight: 800; }
.editor-form { display: grid; align-content: start; gap: 15px; padding: 24px; }
.editor-form > label:not(.check-row) { display: grid; gap: 7px; font-size: 13px; font-weight: 800; }
.editor-form input, .editor-form select, .editor-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b8c1cc; border-radius: 8px; background: white; font: inherit; }
.editor-form textarea { resize: vertical; }
.builder-item, .ticket-admin-item { min-width: 0; }
.builder-item > div:nth-child(2), .ticket-admin-item > div:nth-child(2) { min-width: 0; }
.builder-item small + small, .ticket-admin-item small + small { margin-top: 4px; }
.builder-controls { display: flex; flex-wrap: wrap; justify-content: end; gap: 5px; }
.ticket-card.is-disabled { opacity: .6; cursor: not-allowed; }
.ticket-card b { white-space: nowrap; }
.email-editor-grid { grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); align-items: start; }
.email-preview { overflow: hidden; background: #eef1f5; border: 1px solid var(--line); border-radius: 12px; }
.email-meta { padding: 16px 20px; background: white; border-bottom: 1px solid var(--line); }
.email-message-preview { width: min(620px, calc(100% - 32px)); margin: 24px auto; padding: 34px; background: white; border-radius: 10px; box-shadow: 0 8px 24px rgba(9,30,58,.08); }
.email-message-preview > img { width: 130px; height: auto; margin-bottom: 28px; }
.email-body { white-space: pre-wrap; color: #28394d; line-height: 1.65; }
.email-cta { display: inline-flex; margin-top: 24px; padding: 12px 18px; color: white; background: var(--navy); border-radius: 7px; font-weight: 850; text-decoration: none; }
.email-footer-copy { margin: 30px 0 0; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; line-height: 1.5; }

@media (min-width: 901px) {
  .site-header { position: sticky; top: 0; z-index: 20; }
  .account-control > span:not(.account-avatar) { display: block; }
  .account-control { min-width: 0; }
  .admin-sidebar { position: sticky; top: 76px; max-height: calc(100vh - 76px); overflow-y: auto; }
}

@media (max-width: 900px) {
  .site-header { align-items: center; gap: 8px; }
  .site-header nav.is-open { gap: 4px; padding: 10px 0 4px; border-top: 1px solid var(--line); }
  .site-header nav a { width: 100%; }
  .account-control { order: 2; border-left: 0; }
  .menu-button { order: 3; }
  .site-header nav { order: 4; }
  .admin-shell { display: block; }
  .admin-sidebar { display: block; padding: 20px 16px; }
  .workspace-context { padding-bottom: 12px; }
  .workspace-context h1 { font-size: 23px; }
  .admin-sidebar nav { display: flex; gap: 7px; margin: 18px -2px 0; padding: 2px 2px 10px; overflow-x: auto; scroll-snap-type: x proximity; }
  .admin-nav { flex: 0 0 auto; width: auto; white-space: nowrap; scroll-snap-align: start; }
  .admin-sidebar .role-card { margin-top: 10px; }
  .admin-sidebar > .back-link { display: inline-flex; margin-top: 14px; }
  .edition-list, .email-editor-grid { grid-template-columns: 1fr; }
  .edition-admin-card { grid-template-columns: 1fr auto; }
  .edition-admin-card dl { grid-column: 1 / -1; order: 3; }
}

@media (max-width: 620px) {
  .esn-ribbon { height: 3px; }
  .site-header { min-height: 62px; padding: 8px 12px; }
  .brand img { width: 74px; }
  .service-name { display: none; }
  .menu-button { min-height: 40px; padding: 8px 10px; }
  .account-control { margin-left: auto; padding-left: 0; }
  .account-photo, .account-avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .account-control .text-button { padding: 7px 2px; font-size: 12px; }
  .environment-badge { top: auto; right: 8px; bottom: 8px; max-width: calc(100vw - 16px); }
  .workspace-shell { width: min(100% - 24px, 1180px); padding: 30px 0 54px; }
  .workspace-heading { margin-bottom: 22px; }
  .workspace-heading h1 { font-size: 34px; }
  .dashboard-panel { padding: 17px; border-radius: 11px; }
  .event-list-card { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; }
  .event-date { width: 54px; height: 62px; }
  .event-list-copy h3 { font-size: 19px; }
  .event-labels { align-items: flex-start; flex-direction: column; gap: 5px; }
  .edition-list { grid-template-columns: 1fr; }
  .edition-card { align-items: stretch; flex-direction: column; gap: 16px; }
  .edition-card .button { width: 100%; }
  .event-page-hero { align-items: flex-start; flex-direction: column; gap: 18px; }
  .event-page-action { align-items: flex-start; width: 100%; }
  .event-page-action .button { width: 100%; }
  .registration-form { padding: 17px; }
  .progress { gap: 4px; margin: 0 0 24px; }
  .progress small { font-size: 9px; }
  .progress li::after { left: calc(50% + 17px); right: calc(-50% + 17px); }
  .ticket-card { padding: 14px; }
  .ticket-card b { grid-column: 2; font-size: 17px; }
  .admin-main { padding: 22px 12px 54px; }
  .admin-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .admin-heading > .button, .admin-heading .email-actions { width: 100%; }
  .email-actions { align-items: stretch; flex-direction: column; }
  .email-actions select, .email-actions .button { width: 100%; }
  .builder-item, .ticket-admin-item { grid-template-columns: auto minmax(0, 1fr); }
  .builder-controls { grid-column: 2; justify-content: flex-start; }
  .edition-admin-card { grid-template-columns: 1fr; gap: 16px; }
  .edition-admin-card dl { grid-column: 1; flex-wrap: wrap; }
  .edition-admin-card .button { width: 100%; }
  .editor-form { padding: 18px; }
  .email-message-preview { width: calc(100% - 20px); margin: 10px; padding: 22px; }
  .table-wrap { margin-inline: -12px; padding-inline: 12px; }
}
