@import url("https://fonts.googleapis.com/css2?family=Aldrich&family=JetBrains+Mono:wght@500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --bg-2: #181512;
  --surface: rgba(224, 220, 209, 0.085);
  --surface-strong: rgba(231, 227, 215, 0.14);
  --text: #f3efe3;
  --muted: #a9a39a;
  --line: rgba(235, 226, 209, 0.22);
  --clear: #72c8a3;
  --warn: #f0b544;
  --bad: #d84134;
  --accent: #e56832;
  --accent-2: #f5c15a;
  --ice: #b7d3df;
  --panel: #11100e;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(115deg, rgba(228, 83, 42, 0.18), transparent 28%),
    radial-gradient(circle at 74% -10%, rgba(245, 193, 90, 0.18), transparent 32%),
    linear-gradient(135deg, #090909, var(--bg-2) 48%, #090909);
  color: var(--text);
  font-family: "JetBrains Mono", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(243, 239, 227, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(243, 239, 227, 0.025) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 58%, rgba(229, 104, 50, 0.08) 58% 59%, transparent 59%);
  background-size: 56px 56px, 56px 56px, 280px 280px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 78%);
  content: "";
}

button,
input,
select {
  font: inherit;
}

button,
.file-button,
a.nav-link {
  min-height: 40px;
  border: 1px solid rgba(245, 193, 90, 0.45);
  border-radius: 2px;
  background:
    linear-gradient(135deg, transparent 0 10px, rgba(245, 193, 90, 0.96) 10px),
    linear-gradient(180deg, rgba(245, 193, 90, 0.95), rgba(202, 95, 43, 0.95));
  color: #14110d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Aldrich, "JetBrains Mono", sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 0 16px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(229, 104, 50, 0.18);
  transition: filter 150ms ease, transform 150ms ease, border-color 150ms ease;
}

button:hover,
.file-button:hover,
a.nav-link:hover {
  border-color: rgba(255, 225, 149, 0.78);
  filter: brightness(1.08);
}

button:active,
.file-button:active,
a.nav-link:active {
  transform: translateY(1px);
}

button:disabled {
  border-color: var(--line);
  background: rgba(48, 46, 42, 0.8);
  color: var(--muted);
  cursor: not-allowed;
  filter: none;
  transform: none;
}

button.secondary,
.file-button.secondary,
a.nav-link.secondary {
  background:
    linear-gradient(135deg, transparent 0 10px, rgba(19, 18, 16, 0.88) 10px),
    rgba(19, 18, 16, 0.88);
  color: var(--accent-2);
  box-shadow: none;
}

input {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(10, 10, 9, 0.86);
  color: var(--text);
  outline: none;
  padding: 0 10px;
}

input:focus,
select:focus {
  border-color: rgba(245, 193, 90, 0.75);
  box-shadow: 0 0 0 3px rgba(229, 104, 50, 0.12);
}

select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(10, 10, 9, 0.86);
  color: var(--text);
  outline: none;
  padding: 0 10px;
}

.app-shell {
  position: relative;
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.topbar,
.drop-panel,
.panel,
.stage-card {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(241, 245, 239, 0.1), transparent 20%), var(--surface);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(227, 222, 209, 0.13), rgba(18, 17, 15, 0.92) 38%),
    rgba(12, 11, 10, 0.92);
}

.brand,
.top-actions,
.panel-heading,
.metric-list div,
.check-row,
.export-row,
.threshold-list div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  min-width: 0;
}

.mission-phase {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid rgba(245, 193, 90, 0.42);
  border-radius: 2px;
  background:
    linear-gradient(135deg, transparent 0 10px, rgba(19, 18, 16, 0.88) 10px),
    rgba(19, 18, 16, 0.88);
  padding: 0 8px 0 12px;
}

.mission-phase span {
  color: var(--accent-2);
  font-family: Aldrich, "JetBrains Mono", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

.mission-phase select {
  width: auto;
  min-width: 220px;
  border-color: rgba(245, 193, 90, 0.28);
  background: rgba(8, 8, 7, 0.64);
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(245, 193, 90, 0.6);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(245, 193, 90, 0.18), transparent 45%),
    rgba(11, 10, 9, 0.92);
  box-shadow: inset 0 0 26px rgba(229, 104, 50, 0.18), 0 12px 26px rgba(0, 0, 0, 0.34);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-2);
  border-radius: 50%;
  content: "";
}

.brand-mark::before {
  left: 8px;
  top: 8px;
}

.brand-mark::after {
  right: 8px;
  top: 8px;
}

.brand-mark span::before {
  left: 8px;
  bottom: 8px;
}

.brand-mark span::after {
  right: 8px;
  bottom: 8px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-family: Aldrich, "JetBrains Mono", sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand p,
.drop-copy p,
.eyebrow,
small,
td,
.metric-list span,
.export-row span {
  color: var(--muted);
}

.top-actions {
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  gap: 18px;
  align-items: start;
}

.workspace,
.side-rail {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.drop-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 170px;
  padding: 22px;
}

.drop-panel.dragging {
  border-color: rgba(99, 198, 162, 0.9);
  background: rgba(99, 198, 162, 0.11);
}

.drop-copy h2 {
  font-family: Aldrich, "JetBrains Mono", sans-serif;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
}

.drop-copy p {
  max-width: 620px;
  margin-top: 10px;
  font-size: 16px;
}

.upload-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
  min-width: 360px;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mission-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stage-card {
  position: relative;
  min-height: 104px;
  padding: 14px;
}

.stage-card::before,
.panel::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 3px;
  background: var(--accent);
  content: "";
}

.stage-index {
  color: var(--accent-2);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 11px;
}

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

.stage-card strong {
  font-family: Aldrich, "JetBrains Mono", sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.stage-card.ok {
  border-color: rgba(114, 200, 163, 0.72);
}

.stage-card.warn {
  border-color: rgba(240, 181, 68, 0.78);
}

.stage-card.bad {
  border-color: rgba(216, 65, 52, 0.76);
}

.panel {
  position: relative;
  min-width: 0;
  padding: 17px;
}

.panel-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading.compact {
  margin-bottom: 12px;
}

.panel h2 {
  font-family: Aldrich, "JetBrains Mono", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
}

.eyebrow,
.source-tag {
  display: block;
  font-family: Aldrich, "JetBrains Mono", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.source-tag {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(8, 8, 7, 0.84);
  color: var(--muted);
  padding: 6px 9px;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(8, 8, 7, 0.84);
  color: var(--muted);
  font-family: Aldrich, "JetBrains Mono", sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill::before {
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 12px rgba(240, 181, 68, 0.75);
  content: "";
}

.status-pill.connected::before {
  background: var(--clear);
  box-shadow: 0 0 12px rgba(114, 200, 163, 0.75);
}

#coverageCanvas {
  display: block;
  width: 100%;
  height: 520px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0e0d0b;
}

.table-wrap {
  overflow: auto;
  max-height: 380px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

th,
td {
  border-bottom: 1px solid rgba(224, 232, 228, 0.14);
  padding: 10px 12px;
  text-align: left;
}

th {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
}

td strong {
  color: var(--text);
}

.field-control {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.field-control span {
  color: var(--muted);
  font-family: Aldrich, "JetBrains Mono", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.full-width {
  width: 100%;
  margin-top: 12px;
}

.metric-list,
.check-list,
.export-list {
  display: grid;
  gap: 8px;
}

.metric-list div,
.check-row,
.export-row {
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(8, 8, 7, 0.42);
  padding: 0 12px;
}

.metric-list strong,
.check-row strong,
.export-row strong {
  overflow: hidden;
  color: var(--text);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-row {
  justify-content: flex-start;
  min-height: 54px;
}

.check-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
}

.check-row.ok .check-dot {
  background: var(--clear);
  box-shadow: 0 0 14px rgba(114, 200, 163, 0.42);
}

.check-row.warn .check-dot {
  background: var(--warn);
  box-shadow: 0 0 14px rgba(240, 181, 68, 0.38);
}

.check-row.bad .check-dot {
  background: var(--bad);
  box-shadow: 0 0 14px rgba(216, 65, 52, 0.38);
}

.check-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.check-copy span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 20px, 1500px);
    padding-top: 12px;
  }

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

  .top-actions,
  .upload-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .top-actions > *,
  .upload-actions > * {
    flex: 1 1 auto;
    width: 100%;
  }

  .mission-board,
  .side-rail {
    grid-template-columns: 1fr;
  }

  #coverageCanvas {
    height: 360px;
  }
}

/* Clean Braytech / Deep Stone inspired visual pass. */
:root {
  color-scheme: light;
  --bg: #edf1f4;
  --bg-2: #dfe6eb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --text: #18212a;
  --muted: #6f7b84;
  --line: rgba(26, 43, 56, 0.16);
  --clear: #159b7d;
  --warn: #d49c23;
  --bad: #b8323c;
  --accent: #2bb6d7;
  --accent-2: #f0b43f;
  --ice: #6bc8de;
  --panel: #f4f8fa;
  --shadow: 0 18px 42px rgba(23, 38, 50, 0.12);
}

body {
  background:
    linear-gradient(120deg, rgba(43, 182, 215, 0.16), transparent 30%),
    linear-gradient(300deg, rgba(240, 180, 63, 0.18), transparent 26%),
    linear-gradient(180deg, #f7f9fb 0%, #e8eef2 54%, #dde5ea 100%);
  color: var(--text);
}

body::before {
  background:
    linear-gradient(90deg, rgba(24, 33, 42, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(24, 33, 42, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 62%, rgba(43, 182, 215, 0.12) 62% 62.4%, transparent 62.4%),
    linear-gradient(45deg, transparent 0 78%, rgba(240, 180, 63, 0.18) 78% 78.4%, transparent 78.4%);
  background-size: 64px 64px, 64px 64px, 360px 360px, 280px 280px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
}

button,
.file-button,
a.nav-link {
  border-color: rgba(43, 182, 215, 0.52);
  background:
    linear-gradient(135deg, transparent 0 10px, #18212a 10px),
    linear-gradient(180deg, #223140, #111922);
  color: #f7fbfd;
  box-shadow: 0 12px 26px rgba(30, 68, 86, 0.14);
}

button.secondary,
.file-button.secondary,
a.nav-link.secondary,
.mission-phase {
  border-color: rgba(26, 43, 56, 0.18);
  background:
    linear-gradient(135deg, transparent 0 10px, rgba(255, 255, 255, 0.94) 10px),
    rgba(255, 255, 255, 0.9);
  color: #1b4857;
  box-shadow: none;
}

input,
select,
.mission-phase select {
  border-color: rgba(26, 43, 56, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

input:focus,
select:focus {
  border-color: rgba(43, 182, 215, 0.85);
  box-shadow: 0 0 0 3px rgba(43, 182, 215, 0.16);
}

.topbar,
.drop-panel,
.panel,
.stage-card {
  border-color: rgba(26, 43, 56, 0.15);
  background:
    linear-gradient(135deg, rgba(43, 182, 215, 0.08), transparent 18%),
    linear-gradient(315deg, rgba(240, 180, 63, 0.06), transparent 26%),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.topbar {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96) 0 54%, rgba(234, 241, 245, 0.94) 54%),
    var(--surface-strong);
}

.brand-mark {
  border-color: rgba(43, 182, 215, 0.55);
  background:
    linear-gradient(135deg, rgba(43, 182, 215, 0.16), transparent 46%),
    linear-gradient(315deg, rgba(240, 180, 63, 0.18), transparent 40%),
    #f7fbfd;
  box-shadow: inset 0 0 22px rgba(43, 182, 215, 0.12), 0 14px 30px rgba(28, 48, 60, 0.12);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
  border-color: var(--accent);
}

h1,
h2,
.panel h2,
.drop-copy h2 {
  color: #16222c;
}

.brand p,
.eyebrow,
.metric-list span,
.check-copy span,
.export-row span,
td,
th {
  color: var(--muted);
}

.mission-phase span,
.drop-copy p,
.source-tag {
  color: #1b6376;
}

.status-pill,
.source-tag,
.metric-list div,
.check-row,
.export-row {
  border-color: rgba(26, 43, 56, 0.13);
  background: rgba(242, 247, 250, 0.82);
}

.drop-panel {
  background:
    linear-gradient(135deg, rgba(43, 182, 215, 0.13), transparent 24%),
    linear-gradient(315deg, rgba(240, 180, 63, 0.11), transparent 30%),
    rgba(255, 255, 255, 0.9);
}

.stage-card::before,
.panel::before,
.drop-panel::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

#coverageCanvas {
  border-color: rgba(26, 43, 56, 0.15);
  background:
    linear-gradient(90deg, rgba(26, 43, 56, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(26, 43, 56, 0.05) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 50%, rgba(43, 182, 215, 0.2), transparent 46%),
    linear-gradient(135deg, #f9fcfd, #dce7ec);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

table {
  background: rgba(255, 255, 255, 0.78);
}

th {
  background: rgba(232, 241, 246, 0.92);
}

td,
th {
  border-color: rgba(26, 43, 56, 0.12);
}

/* Sleek product-style refinement inspired by Apple's airy surfaces. */
:root {
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #101820;
  --muted: #697782;
  --line: rgba(16, 24, 32, 0.1);
  --accent: #0a84ff;
  --accent-2: #ffb340;
  --ice: #64d2ff;
  --panel: rgba(246, 248, 250, 0.72);
  --shadow: 0 18px 48px rgba(16, 24, 32, 0.1);
}

body {
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 255, 255, 0.95), transparent 32%),
    linear-gradient(180deg, #fbfcfd 0%, #f3f7fa 42%, #e9f0f5 100%);
}

body::before {
  opacity: 0.45;
  background:
    linear-gradient(90deg, rgba(10, 132, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(16, 24, 32, 0.025) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
}

button,
.file-button,
a.nav-link {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f2933, #111820);
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 24, 32, 0.16);
  padding: 0 18px;
}

button.secondary,
.file-button.secondary,
a.nav-link.secondary,
.mission-phase {
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #126181;
  box-shadow: 0 8px 20px rgba(16, 24, 32, 0.06);
  backdrop-filter: blur(18px);
}

input,
select,
.mission-phase select {
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(16, 24, 32, 0.09);
}

.topbar,
.drop-panel,
.panel,
.stage-card {
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(16, 24, 32, 0.08);
  backdrop-filter: blur(18px);
}

.topbar {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  padding: 16px 18px;
}

.stage-card::before,
.panel::before,
.drop-panel::before {
  display: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), transparent 24%),
    linear-gradient(145deg, rgba(10, 132, 255, 0.18), rgba(255, 179, 64, 0.16)),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 32, 0.08), 0 14px 28px rgba(16, 24, 32, 0.1);
}

.brand h1,
h1,
h2,
.panel h2,
.drop-copy h2 {
  color: #101820;
  letter-spacing: 0;
  text-transform: none;
}

.drop-panel {
  min-height: 190px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 18%, rgba(10, 132, 255, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.76);
}

.metric-list div,
.check-row,
.export-row {
  min-height: 44px;
  border: 1px solid rgba(16, 24, 32, 0.07);
  border-radius: 14px;
  background: rgba(246, 248, 250, 0.62);
}

.status-pill,
.source-tag {
  min-height: 30px;
  border: 1px solid rgba(16, 24, 32, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

#coverageCanvas {
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 42%, rgba(10, 132, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(234, 242, 247, 0.86));
}

table {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

th {
  background: rgba(246, 248, 250, 0.8);
}

.phase-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 8px 20px rgba(16, 24, 32, 0.06);
  padding: 4px;
  backdrop-filter: blur(18px);
}

.phase-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  color: #126181;
  font-family: Aldrich, "JetBrains Mono", sans-serif;
  font-size: 12px;
  padding: 0 14px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.phase-tab.active {
  background: linear-gradient(180deg, #1f2933, #111820);
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 24, 32, 0.16);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 8px 20px rgba(16, 24, 32, 0.06);
  padding: 4px 6px 4px 14px;
  backdrop-filter: blur(18px);
}

.theme-switch span {
  color: #697782;
  font-family: Aldrich, "JetBrains Mono", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.theme-switch select {
  width: auto;
  min-width: 150px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #101820;
  padding: 0 12px;
}

@media (max-width: 760px) {
  .phase-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1 1 100%;
    width: 100%;
  }

  .phase-tab {
    padding: 0 8px;
  }

  .theme-switch {
    flex: 1 1 100%;
    justify-content: space-between;
    width: 100%;
  }

  .theme-switch select {
    min-width: 0;
    width: 100%;
  }
}
