@import url("/static/css/fonts.css");

:root {
  --accent: #1c1917;
  --bg: #ebe4da;
  --ink: #1a1714;
  --muted: #7a736b;
  --line: rgba(26, 23, 20, 0.08);
  --field-line: rgba(26, 23, 20, 0.14);
  --paper: #fbf8f4;
  --danger: #9f1239;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --field: 12px;
  --shadow: 0 1px 1px rgba(26, 23, 20, 0.04), 0 18px 50px rgba(26, 23, 20, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--bg);
  line-height: 1.5; letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ stage */
.stage {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 28px 18px;
  background: var(--bg);
}
.has-photo .stage {
  background-color: #16120f;
  background-image:
    radial-gradient(ellipse at center, rgba(22, 18, 15, 0.18) 35%, rgba(22, 18, 15, 0.55) 100%),
    var(--photo);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ------------------------------------------------------------ card */
.card {
  width: min(340px, 100%);
  background: var(--paper); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  padding: 40px 34px 22px;
  box-shadow: var(--shadow);
}
.card h1 {
  font-family: var(--display); font-weight: 500;
  font-size: 1.85rem; line-height: 1.18; letter-spacing: -0.018em;
  margin: 0 0 10px; color: var(--ink);
}
.lede {
  margin: 0; color: var(--muted); font-size: 0.95rem; font-weight: 400;
  line-height: 1.55; max-width: 34ch;
}

.portal-logo {
  display: block; width: auto; height: auto;
  max-width: 190px; max-height: 92px; object-fit: contain; object-position: left center;
  align-self: flex-start; margin: 0 0 28px;
}
.layout-editorial .portal-logo,
.layout-one_tap .portal-logo,
.chat-head .portal-logo { object-position: center; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------ auth */
.auth { margin-top: 28px; }
.auth-tabs {
  display: flex; gap: 2px; padding: 3px; margin: 0 0 22px;
  background: rgba(26, 23, 20, 0.05); border-radius: 999px;
}
.auth-tabs button {
  flex: 1; appearance: none; border: 0; background: none; cursor: pointer;
  border-radius: 999px; padding: 9px 8px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.01em; color: var(--muted);
}
.auth-tabs button.active {
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 2px rgba(26, 23, 20, 0.08), 0 4px 12px rgba(26, 23, 20, 0.05);
}
.auth label {
  display: block; margin: 16px 0 7px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.auth form > label:first-of-type { margin-top: 0; }
.auth input {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1px solid var(--field-line); border-radius: var(--field);
  background: rgba(255, 255, 255, 0.72); color: var(--ink);
  font: inherit; font-size: 0.98rem; letter-spacing: 0.04em; outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.auth input::placeholder { color: #b0a89f; letter-spacing: 0.12em; }
.auth input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, #a8a29e);
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.auth button[type="submit"], .btn-primary {
  display: block; width: 100%; height: 50px; margin-top: 18px;
  border: 0; border-radius: var(--field); cursor: pointer;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: filter 0.18s ease, transform 0.18s ease;
}
.auth button[type="submit"]:hover, .btn-primary:hover { filter: brightness(1.08); }
.auth button[type="submit"]:active, .btn-primary:active { transform: translateY(1px); }
.auth button.ghost {
  display: block; width: 100%; height: 44px; margin-top: 10px; cursor: pointer;
  border: 1px solid var(--field-line); border-radius: var(--field);
  background: transparent; color: var(--ink); font-weight: 500; font-size: 0.88rem;
}
.auth .error {
  background: #fff1f2; color: var(--danger); border: 1px solid #fecdd3;
  border-radius: var(--field); padding: 11px 13px; margin-bottom: 14px; font-size: 0.9rem;
}
@supports (color: oklch(from white l c h)) {
  .auth button[type="submit"], .btn-primary {
    color: oklch(from var(--accent) clamp(0, (0.62 - l) * 9999, 1) 0 0);
  }
}

/* ------------------------------------------------------------ footer */
.foot {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem; letter-spacing: 0.02em; color: var(--muted);
}
.foot.has-langs { justify-content: space-between; }
.foot button {
  appearance: none; border: 0; background: none; padding: 0;
  color: inherit; cursor: pointer; font-size: inherit; letter-spacing: inherit;
}
.foot .langs { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.foot .langs .is-current { color: var(--ink); font-weight: 600; }
.foot .terms { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ------------------------------------------------------------ sheets */
.tile-sheet {
  position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(22, 18, 15, 0.62); padding: 16px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tile-sheet[hidden] { display: none; }
.tile-panel {
  width: min(440px, 100%); max-height: min(80vh, 640px);
  display: flex; flex-direction: column;
  background: #2a2622; color: #f3efe8; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); position: relative;
  overflow: hidden;
}
.tile-panel > #tile-image {
  flex: 0 0 auto; width: 100%; max-height: 200px; object-fit: cover;
  display: block; background: #1a1714;
}
.tile-panel > #tile-image[hidden] { display: none !important; }
.tile-panel-body {
  flex: 1 1 auto; min-height: 0;
  overflow: auto; overscroll-behavior: contain;
  /* Invisible scrollbar — corners stay round; content still scrolls */
  scrollbar-width: none; -ms-overflow-style: none;
}
.tile-panel-body::-webkit-scrollbar { width: 0; height: 0; display: none; }
.tile-panel::after {
  content: ""; pointer-events: none;
  position: absolute; left: 0; right: 0; bottom: 0; height: 36px; z-index: 1;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg, transparent, rgba(42, 38, 34, 0.92));
}
.tile-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  background: rgba(20, 17, 14, 0.72); color: #f3efe8;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; padding: 7px 13px;
}
#tile-heading, #legal-heading {
  clear: both; margin: 0; padding: 14px 22px 6px;
  font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.015em;
  color: #f7f3ee;
}
#tile-copy, .legal-copy {
  margin: 0; padding: 4px 22px 22px; white-space: pre-wrap;
  line-height: 1.55; font-size: 0.92rem; color: rgba(247, 243, 238, 0.72);
}
.legal-panel { max-width: 24rem; }

/* ------------------------------------------------------------ dark theme */
.theme-dark .stage { background: #12100e; }
.theme-dark.has-photo .stage {
  background-color: #12100e;
  background-image:
    linear-gradient(180deg, rgba(12, 10, 8, 0.35), rgba(12, 10, 8, 0.78)),
    var(--photo);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.theme-dark .card { color: #f7f3ee; }
.theme-dark .card h1 { color: #f7f3ee; }
.theme-dark .lede { color: rgba(247, 243, 238, 0.68); }
.theme-dark .auth-tabs { background: rgba(255, 255, 255, 0.08); }
.theme-dark .auth-tabs button { color: rgba(247, 243, 238, 0.58); }
.theme-dark .auth-tabs button.active {
  background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: none;
}
.theme-dark .auth label { color: rgba(247, 243, 238, 0.58); }
.theme-dark .auth input {
  background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #fff;
}
.theme-dark .auth input::placeholder { color: rgba(255, 255, 255, 0.35); }
.theme-dark .auth input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: color-mix(in srgb, var(--accent) 50%, white);
}
.theme-dark .auth button.ghost { border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.theme-dark .foot { border-top-color: rgba(255, 255, 255, 0.12); color: rgba(247, 243, 238, 0.55); }
.theme-dark .foot .langs .is-current { color: #fff; }

/* ========== Editorial ========== */
.layout-editorial .card {
  text-align: center; border-radius: 6px;
  padding: 44px 36px 24px;
  background: rgba(251, 248, 244, 0.96);
}
.layout-editorial .portal-logo { margin: 0 auto 26px; max-width: 210px; max-height: 110px; }
.layout-editorial .card h1 {
  font-style: italic; font-size: 2rem; line-height: 1.2; margin-bottom: 0;
}
.layout-editorial .lede { margin: 12px auto 0; }
.layout-editorial .auth { text-align: left; margin-top: 30px; }
.layout-editorial .auth-tabs { background: rgba(26, 23, 20, 0.05); }
.layout-editorial .auth button[type="submit"] {
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.76rem; font-weight: 600;
  border-radius: 4px; box-shadow: none;
}
.layout-editorial .auth input { border-radius: 4px; }
.layout-editorial .foot { border-top-color: rgba(26, 23, 20, 0.07); }

/* ========== One Tap ========== */
.layout-one_tap .card { text-align: center; border-radius: 24px; padding-top: 42px; }
.layout-one_tap .portal-logo { margin: 0 auto 26px; }
.layout-one_tap .connect {
  height: 54px; margin-top: 28px; font-size: 0.92rem; border-radius: 14px; letter-spacing: 0.03em;
}
.layout-one_tap .auth { text-align: left; }

/* ========== Glass ========== */
.layout-glass .stage {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.45), transparent 42%),
    linear-gradient(155deg, #b7c9d4, #5b7388 55%, #3e5363);
}
.layout-glass.has-photo .stage {
  background-color: #16120f;
  background-image:
    radial-gradient(ellipse at center, rgba(22, 18, 15, 0.12) 30%, rgba(22, 18, 15, 0.48) 100%),
    var(--photo);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.layout-glass .card {
  background: rgba(251, 248, 244, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  border-radius: 24px;
}
.layout-glass .auth-tabs { background: rgba(26, 23, 20, 0.05); }
.layout-glass .auth input { background: rgba(255, 255, 255, 0.78); }

/* ========== Cinematic ========== */
.layout-cinematic .stage { place-items: end center; padding-bottom: 44px; }
.layout-cinematic.has-photo .stage {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(12, 10, 8, 0.82) 100%),
    var(--photo);
}
.layout-cinematic .card {
  width: min(440px, 100%);
  background: rgba(18, 16, 14, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  border-radius: 20px;
}

/* ========== App Launcher / Concierge ========== */
.layout-app_launcher .stage {
  place-items: start center; padding-top: 40px; padding-bottom: 40px;
}
.layout-app_launcher .card {
  width: min(520px, 100%); background: none; border: 0; box-shadow: none; padding: 0;
}
.layout-app_launcher .card h1 {
  font-size: 2.05rem; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Concierge: one-screen composition, narrow so the photo stays visible */
.layout-concierge,
.layout-concierge body { height: 100%; overflow: hidden; }
.layout-concierge .stage {
  height: 100vh; height: 100dvh; min-height: 100vh; min-height: 100dvh;
  place-items: center; align-content: center;
  padding: 14px 12px; overflow: hidden;
}
.layout-concierge .card {
  width: min(360px, 100%); background: none; border: 0; box-shadow: none; padding: 0;
}
.layout-concierge .brand-mark {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: fit-content; margin: 0 auto 14px;
  padding: 0; border-radius: 50%;
  background: none; border: 0; box-shadow: none;
  animation: brand-soft 4.8s ease-in-out infinite;
}
.layout-concierge .brand-mark::before {
  content: ""; position: absolute; inset: -36px; z-index: -1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%,
      rgba(255, 246, 228, 0.7) 0%,
      rgba(236, 210, 164, 0.38) 30%,
      rgba(120, 90, 55, 0.16) 54%,
      transparent 74%);
  filter: blur(22px);
  opacity: 1;
  pointer-events: none;
}
.layout-concierge .brand-mark::after { content: none; }
.layout-concierge .brand-mark .portal-logo {
  margin: 0; max-width: 132px; max-height: 132px; object-position: center;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 26px rgba(245, 236, 220, 0.5));
}
/* No-photo Concierge still reads warm and lounge-like */
.layout-concierge:not(.has-photo) .stage {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(120, 90, 55, 0.28), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(42, 34, 28, 0.9), #12100e 70%),
    #12100e;
}
.layout-concierge .tiles-hint { display: block; }
.layout-concierge .card h1 {
  text-align: center; font-size: clamp(1.35rem, 4.6vw, 1.7rem); line-height: 1.15;
  margin: 0 0 4px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}
.layout-concierge .lede {
  text-align: center; margin: 0 auto; font-size: 0.84rem; line-height: 1.35; max-width: 28ch;
}
@keyframes brand-soft {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.015); }
}
.tiles-hint {
  margin: 14px 0 10px; text-align: center;
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 1rem; letter-spacing: 0.01em; text-transform: none;
  color: rgba(247, 243, 238, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 0; }
.tile {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0;
  min-height: 132px; padding: 0; overflow: hidden; text-align: left; cursor: pointer; color: #f7f3ee;
  background: rgba(18, 16, 14, 0.55); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.34);
  background: rgba(18, 16, 14, 0.78); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  outline: none;
}
.tile-media { display: block; width: 100%; height: 78px; overflow: hidden; position: relative; }
.tile-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(12, 10, 8, 0.55));
  pointer-events: none;
}
.tile-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-copy {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px;
  background: linear-gradient(180deg, rgba(18, 16, 14, 0.2), rgba(18, 16, 14, 0.55));
}
.tile strong { font-weight: 600; letter-spacing: 0.01em; font-size: 0.9rem; }
.tile span { font-size: 0.74rem; color: rgba(247, 243, 238, 0.62); font-weight: 400; line-height: 1.25; }
.tile-open-hint {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
  font-style: normal; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: rgba(247, 243, 238, 0.88);
}
.tile-open-hint span {
  display: inline-grid; place-items: center; width: 16px; height: 16px; margin: 0;
  border-radius: 999px; font-size: 0.8rem; line-height: 1; color: #1a1714;
  background: rgba(247, 243, 238, 0.92);
  animation: hint-nudge 1.8s ease-in-out infinite;
}
@keyframes hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}
.layout-concierge .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.layout-concierge .tile { min-height: 118px; }
.layout-concierge .tile-media { height: 68px; }
.layout-concierge .tile-copy { padding: 8px 8px 9px; }
.layout-concierge .tile strong { font-size: 0.78rem; }
.layout-concierge .tile-sub { display: none; }
.layout-concierge .tile-open-hint { margin-top: 5px; font-size: 0.6rem; }
.layout-concierge .tile--featured {
  border-color: rgba(245, 236, 220, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(245, 236, 220, 0.08);
}
.layout-concierge .tile--featured strong {
  font-size: 0.98rem; letter-spacing: 0.005em; line-height: 1.15;
}
.layout-concierge .tile--featured .tile-open-hint { font-size: 0.66rem; }
.layout-concierge .panel {
  margin-top: 10px; padding: 12px 14px 8px;
  background: rgba(18, 16, 14, 0.62); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.layout-concierge .panel .auth { margin-top: 0; }
.layout-concierge .auth label { margin: 0 0 5px; font-size: 0.66rem; }
.layout-concierge .auth input { height: 42px; padding: 0 12px; font-size: 0.92rem; }
.layout-concierge .auth button[type="submit"] { height: 42px; margin-top: 10px; font-size: 0.84rem; }
.layout-concierge .foot { margin-top: 10px; padding-top: 8px; font-size: 0.7rem; }
.tile-items {
  display: grid; gap: 10px; padding: 4px 18px 28px;
}
.tile-item {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center;
  padding: 8px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.tile-item img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #1a1714;
}
.tile-item strong { display: block; font-size: 0.92rem; font-weight: 600; color: #f7f3ee; }
.tile-item span { display: block; margin-top: 2px; font-size: 0.8rem; color: rgba(247, 243, 238, 0.62); line-height: 1.35; }
#tile-copy { padding-bottom: 8px; }
.layout-app_launcher .panel {
  margin-top: 16px; padding: 24px 24px 16px;
  background: rgba(18, 16, 14, 0.62); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.layout-app_launcher .panel .auth { margin-top: 0; }

/* ========== Boarding Pass ========== */
.layout-boarding_pass .card { padding: 0; overflow: hidden; border-radius: 20px; border: 0; }
.layout-boarding_pass .card-top {
  padding: 34px 32px 28px;
  background: linear-gradient(145deg, #2a2622 0%, #141210 100%);
  color: #f7f3ee;
}
.layout-boarding_pass .card-top .lede { color: rgba(247, 243, 238, 0.68); }
.layout-boarding_pass .card-top h1 { margin-bottom: 8px; color: #f7f3ee; }
.layout-boarding_pass .card-body {
  padding: 28px 32px 22px;
  border-top: 1px dashed rgba(26, 23, 20, 0.16);
  background: var(--paper);
}
.layout-boarding_pass .card-body .auth { margin-top: 0; }

/* ========== Split Screen ========== */
.layout-split_screen .stage {
  display: grid; grid-template-columns: 1.2fr 0.8fr; place-items: stretch;
  padding: 0; background: var(--paper);
}
.layout-split_screen.has-photo .stage { background: var(--paper); }
.layout-split_screen .visual {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 56px; color: #f7f3ee;
  background: linear-gradient(155deg, #4a4038, #1a1714);
}
.layout-split_screen.has-photo .visual {
  background-color: #16120f;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 35%, rgba(16, 13, 11, 0.72)),
    var(--photo);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.layout-split_screen .visual h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.08;
  letter-spacing: -0.02em; margin: 0 0 10px; max-width: 16ch;
}
.layout-split_screen .visual .lede { color: rgba(247, 243, 238, 0.78); max-width: 36ch; }
.layout-split_screen .card {
  width: auto; display: flex; align-items: center; justify-content: center;
  border-radius: 0; border: 0; box-shadow: none; padding: 56px 36px;
  background: var(--paper);
}
.layout-split_screen .card-inner { width: min(340px, 100%); }
.layout-split_screen .portal-logo { margin-bottom: 32px; }
@media (max-width: 820px) {
  .layout-split_screen .stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .layout-split_screen .visual { min-height: 48vh; padding: 32px 24px; }
  .layout-split_screen .card { align-items: flex-start; padding: 32px 24px; }
}

/* ========== Chat Flow ========== */
.layout-chat_flow .stage { display: flex; flex-direction: column; padding: 0; place-items: initial; }
.layout-chat_flow .chat-head {
  display: flex; justify-content: center; padding: 14px 16px;
  background: rgba(251, 248, 244, 0.92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.layout-chat_flow .chat-head .portal-logo { margin: 0; max-height: 42px; }
.layout-chat_flow .chat-body {
  flex: 1; display: flex; flex-direction: column; gap: 10px;
  width: min(560px, 100%); margin: 0 auto; padding: 28px 18px;
}
.layout-chat_flow .bubble {
  align-self: flex-start; max-width: 82%;
  padding: 14px 18px; border-radius: 20px 20px 20px 6px;
  background: rgba(251, 248, 244, 0.94); color: var(--ink);
  box-shadow: 0 1px 2px rgba(26, 23, 20, 0.05), 0 10px 28px rgba(26, 23, 20, 0.1);
  font-size: 0.95rem; line-height: 1.45;
}
.layout-chat_flow .card {
  width: 100%; max-width: none; border-radius: 24px 24px 0 0; border: 0;
  padding: 28px max(22px, calc((100% - 500px) / 2)) 20px;
  box-shadow: 0 -12px 40px rgba(26, 23, 20, 0.14);
}
.layout-chat_flow .auth { margin-top: 0; }
.layout-chat_flow .chip-row { display: flex; gap: 8px; margin-bottom: 18px; }
.layout-chat_flow .chip {
  flex: 1; height: 42px; cursor: pointer;
  border: 1px solid var(--field-line); border-radius: 999px;
  background: transparent; color: var(--ink);
  font-size: 0.84rem; font-weight: 500;
}
.layout-chat_flow .chip.active {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

/* ========== Brutalist ========== */
.layout-brutalist .stage { background: #e8c547; place-items: stretch; padding: 18px; }
.layout-brutalist.has-photo .stage {
  background-color: #e8c547;
  background-image:
    linear-gradient(rgba(232, 197, 71, 0.42), rgba(232, 197, 71, 0.42)),
    var(--photo);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.layout-brutalist .card {
  width: 100%; display: flex; flex-direction: column;
  background: none; box-shadow: none; border: 3px solid #1a1714; border-radius: 0; padding: 22px;
}
.layout-brutalist .card h1 {
  font-family: var(--sans); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.1rem, 7.5vw, 3.3rem); line-height: 0.96;
  letter-spacing: -0.025em; margin-bottom: 14px;
}
.layout-brutalist .lede { color: #1a1714; font-weight: 500; }
.layout-brutalist .panel {
  margin-top: auto; padding: 22px 22px 16px; background: var(--paper);
  border: 3px solid #1a1714; box-shadow: 7px 7px 0 #1a1714; width: min(460px, 100%);
}
.layout-brutalist .panel .auth { margin-top: 0; }
.layout-brutalist .auth label {
  color: #1a1714; font-weight: 600; text-transform: uppercase;
  font-size: 0.7rem; letter-spacing: 0.1em;
}
.layout-brutalist .auth input { border: 2px solid #1a1714; border-radius: 0; background: #fff; }
.layout-brutalist .auth-tabs {
  background: none; padding: 0; border-bottom: 2px solid #1a1714; border-radius: 0; gap: 0;
}
.layout-brutalist .auth-tabs button {
  border-radius: 0; color: #1a1714; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.layout-brutalist .auth-tabs button.active { background: #1a1714; color: #e8c547; box-shadow: none; }
.layout-brutalist .auth button { border-radius: 0; box-shadow: none; }
.layout-brutalist .auth button[type="submit"] { text-transform: uppercase; letter-spacing: 0.08em; }
.layout-brutalist .foot { border-top: 2px solid #1a1714; color: #1a1714; }

/* ------------------------------------------------------------ hand-off */
.meta { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ticket-box {
  margin-top: 12px; padding: 12px; border-radius: var(--field); background: rgba(26, 23, 20, 0.05);
  font-family: ui-monospace, Menlo, monospace; font-size: 0.82rem; word-break: break-all;
}
.handoff-shell {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; padding: 24px 16px;
  background: #12100e; color: #f7f3ee;
}
.handoff-shell.is-waiting { display: none; }
.handoff-card { width: min(400px, 100%); }
.handoff-meta {
  margin: 0; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(247, 243, 238, 0.55);
}
.handoff-card h1 {
  font-family: var(--display); font-weight: 500; font-size: 2.2rem;
  margin: 0.5rem 0; color: #f7f3ee;
}
.handoff-card .lede { color: rgba(247, 243, 238, 0.68); }
.handoff-link { color: #f7f3ee; text-underline-offset: 3px; }

/* ------------------------------------------------------------ program popup */
.program-gate {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  padding: 12px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(90, 70, 45, 0.35), transparent 55%),
    rgba(10, 8, 6, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow: auto;
}
.program-gate[hidden] { display: none; }
.program-sheet {
  width: min(420px, 100%);
  max-height: min(96dvh, 960px);
  display: flex; flex-direction: column; gap: 12px; align-items: stretch;
}
.program-flyer {
  display: block; width: 100%; height: auto;
  max-height: calc(96dvh - 76px);
  object-fit: contain; object-position: center top;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 110, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  background: #1a1510;
}
.program-card {
  position: relative; overflow: hidden;
  padding: 28px 22px 24px;
  border-radius: 16px;
  color: #f3e6c8;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(180, 140, 80, 0.18), transparent 50%),
    linear-gradient(165deg, #2a2218 0%, #14110e 55%, #0c0a08 100%);
  border: 1px solid rgba(212, 175, 110, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 110, 0.18),
    0 24px 60px rgba(0, 0, 0, 0.5);
}
.program-eyebrow {
  margin: 0 0 18px; text-align: center;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(243, 230, 200, 0.72);
}
.program-kicker {
  margin: 0; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: #d4af6e;
}
.program-speaker {
  margin: 4px 0 0; font-family: var(--display); font-weight: 500;
  font-size: clamp(1.55rem, 6vw, 1.95rem); line-height: 1.15; color: #f6e7c4;
}
.program-role {
  margin: 6px 0 0; font-size: 0.86rem; color: rgba(243, 230, 200, 0.7);
}
.program-title {
  margin: 22px 0 0; font-family: var(--display); font-weight: 500;
  font-size: clamp(1.2rem, 4.8vw, 1.45rem); letter-spacing: 0.04em;
  text-transform: uppercase; color: #d4af6e; line-height: 1.2;
}
.program-sub {
  margin: 10px 0 0; font-family: var(--display); font-style: italic;
  font-size: 0.95rem; line-height: 1.45; color: rgba(247, 243, 238, 0.82);
}
.program-when {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px;
  font-size: 0.84rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: #f3e6c8;
}
.program-when span {
  display: inline-flex; align-items: center; gap: 8px;
}
.program-when span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #d4af6e; box-shadow: 0 0 10px rgba(212, 175, 110, 0.55);
}
.program-perks {
  display: flex; flex-wrap: wrap; gap: 8px 0; margin: 18px 0 0; padding: 0;
  list-style: none; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(243, 230, 200, 0.78);
}
.program-perks li {
  padding: 0 12px; border-right: 1px solid rgba(212, 175, 110, 0.35);
}
.program-perks li:first-child { padding-left: 0; }
.program-perks li:last-child { border-right: 0; padding-right: 0; }
.program-tag {
  margin: 22px 0 0; text-align: center;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(247, 243, 238, 0.78);
}
.program-cta {
  appearance: none; cursor: pointer; border: 0;
  height: 48px; border-radius: 999px;
  background: linear-gradient(180deg, #d4af6e, #b08a45);
  color: #1a140c; font-weight: 650; font-size: 0.92rem; letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.program-cta:hover, .program-cta:focus-visible {
  filter: brightness(1.05); outline: none;
}
