/* Flag emoji have no glyphs on Windows (Chrome falls back to bare letter
   pairs like "GB"), so country flags come from a bundled font that covers ONLY
   the flag codepoints — every other character stays in Manrope.
   Font: Twemoji Country Flags (country-flag-emoji-polyfill), Twemoji art
   CC-BY 4.0. */
@font-face {
  font-family: "Twemoji Country Flags";
  src: url("assets/fonts/TwemojiCountryFlags.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0020-E007F;
}

:root {
  --ink: #250c01;
  --muted: #6f5b4d;
  --brand: #ff961d;
  --brand-dark: #ec6424;
  --gold: #fbb353;
  --surface: #ffffff;
  --line: #f3e3d4;
  --line-strong: #f0c9a6;
  --green: #1f8f6a;
  --green-ink: #166a4f;
  --warm-ink: #a04a10;
  --brand-ink: #a04a10;
  --cta-from: #ec6424;
  --cta-to: #fbb353;
  --cta-ink: #2b0f01;
  --card-shadow: 0 8px 24px rgba(236, 100, 36, .07);
  font-family: "Twemoji Country Flags", Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: #fff6ee;
}
* { box-sizing: border-box; }
/* The UA rule behind the `hidden` attribute is weaker than any `display` we set
   on labels or notices, so conditional fields would stay on screen without this. */
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 6%, rgba(255, 150, 29, .14), transparent 30rem),
    linear-gradient(180deg, #fff6ee 0, #ffe9d6 100%);
}
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

/* ---------- header ---------- */
.public-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 32px; background: rgba(255, 248, 241, .8); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(233, 185, 142, .55); position: relative; z-index: 5; }
.atlas-logo { width: 153px; height: 40px; object-fit: contain; }
.header-actions { display: flex; gap: 12px; align-items: center; }

/* ---------- buttons ---------- */
.button { min-height: 48px; border-radius: 12px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background-repeat: no-repeat; text-decoration: none; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.button-primary { background: linear-gradient(92deg, var(--cta-from), var(--cta-to)); color: var(--cta-ink); box-shadow: 0 6px 16px rgba(236, 100, 36, .32); }
.button-secondary { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }
.header-actions .button { min-width: 0; }
.locale-switcher { appearance: none; -webkit-appearance: none; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ec6424' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; color: var(--ink); padding: 0 36px 0 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.button:disabled, .icon-action:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; filter: grayscale(.35); }
.button:disabled:hover, .icon-action:disabled:hover { transform: none; }
.button.compact { min-height: 40px; background: white; border: 1px solid var(--line-strong); color: var(--ink); }
.icon-action { width: 48px; min-height: 48px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--brand-dark); cursor: pointer; text-decoration: none; flex: 0 0 auto; }
.icon-action:hover { border-color: var(--brand-dark); }

/* ---------- hero banner ---------- */
.hero-banner {
  --hero-bg: #1c0f08;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 130% at 12% 18%, #34190c 0, rgba(52, 25, 12, 0) 62%),
    linear-gradient(102deg, #1c0f08 0, #150a05 58%, #100704 100%);
  color: #fff;
}
.hero-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(92deg, var(--cta-from), var(--cta-to));
}
.hero-banner-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 460px;
  padding: 64px 0 68px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; max-width: 540px; }
.hero-banner .hero-title { color: #fff; text-wrap: balance; }
.hero-banner .hero-accent { background: linear-gradient(92deg, #ff8a3d, var(--cta-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-banner .beta-badge { background: rgba(251, 179, 83, .16); color: #ffc887; }
.hero-tagline { margin: 0; font-size: clamp(16px, 1.7vw, 20px); line-height: 1.45; font-weight: 700; color: #fbb353; }
.hero-subtitle { margin: 0; max-width: 44ch; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; font-weight: 500; color: rgba(255, 246, 238, .74); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero-actions .button-primary { box-shadow: 0 10px 26px rgba(236, 100, 36, .38); }
.button-ghost { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 226, 199, .38); color: #fff6ee; }
.button-ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(251, 179, 83, .75); }
/* The artwork fades out with a mask rather than a coloured overlay: the banner
   background is a gradient, so any opaque overlay colour leaves a visible seam
   at the edge of the image. */
.hero-art {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 38%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 22%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 22%, #000 52%);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; display: block; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 15, 8, .55) 0, rgba(28, 15, 8, .18) 40%, rgba(28, 15, 8, 0) 70%);
}
/* The 3D render carries its own dark backdrop, so it takes more room and needs no
   extra darkening. */
.hero-art--render {
  inset: 0 0 0 24%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .4) 18%, #000 44%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .4) 18%, #000 44%);
}
.hero-art--render img { object-position: 62% 52%; }
.hero-art--render::after { background: none; }

/* ---------- hero ---------- */
.page-shell { width: min(1120px, calc(100% - 32px)); margin: 40px auto 56px; }
.intro-grid { display: grid; gap: 32px; }
.intro-column { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
h1 { margin: 0; letter-spacing: -.02em; }
.hero-title { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.35; font-weight: 800; letter-spacing: -.04em; }
.hero-accent { background: linear-gradient(92deg, #f2570f, #d0700f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-title > p:not(.beta-note) { margin: 10px 0 0; color: var(--muted); font-weight: 500; font-size: clamp(15px, 1.5vw, 18px); }
.beta-badge { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 5px 11px; border-radius: 999px; background: #fff1da; color: var(--warm-ink); font-size: clamp(12px, 1.1vw, 15px); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.intro-column > .beta-note { align-self: start; margin: 0; }
.beta-note { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 241, 218, .75); color: var(--warm-ink); font-size: 13px; font-weight: 600; }
.beta-note img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.speaker-tba { color: var(--muted); font-weight: 600; }
.speaker-avatar-tba { background: #fff1da; }
.speaker-avatar-tba img { width: 30px; height: 30px; object-fit: contain; }

.motivation-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 16px; }
.motivation-card { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--card-shadow); }
.motivation-head { display: flex; align-items: center; gap: 14px; }
.icon-tile { width: 56px; height: 56px; border-radius: 14px; background: #fdeede; overflow: hidden; flex: 0 0 auto; }
.icon-tile img { width: 100%; height: 100%; object-fit: contain; }
.motivation-copy { display: grid; gap: 2px; min-width: 0; }
.motivation-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.motivation-copy strong { font-size: 22px; line-height: 1.36; display: flex; align-items: center; gap: 6px; letter-spacing: -.02em; }
.motivation-copy strong img { width: 24px; height: 24px; }
.status-actions { margin-top: auto; display: grid; gap: 10px; }
.access-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; border-radius: 999px; padding: 6px 12px; background: #eef4ea; color: var(--green-ink); font-size: 12px; font-weight: 700; }
.access-badge img { width: 15px; height: 15px; }
.status-card > .button, .status-actions .button, .modal-submit { white-space: normal; text-align: center; line-height: 1.3; }
.bonus-card p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.6; max-width: 68ch; }
.bonus-card ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 24px; list-style: none; margin: auto 0 0; padding: 0; font-size: 13px; font-weight: 600; }
.bonus-card li { display: flex; align-items: baseline; gap: 8px; }
.bonus-card li::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ---------- controls ---------- */
.controls { margin-top: 28px; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--card-shadow); }
.filters { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.modal input, .modal select, .modal textarea, .admin-panel input { width: 100%; min-height: 48px; border: 1px solid #a98a72; border-radius: 10px; background: #fffdfb; padding: 10px 16px; font-weight: 600; }
.filters select { width: 100%; min-height: 40px; font-size: 15px; font-weight: 600; appearance: none; -webkit-appearance: none; border: 1px solid #a98a72; border-radius: 10px; cursor: pointer; background-color: #fbf3ec; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a04a10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding: 0 32px 0 14px; }
.multi-filter { position: relative; min-width: 0; z-index: 3; }
.multi-filter.open { z-index: 8; }
.multi-filter-control { width: 100%; min-height: 40px; border: 1px solid #a98a72; border-radius: 10px; background: #fbf3ec; padding: 4px 4px 4px 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.multi-filter-trigger { position: relative; width: 32px; min-height: 32px; margin-left: auto; display: grid; place-items: center; overflow: hidden; border: 0; border-radius: 8px; background: transparent; flex: 0 0 auto; cursor: pointer; color: var(--brand-ink); }
.multi-filter-trigger::after { content: ''; position: absolute; inset: -6px; }
.multi-filter-summary { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; row-gap: 4px; font-weight: 600; font-size: 15px; }
.filter-placeholder { white-space: nowrap; }
.filter-chip { min-width: max-content; height: 26px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; padding: 0 8px; font-size: 12px; }
.filter-chip b { font-size: 15px; font-weight: 500; }
.multi-filter-panel { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: 272px; overflow: auto; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 12px 30px rgba(37, 12, 1, .13); }
.multi-filter.open .multi-filter-panel { display: grid; }
.multi-filter-panel label { min-height: 40px; display: flex; align-items: center; gap: 10px; padding: 6px 6px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.multi-filter-panel label:hover { background: #fff6ee; }
.multi-filter-panel input { appearance: none; width: 18px; height: 18px; margin: 0; border: 1px solid #cfb6a4; border-radius: 5px; display: grid; place-items: center; }
.multi-filter-panel input:checked { background: var(--brand-dark); border-color: var(--brand-dark); }
.multi-filter-panel input:checked::after { content: '✓'; color: white; font-size: 12px; line-height: 1; }
.view-tabs { display: flex; gap: 4px; background: #fbf3ec; border-radius: 12px; padding: 4px; }
.view-tab { border: 0; background-origin: border-box; background-repeat: no-repeat; min-height: 40px; font-size: 15px; background: transparent; border-radius: 9px; padding: 8px 18px; color: var(--muted); font-weight: 700; cursor: pointer; }
.view-tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(37, 12, 1, .14); }
.mobile-filter-toggle { display: none; }
.webinar-view { margin-top: 20px; scroll-margin-top: 20px; }

/* ---------- chips ---------- */
.chip { min-height: 28px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 0 11px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.chip-open { background: #e7f3ed; color: var(--green-ink); }
.chip-open i { background: var(--green); }
.chip-live { background: #ffe9e0; color: #b23a16; }
.chip-live i { background: #d9481c; animation: chip-pulse 1.4s ease-in-out infinite; }
.chip-muted { background: #f2ece6; color: var(--muted); }
.chip-next { background: #fff1da; color: var(--warm-ink); }
@keyframes chip-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.lang-chip { min-height: 28px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 0 11px 0 7px; background: #fbf3ec; font-size: 12px; font-weight: 700; }
.lang-chip .lang-flag { font-size: 18px; line-height: 1; }

/* ---------- webinar cards ---------- */
.webinar-list { display: grid; gap: 16px; }
.webinar-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 24%); gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; box-shadow: var(--card-shadow); }
.webinar-card-next { border-color: var(--green); box-shadow: 0 10px 28px rgba(31, 143, 106, .1); }
.card-main { min-width: 0; padding-right: 24px; border-right: 1px solid var(--line); display: grid; gap: 16px; align-content: start; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card-title { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; font-weight: 800; letter-spacing: -.02em; }
.card-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.card-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.meta-divider { width: 1px; height: 34px; background: var(--line); }
.meta-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; background: #fdeede; color: var(--brand-dark); }
.meta-people { display: flex; align-items: center; gap: 10px; }
.meta-people span { display: grid; }
.meta-people strong { font-size: 15px; line-height: 1.35; }
.meta-people small { color: var(--muted); font-size: 12px; }
.card-speaker { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.speaker-avatar { width: 80px; height: 80px; border-radius: 12px; background: #fdeede; overflow: hidden; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.speaker-avatar-image { width: 100%; height: 100%; object-fit: cover; }
.speaker-avatar-fallback { width: 100%; height: 100%; display: grid; place-items: center; }
.speaker-copy { display: grid; gap: 2px; min-width: 0; }
.speaker-copy > small { color: var(--muted); font-size: 13px; }
.speaker-copy > strong { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.speaker-copy p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.speaker-rating { align-self: center; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 14px; padding: 8px 16px 8px 10px; background: #fffaf5; }
.speaker-rating img { width: 34px; height: 34px; object-fit: contain; }
.speaker-rating span { display: grid; }
.speaker-rating strong { font-size: 16px; line-height: 1.35; }
.speaker-rating small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.event-details { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; }
.event-details > span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.event-details > span > span { display: grid; min-width: 0; }
.event-details strong { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.event-details .detail-primary strong { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.event-details .detail-primary small { color: var(--brand-ink); font-weight: 600; }
/* The visitor's own clock rides along with the UTC time, one size down so the
   announced time stays the number the eye lands on. */
.event-details .detail-primary .local-clock { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.event-details small { color: var(--muted); font-size: 12px; }

.card-actions { align-self: start; display: flex; flex-direction: column; gap: 10px; }
.card-actions .button { width: 100%; white-space: normal; line-height: 1.25; }
.card-actions .button svg { flex: 0 0 auto; }
.action-status { display: flex; justify-content: center; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; background: #fffaf5; }
.viewer-time { margin-top: 4px; display: grid; gap: 2px; text-align: center; }
.viewer-time small { color: var(--muted); font-size: 12px; }
.viewer-time strong { font-size: 14px; }
.countdown { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; text-align: center; }
.countdown > span { color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.4; }
.countdown-units { display: flex; align-items: flex-start; justify-content: center; gap: 4px; }
.countdown-units div { display: grid; gap: 4px; justify-items: center; }
.countdown-units strong { min-width: 46px; min-height: 46px; display: grid; place-items: center; font-variant-numeric: tabular-nums; border: 1px solid var(--line-strong); border-radius: 14px; background: #fffaf5; font-size: 20px; }
.countdown-units small { color: var(--muted); font-size: 11px; }
.countdown-units i { align-self: start; line-height: 46px; color: var(--muted); font-style: normal; }

/* ---------- calendar ---------- */
.calendar-shell, .webinar-view > .calendar-wrap { background: var(--surface); }
.calendar-toolbar { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 48px; }
.calendar-toolbar h2 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
.icon-button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; font-size: 22px; color: var(--brand-dark); cursor: pointer; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekdays { margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.calendar-weekdays span { padding: 8px; }
.calendar-grid { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--card-shadow); }
.calendar-day { min-height: 104px; padding: 8px; border: 0; outline: 1px solid #f5e6d7; background: transparent; color: inherit; font: inherit; display: flex; flex-direction: column; gap: 6px; }
.calendar-day.has-events { cursor: pointer; }
.calendar-day.has-events:hover { background: #fff6ee; }
.calendar-day:disabled { opacity: 1; }
.calendar-day.muted { background: #fdf8f3; }
.day-number { font-size: 14px; font-weight: 700; text-align: center; }
.calendar-event { min-height: 30px; display: flex; align-items: center; gap: 5px; border: 0; border-left: 3px solid var(--line-strong); border-radius: 8px; background: #fff7f0; padding: 4px 7px; font-size: 12px; font-weight: 600; }
.calendar-event.is-open { border-left-color: var(--green); background: #eef7f2; }
.calendar-event.is-live { border-left-color: #d9481c; background: #ffe9e0; }
.calendar-event.is-closed { border-left-color: #d9c7b8; background: #f6efe9; color: var(--muted); }

.empty-state { padding: 48px 24px; display: grid; justify-items: center; gap: 14px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--card-shadow); }
.empty-state p { margin: 0; color: var(--muted); font-weight: 600; }

/* ---------- modals ---------- */
.modal { width: min(520px, calc(100% - 32px)); border: 0; border-radius: 20px; padding: 0; box-shadow: 0 22px 80px rgba(37, 12, 1, .22); }
.modal::backdrop { background: rgba(37, 12, 1, .48); }
.modal form { display: grid; gap: 16px; padding: 24px; }
.modal form:has(> .modal-fields) { max-height: calc(100dvh - 76px); grid-template-rows: auto minmax(0, 1fr) auto; }
.modal-fields { display: grid; gap: 16px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 6px 6px 10px; }
.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-title-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.modal-icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: #fdeede; display: grid; place-items: center; }
.modal-icon img { width: 34px; height: 34px; object-fit: contain; }
.modal-heading h2 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.modal-heading .icon-button { width: 44px; height: 44px; flex: 0 0 auto; border: 0; background: transparent; }
.modal-lead { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.form-notice { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid #f4c9ad; border-radius: 14px; background: #fff7f1; color: var(--ink); }

/* The speaker's room link on the confirmation screen: it is the one thing the
   participant must keep, so it gets a frame of its own rather than a bare link. */
.join-box { display: grid; justify-items: center; gap: 10px; margin-top: 18px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff7f1; }
.join-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.join-link { max-width: 100%; color: var(--brand-ink); font-weight: 700; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; text-decoration: none; border-bottom: 1px solid rgba(160, 74, 16, .35); }
.join-link:hover { border-bottom-color: var(--brand-dark); }
.join-saved { color: var(--brand-ink); }
.step-note a { color: var(--brand-ink); font-weight: 600; overflow-wrap: anywhere; }
.form-notice strong { font-size: 15px; line-height: 1.35; }
.form-notice p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.modal label { display: grid; gap: 8px; color: #66554d; font-weight: 600; font-size: 14px; }
.field-help { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
.field-label { display: flex; align-items: center; gap: 6px; }
.hint-trigger { width: 24px; height: 24px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 50%; background: white; color: var(--brand-ink); font-size: 12px; font-weight: 700; line-height: 1; display: inline-grid; place-items: center; cursor: help; padding: 0; }
.hint-trigger { position: relative; }
.hint-trigger::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; }
.hint-trigger:hover, .hint-trigger:focus-visible { border-color: var(--brand-dark); background: #fff6ee; }
.hint-bubble { position: fixed; z-index: 30; background: var(--ink); color: white; padding: 10px 12px; border-radius: 10px; font-size: 12px; line-height: 1.5; font-weight: 500; box-shadow: 0 10px 30px rgba(37, 12, 1, .25); pointer-events: none; }
.modal textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal .checkbox-label { grid-template-columns: 24px 1fr; align-items: start; color: var(--ink); }
.checkbox-label input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; border: 0; border-radius: 0; background: none; accent-color: var(--cta-from); }
.modal-submit { width: 100%; font-size: 16px; margin-top: 4px; box-shadow: 0 6px 16px rgba(236, 100, 36, .32); }
.events-modal { width: min(760px, calc(100% - 32px)); }
.events-dialog-content { display: grid; gap: 24px; padding: 32px; }
.events-dialog-list { display: grid; gap: 16px; max-height: calc(100dvh - 180px); overflow: auto; }
.confirmation-modal { width: min(480px, calc(100% - 32px)); }
.confirmation-content { position: relative; padding: 40px; display: grid; justify-items: center; gap: 24px; text-align: center; }
.confirmation-close { position: absolute; right: 16px; top: 16px; border: 0; background: transparent; }
.confirmation-image { width: 210px; height: 162px; object-fit: contain; }
.confirmation-copy { display: grid; gap: 12px; max-width: 340px; }
.confirmation-copy h2 { margin: 0; font-size: 24px; line-height: 1.34; }
.confirmation-copy p { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.confirmation-accept { min-width: 104px; }
.live-modal { width: min(1120px, calc(100% - 32px)); background: #160b07; color: white; }
.live-dialog-content { display: grid; gap: 18px; padding: 24px; }
.live-dialog-content .modal-heading { align-items: center; }
.live-dialog-content .modal-heading h2 { margin-top: 4px; }
.live-dialog-content .icon-button { color: white; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.live-provider { color: #ffb66f; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.live-player-wrap { width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #050302; }
.live-player-wrap iframe { width: 100%; height: 100%; border: 0; }
.live-fallback { margin: 0; color: #d4c8c2; font-size: 13px; text-align: center; }
.live-fallback a { color: #ffb66f; }
.toast { position: fixed; inset: auto auto 24px 50%; margin: 0; border: 0; width: max-content; max-width: calc(100vw - 32px); overflow: hidden; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 12px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 20; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.admin-body { background: linear-gradient(180deg, #fff6ee 0, #ffedde 100%); }
.admin-header .header-actions .button { width: auto; }
.admin-shell { width: min(1180px,calc(100% - 32px)); margin: 40px auto; }
.admin-title { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.admin-title > p { max-width: 520px; color: var(--muted); }
.admin-hero { font-size: clamp(30px, 4vw, 46px); }
.admin-title-actions { max-width: 520px; display: grid; justify-items: end; gap: 8px; }
.admin-title-actions p { margin: 0; color: var(--muted); }
.text-button { min-height: 40px; border: 0; background: transparent; padding: 0 4px; color: #8c3d14; font-weight: 700; cursor: pointer; }
.auth-modal { width: min(440px,calc(100% - 32px)); }
.form-error { min-height: 20px; margin: -6px 0 0; color: #bd2f2f; font-size: 13px; font-weight: 600; }
.eyebrow { margin: 0 0 4px; color: var(--brand-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.admin-stats article { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--card-shadow); }
.admin-stats img { width: 46px; height: 46px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 5px 10px rgba(214, 92, 27, .16)); }
.admin-stats article div { display: grid; gap: 2px; min-width: 0; }
.admin-stats span { color: var(--muted); font-size: 13px; font-weight: 600; }
.admin-stats strong { font-size: 26px; letter-spacing: -.02em; }
.chip-warn { background: #fff1da; color: var(--warm-ink); }
.translations-block { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fffdfb; }
.translations-block summary { font-weight: 700; font-size: 14px; cursor: pointer; }
.translations-count { color: var(--muted); font-weight: 600; font-size: 13px; }
.translations-block > .field-help { margin: 10px 0 0; }
.translation-fields { display: grid; gap: 12px; margin-top: 12px; }
.translation-locale { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; margin: 0; }
.translation-locale legend { padding: 0 6px; color: var(--brand-ink); font-size: 12px; font-weight: 700; }
.translation-locale label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.translation-locale input, .translation-locale textarea { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 12px; font-weight: 500; }
.translation-locale textarea { resize: vertical; }
.integration-note { color: var(--muted); font-size: 13px; }
.admin-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--card-shadow); }
.admin-operations { display: grid; gap: 20px; margin-top: 20px; }
.admin-panel-heading { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.admin-panel-heading h2 { margin: 0; letter-spacing: -.02em; }
.admin-panel-heading input { width: 280px; }
.table-wrap { overflow-x: auto; }
.row-actions, thead th:last-child { position: sticky; right: 0; background: var(--surface); box-shadow: -8px 0 12px -8px rgba(37, 12, 1, .18); }
thead th:last-child { background: #fbf3ec; }
table { width: 100%; border-collapse: collapse; min-width: 840px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #f8ecdf; font-size: 14px; }
th { background: #fbf3ec; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover td { background: #fffaf5; }
td strong, td small { display: block; }
td small { color: var(--muted); margin-top: 4px; }
.status-toggle { border: 0; border-radius: 999px; padding: 6px 12px; background: #f2ece6; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.status-toggle.published { background: #e7f3ed; color: var(--green-ink); }
.application-status { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 6px 30px 6px 10px; font-weight: 600; }
.row-actions { white-space: nowrap; text-align: right; display: flex; gap: 8px; justify-content: flex-end; }
.row-actions button { min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: #7a4423; font-weight: 700; }
.row-actions button:hover { background: #fff3e9; }
.row-actions .danger { color: #bd2f2f; }
.empty-cell { text-align: left; color: var(--muted); padding: 40px 18px; position: sticky; left: 0; }
.editor-automation-note { display: grid; gap: 6px; padding: 16px; border: 1px solid #eed8c6; border-radius: 12px; background: #fff8f1; }
.editor-automation-note strong { color: var(--ink); font-size: 14px; }
.editor-automation-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.broadcast-panel { margin-top: 20px; }
.integration-panel { margin-bottom: 20px; }
.integration-panel p { margin: 4px 0 0; color: var(--muted); }
.broadcast-panel .admin-panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.section-hint { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 760px; font-weight: 500; }
.workflow-panel { margin-bottom: 20px; }
.workflow-steps { list-style: none; counter-reset: workflow; margin: 0; padding: 18px 20px; display: grid; gap: 12px; }
.workflow-steps li { counter-increment: workflow; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.workflow-steps li::before { content: counter(workflow); width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--cta-from), var(--cta-to)); color: var(--cta-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-top: 2px; box-shadow: 0 4px 10px rgba(236, 100, 36, .25); }
.workflow-steps li div { display: grid; gap: 2px; }
.workflow-steps li.critical div { background: #fff7f1; border: 1px solid #f4c9ad; border-radius: 10px; padding: 10px 12px; }
.workflow-steps li.critical::before { background: var(--brand-dark); }
.workflow-steps strong { font-size: 14px; }
.workflow-steps span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.broadcast-controls { display: grid; }
.broadcast-card { display: grid; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.broadcast-card:last-child { border-bottom: 0; }
.broadcast-card h3 { margin: 8px 0 4px; }
.broadcast-card p { margin: 0; color: var(--muted); font-size: 13px; }
.broadcast-state { display: inline-flex; padding: 6px 11px; border-radius: 999px; background: #f2ece6; color: var(--muted); font-size: 11px; font-weight: 700; }
.broadcast-state.live { background: #ffe9e0; color: #b23a16; }
.broadcast-state.ended { background: #ece9e6; color: var(--muted); }
.broadcast-steps { list-style: none; counter-reset: bstep; margin: 0; padding: 0; display: grid; gap: 10px; }
.broadcast-steps li { counter-increment: bstep; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfb; }
.broadcast-steps li::before { content: counter(bstep); width: 24px; height: 24px; border-radius: 50%; background: #f2ebe5; color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.broadcast-steps li.step-done { border-color: #cfe7dd; background: #f6fbf9; }
.broadcast-steps li.step-done::before { content: '✓'; background: var(--green); color: white; }
.broadcast-steps li.step-locked { opacity: .6; }
.broadcast-steps li div { display: grid; gap: 4px; min-width: 0; }
.broadcast-steps strong { font-size: 14px; }
.step-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.step-done-note { color: var(--green); font-weight: 600; }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.step-actions .button { min-height: 44px; }
.setup-warning { align-self: center; color: #a14d13; font-size: 12px; font-weight: 700; }

@media (max-width: 1080px) {
  .webinar-card { gap: 18px; }
  .countdown-units { gap: 2px; }
  .countdown-units strong { min-width: 40px; }
  .card-main { padding-right: 18px; }
  .card-speaker { grid-template-columns: 64px minmax(0, 1fr); }
  .speaker-avatar { width: 64px; height: 64px; }
  .speaker-rating { grid-column: 2; justify-self: start; }
  .event-details { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-banner-inner { min-height: 0; padding: 0 0 40px; }
  .hero-art, .hero-art--render {
    position: relative; inset: auto; width: 100%; height: clamp(180px, 42vw, 260px);
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-art::after, .hero-art--render::after { background: linear-gradient(180deg, rgba(28, 15, 8, .3) 0, rgba(28, 15, 8, .12) 40%, rgba(28, 15, 8, .8) 84%, var(--hero-bg) 100%); }
  .hero-copy { margin-top: -12px; gap: 12px; }
  .hero-subtitle { max-width: none; }
  .hero-actions { width: 100%; margin-top: 6px; }
  .hero-actions .button { flex: 1 1 220px; }
  .webinar-card { display: block; }
  .card-main { padding-right: 0; border-right: 0; }
  .card-speaker { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .speaker-avatar { width: 56px; height: 56px; }
  .speaker-rating { grid-column: 1 / -1; justify-self: stretch; }
  .speaker-rating small { white-space: normal; }
  .event-details { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-actions { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .countdown { border-top: 0; padding-top: 0; margin-top: 6px; }
  .view-tabs { width: auto; justify-self: start; }
}

@media (max-width: 820px) {
  .public-header { padding: 12px 16px; flex-wrap: wrap; row-gap: 10px; }
  .atlas-logo { width: 120px; height: 32px; }
  .header-actions { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .header-actions .locale-switcher { grid-column: 1; }
  .header-actions .button { width: 100%; min-width: 0; padding-inline: 12px; }
  .header-actions .button-primary { grid-column: 1 / -1; }
  .admin-header .header-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .admin-header .header-actions .button-primary { grid-column: auto; }
  .motivation-grid { grid-template-columns: 1fr; }
  .controls { gap: 12px; flex-wrap: wrap; }
  .filters { flex-basis: 100%; }
  .view-tabs { width: 100%; margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats img { width: 38px; height: 38px; }
}

@media (max-width: 560px) {
  .atlas-logo { width: 112px; height: 30px; }
  .header-actions .locale-switcher { min-height: 44px; font-size: 13px; padding: 0 30px 0 10px; background-position: right 10px center; }
  .header-actions .button { min-height: 44px; padding-inline: 8px; font-size: 13px; }
  .modal-heading h2 { font-size: 18px; }
  .modal-icon { width: 36px; height: 36px; }
  .modal-icon img { width: 26px; height: 26px; }
  .step-actions .button { flex: 1 1 100%; white-space: normal; line-height: 1.25; }
  .page-shell { margin-top: 24px; }
  .page-title > p:not(.beta-note) { font-size: 14px; line-height: 20px; }
  .motivation-card { padding: 16px; }
  .icon-tile { width: 48px; height: 48px; }
  .motivation-copy strong { font-size: 19px; }
  .controls { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .filters { grid-column: 1 / -1; }
  .card-actions .button.compact { min-height: 44px; }
  .mobile-filter-toggle { justify-self: start; display: inline-flex; min-height: 44px; align-items: center; gap: 8px; border: 0; border-radius: 10px; background: #fbf3ec; padding: 0 14px; font-weight: 700; }
  .filters { display: none; grid-template-columns: 1fr; }
  .filters.open { display: grid; }
  .view-tabs { width: 100%; margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .calendar-toolbar { justify-content: space-between; gap: 16px; }
  .calendar-toolbar h2 { font-size: 19px; }
  .calendar-day { min-height: 56px; padding: 5px 2px; }
  .calendar-event { min-height: 12px; width: 10px; height: 10px; border: 0; padding: 0; border-radius: 50%; background: var(--line-strong); color: transparent; align-self: center; overflow: hidden; }
  .calendar-event.is-open { background: var(--green); }
  .calendar-event.is-live { background: #d9481c; }
  .calendar-event.is-closed { background: #d9c7b8; }
  .calendar-weekdays span { padding: 6px 2px; }
  .webinar-card { display: block; padding: 16px; }
  .card-title { font-size: 19px; }
  .card-main { padding-right: 0; border-right: 0; }
  .card-speaker { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .speaker-avatar { width: 56px; height: 56px; }
  .speaker-rating { grid-column: 1 / -1; justify-self: stretch; }
  .speaker-rating small { white-space: normal; }
  .event-details { grid-template-columns: 1fr; gap: 12px; }
  .card-actions { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .countdown { margin-top: 4px; }
  .events-dialog-content { padding: 24px 16px; }
  .events-dialog-list .webinar-card { padding: 16px; }
  .confirmation-content { padding: 32px 24px; }
  .live-dialog-content { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .modal { max-height: calc(100dvh - 32px); overflow: auto; }
  .admin-title { display: block; }
  .admin-title-actions { justify-items: start; margin-top: 16px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats img { width: 38px; height: 38px; }
  .admin-panel-heading { align-items: stretch; flex-direction: column; gap: 12px; }
  .admin-panel-heading input { width: 100%; }
}

@media (max-width: 350px) {
  .admin-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .view-tab, .icon-action, .calendar-event { transition: transform .15s ease, box-shadow .15s ease; }
  .button:hover, .icon-action:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .chip-live i { animation: none; }
}

:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 2px; }
.modal input:focus-visible, .modal select:focus-visible, .modal textarea:focus-visible,
.filters select:focus-visible, .admin-panel input:focus-visible {
  outline: 2px solid var(--brand-dark); outline-offset: 0; border-color: var(--brand-dark);
  box-shadow: 0 0 0 4px rgba(236, 100, 36, .16);
}

/* Admin workflow: section navigation and the rarely needed manual status override. */
.admin-section-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0 0 20px; }
.admin-section-nav a { color: var(--brand-ink); font-weight: 700; padding: 10px 0; }
.admin-panel[id], .broadcast-card { scroll-margin-top: 24px; }
.broadcast-card:focus { outline: 3px solid var(--brand-ink); outline-offset: -3px; }
[data-i18n="application.hostHint"], #confirmation-text { white-space: pre-line; }

.manual-status { margin-top: 8px; font-size: 13px; }
.manual-status summary { cursor: pointer; color: var(--brand-ink); font-weight: 600; }
.manual-status .step-note { display: block; margin: 8px 0 4px; }

.list-toolbar { display: flex; justify-content: flex-end; margin: 0 0 14px; }
.list-past-toggle { font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.list-section-title { margin: 28px 0 12px; font-size: 18px; color: var(--muted); }
.webinar-card-past { opacity: .78; }

.form-notice-rules { border-color: #e9ad79; background: #fff4e4; }
.form-notice-rules strong { color: #673514; }
