/* styles.css — DEF CON Singapore 2026 Schedule */

/* ─── Type ───────────────────────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --display: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Light surface — paper-like, warm */
  --bg: oklch(96.5% 0.012 80);
  --bg-2: oklch(94% 0.014 80);
  --rule: oklch(85% 0.018 80);
  --rule-soft: oklch(90% 0.014 80);
  --ink: oklch(18% 0.018 70);
  --ink-2: oklch(38% 0.018 70);
  --ink-3: oklch(56% 0.014 70);

  /* The single accent — burnt amber */
  --accent: oklch(64% 0.17 55);
  --accent-2: oklch(56% 0.18 50);
  --accent-soft: oklch(64% 0.17 55 / 0.10);

  /* Conflict signal */
  --warn: oklch(58% 0.20 25);
  --warn-soft: oklch(58% 0.20 25 / 0.10);

  --maxw: 740px;
  --pad: clamp(16px, 4vw, 28px);
  --row: clamp(56px, 14vw, 64px);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --t-fast: 120ms cubic-bezier(.2,.7,.3,1);
  --t-med: 280ms cubic-bezier(.2,.7,.3,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(15% 0.008 80);
    --bg-2: oklch(18% 0.010 80);
    --rule: oklch(28% 0.012 80);
    --rule-soft: oklch(22% 0.010 80);
    --ink: oklch(94% 0.012 80);
    --ink-2: oklch(74% 0.014 80);
    --ink-3: oklch(54% 0.012 80);

    --accent: oklch(76% 0.15 60);
    --accent-2: oklch(82% 0.13 65);
    --accent-soft: oklch(76% 0.15 60 / 0.14);

    --warn: oklch(70% 0.18 25);
    --warn-soft: oklch(70% 0.18 25 / 0.14);
  }
}

/* Manual theme override */
html[data-theme="dark"] {
  --bg: oklch(15% 0.008 80);
  --bg-2: oklch(18% 0.010 80);
  --rule: oklch(28% 0.012 80);
  --rule-soft: oklch(22% 0.010 80);
  --ink: oklch(94% 0.012 80);
  --ink-2: oklch(74% 0.014 80);
  --ink-3: oklch(54% 0.012 80);
  --accent: oklch(76% 0.15 60);
  --accent-2: oklch(82% 0.13 65);
  --accent-soft: oklch(76% 0.15 60 / 0.14);
  --warn: oklch(70% 0.18 25);
  --warn-soft: oklch(70% 0.18 25 / 0.14);
}
html[data-theme="light"] {
  --bg: oklch(96.5% 0.012 80);
  --bg-2: oklch(94% 0.014 80);
  --rule: oklch(85% 0.018 80);
  --rule-soft: oklch(90% 0.014 80);
  --ink: oklch(18% 0.018 70);
  --ink-2: oklch(38% 0.018 70);
  --ink-3: oklch(56% 0.014 70);
  --accent: oklch(64% 0.17 55);
  --accent-2: oklch(56% 0.18 50);
  --accent-soft: oklch(64% 0.17 55 / 0.10);
  --warn: oklch(58% 0.20 25);
  --warn-soft: oklch(58% 0.20 25 / 0.10);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  padding-bottom: env(safe-area-inset-bottom);
  min-height: 100dvh;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--bg); }

/* ─── Shell ──────────────────────────────────────────────────────────────── */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top);
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

/* ─── Masthead ───────────────────────────────────────────────────────────── */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 22px 0 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 14px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(22px, 5.5vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-3px);
}
.brand em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-2);
}
.meta-line {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.meta-line .now {
  color: var(--accent);
}
.theme-toggle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--rule);
  padding: 6px 8px;
  border-radius: var(--r-sm);
  margin-top: 4px;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-2); }

/* Date strap */
.strap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.strap hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ─── Tab content sections ───────────────────────────────────────────────── */
.view { display: none; }
.view.is-active { display: block; }

/* ─── Search & filters ───────────────────────────────────────────────────── */
.controls {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  padding: 8px 0 12px;
  margin: 0 calc(-1 * var(--pad)) 8px;
  padding-left: var(--pad);
  padding-right: var(--pad);
  border-bottom: 1px solid var(--rule-soft);
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 0 12px;
  height: 48px;
  background: var(--bg-2);
  transition: border-color var(--t-fast);
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }
.search input {
  border: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  padding: 0 10px;
  font-size: 16px;
  outline: none;
}
.search input::placeholder { color: var(--ink-3); }
.search kbd {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.search .clear-btn {
  font-size: 18px;
  color: var(--ink-3);
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
  display: none;
}
.search .clear-btn:hover { color: var(--ink); }
.search.has-value .clear-btn { display: block; }
.search.has-value kbd { display: none; }

.chip-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad));
  padding: 0 var(--pad);
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-row .label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  width: 36px;
}
.chip {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--t-fast);
}
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip.is-on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.chip .count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
}
.chip.is-on .count { color: var(--bg); opacity: 0.7; }

.chip.bookmark-only {
  border-color: var(--rule);
  margin-left: auto;
}
.chip.bookmark-only.is-on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Result meta ────────────────────────────────────────────────────────── */
.result-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.result-meta .num {
  color: var(--ink);
  font-weight: 700;
}

/* ─── Day section header ─────────────────────────────────────────────────── */
.day-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 22px 0 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1;
}
.day-header .num {
  font-family: var(--mono);
  font-size: clamp(36px, 10vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}
.day-header .name {
  font-family: var(--sans);
  font-size: clamp(17px, 4.2vw, 20px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.day-header .name span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  font-weight: 400;
}
.day-header .of {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
}

/* ─── Session row ────────────────────────────────────────────────────────── */
.session-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.session {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  cursor: pointer;
  transition: background var(--t-fast);
}
.session::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background var(--t-fast);
}
.session.is-bookmarked::before { background: var(--accent); }
.session:hover { background: linear-gradient(to right, var(--bg-2), transparent 60%); }

.session .time {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
  padding-top: 2px;
}
.session .time .end {
  display: block;
  color: var(--ink-3);
  font-weight: 400;
}
.session .time.allday {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  padding-top: 3px;
}

.session .body { min-width: 0; }
.session .badges {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.session .badge {
  border: 1px solid var(--rule);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.session .badge.t-talk { color: var(--accent); border-color: var(--accent); }
.session .badge.t-demolab { color: var(--ink-2); }
.session .badge.t-activity { color: var(--ink-2); }
.session .badge.t-contest { color: var(--ink-2); }
.session .badge.t-party { color: var(--ink-2); }
.session .badge.t-misc { color: var(--ink-2); }
.session .dotsep { color: var(--ink-3); opacity: 0.5; }

.session .title {
  font-family: var(--sans);
  font-size: clamp(15.5px, 4vw, 17px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 4px;
  text-wrap: balance;
}
.session .speakers {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.4;
  letter-spacing: -0.003em;
}
.session .speakers em {
  font-style: normal;
  color: var(--ink-3);
}
.session .loc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.session .loc::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--ink-3);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Expand/collapse description */
.session .desc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med);
}
.session .desc > div {
  overflow: hidden;
}
.session.is-open .desc { grid-template-rows: 1fr; }
.session .desc p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 56ch;
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
}

/* Star / bookmark button */
.session .star {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -6px -8px 0 0;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
  flex-shrink: 0;
  align-self: start;
}
.session .star:hover { background: var(--bg-2); }
.session .star svg {
  width: 20px; height: 20px;
  stroke: var(--ink-3);
  stroke-width: 1.6;
  fill: none;
  transition: all var(--t-fast);
}
.session.is-bookmarked .star svg {
  fill: var(--accent);
  stroke: var(--accent);
}

/* Conflict marker (My Schedule) */
.conflict {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--warn-soft);
  border-left: 2px solid var(--warn);
  font-size: 12.5px;
  color: var(--warn);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  line-height: 1.35;
}
.conflict strong {
  font-weight: 600;
  color: var(--warn);
}
.conflict .icon {
  font-family: var(--mono);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── My Schedule head ───────────────────────────────────────────────────── */
.sched-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 4px;
  flex-wrap: wrap;
}
.sched-head h1 {
  font-family: var(--mono);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}
.sched-head h1 em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-2);
}
.sched-head .stats {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 1.5;
}
.sched-head .stats b {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
}
.sched-head .stats .warn-b {
  color: var(--warn);
}

.export-bar {
  display: flex;
  gap: 8px;
  margin: 18px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--bg-2);
  align-items: center;
  justify-content: space-between;
}
.export-bar .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.export-bar button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  background: var(--bg);
  transition: all var(--t-fast);
  min-height: 36px;
}
.export-bar button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Empty state */
.empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--rule);
  border-radius: var(--r-lg);
  margin-top: 24px;
}
.empty .glyph {
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.empty h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.empty p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  max-width: 32ch;
  margin-inline: auto;
  line-height: 1.5;
}
.empty p kbd {
  font-family: var(--mono);
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  font-size: 12px;
}

/* ─── About ──────────────────────────────────────────────────────────────── */
.about {
  padding: 24px 0 40px;
}
.about .lede {
  font-family: var(--sans);
  font-size: clamp(18px, 4.6vw, 22px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 32ch;
  margin: 24px 0 28px;
  text-wrap: balance;
}
.about .lede b {
  font-weight: 700;
  color: var(--accent);
}
.about dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px 20px;
  font-size: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin: 0 0 28px;
}
.about dt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 2px;
}
.about dd { margin: 0; color: var(--ink); line-height: 1.5; }
.about .danger {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  display: grid;
  gap: 10px;
}
.about .danger h4 {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.about .danger p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.about .danger button {
  align-self: start;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--warn);
  border: 1px solid var(--warn);
  padding: 9px 14px;
  border-radius: var(--r-sm);
  margin-top: 4px;
  transition: all var(--t-fast);
  min-height: 44px;
}
.about .danger button:hover {
  background: var(--warn);
  color: var(--bg);
}

.colophon {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── Bottom nav ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: auto 0 0 0;
  background: color-mix(in oklch, var(--bg), transparent 8%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--rule);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 0 8px;
  min-height: 60px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  position: relative;
  transition: color var(--t-fast);
}
.nav button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}
.nav button.is-active { color: var(--ink); }
.nav button.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.nav button .pill {
  position: absolute;
  top: 6px;
  right: calc(50% - 26px);
  background: var(--accent);
  color: var(--bg);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
  letter-spacing: 0;
  display: none;
}
.nav button .pill.is-visible { display: block; }

/* ─── No-results state ───────────────────────────────────────────────────── */
.no-results {
  padding: 48px 0;
  text-align: center;
}
.no-results p {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.no-results small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ─── Live now / Up next strip ───────────────────────────────────────────── */
.now-strip {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 14px 14px 12px;
  margin: 4px 0 16px;
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 30%),
    var(--bg-2);
  position: relative;
  overflow: hidden;
}
.now-strip[hidden] { display: none; }
.now-strip .now-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.now-strip .now-head .pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
}
.now-strip .now-head .pulse::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent); opacity: 1; }
  70%  { box-shadow: 0 0 0 8px transparent; opacity: 0.7; }
  100% { box-shadow: 0 0 0 0 transparent; opacity: 1; }
}
.now-strip .now-head .clock {
  font-feature-settings: "tnum";
}
.now-strip .now-list {
  display: grid;
  gap: 10px;
}
.now-strip .now-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0 12px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--rule-soft);
  cursor: pointer;
  transition: opacity var(--t-fast);
}
.now-strip .now-row:first-child { border-top: 0; padding-top: 0; }
.now-strip .now-row:hover { opacity: 0.85; }
.now-strip .now-row .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  width: 50px;
  flex-shrink: 0;
}
.now-strip .now-row.is-live .label { color: var(--accent); font-weight: 600; }
.now-strip .now-row .ttl {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 2px;
  /* clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.now-strip .now-row .meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.now-strip .now-row .countdown {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  font-feature-settings: "tnum";
  text-align: right;
  white-space: nowrap;
}
.now-strip .now-row.is-live .countdown {
  color: var(--accent);
  font-weight: 600;
}
.now-strip .empty-line {
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  padding: 6px 0;
}

/* "Timed only" toggle chip — non-bookmark variant */
.chip.toggle {
  border-color: var(--rule);
}
.chip.toggle.is-on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ─── Kampungs view ──────────────────────────────────────────────────────── */
.kampung-lede {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
  margin: 12px 0 24px;
  line-height: 1.5;
  max-width: 48ch;
}
.kampungs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.kampung-group .group-head {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 6px;
}
.kampung {
  border-bottom: 1px solid var(--rule-soft);
}
.kampung-toggle {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 14px 0;
  min-height: 48px;
  cursor: pointer;
}
.kampung-toggle:hover .k-name { color: var(--accent); }
.kampung-toggle .k-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 38px;
}
.kampung-toggle .k-name {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
  transition: color var(--t-fast);
  min-width: 0;
}
.kampung-toggle .k-name small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.kampung-toggle .k-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  font-feature-settings: "tnum";
  font-weight: 500;
}
.kampung-toggle .k-chev {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-3);
  transition: transform var(--t-fast);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.kampung.is-open .k-chev { transform: rotate(90deg); color: var(--accent); }
.kampung .k-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med);
}
.kampung .k-body > div { overflow: hidden; }
.kampung.is-open .k-body { grid-template-rows: 1fr; }
.kampung .k-inner {
  padding: 4px 0 18px;
  border-top: 1px dashed var(--rule-soft);
  margin-top: -1px;
}
.kampung .k-inner .session {
  grid-template-columns: 56px 1fr auto;
}

/* ─── Wider screens ──────────────────────────────────────────────────────── */
@media (min-width: 720px) {
  .session { grid-template-columns: 80px 1fr auto; gap: 0 22px; padding: 20px 0; }
  .session .time { font-size: 14px; }
  .now-strip { padding: 18px; }
}
