:root {
  /* ===== CERPS tech-blue · AI-gradient system =====
     Palette derived from the CERPS logo ring: indigo → azure → bright cyan. */
  --brand-cyan: #00bbed;     /* primary brand — luminous tech cyan */
  --brand-azure: #2087c6;
  --brand-indigo: #353b91;
  --brand-violet: #3c37c7;

  /* Primary (legacy --blue* names kept so admin.css inherits the accent) */
  --blue: #1573c9;           /* azure — readable for white text on solids */
  --blue-dark: #0c4f9e;
  --blue-soft: #5aa6e4;
  --gold: #36d3ff;           /* luminous cyan kicker on dark blocks */
  --teal: #0e8aa8;           /* secondary cyan-teal */
  --teal-dark: #0a6076;

  /* AI gradients */
  --grad-brand: linear-gradient(118deg, #3c37c7 0%, #2466cb 42%, #1492d6 72%, #00bbed 100%);
  /* CTA gradient — every stop keeps white-text contrast >= AA (4.5:1) */
  --grad-cta: linear-gradient(120deg, #3a34c4 0%, #1b62c5 50%, #1670b4 100%);

  /* Cool neutrals (light surfaces) */
  --ink: #0d1a2d;
  --ink-soft: #2c3a52;
  --muted: #5a6b85;
  --faint: #93a2bb;
  --line: #dde7f4;
  --line-strong: #c3d3e8;
  --surface: #ffffff;
  --surface-2: #f3f8fe;
  --bg: #eef3fb;
  --bg-alt: #e5edf9;

  /* Dark blocks (hero / footer / topbar) */
  --navy: #0a1228;
  --navy-2: #111b3a;
  --ink-dark: #060b1c;

  /* Semantic */
  --danger: #d83a47;  --danger-soft: #fae3e5;
  --success: #0f9d83; --success-soft: #d9f3ec;
  --warning: #b9760a; --warning-soft: #f8ebd2;
  --info: #1573c9;    --info-soft: #e4eefb;
  --soft-blue: #e6f0fd;   /* azure tint */
  --soft-teal: #def4f7;   /* cyan tint */

  /* Depth — blue-tinted, layered, low opacity */
  --shadow-xs: 0 1px 2px rgba(12, 36, 84, .06);
  --shadow-sm: 0 1px 2px rgba(12, 36, 84, .06), 0 6px 16px rgba(12, 36, 84, .06);
  --shadow-md: 0 16px 38px rgba(13, 40, 96, .12), 0 4px 10px rgba(13, 40, 96, .06);
  --shadow-lg: 0 34px 78px rgba(6, 18, 52, .30);
  --glow-cyan: 0 8px 22px rgba(0, 187, 237, .18);
  --glow-blue: 0 8px 22px rgba(21, 115, 201, .20);
  --ring: 0 0 0 3px rgba(32, 135, 198, .34);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;

  /* Spacing scale */
  --s1: 6px; --s2: 10px; --s3: 16px; --s4: 24px; --s5: 36px; --s6: 56px; --s7: 88px;

  /* Motion */
  --dur: .22s;
  --ease: cubic-bezier(.2, .7, .25, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);

  /* Type — tech display + clean body + mono technical accents */
  --font-display: "Sora", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Manrope", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: var(--font-display);  /* back-compat alias for admin.css */
  --sans: var(--font-body);      /* back-compat alias */

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fine grain overlay for depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--blue-dark); }

section[id] { scroll-margin-top: 88px; }
h1, h2, h3, h4, p { margin-top: 0; }
::selection { background: rgba(0, 187, 237, .20); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 3px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* Gradient-clipped numerals utility */
.grad-text {
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.skip-link {
  position: fixed; top: 10px; left: 50%;
  transform: translateX(-50%) translateY(-150%);
  z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 8px; font-weight: 800; text-decoration: none;
  box-shadow: var(--shadow-lg); transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }
.hidden { display: none !important; }

/* Scroll reveal — .reveal added by JS, so content is visible without JS */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-bg, .hero-orb, .hero-ring, .to-top, *::before, *::after { animation: none !important; }
}

/* ---------- Scroll progress + back to top ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: var(--grad-brand); box-shadow: 0 0 12px rgba(0, 187, 237, .5); transition: width .1s linear; }
.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--blue-dark);
  box-shadow: var(--shadow-md); cursor: pointer; display: grid; place-items: center;
  font-size: 19px; opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-spring), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  z-index: 55;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background-image: var(--grad-cta); color: #fff; border-color: transparent; transform: translateY(-3px); box-shadow: var(--glow-blue); }
.to-top:active { transform: translateY(0); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(238, 243, 251, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav.scrolled { background: rgba(244, 248, 254, .92); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { position: relative; max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 32px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; box-shadow: 0 4px 14px rgba(0, 187, 237, .28); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: 11.5px; letter-spacing: .3px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a {
  position: relative; padding: 8px 13px; border-radius: 8px; text-decoration: none;
  color: var(--ink-soft); font-weight: 600; font-size: 14px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav-links > a:hover { color: var(--blue-dark); }
.nav-links > a.current { color: var(--blue-dark); }
.nav-links > a.current::after { transform: scaleX(1); }
.nav-account { display: flex; align-items: center; gap: 10px; margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
#accountName { color: var(--muted); font-size: 13px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); cursor: pointer; padding: 0; transition: border-color var(--dur) var(--ease); }
.nav-toggle:hover { border-color: var(--blue-soft); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; }

/* ---------- Buttons ---------- */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; border: 1px solid transparent; border-radius: 9px; padding: 9px 18px;
  font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none;
  letter-spacing: .1px;
  transition: transform var(--dur) var(--ease-spring), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.button:active { transform: translateY(1px); }
.button.primary { background-image: var(--grad-cta); color: #fff; box-shadow: var(--glow-blue); }
.button.primary:hover { box-shadow: 0 16px 34px rgba(0, 150, 220, .4); transform: translateY(-1px); filter: saturate(1.08) brightness(1.03); }
.button.ghost { background: var(--surface); color: var(--blue-dark); border-color: var(--line-strong); }
.button.ghost:hover { background: var(--soft-blue); border-color: var(--blue-soft); transform: translateY(-1px); }
.button.outline { background: rgba(255, 255, 255, .5); color: var(--blue-dark); border-color: var(--blue-soft); }
.button.outline:hover { background: var(--soft-blue); border-color: var(--blue); transform: translateY(-1px); }
.button.lg { min-height: 52px; padding: 14px 28px; font-size: 16px; border-radius: 11px; }
.button.sm { min-height: 34px; padding: 6px 13px; font-size: 13px; border-radius: 8px; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }

/* ---------- Hero (light AI-gradient cover) ---------- */
.hero { position: relative; overflow: hidden; color: var(--ink); background: var(--surface); isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(60, 55, 199, .12), transparent 60%),
    radial-gradient(820px 620px at 100% 8%, rgba(0, 187, 237, .14), transparent 58%),
    radial-gradient(700px 700px at 60% 120%, rgba(32, 135, 198, .10), transparent 62%),
    linear-gradient(165deg, #ffffff 0%, #eff5fe 58%, #e6eefc 122%);
}
/* faint technical grid, fading right */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(40, 90, 170, .05) 1px, transparent 1px),
    linear-gradient(rgba(40, 90, 170, .045) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 0% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(120% 100% at 0% 0%, #000 30%, transparent 80%);
}
/* drifting aurora orbs — soft pastel washes */
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(72px); opacity: .34; pointer-events: none; }
.hero-orb.orb-a { width: 460px; height: 460px; top: -140px; left: -80px; background: radial-gradient(circle, rgba(60, 55, 199, .55), transparent 66%); animation: drift-a 19s var(--ease) infinite; }
.hero-orb.orb-b { width: 420px; height: 420px; top: -60px; right: -60px; background: radial-gradient(circle, rgba(0, 187, 237, .55), transparent 66%); animation: drift-b 23s var(--ease) infinite; }
.hero-orb.orb-c { width: 380px; height: 380px; bottom: -160px; left: 38%; background: radial-gradient(circle, rgba(32, 135, 198, .45), transparent 67%); animation: drift-c 27s var(--ease) infinite; }
@keyframes drift-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(46px, 34px); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 30px); } }
@keyframes drift-c { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -30px); } }
/* orbital rings echoing the logo mark */
.hero-ring { position: absolute; z-index: -1; right: -180px; top: 50%; width: 620px; height: 620px; transform: translateY(-50%); border-radius: 50%; border: 1.5px solid rgba(21, 115, 201, .12); pointer-events: none; }
.hero-ring::before { content: ""; position: absolute; inset: 70px; border-radius: 50%; border: 1.5px solid rgba(0, 187, 237, .12); }
.hero-ring::after { content: ""; position: absolute; inset: 150px; border-radius: 50%; border: 1.5px solid rgba(21, 115, 201, .09); }
.hero-ring.ring-2 { right: auto; left: -240px; top: 18%; width: 360px; height: 360px; transform: none; border-color: rgba(21, 115, 201, .08); }
.hero-ring.ring-2::before, .hero-ring.ring-2::after { display: none; }

.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(58px, 8.5vw, 120px) clamp(16px, 4vw, 32px) clamp(48px, 6vw, 88px); }
.eyebrow { margin: 0; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--blue); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); }
.hero .eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #00bbed, #7a7bff); }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 6.1vw, 72px); line-height: 1.03; letter-spacing: -.03em; margin: 20px 0 18px; max-width: 19ch; text-wrap: balance; }
.hero-theme { font-size: clamp(17px, 2.1vw, 23px); color: var(--ink-soft); max-width: 56ch; margin: 0 0 14px; font-weight: 400; line-height: 1.55; }
.hero-meta { font-family: var(--font-mono); color: var(--muted); font-size: 13.5px; letter-spacing: .2px; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.countdown { display: inline-flex; flex-direction: column; gap: 14px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); }
.cd-label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--blue); letter-spacing: 1.6px; text-transform: uppercase; }
.cd-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.cd-grid > div { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 10px 8px; border-radius: 9px; background: var(--soft-blue); border: 1px solid var(--line); }
.cd-grid strong { font-family: var(--font-mono); font-weight: 700; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--blue-dark); }
.cd-grid span { font-size: 11px; color: var(--muted); margin-top: 6px; letter-spacing: .5px; }

/* ---------- Alerts / notices / badges ---------- */
.alert-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
#authError { margin-top: 18px; }
.notice { padding: 16px 18px; background: var(--info-soft); border: 1px solid #cfe0f6; border-left: 3px solid var(--info); border-radius: var(--radius-sm); color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; }
.notice strong { font-size: 15px; color: var(--ink); }
.notice span { font-size: 14px; }
.notice.danger { background: var(--danger-soft); border-color: #f3c9cd; border-left-color: var(--danger); color: var(--danger); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .2px; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ok { background: var(--success-soft); color: var(--success); border-color: #b3e2d6; }
.badge--info { background: var(--info-soft); color: var(--info); border-color: #c6dcf7; }
.badge--warn { background: var(--warning-soft); color: var(--warning); border-color: #ecd6a8; }
.badge--danger { background: var(--danger-soft); color: var(--danger); border-color: #f1c4c8; }
.badge--muted { background: var(--bg-alt); color: var(--muted); border-color: var(--line-strong); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 32px); }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* soft cyan glow at the top edge of alt sections for depth */
.section.alt::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 320px; pointer-events: none; background: radial-gradient(700px 200px at 50% 0%, rgba(0, 187, 237, .07), transparent 70%); }
.section-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.section-head { margin-bottom: 44px; max-width: 66ch; }
.section-head .eyebrow { color: var(--blue); display: inline-flex; align-items: center; gap: 10px; }
.section-head .eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 0; color: var(--ink); text-wrap: balance; }
.section-lead { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.8; color: var(--ink-soft); max-width: 70ch; margin: 0; }

/* ---------- About facts ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.fact { position: relative; flex: 1 1 170px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-xs); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.fact::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--grad-brand); transform: scaleY(0); transform-origin: top; transition: transform var(--dur) var(--ease); }
.fact:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.fact:hover::before { transform: scaleY(1); }
.fact span { display: block; font-family: var(--font-mono); color: var(--muted); font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; font-weight: 500; margin-bottom: 7px; }
.fact strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--blue-dark); overflow-wrap: anywhere; }

/* ---------- Cards ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 18px; }
.topic-card, .guide-card, .speaker-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); overflow: hidden; }
.topic-card { padding: 26px; }
.topic-card::before, .guide-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.topic-card:hover, .guide-card:hover, .speaker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.topic-card:hover::before, .guide-card:hover::before { transform: scaleX(1); }
.topic-ico { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background-image: var(--grad-cta); color: #fff; font-size: 23px; margin-bottom: 16px; box-shadow: var(--glow-blue); }
.topic-ico svg { width: 25px; height: 25px; }
.topic-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 8px; color: var(--ink); letter-spacing: -.01em; }
.topic-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--brand-indigo), var(--brand-cyan)); opacity: .55; }
.tl-item { display: grid; grid-template-columns: 150px 1fr; gap: 32px; padding: 16px 0; position: relative; }
.tl-date { text-align: right; font-family: var(--font-mono); font-weight: 700; color: var(--blue-dark); font-size: 15px; padding-right: 30px; font-variant-numeric: tabular-nums; }
.tl-body { position: relative; padding-left: 6px; }
.tl-body::before { content: ""; position: absolute; left: -38px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-cyan); box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(0, 187, 237, .5); }
.section.alt .tl-body::before { box-shadow: 0 0 0 4px var(--bg-alt), 0 0 12px rgba(0, 187, 237, .5); }
.tl-body h3 { font-family: var(--font-display); font-weight: 700; margin: 0 0 4px; font-size: 18px; letter-spacing: -.01em; }
.tl-body p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Guidelines ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(246px, 1fr)); gap: 18px; margin-bottom: 28px; }
.guide-card { padding: 26px 24px 24px; }
.guide-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background-image: var(--grad-cta); color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 16px; margin-bottom: 14px; box-shadow: var(--glow-blue); }
.guide-card h3 { font-family: var(--font-display); font-weight: 700; margin: 0 0 8px; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.guide-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Agenda ---------- */
.agenda { display: grid; gap: 8px; max-width: 860px; }
.agenda-row { display: grid; grid-template-columns: 100px 1fr; gap: 24px; align-items: start; padding: 16px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.agenda-row:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); border-color: var(--blue-soft); }
.agenda-row.break { background: transparent; box-shadow: none; border-style: dashed; }
.agenda-time { font-family: var(--font-mono); font-weight: 700; color: var(--blue-dark); font-variant-numeric: tabular-nums; font-size: 15px; }
.agenda-row h3 { font-family: var(--font-display); font-weight: 700; margin: 0 0 4px; font-size: 16px; letter-spacing: -.01em; }
.agenda-row p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Speakers ---------- */
.speaker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 18px; }
.speaker-card { padding: 28px 22px; text-align: center; }
.speaker-avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--soft-blue), var(--soft-teal)); color: var(--blue); font-family: var(--font-display); font-size: 30px; box-shadow: inset 0 0 0 1px rgba(21, 115, 201, .18); }
.speaker-card h3 { font-family: var(--font-display); font-weight: 700; margin: 0 0 4px; font-size: 19px; letter-spacing: -.01em; }
.speaker-role { margin: 0 0 8px; font-family: var(--font-mono); color: var(--blue); font-weight: 500; font-size: 11.5px; letter-spacing: .3px; text-transform: uppercase; }
.speaker-talk { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Sponsors ---------- */
.sponsor-tier { margin-bottom: 32px; }
.sponsor-tier:last-child { margin-bottom: 0; }
.sponsor-tier h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); text-align: center; margin: 0 0 18px; font-weight: 500; }
.sponsor-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.sponsor-logo { width: 196px; height: 92px; display: grid; place-items: center; padding: 0 16px; text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; font-size: 14px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.sponsor-logo:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--blue-soft); }
.sponsor-logo.solid { border-style: solid; border-color: transparent; background: var(--soft-blue); color: var(--blue-dark); font-family: var(--font-display); font-size: 15px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(21, 115, 201, .25); }

/* ---------- Workspace console ---------- */
.gate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand-cyan); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.gate strong { display: block; font-size: 16px; margin-bottom: 4px; }
.gate span { color: var(--muted); font-size: 14px; }
.console { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.console-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.stat { background: var(--surface); padding: 22px 24px; }
.stat span { display: block; font-family: var(--font-mono); color: var(--muted); font-size: 11px; letter-spacing: .4px; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 32px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; background: var(--grad-cta); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.stat.accent { background: var(--soft-teal); }
.stat.accent strong { font-size: 17px; background: none; -webkit-text-fill-color: var(--teal-dark); color: var(--teal-dark); }
.console-tabs { display: flex; gap: 2px; padding: 12px 14px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.console-tab { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 12px 17px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.console-tab:hover { color: var(--ink); }
.console-tab.active { color: var(--blue-dark); border-bottom-color: var(--brand-cyan); }
.chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.console-tab.active .chip { background: var(--soft-blue); color: var(--blue-dark); }
.panel { padding: clamp(20px, 3vw, 30px); }
.panel-intro { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
label { display: grid; gap: 7px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
label.wide, .form-actions.wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 14px; background: var(--surface); color: var(--ink); min-height: 46px; font-weight: 500; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; line-height: 1.6; min-height: 96px; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6b85' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-azure); box-shadow: var(--ring); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 14px; }
th { background: var(--surface-2); color: var(--ink-soft); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; font-weight: 500; position: sticky; top: 0; border-bottom: 2px solid var(--line-strong); }
tbody tr { transition: background var(--dur) var(--ease); }
tbody tr:hover { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td strong { font-weight: 700; }
td span { color: var(--muted); font-size: 13px; }
td a { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
td a:hover { text-decoration: underline; }

/* ---------- Review ---------- */
.review-list { display: grid; gap: 16px; }
.review-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.review-title { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.review-title h3 { font-family: var(--font-display); font-weight: 700; margin: 0; font-size: 19px; letter-spacing: -.01em; }
.review-title span { color: var(--muted); font-size: 13px; }
.score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--surface-2); color: var(--ink-soft); position: relative; border-top: 1px solid var(--line); }
.footer::before { content: ""; display: block; height: 3px; background: var(--grad-brand); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: clamp(48px, 6vw, 72px) clamp(16px, 4vw, 32px); }
.footer-brand img { width: 188px; height: auto; margin-bottom: 14px; }
.footer-brand strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 17px; margin-bottom: 6px; letter-spacing: -.01em; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 42ch; }
.footer h4 { color: var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .8px; text-transform: uppercase; margin: 0 0 14px; }
.footer a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 14px; padding: 5px 0; transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease); }
.footer a:hover { color: var(--blue-dark); padding-left: 4px; }
.footer-bar { border-top: 1px solid var(--line); }
.footer-bar > span { display: block; max-width: var(--maxw); margin: 0 auto; padding: 18px clamp(16px, 4vw, 32px); font-size: 13px; color: var(--muted); }

/* ---------- Toast ---------- */
.toast { position: fixed; right: 18px; bottom: 18px; max-width: min(420px, calc(100vw - 36px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--brand-cyan); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow-lg); z-index: 70; animation: toastIn .3s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px clamp(16px, 4vw, 32px) 16px; box-shadow: var(--shadow-md); display: none; }
  .nav-links.open { display: flex; animation: navDrop .22s var(--ease); }
  @keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } }
  .nav-links > a { padding: 11px 12px; }
  .nav-links > a::after { display: none; }
  .nav-links > a.current { background: var(--soft-blue); }
  .nav-account { margin: 8px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); justify-content: space-between; }
  #accountName { max-width: none; }
  .hero-ring { display: none; }
}
@media (max-width: 700px) {
  .timeline::before { display: none; }
  .tl-item { grid-template-columns: 1fr; gap: 2px; padding: 14px 0 14px 18px; border-left: 2px solid var(--brand-cyan); }
  .tl-body { padding-left: 0; }
  .tl-body::before { display: none; }
  .tl-date { text-align: left; padding: 0; color: var(--blue-dark); }
}
@media (max-width: 620px) {
  .console-stats { grid-template-columns: 1fr; }
  .form-grid, .score-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-cta .button { flex: 1 1 100%; }
  .to-top { right: 14px; bottom: 14px; }
}
@media (max-width: 560px) {
  .agenda-row { grid-template-columns: 74px 1fr; gap: 14px; padding: 14px 16px; }
  .sponsor-logo { width: 100%; max-width: 260px; }
}
