:root {
  color-scheme: light only;
  --navy: #1f497d;
  --navy-2: #1d395c;
  --sky: #658ec0;
  --bg: #f4f2f1;
  --card: #ffffff;
  --text: #1b4170;
  --muted: #5b6b7c;
  --line: #e2e8f0;
  --plenary: #8080ff;
  --keynote: #cf5c19;
  --session: #658ec0;
  --registration: #cf5c19;
  --ceremony: #ad3364;
  --morning: #b3e0d1;
  --lunch: #80cc28;
  --coffee: #009966;
  --social: #ffb366;
  --room-a: #1f497d;
  --room-b: #3d7eae;
  --room-c: #2f6a63;
  --room-d: #6b5b95;
  --room-e: #8a4f3d;
  --star: #e6b325;
  --danger: #ad3364;
  --radius: 14px;
  --header-h: 72px;
  --nav-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  color-scheme: light only;
  forced-color-adjust: none;
  font-family: "Segoe UI", "Lato", "Montserrat", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  html, body {
    background: #f4f2f1;
    color: #1b4170;
  }
}
body {
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 12px;
  min-height: var(--header-h);
}
.back-btn {
  border: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}
.app-header img { height: 42px; width: auto; display: block; }
.logo-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}
.app-header .titles { flex: 1; min-width: 0; }
.app-header h1 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}
.app-header .titles p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.95;
  line-height: 1.35;
}

.day-bar {
  display: flex;
  gap: 8px;
  padding: 10px 12px 6px;
  overflow-x: auto;
  background: var(--bg);
  position: sticky;
  top: calc(68px + env(safe-area-inset-top, 0px));
  z-index: 15;
}
.day-bar button {
  flex: 1 0 auto;
  min-width: 76px;
  border: 0;
  background: #fff;
  color: var(--navy);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(31, 73, 125, 0.08);
}
.day-bar button .sub {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--muted);
}
.day-bar button.active {
  background: var(--navy);
  color: #fff;
}
.day-bar button.active .sub { color: #d7e4f5; }

.toolbar {
  padding: 0 12px 10px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #d7e2ee;
  border-radius: 16px;
  padding: 0 14px;
  box-shadow: 0 4px 14px rgba(31, 73, 125, 0.08);
}
.search-field svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--sky);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
}
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--navy);
  outline: none;
}
.search-field input::placeholder {
  color: #8a9bb0;
  font-weight: 500;
}
.search-field:focus-within {
  border-color: var(--sky);
  box-shadow: 0 4px 16px rgba(31, 73, 125, 0.14);
}
.search-field input::-webkit-search-decoration,
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.filters button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.filters button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.list {
  padding: 4px 12px 24px;
  display: grid;
  gap: 8px;
}

.slot-row {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(16, 38, 67, 0.08);
  overflow: hidden;
}
.slot-row.is-break,
.slot-row.kind-plenary,
.slot-row.kind-parallel {
  color: #fff;
  box-shadow: none;
}
.slot-row.kind-registration { background: var(--registration); }
.slot-row.kind-ceremony { background: var(--ceremony); }
.slot-row.kind-morning { background: var(--morning); color: var(--navy-2); }
.slot-row.kind-lunch { background: var(--lunch); color: var(--navy-2); }
.slot-row.kind-coffee { background: var(--coffee); }
.slot-row.kind-social { background: var(--social); color: var(--navy-2); }
.slot-row.kind-plenary { background: var(--plenary); color: var(--navy-2); }
.slot-row.kind-parallel { background: var(--session); }
.slot-time {
  font-weight: 800;
  color: inherit;
  font-size: 1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.slot-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.slot-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: inherit;
}
.view-all {
  border: 0;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}
.slot-row.kind-morning .view-all,
.slot-row.kind-lunch .view-all,
.slot-row.kind-social .view-all,
.slot-row.kind-plenary .view-all {
  background: var(--navy);
  color: #fff;
}
.page-head h2 { margin: 2px 0 8px; color: var(--navy); font-size: 1.15rem; }

.talk-detail {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 1px 4px rgba(16, 38, 67, 0.08);
}
.talk-detail .star {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.break-card {
  background: var(--coffee);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.break-card span { font-weight: 600; font-size: 0.9rem; }

.block-label {
  margin: 8px 2px 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky);
}

.sess-btn {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(16, 38, 67, 0.08);
  padding: 12px 12px 12px 10px;
  min-height: 88px;
}
.sess-btn.is-plenary { background: linear-gradient(180deg, #ececff 0%, #fff 55%); }
.sess-btn.is-session { border-left: 4px solid var(--session); }
.room-badge,
.room-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 64px;
  min-height: 64px;
  padding: 8px 6px;
  font-weight: 800;
  color: #fff;
  background: var(--navy);
  border-radius: 12px;
  gap: 2px;
  text-align: center;
  line-height: 1.15;
}
.room-chip svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.9;
}
.room-chip .room-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
}
.room-chip .room-letter {
  font-size: 1.25rem;
  font-weight: 800;
}
.room-chip.room-a { background: var(--room-a); }
.room-chip.room-b { background: var(--room-b); }
.room-chip.room-c { background: var(--room-c); }
.room-chip.room-d { background: var(--room-d); }
.room-chip.room-e { background: var(--room-e); }
.sess-btn.is-plenary .room-chip { background: var(--plenary); color: var(--navy-2); }
.sess-main { display: grid; gap: 2px; min-width: 0; }
.sess-time { font-weight: 800; color: var(--navy); font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; }
.time { font-weight: 800; color: var(--navy); font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.icon-clock {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}
.day-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 2px 8px;
  padding: 7px 12px 7px 10px;
  background: #fff;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(31, 73, 125, 0.1);
}
.day-chip .icon-cal {
  width: 16px;
  height: 16px;
  stroke: var(--sky);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.meta-pill,
.room-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f6fa;
  color: #5a718c;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}
.meta-pill svg,
.room-inline svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.meta-pill .icon-clock,
.meta-pill .icon-sess {
  stroke: currentColor;
  fill: none;
}
.meta-pill .icon-sess {
  stroke-width: 1.7;
  stroke-linecap: round;
}
.room-inline {
  color: #fff;
  background: var(--navy);
  letter-spacing: 0.02em;
}
.room-inline .icon-pin { fill: currentColor; }
.room-inline.room-a { background: var(--room-a); }
.room-inline.room-b { background: var(--room-b); }
.room-inline.room-c { background: var(--room-c); }
.room-inline.room-d { background: var(--room-d); }
.room-inline.room-e { background: var(--room-e); }
.talk-top .room-inline {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 9px;
}
.sess-code { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sky); }
.sess-title { font-size: 0.95rem; font-weight: 700; color: var(--navy-2); line-height: 1.3; }
.sess-sub { font-size: 0.78rem; color: var(--muted); }

.session-hero {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 1px 4px rgba(16, 38, 67, 0.08);
}
.session-hero h2 { margin: 4px 0; font-size: 1.12rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.chair-line { margin: 0; color: var(--muted); font-size: 0.9rem; }
.hint { color: var(--muted); font-size: 0.82rem; margin: 4px 2px 0; }

.talk-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 1px 4px rgba(16, 38, 67, 0.08);
}
.talk-when {
  font-weight: 800;
  color: var(--navy);
  font-size: 0.82rem;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.talk-row.search-hit {
  grid-template-columns: auto 1fr;
  align-items: flex-start;
}
.talk-row.search-hit .avatar {
  width: 44px;
  height: 44px;
  margin-top: 2px;
}
.talk-row.search-hit .avatar svg {
  width: 24px;
  height: 24px;
}
.talk-row.search-hit .avatar-pair .avatar {
  width: 36px;
  height: 36px;
}
.search-count {
  margin: 2px 4px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.search-session {
  display: block;
  margin-top: 3px;
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 700;
}
mark {
  background: #d9e6f5;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}
.talk-who {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.talk-who strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sky);
  letter-spacing: 0.01em;
}
.talk-title-mini {
  display: block;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--navy);
  margin-top: 1px;
  letter-spacing: -0.01em;
}
.speaker-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 0;
  background: #eef3f9;
  color: var(--navy);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 10px 0 14px;
}
.speaker-btn.is-static {
  cursor: default;
  pointer-events: none;
}
.speaker-btn + .speaker-btn {
  margin-top: -2px;
}
.speaker-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.speaker-name {
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.25;
}
.speaker-preview {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(160deg, #2c5a96, #1f497d);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(31, 73, 125, 0.28);
}
.avatar svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.avatar.has-photo {
  overflow: hidden;
  background: #d7e2ee;
}
.avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.avatar-pair {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.avatar-pair .avatar {
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(31, 73, 125, 0.22);
}
.avatar-pair .avatar + .avatar {
  margin-left: -12px;
}
.speaker-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 8px 0 18px;
}
.speaker-hero.is-pair {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
}
.speaker-hero-person {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
}
.speaker-hero-person h2 {
  font-size: 1.08rem;
}
.speaker-hero .avatar {
  width: 88px;
  height: 88px;
}
.speaker-hero .avatar svg {
  width: 46px;
  height: 46px;
}
.speaker-page h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
}
.institute-card {
  margin: 0 0 10px;
  padding: 14px 16px;
  background: #f4f7fb;
  border-radius: 14px;
  color: var(--navy-2);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}
.institute-card.is-empty { color: var(--muted); }
.abstract-paper h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
}
.abstract-paper .authors {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--navy-2);
}
.abstract-aff {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #f4f7fb;
  border-radius: 12px;
  list-style: none;
}
.abstract-aff p {
  margin: 0 0 6px;
  color: var(--navy-2);
  font-size: 0.84rem;
  line-height: 1.45;
}
.abstract-aff p:last-child { margin-bottom: 0; }
.abstract-aff sup,
.abstract-paper .authors sup {
  font-size: 0.7em;
  font-weight: 700;
  color: var(--sky);
}
.abstract-keywords {
  margin: 0 0 14px;
  color: var(--navy-2);
  font-size: 0.88rem;
  line-height: 1.45;
}
.abstract-body {
  margin: 0;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.65;
}
.abstract-refs {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.abstract-refs p {
  margin: 0 0 8px;
  color: var(--navy-2);
  font-size: 0.82rem;
  line-height: 1.45;
}
.abstract-refs p:last-child { margin-bottom: 0; }
button.btn-view {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.talk-page {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 1px 4px rgba(16, 38, 67, 0.08);
}
.talk-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.star-btn {
  border: 1px solid var(--line);
  background: #f7f9fc;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--muted);
}
.star-btn.on { color: #8a6d12; background: #fff8e6; border-color: #f0d889; }

.session-head {
  margin: 6px 2px 0;
}
.session-head .code {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 700;
}
.session-head h2 {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: var(--navy);
}
.session-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

.talk {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(16, 38, 67, 0.08);
  display: grid;
  grid-template-columns: 44px 1fr;
  overflow: hidden;
}
.star {
  border: 0;
  background: #f7f9fc;
  color: #c5ced8;
  font-size: 1.35rem;
  line-height: 1;
}
.star.on { color: var(--star); background: #fff8e6; }
.talk-body {
  padding: 10px 12px 12px;
  min-width: 0;
}
.talk-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-bottom: 6px;
}
.time { font-weight: 800; color: var(--navy); font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.room { color: var(--muted); font-size: 0.82rem; }
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
}
.badge.plenary { background: var(--plenary); }
.badge.keynote { background: var(--keynote); }
.badge.talk { background: var(--session); }
.authors { font-size: 0.92rem; margin: 0 0 4px; }
.authors strong { font-weight: 800; }
.title {
  margin: 4px 0 0;
  font-size: 1.18rem;
  line-height: 1.38;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.abstract-btns {
  display: inline-flex;
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(16, 38, 67, 0.12);
}
.btn-view,
.btn-download {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 12px;
  color: #fff;
}
.btn-view { background: var(--navy); }
.btn-download {
  background: var(--navy-2);
  border-left: 1px solid rgba(255,255,255,0.25);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: calc(var(--nav-h) + var(--safe-b));
  padding: 8px 10px calc(8px + var(--safe-b));
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border-top: 1px solid rgba(31, 73, 125, 0.08);
  box-shadow: 0 -10px 28px rgba(31, 73, 125, 0.1);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  z-index: 30;
}
.bottom-nav button {
  border: 0;
  background: transparent;
  color: #6a7c90;
  font-weight: 800;
  font-size: 0.58rem;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 16px;
  padding: 7px 2px 6px;
}
.bottom-nav button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav button[data-tab="favourites"] svg {
  fill: currentColor;
  stroke: none;
}
.bottom-nav button.active {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(31, 73, 125, 0.28);
}

.page { display: none; }
.page.active { display: block; }

.help {
  padding: 12px;
  display: grid;
  gap: 12px;
}
.help section {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 1px 4px rgba(16, 38, 67, 0.08);
}
.help h2 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy); }
.help ol,
.help ul { margin: 0; padding-left: 1.2rem; }
.help li { margin: 0.4rem 0; line-height: 1.45; color: var(--navy-2); }
.install-warn {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #fff6e8;
  border: 1px solid #e6b325;
  border-radius: 12px;
  color: var(--navy-2);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}
.install-lead {
  margin: 0 0 14px;
  color: var(--navy-2);
  line-height: 1.5;
  font-size: 0.95rem;
}
.help .note {
  background: #eef3f9;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--navy-2);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.45;
}
.install-btn {
  display: none;
  width: 100%;
  margin-top: 4px;
  border: 0;
  background: linear-gradient(180deg, #2a5a96 0%, var(--navy) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 22px rgba(31, 73, 125, 0.28);
}
.install-btn.show { display: block; }
.status-https {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
}

@media (min-width: 800px) {
  .wrap { max-width: 760px; margin: 0 auto; }
}

.speaker-name {
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.35;
}
.pdf-stage {
  margin: 4px 0 14px;
  position: relative;
  background: linear-gradient(180deg, #f7f4f1 0%, #efeae4 100%);
  border: 1px solid #e2ddd6;
  border-radius: 14px;
  overflow: auto;
  min-height: 56vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.pdf-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(31, 73, 125, 0.12);
}
.pdf-wait {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 28px;
  background: linear-gradient(180deg, #f7f4f1 0%, #efeae4 100%);
  z-index: 1;
}
.pdf-wait[hidden] { display: none; }
.pdf-wait p {
  margin: auto 0;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  animation: pdf-soft 1.6s ease-in-out infinite;
}
.pdf-spin {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: auto;
  border: 3px solid rgba(31, 73, 125, 0.14);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: pdf-turn 0.9s linear infinite;
}
@keyframes pdf-turn { to { transform: rotate(360deg); } }
@keyframes pdf-soft {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
