:root {
  --blue: #2886c1;
  --navy: #0e5083;
  --yellow: #fbd323;
  --sky: #d8eefc;
  --sky2: #b4dff9;
  --bg: #f4f9fd;
  --card: #ffffff;
  --fg: #16303f;
  --muted: #5a7384;
  --line: #d3e4ef;
  --bar: 48px;
}
@media (prefers-color-scheme: dark) {
  :root { --blue: #5db0e6; --navy: #9bd0f3; --sky: #14324a; --sky2: #0f2a40; --bg: #0c1a25; --card: #12293a; --fg: #e8f2f9; --muted: #9bb3c4; --line: #234257; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
a { color: var(--blue); }
button { font: inherit; color: inherit; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 14px; }
[hidden] { display: none !important; }

.bar { position: sticky; top: 0; z-index: 30; height: var(--bar); background: var(--yellow); color: #16303f; border-bottom: 3px solid var(--blue); }
.bar-in { display: flex; align-items: center; gap: 9px; height: 100%; }
.bar-logo { width: 34px; height: 34px; border-radius: 7px; background: #fff; object-fit: contain; }
.bar strong { display: block; line-height: 1.1; font-size: 15px; }
.bar-sub { font-size: 12px; opacity: .8; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; max-width: 130px; text-align: center; text-decoration: none; color: var(--muted); font-size: 11px; padding: 7px 2px 6px; min-height: 56px; }
.tabs a span { display: block; font-size: 21px; line-height: 1.2; }
.tabs a[aria-current="page"] { color: var(--blue); font-weight: 700; box-shadow: inset 0 3px 0 var(--yellow); }

h1 { font-size: 1.4rem; line-height: 1.15; margin: 14px 0 4px; color: var(--navy); }
h2 { font-size: 1.05rem; margin: 20px 0 8px; color: var(--navy); }
h3 { font-size: 1rem; margin: 0; }
.sub { color: var(--muted); margin: 0 0 10px; font-size: 14px; }
.meta { font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); padding: 18px 0; }
.pill { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 1px 8px; border-radius: 999px; background: var(--sky); color: var(--navy); text-transform: uppercase; vertical-align: middle; }
.pill.main { background: var(--yellow); color: #16303f; }
.nowtag { background: #d64545; color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 11px 18px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; min-height: 44px; }
.btn.alt { background: var(--yellow); color: #16303f; }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--fg); }
.btn.block { display: block; width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }

/* ---------- home ---------- */
.hero { margin-top: 12px; border-radius: 18px; padding: 14px; display: flex; gap: 14px; align-items: center; background: linear-gradient(160deg, var(--sky), var(--sky2)); }
.hero img { width: 104px; height: 104px; flex: none; border-radius: 14px; background: #fff; object-fit: contain; }
.hero p { margin: 0; font-size: 14px; }
.hero .when { font-weight: 700; font-size: 16px; color: var(--navy); }
.demo { background: var(--yellow); color: #16303f; border-radius: 10px; padding: 7px 11px; font-size: 12.5px; margin-top: 10px; }
.demo a { color: #0e5083; font-weight: 700; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 14px; min-height: 84px; border: 0; border-radius: 16px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; text-align: left; cursor: pointer; }
.tile.alt { background: var(--yellow); color: #16303f; }
.tile.soft { background: var(--card); color: var(--fg); border: 1px solid var(--line); }
.tile span.i { font-size: 24px; line-height: 1; }
.tile small { font-weight: 500; opacity: .85; font-size: 12px; }
.nownext .row1 { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.spot { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: opacity .25s; min-height: 108px; }
.spot.fade { opacity: 0; }
.spot .lg { width: 88px; height: 88px; flex: none; border-radius: 12px; background: #fff; object-fit: contain; padding: 6px; border: 1px solid var(--line); }
.spot .lg.name { display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; color: var(--navy); background: var(--sky); font-size: 13px; }
.spot .tx { min-width: 0; }
.spot .tx .meta { text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; font-weight: 700; }
.spot .tx strong { display: block; font-size: 16px; line-height: 1.2; }
.spot .tx p { margin: 3px 0 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- schedule ---------- */
.ctl { position: sticky; top: var(--bar); z-index: 20; background: var(--bg); padding: 8px 0 6px; }
.ctl-row { display: flex; gap: 6px; align-items: center; }
.seg { display: flex; gap: 6px; flex: 1; }
.seg button { flex: 1; padding: 7px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; line-height: 1.15; min-height: 44px; }
.seg button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.seg small { display: block; font-size: 11px; opacity: .85; }
.sq { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 18px; cursor: pointer; }
.sq[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: #16303f; }
.mine { flex: none; height: 44px; padding: 0 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; font-size: 14px; }
.mine[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: #16303f; }
.searchbox { margin-top: 6px; }
.searchbox input { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; cursor: pointer; white-space: nowrap; min-height: 34px; }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.slot { display: flex; gap: 10px; margin-bottom: 8px; scroll-margin-top: 70px; }
.time { flex: 0 0 48px; font-size: 13px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; padding-top: 11px; line-height: 1.1; }
.time small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.slot-body { flex: 1; min-width: 0; }
.slot.q { margin-bottom: 4px; }
.slot.q .time { padding-top: 2px; }
.qrow { font-size: 14px; color: var(--muted); padding: 1px 0; }
.qrow strong { color: var(--fg); font-weight: 600; }
.slot.live .opt, .slot.live .bh { box-shadow: 0 0 0 2px var(--yellow); }
.opt { display: flex; gap: 6px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 4px 9px 12px; cursor: pointer; }
.opt-main { flex: 1; min-width: 0; }
.opt-t { font-weight: 650; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.opt-m { font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star { flex: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 26px; line-height: 1; color: var(--muted); }
.star[aria-pressed="true"] { color: #e0a800; }
.bh { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; background: var(--sky); border: 0; border-radius: 12px; padding: 11px 12px; cursor: pointer; min-height: 52px; }
.bh > span:first-child { flex: 1; min-width: 0; }
.bh strong { font-size: 15px; }
.bh .meta { display: block; }
.chev { flex: none; color: var(--navy); font-size: 16px; }
.pick { font-size: 13.5px; padding: 6px 12px 0; color: var(--fg); }
.bb { display: grid; gap: 6px; margin-top: 6px; }
.res { display: grid; gap: 6px; }

/* ---------- speakers & sponsors ---------- */
.sgrid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sp { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 4px; cursor: pointer; }
.sp .nm { font-size: 12.5px; font-weight: 650; line-height: 1.2; margin-top: 6px; padding: 0 2px; }
.avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; background: var(--sky); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: var(--navy); }
.avatar.lg { width: 108px; height: 108px; font-size: 34px; }
.sgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tl { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; text-align: center; cursor: pointer; min-height: 100px; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.tl img { width: 100%; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; }
.tl .noimg { width: 100%; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--sky); border-radius: 8px; font-weight: 800; color: var(--navy); font-size: 12px; padding: 4px; }
.tl .nm { font-size: 12.5px; font-weight: 650; line-height: 1.2; }

/* ---------- info ---------- */
details.acc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
details.acc summary { cursor: pointer; font-weight: 700; padding: 13px 14px; list-style: none; display: flex; justify-content: space-between; min-height: 48px; align-items: center; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: '▾'; color: var(--navy); }
details.acc[open] summary::after { content: '▴'; }
details.acc .in { padding: 0 14px 12px; font-size: 15px; }
details.acc .in p, details.acc .in ul { margin: 0 0 8px; }
details.acc .in ul { padding-left: 20px; }

/* ---------- bottom sheet ---------- */
dialog.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 680px; max-height: 90vh; max-height: 90dvh; border-radius: 22px 22px 0 0; background: var(--card); color: var(--fg); overflow: hidden; animation: up .22s ease-out; }
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .5); }
@keyframes up { from { transform: translateY(40px); opacity: .3; } to { transform: none; opacity: 1; } }
.sheet-head { position: relative; flex: none; height: 28px; }
.grab { position: absolute; left: 50%; top: 9px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line); }
.x { position: absolute; right: 6px; top: 2px; width: 44px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; z-index: 2; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet-body h1 { margin: 2px 40px 6px 0; font-size: 1.25rem; }
.sheet-body p { margin: 0 0 10px; }
.sheet-body .center { text-align: center; }
.sheet-body .ad { width: 100%; border-radius: 10px; border: 1px solid var(--line); margin: 6px 0 12px; }
.sheet-body .logo { width: 100%; max-height: 120px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; margin-bottom: 10px; border: 1px solid var(--line); }
.lrow { display: block; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; cursor: pointer; font-size: 14px; }
.who { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.foot { color: var(--muted); font-size: 12px; text-align: center; padding: 22px 0 8px; }
