:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-muted: #f1ede4;
  --ink: #1c0a1a;
  --muted: #5d5358;
  --line: #e6e0d5;
  --line-strong: #cbc3b6;
  --plum: #35102f;
  --plum-deep: #2a0e27;
  --plum-line: #4a2545;
  --on-dark: #ffffff;
  --on-dark-muted: #d9c9d5;
  --lime: #dfff45;
  --link: #3d3ee0;
  --live: #c2410c;
  --success: #1e6b45;
  --danger: #b42318;
  --free-bg: #ddf1e3; --free-ink: #14532d;
  --paid-bg: #fbe7cf; --paid-ink: #7a3e00;
  --invite-bg: #e6e3fa; --invite-ink: #2f2ba8;
  --tag-bg: #ece8df; --tag-ink: #4a4340;
  --radius: 12px;
  --radius-small: 8px;
  --font: "Space Grotesk", system-ui, sans-serif;
  /* Legacy names still referenced by a few templates. */
  --acid: var(--lime);
  --violet: var(--surface-muted);
  --aqua: var(--surface-muted);
  --canvas: var(--bg);
  --paper: var(--surface);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
a { color: var(--link); }
a:hover { color: var(--ink); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { letter-spacing: -.02em; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 1000; padding: 10px 14px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* Header */
.site-header { position: relative; z-index: 60; min-height: 72px; display: flex; align-items: center; gap: 32px; padding: 0 clamp(16px, 5vw, 72px); color: var(--on-dark); background: var(--plum-deep); border-bottom: 1px solid var(--plum-line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; font-size: 22px; font-weight: 600; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: inherit; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--on-dark); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--lime); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions form { margin: 0; }
.text-link { color: var(--on-dark); font-size: 15px; font-weight: 500; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.text-link:hover { color: var(--lime); }
.mobile-nav-toggle { display: none; min-height: 44px; padding: 0 16px; color: var(--on-dark); background: transparent; border: 1px solid var(--plum-line); border-radius: var(--radius-small); cursor: pointer; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px clamp(16px, 5vw, 72px); color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
.site-footer .brand { color: var(--ink); font-size: 18px; }
.site-footer .brand__mark { width: 26px; height: 26px; }
.site-footer p { margin: 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

.live-banner { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px clamp(16px, 5vw, 72px); color: var(--on-dark); background: var(--ink); }
.live-banner[hidden] { display: none; }
.live-banner .live-dot { color: #ff9b8a; }
.live-banner__title { min-width: 0; color: var(--on-dark); font-weight: 600; text-decoration: none; }
.live-banner__title:hover { color: var(--lime); }
.live-banner__note { color: var(--on-dark-muted); font-size: 14px; }
.live-banner .button { margin-left: auto; }
.live-banner__close { width: 36px; height: 36px; padding: 0; color: var(--on-dark); background: transparent; border: 1px solid var(--plum-line); border-radius: var(--radius-small); font-size: 20px; line-height: 1; cursor: pointer; }
.live-banner__note + .live-banner__close { margin-left: auto; }
.message-stack { position: fixed; z-index: 100; top: 84px; right: 16px; width: min(400px, calc(100% - 32px)); }
.message { margin-bottom: 8px; padding: 14px 16px; color: #fff; background: var(--ink); border-radius: var(--radius-small); box-shadow: 0 10px 30px rgba(28,10,26,.18); font-size: 15px; }
.message--success { background: var(--success); }
.message--error { background: var(--danger); }

/* Type */
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.page-title { max-width: 980px; margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -.04em; }
.section-title { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.lede { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.muted { color: var(--muted); }
.tiny { font-size: 14px; }
.uppercase { letter-spacing: .08em; text-transform: uppercase; }
.prose { max-width: 760px; color: #3f3538; font-size: 17px; line-height: 1.7; }
.prose p:first-child { margin-top: 0; }

/* Buttons and badges */
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; color: #fff; background: var(--plum); border: 1px solid var(--plum); border-radius: var(--radius-small); font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { color: #fff; background: var(--plum-deep); }
.button--acid, .button--ink { color: #fff; background: var(--plum); border-color: var(--plum); }
.button--lime { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.button--lime:hover { color: var(--ink); background: #d2f22f; }
.button--quiet { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.button--quiet:hover { color: var(--ink); background: var(--surface-muted); }
.button--on-dark { color: var(--on-dark); background: transparent; border-color: var(--plum-line); }
.button--on-dark:hover { color: var(--on-dark); background: var(--plum-line); }
.button--small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.button--block { width: 100%; }
.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; color: var(--tag-ink); background: var(--tag-bg); border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.badge--free { color: var(--free-ink); background: var(--free-bg); }
.badge--paid { color: var(--paid-ink); background: var(--paid-bg); }
.badge--invite { color: var(--invite-ink); background: var(--invite-bg); }
.badge--outline { color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
a.badge:hover { color: var(--ink); background: var(--surface-muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.chip--active, .chip:hover { color: #fff; background: var(--plum); border-color: var(--plum); }
.status { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; color: var(--free-ink); background: var(--free-bg); border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.status--warning { color: var(--paid-ink); background: var(--paid-bg); }
.status--muted { color: var(--muted); background: var(--tag-bg); }
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--live); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.live-dot::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 50%; }

/* Home */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: end; padding: clamp(40px, 7vw, 72px) clamp(16px, 5vw, 72px) clamp(48px, 7vw, 80px); color: var(--on-dark); background: var(--plum-deep); }
.home-hero h1 { margin: 0 0 20px; font-size: clamp(40px, 6vw, 76px); line-height: .98; font-weight: 600; letter-spacing: -.045em; }
.home-hero > div > p { max-width: 560px; margin: 0; color: var(--on-dark-muted); font-size: 19px; line-height: 1.55; }
.up-next { display: grid; gap: 14px; padding: 28px; color: var(--ink); background: var(--surface); border-radius: 14px; }
.up-next__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.up-next__body { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: center; }
.up-next__title { color: var(--ink); font-size: 26px; line-height: 1.12; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.date-tile { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; background: var(--bg); border-radius: 10px; }
.date-tile small { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.date-tile strong { font-size: 36px; font-weight: 600; line-height: 1.05; }
.date-tile span { color: var(--muted); font-size: 13px; }

.with-filters { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 56px clamp(16px, 5vw, 72px) 72px; }
.filters { display: flex; flex-direction: column; gap: 28px; }
.filters__title { margin: 0 0 8px; padding: 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.filters__links { display: flex; flex-direction: column; gap: 2px; }
.filters__links a { padding: 9px 12px; color: var(--ink); border-radius: var(--radius-small); font-size: 15px; font-weight: 500; text-decoration: none; }
.filters__links a:hover { background: var(--surface-muted); }
.filters__links a[aria-current="page"] { color: #fff; background: var(--plum); }
.filters fieldset { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0 12px; border: 0; }
.filters legend { padding: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.filters label { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.filters input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--plum); }
.filters .button { margin: 0 12px; }

.programme { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.programme-month h2 { margin: 0 0 12px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.programme-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: 10px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.programme-row__when { display: flex; flex-direction: column; gap: 2px; }
.programme-row__when strong { font-size: 17px; font-weight: 600; }
.programme-row__when span { color: var(--muted); font-size: 15px; }
.programme-row__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.programme-row__title { color: var(--ink); font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; text-decoration: none; }
.programme-row__title:hover { color: var(--link); }
.programme-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }

.section { padding: 0 clamp(16px, 5vw, 72px) 72px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.host-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.host-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.host-card:hover { color: var(--ink); border-color: var(--line-strong); }
.host-card strong { font-size: 21px; font-weight: 600; }
.host-card span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.avatar { width: 72px; height: 72px; flex: none; display: grid; place-items: center; overflow: hidden; color: var(--muted); background: var(--tag-bg); border-radius: 12px; font-size: 26px; font-weight: 600; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--small { width: 44px; height: 44px; border-radius: 10px; font-size: 18px; }
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; margin: 0 clamp(16px, 5vw, 72px) 72px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px); color: var(--on-dark); background: var(--plum); border-radius: 16px; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; font-weight: 600; }
.cta-band p { margin: 0; color: var(--on-dark-muted); font-size: 17px; }

/* Generic page hero */
.page-hero { padding: clamp(40px, 6vw, 64px) clamp(16px, 5vw, 72px) clamp(32px, 5vw, 48px); background: var(--bg); border-bottom: 1px solid var(--line); }
.page-hero--dark { color: var(--on-dark); background: var(--plum-deep); border-bottom: 0; }
.page-hero--dark .lede, .page-hero--dark .eyebrow { color: var(--on-dark-muted); }
.page-hero__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.breadcrumb { margin-bottom: 18px; color: var(--on-dark-muted); font-size: 15px; }
.breadcrumb a { color: inherit; }
.content-wrap { padding: 48px clamp(16px, 5vw, 72px) 80px; }
.narrow-section { max-width: 1040px; min-height: 60vh; margin: 0 auto; padding: 64px clamp(16px, 5vw, 32px) 80px; }
.narrow-section > h1, .confirmation-card h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em; }
.empty-state { padding: 40px 24px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }

/* Catalogue list (hosts, insights, series) */
.filter-bar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-bar .field { flex: 1 1 200px; margin: 0; }
.catalogue { display: flex; flex-direction: column; gap: 10px; }
.catalogue-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) 200px; gap: 24px; align-items: center; padding: 22px 24px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.catalogue-item:hover { color: var(--ink); border-color: var(--line-strong); }
.catalogue-item__date { font-size: 22px; font-weight: 600; }
.catalogue-item__date small { display: block; color: var(--muted); font-size: 14px; font-weight: 500; }
.catalogue-item h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.2; font-weight: 600; }
.catalogue-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.catalogue-item__meta { color: var(--muted); font-size: 14px; line-height: 1.6; }
.programme-arrow { display: none; }

/* Event page */
.event-hero { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: clamp(32px, 5vw, 72px); align-items: start; padding: clamp(32px, 5vw, 56px) clamp(16px, 5vw, 72px) clamp(40px, 6vw, 72px); color: var(--on-dark); background: var(--plum-deep); }
.event-hero h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 60px); line-height: 1.03; font-weight: 600; letter-spacing: -.04em; }
.event-hero .lede { margin: 0; color: var(--on-dark-muted); font-size: 19px; }
.event-hero__cover { width: 100%; max-height: 360px; margin-bottom: 28px; object-fit: cover; border-radius: 14px; }
.people { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.person { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.person:hover { color: var(--lime); }
.person strong { display: block; font-size: 16px; font-weight: 600; }
.person small { display: block; color: var(--on-dark-muted); font-size: 14px; }
.page-hero--dark .avatar, .event-hero .avatar { color: var(--on-dark); background: var(--plum-line); }
.register-card { display: flex; flex-direction: column; gap: 18px; padding: 28px; color: var(--ink); background: var(--surface); border-radius: 14px; }
.register-card hr { width: 100%; margin: 0; border: 0; border-top: 1px solid var(--line); }
.register-card form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.when { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; }
.when strong { display: block; font-size: 18px; font-weight: 600; }
.when span { display: block; color: var(--muted); font-size: 14px; }
.price { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.session-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-small); font-size: 15px; cursor: pointer; }
.session-option:has(input:checked) { background: var(--bg); border-color: var(--plum); }
.session-option input { margin: 0; accent-color: var(--plum); }
.preference-list { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; }
.check-row { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 15px; line-height: 1.4; }
.check-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--plum); }
.card-links { display: flex; justify-content: center; gap: 20px; font-size: 14px; font-weight: 600; }
.card-links form { margin: 0; }
.link-button { padding: 0; color: var(--link); background: none; border: 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.link-button:hover { color: var(--ink); }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.event-main { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.event-main section > h2, .event-side h2 { margin: 0 0 14px; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.event-side { display: flex; flex-direction: column; gap: 24px; }
.promise { margin: 0; font-size: clamp(22px, 2.5vw, 28px); line-height: 1.3; font-weight: 500; }
.speaker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.speaker-tile { display: flex; gap: 14px; align-items: center; padding: 18px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.speaker-tile strong { display: block; font-size: 17px; }
.sidebar-panel { position: sticky; top: 24px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.question-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.question-list li { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.question-list form { margin: 0; }
.question-list p { margin: 6px 0 0; color: var(--muted); }

/* Forms */
.panel-form { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.panel-form p { margin: 0; }
.field { margin-bottom: 16px; }
.field label, form > p label, .panel-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea, form > p input, form > p select, form > p textarea, .panel-form textarea { width: 100%; min-height: 46px; padding: 11px 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-small); }
form > p input[type="checkbox"], form > p input[type="radio"], .field input[type="checkbox"] { width: auto; min-height: 0; accent-color: var(--plum); }
.field textarea, form > p textarea, .panel-form textarea { min-height: 110px; resize: vertical; }
.panel-form textarea { height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus, form > p input:focus, form > p select:focus, form > p textarea:focus, .panel-form textarea:focus { border-color: var(--plum); outline: 2px solid var(--plum); outline-offset: -1px; }
.form-section { margin-bottom: 16px; }
.form-section .field:last-child { margin-bottom: 0; }
.field > div > div label, .field ul label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 500; }
.field ul { margin: 0; padding: 0; list-style: none; }
.helptext { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.errorlist { margin: 6px 0; padding: 0; color: var(--danger); font-size: 14px; list-style: none; }

/* Auth */
.auth-shell { min-height: calc(100vh - 170px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); }
.auth-art { display: flex; align-items: flex-end; padding: clamp(32px, 5vw, 72px); color: var(--on-dark); background: var(--plum-deep); }
.auth-art h1 { max-width: 640px; margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -.045em; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 56px); background: var(--surface); }
.auth-panel h1 { margin: 0 0 8px; font-size: 34px; font-weight: 600; letter-spacing: -.03em; }
.auth-panel form { margin: 16px 0 8px; }
.auth-panel form > p { margin: 0 0 16px; }

/* Workspace (app + platform) */
.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.app-sidebar { padding: 28px 16px; background: var(--surface); border-right: 1px solid var(--line); }
.app-sidebar h2 { margin: 0 0 16px; padding: 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.app-sidebar nav { display: grid; gap: 2px; }
.app-sidebar a { padding: 10px 12px; color: var(--ink); border-radius: var(--radius-small); font-size: 15px; font-weight: 500; text-decoration: none; }
.app-sidebar a:hover { background: var(--surface-muted); }
.app-sidebar a.active, .app-sidebar a[aria-current="page"] { color: #fff; background: var(--plum); }
.app-content { min-width: 0; padding: 40px clamp(16px, 4vw, 48px) 72px; }
.dashboard-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.dashboard-head h1 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.dashboard-head .eyebrow { margin-bottom: 8px; }
.metric-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 32px; }
.metric { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.metric span { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.metric strong { display: block; margin-top: 10px; font-size: 30px; font-weight: 600; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.panel--acid, .panel--violet { background: var(--surface); border-color: var(--line); }
.panel h2 { margin: 0 0 16px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list a { color: var(--ink); text-decoration: none; }
.plain-list a:hover { color: var(--link); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { padding: 10px 12px; color: var(--muted); border-bottom: 1px solid var(--line-strong); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table a { color: var(--ink); font-weight: 600; }
.recommendation { display: grid; grid-template-columns: 180px minmax(0, 1fr) 100px; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.recommendation:last-child { border-bottom: 0; }
.recommendation h3 { margin: 0; font-size: 14px; font-weight: 600; }
.recommendation pre { max-width: 100%; margin: 0 0 9px; overflow: auto; white-space: pre-wrap; font-family: var(--font); font-size: 15px; }
.confidence { color: var(--muted); font-size: 13px; text-align: right; }
.formset { margin: 22px 0; }
.formset-row { margin-bottom: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.access-gate { padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.access-gate h2 { max-width: 620px; margin-top: 0; font-size: 28px; line-height: 1.15; font-weight: 600; }
.agent-head { padding: 36px; color: var(--on-dark); background: var(--plum-deep); border-radius: 14px; }
.agent-head h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em; }
.agent-head .lede, .agent-head .check-row { color: var(--on-dark-muted); }
.agent-query { max-width: 850px; margin-top: 28px; }
.agent-query textarea { width: 100%; min-height: 110px; padding: 16px; color: var(--ink); background: var(--surface); border: 0; border-radius: var(--radius); font-size: 18px; resize: vertical; }
.agent-results { padding-top: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.offer-card { display: flex; min-height: 260px; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.offer-card h2, .offer-card h3 { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 600; }
.offer-card .button { margin-top: auto; }
.topic-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.topic-actions form { margin: 0; }

/* Persistent platform conversation rail */
.surface-platform main, .surface-platform .site-footer, .surface-platform .site-header { transition: margin-right .28s cubic-bezier(.2,.8,.2,1); }
.platform-agent { position: fixed; z-index: 140; top: 0; right: 0; bottom: 0; font-family: var(--font); }
.platform-agent__launcher { position: absolute; top: 84px; right: 0; width: 56px; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 8px; color: #fff; background: var(--plum); border: 0; border-radius: 14px 0 0 14px; box-shadow: -8px 10px 30px rgba(28,10,26,.2); cursor: pointer; }
.platform-agent__launcher-mark, .platform-agent__avatar { display: grid; place-items: center; background: var(--lime); border-radius: 8px; font-weight: 600; }
.platform-agent__launcher-mark { width: 36px; height: 36px; }
.platform-agent__launcher-mark img, .platform-agent__avatar img { width: 62%; height: 62%; display: block; }
.platform-agent__launcher-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; writing-mode: vertical-rl; }
.platform-agent__panel { position: relative; width: 420px; height: 100vh; display: none; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; background: var(--bg); border-left: 1px solid var(--line); }
.platform-agent--open .platform-agent__launcher { display: none; }
.platform-agent--open .platform-agent__panel { display: grid; }
.platform-agent__head { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.platform-agent__identity { display: flex; align-items: center; gap: 12px; }
.platform-agent__avatar { width: 42px; height: 42px; }
.platform-agent__identity strong, .platform-agent__identity small { display: block; }
.platform-agent__identity strong { font-size: 17px; font-weight: 600; }
.platform-agent__identity small { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--muted); font-size: 12px; }
.platform-agent__identity small i { width: 7px; height: 7px; background: #2f9e67; border-radius: 50%; }
.platform-agent__controls { display: flex; gap: 6px; }
.platform-agent__controls button { width: 38px; height: 38px; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-small); font-size: 19px; cursor: pointer; }
.platform-agent__controls button:hover { background: var(--surface-muted); }
.platform-agent__messages { min-height: 0; overflow-y: auto; padding: 20px 20px 32px; overscroll-behavior: contain; scrollbar-width: thin; }
.platform-agent__message { margin-bottom: 18px; }
.platform-agent__message-role { display: block; margin: 0 4px 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.platform-agent__message-copy { padding: 14px 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.platform-agent__message--user { margin-left: 48px; }
.platform-agent__message--user .platform-agent__message-role { text-align: right; }
.platform-agent__message--user .platform-agent__message-copy { color: #fff; background: var(--plum); border-color: var(--plum); }
.platform-agent__message--assistant { margin-right: 24px; }
.platform-agent__message--thinking .platform-agent__message-copy:empty::after { content: "···"; color: var(--muted); font-size: 18px; letter-spacing: .12em; animation: agent-pulse 1s infinite alternate; }
.platform-agent__message--error .platform-agent__message-copy { color: var(--danger); background: #fff0ee; }
.platform-agent__message-file { width: max-content; max-width: 100%; display: block; overflow: hidden; margin: 0 0 6px auto; padding: 6px 10px; color: var(--ink); background: var(--tag-bg); border-radius: 6px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.platform-agent__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.platform-agent__actions a { padding: 8px 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; }
.platform-agent__actions a:hover { color: #fff; background: var(--plum); border-color: var(--plum); }
.platform-agent__composer { display: grid; grid-template-columns: 44px minmax(0,1fr) 46px; align-items: end; gap: 8px; padding: 14px 16px 16px; background: var(--surface); border-top: 1px solid var(--line); }
.platform-agent__file { grid-column: 1 / -1; min-height: 36px; display: grid; grid-template-columns: auto minmax(0,1fr) 26px; align-items: center; gap: 8px; padding: 5px 7px 5px 10px; background: var(--tag-bg); border-radius: var(--radius-small); font-size: 13px; }
.platform-agent__file[hidden] { display: none; }
.platform-agent__file strong { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.platform-agent__file button { width: 26px; height: 26px; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer; }
.platform-agent__attach { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-small); font-size: 20px; cursor: pointer; }
.platform-agent__attach:hover { background: var(--surface-muted); }
.platform-agent__composer textarea { width: 100%; min-height: 44px; max-height: 150px; padding: 11px 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-small); resize: none; line-height: 1.45; }
.platform-agent__composer textarea:focus { border-color: var(--plum); outline: 2px solid var(--plum); outline-offset: -1px; }
.platform-agent__composer > button { width: 46px; height: 44px; padding: 0; color: #fff; background: var(--plum); border: 0; border-radius: var(--radius-small); font-size: 20px; cursor: pointer; }
.platform-agent__composer > button:disabled { opacity: .4; cursor: wait; }
.platform-agent--dragging .platform-agent__panel::after { content: "Drop file to attach"; position: absolute; z-index: 5; inset: 12px; display: grid; place-items: center; color: var(--ink); background: rgba(247,245,239,.96); border: 2px dashed var(--plum); border-radius: 14px; font-size: 16px; font-weight: 600; pointer-events: none; }
@keyframes agent-pulse { from { opacity: .25; } to { opacity: 1; } }

@media (min-width: 1201px) {
  .surface-platform.agent-panel-open main, .surface-platform.agent-panel-open .site-footer, .surface-platform.agent-panel-open .site-header { margin-right: 420px; }
}

/* The workspace sidebar is the navigation on wide screens. */
@media (min-width: 921px) {
  body:has(.app-shell) .site-nav--workspace { display: none; }
  body:has(.app-shell) .header-actions { margin-left: auto; }
}

@media (max-width: 1100px) {
  .event-hero, .event-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .with-filters { grid-template-columns: 210px minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 920px) {
  .site-header { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .mobile-nav-toggle { display: block; margin-left: auto; }
  .site-nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; padding: 8px 0 4px; }
  .site-nav a { padding: 8px 0; }
  .site-nav--open { display: flex; }
  .header-actions { order: 4; width: 100%; display: none; padding-bottom: 8px; }
  .site-nav--open + .header-actions { display: flex; }
  .home-hero, .event-hero, .event-layout { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .with-filters { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  .filters { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .filters > div:first-child { width: 100%; }
  .filters__links { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .filters__links a { background: var(--surface); border: 1px solid var(--line); }
  .sidebar-panel { position: static; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-art { min-height: 200px; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .app-sidebar { display: none; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .programme-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .programme-row__when { flex-direction: row; gap: 8px; }
  .programme-row .button { justify-self: start; }
  .catalogue-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .up-next { padding: 20px; }
  .up-next__body { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .up-next__title { font-size: 21px; }
  .register-card, .sidebar-panel { padding: 20px; }
  .recommendation { grid-template-columns: 1fr; gap: 8px; }
  .confidence { text-align: left; }
  .question-list li { flex-direction: column; }
  .platform-agent { inset: 0 0 0 auto; }
  .platform-agent__panel { width: 100vw; border-left: 0; }
}
