:root {
  --navy: #0d3b66; --navy-d: #082a4a; --accent: #ee9b00; --gold: #f0c419;
  --bg: #f4f5f7; --card: #fff; --ink: #1d2733; --muted: #6b7686; --line: #e4e7ec;
  --tabh: 58px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  background: var(--bg); color: var(--ink);
  padding-bottom: calc(var(--tabh) + env(safe-area-inset-bottom));
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }

/* App bar */
.appbar { position: sticky; top: 0; z-index: 20;
  background: var(--navy); color: #fff; padding-top: env(safe-area-inset-top); }
.appbar-inner { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  min-height: 52px; padding: 9px 16px; }
.brand { font-weight: 700; letter-spacing: .2px; font-size: 16px; line-height: 1.25; }
.brand-unofficial { color: #ff4d4d; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; }
.brand-ver { color: #9db8d6; font-size: 11px; font-weight: 600; }

.content { max-width: 720px; margin: 0 auto; padding: 12px 12px 24px; }
.page-h { font-size: 20px; margin: 8px 4px 12px; }
.empty, .hint { color: var(--muted); padding: 16px 4px; }
.hint { padding: 0 4px 10px; font-size: 13px; }

/* Day selector */
.daybar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; }
.daychip { flex: 0 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 12px; text-align: center; font-size: 12px;
  color: var(--muted); display: flex; flex-direction: column; min-width: 64px; }
.daychip b { color: var(--ink); font-size: 14px; }
.daychip.on { background: var(--navy); border-color: var(--navy); color: #cfe0f0; }
.daychip.on b { color: #fff; }

/* Room tabs (concurrent sessions) */
.roomtabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 12px;
  -webkit-overflow-scrolling: touch; }
.roomtab { flex: 0 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; white-space: nowrap; }
.roomtab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.panel { display: none; }
.panel.on { display: block; }

/* Room section */
.room { margin-bottom: 18px; }
.room-h { font-size: 13px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); margin: 14px 4px 8px; }

/* Talk card */
.talk { display: flex; gap: 10px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px; }
.talk-time { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 700;
  font-size: 12px; color: var(--navy); width: 44px; line-height: 1.25; padding-top: 2px; }
.talk-body { flex: 1 1 auto; min-width: 0; }
.talk-title { font-size: 14.5px; font-weight: 600; }
.talk-meta { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.author { color: var(--muted); font-size: 12.5px; }
.talk-place { color: var(--muted); font-size: 12px; margin-top: 3px; }

/* Break / lunch (display only) */
.brk { display: flex; gap: 10px; align-items: center; padding: 6px 12px; margin-bottom: 8px;
  border: 1px dashed var(--line); border-radius: 12px; background: #fafbfc; }
.brk .talk-time { color: var(--muted); }
.brk-label { font-size: 12.5px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px; }
.badge { background: var(--navy); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 6px; padding: 1px 6px; }
.bm { flex: 0 0 auto; background: none; border: none; font-size: 22px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 2px; }
.bm.on { color: var(--accent); }
.bm.big { font-size: 26px; margin-left: auto; }

/* Detail */
.detail-when { display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.detail-title { font-size: 20px; line-height: 1.3; margin: 4px 0 10px; }
.detail-session { display: flex; gap: 8px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; margin: 0 0 12px;
  font-size: 13.5px; color: var(--navy); }
.cal-btn { display: inline-block; background: var(--navy); color: #fff; font-weight: 600;
  font-size: 13.5px; border-radius: 12px; padding: 10px 16px; margin: 0 0 14px; }
.detail-authors { font-weight: 600; margin: 0 0 4px; }
.detail-corr { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.detail-abstract { background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; font-size: 14.5px; text-align: justify; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.kwchip { background: #eef2f7; color: var(--navy); border-radius: 14px;
  padding: 4px 10px; font-size: 12.5px; }
.affil { margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.affil ol { padding-left: 18px; }

/* Sessions */
.slist { list-style: none; margin: 0; padding: 0; }
.slist li a { display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.stitle { flex: 1 1 auto; font-size: 14px; font-weight: 600; }
.scount { color: var(--muted); font-size: 12px; white-space: nowrap; }
.session-title { font-size: 16px; font-weight: 600; margin: 0 4px 12px; }

/* Search */
.searchbar { display: flex; gap: 8px; margin: 4px 2px 14px; }
.searchbar input { flex: 1 1 auto; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 12px; font-size: 15px; background: var(--card); }
.searchbar button { padding: 0 16px; border: none; border-radius: 12px;
  background: var(--navy); color: #fff; font-weight: 700; }
.result-count { color: var(--muted); font-size: 13px; margin: 0 4px 10px; }

/* Bottom tab bar */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; background: var(--card); border-top: 1px solid var(--line);
  height: var(--tabh); padding-bottom: env(safe-area-inset-bottom); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); }
.tab .ic { font-size: 20px; }
.tab.on { color: var(--navy); font-weight: 700; }
