:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #14161d;
  --muted: #686d7a;
  --faint: #a6abb7;
  --line: rgba(30, 43, 64, 0.11);
  --line-strong: rgba(30, 43, 64, 0.2);
  --blue: #0a84ff;
  --green: #28b875;
  --orange: #f7a531;
  --red: #e84b5f;
  --violet: #7b61ff;
  --teal: #16a8a8;
  --coral: #ff6b5f;
  --gold: #f2c14e;
  --aqua: #3dd6d0;
  --shadow: 0 22px 70px rgba(38, 58, 83, 0.12);
  --radius: 8px;
  --header-h: 124px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(244,247,251,0.65) 320px, rgba(242,248,246,0.92)),
    linear-gradient(135deg, rgba(10,132,255,0.13), rgba(61,214,208,0.08) 31%, rgba(242,193,78,0.12) 64%, rgba(255,107,95,0.08)),
    var(--bg);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

button:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.boot,
.fatal {
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.boot p,
.fatal p {
  margin: 0;
  color: var(--muted);
}

.boot-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 999px;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(244,247,251,0.72)),
    linear-gradient(135deg, rgba(10,132,255,0.18), rgba(61,214,208,0.13) 42%, rgba(242,193,78,0.16) 72%, rgba(255,107,95,0.1));
}

.login-panel {
  width: min(430px, 100%);
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.94), rgba(247,251,255,0.86) 52%, rgba(255,251,241,0.82)),
    rgba(255,255,255,0.9);
  box-shadow: 0 28px 90px rgba(38,58,83,0.18);
  backdrop-filter: blur(24px);
}

.login-brand {
  display: flex;
  gap: 8px;
  align-items: center;
}

.login-panel h1 {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.05;
}

.login-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

.login-form select,
.login-form input,
.login-form button {
  width: 100%;
}

.login-error {
  min-height: 38px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(232,75,95,0.26);
  border-radius: var(--radius);
  background: rgba(232,75,95,0.08);
  color: #a32536;
  font-size: 13px;
}

.app-shell {
  min-height: 100svh;
  padding-bottom: 78px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.94), rgba(245,249,255,0.88) 52%, rgba(255,251,241,0.88)),
    rgba(255,255,255,0.84);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(38, 58, 83, 0.08);
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

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

.brand h1,
.brand p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand h1 {
  font-size: 14px;
  line-height: 1.18;
  font-weight: 720;
}

.brand p {
  max-width: 30vw;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.brand-copy {
  display: none;
  min-width: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sync-pill {
  min-height: 28px;
  display: none;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.sync-pill.online {
  border-color: rgba(40, 184, 117, 0.32);
  background: rgba(40, 184, 117, 0.12);
  color: #177647;
}

.tour-button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
}

.tour-button span {
  display: none;
}

.logout-button {
  display: none;
}

.person-picker {
  display: grid;
  gap: 3px;
  min-width: 86px;
}

.person-picker span,
.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

select,
input,
textarea {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.82);
  color: var(--ink);
  outline: none;
}

select {
  min-width: 0;
  padding: 0 32px 0 10px;
}

input {
  padding: 0 12px;
}

textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

select:focus,
input:focus,
textarea:focus,
button:focus-visible {
  border-color: rgba(10, 132, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
}

.icon-button,
.primary-button,
.quiet-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.icon-button {
  width: 38px;
  padding: 0;
}

.primary-button {
  background: linear-gradient(135deg, #12141c, #154f5c);
  border-color: rgba(18,20,28,0.92);
  color: #fff;
  font-weight: 680;
  box-shadow: 0 10px 24px rgba(20,79,92,0.18);
}

.quiet-button.active,
.quiet-button:hover,
.icon-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.quiet-button.danger {
  color: var(--red);
}

.view-tabs {
  display: none;
}

.main {
  width: min(1180px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 12px 12px 0;
}

.brand-logo {
  min-width: 0;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(38, 58, 83, 0.08);
}

.brand-logo img {
  display: block;
  max-height: 18px;
  max-width: 108px;
}

.aiwf-logo {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0)),
    #111;
  border-color: rgba(17,17,17,0.9);
}

.aiwf-logo img {
  max-width: 112px;
}

.mediacorp-logo img {
  max-width: 84px;
}

.day-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: none;
}

.day-strip::-webkit-scrollbar {
  display: none;
}

.day-pill {
  position: relative;
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255,255,255,0.9), rgba(255,255,255,0.66)),
    rgba(255,255,255,0.66);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(38, 58, 83, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  overflow: hidden;
}

.day-pill::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(10,132,255,0), rgba(10,132,255,0.48), rgba(242,193,78,0.54), rgba(255,107,95,0));
  opacity: 0;
  transition: opacity 160ms ease;
}

.day-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(38, 58, 83, 0.1);
}

.day-pill span {
  grid-row: span 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20,22,29,0.08), rgba(10,132,255,0.08));
  color: var(--muted);
  font-weight: 700;
}

.day-pill strong,
.day-pill small,
.day-pill em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-pill strong {
  font-size: 13px;
}

.day-pill small {
  color: var(--muted);
  font-size: 12px;
}

.day-pill em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.day-pill.active {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(235,247,255,0.96) 52%, rgba(255,248,231,0.98)),
    var(--surface-strong);
  border-color: rgba(10, 132, 255, 0.42);
  box-shadow: 0 18px 44px rgba(10, 132, 255, 0.16);
}

.day-pill.active::after {
  opacity: 1;
}

.day-pill.active span {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 8px 20px rgba(10,132,255,0.2);
}

.hero-panel,
.controls-band,
.live-card,
.day-health,
.team-top,
.route-planner,
.floor-map,
.timeline-panel,
.notes-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.9), rgba(246,250,255,0.78) 46%, rgba(255,251,241,0.68)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  min-width: 0;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--aqua), var(--gold), var(--coral));
  opacity: 0.92;
}

.hero-panel > *,
.controls-band > *,
.session-card > *,
.time-group,
.session-list,
.session-groups {
  min-width: 0;
  max-width: 100%;
}

.hero-panel h2,
.live-card h2,
.team-top h2,
.route-planner h2,
.notes-summary h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.08;
}

.eyebrow {
  margin: 0;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.metric-row div,
.note-stats span {
  min-width: 0;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.metric-row strong {
  display: block;
  font-size: 22px;
}

.metric-row span,
.note-stats span {
  color: var(--muted);
  font-size: 12px;
}

.coverage-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8px, 1fr));
  gap: 4px;
  min-height: 12px;
}

.coverage-rail span {
  height: 10px;
  border-radius: 999px;
  background: rgba(30, 43, 64, 0.12);
}

.coverage-rail span.filled {
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.coverage-rail span.multi {
  background: linear-gradient(90deg, var(--green), var(--gold), var(--coral));
}

.conflict-notice {
  display: grid;
  grid-template-columns: 18px minmax(0, auto) 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 149, 0, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 243, 218, 0.76);
  color: #6f3d00;
  font-size: 12px;
}

.conflict-notice svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.conflict-notice span {
  min-width: 0;
  overflow: hidden;
  color: rgba(111, 61, 0, 0.76);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.controls-band {
  margin-top: 10px;
  padding: 10px;
}

.search-box {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.84);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
  min-width: 0;
}

.session-groups {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.schedule-grid-shell {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.9), rgba(247,250,255,0.72)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.schedule-grid-scroll {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-x: contain;
}

.schedule-grid {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink);
}

.schedule-grid th,
.schedule-grid td {
  border-right: 1px solid rgba(30, 43, 64, 0.09);
  border-bottom: 1px solid rgba(30, 43, 64, 0.09);
}

.schedule-grid thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  min-width: 166px;
  width: 166px;
  padding: 10px 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(245,248,253,0.95)),
    var(--surface);
  text-align: left;
  vertical-align: bottom;
}

.schedule-grid thead th strong,
.time-cell strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.schedule-grid thead th span,
.time-cell span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
}

.schedule-grid .time-column,
.schedule-grid .time-cell {
  position: sticky;
  left: 0;
  z-index: 4;
  min-width: 82px;
  width: 82px;
  max-width: 82px;
  background:
    linear-gradient(180deg, rgba(250,252,255,0.98), rgba(240,245,252,0.96)),
    var(--surface);
}

.schedule-grid .time-cell {
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.time-cell span.filled {
  color: #177647;
}

.schedule-grid td {
  min-width: 166px;
  width: 166px;
  padding: 6px;
  background: rgba(255,255,255,0.52);
  vertical-align: top;
}

.schedule-grid td.has-selection {
  background: rgba(234, 250, 244, 0.72);
}

.empty-grid-cell {
  display: block;
  min-height: 54px;
  border-radius: var(--radius);
  background: rgba(30, 43, 64, 0.035);
}

.grid-session-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 152px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,252,255,0.9)),
    rgba(255,255,255,0.9);
  box-shadow: 0 8px 18px rgba(38,58,83,0.06);
}

.grid-session-card + .grid-session-card {
  margin-top: 6px;
}

.grid-session-card.selected {
  border-color: rgba(40, 184, 117, 0.48);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(236, 251, 246, 0.96)),
    rgba(255,255,255,0.95);
}

.grid-card-main {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.grid-card-main span,
.grid-card-main strong,
.grid-card-main small {
  display: block;
  min-width: 0;
}

.grid-card-main span {
  color: var(--muted);
  font-size: 11px;
}

.grid-card-main strong {
  margin-top: 5px;
  padding-right: 34px;
  font-size: 13px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.grid-card-main small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.grid-attendees {
  top: 6px;
  right: 6px;
}

.grid-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
}

.grid-card-actions .selection-badge {
  min-width: 64px;
  padding: 5px 7px;
  font-size: 11px;
}

.grid-card-actions .primary-button,
.grid-card-actions .quiet-button,
.grid-card-actions .view-only-pill {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.grid-card-actions .quiet-button.danger {
  width: 28px;
  padding: 0;
}

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

.time-header,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.time-header {
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(255,255,255,0.88), rgba(248,251,255,0.74)),
    rgba(255,255,255,0.76);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(38,58,83,0.045);
}

.time-header strong,
.section-head h2 {
  margin: 0;
  font-size: 16px;
}

.time-header > div,
.section-head > div {
  min-width: 0;
}

.time-header span,
.section-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.time-header em {
  min-width: 72px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

.time-header strong {
  overflow-wrap: anywhere;
}

.time-header em.filled {
  background: rgba(47, 191, 113, 0.14);
  color: #177647;
}

.time-header svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.session-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.slot-preview {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.55);
}

.slot-preview button {
  display: grid;
  grid-template-columns: minmax(70px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(23, 23, 23, 0.045);
  text-align: left;
  cursor: pointer;
}

.slot-preview button span,
.slot-preview button strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-preview button span,
.slot-more {
  color: var(--muted);
  font-size: 12px;
}

.slot-preview button strong {
  font-size: 13px;
}

.slot-more {
  padding: 4px 8px;
}

.session-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(250,252,255,0.9)),
    rgba(255,255,255,0.88);
  box-shadow: 0 8px 24px rgba(18, 18, 20, 0.045);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.session-card:hover {
  transform: translateY(-1px);
  border-color: rgba(10,132,255,0.22);
  box-shadow: 0 16px 36px rgba(38,58,83,0.1);
}

.session-card.selected {
  border-color: rgba(40, 184, 117, 0.48);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(236, 251, 246, 0.96)),
    rgba(255,255,255,0.95);
  box-shadow: 0 14px 34px rgba(40,184,117,0.12);
}

.session-card.compact {
  box-shadow: none;
  align-content: space-between;
}

.card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.session-main,
.session-actions,
.card-attendees {
  position: relative;
  z-index: 2;
}

.card-attendees {
  position: absolute;
  top: 9px;
  right: 9px;
  display: flex;
  align-items: center;
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.92) 38%);
}

.session-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.session-card h3 {
  margin: 6px 0 6px;
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  padding-right: 44px;
}

.session-card.compact h3 {
  font-size: 14px;
  line-height: 1.24;
}

.session-main {
  min-width: 0;
}

.session-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.session-card.compact p {
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  color: var(--muted);
  font-size: 12px;
}

.tag-row svg {
  width: 13px;
  height: 13px;
}

.session-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
}

.selection-badge {
  min-width: 76px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(47, 191, 113, 0.14);
  color: #177647;
  font-size: 12px;
  text-align: center;
}

.view-only-pill,
.view-only-note {
  color: var(--muted);
  font-size: 12px;
}

.view-only-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23,23,23,0.045);
}

.attendees {
  display: flex;
  align-items: center;
  min-width: 0;
}

.avatar {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  margin-left: -6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--avatar, var(--blue));
  color: #fff;
  font-size: 11px;
  font-weight: 760;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar.more {
  background: #64646c;
}

.attendees.large .avatar {
  width: 34px;
  height: 34px;
}

.button-row {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.live-grid,
.map-layout,
.notes-layout {
  display: grid;
  gap: 12px;
}

.live-card,
.day-health,
.timeline-panel,
.team-top,
.notes-summary,
.route-planner,
.floor-map {
  padding: 16px;
}

.live-card > p:not(.eyebrow),
.route-result p,
.travel-block p {
  color: var(--muted);
  line-height: 1.42;
}

.live-session {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.live-session > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.live-session button,
.note-card header button,
.route-step button,
.team-cell {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.live-session strong,
.live-session small {
  display: block;
}

.live-session small {
  margin-top: 4px;
  color: var(--muted);
}

.health-list {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.health-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(23, 23, 23, 0.055);
}

.health-slot.filled {
  background: rgba(47, 191, 113, 0.12);
}

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

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

.team-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.team-roster {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(164px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding: 12px 2px;
  scrollbar-width: none;
}

.team-roster::-webkit-scrollbar {
  display: none;
}

.person-card {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.72);
}

.person-card.active {
  border-color: rgba(10, 132, 255, 0.42);
}

.person-card input {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
}

.person-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-card.add {
  border-style: dashed;
  cursor: pointer;
  color: var(--muted);
}

.team-matrix {
  display: grid;
  gap: 10px;
}

.compare-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.compare-panel article {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.76);
}

.compare-panel header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.compare-panel header strong,
.compare-panel header span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.compare-panel article > div {
  display: grid;
  gap: 6px;
}

.compare-panel button {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 23, 23, 0.045);
  text-align: left;
  cursor: pointer;
}

.compare-panel button span,
.compare-panel button strong,
.compare-panel button small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-panel button span,
.compare-panel button small,
.compare-panel p {
  color: var(--muted);
  font-size: 12px;
}

.compare-panel p {
  margin: 0;
}

.team-slot {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.76);
}

.team-slot header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

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

.team-columns {
  display: grid;
  gap: 8px;
}

.team-cell {
  display: grid;
  grid-template-columns: auto minmax(0, 72px) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 23, 23, 0.045);
}

.team-cell.filled {
  background: rgba(47, 191, 113, 0.1);
}

.team-cell span,
.team-cell strong,
.team-cell small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.team-cell strong {
  font-size: 13px;
}

.team-cell small {
  grid-column: 3;
  color: var(--orange);
  font-size: 11px;
}

.notes-summary {
  display: grid;
  gap: 12px;
}

.note-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.notes-list {
  display: grid;
  gap: 10px;
}

.note-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.82);
}

.note-card header strong,
.note-card header span {
  display: block;
}

.note-card header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.note-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.markdown-preview {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 23, 23, 0.035);
  color: var(--ink);
  line-height: 1.46;
  overflow-wrap: anywhere;
}

.markdown-preview:empty {
  display: none;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview p,
.markdown-preview ul,
.markdown-preview ol {
  margin: 0;
}

.markdown-preview h1 {
  font-size: 17px;
}

.markdown-preview h2 {
  font-size: 15px;
}

.markdown-preview h3,
.markdown-preview p,
.markdown-preview li {
  font-size: 13px;
}

.markdown-preview ul,
.markdown-preview ol {
  padding-left: 20px;
}

.markdown-preview code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(23, 23, 23, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.markdown-preview a {
  color: var(--blue);
  font-weight: 650;
  text-decoration: none;
}

.rating {
  display: flex;
  gap: 3px;
}

.rating button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}

.rating button.active {
  color: var(--orange);
}

.rating button.active svg {
  fill: currentColor;
}

.share-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.share-toggle input {
  min-height: 0;
  width: 16px;
  height: 16px;
}

.route-planner {
  display: grid;
  gap: 10px;
}

.floor-map {
  order: -1;
}

.route-intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.route-planner label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.route-result {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(23, 23, 23, 0.055);
}

.route-result strong {
  font-size: 28px;
}

.venue-levels {
  display: grid;
  gap: 7px;
}

.venue-levels button {
  display: grid;
  gap: 2px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.7);
  text-align: left;
  cursor: pointer;
}

.venue-levels button.active {
  border-color: rgba(10, 132, 255, 0.38);
  background: rgba(10, 132, 255, 0.09);
}

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

.official-map-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.82);
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
}

.route-result.low,
.route-step.low {
  border-color: rgba(47, 191, 113, 0.38);
}

.route-result.medium,
.route-step.medium {
  border-color: rgba(255, 159, 10, 0.42);
}

.route-result.high,
.route-step.high {
  border-color: rgba(232, 75, 95, 0.44);
}

.floor-tabs {
  display: flex;
  gap: 6px;
}

.floor-tabs button {
  width: 38px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.75);
  cursor: pointer;
}

.floor-tabs button.active {
  background: var(--ink);
  color: #fff;
}

.map-search {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.78);
  color: var(--muted);
}

.map-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.map-results {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.map-results button {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 8px;
  min-height: 46px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.74);
  text-align: left;
  cursor: pointer;
}

.map-results span {
  grid-row: span 2;
  align-self: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.map-results strong,
.map-results small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-results strong {
  font-size: 13px;
}

.map-results small,
.map-results p {
  color: var(--muted);
  font-size: 12px;
}

.map-results p {
  margin: 0;
  padding: 8px 2px;
}

.map-canvas {
  position: relative;
  height: 420px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.floor-plan-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.map-fullsize {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(18, 18, 20, 0.09);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.map-legend span,
.map-legend small {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 11px;
}

.map-legend span.from {
  color: var(--blue);
}

.map-legend span.to {
  color: #177647;
}

.map-legend span.focus {
  color: #925900;
}

.map-room-index {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.72);
}

.map-room-index header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.map-room-index header span {
  color: var(--muted);
  font-size: 12px;
}

.map-room-index > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.map-room-index button {
  min-width: 0;
  min-height: 44px;
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 23, 23, 0.035);
  text-align: left;
  cursor: pointer;
}

.map-room-index button.from {
  border-color: rgba(10, 132, 255, 0.5);
  background: rgba(10, 132, 255, 0.08);
}

.map-room-index button.to {
  border-color: rgba(47, 191, 113, 0.5);
  background: rgba(47, 191, 113, 0.1);
}

.map-room-index button.focus {
  border-color: rgba(255, 159, 10, 0.5);
  background: rgba(255, 159, 10, 0.12);
}

.map-room-index button strong,
.map-room-index button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-room-index button strong {
  font-size: 13px;
}

.map-room-index button span {
  color: var(--muted);
  font-size: 12px;
}

.route-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.route-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.78);
}

.route-step span,
.route-step strong,
.route-step small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.travel-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 680;
}

.travel-badge.low {
  background: rgba(47, 191, 113, 0.14);
  color: #177647;
}

.travel-badge.medium {
  background: rgba(255, 159, 10, 0.16);
  color: #925900;
}

.travel-badge.high {
  background: rgba(232, 75, 95, 0.14);
  color: #a32536;
}

.travel-badge svg {
  width: 14px;
  height: 14px;
}

.empty-state {
  min-height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state p {
  margin: 0;
}

.empty-state svg {
  width: 24px;
  height: 24px;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,0.24);
  backdrop-filter: blur(8px);
}

.session-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  max-height: 88svh;
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: rgba(250, 250, 248, 0.96);
  box-shadow: 0 -24px 60px rgba(0,0,0,0.18);
}

.session-sheet > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.session-sheet h2 {
  margin: 3px 0 0;
  font-size: 24px;
  line-height: 1.12;
}

.tour-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(12, 18, 28, 0.48);
  backdrop-filter: blur(3px);
}

.tour-focus {
  position: relative;
  z-index: 75 !important;
  border-color: rgba(10,132,255,0.6) !important;
  box-shadow:
    0 0 0 5px rgba(255,255,255,0.9),
    0 0 0 10px rgba(10,132,255,0.32),
    0 24px 60px rgba(0,0,0,0.22) !important;
  animation: tourPulse 1400ms ease-in-out infinite;
}

@keyframes tourPulse {
  50% {
    box-shadow:
      0 0 0 5px rgba(255,255,255,0.9),
      0 0 0 14px rgba(61,214,208,0.24),
      0 24px 60px rgba(0,0,0,0.22);
  }
}

.tour-card {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 86px;
  z-index: 90;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.54);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(241,248,255,0.94) 58%, rgba(255,250,236,0.94)),
    #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,0.28);
}

.tour-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(30,43,64,0.12);
}

.tour-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--aqua), var(--gold));
  transition: width 220ms ease;
}

.tour-card h2,
.tour-card p {
  margin: 0;
}

.tour-card h2 {
  font-size: 20px;
  line-height: 1.12;
}

.tour-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.42;
}

.tour-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tour-card footer > div {
  display: inline-flex;
  gap: 8px;
}

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

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

.detail-grid div {
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.74);
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.speaker-block,
.description,
.attendee-block,
.travel-block {
  display: grid;
  gap: 6px;
}

.speaker-block h3,
.description h3,
.attendee-block h3,
.travel-block h3 {
  margin: 0;
  font-size: 15px;
}

.speaker-block p,
.description p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.bottom-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(242,249,255,0.9)),
    rgba(255,255,255,0.86);
  box-shadow: 0 18px 50px rgba(18, 18, 20, 0.16);
  backdrop-filter: blur(20px);
}

.bottom-nav button {
  min-width: 0;
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.bottom-nav button.active {
  background: linear-gradient(135deg, rgba(10,132,255,0.15), rgba(61,214,208,0.18));
  color: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}

.bottom-nav span {
  font-size: 11px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 100;
  max-width: min(380px, calc(100vw - 28px));
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23,23,23,0.88);
  color: #fff;
  font-size: 13px;
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 720px) {
  .app-shell {
    padding-bottom: 28px;
  }

  .topbar {
    padding: 16px 24px 12px;
  }

  .brand {
    gap: 12px;
  }

  .brand-copy {
    display: block;
  }

  .brand h1 {
    font-size: 18px;
  }

  .brand p {
    max-width: none;
  }

  .brand-logo {
    height: 38px;
    padding: 0 11px;
  }

  .sync-pill {
    display: inline-flex;
  }

  .tour-button span {
    display: inline;
  }

  .logout-button {
    display: inline-flex;
  }

  .brand-logo img {
    max-height: 21px;
    max-width: 124px;
  }

  .aiwf-logo img {
    max-width: 132px;
  }

  .mediacorp-logo img {
    max-width: 104px;
  }

  .view-tabs {
    position: sticky;
    top: 67px;
    z-index: 25;
    display: flex;
    gap: 6px;
    padding: 8px 24px 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 250, 253, 0.76);
    backdrop-filter: blur(18px);
  }

  .view-tabs button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
  }

  .view-tabs button.active {
    border-color: var(--line);
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(235,247,255,0.92));
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(38,58,83,0.08);
  }

  .bottom-nav {
    display: none;
  }

  .tour-card {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: min(420px, calc(100vw - 48px));
  }

  .main {
    padding: 16px 24px 0;
  }

  .day-strip {
    grid-auto-flow: initial;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: center;
  }

  .hero-panel .coverage-rail {
    grid-column: 1 / -1;
  }

  .filter-row {
    grid-template-columns: minmax(180px, 240px) minmax(180px, 240px) auto;
  }

  .compare-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-card {
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
  }

  .session-card.compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .session-actions {
    justify-content: end;
  }

  .live-grid,
  .map-layout,
  .notes-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
  }

  .floor-map {
    order: initial;
  }

  .team-columns {
    grid-template-columns: repeat(3, 1fr);
  }

  .session-sheet {
    left: auto;
    top: 18px;
    right: 18px;
    bottom: 18px;
    width: min(560px, calc(100vw - 36px));
    max-height: none;
    border-radius: 14px;
  }

  .sheet-backdrop {
    background: rgba(0,0,0,0.18);
  }
}

@media (min-width: 1020px) {
  .hero-panel h2,
  .live-card h2,
  .team-top h2,
  .route-planner h2,
  .notes-summary h2 {
    font-size: 30px;
  }

  .session-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .session-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .session-actions {
    justify-content: space-between;
  }

  .team-columns {
    grid-template-columns: repeat(6, 1fr);
  }

  .map-canvas {
    height: 540px;
  }

  .map-room-index > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1240px) {
  .session-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
