:root {
  --bg: #050812;
  --bg-raised: #090e1d;
  --surface: rgba(12, 18, 35, 0.82);
  --surface-strong: #0d1426;
  --surface-hover: #111b31;
  --line: rgba(143, 170, 224, 0.14);
  --line-bright: rgba(150, 180, 238, 0.28);
  --text: #f4f7ff;
  --muted: #8691aa;
  --blue: #4d8dff;
  --violet: #8a67ff;
  --pink: #ec54b6;
  --green: #55e0b5;
  --yellow: #f5c969;
  --danger: #ff7d8c;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.33);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 65% 0%, rgba(83, 64, 184, 0.13), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: -1;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient-one {
  width: 380px;
  height: 380px;
  top: 14%;
  left: 28%;
  background: var(--violet);
}

.ambient-two {
  width: 340px;
  height: 340px;
  right: 3%;
  top: 48%;
  background: var(--blue);
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 236px;
  padding: 24px 18px 18px;
  border-right: 1px solid var(--line);
  background: rgba(5, 8, 18, 0.83);
  backdrop-filter: blur(24px);
}

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

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transform: rotate(30deg);
}

.brand-mark i {
  position: absolute;
  width: 8px;
  height: 27px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--pink), var(--violet));
  box-shadow: 0 0 18px rgba(236, 84, 182, 0.28);
}

.brand-mark i:first-child {
  transform: rotate(60deg);
}

.brand-mark i:last-child {
  transform: rotate(-60deg);
  background: linear-gradient(180deg, var(--blue), #3ad8ff);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 5px;
  margin-top: 42px;
}

.nav-label {
  margin: 0 10px 10px;
  color: #58657e;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 45px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #8d99b1;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition: 180ms ease;
}

.nav-item:hover,
.nav-item.active {
  border-color: var(--line);
  background: rgba(94, 115, 170, 0.08);
  color: var(--text);
}

.nav-item.active {
  box-shadow: inset 2px 0 var(--violet);
}

.nav-icon {
  color: #65728c;
  font-family: var(--mono);
  font-size: 9px;
}

.nav-item.active .nav-icon {
  color: var(--violet);
}

.nav-item b {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 7px;
  background: rgba(126, 106, 255, 0.12);
  color: #9d8cff;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
}

.nav-item .pulse-dot {
  min-width: 7px;
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 84, 182, 0.1), 0 0 16px var(--pink);
}

.sidebar-spacer {
  flex: 1;
}

.signal-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(29, 41, 73, 0.5), rgba(13, 19, 37, 0.5));
}

.signal-card-top {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 7px;
  color: #b0bad0;
  font-size: 9px;
}

.signal-card-top strong {
  color: var(--green);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.live-dot,
.network-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.signal-bars {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 27px;
  margin: 13px 0 8px;
}

.signal-bars i {
  flex: 1;
  height: 30%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--green), var(--blue));
  animation: signal 1.8s ease-in-out infinite alternate;
}

.signal-bars i:nth-child(2),
.signal-bars i:nth-child(7) {
  height: 70%;
  animation-delay: -0.7s;
}

.signal-bars i:nth-child(3),
.signal-bars i:nth-child(6) {
  height: 48%;
  animation-delay: -1.2s;
}

.signal-bars i:nth-child(4) {
  height: 92%;
  animation-delay: -0.3s;
}

.signal-bars i:nth-child(5) {
  height: 64%;
  animation-delay: -1.5s;
}

@keyframes signal {
  to { transform: scaleY(0.55); opacity: 0.6; }
}

.signal-card p {
  margin: 0;
  color: #64718a;
  font-size: 8px;
  line-height: 1.6;
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: linear-gradient(145deg, #7758e9, #253c81);
  color: white;
  font-family: var(--mono);
  font-size: 9px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.17);
}

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

.profile-card strong {
  font-size: 10px;
}

.profile-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.profile-card .more {
  color: #5c6880;
}

.main-content {
  grid-column: 2;
  min-width: 0;
  padding: 0 30px 60px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 480px) auto;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid rgba(143, 170, 224, 0.1);
  background: rgba(5, 8, 18, 0.76);
  backdrop-filter: blur(22px);
}

.mobile-menu {
  display: none;
}

.global-search,
.mini-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.global-search span,
.mini-search span {
  width: 12px;
  height: 12px;
  border: 1.5px solid #61708d;
  border-radius: 50%;
}

.global-search span::after,
.mini-search span::after {
  display: block;
  width: 5px;
  height: 1.5px;
  margin: 9px 0 0 9px;
  transform: rotate(45deg);
  background: #61708d;
  content: "";
}

.global-search input,
.mini-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
  font-size: 11px;
}

.global-search input::placeholder,
.mini-search input::placeholder {
  color: #5f6c85;
}

kbd {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  color: #65728c;
  font-family: var(--mono);
  font-size: 8px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.network-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #75829c;
  font-family: var(--mono);
  font-size: 8px;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: 180ms ease;
}

.icon-button:hover {
  border-color: var(--line-bright);
  background: var(--surface-hover);
}

.icon-button svg {
  width: 14px;
  fill: none;
  stroke: #96a2bb;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.notification-pip {
  position: absolute;
  top: -2px;
  right: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

.avatar-button {
  border: 0;
  cursor: pointer;
}

.page-section {
  padding-top: 22px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(4, 8, 18, 0.96) 0%, rgba(5, 8, 18, 0.87) 38%, rgba(5, 8, 18, 0.16) 72%),
    url("assets/hero-astronaut.png") center / cover;
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.06);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 8, 18, 0.84));
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 4px;
  mix-blend-mode: overlay;
  opacity: 0.3;
  content: "";
}

.hero-copy {
  max-width: 580px;
  padding: 65px 0 80px 54px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b98b3;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 18px;
  height: 1px;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

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

h1 {
  max-width: 510px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 5.7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-brand-name {
  display: block;
  width: fit-content;
  margin-bottom: 15px;
  background: linear-gradient(100deg, #f06abc, #a88cff 55%, #68a5ff);
  background-clip: text;
  color: transparent;
  font-family: var(--mono);
  font-size: 0.2em;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 em {
  color: #b7a8ff;
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-copy > p {
  max-width: 480px;
  margin-bottom: 28px;
  color: #a2adc3;
  font-size: 13px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.primary-button,
.subtle-button,
.wide-subtle-button,
.load-more {
  border: 1px solid transparent;
  cursor: pointer;
  transition: 180ms ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 9px;
  background: linear-gradient(110deg, #d43ca7, #7056ed 54%, #347dff);
  color: white;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(79, 78, 229, 0.22), inset 0 1px rgba(255, 255, 255, 0.25);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(85, 82, 230, 0.35), inset 0 1px rgba(255, 255, 255, 0.25);
}

.primary-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.text-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #a8b2c8;
  cursor: pointer;
  font-size: 10px;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.play-icon::after {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid white;
  content: "";
}

.hero-signal {
  position: absolute;
  right: 28px;
  bottom: 47px;
  display: grid;
  width: 118px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(5, 8, 18, 0.62);
  backdrop-filter: blur(18px);
}

.hero-signal span,
.hero-signal small {
  color: #9aa7bd;
  font-family: var(--mono);
  font-size: 7px;
}

.hero-signal strong {
  margin: 4px 0;
  font-size: 25px;
  letter-spacing: -0.07em;
}

.hero-signal strong::after {
  color: var(--green);
  content: " /";
  font-family: var(--mono);
  font-size: 8px;
}

.hero-bottom {
  position: absolute;
  right: 24px;
  bottom: 17px;
  left: 54px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -1px 14px 0;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 15px 15px;
  background: rgba(10, 15, 29, 0.78);
}

.metric-strip article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 13px 18px;
  border-right: 1px solid var(--line);
}

.metric-strip article:last-child {
  border-right: 0;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 9px;
}

.metric-icon.blue { color: var(--blue); background: rgba(77, 141, 255, 0.07); }
.metric-icon.violet { color: var(--violet); background: rgba(138, 103, 255, 0.07); }
.metric-icon.green { color: var(--green); background: rgba(85, 224, 181, 0.07); }
.metric-icon.pink { color: var(--pink); background: rgba(236, 84, 182, 0.07); }

.metric-strip strong,
.metric-strip small {
  display: block;
}

.metric-strip strong {
  font-size: 17px;
  letter-spacing: -0.05em;
}

.metric-strip small {
  margin-top: 1px;
  color: #7b879e;
  font-size: 8px;
}

.metric-strip b {
  grid-column: 2;
  color: #59667e;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 400;
}

.performance-pulse {
  position: relative;
  isolation: isolate;
  margin-top: 30px;
  padding: 26px;
  overflow: hidden;
}

.performance-pulse::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 25% 45%, rgba(77, 141, 255, 0.1), transparent 32%),
    radial-gradient(circle at 75% 10%, rgba(236, 84, 182, 0.08), transparent 28%);
  content: "";
}

.pulse-header,
.pulse-toolbar,
.pulse-sources {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
}

.pulse-heading h2 {
  margin: 10px 0 7px;
  font-size: 30px;
  letter-spacing: -0.06em;
}

.pulse-heading p {
  max-width: 630px;
  margin-bottom: 0;
  color: #7d8aa2;
  font-size: 9px;
  line-height: 1.65;
}

.pulse-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(4, 9, 20, 0.35);
}

.pulse-stats div {
  min-width: 86px;
  padding: 11px 13px;
  border-right: 1px solid var(--line);
}

.pulse-stats div:last-child {
  border-right: 0;
}

.pulse-stats strong,
.pulse-stats span {
  display: block;
}

.pulse-stats strong {
  font-size: 14px;
  letter-spacing: -0.05em;
}

.pulse-stats span {
  margin-top: 2px;
  color: #65728a;
  font-family: var(--mono);
  font-size: 6px;
  text-transform: uppercase;
}

.pulse-toolbar {
  align-items: center;
  margin: 24px 0 13px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.pulse-filters,
.pulse-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pulse-filter {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
  color: #738099;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 7px;
  transition: 160ms ease;
}

.pulse-filter:hover,
.pulse-filter.active {
  border-color: rgba(138, 103, 255, 0.5);
  background: rgba(138, 103, 255, 0.09);
  color: #d9d2ff;
}

.pulse-legend {
  color: #647089;
  font-family: var(--mono);
  font-size: 6px;
  text-transform: uppercase;
}

.pulse-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid #8896b1;
  border-radius: 50%;
}

.pulse-legend .legend-size {
  box-shadow: 5px 0 0 -2px #8896b1;
}

.pulse-legend .legend-glow {
  border-color: var(--violet);
  box-shadow: 0 0 9px var(--violet);
}

.pulse-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.68fr);
  gap: 13px;
}

.pulse-stage,
.pulse-detail {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 8, 18, 0.38);
}

.pulse-stage {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(27, 54, 116, 0.1);
}

.pulse-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(117, 146, 205, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 146, 205, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
}

.pulse-axis {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #536078;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-axis b {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 141, 255, 0.25), transparent);
}

#performanceBubbles {
  position: absolute;
  inset: 37px 13px 39px;
}

.pulse-bubble {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-content: center;
  width: var(--bubble-size);
  height: var(--bubble-size);
  padding: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent), white 12%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, color-mix(in srgb, var(--accent), white 20%), transparent 8%),
    radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--accent), transparent 62%), transparent 62%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent), #0b1327 62%), #060a14 73%);
  color: white;
  cursor: pointer;
  text-align: center;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.28),
    inset 0 -15px 35px rgba(0, 0, 0, 0.25),
    0 0 calc(var(--bubble-size) * 0.25) color-mix(in srgb, var(--accent), transparent 72%);
  will-change: transform;
  transition: border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.pulse-bubble::before,
.pulse-bubble::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.pulse-bubble::before {
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pulse-bubble::after {
  top: 15%;
  right: 18%;
  width: 13%;
  height: 8%;
  transform: rotate(-24deg);
  background: rgba(255, 255, 255, 0.5);
  filter: blur(2px);
}

.pulse-bubble:hover,
.pulse-bubble.selected {
  z-index: 3;
  border-color: white;
  filter: brightness(1.14);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -15px 35px rgba(0, 0, 0, 0.22),
    0 0 calc(var(--bubble-size) * 0.35) color-mix(in srgb, var(--accent), transparent 48%),
    0 0 0 4px color-mix(in srgb, var(--accent), transparent 84%);
}

.pulse-bubble.leader {
  border-width: 2px;
}

.pulse-bubble-rank {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 6px;
}

.pulse-bubble strong,
.pulse-bubble b,
.pulse-bubble small {
  position: relative;
  z-index: 1;
  display: block;
}

.pulse-bubble strong {
  max-width: calc(var(--bubble-size) - 22px);
  overflow: hidden;
  font-size: clamp(7px, calc(var(--bubble-size) * 0.09), 12px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-bubble b {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: clamp(14px, calc(var(--bubble-size) * 0.2), 27px);
  letter-spacing: -0.08em;
}

.pulse-bubble small {
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--mono);
  font-size: clamp(5px, calc(var(--bubble-size) * 0.055), 7px);
}

.pulse-stage-note {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 13px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #68758c;
  font-family: var(--mono);
  font-size: 6px;
  text-transform: uppercase;
}

.pulse-stage-note b {
  margin-left: auto;
  color: #8c98af;
  font-weight: 400;
}

.pulse-detail {
  min-width: 0;
  padding: 15px;
}

.pulse-detail-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.pulse-model-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 42%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent), transparent 88%);
  color: white;
  font-family: var(--mono);
  font-size: 9px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 75%);
}

.pulse-detail-top span,
.pulse-detail-top p {
  color: #65728a;
  font-family: var(--mono);
  font-size: 6px;
  text-transform: uppercase;
}

.pulse-detail-top h3 {
  margin: 4px 0 3px;
  font-size: 13px;
  letter-spacing: -0.04em;
}

.pulse-detail-top p {
  margin: 0;
  text-transform: none;
}

.pulse-detail-top > strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: -0.08em;
}

.pulse-detail-top > strong small {
  color: #5d6a82;
  font-size: 6px;
  letter-spacing: 0;
}

.pulse-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.pulse-detail-metrics div {
  min-width: 0;
  padding: 9px;
  border-right: 1px solid var(--line);
}

.pulse-detail-metrics div:last-child {
  border-right: 0;
}

.pulse-detail-metrics span,
.pulse-detail-metrics strong {
  display: block;
}

.pulse-detail-metrics span {
  margin-bottom: 4px;
  color: #66738a;
  font-size: 6px;
}

.pulse-detail-metrics strong {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-board-list {
  display: grid;
  gap: 5px;
}

.pulse-board-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.016);
  transition: 160ms ease;
}

.pulse-board-list a:hover {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.03);
}

.pulse-board-list span,
.pulse-board-list strong,
.pulse-board-list small {
  display: block;
}

.pulse-board-list b,
.pulse-board-list strong {
  font-size: 7px;
}

.pulse-board-list span {
  color: #68758c;
  font-size: 6px;
}

.pulse-board-list span small {
  max-width: 165px;
  margin-top: 4px;
  overflow: hidden;
  color: #536078;
  font-family: var(--mono);
  font-size: 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-board-list strong {
  color: #b7c1d4;
  text-align: right;
}

.pulse-board-list small {
  margin-top: 3px;
  color: #5b6880;
  font-family: var(--mono);
  font-size: 5px;
  font-weight: 400;
}

.pulse-variant-note {
  margin: 12px 0 0;
  color: #59667e;
  font-size: 6px;
  line-height: 1.55;
}

.pulse-sources {
  align-items: center;
  margin-top: 13px;
}

.pulse-sources p {
  max-width: 520px;
  margin: 0;
  color: #59667e;
  font-size: 6px;
  line-height: 1.55;
}

.pulse-sources div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.pulse-sources a {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #74839c;
  font-family: var(--mono);
  font-size: 5px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  gap: 16px;
  margin-top: 30px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(15, 22, 41, 0.86), rgba(8, 13, 26, 0.88));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.025);
}

.recommender-panel {
  padding: 24px;
}

.updates-panel {
  padding: 24px 17px 17px;
}

.section-heading,
.models-header,
.compare-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.section-heading h2,
.models-header h2,
.compare-dialog-header h2 {
  margin: 8px 0 0;
  font-size: 22px;
  letter-spacing: -0.055em;
}

.section-heading.compact h2 {
  font-size: 18px;
}

.subtle-button {
  padding: 7px 10px;
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: #79869f;
  font-family: var(--mono);
  font-size: 8px;
}

.subtle-button:hover,
.wide-subtle-button:hover,
.load-more:hover {
  border-color: var(--line-bright);
  background: var(--surface-hover);
  color: var(--text);
}

.filter-toggle {
  display: none;
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.filter-block,
.select-field {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(3, 8, 18, 0.25);
}

.filter-block.full-width {
  grid-column: 1 / -1;
}

.filter-block legend,
.select-field span {
  display: block;
  margin-bottom: 9px;
  padding: 0;
  color: #8390a8;
  font-size: 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-chip {
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
  color: #8290a8;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 7px;
  transition: 160ms ease;
}

.filter-chip:hover {
  border-color: var(--line-bright);
  color: var(--text);
}

.filter-chip.active {
  border-color: rgba(137, 107, 255, 0.78);
  background: linear-gradient(180deg, rgba(134, 102, 255, 0.17), rgba(77, 141, 255, 0.08));
  color: #e3ddff;
  box-shadow: inset 0 -2px var(--violet), 0 0 18px rgba(138, 103, 255, 0.08);
}

.select-field select,
.sort-field select {
  width: 100%;
  border: 0;
  background: transparent;
  color: #d8deea;
  outline: 0;
  font-size: 9px;
}

select option {
  background: var(--surface-strong);
  color: var(--text);
}

.recommend-button {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.spark {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  font-family: var(--mono);
  font-size: 8px;
}

.update-list {
  display: grid;
  gap: 5px;
  margin-top: 14px;
}

.update-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 11px 7px;
  border-bottom: 1px solid rgba(143, 170, 224, 0.08);
  border-radius: 8px;
  transition: 160ms ease;
}

.update-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.update-logo,
.model-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(circle at 65% 25%, color-mix(in srgb, var(--accent), white 20%), transparent 22%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent), #050812 45%), #070b16 70%);
  color: white;
  font-family: var(--mono);
  font-weight: 500;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), 0 0 20px color-mix(in srgb, var(--accent), transparent 82%);
}

.update-logo {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  font-size: 9px;
}

.update-logo::after,
.model-avatar::after {
  position: absolute;
  width: 70%;
  height: 120%;
  transform: rotate(28deg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.update-item strong,
.update-item p {
  display: block;
}

.update-item strong {
  margin-bottom: 3px;
  font-size: 9px;
}

.update-item p {
  margin-bottom: 0;
  color: #78849b;
  font-size: 7px;
  line-height: 1.5;
}

.update-item time {
  color: #59657b;
  font-family: var(--mono);
  font-size: 6px;
}

.wide-subtle-button,
.load-more {
  width: 100%;
  min-height: 36px;
  margin-top: 11px;
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  color: #78859d;
  font-family: var(--mono);
  font-size: 7px;
}

.models-section {
  padding-top: 48px;
}

.models-header {
  align-items: end;
  margin-bottom: 20px;
}

.models-header h2 {
  font-size: 31px;
}

.models-header p {
  margin: 7px 0 0;
  color: #68758d;
  font-size: 9px;
}

.models-tools {
  display: flex;
  gap: 8px;
}

.mini-search,
.sort-field {
  min-width: 170px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.sort-field {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr);
  align-items: center;
  gap: 8px;
}

.sort-field span {
  color: #5e6b83;
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

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

.model-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(16, 24, 45, 0.92), rgba(7, 12, 24, 0.96));
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.16), inset 0 1px rgba(255, 255, 255, 0.025);
  transition: 200ms ease;
}

.model-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
  content: "";
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 28px color-mix(in srgb, var(--accent), transparent 92%);
}

.model-card-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 14px 11px;
}

.model-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 10px;
}

.model-title h3 {
  margin: 0 0 2px;
  font-size: 13px;
  letter-spacing: -0.04em;
}

.model-title p {
  margin: 0;
  color: #6c7890;
  font-family: var(--mono);
  font-size: 7px;
}

.match-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--score) * 1%), rgba(255, 255, 255, 0.07) 0);
}

.match-ring::before {
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: #0b1121;
  content: "";
}

.match-ring strong,
.match-ring small {
  position: relative;
  z-index: 1;
}

.match-ring strong {
  font-family: var(--mono);
  font-size: 8px;
}

.match-ring small {
  margin-left: 1px;
  color: #718099;
  font-size: 5px;
}

.model-tagline {
  min-height: 43px;
  margin: 0;
  padding: 0 14px 11px;
  color: #8c98ae;
  font-size: 8px;
  line-height: 1.55;
}

.spec-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 10px;
  border: 1px solid rgba(143, 170, 224, 0.1);
  border-radius: 8px;
  background: rgba(2, 7, 16, 0.3);
}

.spec-row div {
  padding: 9px;
  border-right: 1px solid rgba(143, 170, 224, 0.1);
}

.spec-row div:last-child {
  border-right: 0;
}

.spec-row span,
.spec-row strong {
  display: block;
}

.spec-row span {
  margin-bottom: 4px;
  color: #5f6c84;
  font-family: var(--mono);
  font-size: 5px;
  text-transform: uppercase;
}

.spec-row strong {
  overflow: hidden;
  color: #cbd3e2;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-row {
  display: flex;
  gap: 5px;
  min-height: 44px;
  padding: 10px 14px;
  overflow: hidden;
}

.feature-tag,
.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(143, 170, 224, 0.13);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  color: #7d8ba3;
  font-family: var(--mono);
  font-size: 5px;
  white-space: nowrap;
}

.status-tag {
  border-color: color-mix(in srgb, var(--accent), transparent 65%);
  background: color-mix(in srgb, var(--accent), transparent 89%);
  color: color-mix(in srgb, var(--accent), white 24%);
}

.model-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 0 10px 10px;
}

.card-button {
  min-height: 33px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  color: #a4aec2;
  cursor: pointer;
  font-size: 7px;
  transition: 160ms ease;
}

.card-button:hover,
.card-button.active {
  border-color: color-mix(in srgb, var(--accent), transparent 50%);
  background: color-mix(in srgb, var(--accent), transparent 89%);
  color: white;
}

.compare-button {
  width: 36px;
  font-family: var(--mono);
  font-size: 13px;
}

.load-more {
  max-width: 230px;
  display: block;
  margin: 18px auto 0;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  margin-top: 70px;
  padding: 27px 0 0;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: #59667d;
  font-size: 8px;
}

footer div {
  display: flex;
  gap: 18px;
  color: #748199;
  font-family: var(--mono);
  font-size: 7px;
}

.compare-tray {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  left: calc(236px + 24px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 12px 12px 12px 17px;
  transform: translateY(140%);
  border: 1px solid var(--line-bright);
  border-radius: 13px;
  background: rgba(13, 20, 38, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: 220ms ease;
}

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

.compare-tray span,
.compare-tray strong {
  display: block;
}

.compare-tray span {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 7px;
  text-transform: uppercase;
}

.compare-tray strong {
  margin-top: 3px;
  font-size: 10px;
}

.tray-close,
.dialog-close {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: #8290a8;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
}

dialog {
  color: var(--text);
}

dialog::backdrop {
  background: rgba(2, 5, 12, 0.78);
  backdrop-filter: blur(12px);
}

.detail-dialog,
.compare-dialog {
  width: min(780px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  background: #09101e;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
}

.detail-dialog .dialog-close {
  position: sticky;
  z-index: 4;
  top: 14px;
  float: right;
  margin: 14px 14px -46px 0;
}

.detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 45px 34px 32px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 42%, color-mix(in srgb, var(--accent), transparent 45%), transparent 26%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent), #060a13 84%), #070c16 70%);
}

.detail-hero::after {
  position: absolute;
  z-index: -1;
  top: -140px;
  right: -80px;
  width: 330px;
  height: 330px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 65%);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px color-mix(in srgb, var(--accent), transparent 96%),
    0 0 0 70px color-mix(in srgb, var(--accent), transparent 98%);
  content: "";
}

.detail-hero h2 {
  margin: 13px 0 7px;
  font-size: 36px;
  letter-spacing: -0.07em;
}

.detail-hero p {
  max-width: 540px;
  margin: 0;
  color: #a4afc2;
  font-size: 10px;
  line-height: 1.7;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.detail-grid div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.detail-grid div:last-child {
  border-right: 0;
}

.detail-grid span,
.detail-grid strong {
  display: block;
}

.detail-grid span {
  color: #65728a;
  font-family: var(--mono);
  font-size: 6px;
  text-transform: uppercase;
}

.detail-grid strong {
  margin-top: 6px;
  font-size: 9px;
}

.detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 25px 30px 30px;
}

.detail-body h3 {
  margin-bottom: 11px;
  font-size: 10px;
}

.detail-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 16px;
  color: #8995ac;
  font-size: 8px;
  line-height: 1.5;
}

.detail-list li::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 6px;
  height: 6px;
  border: 1px solid var(--green);
  border-radius: 50%;
  content: "";
}

.detail-list.weak li::before {
  border-color: var(--danger);
}

.compare-dialog {
  width: min(1040px, calc(100% - 28px));
  padding: 24px;
}

.compare-dialog-header {
  align-items: center;
  margin-bottom: 20px;
}

.dialog-close.static {
  position: static;
  float: none;
  margin: 0;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 8px;
}

.compare-table th,
.compare-table td {
  padding: 13px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: rgba(255, 255, 255, 0.025);
  color: #6e7b93;
  font-family: var(--mono);
  font-weight: 400;
}

.compare-table th:not(:first-child) {
  color: var(--text);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
}

.compare-table td {
  color: #9ba6ba;
  line-height: 1.55;
}

.toast {
  position: fixed;
  z-index: 100;
  top: 82px;
  right: 25px;
  max-width: 310px;
  padding: 11px 14px;
  transform: translateX(calc(100% + 40px));
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  background: rgba(14, 22, 41, 0.94);
  color: #bec8d9;
  font-size: 9px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: 200ms ease;
}

.toast.visible {
  transform: translateX(0);
  opacity: 1;
}

.mobile-tabs {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 30px;
  border: 1px dashed var(--line-bright);
  border-radius: 14px;
  color: #73819a;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}

@media (max-width: 1180px) {
  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-strip article {
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .sidebar.open {
    display: flex;
    width: min(280px, calc(100vw - 48px));
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.6);
  }

  .main-content {
    padding: 0 18px 90px;
  }

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

  .mobile-menu {
    display: grid;
    place-items: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
  }

  .mobile-menu span {
    width: 12px;
    height: 1px;
    background: #9ba7bb;
  }

  .network-status,
  .topbar-actions .icon-button {
    display: none;
  }

  .global-search kbd {
    display: none;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-strip article:nth-child(2) {
    border-right: 0;
  }

  .metric-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .compare-tray {
    right: 13px;
    bottom: 77px;
    left: 13px;
  }

  .mobile-tabs {
    position: fixed;
    z-index: 40;
    right: 10px;
    bottom: 9px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 5px;
    border: 1px solid var(--line-bright);
    border-radius: 13px;
    background: rgba(9, 14, 28, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
  }

  .mobile-tabs a,
  .mobile-tabs button {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7a879f;
    cursor: pointer;
    font-size: 7px;
  }

  .mobile-tabs span {
    color: var(--violet);
    font-family: var(--mono);
    font-size: 7px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 68px;
  }

  .main-content {
    padding-right: 11px;
    padding-left: 11px;
  }

  .topbar {
    min-height: 57px;
  }

  .global-search {
    max-width: 100%;
  }

  .global-search input {
    width: 100%;
    font-size: 9px;
  }

  .hero {
    min-height: 530px;
    border-radius: 17px;
    background:
      linear-gradient(180deg, rgba(4, 8, 18, 0.96) 0%, rgba(5, 8, 18, 0.5) 52%, rgba(5, 8, 18, 0.93) 100%),
      url("assets/hero-astronaut.png") 67% center / cover;
  }

  .hero-copy {
    padding: 36px 22px 190px;
  }

  h1 {
    margin-top: 16px;
    font-size: 44px;
  }

  .hero-copy > p {
    font-size: 10px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .text-button {
    justify-content: center;
  }

  .hero-signal {
    right: 16px;
    bottom: 47px;
  }

  .hero-bottom {
    right: 16px;
    left: 16px;
  }

  .hero-bottom span:last-child {
    display: none;
  }

  .metric-strip {
    margin-right: 5px;
    margin-left: 5px;
  }

  .metric-strip article {
    min-height: 66px;
    padding: 9px;
  }

  .metric-strip strong {
    font-size: 14px;
  }

  .metric-strip b {
    display: none;
  }

  .dashboard-grid {
    margin-top: 20px;
  }

  .panel {
    border-radius: 14px;
  }

  .recommender-panel,
  .updates-panel {
    padding: 16px;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .filter-toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 39px;
    margin-top: 16px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: #a9b3c6;
    font-size: 9px;
  }

  .filter-toggle span {
    color: var(--violet);
    font-family: var(--mono);
    font-size: 7px;
  }

  .filter-form {
    grid-template-columns: 1fr;
    margin-top: 8px;
  }

  .filter-form.collapsed {
    display: none;
  }

  .filter-block.full-width,
  .recommend-button {
    grid-column: auto;
  }

  .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-chip {
    flex: none;
  }

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

  .models-section {
    padding-top: 36px;
  }

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

  .models-header h2 {
    font-size: 27px;
  }

  .models-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mini-search,
  .sort-field {
    min-width: 0;
  }

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

  .model-tagline {
    min-height: 0;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  footer div {
    justify-content: space-between;
  }

  .compare-tray {
    grid-template-columns: 1fr auto;
  }

  .compare-tray .tray-close {
    display: none;
  }

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

  .detail-grid div:nth-child(2) {
    border-right: 0;
  }

  .detail-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

.section-actions,
.decision-actions,
.update-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.section-actions {
  justify-content: flex-end;
}

.decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.planner-panel,
.intelligence-panel {
  padding: 24px;
}

.panel-intro,
.estimate-note {
  color: #718098;
  font-size: 8px;
  line-height: 1.65;
}

.panel-intro { margin: 11px 0 17px; }
.estimate-note { margin: 13px 0 0; }

.confidence-badge {
  padding: 6px 8px;
  border: 1px solid rgba(85, 224, 181, 0.25);
  border-radius: 6px;
  background: rgba(85, 224, 181, 0.06);
  color: var(--green);
  font-family: var(--mono);
  font-size: 6px;
  text-transform: uppercase;
}

.planner-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 13px;
}

.number-field {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(3, 8, 18, 0.24);
}

.number-field span {
  color: #748198;
  font-size: 7px;
}

.number-field input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
  font-family: var(--mono);
  font-size: 13px;
}

.cost-preview {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cost-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.cost-row:last-child { border-bottom: 0; }
.cost-rank { color: var(--violet); font-family: var(--mono); font-size: 7px; }
.cost-row strong, .cost-row small { display: block; }
.cost-row strong { font-size: 9px; }
.cost-row small { margin-top: 2px; color: #66738a; font-size: 6px; }
.cost-row > b { color: var(--green); font-family: var(--mono); font-size: 9px; }

.decision-lead {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 70%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent), transparent 94%);
}

.decision-lead span,
.decision-lead b {
  color: #748198;
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 400;
  text-transform: uppercase;
}

.decision-lead strong { font-size: 15px; letter-spacing: -0.04em; }

.decision-list {
  display: grid;
  gap: 7px;
  margin: 13px 0;
  padding: 0;
  list-style: none;
}

.decision-list li {
  position: relative;
  padding-left: 13px;
  color: #8290a6;
  font-size: 7px;
  line-height: 1.5;
}

.decision-list li::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #718098;
  content: "";
}

.decision-list .positive::before { background: var(--green); }
.decision-list .warning::before { background: var(--danger); }
.decision-actions .subtle-button { flex: 1; }

.spec-row.four { grid-template-columns: repeat(4, 1fr); }

.score-reason {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin: 9px 10px 0;
  padding: 6px 8px;
  border: 1px solid rgba(85, 224, 181, 0.15);
  border-radius: 7px;
  background: rgba(85, 224, 181, 0.035);
  color: #8391a7;
  font-size: 6px;
}

.score-reason b { color: var(--green); font-family: var(--mono); }
.score-reason.negative,
.score-reason.blocker { border-color: rgba(255, 125, 140, 0.15); background: rgba(255, 125, 140, 0.035); }
.score-reason.negative b,
.score-reason.blocker b { color: var(--danger); }

.update-heading { align-items: center; }
.update-heading span {
  padding: 3px 5px;
  border: 1px solid rgba(138, 103, 255, 0.18);
  border-radius: 4px;
  background: rgba(138, 103, 255, 0.05);
  color: #9687dd;
  font-family: var(--mono);
  font-size: 5px;
}

.update-item small {
  display: block;
  margin-top: 4px;
  color: #5f6d85;
  font-size: 6px;
  line-height: 1.4;
}

.detail-wide { grid-column: 1 / -1; }

.explanation-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.explanation-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(85, 224, 181, 0.13);
  border-radius: 7px;
  background: rgba(85, 224, 181, 0.025);
  color: #8b97ac;
  font-size: 7px;
  line-height: 1.4;
}

.explanation-item b { color: var(--green); font-family: var(--mono); }
.explanation-item.negative,
.explanation-item.blocker { border-color: rgba(255, 125, 140, 0.13); background: rgba(255, 125, 140, 0.025); }
.explanation-item.negative b,
.explanation-item.blocker b { color: var(--danger); }

.source-link {
  color: #8caeff;
  text-decoration: underline;
  text-decoration-color: rgba(140, 174, 255, 0.25);
  text-underline-offset: 2px;
}

.detail-dialog,
.compare-dialog,
.saved-dialog {
  max-height: calc(100vh - 36px);
  margin: auto;
  overflow: auto;
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  background: #09101e;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
  color: var(--text);
}

.saved-dialog {
  width: min(720px, calc(100% - 28px));
  padding: 24px;
}

.saved-list { display: grid; gap: 7px; margin-top: 18px; }

.saved-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.saved-item strong, .saved-item small { display: block; }
.saved-item strong { font-size: 9px; }
.saved-item small { margin-top: 3px; color: #6f7c93; font-size: 6px; }

.comparison-callout {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(138, 103, 255, 0.18);
  border-radius: 8px;
  background: rgba(138, 103, 255, 0.045);
  color: #8c98ae;
  font-size: 8px;
  line-height: 1.6;
}

.comparison-callout strong,
.best-value { color: var(--green); }

@media (max-width: 1180px) {
  .decision-grid { grid-template-columns: 1fr; }
  .pulse-layout { grid-template-columns: 1fr; }
  .pulse-stage { min-height: 540px; }
}

@media (max-width: 680px) {
  .section-heading { align-items: stretch; flex-direction: column; }
  .section-actions { justify-content: stretch; }
  .section-actions .subtle-button { flex: 1; }
  .models-tools .subtle-button { grid-column: 1 / -1; }
  .planner-controls,
  .explanation-list { grid-template-columns: 1fr; }
  .spec-row.four { grid-template-columns: repeat(2, 1fr); }
  .spec-row.four div:nth-child(2) { border-right: 0; }
  .spec-row.four div:nth-child(-n + 2) { border-bottom: 1px solid rgba(143, 170, 224, 0.1); }
  .saved-item { grid-template-columns: 1fr auto; }
  .performance-pulse { margin-top: 18px; padding: 16px; }
  .pulse-header,
  .pulse-toolbar,
  .pulse-sources { align-items: stretch; flex-direction: column; gap: 13px; }
  .pulse-heading h2 { font-size: 24px; }
  .pulse-stats { grid-template-columns: repeat(3, 1fr); }
  .pulse-stats div { min-width: 0; padding: 9px; }
  .pulse-toolbar { margin-top: 16px; }
  .pulse-filters { display: grid; grid-template-columns: repeat(2, 1fr); }
  .pulse-filter { padding: 0 7px; }
  .pulse-stage { min-height: 500px; }
  #performanceBubbles { right: 7px; left: 7px; }
  .pulse-bubble { width: calc(var(--bubble-size) * 0.78); height: calc(var(--bubble-size) * 0.78); }
  .pulse-stage-note { align-items: start; flex-wrap: wrap; }
  .pulse-stage-note b { width: 100%; margin-left: 13px; }
  .pulse-detail-metrics { grid-template-columns: 1fr; }
  .pulse-detail-metrics div { border-right: 0; border-bottom: 1px solid var(--line); }
  .pulse-detail-metrics div:last-child { border-bottom: 0; }
  .pulse-sources div { justify-content: flex-start; }
}

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