:root {
  color-scheme: dark;
  --bg: #090d14;
  --bg-soft: #101722;
  --panel: #171327;
  --panel-strong: #211936;
  --panel-glass: rgba(18, 25, 38, 0.88);
  --line: #3a3156;
  --line-soft: rgba(198, 178, 255, 0.09);
  --text: #f7fbff;
  --muted: #94a4bb;
  --muted-strong: #c7d3e6;
  --cyan: #b99cff;
  --cyan-strong: #9b78ff;
  --purple: #b99cff;
  --purple-strong: #9b78ff;
  --coral: #ff7898;
  --coral-strong: #ff4f78;
  --lime: #65f08f;
  --blue: #78a8ff;
  --magenta: #d98cff;
  --amber: #ffd84f;
  --warning: #ff5d79;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.22);
  --button-glass: linear-gradient(135deg, rgba(185, 156, 255, 0.16), rgba(120, 168, 255, 0.065)), rgba(31, 35, 54, 0.9);
  --button-glass-active: linear-gradient(135deg, rgba(185, 156, 255, 0.44), rgba(217, 140, 255, 0.18)), rgba(34, 28, 56, 0.97);
  --button-glass-border: rgba(224, 235, 255, 0.28);
  --button-glass-active-border: rgba(221, 204, 255, 0.86);
  --button-glass-shadow: inset 0 0 0 1px rgba(246, 240, 255, 0.28), 0 0 24px rgba(185, 156, 255, 0.28), 0 12px 24px rgba(0, 0, 0, 0.22);
  font-family: Inter, "SF Pro Display", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(185, 156, 255, 0.11), transparent 34%),
    linear-gradient(215deg, rgba(255, 120, 152, 0.11), transparent 38%),
    linear-gradient(180deg, #090d14 0%, #0e1320 54%, #121827 100%);
}

button {
  color: inherit;
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
}

.topbar {
  position: relative;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto 18px;
  padding: 12px;
  border: 1px solid rgba(210, 228, 255, 0.08);
  border-radius: 8px;
  background: rgba(9, 13, 20, 0.36);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

h2 {
  font-size: 1.4rem;
}

.day-tabs,
.view-tabs,
.toolbar,
.legend,
.layout-toggle,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-tab,
.view-tabs button,
.icon-button,
.export-button,
.layout-toggle button,
.layout-flip,
.schedule-selected-button,
.schedule-density-button,
.schedule-filter-button,
.mobile-nav button {
  border: 1px solid rgba(210, 228, 255, 0.12);
  background: rgba(21, 29, 43, 0.76);
  border-radius: 8px;
  cursor: pointer;
}

.day-tab {
  display: grid;
  min-width: 70px;
  padding: 10px 13px;
  text-align: left;
}

.day-tab span {
  font-weight: 800;
}

.day-tab small,
.schedule-meta span,
.offline-card span,
.map-preview span {
  color: var(--muted);
}

.day-tab.is-active {
  color: #061316;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), #91ffe3);
  box-shadow: 0 10px 28px rgba(155, 120, 255, 0.24);
}

.view-tabs {
  padding: 4px;
  border: 1px solid rgba(210, 228, 255, 0.12);
  border-radius: 8px;
  background: rgba(10, 15, 24, 0.48);
}

.view-tabs button {
  padding: 8px 10px;
  color: var(--muted);
  border-color: transparent;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.view-tabs button.is-active {
  color: #071115;
  background: linear-gradient(135deg, var(--cyan), #91ffe3);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--muted-strong);
}

.icon-button:hover,
.set-block:hover,
.export-button:hover,
.artist-toggle:hover,
.custom-block-form button:hover,
.plan-density-control button:hover,
.friend-form button:hover,
.friend-search button:hover,
.profile-link-card button:hover,
.share-card button:hover,
.profile-form button:not(.profile-photo-preview):not(.profile-create-account-button):hover,
.lineup-search button:hover,
.map-search button:hover,
.data-actions button:hover,
.data-import-card button:hover,
.festival-search-button:hover,
.festival-card button:hover,
.delete-block:hover {
  border-color: rgba(124, 246, 229, 0.7);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto;
}

.single-view {
  display: grid;
  width: 100%;
  gap: 18px;
  max-width: 1720px;
  margin: 0 auto;
}

.schedule-shell,
.plan-panel,
.feature-panel,
.itinerary-hero {
  border: 1px solid rgba(210, 228, 255, 0.12);
  border-radius: 8px;
  background: var(--panel-glass);
  box-shadow: var(--shadow);
}

.schedule-shell {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.schedule-command {
  grid-template-columns: 58px minmax(0, 1fr) 330px;
  gap: 14px;
}

.schedule-rail {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: calc(100vh - 128px);
  padding: 9px;
  border: 1px solid rgba(210, 228, 255, 0.1);
  border-radius: 8px;
  background: rgba(10, 15, 24, 0.64);
  box-shadow: var(--shadow-soft);
}

.rail-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--muted-strong);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 900;
}

.rail-button:hover {
  border-color: rgba(185, 156, 255, 0.46);
  background: rgba(185, 156, 255, 0.08);
}

.rail-button.is-active {
  color: #061316;
  background: linear-gradient(135deg, var(--cyan), #90ffe4);
  box-shadow: 0 10px 24px rgba(155, 120, 255, 0.22);
}

.rail-status {
  writing-mode: vertical-rl;
  align-self: end;
  justify-self: center;
  margin-top: 18px;
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px;
  border-bottom: 1px solid rgba(210, 228, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(185, 156, 255, 0.11), transparent 45%),
    rgba(13, 19, 30, 0.74);
}

.schedule-command-header strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.22rem;
}

.schedule-command-header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.schedule-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.command-button {
  min-height: 37px;
  padding: 0 12px;
  color: var(--muted-strong);
  border: 1px solid rgba(210, 228, 255, 0.12);
  border-radius: 8px;
  background: rgba(21, 29, 43, 0.68);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.command-button:hover {
  border-color: rgba(185, 156, 255, 0.62);
}

.schedule-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(210, 228, 255, 0.08);
  background: rgba(9, 13, 20, 0.28);
}

.schedule-filter-bar > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-filter-bar button,
.pick-toggle {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted-strong);
  border: 1px solid rgba(210, 228, 255, 0.1);
  border-radius: 8px;
  background: rgba(21, 29, 43, 0.54);
  font-size: 0.78rem;
  font-weight: 800;
}

.schedule-filter-bar button:first-of-type {
  color: #061316;
  border-color: transparent;
  background: rgba(185, 156, 255, 0.88);
}

.pick-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.schedule-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  min-height: 0;
}

.schedule-stage {
  min-width: 0;
}

.schedule-sidecar {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border-left: 1px solid rgba(210, 228, 255, 0.09);
  background: rgba(9, 13, 20, 0.2);
}

.sidecar-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(210, 228, 255, 0.1);
  border-radius: 8px;
  background: rgba(21, 29, 43, 0.56);
}

.sidecar-card strong {
  font-size: 0.86rem;
}

.sidecar-card button {
  min-height: 34px;
  color: var(--muted-strong);
  border: 1px solid rgba(210, 228, 255, 0.1);
  border-radius: 8px;
  background: rgba(9, 13, 20, 0.28);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.sidecar-card label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.heat-legend span {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(185, 156, 255, 0.22), rgba(143, 111, 255, 0.58), rgba(210, 194, 255, 0.78));
}

.schedule-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.schedule-meta strong {
  display: block;
  margin-bottom: 2px;
}

.legend {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.layout-toggle {
  padding: 4px;
  border: 1px solid rgba(210, 228, 255, 0.12);
  border-radius: 8px;
  background: rgba(9, 13, 20, 0.42);
}

.layout-toggle button {
  padding: 7px 10px;
  color: var(--muted);
  border-color: transparent;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.layout-toggle button.is-active {
  color: #071115;
  background: linear-gradient(135deg, var(--cyan), #91ffe3);
}

.legend-dot,
.legend-warning {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: -1px;
}

.legend-dot.priority {
  background: var(--cyan);
}

.legend-dot.watch {
  background: var(--coral);
}

.legend-warning {
  border-radius: 3px;
  background: rgba(255, 100, 117, 0.45);
}

.festival-source-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid rgba(210, 228, 255, 0.1);
  border-bottom: 1px solid rgba(210, 228, 255, 0.1);
  background: rgba(216, 167, 255, 0.09);
  color: var(--muted);
  font-size: 0.82rem;
}

.festival-source-notice strong {
  flex: 0 0 auto;
  color: #efe5ff;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.schedule-grid {
  --stage-column-width: 134px;
  display: grid;
  overflow: auto;
  max-height: calc(100vh - 252px);
  background:
    linear-gradient(180deg, rgba(22, 32, 48, 0.78), rgba(11, 16, 26, 0.92));
  scrollbar-color: rgba(185, 156, 255, 0.55) rgba(21, 29, 43, 0.9);
}

.schedule-grid.is-stages-top {
  grid-template-columns: 70px minmax(536px, 1fr);
  grid-template-rows: 60px var(--grid-height);
}

.schedule-grid.is-time-top {
  grid-template-columns: 132px minmax(var(--timeline-width), 1fr);
  grid-template-rows: 52px calc(var(--stage-count) * var(--stage-row-height));
}

.corner-cell {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: #172033;
  border-right: 1px solid rgba(210, 228, 255, 0.12);
  border-bottom: 1px solid rgba(210, 228, 255, 0.12);
}

.stage-header-row {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(var(--stage-count), minmax(var(--stage-column-width), 1fr));
  min-width: calc(var(--stage-count) * var(--stage-column-width));
  background: #172033;
  border-bottom: 1px solid rgba(210, 228, 255, 0.12);
}

.time-header-row {
  position: sticky;
  top: 0;
  z-index: 6;
  grid-column: 2;
  grid-row: 1;
  min-width: var(--timeline-width);
  background: #172033;
  border-bottom: 1px solid rgba(210, 228, 255, 0.12);
}

.time-header-row span {
  position: absolute;
  top: 50%;
  min-width: 72px;
  transform: translate(-50%, -50%);
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.time-header-row span.is-half-hour {
  min-width: 18px;
  color: rgba(199, 211, 230, 0.48);
  font-size: 0.72rem;
}

.stage-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid rgba(210, 228, 255, 0.11);
  background: #172033;
  color: var(--text);
  font-weight: 800;
}

.stage-column.is-stage-jump-highlight-region,
.timeline-row.is-stage-jump-highlight-region {
  animation: none;
}

.stage-column.is-stage-jump-highlight-region::after,
.timeline-row.is-stage-jump-highlight-region::after {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  content: "";
  animation: stage-region-glow-overlay 1150ms ease-out;
}

@keyframes stage-region-glow-overlay {
  0%,
  100% {
    opacity: 0;
    box-shadow: inset 0 0 0 0 color-mix(in srgb, var(--stage-accent), white 0%);
  }

  18%,
  68% {
    opacity: 0.8;
    box-shadow:
      inset 0 0 0 2px color-mix(in srgb, var(--stage-accent), white 18%),
      inset 0 0 42px color-mix(in srgb, var(--stage-accent), transparent 62%),
      0 0 19px color-mix(in srgb, var(--stage-accent), transparent 58%);
    background:
      linear-gradient(135deg, color-mix(in srgb, var(--stage-accent), transparent 84%), rgba(255, 255, 255, 0.02)),
      linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0));
  }
}

.stage-rail {
  position: sticky;
  left: 0;
  z-index: 4;
  grid-column: 1;
  grid-row: 2;
  background: rgba(23, 32, 51, 0.98);
  border-right: 1px solid rgba(210, 228, 255, 0.12);
}

.stage-label {
  display: flex;
  align-items: center;
  height: var(--stage-row-height);
  padding: 0 10px;
  border-bottom: 1px solid rgba(210, 228, 255, 0.1);
  color: var(--text);
  font-weight: 800;
}

.time-rail {
  position: sticky;
  left: 0;
  z-index: 4;
  grid-column: 1;
  grid-row: 2;
  background: rgba(23, 32, 51, 0.98);
  border-right: 1px solid rgba(210, 228, 255, 0.12);
}

.time-rail span {
  position: absolute;
  right: 9px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.time-rail span.is-half-hour {
  right: 14px;
  color: rgba(199, 211, 230, 0.48);
  font-size: 0.72rem;
}

.stage-columns {
  position: relative;
  display: grid;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: repeat(var(--stage-count), minmax(var(--stage-column-width), 1fr));
  min-width: calc(var(--stage-count) * var(--stage-column-width));
  min-height: var(--grid-height);
}

.stage-column {
  position: relative;
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0));
}

.timeline-rows {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  min-width: var(--timeline-width);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0));
}

.timeline-row {
  position: relative;
  height: var(--stage-row-height);
  border-bottom: 1px solid var(--line-soft);
}

.grid-line {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(198, 178, 255, 0.13);
}

.grid-line.is-half-hour {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0,
    rgba(198, 178, 255, 0.02) 8%,
    rgba(198, 178, 255, 0.075) 50%,
    rgba(198, 178, 255, 0.02) 92%,
    transparent 100%
  );
}

.vertical-grid-line {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 1px;
  background: rgba(198, 178, 255, 0.13);
}

.vertical-grid-line.is-half-hour {
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0,
    rgba(198, 178, 255, 0.02) 8%,
    rgba(198, 178, 255, 0.075) 50%,
    rgba(198, 178, 255, 0.02) 92%,
    transparent 100%
  );
}

.set-block {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-height: 52px;
  padding: 10px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(210, 228, 255, 0.1);
  border-radius: 8px;
  background: rgba(26, 36, 54, 0.88);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.set-block::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(6, 8, 14, 0.54), rgba(6, 8, 14, 0.86)),
    var(--artist-image, none);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 160ms ease;
}

.set-block[style*="--artist-image"]::before {
  opacity: 0.08;
}

.set-block.interest-watch[style*="--artist-image"]::before {
  opacity: 0.18;
}

.set-block.interest-priority[style*="--artist-image"]::before {
  opacity: 0.32;
}

.set-block > * {
  position: relative;
  z-index: 1;
}

.set-block-horizontal {
  top: 0;
  right: auto;
  left: auto;
  height: var(--stage-row-height);
  gap: 2px;
  min-height: 0;
  min-width: 0;
  padding: 7px 8px 24px;
}

.set-block-horizontal .set-header {
  min-height: 18px;
}

.set-block-horizontal .set-time {
  font-size: 0.68rem;
}

.set-block.interest-none {
  opacity: 0.34;
}

.set-block.interest-watch {
  color: #fff5f7;
  border-color: rgba(255, 120, 152, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 120, 152, 0.28), rgba(26, 36, 54, 0.92) 62%),
    rgba(26, 36, 54, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 120, 152, 0.13) inset, 0 12px 26px rgba(255, 79, 120, 0.1);
}

.set-block.interest-priority {
  color: #061014;
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, var(--cyan), #96ffe4 56%, var(--lime));
  box-shadow: 0 0 0 1px rgba(18, 11, 36, 0.12) inset, 0 16px 34px rgba(155, 120, 255, 0.2);
}

.set-header {
  display: block;
  width: 100%;
  min-height: 20px;
}

.set-header strong {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.set-header strong span {
  display: inline-block;
  max-width: 100%;
}

.set-header strong.is-collab-split {
  line-height: 1.05;
  text-overflow: clip;
  white-space: normal;
}

.set-header strong.is-collab-split .set-title-line {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.set-block.is-title-marquee .set-header strong:not(.is-collab-split) span {
  max-width: none;
  min-width: max-content;
}

.set-time {
  display: block;
  color: inherit;
  font-size: 0.71rem;
  opacity: 0.82;
}

.genre-chip {
  max-width: 100%;
  padding: 2px 6px;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.64rem;
  line-height: 1.15;
}

.interest-priority .genre-chip {
  color: #061014;
  border-color: rgba(6, 16, 20, 0.2);
  background: rgba(6, 16, 20, 0.08);
}

.now-line {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 5;
  border-top: 2px solid var(--amber);
  pointer-events: none;
}

.is-time-top .now-line {
  top: 0;
  bottom: 0;
  right: auto;
  left: auto;
  width: 0;
  border-top: 0;
  border-left: 2px solid var(--lime);
}

.now-line b {
  position: absolute;
  top: -11px;
  left: 9px;
  padding: 2px 6px;
  color: #171103;
  border-radius: 6px;
  background: var(--amber);
  font-size: 0.7rem;
}

.is-time-top .now-line b {
  top: 6px;
  left: -18px;
}

.plan-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px;
}

.plan-panel-full {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.plan-main-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.itinerary-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.itinerary-hero span,
.subtle-status {
  color: var(--muted);
  font-size: 0.84rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.export-button {
  padding: 9px 12px;
  color: var(--cyan);
}

.plan-export-menu {
  position: relative;
  justify-self: end;
}

.plan-export-menu summary {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--muted-strong);
  border: 1px solid rgba(212, 230, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  list-style: none;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.plan-export-menu summary::-webkit-details-marker {
  display: none;
}

.plan-export-menu summary:hover,
.plan-export-menu summary:focus-visible,
.plan-export-menu[open] summary {
  color: #f4ebff;
  background: rgba(185, 156, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(185, 156, 255, 0.2);
}

.plan-export-menu-items {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 75;
  display: grid;
  min-width: 178px;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(212, 230, 255, 0.14);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  animation: schedule-filter-open 140ms ease-out;
}

.plan-export-menu-items .export-button {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.schedule-export-status {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding: 9px;
  border: 1px solid rgba(212, 230, 255, 0.12);
  border-radius: 8px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  line-height: 1.35;
}

.calendar-export-warning {
  display: grid;
  min-width: 244px;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 216, 79, 0.34);
  border-radius: 8px;
  color: var(--muted-strong);
  background: rgba(255, 216, 79, 0.08);
  font-size: 0.78rem;
  line-height: 1.35;
}

.calendar-export-warning strong {
  color: #ffe69a;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.calendar-export-warning span {
  color: var(--muted-strong);
}

.calendar-export-warning .export-button {
  text-align: center;
}

.schedule-export-status strong {
  color: #f4ebff;
  font-size: 0.8rem;
}

.schedule-export-status span {
  overflow-wrap: anywhere;
}

.schedule-export-status small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.schedule-export-status > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.schedule-export-status .export-button {
  display: block;
  text-decoration: none;
}

.schedule-export-status.is-ready {
  border-color: rgba(185, 156, 255, 0.26);
  background: rgba(185, 156, 255, 0.09);
}

.schedule-export-status.is-error {
  border-color: rgba(255, 207, 90, 0.34);
  color: #ffe6a6;
  background: rgba(255, 207, 90, 0.08);
}

.schedule-export-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
  padding: 12px;
  color: var(--text);
  border: 1px solid rgba(185, 156, 255, 0.28);
  border-radius: 8px;
  background: rgba(13, 18, 28, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38), 0 0 24px rgba(185, 156, 255, 0.14);
}

.schedule-export-toast > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.schedule-export-toast strong {
  color: #f4ebff;
  font-size: 0.84rem;
}

.schedule-export-toast span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.schedule-export-toast-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.schedule-export-toast-actions .export-button {
  display: grid;
  min-height: 38px;
  place-items: center;
  text-align: center;
  text-decoration: none;
}

.schedule-export-toast-close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--muted-strong);
  border: 1px solid rgba(212, 230, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.schedule-export-toast.is-error {
  border-color: rgba(255, 207, 90, 0.34);
}

.offline-card {
  display: grid;
  gap: 3px;
  padding: 13px;
  margin-bottom: 14px;
  border: 1px solid rgba(184, 255, 95, 0.22);
  border-radius: 8px;
  background: rgba(184, 255, 95, 0.08);
}

.offline-status-card {
  display: grid;
  gap: 14px;
  align-self: start;
  padding: 14px;
  border: 1px solid rgba(185, 156, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(185, 156, 255, 0.1), transparent 42%),
    rgba(10, 13, 20, 0.28);
}

.offline-status-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.offline-status-card span,
.offline-status-card small {
  color: var(--muted);
  font-size: 0.8rem;
}

.offline-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.offline-status-grid article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.54);
}

.offline-status-grid strong {
  color: var(--cyan);
  font-size: 1.08rem;
  line-height: 1;
}

.offline-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.offline-day-grid button {
  display: grid;
  gap: 3px;
  padding: 10px;
  color: inherit;
  text-align: left;
  border: 1px solid rgba(210, 228, 255, 0.1);
  border-radius: 8px;
  background: rgba(8, 10, 18, 0.36);
  cursor: pointer;
}

.offline-day-grid button:hover,
.offline-day-grid button:focus-visible {
  border-color: rgba(185, 156, 255, 0.34);
  background: rgba(185, 156, 255, 0.09);
}

.offline-day-grid button.is-active {
  border-color: rgba(185, 156, 255, 0.54);
  background: rgba(185, 156, 255, 0.12);
}

.offline-day-grid strong {
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.plan-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 3px;
}

.plan-list-screenshot {
  padding: 4px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.18);
}

.plan-density-control {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 7px;
  justify-self: end;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.plan-density-control button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  border: 1px solid rgba(212, 230, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-weight: 850;
}

.plan-density-control button.is-active {
  color: #120b24;
  background: var(--purple);
}

.plan-density-control .compact-icon {
  width: 19px;
  height: 19px;
}

.plan-density-control .custom-blocks-icon {
  width: 19px;
  height: 19px;
}

.plan-view-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}

.plan-day-selector {
  flex: 1 1 auto;
  min-width: 0;
}

.plan-view-row .plan-density-control {
  flex: 0 0 auto;
  align-self: start;
}

.custom-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.custom-template-row button {
  min-height: 30px;
  padding: 0 9px;
  color: var(--muted-strong);
  border: 1px solid rgba(185, 156, 255, 0.24);
  border-radius: 999px;
  background: rgba(185, 156, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 850;
}

.custom-template-row button:hover,
.custom-template-row button.is-active {
  color: #120b24;
  border-color: transparent;
  background: var(--purple);
}

.plan-conflict-digest {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 112, 148, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 112, 148, 0.1), transparent 58%),
    rgba(20, 18, 28, 0.72);
}

.plan-conflict-digest.is-clear {
  border-color: rgba(185, 156, 255, 0.22);
  background: rgba(27, 33, 48, 0.5);
}

.plan-conflict-digest strong,
.plan-conflict-digest span,
.plan-conflict-digest small {
  display: block;
}

.plan-conflict-digest strong {
  color: var(--text);
  text-transform: uppercase;
}

.plan-conflict-digest span,
.plan-conflict-digest small {
  color: var(--muted);
  font-size: 0.78rem;
}

.plan-conflict-list {
  display: grid;
  gap: 6px;
}

.plan-conflict-list span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  color: var(--muted);
}

.plan-conflict-list b {
  color: var(--text);
}

.plan-conflict-list em,
.plan-conflict-list i {
  color: var(--muted);
  font-style: normal;
}

.plan-screenshot-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(185, 156, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(185, 156, 255, 0.1), transparent 42%),
    rgba(8, 10, 18, 0.72);
}

.plan-screenshot-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.plan-screenshot-header strong,
.plan-screenshot-header span,
.plan-screenshot-header small {
  display: block;
}

.plan-screenshot-header strong {
  color: var(--text);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.plan-screenshot-header span,
.plan-screenshot-header small {
  color: var(--muted);
  font-size: 0.82rem;
}

.plan-timeline {
  display: grid;
  gap: 10px;
}

.plan-timeline-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--item-accent) 32%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--item-accent) 18%, transparent), transparent 44%),
    rgba(20, 22, 32, 0.78);
}

.plan-timeline-item.is-custom {
  border-style: dashed;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--item-accent) 22%, transparent), transparent 46%),
    rgba(18, 22, 30, 0.82);
}

.plan-timeline-item time {
  color: color-mix(in srgb, var(--item-accent) 82%, white);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
}

.plan-timeline-item time span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.plan-timeline-item strong,
.plan-timeline-item span,
.plan-timeline-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-timeline-item strong {
  color: var(--text);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.plan-timeline-item span,
.plan-timeline-item small {
  color: var(--muted);
  font-size: 0.78rem;
}

.plan-meta-text {
  min-width: 0;
}

.plan-status-slot {
  display: inline-flex;
  position: relative;
  min-width: 0;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.plan-type-pill {
  flex: none;
  color: color-mix(in srgb, var(--item-accent, var(--lime)) 78%, white);
  border: 1px solid color-mix(in srgb, var(--item-accent, var(--lime)) 38%, transparent);
  border-radius: 999px;
  padding: 2px 7px;
  background: color-mix(in srgb, var(--item-accent, var(--lime)) 12%, transparent);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.plan-timeline-item i {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: color-mix(in srgb, var(--item-accent) 82%, white);
  font-style: normal;
}

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

.plan-screenshot-card.density-compact {
  gap: 10px;
  padding: 13px;
}

.density-compact .plan-screenshot-header {
  padding-bottom: 9px;
}

.density-compact .plan-timeline {
  gap: 5px;
}

.density-compact .plan-timeline-item {
  grid-template-columns: 66px minmax(0, 1fr) auto 24px;
  gap: 8px;
  padding: 6px 8px;
}

.density-compact .plan-timeline-item time {
  font-size: 0.69rem;
}

.density-compact .plan-timeline-item time span {
  margin-top: 2px;
}

.density-compact .plan-timeline-item strong {
  font-size: 0.82rem;
}

.density-compact .plan-timeline-item span,
.density-compact .plan-timeline-item small {
  font-size: 0.69rem;
}

.density-compact .plan-timeline-item small:empty {
  display: none;
}

.density-compact .plan-type-pill {
  padding: 2px 5px;
  font-size: 0.56rem;
}

.density-compact .plan-timeline-item i,
.density-compact .delete-block {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
}

.density-compact .plan-timeline-item i .interest-icon {
  width: 22px;
  height: 22px;
}

.plan-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto 26px;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.plan-item time {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
}

.plan-item strong,
.plan-item span,
.plan-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-item span,
.plan-item small {
  color: var(--muted);
  font-size: 0.78rem;
}

.plan-item.is-custom time {
  color: var(--lime);
}

.plan-item.is-custom {
  --item-accent: var(--lime);
}

.conflict-note {
  position: relative;
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-left: 5px;
  overflow: visible;
}

.conflict-note summary {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #1d1503;
  border: 1px solid rgba(255, 216, 79, 0.78);
  border-radius: 999px;
  background: #ffd84f;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 216, 79, 0.24);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.conflict-note summary::-webkit-details-marker {
  display: none;
}

.conflict-note.conflict-watch summary {
  opacity: 0.5;
}

.conflict-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 80;
  display: grid;
  width: max-content;
  min-width: 190px;
  max-width: min(280px, 80vw);
  gap: 5px;
  padding: 9px;
  color: var(--text);
  border: 1px solid rgba(255, 216, 79, 0.36);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.conflict-popover strong,
.conflict-popover span {
  display: block;
  overflow: visible;
  color: var(--text);
  font-size: 0.72rem;
  white-space: normal;
}

.conflict-popover span {
  color: var(--muted-strong);
}

.plan-item .plan-status-slot,
.plan-timeline-item .plan-status-slot {
  overflow: visible;
}

.plan-item > [class^="plan-interest-"],
.plan-timeline-item > i {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  justify-self: center;
  align-self: center;
}

.plan-item > [class^="plan-interest-"] .interest-icon,
.plan-timeline-item > i .interest-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin: 0;
}

.delete-block {
  width: 26px;
  height: 26px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.84);
  cursor: pointer;
}

.empty-state {
  color: var(--muted);
}

.custom-block-form {
  display: grid;
  align-self: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.22);
}

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

.form-heading span,
.profile-form label,
.friend-form label,
.friend-search label,
.lineup-search label,
.map-search label,
.custom-block-form label {
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-form label,
.friend-form label,
.lineup-search label,
.map-search label,
.custom-block-form label {
  display: grid;
  gap: 6px;
}

.profile-form input,
.profile-form select,
.friend-form input,
.friend-search input,
.lineup-search input,
.map-search input,
.custom-block-form input,
.data-import-card textarea {
  width: 100%;
  min-height: 42px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.82);
  padding: 9px 10px;
  font: inherit;
}

.profile-form input:focus,
.profile-form select:focus,
.friend-form input:focus,
.friend-search input:focus,
.lineup-search input:focus,
.map-search input:focus,
.custom-block-form input:focus,
.data-import-card textarea:focus {
  outline: 2px solid rgba(185, 156, 255, 0.55);
  outline-offset: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.custom-block-form button {
  min-height: 42px;
  color: #071115;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--cyan);
  cursor: pointer;
  font-weight: 900;
}

.profile-page {
  align-content: start;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.22);
}

.profile-photo-control {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.profile-photo-preview {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #f8f3ff;
  border: 1px solid rgba(224, 235, 255, 0.26);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(185, 156, 255, 0.28), rgba(120, 168, 255, 0.08)),
    rgba(30, 33, 52, 0.92);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(246, 240, 255, 0.16), 0 0 18px rgba(185, 156, 255, 0.16);
  cursor: pointer;
  font-weight: 950;
  overflow: visible;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.profile-photo-preview:hover,
.profile-photo-preview:focus-visible {
  border-color: rgba(221, 204, 255, 0.72);
  box-shadow: var(--button-glass-shadow);
  transform: translateY(-1px);
}

.profile-photo-preview::after {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 90;
  width: max-content;
  max-width: 150px;
  padding: 5px 8px;
  pointer-events: none;
  color: #f8f3ff;
  border: 1px solid rgba(224, 235, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  content: attr(data-tooltip);
  font-size: 0.72rem;
  font-weight: 850;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.profile-photo-preview:hover::after,
.profile-photo-preview:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.profile-photo-placeholder {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
}

.profile-photo-placeholder svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.profile-photo-placeholder .profile-photo-icon {
  width: 30px;
  height: 30px;
}

.profile-photo-preview[aria-expanded="true"] {
  border-color: rgba(221, 204, 255, 0.72);
  box-shadow: var(--button-glass-shadow);
}

.profile-auth-button {
  justify-self: end;
  min-width: 104px;
}

.profile-submit-stack {
  display: grid;
  gap: 6px;
  align-self: end;
  min-width: 136px;
  padding-top: 4px;
}

.profile-photo-copy {
  display: grid;
  gap: 3px;
}

.profile-photo-copy small,
.profile-photo-upload small,
.profile-photo-popover > small {
  color: var(--muted);
}

.profile-photo-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 80;
  display: grid;
  min-width: 250px;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(224, 235, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.97);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(246, 240, 255, 0.08);
  animation: schedule-filter-open 140ms ease-out;
}

.profile-photo-remove {
  justify-self: end;
}

.profile-form button:not(.profile-photo-preview):not(.profile-create-account-button),
.friend-form button,
.friend-search button,
.profile-link-card button,
.share-card button {
  min-height: 42px;
  padding: 0 14px;
  color: #071115;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--cyan);
  cursor: pointer;
  font-weight: 900;
}

.profile-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.58);
}

.profile-link-card strong,
.profile-link-card span {
  display: block;
}

.profile-link-card strong {
  color: var(--text);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.profile-link-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.account-sync-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(124, 246, 229, 0.24);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.58);
}

.account-sync-card.is-online {
  border-color: rgba(152, 255, 98, 0.32);
}

.account-sync-card.is-error {
  border-color: rgba(255, 120, 120, 0.34);
}

.profile-account-summary {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  gap: 3px;
}

.profile-account-summary strong,
.profile-account-summary span {
  display: block;
}

.profile-account-summary strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-account-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.profile-account-summary.is-online strong {
  color: color-mix(in srgb, var(--lime) 72%, white);
}

.profile-account-summary.is-error strong {
  color: color-mix(in srgb, #ff7878 74%, white);
}

.account-sync-heading,
.account-sync-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-sync-heading strong,
.account-sync-heading span {
  display: block;
}

.account-sync-heading strong {
  color: var(--text);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.account-sync-heading span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.account-sync-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.account-sync-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.account-sync-form input {
  width: 100%;
  min-height: 42px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.82);
  padding: 9px 10px;
  font: inherit;
}

.account-sync-form input:focus {
  outline: 2px solid rgba(185, 156, 255, 0.55);
  outline-offset: 2px;
}

.account-sync-actions button,
.account-sync-heading button {
  min-height: 42px;
  padding: 0 14px;
  color: #071115;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--cyan);
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.account-sync-actions button:disabled,
.account-sync-heading button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.profile-link-card .admin-icon-button {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  min-width: 42px;
  padding: 0;
  color: #120b24;
  background: var(--purple);
  font-size: 1.08rem;
  line-height: 1;
}

.share-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(185, 156, 255, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(185, 156, 255, 0.14), transparent 52%),
    rgba(27, 33, 48, 0.66);
}

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

.share-card strong {
  color: var(--text);
  font-size: 1.35rem;
  letter-spacing: 0;
}

.share-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.share-card button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.admin-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-stats article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px;
}

.admin-stats strong {
  font-size: 1.12rem;
}

.admin-stats span {
  max-width: 58px;
  font-size: 0.66rem;
  line-height: 1.05;
  text-align: left;
}

.profile-stats article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.66);
}

.profile-stats strong {
  color: var(--cyan);
  font-size: 1.8rem;
  line-height: 1;
}

.profile-stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-offline-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(152, 255, 98, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(152, 255, 98, 0.08), transparent 48%),
    rgba(27, 33, 48, 0.58);
}

.profile-offline-card strong,
.profile-offline-card span {
  display: block;
}

.profile-offline-card strong {
  color: var(--text);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.profile-offline-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-offline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}

.profile-offline-grid article {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(210, 228, 255, 0.1);
  border-radius: 8px;
  background: rgba(9, 12, 19, 0.46);
}

.profile-offline-grid b {
  color: var(--lime);
  font-size: 1.25rem;
  line-height: 1;
}

.profile-refresh-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(210, 228, 255, 0.1);
}

.profile-refresh-row span {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.profile-refresh-row button {
  min-height: 38px;
  padding: 0 12px;
  color: #120b24;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--purple);
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.profile-refresh-row button:disabled {
  color: var(--muted);
  border-color: var(--line-soft);
  background: rgba(27, 33, 48, 0.44);
  cursor: wait;
}

.api-sync-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(210, 228, 255, 0.1);
  border-radius: 8px;
  background: rgba(9, 12, 19, 0.38);
}

.api-sync-row span,
.api-sync-row small {
  margin: 0;
}

.api-sync-row span {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.api-sync-row small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: right;
}

.api-sync-row.is-online {
  border-color: rgba(152, 255, 98, 0.28);
  background: rgba(152, 255, 98, 0.08);
}

.api-sync-row.is-fallback {
  border-color: rgba(255, 207, 90, 0.24);
  background: rgba(255, 207, 90, 0.07);
}

.api-sync-row.has-plan-conflict {
  border-color: rgba(255, 207, 90, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 207, 90, 0.12), rgba(168, 122, 255, 0.07)),
    rgba(9, 12, 19, 0.38);
}

.api-sync-row.has-plan-conflict small {
  color: rgba(255, 236, 178, 0.92);
}

.panel-heading-compact h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.feature-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

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

.lineup-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.22);
}

.map-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.22);
}

.lineup-search button {
  min-height: 42px;
  padding: 0 13px;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.84);
  cursor: pointer;
  font-weight: 900;
}

.map-search button {
  min-height: 42px;
  padding: 0 13px;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.84);
  cursor: pointer;
  font-weight: 900;
}

.lineup-search button[type="submit"] {
  color: #071115;
  border-color: transparent;
  background: var(--cyan);
}

.map-search button[type="submit"] {
  color: #071115;
  border-color: transparent;
  background: var(--cyan);
}

.genre-filter {
  padding: 7px 10px;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.66);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.genre-filter.is-active {
  color: #071115;
  border-color: transparent;
  background: var(--coral);
}

.genre-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.genre-filter-heading span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.genre-filter-heading button {
  min-height: 28px;
  padding: 0 9px;
  color: var(--purple);
  border: 1px solid rgba(185, 156, 255, 0.24);
  border-radius: 999px;
  background: rgba(185, 156, 255, 0.08);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
}

.selected-genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 30px;
  align-items: center;
}

.selected-genre-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.selected-genre-row .genre-filter {
  padding: 6px 9px;
}

.map-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-focus-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.24);
}

.map-focus-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.map-focus-toggle {
  min-height: 36px;
  padding: 0 12px;
  color: var(--muted-strong);
  border: 1px solid rgba(212, 230, 255, 0.14);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.7);
  cursor: pointer;
  font-weight: 850;
}

.map-focus-toggle.is-active {
  color: #120b24;
  border-color: transparent;
  background: var(--cyan);
}

.map-plan-stage-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.map-plan-stage-row button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted-strong);
  border: 1px solid color-mix(in srgb, var(--stage-accent) 34%, rgba(212, 230, 255, 0.12));
  border-radius: 8px;
  background: color-mix(in srgb, var(--stage-accent) 12%, rgba(27, 33, 48, 0.72));
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.map-category {
  padding: 7px 10px;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.66);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.map-category.is-active {
  color: #071115;
  border-color: transparent;
  background: var(--lime);
}

.lineup-workspace {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
}

.lineup-discovery {
  padding: 14px;
}

.lineup-panel-heading {
  align-items: start;
}

.lineup-panel-heading > div {
  min-width: 0;
}

.lineup-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.lineup-title-row h2 {
  margin: 0;
}

.lineup-title-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lineup-day-control {
  display: inline-grid;
  grid-template-columns: 34px minmax(210px, 230px) 34px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.lineup-day-arrow {
  width: 34px;
  height: 38px;
}

.lineup-search-toggle {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--muted-strong);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.lineup-search-toggle svg {
  width: 19px;
  height: 19px;
}

.lineup-search-toggle:hover,
.lineup-search-toggle:focus-visible,
.lineup-search-toggle.is-active {
  color: #f4ebff;
  background: rgba(185, 156, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(185, 156, 255, 0.2);
}

.lineup-filter-console {
  margin: 12px 0 14px;
  animation: lineup-console-open 160ms ease-out;
  transform-origin: top center;
}

.lineup-filter-console.is-closing {
  animation: lineup-console-close 160ms ease-in forwards;
}

@keyframes lineup-console-open {
  from {
    opacity: 0;
    transform: translateY(-6px) scaleY(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes lineup-console-close {
  from {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }

  to {
    opacity: 0;
    transform: translateY(-6px) scaleY(0.98);
  }
}

.lineup-discovery-grid {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) 310px;
  gap: 14px;
  align-items: start;
}

.lineup-filter-panel,
.lineup-search-rail,
.lineup-results-panel,
.lineup-detail-panel {
  min-width: 0;
  border: 1px solid rgba(210, 228, 255, 0.11);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.24);
}

.lineup-filter-panel,
.lineup-search-rail,
.lineup-results-panel {
  display: grid;
  gap: 14px;
  padding: 12px;
}

.lineup-search-rail {
  position: sticky;
  top: 92px;
  align-content: start;
  background:
    linear-gradient(135deg, rgba(124, 246, 229, 0.06), transparent 48%),
    rgba(10, 13, 20, 0.24);
}

.lineup-search-rail .lineup-search {
  grid-template-columns: 1fr;
  padding: 0;
  border: 0;
  background: transparent;
}

.lineup-search-rail .lineup-search button {
  width: 100%;
}

.lineup-filter-console {
  grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(150px, 1fr));
  align-items: start;
}

.lineup-detail-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.lineup-detail-panel .artist-detail-panel {
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(185, 156, 255, 0.1), transparent 42%),
    rgba(10, 13, 20, 0.2);
}

.lineup-detail-panel .artist-detail-heading {
  display: grid;
}

.lineup-detail-panel .artist-insight-grid {
  grid-template-columns: 1fr;
}

.lineup-filter-console .lineup-search {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.lineup-filter-console .lineup-search label {
  grid-column: 1 / -1;
}

.lineup-filter-console .lineup-search button {
  min-height: 36px;
}

.lineup-filter-close {
  grid-column: 1 / -1;
  min-height: 38px;
  color: var(--text);
  border: 1px solid rgba(212, 230, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
}

.lineup-filter-section {
  display: grid;
  gap: 8px;
}

.lineup-filter-section > span,
.lineup-results-heading span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.lineup-filter-section > span {
  text-transform: uppercase;
}

.lineup-day-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lineup-day-selector {
  --day-active-width: 118px;
  --day-peek-width: 118px;
  display: flex;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding-block: 2px;
  padding-inline: max(0px, calc((100% - var(--day-active-width)) / 2));
  border: 1px solid rgba(212, 230, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 9, 14, 0.92), transparent 30px),
    linear-gradient(270deg, rgba(5, 9, 14, 0.92), transparent 30px),
    rgba(10, 13, 20, 0.34);
  scrollbar-width: none;
  scroll-padding-inline: max(0px, calc((100% - var(--day-active-width)) / 2));
  scroll-snap-type: x proximity;
}

.lineup-day-selector::-webkit-scrollbar {
  display: none;
}

.lineup-day-selector .day-tab {
  flex: 0 0 var(--day-peek-width);
  gap: 2px;
  justify-items: start;
  min-width: 0;
  min-height: 58px;
  padding: 9px 11px;
  border-color: rgba(212, 230, 255, 0.1);
  border-radius: 8px;
  color: var(--muted-strong);
  background: rgba(27, 33, 48, 0.48);
  scroll-snap-align: center;
  text-align: left;
  text-transform: none;
  transition: flex-basis 180ms ease, opacity 180ms ease, transform 180ms ease, color 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.lineup-day-selector .day-tab.is-active {
  flex-basis: var(--day-active-width);
  color: var(--text);
  border-color: rgba(185, 156, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(185, 156, 255, 0.24), rgba(185, 156, 255, 0.06)),
    rgba(27, 33, 48, 0.72);
  box-shadow: inset 0 0 0 1px rgba(185, 156, 255, 0.18);
  animation: day-tab-focus 180ms ease-out;
}

.lineup-day-selector .day-tab[data-day-position="before"],
.lineup-day-selector .day-tab[data-day-position="after"] {
  opacity: 0.36;
}

.lineup-day-selector .day-tab[data-day-position="previous"],
.lineup-day-selector .day-tab[data-day-position="next"] {
  opacity: 0.72;
}

.lineup-day-selector .day-tab-kicker,
.lineup-day-selector .day-tab-date,
.lineup-day-selector .day-tab small {
  display: block;
}

.lineup-day-selector .day-tab-kicker {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.lineup-day-selector .day-tab strong {
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
}

.lineup-day-selector .day-tab-date {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
}

.lineup-day-selector .day-tab small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-day-buttons button {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 8px;
  color: var(--muted-strong);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.66);
  cursor: pointer;
}

.lineup-day-buttons button.is-active {
  color: #120b24;
  border-color: transparent;
  background: var(--cyan);
}

.lineup-day-buttons small {
  font-size: 0.66rem;
}

.lineup-picks-toggle,
.lineup-sort-label select {
  width: 100%;
  min-height: 38px;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.66);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
}

.lineup-view-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lineup-picks-toggle {
  cursor: pointer;
}

.lineup-picks-toggle.is-active {
  color: #120b24;
  border-color: transparent;
  background: linear-gradient(135deg, rgba(185, 156, 255, 0.95), rgba(217, 140, 255, 0.88));
  box-shadow: 0 0 0 1px rgba(244, 235, 255, 0.18) inset;
}

.lineup-sort-label {
  display: grid;
  gap: 8px;
}

.lineup-sort-label span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.lineup-sort-label select {
  padding: 0 10px;
}

.lineup-interest-meter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.lineup-interest-meter strong,
.lineup-results-heading strong {
  display: block;
  color: var(--text);
}

.lineup-interest-meter small {
  color: var(--muted);
}

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

.lineup-pager {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.lineup-pager button {
  min-width: 34px;
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.66);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.lineup-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.lineup-card-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.lineup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.artist-detail-panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(185, 156, 255, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(185, 156, 255, 0.12), transparent 44%),
    rgba(10, 13, 20, 0.38);
}

.artist-detail-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(10, 13, 20, 0.52), rgba(10, 13, 20, 0.94) 68%),
    var(--artist-image, none);
  background-position: center;
  background-size: cover;
  opacity: 0;
}

.artist-detail-panel::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 12% 8%, rgba(5, 8, 14, 0.9), rgba(5, 8, 14, 0.66) 26%, transparent 57%),
    linear-gradient(180deg, rgba(5, 8, 14, 0.18), transparent 54%);
}

.artist-detail-panel[style*="--artist-image"]::before {
  opacity: 0.34;
}

.artist-detail-panel > * {
  position: relative;
  z-index: 1;
}

.artist-detail-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.artist-detail-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.artist-spotlight-subhead {
  display: block;
  margin-top: 5px;
  color: #f1eaff;
  font-size: 0.76rem;
  font-weight: 850;
}

.artist-detail-heading span,
.artist-detail-panel p,
.preview-provider-row span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.artist-genre-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.artist-collab-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.artist-collab-stack button {
  padding: 6px 9px;
  color: #f3edff;
  border: 1px solid rgba(185, 156, 255, 0.28);
  border-radius: 999px;
  background: rgba(185, 156, 255, 0.1);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 850;
}

.artist-collab-stack button.is-active,
.artist-collab-stack button:hover,
.artist-collab-stack button:focus-visible {
  color: #120b24;
  border-color: transparent;
  background: var(--purple);
}

.artist-genre-stack span {
  padding: 6px 9px;
  color: var(--text);
  border: 1px solid rgba(185, 156, 255, 0.28);
  border-radius: 8px;
  background: rgba(185, 156, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 850;
}

.artist-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.artist-insight-grid section {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.46);
}

.artist-insight-grid strong {
  color: var(--muted-strong);
}

.artist-insight-grid p {
  margin: 6px 0 0;
}

.artist-metadata-fallback {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.artist-bio {
  padding: 12px;
  border: 1px solid rgba(185, 156, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.26);
}

.artist-bio strong {
  color: var(--muted-strong);
}

.artist-bio p {
  margin: 6px 0 0;
}

.preview-provider-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.preview-provider-row button,
.preview-provider-row a {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.5);
  font-weight: 850;
}

.preview-provider-row a {
  color: #120b24;
  border-color: transparent;
  background: var(--cyan);
}

.artist-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 9px;
  min-height: 0;
  aspect-ratio: auto;
  padding: 0 0 9px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--set-accent, var(--purple)) 22%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(27, 33, 48, 0.3), rgba(9, 13, 20, 0.82)),
    rgba(27, 33, 48, 0.66);
}

.artist-card.is-active {
  border-color: color-mix(in srgb, var(--set-accent, var(--purple)) 78%, white 12%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--set-accent, var(--purple)) 18%, transparent);
}

.artist-card-main {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 0;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.artist-card-visual {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  color: color-mix(in srgb, var(--set-accent, var(--purple)) 76%, white);
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--set-accent, var(--purple)) 28%, transparent);
  border-radius: 7px 7px 0 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 14, 0.12), rgba(6, 8, 14, 0.78)),
    radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--set-accent, var(--purple)) 54%, transparent), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--set-accent, var(--purple)) 34%, #121827), #070b12 72%),
    var(--artist-image, none);
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.artist-card-visual::after {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #120b24;
  border-radius: 999px;
  background: color-mix(in srgb, var(--set-accent, var(--purple)) 70%, white);
  content: "›";
  font-size: 1.2rem;
  font-weight: 900;
}

.artist-card-visual span {
  position: relative;
  font-size: 1.65rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.artist-card-body {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0 9px;
}

.artist-card-body strong,
.artist-card-body span,
.artist-card-body small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-card-body strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.16;
  text-transform: uppercase;
}

.artist-card-title span {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

.artist-card.is-title-marquee:hover .artist-card-title span,
.artist-card.is-title-marquee:focus-within .artist-card-title span {
  max-width: none;
  min-width: max-content;
  padding-right: 18px;
  overflow: visible;
  text-overflow: clip;
  animation: artist-title-marquee var(--artist-title-marquee-duration, 6200ms) linear infinite;
}

@keyframes artist-title-marquee {
  0%,
  20% {
    transform: translateX(0);
  }

  72%,
  88% {
    transform: translateX(var(--artist-title-marquee-distance, -24px));
  }

  100% {
    transform: translateX(0);
  }
}

.artist-card-body span,
.artist-card-body small {
  color: var(--muted);
  font-size: 0.8rem;
}

.artist-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 4px 9px 0;
}

.artist-toggle {
  min-height: 38px;
  padding: 7px 10px;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.24);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.artist-toggle.interest-watch {
  color: var(--muted-strong);
  border-color: rgba(212, 230, 255, 0.36);
  background: rgba(255, 255, 255, 0.05);
}

.artist-toggle.interest-priority {
  color: var(--text);
  border-color: rgba(212, 230, 255, 0.56);
  background: rgba(255, 255, 255, 0.12);
}

.map-page img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 14px;
}

.map-layout-simple {
  grid-template-columns: minmax(0, 1fr);
}

.map-canvas {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.map-layout-simple .map-canvas {
  max-width: 980px;
  margin: 0 auto;
}

.map-canvas img {
  display: block;
}

.map-pin {
  position: absolute;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  transform: translate(-50%, -50%);
  color: #071115;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 950;
}

.map-pin-food {
  background: var(--coral);
}

.map-pin-landmark {
  background: var(--magenta);
}

.map-pin-services {
  background: var(--lime);
}

.map-pin-water {
  background: var(--blue);
}

.map-pin.is-active {
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 5px rgba(185, 156, 255, 0.28),
    0 12px 30px rgba(0, 0, 0, 0.42);
}

.map-place-list {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
}

.map-place-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.66);
  cursor: pointer;
}

.map-place-card.is-active {
  border-color: rgba(185, 156, 255, 0.48);
  background:
    linear-gradient(135deg, rgba(185, 156, 255, 0.13), transparent 54%),
    rgba(27, 33, 48, 0.82);
}

.map-place-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #071115;
  border-radius: 50%;
  background: var(--cyan);
  font-style: normal;
  font-weight: 950;
}

.map-place-card strong,
.map-place-card span,
.map-place-card small {
  display: block;
}

.map-place-card span,
.map-place-card small {
  color: var(--muted);
  font-size: 0.8rem;
}

.map-place-card .map-personal-note {
  margin-top: 4px;
  color: var(--purple);
  font-weight: 850;
}

.map-detail-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(185, 156, 255, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(185, 156, 255, 0.12), transparent 54%),
    rgba(10, 13, 20, 0.52);
}

.map-detail-card.is-empty {
  border-color: var(--line);
  background: rgba(27, 33, 48, 0.42);
}

.map-personal-pin-card {
  max-width: 980px;
  margin: 0 auto;
}

.map-personal-pin-card strong,
.map-personal-pin-card span {
  display: block;
}

.map-personal-pin-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.map-detail-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.map-detail-heading strong,
.map-detail-heading span,
.map-detail-card p {
  display: block;
  margin: 0;
}

.map-detail-heading strong,
.map-detail-card.is-empty strong {
  color: var(--text);
  text-transform: uppercase;
}

.map-detail-heading span,
.map-detail-card p,
.map-detail-card.is-empty span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.map-detail-card button {
  justify-self: start;
  min-height: 34px;
  padding: 0 11px;
  color: #120b24;
  border: 0;
  border-radius: 8px;
  background: var(--purple);
  cursor: pointer;
  font-weight: 900;
}

.map-note-form {
  display: grid;
  gap: 9px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.map-note-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.map-note-form textarea {
  min-height: 76px;
  resize: vertical;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 12, 19, 0.9);
  padding: 9px;
  font: inherit;
  line-height: 1.4;
  text-transform: none;
}

.map-note-actions {
  display: flex;
  gap: 8px;
}

.map-note-actions button {
  flex: 1;
  justify-self: stretch;
}

.map-note-actions button:disabled {
  color: var(--muted);
  background: rgba(27, 33, 48, 0.44);
  cursor: not-allowed;
}

.map-note {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.feed-placeholder {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.58);
}

.feed-placeholder strong,
.feed-placeholder span {
  display: block;
}

.feed-placeholder strong {
  color: var(--text);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.feed-placeholder span {
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.feed-placeholder .export-button {
  justify-self: start;
  min-width: 180px;
  margin-top: 6px;
  color: var(--text);
  background: var(--button-glass);
  text-align: center;
  text-decoration: none;
}

.map-preview {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.map-preview img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* Schedule reference direction */
body {
  background:
    linear-gradient(135deg, rgba(185, 156, 255, 0.11), transparent 34%),
    linear-gradient(215deg, rgba(143, 111, 255, 0.08), transparent 38%),
    linear-gradient(180deg, #05080d 0%, #080d14 54%, #0b111a 100%);
}

.app-shell {
  padding: 14px;
}

.topbar {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  max-width: 1720px;
  margin: 0 auto;
  padding: 18px 24px 18px;
  border-color: rgba(212, 230, 255, 0.18);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(5, 9, 14, 0.82);
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-width: 0;
}

.brand-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
  justify-items: stretch;
}

.brand-mark {
  color: var(--cyan);
  font-size: 1.45rem;
  line-height: 1;
}

.brand-lockup h1 {
  display: inline;
  margin-right: 9px;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  font-weight: 850;
  text-transform: uppercase;
}

.brand-lockup strong {
  color: var(--cyan);
  font-size: 1.05rem;
  font-weight: 750;
}

.festival-context-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
}

.festival-current {
  display: grid;
  flex: 0 1 clamp(220px, 24vw, 340px);
  gap: 4px;
  min-width: 0;
  max-width: clamp(220px, 24vw, 340px);
}

.festival-current span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.festival-current strong {
  overflow: hidden;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.festival-current small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.festival-current .festival-date-range {
  color: color-mix(in srgb, var(--muted) 82%, var(--purple));
  font-size: 0.72rem;
}

.festival-search-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--muted-strong);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.festival-search-button:hover {
  color: var(--purple);
  border-color: transparent;
}

.search-icon,
.return-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.view-tabs {
  flex: 1 1 auto;
  justify-content: center;
  min-width: max-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.view-tabs button {
  position: relative;
  padding: 6px 14px 13px;
  color: var(--muted);
  border-color: transparent;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 140ms ease, text-shadow 140ms ease, transform 140ms ease;
}

.view-tabs button:hover,
.view-tabs button:focus-visible {
  color: #f4ebff;
  text-shadow: 0 0 16px rgba(185, 156, 255, 0.62);
  transform: translateY(-1px);
}

.view-tabs button.is-active {
  color: var(--text);
  background: transparent;
}

.view-tabs button.is-active::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  content: "";
}

.toolbar {
  flex: 0 0 auto;
  justify-content: end;
  min-width: 0;
  overflow: visible;
}

.icon-button {
  display: grid;
  gap: 3px;
  width: auto;
  min-width: 58px;
  height: auto;
  min-height: 44px;
  place-items: center;
  color: var(--muted-strong);
  border-color: transparent;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 650;
}

.icon-button i {
  color: var(--muted-strong);
  font-size: 1rem;
  font-style: normal;
  line-height: 1;
}

.icon-button.is-online-ready,
.icon-button.is-online-ready i {
  color: var(--lime);
}

.top-profile-button,
.top-admin-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #dbe4f7;
  border: 1px solid var(--button-glass-border);
  border-radius: 8px;
  background: var(--button-glass);
  box-shadow: inset 0 0 0 1px rgba(246, 240, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 1rem;
  overflow: hidden;
}

.top-profile-button {
  border-radius: 999px;
}

.top-account-shell {
  position: relative;
}

.top-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 95;
  display: grid;
  width: min(300px, calc(100vw - 32px));
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(224, 235, 255, 0.18);
  border-radius: 8px;
  background: rgba(10, 13, 20, 0.98);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(246, 240, 255, 0.08);
  animation: schedule-filter-open 140ms ease-out;
}

.top-account-menu strong,
.top-account-menu span {
  display: block;
}

.top-account-menu strong {
  color: var(--text);
  text-transform: uppercase;
}

.top-account-menu span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.top-account-actions button {
  min-height: 40px;
  color: #dbe4f7;
  border: 1px solid var(--button-glass-border);
  border-radius: 8px;
  background: var(--button-glass);
  box-shadow: inset 0 0 0 1px rgba(246, 240, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-weight: 900;
}

.top-account-actions button:hover {
  color: #f8f3ff;
  border-color: var(--button-glass-active-border);
  background: var(--button-glass-active);
  box-shadow: var(--button-glass-shadow);
}

.top-profile-button svg,
.top-admin-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.top-profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-position: center;
  background-size: cover;
}

.top-profile-button.is-active,
.top-profile-button:hover,
.top-admin-button.is-active,
.top-admin-button:hover {
  color: #f8f3ff;
  border-color: var(--button-glass-active-border);
  background: var(--button-glass-active);
  box-shadow: var(--button-glass-shadow);
}

.workspace {
  max-width: 1720px;
}

.schedule-board {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  border: 1px solid rgba(212, 230, 255, 0.18);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(5, 9, 14, 0.76);
  box-shadow: var(--shadow);
}

.schedule-board-full {
  grid-template-columns: minmax(0, 1fr);
}

.schedule-board .schedule-shell {
  border: 0;
  border-radius: 0 0 0 8px;
  background: transparent;
  box-shadow: none;
}

.schedule-day-strip {
  display: grid;
  grid-template-columns: 34px minmax(210px, 230px) 34px minmax(0, 1fr) 42px 42px;
  gap: 6px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(212, 230, 255, 0.16);
  background: rgba(5, 9, 14, 0.52);
}

.day-arrow {
  align-self: center;
  width: 34px;
  height: 35px;
  color: var(--muted-strong);
  border: 1px solid rgba(212, 230, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.official-set-times-button {
  grid-column: 5;
  justify-self: end;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--muted-strong);
  border: 1px solid rgba(212, 230, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.schedule-day-strip .schedule-export-menu {
  grid-column: 6;
  justify-self: end;
}

.schedule-day-strip .schedule-export-menu summary {
  width: 42px;
  height: 42px;
}

.official-set-times-button:hover,
.official-set-times-button:focus-visible,
.official-set-times-button.is-active {
  color: #f4ebff;
  border-color: rgba(185, 156, 255, 0.2);
  background: rgba(185, 156, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(185, 156, 255, 0.2);
}

.official-set-times-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(212, 230, 255, 0.12);
  background: rgba(10, 13, 20, 0.62);
  animation: schedule-filter-open 160ms ease-out;
}

.official-set-times-panel strong,
.official-set-times-panel span {
  display: block;
}

.official-set-times-panel > div {
  justify-self: start;
}

.official-set-times-panel strong {
  color: var(--text);
  font-size: 0.9rem;
}

.official-set-times-panel span {
  color: var(--muted);
  font-size: 0.78rem;
}

.official-set-times-panel img,
.official-set-times-placeholder {
  width: min(100%, 920px);
  min-height: 180px;
  border: 1px dashed rgba(185, 156, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.official-set-times-panel img {
  display: block;
  height: auto;
  justify-self: center;
}

.official-set-times-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 22px;
  color: var(--muted-strong);
  text-align: center;
}

.schedule-day-strip .day-tabs {
  --day-active-width: 118px;
  --day-peek-width: 118px;
  display: flex;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding-block: 2px;
  padding-inline: max(0px, calc((100% - var(--day-active-width)) / 2));
  overflow-x: auto;
  border: 1px solid rgba(212, 230, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 9, 14, 0.92), transparent 30px),
    linear-gradient(270deg, rgba(5, 9, 14, 0.92), transparent 30px),
    rgba(10, 13, 20, 0.34);
  scrollbar-width: none;
  scroll-padding-inline: max(0px, calc((100% - var(--day-active-width)) / 2));
  scroll-snap-type: x proximity;
}

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

.schedule-day-strip .day-tab {
  flex: 0 0 var(--day-peek-width);
  gap: 2px;
  justify-items: start;
  min-width: 0;
  min-height: 58px;
  padding: 9px 11px;
  border-color: rgba(212, 230, 255, 0.1);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.48);
  color: var(--muted-strong);
  scroll-snap-align: center;
  text-align: left;
  text-transform: none;
  transition: flex-basis 180ms ease, opacity 180ms ease, transform 180ms ease, color 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.schedule-day-strip .day-tab.is-active {
  flex-basis: var(--day-active-width);
  color: var(--text);
  border-color: rgba(185, 156, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(185, 156, 255, 0.24), rgba(185, 156, 255, 0.06)),
    rgba(27, 33, 48, 0.72);
  box-shadow: inset 0 0 0 1px rgba(185, 156, 255, 0.18);
  animation: day-tab-focus 180ms ease-out;
}

.schedule-board.is-day-transition-next .schedule-grid,
.schedule-board.is-day-transition-previous .schedule-grid {
  will-change: transform, opacity;
}

.schedule-board.is-day-transition-next .schedule-grid {
  animation: schedule-day-slide-next 220ms ease-out;
}

.schedule-board.is-day-transition-previous .schedule-grid {
  animation: schedule-day-slide-previous 220ms ease-out;
}

@keyframes day-tab-focus {
  from {
    transform: translateY(2px) scale(0.98);
  }

  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes schedule-day-slide-next {
  from {
    opacity: 0.72;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes schedule-day-slide-previous {
  from {
    opacity: 0.72;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.schedule-day-strip .day-tab[data-day-position="before"],
.schedule-day-strip .day-tab[data-day-position="after"] {
  opacity: 0.36;
}

.schedule-day-strip .day-tab[data-day-position="previous"],
.schedule-day-strip .day-tab[data-day-position="next"] {
  opacity: 0.72;
}

.schedule-day-strip .day-tab-kicker,
.schedule-day-strip .day-tab-date,
.schedule-day-strip .day-tab small {
  display: block;
}

.schedule-day-strip .day-tab-kicker {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.schedule-day-strip .day-tab strong {
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
}

.schedule-day-strip .day-tab-date {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
}

.schedule-day-strip .day-tab small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-day-strip .layout-toggle {
  align-self: center;
  justify-self: end;
  background: rgba(255, 255, 255, 0.03);
}

.schedule-day-strip .layout-toggle button {
  display: inline-grid;
  width: 42px;
  height: 34px;
  place-items: center;
  padding: 0;
  font-size: 1rem;
}

.layout-flip {
  display: inline-grid;
  width: 52px;
  height: 44px;
  place-items: center;
  color: var(--purple);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  font-size: 1.18rem;
  font-weight: 900;
}

.corner-cell .layout-flip {
  width: 40px;
  height: 34px;
  border-radius: 8px;
  font-size: 1rem;
}

.layout-flip:hover,
.layout-flip:focus-visible {
  color: #efe5ff;
  background: rgba(185, 156, 255, 0.12);
}

.schedule-selected-button,
.schedule-density-button,
.schedule-visibility-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--muted-strong);
  border-color: rgba(212, 230, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 1rem;
  font-weight: 900;
}

.schedule-density-button {
  font-size: 1.12rem;
}

.compact-icon,
.filter-icon,
.download-icon,
.image-icon,
.lightbulb-icon,
.blocks-icon,
.custom-blocks-icon,
.visibility-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schedule-selected-button.is-active,
.schedule-density-button.is-active,
.schedule-visibility-button.is-active {
  color: #120b24;
  border-color: transparent;
  background: var(--purple);
}

.schedule-filter-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--muted-strong);
  border-color: rgba(212, 230, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  font-size: 1rem;
  font-weight: 900;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.schedule-filter-button:hover,
.schedule-filter-button:focus-visible {
  color: #f4ebff;
  background: rgba(185, 156, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(185, 156, 255, 0.2);
  transform: translateY(-1px);
}

.schedule-filter-button.is-active {
  color: #120b24;
  border-color: transparent;
  background: var(--purple);
  box-shadow: 0 0 0 3px rgba(185, 156, 255, 0.12);
  transform: translateY(0);
}

.schedule-filter-panel {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 45;
  display: grid;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(212, 230, 255, 0.14);
  background: rgba(10, 13, 20, 0.94);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  animation: schedule-filter-open 160ms ease-out;
  transform-origin: top center;
}

.schedule-filter-panel.is-closing {
  pointer-events: none;
  animation: schedule-filter-close 150ms ease-in forwards;
}

@keyframes schedule-filter-open {
  from {
    opacity: 0;
    transform: translateY(-6px) scaleY(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes schedule-filter-close {
  from {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }

  to {
    opacity: 0;
    transform: translateY(-6px) scaleY(0.98);
  }
}

.schedule-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.schedule-filter-group > span {
  flex: 0 0 68px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-filter-actions {
  display: flex;
  gap: 8px;
}

.schedule-filter-group button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted-strong);
  border: 1px solid rgba(212, 230, 255, 0.12);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.7);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.schedule-filter-clear,
.schedule-filter-close {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted-strong);
  border: 1px solid rgba(212, 230, 255, 0.12);
  border-radius: 8px;
  background: rgba(27, 33, 48, 0.7);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
}

.schedule-filter-group button.is-active {
  color: #120b24;
  border-color: transparent;
  background: var(--purple);
}

.schedule-filter-group button[style*="--stage-accent"].is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--stage-accent), white 18%);
  background: color-mix(in srgb, var(--stage-accent), transparent 78%);
}

.schedule-filter-close {
  color: #120b24;
  border-color: transparent;
  background: var(--purple);
}

.schedule-filter-clear {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.schedule-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(212, 230, 255, 0.1);
  background: rgba(8, 10, 18, 0.44);
}

.schedule-local-actions {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 8px;
}

.stage-jump-control {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.stage-jump-placeholder {
  flex: 0 0 auto;
}

.stage-jump-control label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage-jump-control select {
  min-height: 34px;
  width: min(150px, 44vw);
  padding: 0 32px 0 24px;
  color: var(--muted-strong);
  border: 1px solid rgba(212, 230, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted-strong) 50%) right 16px center / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted-strong) 50%, transparent 50%) right 10px center / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(185, 156, 255, 0.16), rgba(185, 156, 255, 0.03)),
    rgba(27, 33, 48, 0.78);
  appearance: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
  text-align-last: center;
}

.layout-toggle button.is-active {
  color: #041114;
  background: var(--cyan);
}

.schedule-grid {
  max-height: calc(100vh - 218px);
  background:
    linear-gradient(135deg, rgba(185, 156, 255, 0.045), transparent 38%),
    linear-gradient(180deg, rgba(14, 11, 24, 0.92), rgba(5, 7, 13, 0.97));
}

.corner-cell,
.stage-header-row,
.time-header-row {
  background: #141020;
}

.stage-header {
  border-right-color: color-mix(in srgb, var(--stage-accent) 30%, rgba(210, 228, 255, 0.12));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--stage-accent) 16%, transparent), transparent 68%),
    #141020;
}

.time-header-row span,
.time-rail span {
  color: #c7d3e6;
  font-weight: 850;
}

.stage-header {
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.stage-header span,
.stage-label span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.stage-header strong,
.stage-label strong {
  display: block;
  overflow: hidden;
  color: color-mix(in srgb, var(--stage-accent) 78%, white);
  font-size: 0.82rem;
  font-weight: 900;
  text-shadow: 0 0 14px color-mix(in srgb, var(--stage-accent) 48%, transparent);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.is-stages-top .stage-header strong {
  display: -webkit-box;
  line-height: 1.05;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.stage-header small,
.stage-label small {
  display: block;
  overflow: hidden;
  color: color-mix(in srgb, var(--stage-accent) 34%, var(--muted));
  font-size: 0.66rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-time-top .stage-label strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.08;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.is-time-top .stage-label small {
  margin-top: 1px;
}

.stage-rail,
.time-rail {
  background: rgba(20, 16, 32, 0.98);
}

.stage-label {
  font-weight: 800;
  border-bottom-color: color-mix(in srgb, var(--stage-accent) 22%, rgba(210, 228, 255, 0.1));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--stage-accent) 14%, transparent), transparent 70%),
    rgba(20, 16, 32, 0.98);
}

.stage-column,
.timeline-rows {
  background:
    linear-gradient(90deg, rgba(185, 156, 255, 0.03), transparent 28%),
    linear-gradient(180deg, rgba(185, 156, 255, 0.018), rgba(255, 255, 255, 0));
}

.set-block {
  padding: 8px 9px;
  opacity: 1;
  border-color: transparent;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--set-accent) 12%, transparent), rgba(13, 18, 27, 0.96) 64%),
    rgba(13, 18, 27, 0.96);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--set-accent) 28%, transparent);
}

.set-block::before {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--set-accent) 10%, rgba(6, 8, 14, 0.62)), rgba(6, 8, 14, 0.9) 68%),
    var(--artist-image, none);
}

.set-block.interest-none {
  opacity: 1;
  color: rgba(211, 218, 230, 0.74);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--set-accent) 5%, transparent), rgba(17, 20, 27, 0.98) 66%),
    rgba(13, 18, 27, 0.97);
  filter: grayscale(0.46) saturate(0.44);
  box-shadow: inset 0 0 0 1px rgba(210, 228, 255, 0.14);
}

.set-block.interest-none .set-time,
.set-block.interest-none .genre-chip,
.set-block.interest-none .interest-icon {
  opacity: 0.68;
}

.set-block.interest-watch {
  color: var(--text);
  opacity: 0.94;
  border-color: transparent;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--set-accent) 30%, transparent), rgba(16, 22, 32, 0.9) 66%),
    rgba(16, 22, 32, 0.94);
  filter: saturate(1.04);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--set-accent) 44%, transparent), 0 0 20px color-mix(in srgb, var(--set-accent) 14%, transparent);
}

.set-block.interest-priority {
  color: var(--text);
  opacity: 1;
  border-color: transparent;
  background:
    radial-gradient(circle at 82% 62%, color-mix(in srgb, var(--set-accent) 62%, transparent), transparent 50%),
    linear-gradient(135deg, color-mix(in srgb, var(--set-accent) 58%, transparent), rgba(10, 16, 24, 0.9) 58%),
    rgba(10, 16, 24, 0.98);
  filter: saturate(1.22);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--set-accent) 56%, transparent), 0 0 34px color-mix(in srgb, var(--set-accent) 34%, transparent);
}

.schedule-visibility-boost .set-block.interest-none,
.schedule-visibility-boost .set-block.interest-watch,
.schedule-visibility-boost .set-block.interest-priority {
  opacity: 1;
  color: var(--text);
  filter: saturate(1.18);
  background:
    radial-gradient(circle at 82% 62%, color-mix(in srgb, var(--set-accent) 46%, transparent), transparent 52%),
    linear-gradient(135deg, color-mix(in srgb, var(--set-accent) 42%, transparent), rgba(10, 16, 24, 0.92) 60%),
    rgba(10, 16, 24, 0.98);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--set-accent) 50%, transparent), 0 0 28px color-mix(in srgb, var(--set-accent) 26%, transparent);
}

.schedule-visibility-boost .set-block.interest-none .set-time,
.schedule-visibility-boost .set-block.interest-none .genre-chip,
.schedule-visibility-boost .set-block.interest-none .interest-icon {
  opacity: 0.9;
}

.set-header strong {
  text-transform: uppercase;
}

.set-block-horizontal .set-header strong {
  max-width: 100%;
}

.interest-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: color-mix(in srgb, var(--set-accent) 82%, white);
  flex: 0 0 auto;
  font-size: 1.04rem;
  line-height: 1;
}

.set-block > .interest-icon {
  margin-top: 1px;
}

.set-block:not(.set-block-horizontal) > .interest-icon {
  width: 18px;
  height: 18px;
  font-size: 0.92rem;
}

.set-block:not(.set-block-horizontal) > .interest-icon .interest-eye {
  width: 15px;
  height: 15px;
}

.set-block-horizontal > .interest-icon {
  position: absolute;
  bottom: 6px;
  left: 8px;
  margin-top: 0;
  transform: none;
}

.schedule-compact .schedule-grid {
  --stage-column-width: 70px;
  max-height: calc(100vh - 178px);
}

.schedule-compact .schedule-grid.is-stages-top {
  grid-template-columns: 42px minmax(calc(var(--stage-count) * var(--stage-column-width)), 1fr);
  grid-template-rows: 36px var(--grid-height);
}

.schedule-compact .schedule-grid.is-time-top {
  grid-template-columns: 76px minmax(var(--timeline-width), 1fr);
  grid-template-rows: 34px calc(var(--stage-count) * var(--stage-row-height));
}

.schedule-compact .stage-header,
.schedule-compact .stage-label {
  padding: 0 3px;
}

.schedule-compact .stage-header strong,
.schedule-compact .stage-label strong {
  font-size: 0.58rem;
  line-height: 0.98;
}

.schedule-compact .time-rail span {
  right: 4px;
  font-size: 0.58rem;
}

.schedule-compact .set-block {
  gap: 1px;
  min-height: 26px;
  padding: 3px 3px;
  border-radius: 5px;
}

.schedule-compact .set-block-horizontal {
  min-width: 0;
  padding: 3px;
}

.schedule-compact .set-block > .interest-icon {
  display: none;
}

.schedule-compact .set-header {
  min-height: 0;
}

.schedule-compact .set-header strong {
  display: block;
  overflow: hidden;
  font-size: 0.57rem;
  white-space: normal;
  line-height: 0.98;
  text-overflow: clip;
}

.schedule-compact .set-header strong span {
  display: inline;
}

.schedule-compact .set-time {
  max-width: 100%;
  white-space: normal;
  font-size: 0.48rem;
  font-weight: 800;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.schedule-compact .genre-chip {
  display: none;
}

.schedule-empty-state {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 180px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(185, 156, 255, 0.045), transparent 38%),
    linear-gradient(180deg, rgba(14, 11, 24, 0.92), rgba(5, 7, 13, 0.97));
  border-top: 1px solid rgba(210, 228, 255, 0.1);
  border-bottom: 1px solid rgba(210, 228, 255, 0.1);
}

.schedule-empty-state .corner-cell {
  position: relative;
  grid-row: 1;
  min-height: 180px;
}

.schedule-empty-state p {
  display: grid;
  min-height: 180px;
  margin: 0;
  place-items: center;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 800;
}

.interest-glyph {
  font-style: normal;
}

.interest-eye,
.interest-star-icon,
.interest-none-icon {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.interest-star-icon {
  fill: currentColor;
  stroke: none;
}

.legend-star.watch .interest-icon,
.plan-interest-watch .interest-icon {
  color: var(--muted-strong);
}

.interest-priority .interest-glyph {
  color: color-mix(in srgb, var(--set-accent) 82%, white);
}

.plan-interest-priority {
  color: var(--muted-strong);
}

.genre-chip {
  color: var(--muted-strong);
}

.interest-priority .genre-chip {
  color: var(--text);
  border-color: color-mix(in srgb, var(--set-accent) 38%, transparent);
  background: rgba(0, 0, 0, 0.18);
}

.now-line {
  border-top-color: var(--coral-strong);
}

.is-time-top .now-line {
  border-left-color: var(--coral-strong);
}

.now-line b {
  color: #fff;
  background: var(--coral-strong);
}

.schedule-board .plan-panel {
  padding: 28px 24px;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(212, 230, 255, 0.18);
  border-radius: 0 0 8px 0;
  background: rgba(7, 12, 18, 0.76);
  box-shadow: none;
}

.panel-heading span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.panel-heading .lineup-title-tools {
  display: inline-flex;
  margin-top: 0;
  color: inherit;
  font-size: inherit;
}

.panel-heading .lineup-day-control {
  display: inline-grid;
  margin-top: 0;
  color: inherit;
  font-size: inherit;
}

.panel-heading .lineup-day-selector .day-tab-kicker,
.panel-heading .lineup-day-selector .day-tab-date,
.panel-heading .lineup-day-selector .day-tab small {
  margin-top: 0;
}

.panel-heading .lineup-day-selector .day-tab-kicker {
  color: var(--muted);
  font-size: 0.62rem;
}

.panel-heading .lineup-day-selector .day-tab-date {
  color: var(--text);
  font-size: 0.78rem;
}

.panel-heading .lineup-day-selector .day-tab small {
  color: var(--muted);
  font-size: 0.66rem;
}

.plan-export-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.schedule-board .plan-list {
  gap: 0;
}

.schedule-board .plan-item {
  grid-template-columns: 82px minmax(0, 1fr) 22px;
  gap: 12px;
  padding: 14px 0;
}

.schedule-board .plan-item time {
  color: var(--muted);
}

.schedule-board .plan-item i {
  color: var(--cyan);
  font-style: normal;
  font-size: 1.1rem;
}

.schedule-board .offline-card {
  margin-top: 14px;
  margin-bottom: 0;
}

.export-button-wide {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  font-weight: 850;
}

.schedule-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 0 28px;
  border-top: 1px solid rgba(212, 230, 255, 0.12);
  background: rgba(5, 9, 14, 0.68);
}

.schedule-footer .legend {
  display: flex;
  align-items: center;
  column-gap: 22px;
  row-gap: 8px;
}

.schedule-footer .legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.schedule-footer > span {
  color: var(--muted);
  font-size: 0.84rem;
}

.legend-star {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--muted);
  font-style: normal;
  line-height: 1;
}

.legend-star .interest-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  font-size: 1rem;
}

.legend-star .interest-eye,
.legend-star .interest-star-icon,
.legend-star .interest-none-icon {
  width: 16px;
  height: 16px;
}

.legend-star.priority {
  color: var(--muted-strong);
}

.legend-star.watch {
  color: var(--muted-strong);
}

.mobile-nav {
  display: none;
}

@media (max-width: 1320px) {
  .lineup-discovery-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .lineup-title-tools {
    align-items: center;
  }

  .lineup-day-control {
    order: 1;
  }

  .lineup-search-toggle {
    order: 2;
    flex: 0 0 40px;
  }

  .lineup-search-rail {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 0.55fr));
  }

  .lineup-search-rail .lineup-search {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
}

@media (min-width: 721px) {
  .lineup-search-toggle,
  .lineup-filter-console {
    display: none;
  }
}

@media (min-width: 1321px) {
  .lineup-discovery-grid {
    grid-template-columns: minmax(280px, 310px) minmax(0, 840px) minmax(350px, 390px);
    justify-content: center;
  }

  .lineup-search-rail {
    padding: 14px;
  }

  .lineup-search-rail .lineup-search {
    gap: 12px;
  }

  .lineup-search input {
    min-height: 46px;
  }

  .lineup-grid {
    gap: 10px;
  }

  .artist-card {
    min-height: 0;
    aspect-ratio: auto;
  }

  .artist-card-visual {
    min-height: 0;
  }

  .artist-card-body {
    padding-inline: 8px;
  }

  .artist-actions {
    padding-inline: 8px;
  }
}

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

  .schedule-command {
    grid-template-columns: 1fr;
  }

  .schedule-rail {
    display: none;
  }

  .schedule-body {
    grid-template-columns: 1fr;
  }

  .schedule-sidecar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(210, 228, 255, 0.09);
    border-left: 0;
  }

  .plan-panel-full {
    grid-template-columns: 1fr;
  }

  .plan-view-row {
    flex-direction: column;
  }

  .plan-view-row .plan-density-control {
    align-self: end;
  }

  .toolbar {
    overflow: visible;
  }

  .plan-panel {
    order: 2;
  }

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

  .lineup-filter-console {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lineup-detail-panel {
    position: static;
    grid-column: 1 / -1;
  }

  .lineup-detail-panel .artist-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 14px 12px 116px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
  }

  .festival-context-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .festival-current {
    max-width: none;
  }

  .toolbar {
    justify-self: end;
  }

  .day-tabs {
    overflow-x: auto;
  }

  .schedule-day-strip {
    grid-template-columns: 32px minmax(190px, 210px) 32px minmax(0, 1fr) 38px 38px;
    gap: 5px;
    padding: 10px;
  }

  .official-set-times-button {
    grid-column: 5;
    width: 38px;
    height: 38px;
  }

  .schedule-day-strip .schedule-export-menu {
    grid-column: 6;
  }

  .schedule-day-strip .schedule-export-menu summary {
    width: 38px;
    height: 38px;
  }

  .schedule-day-strip .day-tabs {
    --day-active-width: 112px;
    --day-peek-width: 112px;
    max-width: 100%;
  }

  .schedule-day-strip .day-tab {
    flex-basis: var(--day-peek-width);
  }

  .schedule-day-strip .day-tab.is-active {
    flex-basis: var(--day-active-width);
  }

  .schedule-control-row {
    flex-wrap: nowrap;
    align-items: center;
    padding: 8px 10px;
  }

  .schedule-local-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .stage-jump-control {
    flex: 0 0 auto;
  }

  .stage-jump-control select {
    width: 148px;
  }

  .view-tabs {
    display: none;
  }

  .schedule-meta {
    display: grid;
    padding: 14px;
  }

  .schedule-command-header {
    display: grid;
    padding: 14px;
  }

  .schedule-actions {
    justify-content: start;
  }

  .schedule-filter-bar {
    padding: 10px;
  }

  .schedule-sidecar {
    display: none;
  }

  .itinerary-hero {
    align-items: start;
    display: grid;
    padding: 14px;
  }

  .feature-panel,
  .plan-panel {
    padding: 14px;
  }

  .schedule-grid {
    max-height: 64vh;
  }

  .schedule-grid.is-stages-top {
    --stage-column-width: 124px;
    grid-template-columns: 64px minmax(496px, 1fr);
  }

  .schedule-grid.is-time-top {
    grid-template-columns: 126px minmax(var(--timeline-width), 1fr);
  }

  .stage-header-row,
  .stage-columns {
    grid-template-columns: repeat(var(--stage-count), var(--stage-column-width));
    min-width: calc(var(--stage-count) * var(--stage-column-width));
  }

  .stage-label {
    padding: 0 8px;
  }

  .time-header-row span {
    font-size: 0.68rem;
  }

  .set-block {
    right: 0;
    left: 0;
    padding: 7px;
  }

  .set-block-horizontal {
    min-width: 0;
    padding: 7px 7px 24px;
  }

  .set-header strong {
    font-size: 0.9rem;
  }

  .genre-chip,
  .set-time {
    font-size: 0.64rem;
  }

  .plan-panel {
    box-shadow: none;
  }

  .plan-list-screenshot {
    padding: 2px 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .profile-form,
  .account-sync-form,
  .friend-form,
  .friend-search,
  .lineup-search,
  .map-search,
  .profile-stats,
  .profile-offline-card,
  .profile-offline-grid,
  .friend-grid,
  .artist-insight-grid,
  .data-import-grid,
  .official-workflow-steps,
  .offline-manifest-grid,
  .review-package-panel,
  .admin-terminal-grid,
  .admin-tools-grid,
  .role-grid,
  .festival-card-grid,
  .map-source-panel {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(4, minmax(52px, 1fr));
  }

  .admin-stats article {
    gap: 5px;
    min-height: 40px;
    padding: 7px 4px;
  }

  .admin-stats strong {
    font-size: 1rem;
  }

  .admin-stats span {
    max-width: 48px;
    font-size: 0.58rem;
  }

  .data-summary-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .data-tool-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contract-schema-grid,
  .contract-checklist-grid,
  .import-risk-grid,
  .backend-model-grid,
  .csv-mapping-grid,
  .metadata-provider-grid,
  .offline-package-grid,
  .review-workflow-grid,
  .entity-contract-grid {
    grid-template-columns: 1fr;
  }

  .admin-submission-form,
  .review-package-meta,
  .review-promote-list article,
  .platform-task-list,
  .data-model-grid,
  .artist-metadata-form,
  .artist-metadata-preview,
  .metadata-filter-form,
  .metadata-queue-item,
  .staged-diff-grid {
    grid-template-columns: 1fr;
  }

  .metadata-filter-actions {
    justify-content: stretch;
  }

  .metadata-filter-actions button {
    flex: 1;
  }

  .metadata-queue-actions {
    justify-content: start;
  }

  .review-package-meta {
    justify-content: start;
  }

  .data-summary-row .data-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .data-summary-row .data-actions button {
    flex: 1 1 120px;
  }

  .admin-tools-heading {
    display: grid;
  }

  .map-source-panel {
    grid-template-columns: 1fr;
  }

  .share-card {
    display: grid;
  }

  .account-sync-heading,
  .account-sync-actions {
    display: grid;
    justify-content: stretch;
  }

  .profile-link-card {
    display: grid;
  }

  .lineup-workspace {
    max-width: none;
  }

  .lineup-discovery {
    padding: 12px;
  }

  .lineup-title-tools {
    width: 100%;
  }

  .lineup-day-control {
    grid-template-columns: 32px minmax(190px, 210px) 32px;
  }

  .lineup-day-arrow {
    width: 32px;
    height: 38px;
  }

  .lineup-day-selector {
    --day-active-width: 112px;
    --day-peek-width: 112px;
    max-width: 100%;
  }

  .lineup-search-toggle {
    flex: 0 0 40px;
  }

  .lineup-discovery-grid,
  .lineup-detail-panel .artist-insight-grid {
    grid-template-columns: 1fr;
  }

  .lineup-search-rail {
    display: none;
  }

  .lineup-filter-console {
    grid-template-columns: 1fr;
    padding-bottom: 104px;
  }

  .lineup-filter-close {
    position: sticky;
    bottom: 92px;
    z-index: 4;
    scroll-margin-bottom: 132px;
  }

  .lineup-detail-panel {
    order: 2;
  }

  .lineup-results-panel {
    order: 3;
  }

  .lineup-filter-console .lineup-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lineup-filter-console .lineup-search label {
    grid-column: 1 / -1;
  }

  .lineup-filter-console .genre-row {
    max-height: 132px;
    overflow-y: auto;
    padding-right: 2px;
  }

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

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

  .release-step-list article {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .artist-card {
    min-height: 0;
  }

  .artist-card-visual {
    min-height: 0;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .artist-detail-heading,
  .artist-actions {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 70px;
    padding: 9px;
    border: 1px solid rgba(224, 235, 255, 0.22);
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(185, 156, 255, 0.11), rgba(255, 255, 255, 0.025)),
      rgba(12, 15, 24, 0.95);
    box-shadow: inset 0 0 0 1px rgba(246, 240, 255, 0.08), 0 20px 42px rgba(0, 0, 0, 0.42), 0 0 28px rgba(185, 156, 255, 0.12);
    backdrop-filter: blur(18px);
  }

  .mobile-nav button {
    display: grid;
    min-height: 52px;
    place-items: center;
    padding: 11px 4px;
    color: #cfd9ef;
    border: 1px solid var(--button-glass-border);
    border-radius: 12px;
    background:
      linear-gradient(135deg, rgba(185, 156, 255, 0.13), rgba(120, 168, 255, 0.045)),
      rgba(20, 23, 34, 0.78);
    box-shadow: inset 0 0 0 1px rgba(246, 240, 255, 0.06);
    font-size: 0.86rem;
    font-weight: 850;
    transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  }

  .mobile-nav .is-active {
    color: #f8f3ff;
    border-color: var(--button-glass-active-border);
    background:
      linear-gradient(135deg, rgba(185, 156, 255, 0.38), rgba(217, 140, 255, 0.14)),
      rgba(24, 25, 42, 0.92);
    box-shadow: inset 0 0 0 1px rgba(246, 240, 255, 0.18), 0 0 18px rgba(185, 156, 255, 0.18), 0 10px 22px rgba(0, 0, 0, 0.2);
    font-weight: 950;
    transform: translateY(-1px);
  }
}

.schedule-compact .schedule-grid.is-stages-top {
  --stage-column-width: 70px;
  grid-template-columns: 42px minmax(calc(var(--stage-count) * var(--stage-column-width)), 1fr);
}

.schedule-compact .stage-header-row,
.schedule-compact .stage-columns {
  grid-template-columns: repeat(var(--stage-count), var(--stage-column-width));
  min-width: calc(var(--stage-count) * var(--stage-column-width));
}

.schedule-compact .schedule-grid.is-time-top {
  grid-template-columns: 76px minmax(var(--timeline-width), 1fr);
}

.schedule-compact .stage-label {
  padding: 0 3px;
}

.schedule-compact .set-block {
  padding: 3px;
}

.schedule-compact .set-block-horizontal {
  min-width: 0;
  padding: 3px;
}

.schedule-compact .set-header strong {
  font-size: 0.6rem;
}

.schedule-compact .set-time {
  font-size: 0.5rem;
}

.schedule-filter-group button,
.schedule-filter-clear,
.schedule-filter-close,
.genre-filter,
.genre-filter-heading button,
.lineup-search button,
.lineup-pager button,
.lineup-picks-toggle,
.plan-density-control button,
.custom-template-row button,
.custom-block-form button,
.artist-toggle,
.preview-provider-row a,
.preview-provider-row button,
.artist-collab-stack button,
.admin-action-row button,
.admin-command-panel > button,
.admin-submission-form button,
.admin-queue-filters button,
.release-actions button,
.profile-refresh-row button,
.festival-current-strip button,
.official-workflow-actions button,
.contract-schema-card button,
.review-package-panel button,
.review-promote-list button,
.artist-metadata-actions button,
.metadata-provider-grid button,
.data-import-card button,
.metadata-queue-action button,
.data-actions button,
.map-note-form button,
.profile-form button:not(.profile-photo-preview):not(.profile-create-account-button),
.account-sync-actions button,
.account-sync-heading button,
.profile-link-card button,
.share-card button,
.festival-card button,
.lineup-day-buttons button {
  color: #dbe4f7;
  border-color: var(--button-glass-border);
  background: var(--button-glass);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.065), 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.schedule-filter-group button:hover,
.schedule-filter-clear:hover,
.schedule-filter-close:hover,
.genre-filter:hover,
.genre-filter-heading button:hover,
.lineup-search button:hover,
.lineup-pager button:not(:disabled):hover,
.lineup-picks-toggle:hover,
.plan-density-control button:hover,
.custom-template-row button:hover,
.custom-block-form button:hover,
.artist-toggle:hover,
.preview-provider-row a:hover,
.preview-provider-row button:hover,
.artist-collab-stack button:hover,
.admin-action-row button:not(:disabled):hover,
.admin-command-panel > button:not(:disabled):hover,
.admin-submission-form button:hover,
.admin-queue-filters button:hover,
.release-actions button:not(:disabled):hover,
.profile-refresh-row button:not(:disabled):hover,
.festival-current-strip button:hover,
.official-workflow-actions button:hover,
.contract-schema-card button:hover,
.review-package-panel button:hover,
.review-promote-list button:hover,
.artist-metadata-actions button:hover,
.metadata-provider-grid button:hover,
.data-import-card button:hover,
.metadata-queue-action button:hover,
.data-actions button:hover,
.map-note-form button:hover,
.profile-form button:not(.profile-photo-preview):not(.profile-create-account-button):not(:disabled):hover,
.account-sync-actions button:not(:disabled):hover,
.account-sync-heading button:not(:disabled):hover,
.profile-link-card button:not(:disabled):hover,
.share-card button:not(:disabled):hover,
.festival-card button:not(:disabled):hover,
.lineup-day-buttons button:not(:disabled):hover {
  color: #f8f3ff;
  border-color: rgba(221, 204, 255, 0.66);
  background: linear-gradient(135deg, rgba(185, 156, 255, 0.28), rgba(120, 168, 255, 0.08)), rgba(30, 33, 52, 0.96);
  box-shadow: inset 0 0 0 1px rgba(246, 240, 255, 0.2), 0 0 20px rgba(185, 156, 255, 0.2), 0 10px 20px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.schedule-selected-button.is-active,
.schedule-density-button.is-active,
.schedule-visibility-button.is-active,
.schedule-filter-button.is-active,
.schedule-filter-group button.is-active,
.schedule-filter-close,
.genre-filter.is-active,
.lineup-search button[type="submit"],
.lineup-picks-toggle.is-active,
.plan-density-control button.is-active,
.custom-template-row button.is-active,
.custom-template-row button:hover,
.custom-block-form button[type="submit"],
.preview-provider-row a,
.artist-collab-stack button.is-active,
.artist-collab-stack button:hover,
.admin-action-row button,
.admin-command-panel > button,
.admin-submission-form button,
.admin-queue-filters button.is-active,
.release-actions button,
.profile-refresh-row button,
.festival-current-strip button,
.official-workflow-actions button,
.contract-schema-card button,
.review-package-panel button,
.review-promote-list button,
.artist-metadata-actions button,
.metadata-provider-grid button,
.data-import-card button,
.map-note-form button,
.lineup-day-buttons button.is-active,
.profile-form button[type="submit"],
.account-sync-actions button[type="submit"],
.profile-link-card button,
.share-card button:not(:disabled),
.festival-card button {
  color: #f8f3ff;
  border-color: var(--button-glass-active-border);
  background: var(--button-glass-active);
  box-shadow: var(--button-glass-shadow);
}

.schedule-filter-group button[style*="--stage-accent"].is-active {
  color: #f8f3ff;
  border-color: color-mix(in srgb, var(--stage-accent), white 46%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--stage-accent) 36%, transparent), rgba(255, 255, 255, 0.055)),
    rgba(20, 23, 34, 0.9);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stage-accent) 30%, transparent), 0 0 24px color-mix(in srgb, var(--stage-accent) 26%, transparent), 0 10px 22px color-mix(in srgb, var(--stage-accent) 16%, transparent);
}

.schedule-selected-button.is-active,
.schedule-density-button.is-active,
.schedule-visibility-button.is-active,
.schedule-filter-button.is-active,
.plan-density-control button.is-active,
.lineup-picks-toggle.is-active {
  transform: translateY(-1px);
}

.schedule-filter-group button:disabled,
.lineup-pager button:disabled,
.admin-action-row button:disabled,
.admin-command-panel > button:disabled,
.release-actions button:disabled,
.profile-refresh-row button:disabled {
  color: var(--muted);
  border-color: var(--line-soft);
  background: rgba(20, 23, 34, 0.42);
  box-shadow: none;
  transform: none;
}

.schedule-selected-button:not(.is-active):hover,
.schedule-selected-button:not(.is-active):focus-visible,
.schedule-density-button:not(.is-active):hover,
.schedule-density-button:not(.is-active):focus-visible,
.schedule-visibility-button:not(.is-active):hover,
.schedule-visibility-button:not(.is-active):focus-visible,
.schedule-filter-button:not(.is-active):hover,
.schedule-filter-button:not(.is-active):focus-visible,
.schedule-filter-group button:not(.is-active):hover,
.schedule-filter-group button:not(.is-active):focus-visible {
  color: #f4ebff;
  border-color: rgba(185, 156, 255, 0.2);
  background: rgba(185, 156, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(185, 156, 255, 0.2);
  transform: none;
}

.profile-form .profile-create-account-button,
.profile-form .profile-create-account-button:not(:disabled):hover,
.profile-form .profile-create-account-button:not(:disabled):focus-visible {
  justify-self: center;
  min-height: 20px;
  height: auto;
  padding: 0 4px;
  color: var(--muted-strong);
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: none;
}

.profile-form .profile-create-account-button:not(:disabled):hover,
.profile-form .profile-create-account-button:not(:disabled):focus-visible {
  color: #f8f3ff;
  text-shadow: 0 0 14px rgba(185, 156, 255, 0.5);
}

@media (max-width: 720px) {
  .schedule-export-toast {
    right: 14px;
    bottom: 78px;
  }
}

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