/* Rate My Presenter — mobile-first stylesheet. System fonts only (no Google Fonts → no GDPR issue). */
:root {
  color-scheme: light;
  --bg: #f6f6f9;
  --surface: #ffffff;
  --surface-2: #f0f0f6;
  --text: #15152a;
  --text-2: #45455c;
  --muted: #64647a;
  --line: #e2e2eb;
  --brand: #3f37c9;
  --brand-ink: #2b2496;
  --brand-soft: #ecebfd;
  --on-brand: #ffffff;
  --star: #f5a524;
  --high: #166534;
  --high-bg: #dcfce7;
  --mid: #8a4b06;
  --mid-bg: #fef3c7;
  --low: #991b1b;
  --low-bg: #fee2e2;
  --none: #64647a;
  --none-bg: #ececf2;
  --ok-bg: #e8f8ee;
  --ok-line: #9fd8b2;
  --warn-bg: #fff6e0;
  --warn-line: #f2cf7a;
  --err-bg: #fdecec;
  --err-line: #f0a8a8;
  --info-bg: #eef0ff;
  --info-line: #c4c8f5;
  --shadow: 0 1px 2px rgba(20, 20, 50, 0.06), 0 4px 16px rgba(20, 20, 50, 0.05);
  --radius: 14px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0f0f1a;
    --surface: #181828;
    --surface-2: #202036;
    --text: #f1f1f8;
    --text-2: #c9c9da;
    --muted: #9d9db4;
    --line: #2d2d46;
    --brand: #8b85ff;
    --brand-ink: #b9b5ff;
    --brand-soft: #25234d;
    --on-brand: #0f0f1a;
    --high: #86efac;
    --high-bg: #133a24;
    --mid: #fcd34d;
    --mid-bg: #3d3010;
    --low: #fca5a5;
    --low-bg: #451a1a;
    --none: #a3a3b8;
    --none-bg: #2a2a40;
    --ok-bg: #12301f;
    --ok-line: #23633e;
    --warn-bg: #36290b;
    --warn-line: #7a5c14;
    --err-bg: #3a1616;
    --err-line: #7a2b2b;
    --info-bg: #1d1d3d;
    --info-line: #3b3b7a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0f0f1a;
  --surface: #181828;
  --surface-2: #202036;
  --text: #f1f1f8;
  --text-2: #c9c9da;
  --muted: #9d9db4;
  --line: #2d2d46;
  --brand: #8b85ff;
  --brand-ink: #b9b5ff;
  --brand-soft: #25234d;
  --on-brand: #0f0f1a;
  --high: #86efac;
  --high-bg: #133a24;
  --mid: #fcd34d;
  --mid-bg: #3d3010;
  --low: #fca5a5;
  --low-bg: #451a1a;
  --none: #a3a3b8;
  --none-bg: #2a2a40;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  overflow-x: hidden;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  font-weight: 800;
}
h2 {
  font-size: 1.3rem;
  font-weight: 750;
}
h3 {
  font-size: 1.05rem;
}
p {
  margin: 0 0 1em;
}
img {
  max-width: 100%;
}
code,
.mono {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.9em;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.86rem;
}
.pre {
  white-space: pre-line;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.narrow {
  max-width: 760px;
}
.section {
  padding-top: 28px;
  padding-bottom: 28px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
}
.brand.small {
  font-size: 1rem;
  margin-bottom: 8px;
}
.main-nav {
  display: flex;
  gap: 4px;
  order: 3;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -4px;
}
.main-nav::-webkit-scrollbar {
  display: none;
}
.main-nav a {
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.main-nav a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.main-nav a.active {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.header-search {
  margin-left: auto;
  flex: 1 1 160px;
  max-width: 280px;
}
.header-search input {
  width: 100%;
}
@media (min-width: 900px) {
  .main-nav {
    order: 0;
    width: auto;
    margin: 0;
  }
}

/* ---------- forms ---------- */
input,
select,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  width: 100%;
  min-height: 42px;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 2px solid color-mix(in srgb, var(--brand) 25%, transparent);
  outline-offset: 0;
}
input[type='checkbox'],
input[type='radio'] {
  width: auto;
  min-height: 0;
  accent-color: var(--brand);
}
input[type='search'] {
  -webkit-appearance: none;
  appearance: none;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
label {
  display: block;
}
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stack-form > label,
.stack-form label > b {
  font-size: 0.95rem;
}
.stack-form label > input,
.stack-form label > select,
.stack-form label > textarea {
  margin-top: 4px;
}
.row-2,
.row-3 {
  display: grid;
  gap: 10px;
}
@media (min-width: 560px) {
  .row-2 {
    grid-template-columns: 1fr 1fr;
  }
  .row-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  padding: 4px 0;
}
.check input {
  margin-top: 5px;
}
.hp {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.inline-search {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.inline-search input {
  flex: 1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand);
  color: var(--on-brand);
  border: 1px solid var(--brand);
  border-radius: 10px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  min-height: 42px;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
.btn.ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--line);
}
.btn.ghost:hover {
  background: var(--brand-soft);
}
.btn.light {
  background: #fff;
  color: #2b2496;
  border-color: #fff;
}
.btn.small {
  padding: 5px 12px;
  min-height: 34px;
  font-size: 0.9rem;
  border-radius: 8px;
}
.btn.big {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
  margin: 10px 0;
}
.btn.danger {
  background: transparent;
  color: var(--low);
  border-color: var(--err-line);
}
.btn.danger:hover {
  background: var(--err-bg);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.btn-row.inline {
  display: inline-flex;
  margin: 0;
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand);
  cursor: pointer;
  font: inherit;
}

/* ---------- notices ---------- */
.notice {
  border: 1px solid var(--info-line);
  background: var(--info-bg);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 16px;
}
.notice.ok {
  background: var(--ok-bg);
  border-color: var(--ok-line);
}
.notice.warn {
  background: var(--warn-bg);
  border-color: var(--warn-line);
}
.notice.error {
  background: var(--err-bg);
  border-color: var(--err-line);
}
.notice ul {
  margin: 0;
  padding-left: 18px;
}

/* ---------- score badges ---------- */
.score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.score.lg {
  min-width: 78px;
  height: 64px;
  font-size: 2rem;
  border-radius: 16px;
}
.score.sm {
  min-width: 36px;
  height: 24px;
  font-size: 0.82rem;
  border-radius: 7px;
  padding: 0 6px;
}
.s-high {
  background: var(--high-bg);
  color: var(--high);
}
.s-mid {
  background: var(--mid-bg);
  color: var(--mid);
}
.s-low {
  background: var(--low-bg);
  color: var(--low);
}
.s-none {
  background: var(--none-bg);
  color: var(--none);
}
.s-high-text {
  color: var(--high);
}
.s-mid-text {
  color: var(--mid);
}
.s-low-text {
  color: var(--low);
}
.stars-static {
  color: var(--star);
  letter-spacing: 1px;
}
.stars-static .dim {
  color: var(--line);
}

/* ---------- cards & grids ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.card.soft {
  background: var(--surface-2);
  box-shadow: none;
}
.card-title {
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.card-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .cards-2,
  .cards-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .cards-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.two-col {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
  .two-col.wide-left {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  }
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.section-head h1,
.section-head h2 {
  margin: 0;
}
h2.sub {
  margin-top: 26px;
  font-size: 1.15rem;
}
.event-card {
  display: block;
  color: var(--text);
  margin: 0;
  transition: border-color 0.15s, transform 0.15s;
}
.event-card:hover {
  text-decoration: none;
  border-color: var(--brand);
  transform: translateY(-1px);
}
.event-card h3 {
  margin-bottom: 4px;
}
.event-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--star) 22%, transparent), transparent),
    linear-gradient(160deg, var(--brand-soft), var(--bg) 70%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  padding-top: 44px;
  padding-bottom: 36px;
}
.hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.lead {
  font-size: 1.12rem;
  color: var(--text-2);
  max-width: 640px;
}
.hero-search {
  display: flex;
  gap: 8px;
  max-width: 620px;
  margin: 22px 0 18px;
}
.hero-search input {
  flex: 1;
  min-height: 52px;
  font-size: 1.05rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.hero-search .btn {
  min-height: 52px;
  border-radius: 12px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  color: var(--muted);
}
.hero-stats b {
  color: var(--text);
  font-size: 1.1rem;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 18px 60px;
  position: relative;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.steps b {
  display: block;
  margin-bottom: 4px;
}
.steps span {
  color: var(--text-2);
  font-size: 0.95rem;
}
.cta-band {
  background: linear-gradient(135deg, #3f37c9, #6b3fd0);
  color: #fff;
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  margin: 0;
  max-width: 620px;
  opacity: 0.92;
}

/* ---------- ranked lists ---------- */
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.rank-list li:first-child {
  border-top: 0;
}
.rank {
  width: 22px;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
  flex: none;
}
.rank-name {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-weight: 650;
  display: flex;
  flex-direction: column;
}
.rank-name .small {
  font-weight: 400;
}
.rank-list.big li {
  padding: 12px 16px;
}

/* ---------- avatars ---------- */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--brand-soft);
}
.avatar.initials {
  display: inline-grid;
  place-items: center;
  color: var(--brand-ink);
  font-weight: 800;
}

/* ---------- page hero (event/presenter/talk) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--brand-soft), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 18px 0 22px;
}
.page-hero-row {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.hero-score {
  display: flex;
  gap: 12px;
  align-items: center;
}
.event-desc {
  max-width: 720px;
  color: var(--text-2);
}
.crumbs {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.crumbs .sep {
  opacity: 0.5;
}
.presenter-head {
  display: flex;
  gap: 18px;
  align-items: center;
}
.presenter-head h1 {
  margin-bottom: 2px;
}
.presenter-head p {
  margin: 0;
}
.links {
  display: flex;
  gap: 14px;
  margin-top: 6px !important;
}
.verified {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--high);
  background: var(--high-bg);
  border-radius: 999px;
  padding: 2px 10px;
}

/* ---------- rating summary ---------- */
.summary-main {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.summary-count {
  font-weight: 750;
  font-size: 1.1rem;
}
.summary.empty {
  display: flex;
  gap: 14px;
  align-items: center;
}
.summary.empty p {
  margin: 0;
}
.criteria {
  margin: 0;
  display: grid;
  gap: 8px;
}
.crit {
  display: grid;
  grid-template-columns: minmax(120px, 42%) 1fr;
  gap: 10px;
  align-items: center;
}
.crit dt {
  font-size: 0.92rem;
  color: var(--text-2);
}
.crit dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bar {
  flex: 1;
  height: 10px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.bar .fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.bar .fill.s-high {
  background: #22a35a;
}
.bar .fill.s-mid {
  background: #e5a400;
}
.bar .fill.s-low {
  background: #d9484b;
}
.crit-val {
  width: 30px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tag {
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--line);
}
.tag.pos {
  background: var(--high-bg);
  color: var(--high);
  border-color: transparent;
}
.tag.neg {
  background: var(--low-bg);
  color: var(--low);
  border-color: transparent;
}
.tag b {
  margin-left: 3px;
}

/* ---------- presenter chips ---------- */
.tc-presenters {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tc-presenters.big {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.presenter-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  color: var(--text);
  padding: 4px 0;
}
.presenter-chip:hover {
  text-decoration: none;
}
.presenter-chip:hover .pc-name {
  color: var(--brand);
}
.presenter-chip .score {
  grid-row: span 2;
}
.pc-name {
  font-weight: 650;
  line-height: 1.2;
}
.pc-meta {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.2;
}
.tc-presenters.big .presenter-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px 8px 8px;
}

/* ---------- schedule ---------- */
.schedule-tools {
  position: sticky;
  top: 105px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--bg);
  padding: 8px 0 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .schedule-tools {
    top: 61px;
  }
}
.day-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  width: 100%;
  scrollbar-width: none;
}
.day-tabs a {
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-2);
}
.schedule-filter {
  flex: 1 1 200px;
  min-height: 38px;
}
.day-title {
  margin: 26px 0 12px;
  font-size: 1.25rem;
}
.slot {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
}
@media (min-width: 760px) {
  .slot {
    grid-template-columns: 110px 1fr;
    gap: 16px;
  }
}
.slot-time {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}
@media (min-width: 760px) {
  .slot-time {
    flex-direction: column;
    gap: 2px;
  }
}
.slot-time b {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.now-pill {
  display: none;
  background: #e11d48;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.slot.is-now .now-pill {
  display: inline-block;
}
.slot.is-now {
  background: linear-gradient(90deg, color-mix(in srgb, #e11d48 7%, transparent), transparent 60%);
  border-radius: 12px;
  padding-left: 10px;
  padding-right: 10px;
}
.slot.is-past {
  opacity: 0.72;
}
.slot-talks {
  display: grid;
  gap: 10px;
}
@media (min-width: 640px) {
  .slot-talks {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}
.talk-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}
.talk-card.top-pick {
  border-color: var(--star);
  box-shadow: 0 0 0 1px var(--star), var(--shadow);
}
.talk-card h3 {
  font-size: 1rem;
  margin: 0;
  line-height: 1.3;
}
.talk-card h3 a {
  color: var(--text);
}
.talk-card.filtered-out {
  display: none;
}
.slot.all-filtered {
  display: none;
}
.tc-top {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.chip.soft {
  background: var(--surface-2);
  color: var(--text-2);
}
.chip.pick {
  background: color-mix(in srgb, var(--star) 22%, transparent);
  color: var(--mid);
}
.tc-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

/* ---------- reviews ---------- */
.rating {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.rating:target {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}
.rating-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.rating-meta {
  min-width: 0;
}
.rating-talk {
  font-weight: 700;
  color: var(--text);
  display: block;
}
.rec.yes {
  color: var(--high);
}
.rec.no {
  color: var(--low);
}
.rating-scores {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rating-scores li {
  font-size: 0.78rem;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 3px 4px 3px 9px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--text-2);
}
.rating-scores b {
  border-radius: 6px;
  padding: 0 6px;
}
.rating-comment {
  margin: 12px 0 4px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.reply {
  margin-top: 12px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
}
.reply p {
  margin: 0;
  white-space: pre-line;
}
.reply-head {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-ink);
}
.rating-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.vote-form {
  display: inline;
  margin: 0;
}
.vote {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  padding: 3px 10px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.vote:hover {
  border-color: var(--brand);
}
.vote.on {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.report-link {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted);
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
}
.quote {
  margin: 10px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--line);
  background: var(--surface-2);
  border-radius: 0 10px 10px 0;
  white-space: pre-line;
}

/* ---------- presenter sidebar ---------- */
.talk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.talk-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.talk-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.talk-list > li > a {
  font-weight: 650;
}
.talk-list-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  gap: 8px;
}
.qr-card {
  text-align: center;
}
.qr-card img {
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  border: 1px solid var(--line);
}

/* ---------- rating form ---------- */
.rate-title {
  margin-top: 6px;
}
.rate-context b {
  display: block;
  margin-bottom: 8px;
}
.rate-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.crit-input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.crit-input legend {
  display: contents;
}
.crit-input legend b {
  display: block;
}
.crit-input legend .small {
  display: block;
  margin-bottom: 4px;
}
.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}
.star-input input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.star-input label {
  font-size: 2.3rem;
  line-height: 1;
  color: var(--line);
  cursor: pointer;
  padding: 2px 3px;
  transition: color 0.1s, transform 0.1s;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: var(--star);
}
.star-input label:active {
  transform: scale(0.9);
}
.star-input input:focus-visible + label {
  outline: 3px solid var(--brand);
  border-radius: 6px;
}
.pill-input,
.tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.pill-input input,
.tag-input input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pill-input label,
.tag-input label {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  user-select: none;
}
.pill-input label {
  min-width: 80px;
  text-align: center;
}
.pill-input input:checked + label,
.tag-input input:checked + label {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.tag-input input:checked + label.neg {
  background: #c0393b;
  border-color: #c0393b;
  color: #fff;
}
.pill-input input:focus-visible + label,
.tag-input input:focus-visible + label {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.tag-input.at-max input:not(:checked) + label {
  opacity: 0.45;
}
.block-label {
  margin-top: 8px;
}
.counter {
  text-align: right;
  min-height: 1.2em;
}

/* ---------- tabs, prose, misc ---------- */
.tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0 12px;
}
.tabs a {
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 650;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: var(--surface);
}
.tabs a.active {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}
.prose h2 {
  margin-top: 1.6em;
}
.prose h3 {
  margin-top: 1.3em;
}
.prose li {
  margin-bottom: 0.4em;
}
.feature {
  margin-bottom: 18px;
}
.feature h3 {
  margin-bottom: 4px;
}
.feature p {
  color: var(--text-2);
  margin: 0;
}
.login-box {
  text-align: center;
  padding-top: 60px;
  max-width: 420px;
}
.login-box form {
  text-align: left;
}
.reply-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
}
.admin-table.compact td,
.admin-table.compact th {
  padding: 6px 8px;
}
.num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}
.nowrap {
  white-space: nowrap;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 30px 0 20px;
}
.footer-grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.footer-grid h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.footer-grid a {
  display: block;
  color: var(--text-2);
  padding: 3px 0;
  font-size: 0.93rem;
}
.footer-grid p {
  font-size: 0.92rem;
  max-width: 360px;
}
.copyright {
  font-size: 0.82rem;
  margin-top: 22px;
}

@media print {
  .site-header,
  .site-footer,
  .schedule-tools {
    display: none;
  }
}

/* ---------- phone-first tweaks (most visitors are on a phone, at the conference) ---------- */
.crit-input.needs-answer {
  border-color: var(--err-line);
  box-shadow: 0 0 0 2px var(--err-bg);
}
.mobile-cta {
  display: none;
}
@media (max-width: 899px) {
  /* Header scrolls away so the schedule gets the whole screen; the schedule toolbar sticks instead. */
  .site-header {
    position: static;
  }
  .schedule-tools {
    top: 0;
  }
  .header-search {
    max-width: none;
  }
}
@media (max-width: 759px) {
  .section {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .card {
    padding: 14px;
  }
  .hero-inner {
    padding-top: 28px;
    padding-bottom: 26px;
  }
  .hero-search {
    flex-direction: column;
  }
  .hero-search .btn {
    width: 100%;
  }
  .page-hero-row {
    flex-direction: column;
  }
  .presenter-head {
    align-items: flex-start;
  }
  .rank-list li {
    padding: 10px 12px;
  }
  .rating {
    padding: 14px;
  }
  .rating-actions .vote {
    min-height: 36px;
    padding: 4px 14px;
  }
  .main-nav a {
    padding: 8px 12px;
  }
  .footer-grid a {
    padding: 6px 0;
  }
  .tc-foot .btn.small {
    min-height: 40px;
    padding: 6px 18px;
  }
  .star-input label {
    font-size: 2.6rem;
    padding: 2px 4px;
  }
  .tabs a {
    flex: 1;
    text-align: center;
  }
  /* Sticky "Rate this talk" bar at the bottom of talk pages. */
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn {
    width: 100%;
    min-height: 48px;
  }
  body.has-mobile-cta .site-footer {
    padding-bottom: 90px;
  }
}
.dash-table td:first-child {
  min-width: 210px;
}
.dash-table th {
  text-transform: none;
  letter-spacing: 0;
}

/* schedule on phones: compact cards, slots land below the sticky toolbar */
.slot {
  scroll-margin-top: 70px;
}
@media (max-width: 899px) {
  .slot {
    scroll-margin-top: 120px;
  }
  .main-nav {
    flex-wrap: wrap;
    overflow: visible;
    gap: 2px 4px;
  }
}
@media (max-width: 639px) {
  .talk-card {
    padding: 10px 12px;
    gap: 6px;
  }
  .talk-card h3 {
    font-size: 0.98rem;
  }
  .presenter-chip {
    padding: 2px 0;
  }
  .tc-foot .btn.small {
    min-height: 38px;
    padding: 4px 16px;
  }
  .slot {
    padding: 10px 0;
    gap: 8px;
  }
  .slot-talks {
    gap: 8px;
  }
  .slot.is-past .talk-card {
    box-shadow: none;
  }
}
.main-nav .ns {
  display: none;
}
@media (max-width: 559px) {
  .main-nav {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .main-nav .nl {
    display: none;
  }
  .main-nav .ns {
    display: inline;
  }
  .header-inner {
    gap: 8px 12px;
  }
}
.check input[type='checkbox'],
.check input[type='radio'] {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}
