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

:root {
  --bg: #0a1628;
  --bg-deep: #081220;
  --surface: rgba(17, 29, 46, 0.84);
  --surface-elevated: rgba(22, 38, 58, 0.88);
  --surface-soft: rgba(34, 52, 78, 0.5);
  --text: #f8fbff;
  --muted: #bfd1e6;
  --faint: #7f93ac;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.18);
  --glass-fill: rgba(255, 255, 255, 0.08);
  --glass-fill-strong: rgba(255, 255, 255, 0.12);

  --trust: #60a5fa;
  --trust-soft: rgba(96, 165, 250, 0.16);
  --accent: #d4a63a;
  --accent-soft: rgba(212, 166, 58, 0.16);
  --good: #22c55e;
  --good-soft: rgba(34, 197, 94, 0.15);
  --bad: #fb7185;
  --bad-soft: rgba(251, 113, 133, 0.14);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.14);
  --spotlight: #c084fc;
  --spotlight-soft: rgba(192, 132, 252, 0.12);

  --radius-panel: 18px;
  --radius-control: 12px;
  --shadow-panel: 0 20px 44px rgba(2, 8, 23, 0.42);
  --ring: 0 0 0 3px rgba(96, 165, 250, 0.24);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf3fb;
  --bg-deep: #f8fbfe;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-elevated: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(220, 231, 245, 0.78);
  --text: #10213a;
  --muted: #4b627f;
  --faint: #5b6f8d;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(15, 23, 42, 0.18);
  --glass-border: rgba(148, 163, 184, 0.32);
  --glass-highlight: rgba(255, 255, 255, 0.82);
  --glass-fill: rgba(255, 255, 255, 0.68);
  --glass-fill-strong: rgba(255, 255, 255, 0.9);

  --trust: #2563eb;
  --trust-soft: rgba(37, 99, 235, 0.12);
  --accent: #b98214;
  --accent-soft: rgba(185, 130, 20, 0.12);
  --good: #15803d;
  --good-soft: rgba(21, 128, 61, 0.12);
  --bad: #e11d48;
  --bad-soft: rgba(225, 29, 72, 0.11);
  --warn: #d97706;
  --warn-soft: rgba(217, 119, 6, 0.12);
  --spotlight: #7c3aed;
  --spotlight-soft: rgba(124, 58, 237, 0.11);

  --shadow-panel: 0 24px 48px rgba(148, 163, 184, 0.28);
  --ring: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.5;
  background:
    radial-gradient(1320px 820px at 12% -12%, rgba(96, 165, 250, 0.18), transparent 60%),
    radial-gradient(980px 620px at 88% -6%, rgba(255, 255, 255, 0.05), transparent 56%),
    radial-gradient(760px 520px at 74% 18%, rgba(212, 166, 58, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 42%, var(--bg) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.18;
}

body::before {
  width: 360px;
  height: 360px;
  top: 18%;
  left: -100px;
  background: rgba(96, 165, 250, 0.1);
}

body::after {
  width: 420px;
  height: 420px;
  right: -140px;
  top: 8%;
  background: rgba(255, 255, 255, 0.05);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-160%);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 166, 58, 0.44);
  background: rgba(212, 166, 58, 0.16);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.statusRegion {
  position: fixed;
  left: 50%;
  bottom: clamp(88px, 14vh, 132px);
  z-index: 24;
  width: min(560px, calc(100vw - 28px));
  transform: translateX(-50%) translateY(16px) scale(0.985);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.statusRegion--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.statusRegion--leaving {
  opacity: 0;
  transform: translateX(-50%) translateY(12px) scale(0.99);
}

.statusBanner {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 14px 17px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, rgba(26, 40, 60, 0.7), rgba(16, 26, 42, 0.56));
  color: var(--text);
  font-size: 14px;
  line-height: 1.52;
  overflow-wrap: anywhere;
  opacity: 0;
  transform: translateY(8px);
  box-shadow:
    0 20px 42px rgba(2, 6, 23, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  transition:
    opacity 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.statusBanner--visible {
  opacity: 1;
  transform: translateY(0);
}

.statusBanner--leaving {
  opacity: 0;
  transform: translateY(6px);
}

.statusBanner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(255, 255, 255, 0.2), transparent 42%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 34%, rgba(255, 255, 255, 0.04) 62%, transparent 78%);
  opacity: 0.9;
}

.statusBanner--info {
  border-color: rgba(138, 180, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(168, 203, 255, 0.13), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(18, 33, 56, 0.68), rgba(11, 21, 38, 0.54));
}

.statusBanner--success {
  border-color: rgba(114, 219, 157, 0.24);
  background:
    linear-gradient(180deg, rgba(114, 219, 157, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(17, 38, 33, 0.66), rgba(11, 21, 38, 0.54));
}

.statusBanner--warn {
  border-color: rgba(255, 205, 124, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 205, 124, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(45, 34, 20, 0.64), rgba(11, 21, 38, 0.54));
}

.statusBanner--error {
  border-color: rgba(255, 177, 194, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 177, 194, 0.13), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(49, 27, 35, 0.62), rgba(11, 21, 38, 0.54));
  color: #fff4f7;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) auto minmax(280px, 1fr);
  grid-template-areas: "left center right";
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(22, 35, 53, 0.66), rgba(18, 31, 49, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 16px 32px rgba(2, 8, 23, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-modal-open="production"] .topbar,
:root[data-modal-open="production"] .skip-link {
  pointer-events: none;
}

:root[data-modal-open="production"] .topbar {
  opacity: 0.72;
  filter: saturate(0.92);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 166, 58, 0.34), rgba(96, 165, 250, 0.24), transparent 74%);
}

.topbar__section {
  min-width: 0;
}

.topbar__section--left {
  grid-area: left;
  justify-self: start;
}

.topbar__section--center {
  grid-area: center;
  justify-self: center;
}

.topbar__section--right {
  grid-area: right;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.topbar__title {
  margin: 0;
  font-family: "Lexend", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.18rem, 1.02rem + 0.5vw, 1.58rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--text);
  overflow-wrap: anywhere;
}

.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar__actions:empty {
  display: none;
}

.topbar__actions .btnbar {
  margin: 0;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: center;
}

.topbar__actions button {
  white-space: normal;
}

.topbar__utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.topbar__utility:empty {
  display: none;
}

.topbar__utility .btnbar {
  margin: 0;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.topbar__utility button {
  white-space: nowrap;
}

.themeToggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 16px 18px;
  border-color: var(--glass-border);
  background: linear-gradient(180deg, var(--glass-fill-strong), var(--glass-fill));
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.themeToggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.themeToggle:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--glass-fill-strong), var(--surface-soft));
}

.themeToggle--light::before {
  background: var(--trust);
  box-shadow: 0 0 0 6px var(--trust-soft);
}

.topbar__meta {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 18px 18px 54px;
}

.container[data-screen="setup"] {
  max-width: none;
  display: flex;
  justify-content: center;
  padding-inline: clamp(24px, 8vw, 120px);
  padding-top: clamp(28px, 7vh, 72px);
}

.container[data-screen="setup"] > .panel {
  width: min(920px, 100%);
  margin: 0 auto;
}

.grid {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(320px, 1.02fr) minmax(420px, 1.16fr) minmax(420px, 1.22fr);
  grid-template-areas: "left report ranks";
  gap: 16px;
  align-items: start;
}

.grid > :nth-child(1) {
  grid-area: left;
}

.grid > :nth-child(2) {
  grid-area: report;
}

.grid > :nth-child(3) {
  grid-area: ranks;
}

.columnStack {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(20, 33, 52, 0.58), rgba(16, 27, 43, 0.4));
  box-shadow:
    0 24px 48px rgba(2, 8, 23, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(26px) saturate(155%);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012) 28%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%);
  pointer-events: none;
}

.panel--actions::after,
.panel--tour::after,
.panel--report::after,
.panel--charts::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
}

.panel--actions::after {
  background: linear-gradient(90deg, rgba(212, 166, 58, 0.38), transparent 70%);
}

.panel--report::after {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.32), transparent 70%);
}

.panel--tour::after {
  background: linear-gradient(90deg, rgba(192, 132, 252, 0.34), transparent 70%);
}

.panel--charts::after {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.28), transparent 70%);
}

#app > .panel {
  max-width: none;
  margin: 0;
}

.panel__title {
  margin: 0;
  font-family: "Lexend", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.02rem, 0.95rem + 0.22vw, 1.18rem);
  font-weight: 600;
  line-height: 1.24;
  color: var(--text);
}

.panel > .panel__title:first-child {
  font-size: clamp(1.12rem, 1.02rem + 0.32vw, 1.32rem);
}

.panel__title--major {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  font-size: clamp(1.18rem, 1.05rem + 0.36vw, 1.42rem);
  letter-spacing: 0.01em;
  position: relative;
}

.panel__title--major::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.24));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.panel__title--major::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04), transparent 78%);
}

.panel--actions .panel__title--major::before {
  background: linear-gradient(135deg, rgba(212, 166, 58, 0.95), rgba(212, 166, 58, 0.3));
}

.panel--report .panel__title--major::before {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.95), rgba(96, 165, 250, 0.3));
}

.panel--tour .panel__title--major::before {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.95), rgba(192, 132, 252, 0.3));
}

.panel--charts .panel__title--major::before {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(34, 197, 94, 0.3));
}

.sectionBlock {
  min-width: 0;
}

.sectionBlock__title {
  margin-bottom: 10px;
}

.sectionBlock + .sectionBlock {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label:not(.chip),
.fieldLabel,
.fieldLegend,
legend {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  max-width: 100%;
}

.fieldHint,
.fieldError {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.fieldHint {
  color: var(--faint);
}

.fieldError {
  color: #ffc2ce;
}

.fieldError[hidden] {
  display: none;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(24, 40, 61, 0.8), rgba(22, 35, 54, 0.6));
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-control);
  outline: none;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

select,
option {
  color: var(--text);
}

option {
  background: #0b1220;
}

input[type="text"]::placeholder,
input[type="number"]::placeholder {
  color: var(--faint);
}

input[type="text"]:focus-visible,
input[type="number"]:focus-visible,
select:focus-visible {
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: var(--ring);
  background: rgba(9, 18, 33, 0.96);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
div[aria-invalid="true"] {
  border-color: rgba(251, 113, 133, 0.42);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.14);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(26, 42, 64, 0.62);
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--muted);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.chip--with-tooltip {
  position: relative;
  overflow: visible;
}

.chip--option {
  display: flex;
  margin-bottom: 8px;
}

.chip--option:last-child {
  margin-bottom: 0;
}

.chip input {
  accent-color: var(--accent);
}

.chip:hover {
  background: rgba(30, 58, 138, 0.18);
  border-color: rgba(96, 165, 250, 0.22);
}

.chip:focus-within {
  box-shadow: var(--ring);
  border-color: rgba(96, 165, 250, 0.54);
}

.chip__copy {
  display: flex;
  align-items: center;
}

.chip--disabled {
  opacity: 0.58;
  border-color: rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.42);
  cursor: not-allowed;
}

.chip--disabled:hover {
  background: rgba(15, 23, 42, 0.42);
  border-color: rgba(148, 163, 184, 0.1);
}

.chip__tooltip {
  position: absolute;
  left: 12px;
  top: calc(100% + 8px);
  z-index: 12;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 48px));
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  background: rgba(12, 19, 33, 0.96);
  box-shadow: 0 12px 28px rgba(3, 7, 18, 0.34);
  color: var(--text);
  line-height: 1.45;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.chip__tooltipReason {
  margin-top: 7px;
  color: #fca5a5;
}

.chip--with-tooltip:hover .chip__tooltip,
.chip--with-tooltip:focus-within .chip__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btnbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.btnbar--topbar {
  margin-top: 0;
}

button {
  appearance: none;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-control);
  background: rgba(23, 38, 58, 0.72);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    transform 100ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    filter 140ms ease,
    background-color 140ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(13, 25, 45, 0.88);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-color: rgba(96, 165, 250, 0.62);
}

@supports not selector(:focus-visible) {
  input[type="text"]:focus,
  input[type="number"]:focus,
  select:focus {
    border-color: rgba(96, 165, 250, 0.72);
    box-shadow: var(--ring);
    background: rgba(9, 18, 33, 0.96);
  }

  button:focus {
    outline: none;
    box-shadow: var(--ring);
    border-color: rgba(96, 165, 250, 0.62);
  }

  :root[data-theme="light"] input[type="text"]:focus,
  :root[data-theme="light"] input[type="number"]:focus,
  :root[data-theme="light"] select:focus {
    background: rgba(255, 255, 255, 0.98);
  }
}

button.primary {
  background: var(--accent-soft);
  border-color: rgba(212, 166, 58, 0.34);
  color: #ffe7ba;
}

button.primary:hover:not(:disabled),
button.primary[aria-pressed="true"] {
  border-color: rgba(212, 166, 58, 0.52);
  background: rgba(212, 166, 58, 0.22);
  color: #fff0cb;
}

button.good {
  background: var(--good-soft);
  border-color: rgba(34, 197, 94, 0.34);
  color: #c7f9dc;
}

button.good:hover:not(:disabled),
button.good[aria-pressed="true"] {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.2);
  color: #e0ffe9;
}

button.warn {
  background: var(--warn-soft);
  border-color: rgba(245, 158, 11, 0.34);
  color: #ffe7ba;
}

button.warn:hover:not(:disabled),
button.warn[aria-pressed="true"] {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.2);
  color: #fff0cb;
}

button.danger {
  background: var(--bad-soft);
  border-color: rgba(251, 113, 133, 0.3);
  color: #ffd7de;
}

button.danger:hover:not(:disabled),
button.danger[aria-pressed="true"] {
  border-color: rgba(251, 113, 133, 0.44);
  background: rgba(251, 113, 133, 0.18);
  color: #ffe6eb;
}

button.spotlight {
  background: var(--spotlight-soft);
  border-color: rgba(192, 132, 252, 0.34);
  color: #f2ddff;
}

button.spotlight:hover:not(:disabled),
button.spotlight[aria-pressed="true"] {
  border-color: rgba(216, 180, 254, 0.52);
  background: rgba(192, 132, 252, 0.2);
  color: #fbf5ff;
}

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

.productionModal {
  position: fixed;
  inset: 92px 18px 18px;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.28), rgba(7, 11, 20, 0.58));
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
}

.productionModal__dialog {
  width: min(1120px, 100%);
  max-height: calc(100vh - 150px);
  overflow: auto;
  border: 1px solid rgba(192, 132, 252, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(1200px 420px at 0% 0%, rgba(192, 132, 252, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(19, 29, 52, 0.96), rgba(10, 18, 34, 0.94));
  box-shadow: 0 34px 80px rgba(1, 4, 13, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.productionModal__hero {
  padding: 22px clamp(16px, 2vw, 24px) 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}

.productionModal__heroHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.productionModal__heroCopy {
  min-width: 0;
}

.productionModal__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #e0c7ff;
}

.productionModal__title {
  margin: 8px 0 0;
  font-family: "Lexend", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.6rem, 1.24rem + 0.8vw, 2.1rem);
  line-height: 1.08;
}

.productionModal__subtitle {
  margin-top: 10px;
  max-width: 720px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.productionModal__close {
  flex: 0 0 auto;
  min-width: 88px;
}

.productionModal__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.productionModal__stat {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.productionModal__statLabel {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b79fe0;
}

.productionModal__statValue {
  margin-top: 8px;
  font-size: clamp(1.14rem, 1.02rem + 0.34vw, 1.34rem);
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

.productionModal__statSub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.productionModal__content {
  display: grid;
  gap: 14px;
  padding: 18px clamp(16px, 2vw, 24px) 24px;
}

.productionModal__content .sectionBlock {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.productionModal__content .sectionBlock + .sectionBlock {
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.productionModal__form {
  min-width: 0;
}

.productionModal__assignment {
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(101, 43, 175, 0.16), rgba(20, 28, 50, 0.32));
}

.productionModal__assignmentLabel {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9c1fa;
}

.productionModal__assignmentValue {
  margin-top: 4px;
  color: #f0e6ff;
  font-weight: 600;
  line-height: 1.5;
}

.tourCard {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 166, 58, 0.2);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(720px 240px at 0% 0%, rgba(212, 166, 58, 0.12), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(23, 35, 55, 0.7), rgba(16, 27, 43, 0.44));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tourCard--live {
  border-color: rgba(212, 166, 58, 0.34);
}

.tourCard--report {
  border-color: rgba(96, 165, 250, 0.26);
  background:
    radial-gradient(720px 240px at 0% 0%, rgba(96, 165, 250, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(23, 35, 55, 0.7), rgba(16, 27, 43, 0.44));
}

.tourCard__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f6dba5;
}

.tourCard__title {
  margin-top: 6px;
  font-family: "Lexend", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.08rem, 0.98rem + 0.32vw, 1.26rem);
  font-weight: 700;
  color: #fff5df;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tourCard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tourPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #e7eef8;
  font-size: 12px;
  line-height: 1.35;
}

.tourCard__summary {
  margin-top: 10px;
  color: #d9e3f1;
  font-size: 13px;
  line-height: 1.65;
}

.tourStats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.tourStat {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 14, 27, 0.22);
}

.tourStat__label {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tourStat__value {
  margin-top: 6px;
  color: #fbfdff;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.eraDeck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.eraCard {
  min-width: 0;
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-radius: 16px;
  padding: 12px 13px;
  background:
    radial-gradient(620px 180px at 0% 0%, rgba(96, 165, 250, 0.1), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(22, 36, 56, 0.72), rgba(14, 25, 40, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.eraCard__eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #96b7e8;
}

.eraCard__title {
  margin-top: 6px;
  font-family: "Lexend", "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f6fbff;
  line-height: 1.26;
  overflow-wrap: anywhere;
}

.eraCard__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.eraPhasePill[data-era-phase="lead_single"],
.eraPhasePill[data-era-phase="release_week"] {
  border-color: rgba(212, 166, 58, 0.24);
  background: rgba(212, 166, 58, 0.14);
  color: #f5dfab;
}

.eraPhasePill[data-era-phase="pre_release"],
.eraPhasePill[data-era-phase="post_release_push"] {
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(96, 165, 250, 0.12);
  color: #d7e8ff;
}

.eraPhasePill[data-era-phase="touring"] {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.14);
  color: #d9f8e4;
}

.eraPhasePill[data-era-phase="deluxe"] {
  border-color: rgba(192, 132, 252, 0.24);
  background: rgba(192, 132, 252, 0.14);
  color: #f0dcff;
}

.eraCard__summary {
  margin-top: 10px;
  color: #d7e3f2;
  font-size: 13px;
  line-height: 1.62;
}

.eraCard__timeline {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.eraCard__entry {
  display: grid;
  gap: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.eraCard__entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.eraCard__entryWeek {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.eraCard__entryText {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.tabbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.tabbar__tab {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tabbar__tab.is-active {
  border-color: rgba(96, 165, 250, 0.26);
  background: rgba(96, 165, 250, 0.14);
  color: #eef5ff;
}

.careerOverview {
  display: grid;
  gap: 12px;
}

.careerBlock {
  display: grid;
  gap: 8px;
}

.careerBlock__title {
  margin-bottom: 0;
}

.careerEntry {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 11px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(19, 31, 48, 0.74), rgba(13, 23, 37, 0.5));
}

.careerEntry__title {
  font-weight: 700;
  color: #f7fbff;
  overflow-wrap: anywhere;
}

.careerEntry__meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.careerEntry__body {
  margin-top: 6px;
  color: #d8e2f0;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.careerEntry__rank {
  font-weight: 800;
  color: var(--text);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.kpi {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-control);
  padding: 14px 14px 12px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(21, 34, 53, 0.52), rgba(18, 31, 49, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
}

.kpi:nth-child(1)::before {
  background: var(--trust);
}

.kpi:nth-child(2)::before {
  background: var(--accent);
}

.kpi:nth-child(3)::before {
  background: var(--good);
}

.kpi__label {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kpi__value {
  margin-top: 6px;
  font-size: clamp(1.18rem, 1.04rem + 0.42vw, 1.46rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  overflow-wrap: anywhere;
}

.kpi__sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.insightGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.insightGrid--setup {
  margin-top: 10px;
}

.insightGrid--compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.insightCard {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(22, 36, 56, 0.7), rgba(14, 25, 40, 0.48));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.insightCard--metric {
  border-color: rgba(96, 165, 250, 0.18);
}

.insightCard--compact {
  padding: 11px 12px;
}

.insightCard__eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.insightCard__value {
  margin-top: 7px;
  font-family: "Lexend", "IBM Plex Sans", sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.16rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.insightCard__sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.tableWrap {
  overflow-x: auto;
  border-radius: var(--radius-control);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(21, 34, 53, 0.44), rgba(18, 31, 49, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius-control);
}

.table th,
.table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 13px;
  text-align: left;
}

.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--faint);
  font-weight: 700;
  background: rgba(17, 29, 46, 0.74);
  white-space: nowrap;
  letter-spacing: 0.06em;
}

.table td {
  white-space: normal;
  word-break: break-word;
}

.table td:nth-child(1),
.table td:nth-child(2) {
  white-space: nowrap;
}

.table:not(.table--fit) th:last-child,
.table:not(.table--fit) td:last-child {
  min-width: 220px;
}

.table.table--fit {
  table-layout: fixed;
}

.table.table--fit th,
.table.table--fit td {
  padding: 12px 10px;
  vertical-align: middle;
}

.table.table--fit th {
  white-space: normal;
  line-height: 1.35;
}

.table.table--fit th.col-totalDelta {
  white-space: nowrap;
}

.table.table--fit td.cell-rank,
.table.table--fit td.cell-total,
.table.table--fit td.cell-totalDelta {
  white-space: nowrap;
}

.table.table--fit td.cell-title {
  white-space: normal;
}

.table.table--fit .tableTitleCell {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 8px;
  min-width: 0;
}

.table.table--fit .tableTitleText {
  display: block;
  flex: 1 1 160px;
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.table.table--fit .tableTitlePill {
  margin-left: 0;
}

.table.table--fit .tableMetric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.table.table--fit .tableMetric__main {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.table.table--fit .tableMetric__delta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.table.table--songData .col-rank {
  width: 7%;
}

.table.table--songData .col-title {
  width: 26%;
}

.table.table--songData .col-peak {
  width: 8%;
}

.table.table--songData .col-sales {
  width: 11%;
}

.table.table--songData .col-streams {
  width: 15%;
}

.table.table--songData .col-airplay {
  width: 15%;
}

.table.table--songData .col-total {
  width: 9%;
}

.table.table--songData .col-totalDelta {
  width: 9%;
}

.table.table--albumData .col-rank {
  width: 8%;
}

.table.table--albumData .col-title {
  width: 30%;
}

.table.table--albumData .col-peak {
  width: 8%;
}

.table.table--albumData .col-sales {
  width: 16%;
}

.table.table--albumData .col-streams {
  width: 18%;
}

.table.table--albumData .col-total {
  width: 10%;
}

.table.table--albumData .col-totalDelta {
  width: 10%;
}

.table.table--fit .col-rank,
.table.table--fit .col-peak,
.table.table--fit .col-sales,
.table.table--fit .col-streams,
.table.table--fit .col-airplay,
.table.table--fit .col-total,
.table.table--fit .col-totalDelta {
  text-align: center;
}

.table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018);
}

.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.045);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(16px) saturate(150%);
  color: var(--muted);
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0.06em;
}

.pill.good {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.14);
  color: #c7f9dc;
}

.pill.bad {
  border-color: rgba(251, 113, 133, 0.32);
  background: rgba(251, 113, 133, 0.12);
  color: #ffd7de;
}

.grammySubmissionSection {
  margin-top: 12px;
}

.grammySubmissionSection__title {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.grammySubmissionGrid,
.grammySubmissionSummary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.grammySubmissionCard,
.grammySubmissionAuto,
.grammySubmissionSummary__item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-control);
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(21, 34, 53, 0.44), rgba(18, 31, 49, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.grammySubmissionCard__title,
.grammySubmissionAuto__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.grammySubmissionCard__meta,
.grammySubmissionAuto__meta,
.grammySubmissionSummary__item {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.grammySubmissionCard select {
  margin-top: 10px;
}

.grammySubmissionAuto {
  border-color: rgba(192, 132, 252, 0.24);
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.16), rgba(9, 18, 33, 0.72));
}

.grammySubmissionAuto__title {
  color: #f0d8ff;
}

.grammySubmissionSummary__item {
  color: var(--text);
}

.grammySubmissionSummary__status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 14px 18px;
  color: var(--faint);
  font-size: 12px;
  background: rgba(2, 8, 23, 0.72);
}

.note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.note--boxed {
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.03);
}

:root[data-theme="light"] .note--boxed {
  background: rgba(15, 23, 42, 0.03);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(1220px 760px at 10% -10%, rgba(37, 99, 235, 0.14), transparent 58%),
    radial-gradient(920px 560px at 88% -6%, rgba(255, 255, 255, 0.88), transparent 54%),
    radial-gradient(680px 460px at 78% 16%, rgba(185, 130, 20, 0.12), transparent 58%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 44%, #e7eef8 100%);
}

:root[data-theme="light"] body::before {
  opacity: 0.4;
  filter: blur(90px);
  background: rgba(37, 99, 235, 0.16);
}

:root[data-theme="light"] body::after {
  opacity: 0.34;
  filter: blur(96px);
  background: rgba(185, 130, 20, 0.12);
}

:root[data-theme="light"] .skip-link {
  border-color: rgba(185, 130, 20, 0.34);
  background: rgba(185, 130, 20, 0.14);
  color: var(--text);
}

:root[data-theme="light"] .statusBanner {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.84)),
    linear-gradient(180deg, rgba(225, 235, 248, 0.84), rgba(244, 248, 253, 0.9));
  color: var(--text);
  box-shadow:
    0 20px 42px rgba(148, 163, 184, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .statusBanner::before {
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(255, 255, 255, 0.82), transparent 42%),
    linear-gradient(120deg, rgba(37, 99, 235, 0.08), transparent 36%, rgba(185, 130, 20, 0.05) 66%, transparent 82%);
}

:root[data-theme="light"] .statusBanner--info {
  border-color: rgba(37, 99, 235, 0.24);
  background:
    linear-gradient(180deg, rgba(219, 234, 254, 0.74), rgba(255, 255, 255, 0.9)),
    linear-gradient(180deg, rgba(240, 246, 255, 0.94), rgba(247, 250, 255, 0.98));
}

:root[data-theme="light"] .statusBanner--success {
  border-color: rgba(21, 128, 61, 0.22);
  background:
    linear-gradient(180deg, rgba(220, 252, 231, 0.7), rgba(255, 255, 255, 0.9)),
    linear-gradient(180deg, rgba(242, 252, 246, 0.94), rgba(247, 250, 255, 0.98));
}

:root[data-theme="light"] .statusBanner--warn {
  border-color: rgba(217, 119, 6, 0.22);
  background:
    linear-gradient(180deg, rgba(254, 243, 199, 0.76), rgba(255, 255, 255, 0.9)),
    linear-gradient(180deg, rgba(255, 250, 238, 0.94), rgba(247, 250, 255, 0.98));
}

:root[data-theme="light"] .statusBanner--error {
  border-color: rgba(225, 29, 72, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 228, 230, 0.82), rgba(255, 255, 255, 0.9)),
    linear-gradient(180deg, rgba(255, 245, 247, 0.94), rgba(247, 250, 255, 0.98));
  color: #9f1239;
}

:root[data-theme="light"] .topbar {
  border-bottom-color: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 253, 0.78));
  box-shadow: 0 16px 32px rgba(148, 163, 184, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

:root[data-theme="light"] .topbar::after {
  background: linear-gradient(90deg, rgba(185, 130, 20, 0.28), rgba(37, 99, 235, 0.22), transparent 74%);
}

:root[data-theme="light"] .topbar__title,
:root[data-theme="light"] .panel__title,
:root[data-theme="light"] .kpi__value,
:root[data-theme="light"] .insightCard__value,
:root[data-theme="light"] .productionModal__title,
:root[data-theme="light"] .productionModal__statValue,
:root[data-theme="light"] .productionModal__assignmentValue,
:root[data-theme="light"] .tourCard__title,
:root[data-theme="light"] .tourStat__value {
  color: var(--text);
}

:root[data-theme="light"] .panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.82)),
    linear-gradient(180deg, rgba(220, 231, 245, 0.5), rgba(255, 255, 255, 0.7));
  box-shadow:
    0 24px 48px rgba(148, 163, 184, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(203, 213, 225, 0.28);
}

:root[data-theme="light"] .container[data-screen="setup"] > .panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(248, 251, 255, 0.95)),
    linear-gradient(180deg, rgba(226, 235, 246, 0.28), rgba(255, 255, 255, 0.78));
}

:root[data-theme="light"] .panel::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(223, 235, 249, 0.44) 32%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 28%);
}

:root[data-theme="light"] .panel--actions,
:root[data-theme="light"] .panel--tour,
:root[data-theme="light"] .panel--report,
:root[data-theme="light"] .panel--charts {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.992), rgba(248, 251, 255, 0.968)),
    linear-gradient(180deg, rgba(230, 237, 246, 0.28), rgba(255, 255, 255, 0.86));
  box-shadow:
    0 24px 44px rgba(148, 163, 184, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(203, 213, 225, 0.2);
}

:root[data-theme="light"] .panel--actions::before,
:root[data-theme="light"] .panel--tour::before,
:root[data-theme="light"] .panel--report::before,
:root[data-theme="light"] .panel--charts::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(223, 235, 249, 0.12) 18%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 16%);
}

:root[data-theme="light"] .container[data-screen="setup"] > .panel::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(223, 235, 249, 0.18) 20%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 18%);
}

:root[data-theme="light"] .panel__title--major::before {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.56);
}

:root[data-theme="light"] .panel__title--major::after {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.26), rgba(148, 163, 184, 0.08), transparent 78%);
}

:root[data-theme="light"] .fieldError,
:root[data-theme="light"] .chip__tooltipReason {
  color: #b42318;
}

:root[data-theme="light"] input[type="text"],
:root[data-theme="light"] input[type="number"],
:root[data-theme="light"] select {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 253, 0.88));
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

:root[data-theme="light"] option {
  background: #ffffff;
}

:root[data-theme="light"] input[type="text"]:focus-visible,
:root[data-theme="light"] input[type="number"]:focus-visible,
:root[data-theme="light"] select:focus-visible {
  background: rgba(255, 255, 255, 0.98);
}

:root[data-theme="light"] .chip {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

:root[data-theme="light"] .chip:hover {
  background: rgba(225, 237, 252, 0.96);
  border-color: rgba(37, 99, 235, 0.18);
}

:root[data-theme="light"] .chip--disabled,
:root[data-theme="light"] .chip--disabled:hover {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(226, 232, 240, 0.64);
}

:root[data-theme="light"] .chip__tooltip {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.24);
  color: var(--text);
}

:root[data-theme="light"] button {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] button:hover:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(248, 251, 255, 0.98);
}

:root[data-theme="light"] .themeToggle {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(234, 241, 250, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 12px 28px rgba(148, 163, 184, 0.12);
}

:root[data-theme="light"] .themeToggle:hover:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(227, 237, 250, 0.94));
}

:root[data-theme="light"] button.primary {
  border-color: rgba(185, 130, 20, 0.24);
  background: rgba(185, 130, 20, 0.12);
  color: #8a5d00;
}

:root[data-theme="light"] button.primary:hover:not(:disabled),
:root[data-theme="light"] button.primary[aria-pressed="true"] {
  border-color: rgba(185, 130, 20, 0.34);
  background: rgba(185, 130, 20, 0.18);
  color: #744d00;
}

:root[data-theme="light"] button.good {
  border-color: rgba(21, 128, 61, 0.24);
  background: rgba(21, 128, 61, 0.12);
  color: #166534;
}

:root[data-theme="light"] button.good:hover:not(:disabled),
:root[data-theme="light"] button.good[aria-pressed="true"] {
  border-color: rgba(21, 128, 61, 0.34);
  background: rgba(21, 128, 61, 0.18);
  color: #14532d;
}

:root[data-theme="light"] button.warn {
  border-color: rgba(217, 119, 6, 0.24);
  background: rgba(217, 119, 6, 0.12);
  color: #9a5503;
}

:root[data-theme="light"] button.warn:hover:not(:disabled),
:root[data-theme="light"] button.warn[aria-pressed="true"] {
  border-color: rgba(217, 119, 6, 0.34);
  background: rgba(217, 119, 6, 0.18);
  color: #7c4401;
}

:root[data-theme="light"] button.danger {
  border-color: rgba(225, 29, 72, 0.2);
  background: rgba(225, 29, 72, 0.1);
  color: #9f1239;
}

:root[data-theme="light"] button.danger:hover:not(:disabled),
:root[data-theme="light"] button.danger[aria-pressed="true"] {
  border-color: rgba(225, 29, 72, 0.3);
  background: rgba(225, 29, 72, 0.16);
  color: #881337;
}

:root[data-theme="light"] button.spotlight {
  border-color: rgba(124, 58, 237, 0.22);
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

:root[data-theme="light"] button.spotlight:hover:not(:disabled),
:root[data-theme="light"] button.spotlight[aria-pressed="true"] {
  border-color: rgba(124, 58, 237, 0.34);
  background: rgba(124, 58, 237, 0.18);
  color: #5b21b6;
}

:root[data-theme="light"] .productionModal {
  background: linear-gradient(180deg, rgba(232, 239, 248, 0.62), rgba(232, 239, 248, 0.82));
}

:root[data-theme="light"] .productionModal__dialog {
  border-color: rgba(124, 58, 237, 0.16);
  background:
    radial-gradient(1200px 420px at 0% 0%, rgba(124, 58, 237, 0.12), transparent 55%),
    radial-gradient(900px 320px at 100% 0%, rgba(37, 99, 235, 0.09), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 252, 0.96));
  box-shadow: 0 34px 80px rgba(148, 163, 184, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .productionModal__hero {
  border-bottom-color: rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0));
}

:root[data-theme="light"] .productionModal__eyebrow,
:root[data-theme="light"] .productionModal__statLabel,
:root[data-theme="light"] .productionModal__assignmentLabel,
:root[data-theme="light"] .grammySubmissionAuto__title {
  color: #6d28d9;
}

:root[data-theme="light"] .productionModal__subtitle,
:root[data-theme="light"] .productionModal__statSub,
:root[data-theme="light"] .tourCard__summary {
  color: var(--muted);
}

:root[data-theme="light"] .productionModal__stat,
:root[data-theme="light"] .productionModal__content .sectionBlock {
  border-color: rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 253, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

:root[data-theme="light"] .productionModal__content .sectionBlock + .sectionBlock {
  border-top-color: rgba(148, 163, 184, 0.14);
}

:root[data-theme="light"] .productionModal__assignment {
  border-color: rgba(124, 58, 237, 0.18);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), rgba(255, 255, 255, 0.9));
}

:root[data-theme="light"] .tourCard {
  border-color: rgba(185, 130, 20, 0.2);
  background:
    radial-gradient(720px 240px at 0% 0%, rgba(185, 130, 20, 0.06), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 251, 255, 0.972));
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

:root[data-theme="light"] .tourCard--report {
  border-color: rgba(37, 99, 235, 0.18);
  background:
    radial-gradient(720px 240px at 0% 0%, rgba(37, 99, 235, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 251, 255, 0.972));
}

:root[data-theme="light"] .tourCard__eyebrow {
  color: #845100;
}

:root[data-theme="light"] .eraCard {
  border-color: rgba(37, 99, 235, 0.16);
  background:
    radial-gradient(620px 180px at 0% 0%, rgba(37, 99, 235, 0.06), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(248, 251, 255, 0.972));
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

:root[data-theme="light"] .eraCard__eyebrow {
  color: #4a6a92;
}

:root[data-theme="light"] .eraCard__title,
:root[data-theme="light"] .eraCard__summary {
  color: var(--text);
}

:root[data-theme="light"] .tabbar__tab {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
}

:root[data-theme="light"] .tabbar__tab.is-active {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.1);
  color: #163a6c;
}

:root[data-theme="light"] .careerEntry {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .careerEntry__title,
:root[data-theme="light"] .careerEntry__body {
  color: var(--text);
}

:root[data-theme="light"] .tourPill {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

:root[data-theme="light"] .tourStat {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

:root[data-theme="light"] .kpi,
:root[data-theme="light"] .insightCard,
:root[data-theme="light"] .tableWrap,
:root[data-theme="light"] .grammySubmissionCard,
:root[data-theme="light"] .grammySubmissionAuto,
:root[data-theme="light"] .grammySubmissionSummary__item {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.9)),
    linear-gradient(180deg, rgba(220, 231, 245, 0.4), rgba(255, 255, 255, 0.65));
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .panel--actions .kpi,
:root[data-theme="light"] .panel--actions .insightCard {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(249, 251, 255, 0.975)),
    linear-gradient(180deg, rgba(233, 240, 249, 0.26), rgba(255, 255, 255, 0.9));
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

:root[data-theme="light"] .panel--tour .insightCard,
:root[data-theme="light"] .panel--report .insightCard,
:root[data-theme="light"] .panel--report .tableWrap,
:root[data-theme="light"] .panel--charts .tableWrap,
:root[data-theme="light"] .panel--report .grammySubmissionCard,
:root[data-theme="light"] .panel--report .grammySubmissionAuto,
:root[data-theme="light"] .panel--report .grammySubmissionSummary__item {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.996), rgba(249, 251, 255, 0.976)),
    linear-gradient(180deg, rgba(233, 240, 249, 0.18), rgba(255, 255, 255, 0.9));
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

:root[data-theme="light"] .insightCard--metric {
  border-color: rgba(37, 99, 235, 0.18);
}

:root[data-theme="light"] .insightCard__eyebrow {
  color: var(--faint);
}

:root[data-theme="light"] .panel--actions .insightCard__eyebrow,
:root[data-theme="light"] .panel--actions .kpi__label {
  color: var(--faint);
}

:root[data-theme="light"] .panel--actions .insightCard__sub,
:root[data-theme="light"] .panel--actions .kpi__sub {
  color: var(--muted);
}

:root[data-theme="light"] .panel--tour .insightCard__eyebrow,
:root[data-theme="light"] .panel--report .insightCard__eyebrow,
:root[data-theme="light"] .panel--report .grammySubmissionSection__title,
:root[data-theme="light"] .panel--report .grammySubmissionCard__meta,
:root[data-theme="light"] .panel--report .grammySubmissionAuto__meta {
  color: var(--faint);
}

:root[data-theme="light"] .panel--tour .insightCard__sub,
:root[data-theme="light"] .panel--report .insightCard__sub,
:root[data-theme="light"] .panel--report .grammySubmissionSummary__item {
  color: var(--muted);
}

:root[data-theme="light"] .table th {
  background: rgba(243, 247, 252, 0.94);
  color: var(--faint);
}

:root[data-theme="light"] .table tbody tr:nth-child(even) td {
  background: rgba(231, 238, 247, 0.55);
}

:root[data-theme="light"] .table tbody tr:hover td {
  background: rgba(214, 226, 242, 0.72);
}

:root[data-theme="light"] .pill {
  border-color: rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 253, 0.72));
  color: var(--muted);
}

:root[data-theme="light"] .pill.good {
  border-color: rgba(21, 128, 61, 0.24);
  background: rgba(21, 128, 61, 0.12);
  color: #166534;
}

:root[data-theme="light"] .pill.bad {
  border-color: rgba(225, 29, 72, 0.18);
  background: rgba(225, 29, 72, 0.1);
  color: #9f1239;
}

:root[data-theme="light"] .grammySubmissionAuto {
  border-color: rgba(124, 58, 237, 0.18);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), rgba(255, 255, 255, 0.94));
}

:root[data-theme="light"] .footer {
  border-top-color: rgba(148, 163, 184, 0.16);
  background: rgba(244, 248, 253, 0.92);
}

@media (max-width: 1240px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "left right"
      "center center";
    min-height: auto;
    padding: 12px 18px 14px;
  }

  .topbar__section--center {
    justify-self: stretch;
  }

  .topbar__actions .btnbar {
    flex-wrap: wrap;
  }

  .topbar__section--right {
    gap: 10px;
  }

  .topbar__utility .btnbar {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .productionModal {
    inset: 132px 18px 18px;
  }

  .productionModal__dialog {
    max-height: calc(100vh - 190px);
  }
}

@media (max-width: 980px) {
  .table.table--fit th,
  .table.table--fit td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .table.table--fit .tableMetric__delta {
    font-size: 11px;
  }
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "report"
      "ranks";
  }

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

@media (max-width: 720px) {
  .statusRegion {
    bottom: 108px;
    width: min(560px, calc(100vw - 20px));
  }


  .topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "center"
      "right";
    gap: 10px;
    min-height: auto;
    padding: 12px 14px 14px;
  }

  .topbar__section--left,
  .topbar__section--center,
  .topbar__section--right {
    justify-self: stretch;
  }

  .topbar__section--right {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .topbar__actions .btnbar {
    flex-wrap: wrap;
    width: 100%;
  }

  .topbar__utility {
    justify-content: flex-start;
  }

  .topbar__utility .btnbar {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .topbar__meta {
    text-align: left;
  }

  .container {
    padding: 14px 14px 44px;
  }

  .productionModal {
    inset: 188px 12px 12px;
    padding-top: 0;
  }

  .productionModal__dialog {
    max-height: calc(100vh - 214px);
    border-radius: 22px;
  }

  .productionModal__heroHead {
    flex-direction: column;
  }

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

  .fieldHint,
  .fieldError,
  .note {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
