/* The Travel Lounge — styles
   Layout: one phone-width column; sticky brand header, scrolling screen, fixed tab bar.
   Landing-page palette: navy, bright blue, white, pale blue and gold accents. */
:root {
  --navy: #071a3d;
  --royal: #1465d8;
  --blue: #2d8cff;
  --gold: #d6aa3a;
  --gold-ink: #3a2a05;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --fg: #071a3d;
  --muted: #60708b;
  --line: #e1e7ef;
  --tint: #f0f6ff;
  --live: #c8312b;
  --good: #1f7a4d;
  --header-bg: #071a3d;
  --header-fg: #ffffff;
  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--header-bg); }
img { max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--royal); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.app { max-width: 480px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: linear-gradient(135deg,var(--blue),var(--royal)); color: var(--header-fg);
  padding-block: 14px 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; flex-direction: column; }
.brand { min-width: 0; }
.install-top { flex: none; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 8px 12px; background: #fff; color: #071a3d; font-size: 13px; font-weight: 700; cursor: pointer; }
#tl-install-help { width: min(430px,calc(100% - 32px)); border: 1px solid var(--line); border-radius: 20px; padding: 24px; color: var(--fg); background: var(--surface); box-shadow: 0 20px 60px rgba(7,26,61,.25); }
#tl-install-help::backdrop { background: rgba(7,26,61,.6); }
#tl-install-help p { margin: 16px 0 20px; line-height: 1.65; }
@media(max-width:380px) { header.top { flex-wrap: wrap; } }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: .01em; }
.brand small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ffffff; }
.admin-link { background: none; border: 1px solid rgba(244,239,226,.35); color: var(--header-fg); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; }

main { flex: 1; padding-block: 16px 104px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 18px; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 0; text-wrap: balance; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
p { margin: 0 0 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.row.start { justify-content: flex-start; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 10px 28px rgba(7,26,61,.07); }
.card.dashed { border-style: dashed; }
.hero { position: relative; overflow: hidden; background: var(--surface); color: var(--navy); padding: 24px 20px; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg,var(--blue),var(--gold)); }
.hero .muted { color: var(--muted); }
.zoom-logo { display: block; width: 120px; height: auto; margin: 4px 0 18px; }
.zoom-weekly { margin-top: 14px; color: var(--navy); font-size: 14px; line-height: 1.6; }
.hero .title { font-family: var(--font-display); font-size: 25px; line-height: 1.2; margin: 4px 0 2px; }
.when { font-size: 28px; font-weight: 700; letter-spacing: -.01em; margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--tint); }
.countdown { color: var(--royal); font-weight: 600; margin-top: 8px; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--royal); font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; text-decoration: none; color: var(--fg); }
.btn.primary { background: linear-gradient(135deg,var(--blue),var(--royal)); border-color: transparent; color: #fff; border-radius: 999px; box-shadow: 0 10px 22px rgba(45,140,255,.22); width: 100%; font-size: 16px; margin-top: 16px; }
.btn.primary[aria-disabled="true"] { background: var(--tint); border: 1px dashed #9aacc5; color: var(--muted); box-shadow: none; cursor: default; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.royal { background: linear-gradient(135deg,var(--blue),var(--royal)); border-color: transparent; color: #fff; }
.btn.danger { border-color: var(--live); color: var(--live); }
.btn.wide { width: 100%; }
.google-signin { width: 100%; margin-top: 12px; background: #fff; color: #071a3d; border: 1px solid #9aacc5; }
.google-signin span { font: 700 21px system-ui,sans-serif; color: #1465d8; }
.linkish { background: none; border: none; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13.5px; }
.hero .linkish { color: var(--royal); }

.list { display: flex; flex-direction: column; }
.item { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: none; padding-top: 0; }
.item:last-child { padding-bottom: 0; }
.item .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.item .name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.item .sub, .sub { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.cancelled .name, .cancelled .t { text-decoration: line-through; color: var(--muted); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--royal); }
.pill.live { background: var(--live); color: #fff; }
.pill.member { background: #fff8e6; border: 1px solid var(--gold); color: var(--gold-ink); }
.pill.good { background: transparent; border: 1px solid var(--good); color: var(--good); }
.pill.warn { background: transparent; border: 1px solid var(--live); color: var(--live); }

.live-banner { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--live); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--fg); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); flex: none; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.notice { background: var(--tint); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }

.announce { border-left: 3px solid var(--gold); padding: 14px 16px; background: var(--tint); border-radius: 0 14px 14px 0; }
.tzbar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.tzbar select { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 4px 8px; font-size: 13px; max-width: 100%; }

.channels { display: grid; gap: 12px; }
.video { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.video:first-of-type { border-top: none; padding-top: 0; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; max-width: 100%; border: none; padding: 0; border-radius: 10px; overflow: hidden; background: var(--navy); cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.channel-preview { margin-top: 14px; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 60px; height: 42px; border-radius: 12px; background: rgba(13,27,61,.85); color: var(--gold); display: grid; place-items: center; font-size: 18px; }
.thumb { width: 56px; aspect-ratio: 1; flex: none; border-radius: 14px; background: linear-gradient(135deg, var(--navy), #133b7c); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 22px; }
.topic-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: #f4efe2; border-color: var(--navy); }
.disclosure { font-size: 12px; color: var(--muted); }
.linkcard { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }

form.stack, .stack { display: flex; flex-direction: column; gap: 12px; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; min-width: 0; }
.field input, .field select, .field textarea { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px 12px; font-weight: 400; min-width: 0; width: 100%; }
.err { color: var(--live); font-size: 13px; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 13px; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--live); }
.admin-section { display: flex; flex-direction: column; gap: 10px; }
.admin-row { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.admin-row:first-of-type { border-top: none; padding-top: 0; }

nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
nav.tabs .inner { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
nav.tabs button { background: none; border: none; padding: 10px 0 12px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); cursor: pointer; }
nav.tabs svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
nav.tabs button[aria-current="page"] { color: var(--royal); font-weight: 700; background: var(--tint); box-shadow: inset 0 3px var(--blue); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); background: var(--navy); color: #f4efe2;
  padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 9; max-width: calc(100% - 32px); }
footer.foot { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.prose { max-width: 65ch; }
.prose h1 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 0 0 8px; }
.prose h2 { font-size: 20px; margin: 20px 0 6px; }

/* Refined mobile lounge interface */
body { background: #edf2f8; }
.app { max-width: 520px; background: #f6f8fc; }
header.top { padding: 21px 22px 19px; background: linear-gradient(115deg,#123d80,#1465d8); box-shadow: 0 4px 20px #071a3d12; }
.brand b { font-size: 23px; line-height: 1.25; }
.brand small { margin-top: 5px; font-size: 9px; letter-spacing: .15em; opacity: .85; }
.install-top { font-size: 12px; padding: 9px 13px; border: 0; }
main { padding: 22px 20px 112px; gap: 20px; }
h2 { font-family: var(--font-body); font-weight: 700; letter-spacing: -.035em; }
.card { border-color: #e5eaf2; border-radius: 22px; padding: 20px; box-shadow: 0 6px 22px #122e5708; }
.hero { padding: 22px; }
.hero::before { height: 4px; }
.session-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 23px; }
.session-category { font-size: 11px; font-weight: 600; color: var(--muted); }
.session-topline .zoom-logo { width: 76px; margin: 0; }
.hero .title { font-family: var(--font-body); font-weight: 700; font-size: 27px; line-height: 1.18; letter-spacing: -.04em; margin: 8px 0; max-width: 290px; }
.eyebrow { font-size: 10px; letter-spacing: .16em; }
.zoom-weekly { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 18px; font-size: 13px; }
.zoom-weekly strong { font-weight: 600; }
.when { display: flex; flex-direction: column; gap: 2px; padding: 15px 18px; margin-top: 18px; border-radius: 15px; background: #edf4ff; }
.session-date { font-size: 13px; font-weight: 500; color: #45618b; letter-spacing: 0; }
.session-time { font-size: 31px; font-weight: 700; letter-spacing: -.045em; line-height: 1.3; }
.session-time .small { font-size: 11px; font-weight: 600; letter-spacing: 0; }
.countdown { font-size: 12px; margin-top: 10px; }
.btn { transition: background .15s, transform .15s; }
.btn:active { transform: scale(.985); }
.btn.primary { min-height: 50px; border-radius: 14px; font-size: 15px; box-shadow: 0 5px 14px #1465d825; }
.hero > p.small { font-size: 12px; line-height: 1.65; }
.hero .row.start { justify-content: center; }
.hero .linkish { font-size: 12px; font-weight: 500; color: #45618b; }
.tzbar { justify-content: space-between; font-size: 12px; padding: 0 2px; }
.tzbar select { max-width: 66%; padding: 7px 10px; font-size: 12px; border-radius: 10px; background: transparent; }
.announce { border-left-width: 3px; border-radius: 0 14px 14px 0; padding: 14px 16px; background: #edf3fc; font-size: 13px; line-height: 1.65; }
h3 { font-size: 10px; letter-spacing: .15em; margin-bottom: 12px; }
.yt { border-radius: 13px; }
.yt .play { width: 54px; height: 54px; border-radius: 50%; background: #ffffffed; color: var(--royal); box-shadow: 0 3px 16px #071a3d40; }
.yt + p.small { font-size: 11px; line-height: 1.6; margin-top: 9px; }
nav.tabs { left: 50%; right: auto; transform: translateX(-50%); width: min(100%,520px); border-top: 1px solid #e5eaf2; box-shadow: 0 -5px 24px #071a3d06; }
nav.tabs .inner { max-width: 520px; padding: 7px 12px; gap: 4px; }
nav.tabs button { padding: 9px 0; border-radius: 13px; font-size: 11px; gap: 5px; }
nav.tabs button[aria-current="page"] { box-shadow: none; background: #edf4ff; }
nav.tabs svg { width: 21px; height: 21px; }
#tl-install-status { font-size: 12px; color: var(--muted); background: #edf4ff; padding: 10px 14px; border-radius: 10px; }
footer.foot { font-size: 12px; gap: 11px; }
@media (min-width: 600px) { .app { box-shadow: 0 0 60px #071a3d0a; } }
@media (max-width: 360px) {
  header.top { padding: 16px; }
  .brand b { font-size: 20px; }
  main { padding-left: 12px; padding-right: 12px; }
  .hero { padding: 18px; }
}

/* Travel Lounge brand: supplied artwork with a monochromatic blue environment. */
body {
  background-color: #05152f;
  background-image:
    radial-gradient(ellipse at 15% 8%, #147ae34d, transparent 48%),
    radial-gradient(ellipse at 90% 65%, #145bdc38, transparent 55%),
    linear-gradient(150deg, #041027 0%, #0d3263 55%, #071b38 100%);
  background-attachment: fixed;
}
.app {
  background:
    radial-gradient(ellipse at 100% 0%, #8fcbff35, transparent 52%),
    linear-gradient(160deg,#e8f3ff 0%,#f0f6ff 48%,#dcecff 100%);
  position: relative;
  isolation: isolate;
}
.app::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(#3576c908 1px,transparent 1px),linear-gradient(90deg,#3576c908 1px,transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(#000,transparent 75%);
}
header.top {
  padding: 15px 18px;
  background: linear-gradient(115deg,#061a39 0%,#103d79 65%,#155ba7 100%);
  border-bottom: 1px solid #7cc4ff40;
  box-shadow: 0 6px 24px #04142f25;
  gap: 10px;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand-logo { width: 46px; height: 46px; flex: none; object-fit: contain; border-radius: 50%; background: white; padding: 2px; box-shadow: 0 0 0 1px #ffffff50,0 0 20px #5daaff30; }
.brand b { font-size: 20px; white-space: nowrap; }
.brand small { font-size: 7px; letter-spacing: .065em; line-height: 1.5; color: #c5e3ff; }
.install-top { padding: 9px 11px; font-size: 11px; }
.brand-banner { background: #071a3d; border-bottom: 1px solid #86bdf94d; }
.brand-banner img { display: block; width: 100%; height: auto; }
.card { background: #ffffffed; border-color: #c9ddf2; box-shadow: 0 8px 28px #123b7110; }
.hero::before { background: linear-gradient(90deg,#148dff,#80caff,#1768da); }
.announce { background: #e5f0fc; border-left-color: #2888ec; }
nav.tabs { background: #f8fbffef; backdrop-filter: blur(18px); border-top-color: #c9ddf2; }
nav.tabs button[aria-current="page"] { background: linear-gradient(145deg,#dceeff,#edf5ff); }
@media(max-width:380px) {
  header.top { flex-wrap: nowrap; padding: 13px 12px; gap: 7px; }
  .brand-lockup { gap: 7px; }
  .brand-logo { width: 37px; height: 37px; }
  .brand b { font-size: 17px; }
  .brand small { font-size: 6px; letter-spacing: .025em; }
  .install-top { font-size: 10px; padding: 8px 9px; }
}

/* Dark blue gradient with high-contrast text outside the light cards. */
.app {
  background:
    radial-gradient(ellipse at 100% 5%,#1764ae80,transparent 48%),
    radial-gradient(ellipse at 0% 65%,#164b8b66,transparent 55%),
    linear-gradient(155deg,#07182f 0%,#0c2d55 48%,#06162d 100%);
}
.app::before {
  background-image: linear-gradient(#87c6ff09 1px,transparent 1px),linear-gradient(90deg,#87c6ff09 1px,transparent 1px);
}
main { color: #f3f8ff; }
main > .muted, main > p.muted, footer.foot, footer.foot .muted,
footer.foot .disclosure { color: #c8dbef; }
main > h2, main > .row > h2 { color: #f3f8ff; }
.tzbar { color: #d1e3f7; }
.tzbar select { color: #f3f8ff; background: #153b66; border-color: #7199c2; color-scheme: dark; }
.tzbar select option { background: #102d50; color: #fff; }
.card, .notice, .announce, .live-banner { color: var(--navy); }
.card { background: #fff; border-color: #d5e3f1; box-shadow: 0 12px 32px #00000020; }
footer.foot a { color: #a9d4ff; text-underline-offset: 3px; }
footer.foot .linkish { color: #a9d4ff; }
main > .row .pill.good { color: #b4f5d5; border-color: #85dbb4; }
footer.foot .btn { color: var(--navy); }
footer.foot .btn.primary { color: #fff; }
#tl-install-status { background: #14375d; color: #e0eeff; }

/* Floating bottom navigation with rounded corners. */
nav.tabs {
  width: min(calc(100% - 24px), 496px);
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  border: 1px solid #d5e3f1;
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 10px 32px #020d2b40;
}
nav.tabs .inner { padding: 7px; }
nav.tabs button { border-radius: 17px; }

/* Rounded brand header. */
header.top {
  margin: 12px 12px 0;
  border: 1px solid #7cc4ff40;
  border-radius: 22px;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  padding: 15px 14px;
}
@media(max-width:380px) {
  header.top { margin: 10px 8px 0; padding: 13px 10px; border-radius: 20px; }
}

/* Reference gradient: plum, muted violet, slate blue and teal. */
body {
  background-color: #6c648d;
  background-image: linear-gradient(155deg,#92539a 0%,#865090 24%,#71658f 53%,#587f92 100%);
}
.app {
  background: linear-gradient(155deg,#92539a 0%,#865090 24%,#71658f 53%,#587f92 100%);
}
.app::before { display: none; }
.tzbar { color: #fff; }
.tzbar select { background: #3d385c; color: #fff; border-color: #b7b7d1; }
main > .muted, main > p.muted, footer.foot, footer.foot .muted,
footer.foot .disclosure { color: #fff; }
footer.foot a, footer.foot .linkish { color: #fff; }
.share-card .btn { margin-top: 7px; }
.share-url { display: block; margin-top: 12px; text-align: center; overflow-wrap: anywhere; font-size: 12px; }
.welcome-intro { padding: 2px 2px 6px; color: #fff; }
.welcome-kicker { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.welcome-intro h2 { font-size: 27px; line-height: 1.2; margin-bottom: 12px; color: #fff; }
.welcome-intro p { font-size: 14px; line-height: 1.65; }
.welcome-intro .welcome-access { font-size: 12px; margin-top: 12px; }
.welcome-signin { border: 0; padding: 5px 0; background: none; color: #fff; text-align: left; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
