/* Mega AI Skills Fest 2026 — mobile agenda. ECSIGHT palette, Neon Blue primary. */
:root {
  --primary: #0e6efa;          /* Neon Blue */
  --primary-2: #3b7df1;        /* Bluetiful */
  --primary-3: #6097f1;        /* Sky Blue */
  --primary-soft: rgba(77, 138, 240, .14); /* Cornflower tint */
  --ink: #212c6b;              /* Dark Blue */
  --ink-2: #374174;            /* Deep Charcoal */
  --ink-3: #616891;            /* Slate Blue */
  --bg: #efefef;               /* Bright Grey */
  --card: #ffffff;
  --line: #e2e4e7;             /* Platinum */
  --line-2: #d1d6db;           /* Light Grey */
  --chip: #d9dde2;             /* Pale Slate Blue */
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(33, 44, 107, .04), 0 8px 24px rgba(33, 44, 107, .07);
  --shadow-lg: 0 12px 32px rgba(14, 110, 250, .28);
  --grad: linear-gradient(135deg, #0e6efa 0%, #3b7df1 55%, #6097f1 100%);
  --grad-deep: linear-gradient(150deg, #212c6b 0%, #003bba 55%, #0e6efa 100%);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink);
  font: 15px/1.5 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(120% 340px at 50% -80px, rgba(96, 151, 241, .45), rgba(96, 151, 241, 0) 70%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.app { max-width: 520px; margin: 0 auto; padding: 0 16px calc(110px + var(--safe-b)); min-height: 100dvh; display: flex; flex-direction: column; }
.view { flex: 1; }
.loading { padding: 80px 0; text-align: center; color: var(--ink-3); }

/* ---------- Header ---------- */
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 0 12px; }
.topbar .brand { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-deep); display: grid; place-items: center; box-shadow: var(--shadow); flex: none; overflow: hidden; }
.topbar .brand img { width: 40px; }
.topbar .where { flex: 1; text-align: center; line-height: 1.25; }
.topbar .where small { display: block; font-size: 12px; color: var(--ink-3); }
.topbar .where b { font-size: 14px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.topbar .where svg { width: 14px; height: 14px; color: var(--primary); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; flex: none; color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.page-head { display: flex; align-items: center; gap: 12px; padding: 14px 0 10px; }
.page-head h1 { flex: 1; text-align: center; font-size: 16px; margin: 0; font-weight: 600; display: flex; gap: 6px; justify-content: center; align-items: center; }
.page-head h1 .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.page-head .spacer { width: 44px; }

/* ---------- Search ---------- */
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 999px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); margin: 4px 0 14px; }
.search svg { color: var(--ink-2); flex: none; width: 20px; }
.search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); min-width: 0; padding: 8px 0; }
.search input::placeholder { color: var(--ink-3); }
.search .clear { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.search .clear svg { color: #fff; width: 18px; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 18px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 13px; font-weight: 500; box-shadow: var(--shadow); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.chip .sw { width: 8px; height: 8px; border-radius: 50%; }
.chip[aria-pressed="true"] { background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); }
.chip[aria-pressed="true"] .sw { background: #fff !important; }

.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 10px; }
.section-title h2 { font-size: 17px; margin: 0; font-weight: 600; }
.section-title a, .section-title button { color: var(--primary); font-size: 13px; font-weight: 500; }

/* ---------- Hero card ---------- */
.hero-wrap { position: relative; padding-top: 14px; margin-bottom: 8px; }
.hero-wrap::before, .hero-wrap::after { content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 40px; border-radius: var(--radius) var(--radius) 0 0; background: rgba(96, 151, 241, .45); }
.hero-wrap::after { left: 11px; right: 11px; top: 7px; background: rgba(59, 125, 241, .6); }
.hero { position: relative; z-index: 1; display: block; border-radius: var(--radius); background: var(--grad); color: #fff; padding: 18px 18px 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.hero.deep { background: var(--grad-deep); }
.hero .kicker { font-size: 12px; opacity: .85; display: flex; gap: 6px; align-items: center; }
.hero .kicker .live { width: 8px; height: 8px; border-radius: 50%; background: #7cf0a0; box-shadow: 0 0 0 4px rgba(124, 240, 160, .25); }
.hero h3 { font-size: 18px; line-height: 1.35; margin: 6px 0 4px; font-weight: 600; }
.hero p { margin: 0; font-size: 13px; opacity: .9; }
.hero .row { display: flex; gap: 12px; align-items: center; }
.hero .avatar { width: 62px; height: 62px; border: 3px solid rgba(255, 255, 255, .5); }
.hero .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.hero .tags span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); }
.hero .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.hero .time { font-size: 18px; font-weight: 700; }
.hero .time small { font-size: 12px; font-weight: 400; opacity: .8; }
.hero .cta { background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; box-shadow: 0 6px 16px rgba(33, 44, 107, .2); }
.hero .cta svg { width: 16px; height: 16px; }
.hero .logo-stage { height: 64px; width: auto; margin: 4px 0 10px; }

/* ---------- Session card (Job List style) ---------- */
.list { display: grid; gap: 12px; }
.time-group { margin-top: 6px; }
.time-label { font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 14px 4px 8px; display: flex; gap: 8px; align-items: center; }
.time-label::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; position: relative; display: block; }
.s-card { border-left: 0; }
.s-card .head { display: flex; gap: 12px; align-items: flex-start; padding-right: 34px; }
.logo-box { width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex: none; overflow: hidden; padding: 4px; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-box.stage { border: 0; color: #fff; font-weight: 700; font-size: 13px; }
.s-card .stage-name { font-size: 12px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.s-card .stage-name .sw { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.s-card h3 { font-size: 15.5px; line-height: 1.4; margin: 2px 0 0; font-weight: 600; }
.s-card .sub { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-card .who { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.mini-spk { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.mini-spk .avatar { width: 28px; height: 28px; font-size: 11px; }
.mini-spk .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-spk .t { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.mini-spk .co { height: 20px; max-width: 56px; object-fit: contain; flex: none; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 500; }
.tag.hl { background: var(--primary); }
.tag.soft { background: var(--primary-soft); color: var(--primary); }
.s-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.s-card .when { color: var(--ink-3); font-size: 13px; display: flex; gap: 6px; align-items: center; }
.s-card .when svg { width: 18px; height: 18px; }
.s-card .when b { color: var(--ink); font-weight: 600; }
.btn { display: inline-flex; gap: 6px; align-items: center; justify-content: center; border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 14px; background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(14, 110, 250, .3); transition: transform .12s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; }
.btn.saved { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; }
.bookmark { position: absolute; top: 14px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; }
.bookmark svg { width: 22px; height: 22px; }
.bookmark.on { color: var(--primary); }
.bookmark.on svg { fill: currentColor; }
.s-card.now { box-shadow: 0 0 0 2px var(--primary), var(--shadow); }
.badge-now { position: absolute; top: -9px; left: 16px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }

.mini-row { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .6); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--ink-3); font-size: 13px; }
.mini-row b { color: var(--ink-2); font-weight: 600; }

.avatar { border-radius: 50%; background: var(--grad-deep); color: #fff; display: grid; place-items: center; font-weight: 600; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.empty { text-align: center; color: var(--ink-3); padding: 40px 16px; }
.empty svg { width: 40px; height: 40px; color: var(--primary-3); margin: 0 auto 10px; }
.warn { background: #fff7e6; color: #8a5300; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }

/* ---------- Detail ---------- */
.d-head { text-align: center; padding: 22px 18px; }
.d-head .logo-box { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 12px; }
.d-head h2 { font-size: 19px; line-height: 1.4; margin: 0; }
.d-head .sub { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
.d-head .stage-name { justify-content: center; margin-top: 10px; font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.d-head .big-time { font-size: 20px; font-weight: 700; margin: 12px 0 0; }
.d-head .big-time small { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.d-meta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; color: var(--ink-3); font-size: 13px; }
.d-meta span { display: inline-flex; gap: 5px; align-items: center; }
.d-meta svg { width: 17px; height: 17px; }
.card h4 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.stack { display: grid; gap: 12px; margin-top: 12px; }
.spk-row { display: flex; gap: 12px; align-items: center; }
.spk-row .avatar { width: 56px; height: 56px; font-size: 18px; }
.spk-row .info { flex: 1; min-width: 0; }
.spk-row .n { font-weight: 600; }
.spk-row .t { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.spk-row .role { font-size: 11px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.spk-row .logo-box { width: 52px; height: 40px; border-radius: 10px; }
.spk-row + .spk-row { border-top: 1px solid var(--line); padding-top: 12px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: calc(92px + var(--safe-b)); display: flex; justify-content: center; pointer-events: none; z-index: 20; }
.sticky-cta .btn { pointer-events: auto; padding: 14px 44px; font-size: 15px; box-shadow: var(--shadow-lg); }

/* ---------- Speakers ---------- */
.spk-grid { display: grid; gap: 10px; }
.spk-card { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; }
.spk-card .avatar { width: 52px; height: 52px; font-size: 17px; }
.spk-card .info { flex: 1; min-width: 0; }
.spk-card .n { font-weight: 600; font-size: 15px; }
.spk-card .t { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spk-card .pills { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; color: #fff; font-weight: 500; }
.spk-card .logo-box { width: 54px; height: 42px; border-radius: 10px; }
.count-note { color: var(--ink-3); font-size: 13px; margin: -6px 4px 10px; }

/* ---------- Timetable ---------- */
.tt-wrap { margin: 0 -16px; position: relative; }
.tt { overflow: auto; max-height: calc(100dvh - 200px); background: var(--card); border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); overscroll-behavior: contain; }
.tt-grid { display: grid; position: relative; }
.tt-corner, .tt-colhead { position: sticky; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--line); }
.tt-corner { left: 0; z-index: 6; }
.tt-colhead { padding: 10px 10px 8px; border-left: 1px solid var(--line); }
.tt-colhead .nm { font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.tt-colhead .nm .sw { width: 10px; height: 10px; border-radius: 3px; }
.tt-colhead small { display: block; color: var(--ink-3); font-size: 11px; line-height: 1.3; margin-top: 2px; }
.tt-colhead::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c); }
.tt-times { position: sticky; left: 0; z-index: 3; background: #fff; border-right: 1px solid var(--line); }
.tt-times div { position: absolute; left: 0; right: 0; font-size: 11px; color: var(--ink-3); padding-left: 6px; transform: translateY(-7px); }
.tt-times div.h { color: var(--ink); font-weight: 600; }
.tt-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% var(--slot); }
.tt-block { position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 6px 8px; background: #fff; border: 1px solid var(--line-2); border-left: 4px solid var(--c); overflow: hidden; font-size: 11.5px; line-height: 1.3; box-shadow: 0 1px 2px rgba(33,44,107,.06); display: flex; flex-direction: column; }
.tt-block .tm { color: var(--ink-3); font-size: 10.5px; }
.tt-block .ti { font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tt-block .sp { color: var(--ink-3); margin-top: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 4px; align-items: center; }
.tt-block .sp img { height: 14px; max-width: 34px; object-fit: contain; flex: none; }
.tt-block.minor { background: repeating-linear-gradient(-45deg, #f6f7f9, #f6f7f9 6px, #fff 6px, #fff 12px); border-left-color: var(--line-2); color: var(--ink-3); justify-content: center; align-items: center; font-weight: 500; }
.tt-block.on { background: var(--primary-soft); border-color: var(--primary); }
.tt-block .ck { position: absolute; top: 5px; right: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.tt-block .ck svg { width: 11px; height: 11px; stroke-width: 3; }
.tt-block.hl:not(.on) { background: linear-gradient(180deg, #f3f7ff, #fff); }
.tt-now { position: absolute; left: 0; right: 0; height: 2px; background: #ff3b5c; z-index: 2; pointer-events: none; }
.tt-now::before { content: attr(data-t); position: sticky; left: 4px; top: -9px; display: inline-block; transform: translateY(-50%); background: #ff3b5c; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* ---------- Info ---------- */
.seg { display: flex; background: var(--card); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); margin-bottom: 14px; }
.seg button { flex: 1; padding: 9px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-3); }
.seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.about-hero { background: var(--grad-deep); border-radius: var(--radius); padding: 26px 20px 22px; color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.about-hero img { width: 220px; margin: 0 auto; }
.about-hero p { margin: 12px 0 0; opacity: .9; font-size: 14px; }
.about-hero .facts { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.about-hero .facts span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 5px 12px; border-radius: 999px; font-size: 13px; }
.stage-card { border-radius: var(--radius); padding: 16px; color: #fff; background: var(--c); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stage-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0, rgba(255,255,255,.22), transparent 60%); pointer-events: none; }
.stage-card img { height: 54px; width: auto; }
.stage-card .meta { font-size: 13px; margin-top: 10px; opacity: .95; }
.stage-card .meta b { font-weight: 600; }
.stage-card .meta div + div { margin-top: 2px; }
.stage-card .go { position: absolute; right: 14px; bottom: 14px; z-index: 1; background: rgba(255,255,255,.2); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; }
.map-ph { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--ink-3); background: rgba(255,255,255,.6); }
.map-ph svg { width: 44px; height: 44px; color: var(--primary); margin: 0 auto 8px; }
.map-ph h3 { margin: 0 0 4px; color: var(--ink); font-size: 16px; }
.legend { display: grid; gap: 8px; margin-top: 14px; }
.legend div { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.legend .sw { width: 14px; height: 14px; border-radius: 4px; }

/* ---------- Speaker info (secret) ---------- */
.sp-head { text-align: center; }
.sp-head .avatar { width: 84px; height: 84px; font-size: 26px; margin: 0 auto 10px; border: 4px solid #fff; box-shadow: var(--shadow); }
.sp-head .logo-box { margin: 10px auto 0; width: 72px; height: 44px; }
.info-sec { display: flex; gap: 12px; }
.info-sec .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.info-sec .bd { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); }
.info-sec .bd h4 { margin: 0 0 4px; color: var(--ink); }
.info-sec .bd p { margin: 0 0 6px; white-space: pre-line; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 12px 20px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.timeline li::after { content: ''; position: absolute; left: 7px; top: 17px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline b { color: var(--ink); }
details.qa { border-top: 1px solid var(--line); padding: 10px 0; }
details.qa:first-of-type { border-top: 0; }
details.qa summary { font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
details.qa summary::after { content: '+'; color: var(--primary); font-weight: 700; }
details.qa[open] summary::after { content: '–'; }
details.qa p { margin: 6px 0 0; }
.contact { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.contact:first-of-type { border-top: 0; }
.contact .info { flex: 1; }
.contact .info b { display: block; color: var(--ink); }
.contact a.btn { padding: 8px 14px; font-size: 13px; }
.placeholder-note { font-size: 12px; color: var(--ink-3); font-style: italic; }

/* ---------- Footer & tab bar ---------- */
.site-footer { text-align: center; padding: 28px 0 8px; font-size: 13px; color: var(--ink-3); }
.site-footer a { display: inline-flex; gap: 4px; align-items: center; padding: 8px 12px; }
.site-footer strong { color: var(--primary); letter-spacing: .02em; }
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); width: min(100% - 24px, 496px); height: 68px; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-radius: 26px; box-shadow: 0 10px 30px rgba(33, 44, 107, .14); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; z-index: 30; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--ink-3); font-weight: 500; padding: 8px 0; }
.tabbar a[aria-current="page"] { color: var(--primary); }
.tabbar a[aria-current="page"] svg { stroke-width: 2.2; }
.tabbar .fab { width: 60px; height: 60px; border-radius: 50%; background: var(--grad); color: #fff; justify-self: center; margin-top: -30px; justify-content: center; box-shadow: var(--shadow-lg); border: 4px solid var(--bg); position: relative; }
.tabbar .fab svg { width: 24px; height: 24px; }
.tabbar .fab[aria-current="page"] { color: #fff; }
.tabbar .fab[aria-current="page"] svg { fill: #fff; }
.fab-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #ff3b5c; color: #fff; font-size: 11px; display: grid; place-items: center; border: 2px solid #fff; }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px; opacity: 0; transition: .25s; z-index: 40; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hidden-sp .tabbar { display: none; }
.hidden-sp .app { padding-bottom: 40px; }

@media (min-width: 720px) {
  .tt-wrap { margin: 0; }
  .app { max-width: 560px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* keep long names/titles from widening the page */
.list > *, .stack > *, .spk-grid > *, .view > * { min-width: 0; }
.mini-spk .n { min-width: 0; flex: 0 1 auto; }
.mini-spk .t { flex: 1 1 0; }
html, body { overflow-x: clip; }
.s-card h3, .d-head h2, .spk-card .n { overflow-wrap: anywhere; }
.tt-block { gap: 1px; }
.tt-block .ti { -webkit-line-clamp: 2; line-height: 1.3; }
.tt-block .sp { line-height: 1.5; padding-top: 2px; flex: none; }
.tt-block .tm { line-height: 1.3; flex: none; }

/* ---------- Round 2: home hero, full titles, poster stage colours ---------- */
body.is-home { background: var(--bg); }
.home-hero {
  position: relative; margin: 0 -16px; padding: calc(28px + env(safe-area-inset-top, 0px)) 16px 64px; text-align: center; color: #fff;
  background:
    radial-gradient(90% 60% at 50% 18%, rgba(96, 151, 241, .55), rgba(96, 151, 241, 0) 70%),
    linear-gradient(180deg, #0a1446 0%, #0b2a8a 38%, #0e6efa 72%, rgba(14, 110, 250, .35) 88%, var(--bg) 100%);
}
.home-hero .hh-logo { display: inline-block; }
.home-hero .hh-logo img { width: min(62vw, 230px); margin: 0 auto; filter: drop-shadow(0 6px 24px rgba(14, 110, 250, .55)); }
.home-hero .hh-when { margin: 10px 0 0; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.home-hero .hh-where { margin: 2px 0 0; font-size: 13px; opacity: .9; display: inline-flex; gap: 4px; align-items: center; }
.home-hero .hh-where svg { width: 15px; height: 15px; }
.home-hero .hh-my { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.home-hero .hh-my svg { width: 20px; height: 20px; }
.home-hero + .search { margin-top: -40px; position: relative; z-index: 2; }

/* full session titles: line 1 bold, Thai line a bit smaller, never truncated */
.tl { display: block; }
.tl2 { font-size: .9em; font-weight: 600; margin-top: 2px; }
.s-card h3, .d-head h2, .hero h3 { white-space: normal; }
.d-head h2 .tl2 { font-size: .85em; color: var(--ink-2); margin-top: 6px; }
.hero h3 .tl2 { opacity: .92; }
.t.same { color: var(--ink); white-space: normal; overflow: visible; }
.tt-block .ti { -webkit-line-clamp: 3; font-size: 11px; }
.tt-block .ti .tl, .tt-block .ti .tl2 { display: inline; font-size: inherit; margin: 0; }
.tt-block .ti .tl2::before { content: ' '; }
.tt-block .ti .tl2 { font-weight: 500; color: var(--ink-2); }

/* selected stage chip takes that stage's poster colour */
.chip[style*="--sc"][aria-pressed="true"] { background: var(--sc); color: var(--so); box-shadow: 0 8px 20px color-mix(in srgb, var(--sc) 40%, transparent); }
.chip[style*="--sc"][aria-pressed="true"] .sw { background: var(--so) !important; }

/* About: stage cards like the posters (navy into stage colour, glowing border) */
.stage-card { background: linear-gradient(150deg, #0a1446 0%, color-mix(in srgb, var(--c) 70%, #0a1446) 55%, var(--c) 100%); border: 2px solid color-mix(in srgb, var(--c) 55%, #ffffff); box-shadow: 0 10px 28px color-mix(in srgb, var(--c) 35%, transparent); }

/* ---------- Round 3: session card v2 ---------- */
.home-hero .hh-logo img { width: min(46vw, 170px); }
.home-hero .hh-info { margin: 10px 0 0; font-size: 13px; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.home-hero .hh-info span { display: inline-flex; align-items: center; gap: 4px; }
.home-hero .hh-info strong { font-weight: 600; }
.home-hero .hh-info span:first-child { font-weight: 600; }
.home-hero .hh-info svg { width: 14px; height: 14px; }
.home-hero .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.7); }
.home-hero { padding-bottom: 58px; }

/* stage accent: coloured top bar + tinted stage pill */
.s-card { overflow: hidden; padding-top: 18px; }
.s-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.sc-time { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--ink); }
.sc-time svg { width: 18px; height: 18px; color: var(--ct); }
.sc-stage { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--ct); background: color-mix(in srgb, var(--c) 14%, #fff); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.s-card h3 { font-size: 16px; margin: 0; padding: 0; }

/* speakers: name on line 1, title/company + logo on line 2 */
.s-card .who { gap: 10px; margin-top: 14px; }
.spk-line { display: flex; gap: 10px; align-items: center; min-width: 0; }
.spk-line .avatar { width: 40px; height: 40px; font-size: 14px; }
.sl-txt { min-width: 0; flex: 1; }
.sl-n { font-weight: 600; font-size: 14px; line-height: 1.35; }
.sl-n .mod { font-size: 10.5px; font-weight: 700; color: var(--ct); background: color-mix(in srgb, var(--c) 14%, #fff); padding: 1px 6px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; letter-spacing: .03em; text-transform: uppercase; }
.sl-t { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; min-width: 0; }
.sl-t span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sl-t .co { height: 18px; max-width: 64px; object-fit: contain; flex: none; }
.s-card .foot { gap: 10px; }
.s-card .foot .tags { margin: 0; }

/* highlight: soft stage-colour glow from the bottom-right corner */
.s-card.is-hl { background: radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--c) 22%, transparent) 0%, transparent 60%), #fff; }
.s-card.now { box-shadow: 0 0 0 2px var(--c), var(--shadow); }
.s-card .badge-now { background: var(--c); color: var(--co); top: 10px; left: auto; right: 16px; }
.d-head { padding-top: 26px; }

/* ---------- Round 4: Timetable v2 ---------- */
/* full-height layout: header + stage filter + grid fills the screen, no footer */
body.is-tt { overflow: hidden; }
.is-tt .app { height: 100dvh; padding-bottom: 0; overflow: hidden; }
.is-tt .view { display: flex; flex-direction: column; min-height: 0; }
.is-tt .site-footer { display: none; }
.tt-head {
  margin: 0 -16px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 12px; text-align: center; flex: none;
  background: radial-gradient(80% 120% at 50% 0%, rgba(96, 151, 241, .5), rgba(96, 151, 241, 0) 70%), linear-gradient(180deg, #0a1446 0%, #0b2a8a 100%);
}
.tt-head a { display: inline-block; }
.tt-head img { height: 46px; width: auto; margin: 0 auto; filter: drop-shadow(0 4px 14px rgba(14, 110, 250, .55)); }
.tt-chips { flex: none; margin: 10px -16px 10px; padding: 0 16px; }
.is-tt .tt-wrap { flex: 1; min-height: 0; display: flex; }
.is-tt .tt { flex: 1; max-height: none; height: 100%; padding-bottom: calc(96px + var(--safe-b)); }
@media (min-width: 720px) { .tt-chips { margin-left: 0; margin-right: 0; padding: 0; } }

/* no highlight tint on timetable blocks */
.tt-block.hl:not(.on) { background: #fff; }
button.tt-block, a.tt-block { cursor: pointer; }

/* brand logos only, every brand in its own circle */
.tt-block .lgs { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; flex: none; }
.tt-block .lg { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; padding: 3px; }
.tt-block .lg img { width: 100%; height: 100%; object-fit: contain; }
.sl-t .co { border-radius: 4px; padding: 1px 3px; }

/* lunch fills the full midday gap of each stage */
.tt-lunch { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: repeating-linear-gradient(-45deg, #eef1f6, #eef1f6 8px, #f6f8fb 8px, #f6f8fb 16px); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: 12.5px; z-index: 1; }
.tt-lunch small { font-weight: 500; font-size: 10.5px; color: var(--ink-3); }
.tt-now[hidden] { display: none; }
.tt-now { z-index: 5; }

/* session details as a bottom-sheet modal */
.modal { position: fixed; inset: 0; z-index: 60; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 70, .45); opacity: 0; transition: opacity .2s ease; }
.modal-sheet { position: absolute; left: 50%; bottom: 0; width: min(100%, 560px); max-height: 88dvh; display: flex; flex-direction: column; background: var(--bg); border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(10, 20, 70, .25); transform: translate(-50%, 100%); transition: transform .22s ease; overflow: hidden; }
.modal-sheet::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--c); }
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-sheet { transform: translate(-50%, 0); }
.modal-bar { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 12px 6px; flex: none; }
.modal-bar .grip { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
.modal-bar h1 { flex: 1; text-align: center; font-size: 16px; margin: 0; font-weight: 600; }
.modal-body { overflow-y: auto; padding: 4px 16px 16px; overscroll-behavior: contain; flex: 1; min-height: 0; }
.modal-body .stack { margin-top: 0; }
.modal-cta { flex: none; padding: 10px 16px calc(12px + var(--safe-b)); background: var(--bg); border-top: 1px solid var(--line); }
.modal-cta .btn { width: 100%; justify-content: center; }
body.modal-open .tabbar { display: none; }
