/* SNMICON 2026 programme - brand: maroon #740303, gold #FFD800, Sora + Inter (from snmicon2026.com) */
:root {
  --maroon: #740303;
  --maroon-2: #8e0d0d;
  --gold: #ffd800;
  --star: #f2b600;
  --speaker: #a67c00; /* brand gold, darkened just enough to read on white */
  --bg: #f6f3f0;
  --surface: #ffffff;
  --surface-2: #faf7f4;
  --ink: #1d1f23;
  --ink-2: #545a62;
  --ink-3: #7d838b;
  --line: #e8e2dc;
  --A: #c2410c; --A-soft: #fff2ea;
  --B: #1d4ed8; --B-soft: #edf2ff;
  --C: #0f766e; --C-soft: #e7f6f3;
  --live: #cf1b2b; --live-soft: #fdecec;
  --warn: #a15c07; --warn-soft: #fff5e1;
  --ok: #157f3c; --ok-soft: #e9f7ee;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(40, 10, 5, .05), 0 6px 20px rgba(60, 20, 10, .06);
  --head: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tabs-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --speaker: #ffd800; /* the brand yellow itself */
    --bg: #121011;
    --surface: #1c1919;
    --surface-2: #231f1f;
    --ink: #f1ece9;
    --ink-2: #bdb4b0;
    --ink-3: #8f8783;
    --line: #342e2d;
    --A: #fb8a4c; --A-soft: #2b1a11;
    --B: #86a8ff; --B-soft: #161d31;
    --C: #3fd0bd; --C-soft: #0f2522;
    --live: #ff5d6c; --live-soft: #331519;
    --warn: #f0b24a; --warn-soft: #2d2410;
    --ok: #53d188; --ok-soft: #10281a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tabs-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.25; margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- brand header (always light: logos need it) */
.brand {
  background: #fff url("/static/brand/header-bg.webp") center / cover;
  border-bottom: 1px solid #eee4dc;
  color: #3a0a0a;
}
.brand-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 16px 4px;
  display: grid; grid-template-columns: 1fr 1.75fr 1fr; align-items: center; gap: 8px;
}
.logo { display: block; height: auto; max-width: 100%; }
.logo-aiims { max-height: 64px; width: auto; justify-self: start; }
.logo-main { justify-self: center; }
.logo-snmicon { max-height: 84px; width: auto; }
.logo-snmi { max-height: 60px; width: auto; justify-self: end; }
.tagline {
  margin: 0; padding: 2px 16px 10px; text-align: center;
  font-style: italic; font-weight: 600; font-size: 12.5px; color: #4b0d0d;
}
@media (min-width: 720px) {
  .brand-inner { padding-top: 14px; }
  .logo-aiims { max-height: 96px; }
  .logo-snmicon { max-height: 120px; }
  .logo-snmi { max-height: 92px; }
  .tagline { font-size: 17px; padding-bottom: 12px; }
}

/* ---------------------------------------------------------------- tabs (the maroon bar) */
.tabs {
  position: sticky; top: 0; z-index: 30;
  background: var(--maroon); color: #fff;
  box-shadow: 0 2px 10px rgba(60, 0, 0, .25);
}
.tabs-inner { max-width: 1100px; margin: 0 auto; display: flex; height: var(--tabs-h); }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  color: rgba(255, 255, 255, .78); position: relative;
}
.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--gold); }
.tab[aria-current="page"] { color: #fff; }
.tab[aria-current="page"]::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px;
  background: var(--gold); border-radius: 3px 3px 0 0;
}
.tab[data-tab="my"][aria-current="page"] svg { fill: var(--gold); stroke: var(--gold); }
.tab-badge {
  position: absolute; top: 7px; left: calc(50% + 8px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--gold); color: #3a0000; font-size: 11px; line-height: 18px; text-align: center;
}
/* "Schedule" button + its day menu (PDF downloads) */
.tab-menu { flex: 1; display: flex; position: relative; }
button.tab { width: 100%; background: none; border: 0; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 600; }
button.tab[aria-expanded="true"] { color: #fff; }
button.tab[aria-expanded="true"]::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; background: var(--gold); border-radius: 3px 3px 0 0;
}
.pdf-menu {
  position: absolute; top: calc(100% + 6px); right: 6px; z-index: 40; width: min(310px, calc(100vw - 24px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 36px rgba(40, 0, 0, .28); padding: 6px;
}
.pdf-menu-h { margin: 6px 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pdf-menu a { display: flex; gap: 10px; align-items: center; min-height: 46px; padding: 0 10px; border-radius: 10px; text-decoration: none; font-size: 14px; }
.pdf-menu a:hover, .pdf-menu a:focus-visible { background: var(--surface-2); outline-offset: -2px; }
.pdf-menu a svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--maroon); stroke-width: 1.7; stroke-linejoin: round; }
.pdf-menu-empty { margin: 0; padding: 8px 10px 12px; color: var(--ink-2); font-size: 14px; }
@media (prefers-color-scheme: dark) { .pdf-menu a svg { stroke: var(--gold); } }

@media (min-width: 720px) {
  .tab-menu { flex: 0 1 auto; }
  button.tab { font-size: 14.5px; }
  .tab { flex-direction: row; gap: 8px; font-size: 14.5px; flex: 0 1 auto; padding: 0 22px; }
  .tabs-inner { justify-content: center; }
  .tab-badge { position: static; }
}

/* ---------------------------------------------------------------- layout */
.view { max-width: 1180px; margin: 0 auto; padding: 16px 16px 40px; min-height: 60vh; outline: none; }
.loading, .empty { color: var(--ink-2); text-align: center; padding: 48px 12px; }
.foot { text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 8px 16px 36px; }
.foot p { margin: 4px 0; }
.muted { color: var(--ink-2); }
.lbl {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); margin-right: 4px;
}
.section-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 26px 0 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 0; background: var(--maroon); color: #fff; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* halls */
.h-A { --hall: var(--A); --hall-soft: var(--A-soft); }
.h-B { --hall: var(--B); --hall-soft: var(--B-soft); }
.h-C { --hall: var(--C); --hall-soft: var(--C-soft); }
.hall-tag { color: var(--hall); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.hall-tag small { font-weight: 600; opacity: .8; }

/* people links */
.person { text-decoration: none; }
.person:hover { text-decoration: underline; text-underline-offset: 3px; }
.spk { color: var(--speaker); font-weight: 600; }
.role {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 0 6px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
  vertical-align: 1px;
}
.vs { font-weight: 700; color: var(--ink-3); font-size: 12px; }
.tba { color: var(--ink-3); }

/* star */
.star {
  flex: none; width: 44px; height: 44px; margin: -6px -8px 0 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%; color: var(--ink-3);
}
.star svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.star:hover { color: var(--star); background: var(--surface-2); }
.star.on { color: var(--star); }
.star.on svg { fill: var(--star); }
.star.pop svg { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.pill.live { background: var(--live); color: #fff; border-color: var(--live); }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------------------------------------------------------------- programme: day tabs + hall chips */
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab {
  flex: 1 0 auto; min-width: 82px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); text-align: center; cursor: pointer; text-decoration: none; position: relative;
}
.day-tab .dn { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.day-tab .dd { display: block; font-family: var(--head); font-weight: 600; font-size: 15px; }
.day-tab[aria-current="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.day-tab[aria-current="true"] .dn { color: rgba(255, 255, 255, .75); }
.day-tab .today { position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }

.hall-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 13.5px;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--hall, var(--ink-3)); }
.chip small { color: var(--ink-3); font-weight: 500; }
.chip[aria-current="true"] { border-color: var(--hall, var(--maroon)); background: var(--hall-soft, var(--surface-2)); box-shadow: inset 0 0 0 1px var(--hall, var(--maroon)); }

/* ---------------------------------------------------------------- programme body */
.band { display: grid; gap: 12px; margin: 12px 0; }
.band.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.col { display: grid; gap: 12px; align-content: start; }
.col-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink-3); font-size: 13px; text-align: center; }
.hall-heads {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  position: sticky; top: var(--tabs-h); z-index: 10; background: var(--bg); padding: 8px 0 6px;
}
.hall-head { border-top: 3px solid var(--hall); padding-top: 6px; font-family: var(--head); font-weight: 700; font-size: 15px; }
.hall-head small { font-family: var(--body); font-weight: 500; color: var(--ink-2); font-size: 13px; }

.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); border-left: 4px solid var(--hall); overflow: hidden;
}
.card-head { padding: 12px 14px 10px; background: linear-gradient(var(--hall-soft), var(--surface)); }
.card-meta { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.card-when { font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.session { font-size: 16px; font-weight: 600; margin-top: 4px; }
.chairs { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.block-n { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
/* collapsible paper blocks: header = summary, button shows/hides the list */
.card.block .card-head { cursor: pointer; }
.block-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px; padding: 7px 0 2px;
  background: none; border: 0; border-top: 1px dashed var(--line); cursor: pointer; text-align: left;
}
.block-toggle .block-n { flex: 1; }
.block-toggle .bt-label { font-size: 12.5px; font-weight: 700; color: var(--hall); }
.block-toggle svg { width: 18px; height: 18px; fill: none; stroke: var(--hall); stroke-width: 2.2; stroke-linecap: round;
  stroke-linejoin: round; transition: transform .2s; }
.block-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.block-live { display: none; }
.card.collapsed.live-any .block-live { display: inline-flex; }
.card.collapsed .card-head { padding-bottom: 8px; }
.card.block .t-when { display: none; } /* untimed papers: the card header carries the session time */
.talks { list-style: none; margin: 0; padding: 0; }
.talk { display: flex; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); transition: background .2s; }
/* chairpersons for one part of a session whose chairs change part-way */
.seg-chairs {
  padding: 8px 14px; font-size: 13px; color: var(--ink-2); background: var(--hall-soft);
  border-top: 1px solid var(--line); border-left: 3px solid var(--hall);
}
.card-head + .talks > .seg-chairs:first-child { border-top-color: transparent; }
.seg-chairs + .talk { border-top-color: transparent; }
.card-head + .talks > .talk:first-child { border-top-color: transparent; }
.t-when { flex: none; width: 70px; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 1px; }
.t-when span { display: block; }
.t-when .to { font-weight: 500; color: var(--ink-3); }
.t-main { flex: 1; min-width: 0; }
.t-title { margin: 0; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.t-who, .t-panel { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); }
.talk.live { background: var(--live-soft); }
.talk.live .t-when { color: var(--live); }
.talk.past, .plenary.past { opacity: .55; }
.card.past-all { opacity: .7; }
.flash { animation: flash 2.2s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--gold); } 100% { box-shadow: 0 0 0 0 transparent; } }

.plenary {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px dashed var(--line);
}
.plenary .p-when { flex: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 118px; }
.plenary .p-main { flex: 1; min-width: 0; }
.plenary .p-title { font-weight: 600; }
.plenary .p-venue { font-size: 12px; line-height: 1.3; margin-bottom: 3px; }
@media (max-width: 600px) {
  /* phones: time on its own line so the title gets the full width */
  .plenary.kind-plenary {
    display: grid; grid-template-columns: auto 1fr auto; column-gap: 10px; row-gap: 4px;
    grid-template-areas: "icon when star" "main main star";
  }
  .plenary.kind-plenary .p-icon { grid-area: icon; }
  .plenary.kind-plenary .p-when { grid-area: when; min-width: 0; }
  .plenary.kind-plenary .p-main { grid-area: main; }
  .plenary.kind-plenary .star { grid-area: star; align-self: center; }
}
.plenary .p-who { font-size: 13.5px; color: var(--ink-2); }
.plenary.kind-plenary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--maroon); box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .plenary.kind-plenary { border-left-color: var(--gold); } }
.plenary .p-icon { font-size: 18px; flex: none; }
.plenary.live { border-color: var(--live); background: var(--live-soft); }
.plenary .star { margin: -6px -8px -6px 0; }

/* ---------------------------------------------------------------- now */
.now-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.clock { font-family: var(--head); font-weight: 700; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-sub { color: var(--ink-2); font-weight: 600; margin-top: 6px; }
.hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 14px; border-top: 4px solid var(--maroon);
}
.hero h2 { font-size: 20px; }
.hero p { margin: 6px 0 0; color: var(--ink-2); }
.hero .btn { margin-top: 14px; }
.banner {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 14px;
  background: var(--warn-soft); border: 1px solid var(--line); font-weight: 600;
}
.banner.kind-plenary { background: var(--live-soft); }
.banner .muted { font-weight: 500; }
.mine {
  display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--star); margin-bottom: 14px;
}
.mine svg { width: 20px; height: 20px; fill: var(--star); flex: none; }
.now-grid { display: grid; gap: 12px; }
@media (min-width: 960px) { .now-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.nowcard { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--hall); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.nowcard > header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px 4px; }
.nowcard h2 { font-size: 17px; }
.nowcard h2 small { font-family: var(--body); font-weight: 500; color: var(--ink-2); font-size: 13.5px; }
.nowcard header a { font-size: 12.5px; font-weight: 600; color: var(--hall); text-decoration: none; white-space: nowrap; }
.slot { display: flex; gap: 8px; padding: 10px 14px 12px; }
.slot + .slot { border-top: 1px solid var(--line); }
.slot-main { flex: 1; min-width: 0; }
.slot-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.slot-title { margin: 6px 0 0; font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.slot.now-slot .slot-title { font-family: var(--head); font-size: 16.5px; }
.slot-who { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); }
.slot-ctx { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); }
.slot.idle { color: var(--ink-3); font-size: 14px; }
.progress { height: 4px; border-radius: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--live); }

/* ---------------------------------------------------------------- search + people */
.search-box { position: sticky; top: var(--tabs-h); z-index: 10; background: var(--bg); padding: 4px 0 10px; }
.search-box input {
  width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 16px 0 44px; font: inherit; font-size: 16px; color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d838b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center; background-size: 20px;
}
.search-box input:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(116, 3, 3, .15); }
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list > li + li { border-top: 1px solid var(--line); }
.row-link { display: flex; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; min-height: 52px; }
.row-link:hover { background: var(--surface-2); }
.row-link .grow { flex: 1; min-width: 0; }
.row-link .name { font-weight: 600; }
.row-link .sub { font-size: 13px; color: var(--ink-2); }
.row-link .chev { color: var(--ink-3); flex: none; }
.avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--maroon);
}
@media (prefers-color-scheme: dark) { .avatar { color: var(--gold); } }
.letter { font-family: var(--head); font-weight: 700; color: var(--maroon); margin: 18px 0 6px 4px; }
@media (prefers-color-scheme: dark) { .letter { color: var(--gold); } }
.hit { display: flex; gap: 12px; padding: 12px 14px; text-decoration: none; }
.hit:hover { background: var(--surface-2); }
.hit .t-when { width: 76px; }
.hit .hall-tag { font-size: 11px; }
mark { background: rgba(255, 216, 0, .45); color: inherit; border-radius: 3px; padding: 0 1px; }

.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--ink-2); min-height: 40px; }
.person-head { display: flex; gap: 14px; align-items: center; margin: 6px 0 4px; }
.person-head .avatar { width: 56px; height: 56px; font-size: 18px; }
.person-head h1 { font-size: 22px; }
.counts { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.eng { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; }
.eng .t-when { width: 76px; }
.eng .grow { flex: 1; min-width: 0; }
.eng a.go { text-decoration: none; font-weight: 600; }
.eng a.go:hover { text-decoration: underline; }
.role-chip { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 1px 7px; border-radius: 5px; margin-bottom: 4px; background: var(--hall-soft); color: var(--hall); }

/* ---------------------------------------------------------------- my schedule */
.clash { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: 4px 8px; border-radius: 6px; display: inline-block; }
.empty svg { width: 46px; height: 46px; fill: none; stroke: var(--star); stroke-width: 1.5; }
.empty h2 { color: var(--ink); font-size: 18px; margin: 10px 0 4px; }

/* ---------------------------------------------------------------- misc */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: #221b1b; color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: all .25s; z-index: 50; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.preview-banner { background: var(--gold); color: #3a0000; text-align: center; padding: 8px 16px; font-size: 14px; }
.offline-note { background: var(--warn-soft); color: var(--ink); padding: 8px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; }

@media (max-width: 380px) {
  .t-when { width: 64px; font-size: 12px; }
  .plenary .p-when { min-width: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================================================================ admin */
.admin { max-width: 860px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-bottom: 16px;
}
.panel h2 { font-size: 18px; margin-bottom: 6px; }
.panel p { margin: 6px 0; color: var(--ink-2); }
.step { display: flex; gap: 14px; }
.step-n {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--maroon); color: #fff;
  display: grid; place-items: center; font-family: var(--head); font-weight: 700;
}
.step-body { flex: 1; min-width: 0; }
.field { display: grid; gap: 6px; margin: 14px 0; }
.field input[type=password] { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); }
.drop {
  display: grid; place-items: center; text-align: center; gap: 6px; padding: 28px 16px; margin-top: 12px;
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); cursor: pointer;
}
.drop.over { border-color: var(--maroon); background: var(--live-soft); }
.drop strong { font-size: 16px; }
.status-live { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dot-ok { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.msg { border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.msg h3 { font-size: 15px; margin-bottom: 6px; }
.msg ul { margin: 6px 0 0; padding-left: 20px; }
.msg li { margin: 4px 0; }
.msg.err { background: var(--live-soft); border: 1px solid var(--live); }
.msg.warn { background: var(--warn-soft); border: 1px solid var(--line); }
.msg.ok { background: var(--ok-soft); border: 1px solid var(--ok); }
.msg.info { background: var(--surface-2); border: 1px solid var(--line); }
.change { margin: 8px 0; }
.change .what { font-weight: 600; }
.change table { border-collapse: collapse; margin-top: 4px; font-size: 13.5px; }
.change td { padding: 3px 10px 3px 0; vertical-align: top; }
.change .old { color: var(--live); text-decoration: line-through; }
.change .new { color: var(--ok); font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 16px; }
.hist { width: 100%; border-collapse: collapse; font-size: 14px; }
.hist th, .hist td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.hist th { color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-top: 0; }
.link-btn { background: none; border: 0; color: var(--maroon); font-weight: 600; cursor: pointer; padding: 4px 0; text-decoration: underline; }
@media (prefers-color-scheme: dark) { .link-btn { color: var(--gold); } }
details.more summary { cursor: pointer; font-weight: 600; }
