:root {
  color-scheme: light;
  --bg: oklch(0.972 0.004 252);
  --surface: oklch(0.995 0 0);
  --surface-2: oklch(0.946 0.006 252);
  --surface-3: oklch(0.912 0.01 252);
  --ink: oklch(0.18 0.014 252);
  --muted: oklch(0.44 0.018 252);
  --soft: oklch(0.58 0.02 252);
  --line: oklch(0.86 0.011 252);
  --accent: oklch(0.48 0.15 251);
  --accent-weak: oklch(0.91 0.04 251);
  --youtube: oklch(0.46 0.17 27);
  --youtube-weak: oklch(0.96 0.026 27);
  --data: oklch(0.42 0.08 186);
  --data-weak: oklch(0.95 0.025 186);
  --success: oklch(0.48 0.11 154);
  --warning: oklch(0.58 0.13 70);
  --danger: oklch(0.52 0.16 28);
  --shadow: 0 8px 18px oklch(0.2 0.018 252 / 0.08);
  --radius: 8px;
  --control-radius: 6px;
  --control-height-compact: 28px;
  --control-height-touch: 44px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.app-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 230px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  font-weight: 760;
  letter-spacing: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 730;
}

.brand-meta,
.control-label,
.workspace-grid p,
.event-meta,
.event-source,
.small-label,
.detail-kicker {
  color: var(--muted);
}

.brand-meta {
  font-size: 12px;
}

.topbar-controls {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.control-label {
  font-size: 12px;
  font-weight: 650;
  padding-bottom: 8px;
}

.select-control,
.search-control {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0 11px;
  outline: none;
}

.select-control {
  min-width: 208px;
}

.search-control {
  width: min(34vw, 420px);
  min-width: 240px;
}

.select-control:focus,
.search-control:focus,
.control-chip:focus-visible,
.mode-tab:focus-visible,
.event-row:focus-visible,
.save-button:focus-visible,
.secondary-button:focus-visible,
.detail-action:focus-visible,
.export-button:focus-visible,
.interest-node:focus-visible,
.ask-result-row:focus-visible,
.route-repair-action:focus-visible,
.registration-action:focus-visible,
.schedule-session:focus-visible,
.pin-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.export-control {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "label status"
    "buttons buttons";
  align-items: end;
  gap: 4px 8px;
  min-width: 150px;
}

.export-label {
  grid-area: label;
  padding: 0;
}

.export-buttons {
  grid-area: buttons;
  display: flex;
  align-items: center;
  gap: 4px;
}

.export-button {
  height: 30px;
  min-width: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.export-button:hover {
  border-color: oklch(0.74 0.05 251);
  color: var(--accent);
}

.export-button:active {
  background: var(--accent-weak);
}

.export-status {
  grid-area: status;
  min-height: 16px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.mode-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  overflow-x: auto;
}

.mode-tab {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
}

.mode-tab:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.mode-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line);
}

.workspace-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.15fr) minmax(300px, 0.9fr);
  gap: 1px;
  background: var(--line);
  overflow: hidden;
}

.event-rail,
.map-workspace,
.detail-panel {
  min-width: 0;
  min-height: 0;
  background: var(--surface);
  overflow: auto;
}

.event-rail,
.detail-panel {
  padding: 16px;
}

.map-workspace {
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.rail-header,
.map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  font-size: 15px;
  line-height: 1.2;
}

h3 {
  font-size: 17px;
  line-height: 1.25;
}

.count-stack {
  min-width: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 8px;
  text-align: right;
  color: var(--muted);
}

.count-stack span:first-child {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 730;
  line-height: 1;
}

.count-stack span:last-child {
  font-size: 11px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.status-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--surface);
}

.status-value {
  display: block;
  font-size: 18px;
  font-weight: 720;
}

.status-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.registration-toolbar,
.organization-toolbar,
.interest-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.registration-toolbar[hidden],
.organization-toolbar[hidden],
.interest-toolbar[hidden],
.interest-graph[hidden] {
  display: none;
}

.control-chip {
  min-height: 31px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.control-chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.control-chip-prefix,
.control-chip-count {
  color: var(--soft);
  font-weight: 720;
}

.control-chip-prefix {
  font-size: 11px;
}

.control-chip-count {
  font-size: 12px;
}

.control-chip:hover,
.interest-node:hover {
  border-color: oklch(0.74 0.05 251);
  color: var(--ink);
}

.control-chip.is-active,
.interest-node.is-active {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent);
}

.control-chip.is-active .control-chip-prefix,
.control-chip.is-active .control-chip-count,
.interest-node.is-active .control-chip-prefix,
.interest-node.is-active .control-chip-count {
  color: var(--accent);
}

.interest-filter {
  max-width: 260px;
}

.interest-graph {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px;
}

.interest-graph-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.interest-graph-header strong {
  font-size: 13px;
}

.interest-graph-header span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.interest-group {
  display: grid;
  gap: 6px;
}

.interest-group h3 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.interest-node-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}

.interest-node {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 7px 8px;
  text-align: left;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.interest-node .control-chip-prefix {
  grid-column: 1 / -1;
  color: var(--soft);
  font-size: 10px;
  font-weight: 760;
}

.interest-node .control-chip-count {
  color: var(--soft);
  font-size: 12px;
}

.stream-board,
.ask-board,
.community-board,
.live-now-board {
  display: grid;
  gap: 12px;
}

.stream-board-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.stream-board-header h2 {
  margin-bottom: 3px;
  font-size: 16px;
}

.stream-board-header p {
  color: var(--muted);
}

.stream-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.source-action-group {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface);
  padding: 1px;
}

.source-action {
  --source-accent: var(--accent);
  --source-accent-weak: var(--accent-weak);
  min-height: 26px;
  max-width: 100%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid color-mix(in oklch, var(--line) 92%, var(--ink));
  border-radius: calc(var(--control-radius) - 1px);
  background: var(--surface);
  color: var(--ink);
  padding: 0 8px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.source-action-component {
  -webkit-tap-highlight-color: transparent;
  font-variant-numeric: tabular-nums;
}

.source-action-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-action:hover {
  border-color: color-mix(in oklch, var(--source-accent) 38%, var(--line));
  background: var(--surface-2);
  color: var(--ink);
}

.source-action:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--accent) 70%, white);
  outline-offset: 2px;
}

.source-action[data-active="true"],
.source-action[aria-pressed="true"] {
  border-color: color-mix(in oklch, var(--source-accent) 58%, var(--line));
  background: var(--source-accent-weak);
  color: var(--source-accent);
}

.source-action.is-strong {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.source-action.is-strong:hover {
  border-color: color-mix(in oklch, var(--ink) 88%, var(--accent));
  background: color-mix(in oklch, var(--ink) 88%, var(--accent));
}

.source-action-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--source-accent);
  line-height: 1;
}

.source-action-icon svg {
  width: 13px;
  height: 13px;
  display: block;
  fill: currentColor;
}

.source-action-fallback {
  font-size: 9px;
  font-weight: 760;
}

.source-action.is-source-official {
  --source-accent: var(--accent);
  --source-accent-weak: var(--accent-weak);
}

.source-action.is-source-youtube .source-action-icon {
  color: var(--youtube);
}

.source-action.is-source-youtube:hover,
.source-action.is-source-youtube:focus-visible {
  border-color: color-mix(in oklch, var(--youtube) 34%, var(--line));
  background: var(--surface-2);
  color: var(--ink);
}

.source-action.is-source-youtube {
  --source-accent: var(--youtube);
  --source-accent-weak: var(--youtube-weak);
}

.source-action.is-source-data .source-action-icon {
  color: var(--data);
}

.source-action.is-source-data:hover,
.source-action.is-source-data:focus-visible {
  border-color: color-mix(in oklch, var(--data) 42%, var(--line));
  background: var(--data-weak);
  color: var(--data);
}

.source-action.is-source-data {
  --source-accent: var(--data);
  --source-accent-weak: var(--data-weak);
}

.source-action.is-source-watch:not(.is-strong) .source-action-icon,
.source-action.is-source-official .source-action-icon {
  color: var(--accent);
}

.source-action.is-strong .source-action-icon {
  color: var(--surface);
}

.source-action[data-active="true"] .source-action-icon,
.source-action[aria-pressed="true"] .source-action-icon {
  color: var(--source-accent);
}

.source-action-group .source-action {
  border: 0;
  border-radius: calc(var(--control-radius) - 2px);
  background: transparent;
}

.source-action-group .source-action:hover {
  background: var(--surface-2);
}

.source-action-group .source-action + .source-action::before {
  content: "";
  width: 1px;
  height: 14px;
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  background: color-mix(in oklch, var(--line) 86%, var(--ink));
}

.source-action-group .source-action:hover::before,
.source-action-group .source-action:focus-visible::before {
  opacity: 0;
}

.source-action-group .source-action:focus-visible {
  outline-offset: -2px;
}

.source-action-group .source-action.is-strong {
  background: var(--ink);
  color: var(--surface);
}

.source-action-group .source-action.is-strong:hover {
  background: color-mix(in oklch, var(--ink) 88%, var(--accent));
  color: var(--surface);
}

.stream-atlas-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stream-atlas-strip a {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  padding: 8px;
  text-decoration: none;
}

.stream-atlas-strip a:hover {
  border-color: var(--accent);
}

.stream-atlas-strip span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
}

.stream-atlas-strip strong {
  font-size: 12px;
}

.stream-group {
  display: grid;
  gap: 8px;
}

.stream-group-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.stream-group-heading h3 {
  font-size: 13px;
}

.stream-group-heading span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 740;
}

.stream-card,
.community-card,
.live-now-stream-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.live-now-group {
  display: grid;
  gap: 8px;
}

.live-now-session-list {
  display: grid;
  gap: 7px;
}

.live-now-session {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 9px;
  text-align: left;
  cursor: pointer;
}

.live-now-session:hover {
  border-color: var(--accent);
}

.live-now-session.is-selected {
  border-color: var(--accent);
  background: var(--accent-weak);
}

.live-now-session > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.live-now-session strong {
  font-size: 13px;
}

.live-now-session small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
}

.live-now-session em {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--soft);
  padding: 4px 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
  text-transform: uppercase;
}

.live-now-source-panel section:first-child {
  grid-column: 1 / -1;
}

.stream-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-weak);
}

.stream-card h4,
.community-card h4 {
  margin: 5px 0 4px;
  font-size: 13px;
}

.stream-card p,
.community-card p,
.stream-meta-line,
.stream-empty,
.stream-issue-note span {
  color: var(--muted);
  font-size: 12px;
}

.stream-card-kicker,
.stream-meta-line,
.stream-linked-events,
.stream-surface-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.stream-card-kicker {
  color: var(--soft);
  font-size: 11px;
  font-weight: 760;
}

.stream-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 2px 6px;
}

.stream-status.is-live {
  border-color: oklch(0.72 0.1 28);
  background: oklch(0.96 0.024 28);
  color: var(--danger);
}

.stream-status.is-upcoming {
  border-color: oklch(0.72 0.08 251);
  background: var(--accent-weak);
  color: var(--accent);
}

.stream-status.is-past {
  border-color: var(--line);
  background: var(--surface-2);
}

.community-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 2px 6px;
}

.community-status.is-public {
  border-color: oklch(0.72 0.1 154);
  background: oklch(0.95 0.025 154);
  color: var(--success);
}

.community-status.is-login_required {
  border-color: oklch(0.76 0.09 70);
  background: oklch(0.96 0.025 70);
  color: oklch(0.42 0.08 70);
}

.community-status.is-unknown {
  border-color: var(--line);
  background: var(--surface-2);
}

.community-capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.community-capability-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 690;
}

.stream-surface-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 690;
}

.stream-linked-events .control-chip {
  min-height: 28px;
  border-radius: 999px;
  color: var(--ink);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 720;
}

.stream-linked-events .control-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stream-actions {
  display: grid;
  gap: 5px;
  min-width: 78px;
}

.stream-actions .source-action {
  width: 100%;
}

.stream-issue-note {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px;
}

.stream-source-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  overflow: auto;
  background: var(--surface-2);
}

.stream-source-panel section,
.official-stream-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.stream-source-panel section {
  display: grid;
  gap: 5px;
  align-content: start;
}

.stream-source-panel span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 760;
}

.stream-source-panel strong {
  font-size: 13px;
}

.stream-source-panel a:not(.source-action) {
  color: var(--accent);
  font-size: 12px;
  font-weight: 740;
  text-decoration: none;
}

.stream-source-panel .source-action {
  justify-self: start;
  min-height: 26px;
  max-width: 100%;
}

.stream-source-panel p {
  color: var(--muted);
  font-size: 12px;
}

.stream-source-caveat {
  grid-column: 1 / -1;
}

.community-source-panel section:first-child {
  grid-column: 1 / -1;
}

.stream-atlas-panel .stream-atlas-hero {
  grid-column: 1 / -1;
}

.stream-detail-event {
  width: 100%;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.stream-detail-event:hover {
  border-color: var(--accent);
}

.stream-detail-event span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 730;
}

.stream-detail-event small {
  color: var(--muted);
  font-size: 11px;
}

.ask-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ask-chat-composer {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.ask-chat-composer label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.ask-chat-composer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: center;
}

.ask-chat-composer input {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  border: 1px solid var(--line-strong);
  border-radius: var(--control-radius);
  background: var(--surface-2);
  color: var(--ink);
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.ask-chat-composer input:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.ask-chat-composer .control-chip {
  min-height: 32px;
  height: 32px;
  justify-content: center;
}

.ask-chat-composer .control-chip.is-secondary {
  background: var(--surface-2);
  color: var(--muted);
}

.ask-chat-composer p {
  color: var(--muted);
  font-size: 12px;
}

.ask-faq-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  align-items: start;
}

.ask-faq-group {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px;
}

.ask-faq-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.ask-faq-heading strong {
  color: var(--ink);
  font-size: 12px;
}

.ask-faq-heading span {
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

.ask-faq-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ask-suggestions .control-chip {
  min-height: 31px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 720;
}

.ask-suggestions .control-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ask-chat-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--surface) 82%, var(--surface-2));
  padding: 10px;
}

.ask-chat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.ask-chat-card-header strong {
  color: var(--ink);
  font-size: 13px;
}

.ask-chat-turns {
  display: grid;
  gap: 11px;
}

.ask-chat-turn {
  display: grid;
  gap: 8px;
}

.ask-chat-turn + .ask-chat-turn {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.ask-chat-card.is-loading {
  background: var(--surface-2);
}

.ask-chat-card.is-error {
  border-color: oklch(0.76 0.09 28);
  background: oklch(0.97 0.018 28);
}

.ask-chat-message {
  display: grid;
  gap: 4px;
}

.ask-chat-message > span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 740;
}

.ask-chat-message.is-user {
  justify-items: end;
}

.ask-chat-message.is-assistant {
  justify-items: start;
}

.ask-chat-bubble {
  max-width: min(100%, 68ch);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.45;
}

.ask-chat-message.is-user .ask-chat-bubble {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.ask-chat-bubble p {
  margin: 0;
  color: inherit;
}

.ask-chat-bubble p + p,
.ask-chat-bubble p + ul,
.ask-chat-bubble ul + p {
  margin-top: 7px;
}

.ask-chat-bubble ul {
  margin: 0;
  padding-left: 18px;
}

.ask-chat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.ask-chat-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--muted);
  padding: 3px 6px;
  font-size: 11px;
}

.ask-chat-meta strong {
  color: var(--ink);
  font-size: 11px;
}

.ask-chat-meta em {
  color: var(--muted);
  font-style: normal;
}

.ask-answer-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.ask-answer-card.is-loading {
  background: var(--surface-2);
}

.ask-answer-card.is-error,
.ask-answer-card.is-attention {
  border-color: oklch(0.76 0.09 70);
  background: oklch(0.97 0.018 70);
}

.ask-answer-card h3 {
  font-size: 16px;
  line-height: 1.25;
}

.ask-answer-card p {
  max-width: 70ch;
  color: var(--ink);
  font-size: 13px;
}

.ask-answer-bullets {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
}

.ask-caveat {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 7px;
  font-size: 12px;
}

.ask-result-group {
  display: grid;
  gap: 8px;
}

.ask-result-list {
  display: grid;
  gap: 7px;
}

.ask-result-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 9px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.ask-result-row:hover {
  border-color: var(--accent);
}

.ask-result-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ask-result-row strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.ask-result-row small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
}

.ask-result-row em {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--soft);
  padding: 4px 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
  text-transform: uppercase;
}

.ask-source-panel section:first-child {
  grid-column: 1 / -1;
}

.source-health-panel {
  grid-column: 1 / -1;
}

.source-health-panel.is-ready_with_warnings {
  border-color: color-mix(in oklch, var(--warning) 44%, var(--line));
}

.source-health-metrics,
.source-health-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.source-health-metrics span,
.source-health-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
}

.source-health-list {
  display: grid;
  gap: 5px;
}

.source-health-row {
  justify-content: space-between;
}

.source-health-row strong {
  font-size: 12px;
}

.ask-citation-detail a {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  padding: 8px;
  text-decoration: none;
}

.ask-citation-detail a:hover {
  border-color: var(--accent);
}

.ask-citation-detail small {
  color: var(--muted);
  font-size: 11px;
}

.schedule-grid-shell {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--surface-2);
  text-align: left;
}

.schedule-grid-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.schedule-grid-header strong {
  display: block;
  font-size: 13px;
}

.schedule-grid-header span {
  color: var(--muted);
  font-size: 12px;
}

.schedule-grid-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.schedule-grid-links .source-action-group {
  justify-self: end;
}

.schedule-grid-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.schedule-grid-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 11px;
}

.schedule-grid-table + .schedule-grid-table {
  border-top: 1px solid var(--line);
}

.schedule-grid-table th,
.schedule-grid-table td {
  width: 136px;
  min-width: 136px;
  max-width: 136px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.schedule-day-heading {
  position: sticky;
  top: 0;
  z-index: 24;
  width: auto;
  max-width: none;
  background: var(--ink);
  color: var(--surface);
  padding: 7px 9px;
  text-align: left;
  font-size: 12px;
}

.schedule-room-heading,
.schedule-time-heading {
  position: sticky;
  top: 31px;
  z-index: 20;
  background: var(--surface-2);
  color: var(--ink);
  padding: 7px 8px;
  text-align: left;
  font-size: 11px;
  font-weight: 780;
}

.schedule-time-heading,
.schedule-time-cell {
  left: 0;
  z-index: 22;
  width: 62px;
  min-width: 62px;
  max-width: 62px;
  background: var(--surface);
}

.schedule-time-heading {
  z-index: 28;
  background: var(--surface-2);
}

.schedule-time-cell {
  position: sticky;
  color: var(--soft);
  padding: 9px 7px;
  font-weight: 780;
}

.schedule-grid-cell {
  height: 92px;
  background: var(--surface);
  padding: 4px;
}

.schedule-grid-cell.has-multiple {
  background: oklch(0.97 0.014 70);
}

.schedule-cell-scroll {
  max-height: 84px;
  display: grid;
  gap: 4px;
  overflow-y: auto;
}

.schedule-session {
  width: 100%;
  display: grid;
  gap: 3px;
  border: 1px solid oklch(0.83 0.025 251);
  border-radius: 6px;
  background: oklch(0.965 0.025 251);
  color: var(--ink);
  padding: 6px;
  text-align: left;
  line-height: 1.18;
  cursor: pointer;
}

.schedule-session:hover {
  border-color: var(--accent);
}

.schedule-session.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.schedule-session.is-tentative {
  border-style: dashed;
  background: oklch(0.975 0.02 70);
}

.schedule-session strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 11px;
  line-height: 1.18;
}

.schedule-session span,
.schedule-session small {
  color: var(--muted);
  font-size: 10px;
}

.schedule-session > span:not(.schedule-session-speaker-context),
.schedule-session small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-session-speaker-context {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}

.schedule-session-speaker-context span {
  border: 1px solid color-mix(in oklch, var(--accent) 24%, var(--line));
  border-radius: 999px;
  background: color-mix(in oklch, var(--accent-weak) 72%, var(--surface));
  color: color-mix(in oklch, var(--accent) 76%, var(--ink));
  padding: 1px 4px;
  font-size: 9px;
  font-weight: 780;
  line-height: 1.15;
}

.schedule-preview {
  position: fixed;
  z-index: 70;
  display: grid;
  gap: 8px;
  border: 1px solid color-mix(in oklch, var(--accent) 28%, var(--line));
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 8px oklch(0.2 0.018 252 / 0.12);
  padding: 10px;
}

.schedule-preview[hidden] {
  display: none;
}

.schedule-preview-kicker,
.schedule-preview p,
.schedule-preview small,
.schedule-preview-footer > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.schedule-preview-kicker {
  font-weight: 760;
}

.schedule-preview > strong {
  font-size: 13px;
  line-height: 1.25;
}

.schedule-preview p {
  margin: 0;
}

.schedule-preview-speakers {
  display: grid;
  gap: 6px;
}

.schedule-preview-speakers > span {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.schedule-preview-speakers img,
.schedule-preview-speakers .speaker-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
}

.schedule-preview-speakers b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.schedule-preview-speakers small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-preview-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.schedule-preview-actions.source-action-group {
  flex: 1 1 190px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  overflow: visible;
  border: 0;
  background: transparent;
  padding: 0;
}

.schedule-preview-actions.source-action-group .source-action {
  border: 1px solid color-mix(in oklch, var(--line) 92%, var(--ink));
  background: var(--surface);
}

.schedule-preview-actions.source-action-group .source-action::before {
  display: none;
}

.official-stream-detail,
.official-mcp-detail {
  display: grid;
  gap: 7px;
}

.official-stream-detail span,
.official-mcp-detail span {
  color: var(--muted);
  font-size: 12px;
}

.session-stream-bridge {
  gap: 9px;
}

.session-stream-record {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 9px;
}

.session-stream-record.is-confirmed {
  border-color: color-mix(in oklch, var(--accent) 30%, var(--line));
}

.session-stream-record.is-candidate {
  border-color: oklch(0.78 0.09 74);
  background: oklch(0.98 0.017 82);
}

.session-stream-coverage {
  background: var(--surface-2);
}

.session-stream-coverage.is-confirmed {
  border-color: color-mix(in oklch, var(--accent) 30%, var(--line));
}

.session-stream-coverage.is-candidate {
  border-color: oklch(0.78 0.09 74);
  background: oklch(0.98 0.017 82);
}

.session-stream-coverage.is-not-covered {
  border-color: color-mix(in oklch, var(--line) 72%, oklch(0.55 0.08 35));
}

.session-stream-heading {
  display: grid;
  gap: 3px;
}

.session-stream-heading span {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--muted);
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 760;
}

.session-stream-record.is-confirmed .session-stream-heading span {
  border-color: color-mix(in oklch, var(--accent) 32%, var(--line));
  color: var(--accent);
}

.session-stream-record.is-candidate .session-stream-heading span {
  border-color: oklch(0.78 0.09 74);
  color: oklch(0.47 0.09 74);
}

.session-stream-coverage.is-not-covered .session-stream-heading span {
  border-color: color-mix(in oklch, var(--line) 65%, oklch(0.55 0.08 35));
  color: oklch(0.42 0.07 35);
}

.session-stream-heading strong {
  font-size: 13px;
}

.session-stream-record p,
.session-stream-coverage p {
  color: var(--muted);
  font-size: 12px;
}

.session-stream-actions {
  justify-self: start;
}

.session-speaker-detail {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px;
}

.session-speaker-detail > strong {
  font-size: 13px;
  line-height: 1.2;
}

.session-speaker-list {
  display: grid;
  gap: 6px;
}

.session-speaker-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.session-speaker-card > div {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.session-speaker-card img,
.speaker-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
}

.session-speaker-card img {
  object-fit: cover;
  border: 1px solid var(--line);
}

.speaker-avatar {
  display: grid;
  place-items: center;
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
}

.session-speaker-card h4 {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.15;
}

.session-speaker-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.speaker-directory-board {
  display: grid;
  gap: 10px;
}

.speaker-directory-list {
  display: grid;
  gap: 8px;
}

.speaker-directory-card {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 9px;
  text-align: left;
  cursor: pointer;
}

.speaker-directory-card:hover {
  border-color: oklch(0.74 0.05 251);
}

.speaker-directory-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-weak);
}

.speaker-directory-card img,
.speaker-related-grid img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.speaker-directory-card-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.speaker-directory-card-main strong,
.speaker-profile-section > strong {
  font-size: 13px;
}

.speaker-directory-card-main span,
.speaker-directory-card-main small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.speaker-source-panel section:nth-child(4),
.speaker-source-panel section:nth-child(5) {
  grid-column: 1 / -1;
}

.speaker-profile {
  display: grid;
  gap: 12px;
}

.speaker-profile-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.speaker-profile-avatar {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.speaker-profile-avatar.speaker-avatar {
  font-size: 18px;
}

.speaker-profile-section {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.speaker-session-list,
.speaker-related-grid {
  display: grid;
  gap: 7px;
}

.speaker-session-button {
  width: 100%;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.speaker-session-button:hover,
.speaker-related-grid button:hover {
  border-color: var(--accent);
}

.speaker-source-roster .speaker-session-button {
  background: var(--surface-2);
  cursor: default;
}

.speaker-source-roster .speaker-session-button:hover {
  border-color: var(--line);
}

.speaker-session-button span {
  font-size: 12px;
  font-weight: 760;
}

.speaker-session-button small,
.speaker-related-grid small {
  color: var(--muted);
  font-size: 11px;
}

.speaker-related-grid button {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 7px;
  text-align: left;
  cursor: pointer;
}

.speaker-related-grid button > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.speaker-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.speaker-links a:not(.source-action) {
  color: var(--accent);
  font-size: 12px;
  font-weight: 740;
  text-decoration: none;
}

.speaker-links .source-action {
  min-height: 23px;
  padding: 2px 6px;
  font-size: 11px;
}

.speaker-related {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.speaker-related > strong {
  font-size: 12px;
  line-height: 1.2;
}

.speaker-related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 4px;
}

.speaker-related-list button {
  display: grid;
  gap: 1px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 5px 7px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.speaker-related-list button:hover {
  border-color: var(--accent);
}

.speaker-related-list span {
  font-size: 12px;
  font-weight: 760;
  line-height: 1.15;
}

.speaker-related-list small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.conflict-summary,
.conflict-detail,
.route-feasibility-summary,
.route-detail {
  border: 1px solid oklch(0.78 0.07 70);
  border-radius: var(--radius);
  background: oklch(0.985 0.018 70);
  color: var(--ink);
}

.conflict-summary,
.route-feasibility-summary {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
  padding: 9px 10px;
}

.conflict-summary[hidden],
.route-feasibility-summary[hidden] {
  display: none;
}

.conflict-summary strong,
.conflict-detail strong,
.route-feasibility-summary strong,
.route-detail strong {
  font-size: 12px;
}

.conflict-summary span,
.conflict-detail span,
.route-feasibility-summary span,
.route-detail span {
  color: var(--muted);
  font-size: 12px;
}

.route-repair-suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
}

.route-repair-suggestion span {
  display: grid;
  gap: 2px;
}

.route-repair-description {
  color: var(--muted);
}

.route-repair-action {
  min-height: 30px;
  border: 1px solid oklch(0.68 0.08 70);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 740;
  cursor: pointer;
}

.route-repair-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.route-feasibility-summary.is-pending {
  border-color: var(--line);
  background: var(--surface-2);
}

.route-feasibility-summary.is-clear {
  border-color: oklch(0.74 0.07 154);
  background: oklch(0.975 0.016 154);
}

.route-feasibility-summary.is-attention,
.route-detail {
  border-color: oklch(0.78 0.07 70);
  background: oklch(0.985 0.018 70);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 10px;
  cursor: pointer;
}

.event-row:hover {
  border-color: oklch(0.74 0.05 251);
}

.event-row.has-conflict {
  background: oklch(0.985 0.018 70);
  border-color: oklch(0.78 0.07 70);
}

.event-row.is-selected {
  border-color: var(--accent);
  background: var(--accent-weak);
}

.event-title {
  font-weight: 720;
  margin-bottom: 4px;
}

.event-meta,
.event-source {
  font-size: 12px;
}

.source-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--warning);
}

.source-dot.is-mapped {
  background: var(--success);
}

.save-button,
.secondary-button,
.detail-action,
.pin-button {
  border-radius: var(--radius);
  cursor: pointer;
}

.save-button {
  width: 34px;
  height: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 760;
}

.save-button.is-saved {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.secondary-button {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.secondary-button.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.map-canvas {
  position: relative;
  flex: 1;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0 42%, oklch(0.93 0.018 154 / 0.74) 42% 45%, transparent 45% 100%),
    linear-gradient(25deg, transparent 0 54%, oklch(0.92 0.015 205 / 0.62) 54% 57%, transparent 57% 100%),
    linear-gradient(90deg, transparent 31px, oklch(0.88 0.008 252) 32px, transparent 33px),
    linear-gradient(0deg, transparent 31px, oklch(0.88 0.008 252) 32px, transparent 33px),
    oklch(0.965 0.006 252);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px, auto;
}

.mapbox-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--surface-2);
}

.mapbox-canvas .mapboxgl-canvas,
.mapbox-canvas .mapboxgl-canvas-container {
  width: 100% !important;
  height: 100% !important;
}

.map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.pin-button {
  position: absolute;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
  box-shadow: 0 1px 5px oklch(0.18 0.014 252 / 0.24);
}

.pin-button.is-selected {
  width: 34px;
  height: 34px;
  background: var(--danger);
}

.pin-button.is-saved {
  background: var(--success);
}

.pin-button.is-route-stop {
  width: 34px;
  height: 34px;
  background: var(--ink);
}

.pin-button.is-route-stop.is-saved {
  background: var(--success);
}

.mapbox-marker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  cursor: pointer;
  box-shadow: 0 1px 5px oklch(0.18 0.014 252 / 0.26);
}

.mapbox-marker:hover,
.mapbox-marker:focus-visible {
  border-color: oklch(0.96 0.02 251);
  box-shadow: 0 2px 8px oklch(0.18 0.014 252 / 0.34);
}

.mapbox-marker:focus-visible {
  outline: 3px solid oklch(0.72 0.12 251);
  outline-offset: 2px;
}

.mapbox-marker.is-selected {
  width: 34px;
  height: 34px;
  background: var(--danger);
  z-index: 4;
}

.mapbox-marker.is-saved {
  background: var(--success);
}

.mapbox-marker.is-route-stop {
  width: 34px;
  height: 34px;
  border-color: white;
  background: var(--ink);
}

.mapbox-marker.is-route-stop.is-saved {
  background: var(--success);
}

.mapbox-marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.pin-sequence {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: oklch(0.2 0.014 252 / 0.18);
}

.route-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-segment {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.route-segment-outline {
  stroke: oklch(1 0 0 / 0.92);
  stroke-width: 9;
}

.route-segment-color {
  stroke: var(--accent);
  stroke-width: 4;
}

.route-segment-group.is-ok .route-segment-color {
  stroke: var(--success);
}

.route-segment-group.is-tight .route-segment-color,
.route-segment-group.is-unknown-time .route-segment-color {
  stroke: var(--warning);
}

.route-segment-group.is-impossible .route-segment-color,
.route-segment-group.is-overlap .route-segment-color {
  stroke: var(--danger);
}

.route-segment-group.is-needs-review .route-segment-color,
.route-segment-group.is-pending .route-segment-color {
  stroke: var(--muted);
  stroke-dasharray: 5 4;
}

.route-segment-label {
  paint-order: stroke;
  stroke: white;
  stroke-width: 4px;
  stroke-linejoin: round;
  fill: var(--ink);
  font-size: 3.2px;
  font-weight: 780;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.map-route-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: grid;
  gap: 2px;
  max-width: min(260px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(1 0 0 / 0.88);
  padding: 8px 10px;
  box-shadow: 0 10px 24px oklch(0.2 0.014 252 / 0.12);
}

.map-renderer-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(1 0 0 / 0.88);
  color: var(--muted);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 760;
  box-shadow: 0 10px 24px oklch(0.2 0.014 252 / 0.1);
}

.map-route-legend strong {
  font-size: 12px;
}

.map-route-legend span {
  color: var(--muted);
  font-size: 12px;
}

.unmapped-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.unmapped-token {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 7px;
  color: var(--muted);
  font-size: 12px;
  background: var(--surface);
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.detail-kicker {
  font-size: 12px;
  margin-bottom: 4px;
}

.detail-title {
  margin-bottom: 8px;
}

.detail-meta-grid,
.detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.planner-actions,
.registration-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.planner-action,
.registration-action {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  min-width: 0;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.12;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.planner-action:hover,
.registration-action:hover {
  color: var(--ink);
  border-color: oklch(0.74 0.05 251);
}

.planner-action.is-active,
.registration-action.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.conflict-detail,
.route-detail {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.detail-field {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
}

.detail-field span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 3px;
}

.detail-field strong {
  font-size: 13px;
}

.detail-action {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: var(--ink);
  background: var(--surface);
  padding: 0 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.detail-action:hover {
  border-color: color-mix(in oklch, var(--ink) 34%, var(--line));
  background: var(--surface-2);
}

.detail-action.primary {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.detail-action.primary:hover {
  background: color-mix(in oklch, var(--ink) 88%, var(--accent));
  border-color: color-mix(in oklch, var(--ink) 88%, var(--accent));
}

.detail-actions .source-action {
  width: 100%;
  min-height: 32px;
}

.note-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.note-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.note-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  padding: 9px 10px;
  font: inherit;
  line-height: 1.4;
}

.note-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.description {
  color: var(--muted);
  max-width: 72ch;
}

.route-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-2);
}

.route-strip strong {
  display: block;
}

.route-strip span {
  color: var(--muted);
  font-size: 12px;
}

.error-banner {
  margin: 16px;
  border: 1px solid oklch(0.72 0.08 28);
  border-radius: var(--radius);
  background: oklch(0.96 0.025 28);
  color: var(--danger);
  padding: 12px;
}

@media (max-width: 1040px) {
  .workspace-grid {
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  }

  .detail-panel {
    grid-column: 1 / -1;
    max-height: none;
  }
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-controls {
    align-items: stretch;
    justify-content: stretch;
  }

  .control-label {
    display: none;
  }

  .select-control,
  .search-control {
    width: 100%;
    min-width: 0;
  }

  .export-control {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "buttons"
      "status";
  }

  .export-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .export-button {
    height: 38px;
  }

  .export-status {
    text-align: left;
  }

  .workspace-grid {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .event-rail,
  .map-workspace,
  .detail-panel {
    overflow: visible;
  }

  .map-canvas {
    min-height: 300px;
  }

  .schedule-grid-header {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-grid-links {
    justify-content: stretch;
  }

  .source-action-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .source-action-group.is-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--control-radius);
    background: var(--surface);
    padding: 1px;
  }

  .source-action-group .source-action {
    border: 1px solid color-mix(in oklch, var(--line) 92%, var(--ink));
    border-radius: var(--control-radius);
    justify-content: center;
  }

  .source-action-group.is-pair .source-action {
    border: 0;
    border-radius: calc(var(--control-radius) - 2px);
  }

  .status-strip,
  .detail-meta-grid,
  .detail-actions,
  .stream-board-header,
  .stream-card,
  .community-card,
  .live-now-stream-card,
  .live-now-session,
  .ask-result-row,
  .speaker-profile-header,
  .planner-actions,
  .registration-actions,
  .route-repair-suggestion {
    grid-template-columns: 1fr;
  }

  .stream-header-actions,
  .stream-atlas-strip {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .ask-chat-composer-row {
    grid-template-columns: 1fr;
  }

  .ask-chat-composer .control-chip {
    min-height: var(--control-height-touch);
    height: var(--control-height-touch);
  }

  .ask-chat-composer input {
    min-height: var(--control-height-touch);
  }

  .control-chip,
  .ask-suggestions .control-chip {
    min-height: var(--control-height-touch);
  }

  .source-action,
  .stream-source-panel .source-action {
    min-height: 38px;
  }

  .source-action-group .source-action {
    min-height: 32px;
  }

  .session-stream-actions .source-action {
    min-height: 38px;
  }

  .speaker-related-list {
    grid-template-columns: 1fr;
  }

  .speaker-links .source-action {
    min-height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
