:root {
  color-scheme: dark;
  --bg: #0a0f1c;
  --bg-deep: #060914;
  --surface: rgba(12, 20, 38, 0.82);
  --surface-strong: rgba(11, 18, 34, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(0, 209, 255, 0.16);
  --line-strong: rgba(0, 209, 255, 0.34);
  --text: #e8f7ff;
  --muted: #90a3c5;
  --cyan: #00d1ff;
  --purple: #7a5cff;
  --green: #00ffb2;
  --amber: #ffca57;
  --red: #ff3b3b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.28);
  --glow-cyan: 0 0 24px rgba(0, 209, 255, 0.18);
  --glow-purple: 0 0 28px rgba(122, 92, 255, 0.18);
  --grid-gap: 18px;
  --row-height: 108px;
  --grid-stage-side-padding: 18px;
  --grid-stage-top-padding: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 255, 178, 0.08), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(122, 92, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(0, 209, 255, 0.1), transparent 28%),
    linear-gradient(160deg, #0a0f1c 0%, #08101d 52%, #11182d 100%);
  color: var(--text);
  font-family: "Noto Sans SC", "Rajdhani", sans-serif;
}

body {
  overflow-x: hidden;
  font-variant-numeric: lining-nums tabular-nums;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

.auth-shell {
  position: relative;
  min-height: 100vh;
  padding: 24px;
}

.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.78fr);
  gap: 22px;
  align-items: stretch;
  max-width: 1380px;
  min-height: calc(100vh - 48px);
  margin: 0 auto;
}

.auth-hero,
.auth-card {
  padding: 30px;
}

.auth-hero {
  display: grid;
  gap: 34px;
  min-height: 720px;
  align-content: start;
}

.auth-hero-copy {
  display: grid;
  gap: 17px;
}

.auth-hero-copy h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: clamp(2.4rem, 4.2vw, 4.3rem);
  line-height: 1.36;
  letter-spacing: -0.05em;
}

.auth-hero-copy p {
  margin: 0;
  max-width: 60ch;
  color: rgba(205, 223, 240, 0.78);
  font-size: 1rem;
  line-height: 2.26;
}

.auth-hero-visual {
  position: relative;
  min-height: 392px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(0, 209, 255, 0.13);
  background: url("./ScreenShot_2026-04-13_005736_500.jpg") center center / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 24px 48px rgba(0, 0, 0, 0.28);
}

.auth-hero-visual::before {
  content: "";
  position: absolute;
  inset: -26px;
  background: url("./ScreenShot_2026-04-13_005736_500.jpg") center center / cover no-repeat;
  filter: blur(22px) saturate(0.92) brightness(0.8);
  transform: scale(1.06);
  opacity: 0.95;
  -webkit-mask-image: radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.42) 70%, #000 100%);
  mask-image: radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.42) 70%, #000 100%);
  pointer-events: none;
  z-index: 0;
}

.auth-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(5, 11, 22, 0.58), transparent 24%),
    radial-gradient(circle at 84% 82%, rgba(5, 11, 22, 0.54), transparent 24%),
    radial-gradient(circle at center, rgba(8, 17, 33, 0) 34%, rgba(8, 17, 33, 0.18) 68%, rgba(8, 17, 33, 0.76) 100%),
    linear-gradient(90deg, rgba(8, 17, 33, 0.52), transparent 18%, transparent 82%, rgba(8, 17, 33, 0.52)),
    linear-gradient(180deg, rgba(8, 17, 33, 0.42), transparent 20%, transparent 78%, rgba(8, 17, 33, 0.48));
  pointer-events: none;
  z-index: 0;
}

.auth-hero-atmosphere,
.auth-hero-particle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-hero-atmosphere {
  z-index: 1;
  mix-blend-mode: screen;
}

.auth-hero-fan,
.auth-hero-light-band {
  position: absolute;
  display: block;
}

.auth-hero-fan {
  --fan-base: translate3d(0, 0, 0);
  width: 56%;
  height: 82%;
  top: -12%;
  left: 18%;
  border-radius: 50%;
  background: conic-gradient(
    from 248deg at 18% 100%,
    rgba(0, 209, 255, 0) 0deg,
    rgba(0, 209, 255, 0.34) 18deg,
    rgba(153, 244, 255, 0.08) 46deg,
    rgba(0, 209, 255, 0) 78deg
  );
  filter: blur(10px);
  opacity: 0.56;
  transform-origin: 18% 100%;
  animation: authFanSweep 9.6s ease-in-out infinite;
}

.auth-hero-fan-left {
  --fan-base: translate3d(0, 0, 0);
}

.auth-hero-fan-right {
  --fan-base: scaleX(-1) rotate(-8deg);
  top: 8%;
  left: auto;
  right: -9%;
  width: 42%;
  height: 66%;
  opacity: 0.42;
  animation-duration: 11.2s;
  animation-delay: -3.4s;
}

.auth-hero-light-band {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(0, 209, 255, 0) 0%,
    rgba(120, 240, 255, 0.94) 24%,
    rgba(255, 175, 98, 0.72) 58%,
    rgba(0, 209, 255, 0) 100%
  );
  box-shadow:
    0 0 16px rgba(120, 240, 255, 0.38),
    0 0 24px rgba(255, 175, 98, 0.16);
  opacity: 0.72;
}

.auth-hero-light-band-a {
  left: 20%;
  top: 34%;
  width: 58%;
  transform: rotate(6deg);
  animation: authBandDrift 7.2s ease-in-out infinite;
}

.auth-hero-light-band-b {
  left: 25%;
  top: 58%;
  width: 46%;
  opacity: 0.48;
  transform: rotate(-8deg);
  animation: authBandDrift 8.4s ease-in-out infinite reverse;
}

.auth-hero-particle-field {
  z-index: 2;
  overflow: hidden;
  mix-blend-mode: screen;
}

.auth-hero-particle {
  position: absolute;
  left: var(--left, 0px);
  top: var(--top, 0px);
  width: var(--size, 8px);
  height: var(--size, 8px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(248, 252, 255, 1), rgba(156, 245, 255, 0.94) 42%, rgba(31, 196, 255, 0.38) 66%, rgba(129, 241, 255, 0) 82%);
  box-shadow:
    0 0 18px rgba(129, 241, 255, 0.72),
    0 0 34px rgba(0, 209, 255, 0.34);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.35);
  animation:
    authParticleFloat var(--duration, 11s) linear infinite,
    authParticleFlicker calc(var(--duration, 11s) * 0.45) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.auth-hero-particle::before,
.auth-hero-particle::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  pointer-events: none;
}

.auth-hero-particle::before {
  width: var(--tail, 88px);
  height: max(2px, calc(var(--size, 8px) * 0.18));
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(0, 209, 255, 0) 0%,
    rgba(105, 238, 255, 0.08) 18%,
    rgba(105, 238, 255, 0.34) 52%,
    rgba(255, 184, 103, 0.78) 100%
  );
  box-shadow:
    0 0 14px rgba(105, 238, 255, 0.34),
    0 0 24px rgba(255, 184, 103, 0.18);
  transform-origin: 100% 50%;
  transform: translate(-100%, -50%) rotate(var(--tilt, -8deg));
  opacity: 0.92;
}

.auth-hero-particle::after {
  width: calc(var(--size, 8px) * 1.5);
  height: calc(var(--size, 8px) * 1.5);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(141, 243, 255, 0.78) 56%, rgba(141, 243, 255, 0) 78%);
  transform: translate(-50%, -50%);
}

.auth-hero-particle.is-amber {
  background: radial-gradient(circle, rgba(255, 249, 236, 1), rgba(255, 190, 118, 0.92) 42%, rgba(255, 138, 68, 0.4) 66%, rgba(255, 176, 97, 0) 82%);
  box-shadow:
    0 0 18px rgba(255, 176, 97, 0.62),
    0 0 34px rgba(255, 176, 97, 0.24);
}

.auth-hero-particle.is-amber::before {
  background: linear-gradient(
    90deg,
    rgba(255, 176, 97, 0) 0%,
    rgba(255, 176, 97, 0.1) 18%,
    rgba(255, 176, 97, 0.38) 52%,
    rgba(255, 238, 188, 0.84) 100%
  );
  box-shadow:
    0 0 14px rgba(255, 176, 97, 0.42),
    0 0 24px rgba(255, 220, 168, 0.18);
}

.auth-hero-ticker,
.auth-hero-telemetry {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.auth-hero-ticker {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(8, 16, 28, 0.92), rgba(10, 22, 41, 0.66)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.2);
}

.auth-hero-ticker span {
  color: rgba(179, 219, 241, 0.76);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.auth-hero-ticker strong {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  color: rgba(245, 251, 255, 0.98);
  letter-spacing: -0.03em;
}

.auth-hero-ticker strong {
  min-width: 4.9ch;
  font-size: 0.82rem;
}

.auth-hero-ticker i {
  width: 1px;
  height: 14px;
  background: linear-gradient(180deg, rgba(0, 209, 255, 0), rgba(0, 209, 255, 0.28), rgba(0, 209, 255, 0));
}

.auth-wheel,
.auth-hero-radar,
.auth-hero-pulse {
  display: none;
}

.auth-wheel {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 270px;
  height: 270px;
  transform: translate(-50%, -50%);
  border-radius: 42%;
  border: 1px solid rgba(0, 209, 255, 0.2);
  background:
    radial-gradient(circle at 50% 44%, rgba(0, 209, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(17, 36, 57, 0.88), rgba(8, 18, 31, 0.96));
  box-shadow:
    inset 0 0 0 10px rgba(6, 12, 23, 0.76),
    0 26px 46px rgba(0, 0, 0, 0.28),
    0 0 44px rgba(0, 209, 255, 0.08);
  z-index: 2;
}

.auth-wheel::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 42%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.08), transparent 40%, rgba(122, 92, 255, 0.08)),
    rgba(255, 255, 255, 0.02);
}

.auth-wheel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  width: 124px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 255, 178, 0.94), rgba(0, 209, 255, 0.94));
  box-shadow: 0 0 18px rgba(0, 255, 178, 0.18);
}

.auth-wheel-grip {
  position: absolute;
  top: 50%;
  width: 82px;
  height: 148px;
  border-radius: 28px;
  border: 1px solid rgba(0, 209, 255, 0.15);
  background:
    linear-gradient(180deg, rgba(18, 38, 58, 0.94), rgba(8, 16, 29, 0.94)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-wheel-grip-left {
  left: -24px;
  transform: translateY(-50%) rotate(-20deg);
}

.auth-wheel-grip-right {
  right: -24px;
  transform: translateY(-50%) rotate(20deg);
}

.auth-wheel-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(0, 209, 255, 0.18);
  background:
    radial-gradient(circle, rgba(0, 209, 255, 0.18), rgba(9, 18, 32, 0.98) 66%),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 0 18px rgba(0, 209, 255, 0.16),
    0 0 22px rgba(0, 209, 255, 0.1);
}

.auth-wheel-led {
  position: absolute;
  top: 34px;
  width: 34px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 202, 87, 0.88);
  box-shadow: 0 0 12px rgba(255, 202, 87, 0.18);
}

.auth-wheel-led-a {
  left: 82px;
}

.auth-wheel-led-b {
  left: 118px;
  background: rgba(0, 255, 178, 0.92);
  box-shadow: 0 0 12px rgba(0, 255, 178, 0.18);
}

.auth-wheel-led-c {
  left: 154px;
  background: rgba(0, 209, 255, 0.92);
  box-shadow: 0 0 12px rgba(0, 209, 255, 0.18);
}

.auth-hero-radar {
  position: absolute;
  inset: 56px;
  border-radius: 50%;
  border: 1px solid rgba(0, 209, 255, 0.08);
  opacity: 0.7;
}

.auth-hero-radar::before,
.auth-hero-radar::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 1px solid rgba(0, 209, 255, 0.08);
}

.auth-hero-radar::after {
  inset: 32%;
}

.auth-hero-pulse {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.36), transparent 70%);
  filter: blur(6px);
}

.auth-hero-pulse-a {
  left: 18%;
  top: 32%;
  width: 88px;
  height: 88px;
}

.auth-hero-pulse-b {
  right: 14%;
  bottom: 18%;
  width: 96px;
  height: 96px;
  background: radial-gradient(circle, rgba(122, 92, 255, 0.32), transparent 72%);
}

.auth-hero-telemetry {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 209, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(9, 18, 31, 0.94), rgba(6, 11, 21, 0.88)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.2);
}

.auth-hero-telemetry-left {
  left: 24px;
  top: 28px;
}

.auth-hero-telemetry-right {
  right: 24px;
  bottom: 28px;
}

.auth-hero-telemetry span {
  color: rgba(136, 176, 204, 0.74);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-hero-telemetry strong {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 1.5rem;
  color: rgba(245, 251, 255, 0.98);
}

.auth-hero-telemetry small {
  color: rgba(203, 221, 237, 0.7);
  font-size: 0.78rem;
}

.auth-hero-visual [data-auth-metric] {
  display: inline-block;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    text-shadow 180ms ease;
}

.auth-hero-visual [data-auth-metric].is-refreshing {
  animation: authMetricFlash 420ms ease;
}

.auth-hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  align-content: flex-start;
}

.auth-hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: flex-start;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(150, 219, 255, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.auth-card {
  position: relative;
  display: grid;
  align-content: center;
  gap: 24px;
  min-height: 720px;
}

.auth-card-head {
  display: grid;
  gap: 12px;
}

.auth-card-head h2 {
  margin: 0;
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.auth-card-head p {
  margin: 0;
  color: rgba(204, 220, 236, 0.76);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 10px;
}

.auth-field span {
  color: rgba(122, 219, 255, 0.84);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 18, 33, 0.96), rgba(7, 13, 24, 0.9)),
    rgba(255, 255, 255, 0.02);
  color: var(--text);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.auth-field input::placeholder {
  color: rgba(134, 154, 178, 0.62);
}

.auth-field input:focus {
  border-color: rgba(0, 209, 255, 0.34);
  box-shadow:
    0 0 0 1px rgba(0, 209, 255, 0.18),
    0 0 0 6px rgba(0, 209, 255, 0.08);
  transform: translateY(-1px);
}

.auth-credential-hint {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(0, 209, 255, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(0, 209, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(8, 17, 32, 0.98), rgba(11, 24, 42, 0.92)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  isolation: isolate;
}

.auth-credential-hint::before {
  content: "";
  position: absolute;
  inset: auto -12% -45% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 178, 0.18), rgba(0, 255, 178, 0));
  pointer-events: none;
}

.auth-credential-hint::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)) top left / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(0, 209, 255, 0.08), rgba(0, 209, 255, 0)) top left / 1px 100% no-repeat;
  pointer-events: none;
}

.auth-credential-head,
.auth-credential-grid {
  position: relative;
  z-index: 1;
}

.auth-credential-head {
  display: grid;
  gap: 6px;
}

.auth-credential-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 209, 255, 0.1);
  color: rgba(154, 239, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.auth-credential-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(0, 255, 178, 0.72);
}

.auth-credential-title {
  color: rgba(241, 249, 255, 0.98);
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.auth-credential-item {
  display: grid;
  gap: 10px;
  padding: 14px 14px 13px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(6, 12, 24, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-credential-label {
  color: rgba(152, 171, 198, 0.86);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-credential-item code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0;
  background: transparent;
  color: #aff6ff;
  font-family: "Rajdhani", "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(0, 209, 255, 0.18);
}

.auth-credential-item:last-child code {
  color: #ffd98d;
  text-shadow: 0 0 18px rgba(255, 202, 87, 0.18);
}

@media (max-width: 640px) {
  .auth-credential-hint {
    padding: 16px;
    border-radius: 20px;
  }

  .auth-credential-grid {
    grid-template-columns: 1fr;
  }
}

.auth-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 59, 59, 0.18);
  background: rgba(255, 59, 59, 0.08);
  color: #ff98a8;
  line-height: 1.5;
}

.auth-submit {
  height: 58px;
  border: none;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 255, 178, 0.92), rgba(0, 209, 255, 0.94)),
    rgba(255, 255, 255, 0.04);
  color: #04131c;
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
  box-shadow:
    0 22px 34px rgba(0, 209, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.auth-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow:
    0 24px 36px rgba(0, 209, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit:disabled {
  cursor: wait;
  filter: saturate(0.88) brightness(0.96);
  box-shadow:
    0 18px 28px rgba(0, 209, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-card.is-loading > :not(.auth-loading) {
  opacity: 0.16;
  transform: scale(0.985);
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

.auth-loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 36px 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 161, 112, 0.12), transparent 28%),
    radial-gradient(circle at 18% 22%, rgba(0, 209, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(9, 17, 34, 0.96), rgba(6, 11, 23, 0.95)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 209, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 46px rgba(0, 0, 0, 0.24);
}

.auth-loading[hidden] {
  display: none;
}

.auth-loading::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  border: 1px solid rgba(0, 209, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.06), transparent 36%, transparent 74%, rgba(122, 92, 255, 0.08)),
    rgba(255, 255, 255, 0.01);
  pointer-events: none;
}

.auth-loading-film {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 16px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(4, 9, 18, 0.94) 0 16px,
      rgba(92, 124, 152, 0.18) 16px 22px
    );
  opacity: 0.72;
}

.auth-loading-film-top {
  top: 18px;
}

.auth-loading-film-bottom {
  bottom: 18px;
}

.auth-loading-head,
.auth-loading-projector,
.auth-loading-meter,
.auth-loading-steps {
  position: relative;
  z-index: 1;
}

.auth-loading-projector {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 12px;
}

.auth-loading-reel {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(0, 209, 255, 0.18);
  background:
    radial-gradient(circle at center, rgba(10, 17, 30, 0.5) 0 20%, transparent 21%),
    radial-gradient(circle at 50% 16%, rgba(0, 209, 255, 0.72) 0 4px, transparent 5px),
    radial-gradient(circle at 84% 50%, rgba(255, 176, 97, 0.64) 0 4px, transparent 5px),
    radial-gradient(circle at 50% 84%, rgba(0, 209, 255, 0.72) 0 4px, transparent 5px),
    radial-gradient(circle at 16% 50%, rgba(255, 176, 97, 0.64) 0 4px, transparent 5px),
    linear-gradient(180deg, rgba(14, 24, 42, 0.96), rgba(7, 12, 24, 0.9));
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.02),
    0 0 18px rgba(0, 209, 255, 0.12);
  animation: authLoadingReelSpin 2.8s linear infinite;
}

.auth-loading-reel-right {
  animation-direction: reverse;
}

.auth-loading-beam {
  position: relative;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.auth-loading-beam::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 209, 255, 0.08), rgba(111, 241, 255, 0.92), rgba(255, 171, 98, 0.84), rgba(0, 209, 255, 0.08));
  box-shadow:
    0 0 18px rgba(0, 209, 255, 0.18),
    0 0 26px rgba(255, 171, 98, 0.12);
  animation: authLoadingBeamSweep 1.8s ease-in-out infinite;
}

.auth-loading-head {
  display: grid;
  gap: 10px;
}

.auth-loading-kicker {
  color: rgba(118, 225, 255, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.auth-loading-head strong {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.12;
}

.auth-loading-head p {
  margin: 0;
  color: rgba(208, 222, 240, 0.76);
  line-height: 1.7;
}

.auth-loading-meter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.auth-loading-meter span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(0, 209, 255, 0.3), rgba(255, 176, 97, 0.88), rgba(0, 255, 178, 0.42));
  box-shadow: 0 0 14px rgba(0, 209, 255, 0.14);
  transform-origin: left center;
  animation: authLoadingMeterPulse 1.2s ease-in-out infinite;
}

.auth-loading-meter span:nth-child(2) {
  animation-delay: 0.12s;
}

.auth-loading-meter span:nth-child(3) {
  animation-delay: 0.24s;
}

.auth-loading-meter span:nth-child(4) {
  animation-delay: 0.36s;
}

.auth-loading-meter span:nth-child(5) {
  animation-delay: 0.48s;
}

.auth-loading-steps {
  display: grid;
  gap: 12px;
}

.auth-loading-step {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 209, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.auth-loading-step:nth-child(2) .auth-loading-step-dot {
  animation-delay: 0.18s;
}

.auth-loading-step:nth-child(3) .auth-loading-step-dot {
  animation-delay: 0.36s;
}

.auth-loading-step-dot {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98), rgba(0, 209, 255, 0.88) 56%, rgba(0, 209, 255, 0.08) 78%);
  box-shadow:
    0 0 12px rgba(0, 209, 255, 0.26),
    0 0 20px rgba(255, 176, 97, 0.1);
  animation: authLoadingDotPulse 1.2s ease-in-out infinite;
}

.auth-loading-step strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(238, 248, 255, 0.96);
  font-size: 0.9rem;
}

.auth-loading-step small {
  color: rgba(173, 194, 215, 0.68);
  font-size: 0.78rem;
  line-height: 1.55;
}

.auth-card-foot {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 209, 255, 0.1);
}

.auth-foot-kicker {
  color: rgba(122, 219, 255, 0.76);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-card-foot strong {
  color: rgba(232, 245, 255, 0.92);
  font-size: 0.94rem;
  line-height: 1.55;
}

@keyframes authFanSweep {
  0%,
  100% {
    transform: var(--fan-base) rotate(-18deg) scale(0.94);
    opacity: 0.18;
  }
  18% {
    opacity: 0.44;
  }
  52% {
    transform: var(--fan-base) rotate(4deg) scale(1.04);
    opacity: 0.7;
  }
  78% {
    opacity: 0.34;
  }
}

@keyframes authBandDrift {
  0%,
  100% {
    opacity: 0.18;
    filter: blur(0px);
  }
  50% {
    opacity: 0.82;
    filter: blur(0.4px);
  }
}

@keyframes authLoadingReelSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(1turn);
  }
}

@keyframes authLoadingBeamSweep {
  0%,
  100% {
    transform: translateX(-16%) scaleX(0.86);
    opacity: 0.72;
  }
  50% {
    transform: translateX(16%) scaleX(1.04);
    opacity: 1;
  }
}

@keyframes authLoadingMeterPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scaleX(0.42);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes authLoadingDotPulse {
  0%,
  100% {
    transform: scale(0.72);
    opacity: 0.48;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes authParticleFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.22);
  }
  10% {
    opacity: 1;
  }
  72% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.36;
  }
  100% {
    opacity: 0;
    transform: translate3d(
      var(--travel-x, 180px),
      var(--travel-y, 0px),
      0
    ) scale(1.18);
  }
}

@keyframes authParticleFlicker {
  0%,
  100% {
    filter: blur(0px) brightness(1);
  }
  50% {
    filter: blur(0.75px) brightness(1.26);
  }
}

@keyframes authMetricFlash {
  0% {
    opacity: 0.48;
    transform: translateY(5px) scale(0.96);
    text-shadow: none;
  }
  55% {
    opacity: 1;
    transform: translateY(0) scale(1.04);
    text-shadow:
      0 0 10px rgba(120, 240, 255, 0.28),
      0 0 18px rgba(255, 176, 97, 0.14);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    text-shadow: none;
  }
}

.background-grid,
.scanlines,
.ambient-orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background-grid {
  background-image:
    linear-gradient(rgba(0, 209, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 209, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
}

.scanlines {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.018) 50%,
    transparent
  );
  background-size: 100% 5px;
  opacity: 0.16;
}

.ambient-orb {
  filter: blur(80px);
  opacity: 0.34;
}

.orb-a {
  inset: 8% auto auto 6%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.22), transparent 68%);
}

.orb-b {
  inset: auto 4% 12% auto;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(122, 92, 255, 0.22), transparent 72%);
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(17, 27, 49, 0.62), rgba(8, 14, 28, 0.84)),
    rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(0, 209, 255, 0.08),
    transparent 28%,
    transparent 72%,
    rgba(122, 92, 255, 0.08)
  );
  pointer-events: none;
}

.auth-hero.panel,
.auth-card.panel {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

.auth-hero.panel::before,
.auth-card.panel::before {
  content: none;
}

.eyebrow,
.section-label,
.toolbar-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.topbar,
.grid-shell {
  z-index: 1;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, 0.92fr);
  gap: 18px;
  padding: 22px 24px;
}

.brand-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.78fr);
  gap: 24px;
  align-items: stretch;
  min-width: 0;
  padding-top: 6px;
}

.brand-copy {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.brand-block h1 {
  margin: 0;
  max-width: 18ch;
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.brand-block p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.brand-visual {
  position: relative;
  min-height: 258px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 209, 255, 0.12);
  background:
    radial-gradient(circle at center, rgba(0, 209, 255, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(9, 16, 32, 0.88), rgba(5, 10, 22, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 16px 34px rgba(0, 0, 0, 0.24);
  isolation: isolate;
}

.brand-visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 1px solid rgba(0, 209, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.04), transparent 34%, transparent 72%, rgba(122, 92, 255, 0.06)),
    rgba(255, 255, 255, 0.01);
  pointer-events: none;
  z-index: 2;
}

.brand-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(10, 15, 28, 0) 42%, rgba(10, 15, 28, 0.08) 78%, rgba(10, 15, 28, 0.22) 100%),
    linear-gradient(90deg, rgba(10, 15, 28, 0.28), rgba(10, 15, 28, 0.02) 18%, rgba(10, 15, 28, 0.02) 82%, rgba(10, 15, 28, 0.28)),
    linear-gradient(180deg, rgba(10, 15, 28, 0.34), rgba(10, 15, 28, 0.02) 22%, rgba(10, 15, 28, 0.02) 78%, rgba(10, 15, 28, 0.34));
  pointer-events: none;
  z-index: 1;
}

.brand-visual-image {
  position: absolute;
  inset: -10px;
  background:
    radial-gradient(circle at center, rgba(0, 209, 255, 0.08), transparent 58%),
    url("./hero-p1.png") center center / cover no-repeat;
  opacity: 1;
  filter: saturate(1.12) brightness(1.06) contrast(1.12) blur(0.35px);
  transform: scale(1.015);
}

.brand-visual-image::after {
  content: "";
  position: absolute;
  inset: -24px;
  background: url("./hero-p1.png") center center / cover no-repeat;
  opacity: 0.96;
  filter: saturate(1.02) brightness(0.94) blur(26px);
  transform: scale(1.12);
  -webkit-mask-image: radial-gradient(circle at center, transparent 36%, rgba(0, 0, 0, 0.82) 66%, #000 100%);
  mask-image: radial-gradient(circle at center, transparent 36%, rgba(0, 0, 0, 0.82) 66%, #000 100%);
  pointer-events: none;
}

.topbar-side {
  display: contents;
}

.topbar-controls {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 228px;
  grid-template-areas:
    "context context"
    "head actions"
    "cluster cluster";
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(0, 209, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(122, 92, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(0, 209, 255, 0.08), transparent 26%, transparent 70%, rgba(122, 92, 255, 0.12)),
    linear-gradient(180deg, rgba(12, 21, 41, 0.84), rgba(8, 13, 26, 0.94)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 209, 255, 0.06);
}

.topbar-context-bar {
  grid-area: context;
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px 14px;
  margin: -2px 0 2px;
}

.context-launch-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px 12px;
}

.benchmark-launch {
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 0;
}

.benchmark-launch-eyebrow {
  justify-self: end;
}

.benchmark-open-btn {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  color: #f2fbff;
  font: inherit;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 209, 255, 0.38),
    0 0 26px rgba(0, 209, 255, 0.22),
    0 0 42px rgba(122, 92, 255, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.benchmark-open-btn:focus {
  outline: none;
}

.benchmark-open-btn:focus-visible {
  outline: 2px solid rgba(0, 255, 178, 0.55);
  outline-offset: 3px;
}

.benchmark-open-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.14) 50%, transparent 72%);
  animation: benchmarkShine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes benchmarkShine {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-55%);
  }
  40% {
    opacity: 0.85;
  }
  55% {
    opacity: 0;
    transform: translateX(55%);
  }
}

.benchmark-open-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px 10px 16px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(122, 92, 255, 0.42), rgba(0, 209, 255, 0.26)),
    linear-gradient(180deg, rgba(14, 24, 48, 0.97), rgba(6, 11, 24, 0.99));
  border: 1px solid rgba(0, 209, 255, 0.28);
}

.benchmark-open-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0, 255, 178, 0.32),
    0 0 34px rgba(0, 209, 255, 0.32),
    0 0 52px rgba(122, 92, 255, 0.22);
}

.benchmark-open-btn:hover .benchmark-open-inner {
  border-color: rgba(0, 255, 178, 0.28);
}

.benchmark-open-icon {
  flex: 0 0 auto;
  color: var(--green);
  filter: drop-shadow(0 0 10px rgba(0, 255, 178, 0.4));
}

.benchmark-open-label {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ops-config-launch {
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 0;
}

.ops-config-launch-eyebrow {
  justify-self: end;
}

.ops-config-open-btn {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  color: #f7fbff;
  font: inherit;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 163, 255, 0.38),
    0 0 26px rgba(0, 163, 255, 0.2),
    0 0 40px rgba(255, 180, 72, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ops-config-open-btn:focus {
  outline: none;
}

.ops-config-open-btn:focus-visible {
  outline: 2px solid rgba(0, 163, 255, 0.55);
  outline-offset: 3px;
}

.ops-config-open-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.12) 50%, transparent 72%);
  animation: benchmarkShine 5.5s ease-in-out infinite;
  pointer-events: none;
}

.ops-config-open-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px 10px 16px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 186, 92, 0.22), rgba(0, 163, 255, 0.22)),
    linear-gradient(180deg, rgba(14, 24, 48, 0.97), rgba(6, 11, 24, 0.99));
  border: 1px solid rgba(0, 163, 255, 0.3);
}

.ops-config-open-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0, 163, 255, 0.42),
    0 0 34px rgba(0, 163, 255, 0.28),
    0 0 48px rgba(255, 186, 92, 0.14);
}

.ops-config-open-btn:hover .ops-config-open-inner {
  border-color: rgba(0, 200, 255, 0.38);
}

.ops-config-open-icon {
  flex: 0 0 auto;
  color: #5cd6ff;
  filter: drop-shadow(0 0 10px rgba(0, 163, 255, 0.45));
}

.ops-config-open-label {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.context-field {
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 0;
  margin: 0;
  cursor: default;
}

.context-field .toolbar-label {
  justify-self: end;
}

@media (min-width: 1024px) {
  .topbar-context-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    justify-content: stretch;
    gap: 10px 12px;
  }

  .context-launch-cluster {
    display: contents;
  }

  .context-field,
  .benchmark-launch,
  .ops-config-launch {
    justify-items: stretch;
  }

  .context-field .toolbar-label,
  .benchmark-launch-eyebrow,
  .ops-config-launch-eyebrow {
    justify-self: start;
  }

  .benchmark-open-btn,
  .ops-config-open-btn,
  .cinema-dropdown,
  .date-dropdown {
    width: 100%;
  }

  .benchmark-open-inner,
  .ops-config-open-inner {
    justify-content: center;
    padding: 10px 12px;
  }

  .benchmark-open-label,
  .ops-config-open-label {
    letter-spacing: 0.06em;
  }
}

.context-select {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 209, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(8, 17, 34, 0.98), rgba(5, 10, 22, 0.96)),
    rgba(255, 255, 255, 0.03);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 14px rgba(0, 209, 255, 0.06);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.context-select:hover {
  border-color: var(--line-strong);
  box-shadow: var(--glow-cyan), 0 0 12px rgba(0, 209, 255, 0.1);
}

.context-select:focus {
  outline: none;
  border-color: rgba(0, 255, 178, 0.32);
  box-shadow: 0 0 0 1px rgba(0, 255, 178, 0.12), 0 0 18px rgba(0, 255, 178, 0.12);
}

button.context-select:focus-visible {
  outline: 2px solid rgba(0, 255, 178, 0.45);
  outline-offset: 2px;
}

.cinema-dropdown {
  position: relative;
  min-width: min(200px, 100%);
  max-width: 100%;
}

.cinema-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding-right: 10px;
  text-align: left;
}

.cinema-dropdown-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cinema-dropdown-chevron {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--cyan);
  transition: transform 0.2s ease;
}

.cinema-dropdown.is-open .cinema-dropdown-chevron {
  transform: rotate(180deg);
}

.cinema-dropdown-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: 100%;
  width: max-content;
  max-width: min(320px, calc(100vw - 48px));
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  border: 1px solid rgba(0, 209, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(10, 18, 36, 0.98), rgba(6, 11, 24, 0.98)),
    rgba(8, 14, 28, 0.96);
  box-shadow:
    0 0 0 1px rgba(0, 209, 255, 0.06),
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(0, 209, 255, 0.12);
  backdrop-filter: blur(16px);
}

.cinema-dropdown-menu[hidden] {
  display: none !important;
}

.cinema-dropdown-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.cinema-dropdown-option:hover,
.cinema-dropdown-option:focus {
  outline: none;
  border-color: rgba(0, 209, 255, 0.2);
  background: rgba(0, 209, 255, 0.1);
  color: #f2fbff;
}

.cinema-dropdown-option:focus-visible {
  outline: 2px solid rgba(0, 255, 178, 0.35);
  outline-offset: 0;
}

.cinema-dropdown-option.is-selected {
  border-color: rgba(0, 255, 178, 0.22);
  background: rgba(0, 255, 178, 0.08);
  color: var(--green);
}

/* 自定义日期面板（替代原生 date 弹出层，便于与 HUD 风格统一） */
.date-dropdown {
  position: relative;
  min-width: min(168px, 100%);
  max-width: 100%;
}

.date-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  padding-right: 10px;
}

.date-dropdown-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.date-dropdown-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--cyan);
  transition: color 0.2s ease;
}

.date-dropdown.is-open .date-dropdown-icon {
  color: var(--green);
}

.date-dropdown-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  right: 0;
  width: min(300px, calc(100vw - 48px));
  padding: 12px 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(0, 209, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(10, 18, 36, 0.99), rgba(5, 10, 22, 0.99)),
    rgba(8, 14, 28, 0.97);
  box-shadow:
    0 0 0 1px rgba(0, 209, 255, 0.08),
    0 22px 56px rgba(0, 0, 0, 0.58),
    0 0 36px rgba(0, 209, 255, 0.14),
    0 0 48px rgba(122, 92, 255, 0.08);
  backdrop-filter: blur(18px);
}

.date-dropdown-panel[hidden] {
  display: none !important;
}

.date-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.date-month-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: #f0f9ff;
  text-shadow: 0 0 18px rgba(0, 209, 255, 0.12);
}

.date-nav-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 209, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(8, 17, 34, 0.96), rgba(5, 10, 22, 0.94)),
    rgba(255, 255, 255, 0.03);
  color: var(--cyan);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.date-nav-btn:hover {
  border-color: var(--line-strong);
  box-shadow: var(--glow-cyan);
  color: #e8ffff;
}

.date-nav-btn:focus-visible {
  outline: 2px solid rgba(0, 255, 178, 0.4);
  outline-offset: 2px;
}

.date-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}

.date-weekdays span {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(0, 209, 255, 0.85);
  text-transform: uppercase;
}

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

.date-day {
  min-height: 34px;
  padding: 4px 2px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.date-day.is-muted {
  color: rgba(232, 247, 255, 0.22);
}

.date-day:hover {
  border-color: rgba(0, 209, 255, 0.28);
  background: rgba(0, 209, 255, 0.1);
  color: #f5fcff;
}

.date-day:focus-visible {
  outline: 2px solid rgba(0, 255, 178, 0.35);
  outline-offset: 0;
}

.date-day.is-selected {
  border-color: rgba(0, 255, 178, 0.42);
  background: rgba(0, 255, 178, 0.12);
  color: var(--green);
  box-shadow:
    inset 0 0 0 1px rgba(0, 255, 178, 0.12),
    0 0 16px rgba(0, 255, 178, 0.14);
}

.date-dropdown-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 209, 255, 0.12);
}

.date-foot-btn {
  flex: 1 1 auto;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 209, 255, 0.22);
  background: rgba(0, 209, 255, 0.06);
  color: var(--cyan);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.date-foot-btn:hover {
  border-color: rgba(0, 209, 255, 0.38);
  background: rgba(0, 209, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 209, 255, 0.12);
}

.date-foot-btn-primary {
  border-color: rgba(0, 255, 178, 0.32);
  background: rgba(0, 255, 178, 0.1);
  color: var(--green);
}

.date-foot-btn-primary:hover {
  border-color: rgba(0, 255, 178, 0.45);
  background: rgba(0, 255, 178, 0.16);
  box-shadow: 0 0 18px rgba(0, 255, 178, 0.14);
}

.topbar-controls::before {
  content: "SETTINGS BAY";
  position: absolute;
  top: 52px;
  right: 16px;
  color: rgba(0, 209, 255, 0.16);
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  pointer-events: none;
}

.topbar-controls::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(0, 209, 255, 0.08);
  pointer-events: none;
}

.control-deck-head {
  grid-area: head;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  padding-right: 0;
}

.control-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.control-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #cfe7ff;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.control-badge.is-live {
  border-color: rgba(0, 255, 178, 0.22);
  background: rgba(0, 255, 178, 0.08);
  color: var(--green);
}

.status-strip {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.status-card {
  min-height: 112px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(10, 18, 40, 0.92), rgba(5, 10, 24, 0.88)),
    rgba(255, 255, 255, 0.03);
}

.status-card span,
.status-card small {
  display: block;
}

.status-card span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1;
  color: var(--green);
  text-shadow: 0 0 18px rgba(0, 255, 178, 0.16);
}

.status-card small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.toolbar-copy {
  display: grid;
  gap: 8px;
  align-content: start;
}

.toolbar-copy-compact {
  min-width: 0;
  align-self: stretch;
  padding: 0;
}

.toolbar-copy strong {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 1.14rem;
}

.toolbar-copy-compact strong {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.toolbar-copy p,
.mode-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.toolbar-copy-compact p {
  font-size: 0.78rem;
  line-height: 1.4;
  max-width: none;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.toolbar-stack,
.toolbar-actions {
  display: grid;
  gap: 14px;
  align-content: start;
}

.topbar-controls .toolbar-stack {
  gap: 12px;
}

.control-cluster {
  grid-area: cluster;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-self: stretch;
  min-width: 0;
}

.toolbar-group {
  display: grid;
  gap: 10px;
}

.control-group,
.action-shell {
  position: relative;
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(10, 18, 37, 0.9), rgba(5, 10, 22, 0.9)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.control-group::before,
.action-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(0, 209, 255, 0.06),
    transparent 34%,
    transparent 72%,
    rgba(122, 92, 255, 0.08)
  );
  pointer-events: none;
}

.topbar-controls .toolbar-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.segmented-control,
.preset-strip,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-controls .segmented-control,
.topbar-controls .preset-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.segmented-button,
.preset-button,
.action-button,
.widget-control-button,
.context-action,
.context-option,
.focus-close {
  border: 1px solid rgba(0, 209, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(13, 22, 44, 0.94), rgba(7, 12, 24, 0.88)),
    rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.segmented-button:hover,
.preset-button:hover,
.action-button:hover,
.widget-control-button:hover,
.context-action:hover,
.context-option:hover,
.focus-close:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--glow-cyan), var(--glow-purple);
}

.segmented-button,
.preset-button {
  min-height: 42px;
  padding: 10px 14px;
}

.segmented-button.is-active,
.preset-button.is-active {
  border-color: rgba(122, 92, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.12), rgba(122, 92, 255, 0.16)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--glow-cyan), var(--glow-purple);
}

.action-button {
  min-height: 42px;
  padding: 10px 14px;
}

.action-button.ghost {
  color: #dce2ff;
}

.action-button.danger {
  border-color: rgba(255, 107, 123, 0.22);
  background:
    linear-gradient(180deg, rgba(44, 12, 22, 0.94), rgba(20, 6, 11, 0.9)),
    rgba(255, 255, 255, 0.03);
  color: #ffe5ea;
}

.action-button.danger:hover {
  border-color: rgba(255, 107, 123, 0.42);
  box-shadow:
    0 0 20px rgba(255, 107, 123, 0.16),
    0 0 30px rgba(255, 107, 123, 0.08);
}

.topbar-logout-button {
  position: static;
  z-index: auto;
  width: 100%;
  height: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 14px;
}

.topbar-logout-button .action-button-inner {
  grid-template-columns: 24px minmax(0, 1fr);
  justify-items: stretch;
  gap: 8px;
}

.topbar-logout-button .action-button-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 10px;
}

.topbar-logout-button .action-button-icon svg {
  width: 14px;
  height: 14px;
}

.topbar-logout-button .action-button-label {
  display: block;
}

.topbar-controls .segmented-button,
.topbar-controls .preset-button,
.topbar-controls .action-button {
  min-height: 44px;
  padding: 8px 10px;
}

.topbar-controls .action-button {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  white-space: nowrap;
}

.action-button-inner {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
}

.action-button-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar-controls .toolbar-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  justify-items: stretch;
  min-width: 0;
  width: 100%;
  justify-self: stretch;
  align-self: start;
}

.toolbar-utility-row {
  display: contents;
}

.topbar-controls .action-row {
  display: contents;
}

.topbar-controls .action-shell {
  display: contents;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.topbar-controls .action-shell::before,
.topbar-controls #action-shell-label {
  display: none;
}

.topbar-controls .language-button {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  border-radius: 18px;
  border-color: rgba(0, 209, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.14), rgba(122, 92, 255, 0.16)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 20px rgba(0, 209, 255, 0.12),
    0 0 24px rgba(122, 92, 255, 0.08);
}

.topbar-controls .language-button:hover {
  border-color: rgba(0, 255, 178, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 22px rgba(0, 209, 255, 0.16),
    0 0 28px rgba(122, 92, 255, 0.12);
}

.topbar-controls .language-button .action-button-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-controls .language-button.is-english {
  border-color: rgba(0, 255, 178, 0.28);
  background:
    linear-gradient(180deg, rgba(8, 28, 24, 0.96), rgba(4, 14, 16, 0.92)),
    rgba(0, 255, 178, 0.08);
}

.topbar-controls .language-button.is-english .action-button-icon,
.topbar-controls .language-button.is-english .action-button-label {
  color: var(--green);
}

.topbar-controls .mode-note {
  grid-column: 1 / -1;
  max-width: none;
  font-size: 0.76rem;
  text-align: left;
  line-height: 1.38;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-controls .segmented-button,
.topbar-controls .preset-button {
  position: relative;
  min-width: 0;
  width: 100%;
  justify-content: flex-start;
  border-radius: 18px;
  border-color: rgba(0, 209, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(8, 17, 34, 0.96), rgba(5, 10, 22, 0.94)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(0, 209, 255, 0.04),
    0 0 18px rgba(0, 209, 255, 0.06);
}

.topbar-controls .segmented-button::before,
.topbar-controls .preset-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(0, 209, 255, 0.08),
    transparent 34%,
    transparent 72%,
    rgba(122, 92, 255, 0.08)
  );
  pointer-events: none;
}

.topbar-controls .segmented-button:hover,
.topbar-controls .preset-button:hover {
  border-color: rgba(0, 209, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(0, 209, 255, 0.06),
    0 0 22px rgba(0, 209, 255, 0.1),
    0 0 26px rgba(122, 92, 255, 0.08);
}

.control-button-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: left;
}

.control-button-icon,
.action-button-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 9px;
  border: 1px solid rgba(0, 209, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(15, 24, 46, 0.96), rgba(6, 12, 24, 0.92)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 16px rgba(0, 209, 255, 0.12);
  color: var(--cyan);
}

.control-button-icon svg,
.action-button-icon svg {
  width: 15px;
  height: 15px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.action-button.danger .action-button-icon,
.action-button.danger .action-button-label {
  color: #ff9eac;
}

.control-button-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.control-button-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.control-button-meta {
  display: none;
}

.icon-ai-auto,
.icon-prime-time,
.icon-save-preset {
  color: var(--cyan);
  border-color: rgba(0, 209, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.12), rgba(11, 24, 42, 0.88)),
    rgba(255, 255, 255, 0.04);
}

.icon-hybrid,
.icon-concession-push,
.icon-reset-layout {
  color: #d9d2ff;
  border-color: rgba(122, 92, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(122, 92, 255, 0.16), rgba(11, 24, 42, 0.88)),
    rgba(255, 255, 255, 0.04);
}

.icon-manual,
.icon-night-watch {
  color: var(--green);
  border-color: rgba(0, 255, 178, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 255, 178, 0.14), rgba(11, 24, 42, 0.88)),
    rgba(255, 255, 255, 0.04);
}

.icon-language-toggle {
  color: #d9d2ff;
  border-color: rgba(122, 92, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(122, 92, 255, 0.18), rgba(11, 24, 42, 0.88)),
    rgba(255, 255, 255, 0.04);
}

.topbar-controls .segmented-button.is-active .control-button-title,
.topbar-controls .preset-button.is-active .control-button-title {
  color: var(--green);
}

.topbar-controls .segmented-button.is-active,
.topbar-controls .preset-button.is-active {
  border-color: rgba(0, 255, 178, 0.28);
  background:
    linear-gradient(180deg, rgba(7, 18, 26, 0.96), rgba(4, 12, 20, 0.94)),
    rgba(0, 255, 178, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(0, 255, 178, 0.04),
    0 0 0 1px rgba(0, 255, 178, 0.08),
    0 0 18px rgba(0, 255, 178, 0.12);
}

.topbar-controls .segmented-button.is-active .control-button-icon,
.topbar-controls .preset-button.is-active .control-button-icon {
  color: var(--green);
  border-color: rgba(0, 255, 178, 0.26);
  background:
    linear-gradient(180deg, rgba(8, 28, 24, 0.96), rgba(4, 14, 16, 0.92)),
    rgba(0, 255, 178, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 14px rgba(0, 255, 178, 0.12);
}

.topbar-controls .segmented-button.is-active .control-button-copy,
.topbar-controls .preset-button.is-active .control-button-copy {
  color: var(--green);
}

.mode-note-emphasis {
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(122, 92, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.08), rgba(122, 92, 255, 0.12)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 20px rgba(122, 92, 255, 0.08);
}

.cockpit-workspace {
  margin-top: 14px;
}

.grid-shell {
  padding: 20px;
}

.grid-shell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.grid-copy {
  display: grid;
  gap: 8px;
}

.grid-copy strong {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 1.18rem;
}

.grid-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.meta-chip[hidden] {
  display: none !important;
}

.meta-chip.critical {
  border-color: rgba(0, 255, 178, 0.22);
  background: rgba(0, 255, 178, 0.08);
  color: var(--green);
}

.meta-chip-ops {
  text-transform: none;
  max-width: min(440px, 90vw);
  white-space: normal;
  line-height: 1.35;
  font-size: 0.72rem;
  text-align: left;
  letter-spacing: 0.04em;
  color: rgba(0, 209, 255, 0.92);
  border-color: rgba(0, 163, 255, 0.28);
}

.ops-sections-strip {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(0, 163, 255, 0.18);
  background:
    linear-gradient(140deg, rgba(5, 20, 34, 0.92), rgba(7, 32, 51, 0.78)),
    radial-gradient(circle at top left, rgba(0, 209, 255, 0.16), transparent 58%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 40px rgba(3, 10, 22, 0.2);
}

.ops-sections-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ops-sections-strip-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(122, 219, 255, 0.76);
}

.ops-sections-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ops-metric-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(111, 201, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(18, 40, 59, 0.96), rgba(10, 24, 39, 0.88)),
    radial-gradient(circle at top right, rgba(91, 194, 255, 0.12), transparent 56%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 44px rgba(2, 8, 18, 0.24);
}

.ops-metric-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%);
}

.ops-metric-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ops-metric-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  color: rgba(240, 248, 255, 0.96);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ops-metric-card-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: rgba(240, 247, 255, 0.78);
  box-shadow: 0 0 12px rgba(130, 226, 255, 0.26);
}

.ops-metric-card-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 178, 0.16);
  background: rgba(0, 255, 178, 0.1);
  color: #6ef3be;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.ops-metric-card-delta.is-negative {
  border-color: rgba(255, 112, 151, 0.18);
  background: rgba(255, 112, 151, 0.1);
  color: #ff9cbb;
}

.ops-metric-card-value {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.ops-metric-card-value strong {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: clamp(1.8rem, 2.2vw, 2.45rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(250, 252, 255, 0.98);
}

.ops-metric-card-value span {
  padding-bottom: 4px;
  color: rgba(214, 228, 240, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.ops-metric-card-notes {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.ops-metric-card-note {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: rgba(178, 203, 221, 0.72);
  font-size: 0.8rem;
  line-height: 1.45;
}

.ops-metric-card-note span {
  flex: 0 0 auto;
}

.ops-metric-card-note strong {
  margin-left: auto;
  color: rgba(242, 247, 255, 0.92);
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.ops-metric-card-insight {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(98, 172, 225, 0.14);
  background:
    linear-gradient(180deg, rgba(8, 17, 30, 0.92), rgba(11, 20, 33, 0.86)),
    radial-gradient(circle at top left, rgba(0, 209, 255, 0.08), transparent 48%);
}

.ops-metric-card-insight-head,
.ops-metric-card-insight-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ops-metric-card-insight-head {
  margin-bottom: 12px;
  color: rgba(142, 174, 200, 0.68);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ops-metric-card-insight-row {
  align-items: baseline;
  color: rgba(152, 183, 208, 0.72);
  font-size: 0.78rem;
  line-height: 1.45;
}

.ops-metric-card-insight-row + .ops-metric-card-insight-row {
  margin-top: 8px;
}

.ops-metric-card-insight strong {
  color: rgba(240, 246, 255, 0.96);
  text-align: right;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.grid-stage {
  position: relative;
  margin-top: 18px;
  min-height: 980px;
  border-radius: 28px;
  border: 1px solid rgba(0, 209, 255, 0.14);
  background:
    linear-gradient(rgba(0, 209, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 209, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(10, 18, 38, 0.88), rgba(6, 10, 22, 0.96));
  background-size: calc((100% - (2 * var(--grid-stage-side-padding)) - (11 * var(--grid-gap))) / 12 + var(--grid-gap)) calc(var(--row-height) + var(--grid-gap)),
    calc((100% - (2 * var(--grid-stage-side-padding)) - (11 * var(--grid-gap))) / 12 + var(--grid-gap)) calc(var(--row-height) + var(--grid-gap)),
    auto;
  background-position: var(--grid-stage-side-padding) var(--grid-stage-top-padding),
    var(--grid-stage-side-padding) var(--grid-stage-top-padding),
    0 0;
  overflow: hidden;
}

.group-layer,
.grid-canvas,
.drop-outline {
  position: absolute;
  inset: 0;
}

.group-layer {
  pointer-events: none;
}

.group-halo {
  position: absolute;
  border-radius: 24px;
  border: 1px solid rgba(0, 209, 255, 0.08);
  background: rgba(255, 255, 255, 0.008);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.01);
}

.group-halo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.022));
}

.group-halo.group-revenue {
  border-color: rgba(0, 209, 255, 0.12);
  background: rgba(0, 209, 255, 0.025);
}

.group-halo.group-operations {
  border-color: rgba(0, 255, 178, 0.1);
  background: rgba(0, 255, 178, 0.024);
}

.group-halo.group-intelligence {
  border-color: rgba(122, 92, 255, 0.12);
  background: rgba(122, 92, 255, 0.028);
}

.group-halo.group-focus {
  border-color: rgba(255, 202, 87, 0.12);
  background: rgba(255, 202, 87, 0.026);
}

.group-halo-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 12, 24, 0.9);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.drop-outline {
  z-index: 8;
  border-radius: 24px;
  border: 2px dashed rgba(0, 209, 255, 0.65);
  background: rgba(0, 209, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 28px rgba(0, 209, 255, 0.24),
    0 0 34px rgba(122, 92, 255, 0.2);
  transition:
    left 0.14s ease,
    top 0.14s ease,
    width 0.14s ease,
    height 0.14s ease,
    opacity 0.14s ease;
  pointer-events: none;
}

.cockpit-widget {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 18px 16px 16px;
  border-radius: 24px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(11, 19, 38, 0.94), rgba(6, 11, 22, 0.88)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-soft);
  transition:
    left 0.28s cubic-bezier(0.2, 0.85, 0.2, 1),
    top 0.28s cubic-bezier(0.2, 0.85, 0.2, 1),
    width 0.28s cubic-bezier(0.2, 0.85, 0.2, 1),
    height 0.28s cubic-bezier(0.2, 0.85, 0.2, 1),
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.22s ease;
}

.cockpit-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 209, 255, 0.08), transparent 36%, transparent 72%, rgba(122, 92, 255, 0.12));
  pointer-events: none;
}

.cockpit-widget:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft), var(--glow-cyan), var(--glow-purple);
}

.cockpit-widget.group-revenue {
  border-color: rgba(0, 209, 255, 0.18);
}

.cockpit-widget.group-operations {
  border-color: rgba(0, 255, 178, 0.18);
}

.cockpit-widget.group-intelligence {
  border-color: rgba(122, 92, 255, 0.2);
}

.cockpit-widget.group-focus {
  border-color: rgba(255, 202, 87, 0.2);
}

.cockpit-widget.is-pinned {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 202, 87, 0.22),
    0 0 30px rgba(255, 202, 87, 0.12);
}

.cockpit-widget.is-critical {
  animation: criticalPulse 2.8s ease-in-out infinite;
}

.cockpit-widget.is-alert-warning {
  border-color: rgba(255, 202, 87, 0.32);
  animation: warningPulse 1.9s ease-in-out infinite;
}

.cockpit-widget.is-alert-warning::before {
  background: linear-gradient(135deg, rgba(255, 202, 87, 0.16), transparent 34%, transparent 72%, rgba(255, 202, 87, 0.1));
}

.cockpit-widget.is-alert-danger {
  border-color: rgba(255, 59, 59, 0.42);
  animation: dangerPulse 1.35s ease-in-out infinite;
}

.cockpit-widget.is-alert-danger::before {
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.2), transparent 34%, transparent 72%, rgba(255, 59, 59, 0.12));
}

.cockpit-widget.is-dragging,
.cockpit-widget.is-resizing {
  z-index: 10;
  transition: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 34px rgba(0, 209, 255, 0.24),
    0 0 42px rgba(122, 92, 255, 0.22);
}

.cockpit-widget.is-dragging {
  cursor: grabbing;
}

.widget-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.widget-heading {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.widget-group-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.widget-group-chip,
.widget-priority-chip,
.widget-size-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.widget-group-chip {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.group-revenue .widget-group-chip {
  color: var(--cyan);
  background: rgba(0, 209, 255, 0.08);
}

.group-operations .widget-group-chip {
  color: var(--green);
  background: rgba(0, 255, 178, 0.08);
}

.group-intelligence .widget-group-chip {
  color: #d9d2ff;
  background: rgba(122, 92, 255, 0.12);
}

.group-focus .widget-group-chip {
  color: var(--amber);
  background: rgba(255, 202, 87, 0.12);
}

.widget-priority-chip {
  color: var(--green);
  background: rgba(0, 255, 178, 0.08);
}

.widget-size-chip {
  color: #cfd7f8;
  background: rgba(255, 255, 255, 0.06);
}

.widget-heading strong {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 1.08rem;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-subline {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

[data-drag-handle] {
  cursor: grab;
  user-select: none;
}

.cockpit-widget.is-pinned [data-drag-handle] {
  cursor: default;
}

.cockpit-widget.is-dragging [data-drag-handle] {
  cursor: grabbing;
}

.widget-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cockpit-widget:hover .widget-controls,
.cockpit-widget.is-menu-open .widget-controls {
  opacity: 1;
  transform: translateY(0);
}

.widget-control-button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 0.76rem;
}

.widget-body {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: hidden;
}

.widget-stat-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-value {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1;
}

.hero-copy {
  display: grid;
  gap: 8px;
}

.hero-copy span {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-note {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.delta-pill,
.widget-pulse,
.widget-tag,
.widget-note-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 178, 0.22);
  background: rgba(0, 255, 178, 0.08);
  color: var(--green);
  white-space: nowrap;
}

.widget-note-tag {
  border-color: rgba(122, 92, 255, 0.22);
  background: rgba(122, 92, 255, 0.08);
  color: #ddd7ff;
}

.widget-pulse.warning {
  border-color: rgba(255, 202, 87, 0.24);
  background: rgba(255, 202, 87, 0.1);
  color: var(--amber);
}

.widget-pulse.danger {
  border-color: rgba(255, 59, 59, 0.24);
  background: rgba(255, 59, 59, 0.1);
  color: var(--red);
}

.sparkline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--spark-columns, 18), minmax(0, var(--spark-bar-width, 11px)));
  align-items: end;
  justify-content: start;
  justify-self: start;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  min-height: 112px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  background:
    linear-gradient(rgba(0, 209, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 209, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(9, 17, 36, 0.34), rgba(4, 9, 20, 0.84));
  background-size: 24px 24px, 24px 24px, auto;
  overflow: hidden;
}

.sparkline::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 209, 255, 0.08), rgba(0, 209, 255, 0.24), rgba(0, 209, 255, 0.08));
  pointer-events: none;
}

.spark-bar {
  display: block;
  align-self: end;
  min-height: 16px;
  border-radius: 6px 6px 2px 2px;
  background: rgba(0, 209, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 12px rgba(0, 209, 255, 0.14);
}

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

.mini-stat {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.mini-stat span,
.breakdown-row span,
.ops-row span,
.legend-row span,
.timeline-lane-head span,
.alert-item span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-stat strong,
.breakdown-row strong,
.ops-row strong,
.legend-row strong,
.alert-item strong {
  display: block;
  margin-top: 6px;
  font-size: 1.12rem;
  white-space: nowrap;
}

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

.ring-panel {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.progress-ring {
  --ring-fill: 72;
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(4, 10, 24, 1) 54%, transparent 55%),
    conic-gradient(from 210deg, rgba(255, 255, 255, 0.06) 0deg, rgba(255, 255, 255, 0.06) calc(var(--ring-fill) * 2.7deg), rgba(0, 209, 255, 1) calc(var(--ring-fill) * 3deg), rgba(0, 255, 178, 1) calc(var(--ring-fill) * 3.6deg), rgba(255, 255, 255, 0.05) calc(var(--ring-fill) * 3.6deg), rgba(255, 255, 255, 0.05) 360deg);
  box-shadow:
    inset 0 0 36px rgba(0, 0, 0, 0.55),
    0 0 34px rgba(0, 209, 255, 0.16);
}

.progress-ring::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 209, 255, 0.18);
}

.ring-center {
  position: absolute;
  inset: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 209, 255, 0.18);
  background: radial-gradient(circle at top, rgba(14, 44, 98, 0.9), rgba(5, 11, 24, 1));
}

.ring-center span {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.ring-center strong {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 1.48rem;
}

.ring-legend,
.ratio-breakdown,
.ops-list,
.alert-stack {
  display: grid;
  gap: 10px;
}

.legend-row,
.breakdown-row,
.ops-row,
.alert-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.ratio-stack {
  display: flex;
  gap: 8px;
  min-height: 16px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.ratio-segment {
  border-radius: inherit;
  box-shadow: 0 0 18px currentColor;
}

.ratio-segment.channel-app {
  color: var(--cyan);
  background: linear-gradient(90deg, rgba(0, 209, 255, 0.24), var(--cyan));
}

.ratio-segment.channel-member {
  color: var(--purple);
  background: linear-gradient(90deg, rgba(122, 92, 255, 0.24), var(--purple));
}

.ratio-segment.channel-walkin {
  color: var(--green);
  background: linear-gradient(90deg, rgba(0, 255, 178, 0.24), var(--green));
}

.ratio-segment.channel-group {
  color: var(--amber);
  background: linear-gradient(90deg, rgba(255, 202, 87, 0.22), var(--amber));
}

.timeline-board {
  display: grid;
  gap: 12px;
}

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

.timeline-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.timeline-lane-head strong {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-track {
  position: relative;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(0, 209, 255, 0.04), transparent),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.timeline-slot {
  position: absolute;
  top: 10px;
  bottom: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 209, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.16), rgba(122, 92, 255, 0.16)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 20px rgba(0, 209, 255, 0.12);
}

.timeline-slot.live {
  border-color: rgba(0, 255, 178, 0.28);
  background:
    linear-gradient(135deg, rgba(0, 255, 178, 0.18), rgba(0, 209, 255, 0.16)),
    rgba(255, 255, 255, 0.04);
}

.timeline-slot.alert {
  border-color: rgba(255, 202, 87, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 202, 87, 0.2), rgba(122, 92, 255, 0.14)),
    rgba(255, 255, 255, 0.04);
}

.timeline-slot span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.schedule-widget-root {
  display: grid;
  gap: 14px;
  min-height: 0;
}

.schedule-top-band {
  display: flex;
  gap: 14px;
  align-items: start;
}

.schedule-overview-panel {
  flex: 0 0 clamp(320px, 25vw, 460px);
  min-width: 0;
  display: grid;
  align-content: start;
}

.schedule-top-side {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.schedule-hero-row {
  align-items: start;
}

.schedule-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.schedule-metric {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(9, 18, 36, 0.92), rgba(7, 12, 24, 0.9)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 24px rgba(0, 209, 255, 0.08);
}

.schedule-metric span,
.schedule-metric small {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-metric strong {
  color: var(--green);
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 0.94rem;
  line-height: 1;
  white-space: nowrap;
}

.schedule-metric.is-positive strong,
.schedule-metric.is-positive small {
  color: var(--green);
}

.schedule-metric.is-negative strong,
.schedule-metric.is-negative small {
  color: #ff8a8a;
}

.schedule-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.schedule-action-button {
  position: relative;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 209, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.08), rgba(122, 92, 255, 0.14)),
    rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.schedule-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 209, 255, 0.3);
  box-shadow: 0 0 18px rgba(0, 209, 255, 0.16);
}

.schedule-action-button.is-primary {
  border-color: rgba(0, 255, 178, 0.26);
  background:
    linear-gradient(135deg, rgba(0, 255, 178, 0.18), rgba(0, 209, 255, 0.16)),
    rgba(255, 255, 255, 0.05);
  color: #dffff5;
}

.schedule-grid-shell {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 209, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(6, 12, 24, 0.96), rgba(4, 10, 22, 0.92));
  overflow: hidden;
}

.schedule-grid-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 209, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 209, 255, 0.04) 1px, transparent 1px);
  background-size: calc(100% / 14) 100%, calc(100% / 14) 100%;
  opacity: 0.38;
  pointer-events: none;
}

.schedule-time-axis {
  position: relative;
  height: 22px;
  margin-left: 110px;
}

.schedule-time-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  color: rgba(232, 247, 255, 0.86);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.schedule-time-tick::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 1px;
  height: 8px;
  transform: translateX(-50%);
  background: rgba(0, 209, 255, 0.24);
}

.schedule-lanes {
  display: grid;
  gap: 10px;
}

.schedule-lane {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.schedule-lane-head {
  display: grid;
  gap: 6px;
  align-content: center;
  min-width: 0;
}

.schedule-lane-head strong,
.schedule-lane-head span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-lane-head strong {
  color: var(--text);
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 0.84rem;
}

.schedule-lane-head span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.schedule-track {
  position: relative;
  min-height: 84px;
  border-radius: 18px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 209, 255, 0.04) 0,
      rgba(0, 209, 255, 0.04) calc(100% / 14),
      transparent calc(100% / 14),
      transparent calc((100% / 14) * 2)
    ),
    linear-gradient(180deg, rgba(10, 18, 34, 0.86), rgba(8, 13, 24, 0.92));
  overflow: hidden;
}

.schedule-track::before {
  content: "";
  position: absolute;
  inset: 10px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 209, 255, 0), rgba(0, 209, 255, 0.22), rgba(0, 209, 255, 0));
}

.schedule-suggestion-ghost {
  position: absolute;
  top: 10px;
  bottom: 10px;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 4px;
  min-width: 56px;
  border-radius: 14px;
  border: 1px dashed rgba(var(--ghost-accent-rgb, 0, 209, 255), 0.52);
  background:
    linear-gradient(180deg, rgba(var(--ghost-accent-rgb, 0, 209, 255), 0.16), rgba(var(--ghost-accent-rgb, 0, 209, 255), 0.06)),
    rgba(7, 12, 24, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(var(--ghost-accent-rgb, 0, 209, 255), 0.08),
    0 0 16px rgba(var(--ghost-accent-rgb, 0, 209, 255), 0.1);
  color: rgba(232, 247, 255, 0.9);
  pointer-events: none;
}

.schedule-suggestion-ghost span,
.schedule-suggestion-ghost strong {
  text-align: center;
  font-size: 0.68rem;
  white-space: nowrap;
}

.schedule-suggestion-ghost strong {
  color: rgba(var(--ghost-accent-rgb, 0, 209, 255), 0.96);
}

.schedule-session {
  position: absolute;
  top: 6px;
  bottom: 6px;
  z-index: 2;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 12px;
  align-items: stretch;
  min-width: 80px;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  border: 1px solid rgba(var(--session-accent-rgb, 0, 209, 255), calc(0.26 + var(--session-fill) * 0.14));
  background:
    linear-gradient(
      135deg,
      rgba(var(--session-accent-rgb, 0, 209, 255), calc(0.22 + var(--session-fill) * 0.16)) 0%,
      rgba(var(--session-accent-rgb, 0, 209, 255), calc(0.1 + var(--session-fill) * 0.08)) 52%,
      rgba(10, 18, 34, 0.94) 100%
    ),
    linear-gradient(180deg, rgba(22, 40, 68, 0.92), rgba(10, 20, 38, 0.96));
  box-shadow:
    0 0 18px rgba(var(--session-accent-rgb, 0, 209, 255), calc(0.14 + var(--session-fill) * 0.12)),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: grab;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.schedule-session::before {
  content: "";
  position: absolute;
  inset: 1px auto 1px 0;
  width: 2px;
  border-radius: 16px 0 0 16px;
  background: var(--session-accent);
  opacity: calc(0.36 + var(--session-fill) * 0.3);
}

.schedule-session::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    radial-gradient(circle at 16% 50%, rgba(var(--session-accent-rgb, 0, 209, 255), 0.22), transparent 58%);
  opacity: 0.82;
  pointer-events: none;
}

.schedule-session:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--session-accent-rgb, 0, 209, 255), 0.62);
  box-shadow:
    0 0 0 1px rgba(var(--session-accent-rgb, 0, 209, 255), 0.14),
    0 0 24px rgba(var(--session-accent-rgb, 0, 209, 255), 0.22);
}

.schedule-session.is-selected {
  border-color: rgba(0, 255, 178, 0.42);
  box-shadow:
    0 0 0 1px rgba(0, 255, 178, 0.14),
    0 0 26px rgba(0, 255, 178, 0.2);
}

.schedule-session.is-low {
  border-color: rgba(255, 202, 87, 0.34);
}

.schedule-session.is-important {
  box-shadow:
    0 0 0 1px rgba(var(--session-accent-rgb, 0, 209, 255), 0.16),
    0 0 22px rgba(var(--session-accent-rgb, 0, 209, 255), 0.22),
    0 0 28px rgba(var(--session-accent-rgb, 0, 209, 255), 0.14);
}

.schedule-session.is-conflict {
  border-color: rgba(255, 59, 59, 0.56);
  box-shadow:
    0 0 0 1px rgba(255, 59, 59, 0.22),
    0 0 22px rgba(255, 59, 59, 0.18);
}

.schedule-session-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 4px 7px;
  align-content: center;
  position: relative;
  z-index: 1;
}

.schedule-session-topline,
.schedule-session-meta,
.schedule-session-subline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.schedule-session-topline strong,
.schedule-session-meta span,
.schedule-session-subline span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-session-topline strong {
  font-size: 0.78rem;
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(var(--session-accent-rgb, 0, 209, 255), 0.18);
}

.schedule-session-meta span,
.schedule-session-subline span {
  font-size: 0.65rem;
  line-height: 1.05;
  color: rgba(232, 247, 255, 0.78);
}

.schedule-session-subline span:last-child {
  color: var(--green);
  font-weight: 600;
}

.schedule-session-badge {
  flex: 0 0 auto;
  min-height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(var(--session-accent-rgb, 0, 209, 255), 0.32);
  background: rgba(var(--session-accent-rgb, 0, 209, 255), 0.16);
  color: rgba(248, 252, 255, 0.94);
  font-size: 0.58rem;
  line-height: 16px;
  letter-spacing: 0.08em;
}

.session-resize-handle {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: col-resize;
}

.session-resize-handle::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  width: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.session-resize-handle.is-start::before {
  left: 5px;
}

.session-resize-handle.is-end::before {
  right: 5px;
}

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

.schedule-selected-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-selected-strip-compact {
  gap: 6px;
}

.schedule-selected-pill {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 247, 255, 0.82);
  font-size: 0.72rem;
  line-height: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-selected-strip-compact .schedule-selected-pill {
  min-height: 26px;
  padding: 0 9px;
  font-size: 0.68rem;
  line-height: 26px;
}

.schedule-ai-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(122, 92, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(0, 209, 255, 0.08), rgba(122, 92, 255, 0.12)),
    rgba(255, 255, 255, 0.04);
}

.schedule-ai-card.is-empty {
  border-style: dashed;
}

.schedule-ai-card.is-optimization {
  border-color: rgba(0, 209, 255, 0.24);
}

.schedule-card-kicker {
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.schedule-ai-card strong {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  line-height: 1.3;
}

.schedule-ai-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.schedule-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.schedule-ai-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.schedule-ai-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-ai-grid strong {
  color: var(--green);
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-optimization-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: rgba(232, 247, 255, 0.84);
  font-size: 0.76rem;
  line-height: 1.5;
}

.schedule-optimization-list li::marker {
  color: var(--cyan);
}

@media (max-width: 1100px) {
  .schedule-insight-grid {
    grid-template-columns: 1fr;
  }
}

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

.schedule-guide-row-compact {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.schedule-guide-row span {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 247, 255, 0.82);
  font-size: 0.72rem;
  line-height: 28px;
  white-space: nowrap;
}

.schedule-guide-row-compact span {
  min-height: 22px;
  padding: 0 8px;
  font-size: 0.64rem;
  line-height: 22px;
  letter-spacing: 0.01em;
  flex: 0 1 auto;
}

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

.recommendation-card {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(122, 92, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(0, 209, 255, 0.1), rgba(122, 92, 255, 0.14)),
    rgba(255, 255, 255, 0.03);
}

.recommendation-card strong {
  display: block;
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  line-height: 1.3;
}

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

.recommendation-card.is-selected {
  border-color: rgba(0, 209, 255, 0.32);
  box-shadow:
    0 0 24px rgba(0, 209, 255, 0.14),
    0 0 28px rgba(122, 92, 255, 0.12);
}

.recommendation-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.recommendation-action {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 209, 255, 0.18);
  background: rgba(0, 209, 255, 0.08);
  color: var(--cyan);
}

.radar-scope {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  border: 1px solid rgba(0, 209, 255, 0.14);
  background:
    radial-gradient(circle at center, rgba(0, 255, 178, 0.08), transparent 44%),
    radial-gradient(circle at center, rgba(0, 209, 255, 0.08), transparent 68%),
    rgba(4, 10, 22, 0.92);
  overflow: hidden;
}

.radar-scope::before,
.radar-scope::after,
.radar-ring {
  content: "";
  position: absolute;
  inset: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 209, 255, 0.12);
}

.radar-scope::before {
  width: 36%;
  height: 36%;
}

.radar-scope::after {
  width: 64%;
  height: 64%;
}

.radar-ring {
  width: 84%;
  height: 84%;
}

.radar-sweep {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: radarSweep 4.8s linear infinite;
  will-change: transform;
}

.radar-sweep::before,
.radar-sweep::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 100%;
}

.radar-sweep::before {
  width: 42px;
  height: 66%;
  transform: translate(-18%, -100%) rotate(-9deg);
  background: linear-gradient(
    to top,
    rgba(0, 209, 255, 0) 0%,
    rgba(0, 209, 255, 0.02) 18%,
    rgba(0, 209, 255, 0.08) 46%,
    rgba(0, 209, 255, 0.16) 74%,
    rgba(0, 209, 255, 0.22) 100%
  );
  clip-path: polygon(8% 100%, 42% 100%, 100% 0, 0 0);
  filter: blur(8px);
  opacity: 0.72;
  mix-blend-mode: screen;
}

.radar-sweep::after {
  width: 2px;
  height: 62%;
  transform: translate(-50%, -100%);
  background: linear-gradient(
    to top,
    rgba(0, 209, 255, 0) 0%,
    rgba(0, 209, 255, 0.14) 28%,
    rgba(0, 209, 255, 0.72) 100%
  );
  box-shadow: 0 0 10px rgba(0, 209, 255, 0.12);
}

.radar-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(0, 209, 255, 0.05);
}

.radar-node.hot {
  background: var(--green);
  box-shadow:
    0 0 0 8px rgba(0, 255, 178, 0.08),
    0 0 22px rgba(0, 255, 178, 0.7);
}

.radar-center {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid rgba(0, 209, 255, 0.18);
  background: radial-gradient(circle at top, rgba(18, 40, 86, 0.95), rgba(5, 11, 24, 1));
  text-align: center;
}

.radar-center span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.radar-center strong {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 0.92rem;
  line-height: 1.25;
}

.radar-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.alert-item {
  display: grid;
  gap: 8px;
}

.alert-item.critical {
  border-color: rgba(255, 59, 59, 0.2);
  background: rgba(255, 59, 59, 0.08);
}

.alert-item.warning {
  border-color: rgba(255, 202, 87, 0.2);
  background: rgba(255, 202, 87, 0.08);
}

.alert-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 209, 255, 0.32);
  background: rgba(0, 209, 255, 0.16);
  box-shadow: 0 0 18px rgba(0, 209, 255, 0.18);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cockpit-widget:hover .resize-handle,
.cockpit-widget.is-resizing .resize-handle {
  opacity: 1;
}

.cockpit-widget.is-pinned .resize-handle {
  opacity: 0;
  pointer-events: none;
}

.resize-handle.nw {
  top: 10px;
  left: 10px;
  cursor: nwse-resize;
}

.resize-handle.ne {
  top: 10px;
  right: 10px;
  cursor: nesw-resize;
}

.resize-handle.sw {
  bottom: 10px;
  left: 10px;
  cursor: nesw-resize;
}

.resize-handle.se {
  right: 10px;
  bottom: 10px;
  cursor: nwse-resize;
}

.size-s .widget-subline,
.size-s .widget-footer,
.size-s .ratio-breakdown,
.size-s .ops-list,
.size-s .ring-legend,
.size-s .recommendation-card p,
.size-s .radar-feed,
.size-s .alert-item p,
.size-s .timeline-board {
  display: none;
}

.size-s .widget-body {
  gap: 12px;
}

.size-s .hero-value {
  font-size: 1.86rem;
}

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

.size-s .ring-panel {
  grid-template-columns: 1fr;
  justify-items: center;
}

.size-s .radar-scope {
  min-height: 180px;
}

.size-m .sparkline {
  min-height: 110px;
}

.size-l .hero-value {
  font-size: clamp(2.1rem, 2.4vw, 2.9rem);
}

.focus-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
}

.focus-overlay[hidden] {
  display: none;
}

.focus-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(12px);
}

.focus-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  max-height: min(88vh, 940px);
  padding: 18px;
  overflow: auto;
}

.focus-card.is-fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
}

.focus-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  min-height: 40px;
  padding: 8px 14px;
}

.focus-content {
  display: grid;
  gap: 14px;
  clear: both;
}

.focus-surface {
  display: grid;
  gap: 16px;
  padding: 10px 8px 18px;
}

.focus-surface .widget-header {
  padding-right: 56px;
}

.focus-surface .widget-body {
  gap: 16px;
}

.meta-chip-action {
  cursor: pointer;
  border-color: rgba(0, 209, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.12), rgba(122, 92, 255, 0.1)),
    rgba(255, 255, 255, 0.05);
  color: #dff6ff;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.meta-chip-action:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 18px rgba(0, 209, 255, 0.14);
  transform: translateY(-1px);
}

.ops-config-overlay {
  position: fixed;
  inset: 0;
  z-index: 47;
  display: grid;
  place-items: center;
  padding: 16px;
}

.ops-config-overlay[hidden] {
  display: none;
}

.ops-config-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(12px);
}

.ops-config-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  padding: 0;
  overflow: hidden;
}

.ops-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 10px;
  border-bottom: 1px solid rgba(0, 209, 255, 0.1);
}

.ops-config-title {
  margin: 0;
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 1.28rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.ops-config-kicker {
  margin: 8px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(0, 163, 255, 0.95);
  letter-spacing: 0.06em;
}

.ops-config-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(8, 17, 34, 0.96), rgba(5, 10, 22, 0.94)),
    rgba(255, 255, 255, 0.03);
  color: var(--cyan);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ops-config-close:hover {
  border-color: var(--line-strong);
  box-shadow: var(--glow-cyan);
}

.ops-config-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 209, 255, 0.65) rgba(8, 17, 34, 0.78);
  padding: 14px 20px 10px;
  display: grid;
  gap: 22px;
}

.ops-config-body::-webkit-scrollbar {
  width: 10px;
}

.ops-config-body::-webkit-scrollbar-track {
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 17, 34, 0.92), rgba(5, 10, 22, 0.9)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.ops-config-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(8, 17, 34, 0.9);
  background:
    linear-gradient(180deg, rgba(0, 209, 255, 0.78), rgba(122, 92, 255, 0.72)),
    rgba(0, 209, 255, 0.5);
  box-shadow:
    0 0 12px rgba(0, 209, 255, 0.34),
    0 0 20px rgba(122, 92, 255, 0.2);
}

.ops-config-body::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(0, 255, 178, 0.84), rgba(0, 209, 255, 0.78)),
    rgba(0, 255, 178, 0.5);
}

.ops-config-section {
  display: grid;
  gap: 10px;
}

.ops-section-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(200, 214, 235, 0.92);
  text-transform: none;
}

.ops-section-title.is-accent {
  color: rgba(0, 209, 255, 0.95);
}

.ops-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

@media (max-width: 640px) {
  .ops-metric-grid {
    grid-template-columns: 1fr;
  }
}

.ops-metric-chip {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 209, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(9, 17, 34, 0.92), rgba(5, 10, 22, 0.9)),
    rgba(255, 255, 255, 0.02);
  color: rgba(220, 232, 250, 0.92);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.ops-metric-chip:hover {
  border-color: rgba(0, 209, 255, 0.38);
}

.ops-metric-chip.is-on {
  border-color: rgba(0, 209, 255, 0.55);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.16), rgba(122, 92, 255, 0.1)),
    rgba(255, 255, 255, 0.04);
  color: #f5fcff;
  box-shadow: 0 0 14px rgba(0, 209, 255, 0.12);
}

.ops-risk-stack {
  display: grid;
  gap: 14px;
}

.ops-risk-row {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 209, 255, 0.14);
  background: rgba(5, 10, 22, 0.55);
}

.ops-risk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ops-risk-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.ops-risk-mode {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.ops-risk-mode button {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 209, 255, 0.22);
  background: rgba(5, 10, 22, 0.85);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.ops-risk-mode button.is-active {
  border-color: rgba(0, 209, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.28), rgba(122, 92, 255, 0.16)),
    rgba(255, 255, 255, 0.05);
  color: #f2fbff;
}

.ops-risk-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ops-risk-range {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: #00a3ff;
  height: 6px;
}

.ops-risk-value {
  flex: 0 0 auto;
  min-width: 4.5rem;
  text-align: right;
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(0, 209, 255, 0.95);
}

.ops-yoy-stack {
  display: grid;
  gap: 12px;
}

.ops-yoy-row {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 209, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(9, 17, 34, 0.88), rgba(5, 10, 22, 0.86)),
    rgba(255, 255, 255, 0.02);
}

.ops-yoy-title {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.ops-yoy-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.ops-yoy-field {
  display: grid;
  gap: 4px;
}

.ops-yoy-field span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.ops-yoy-field input {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 209, 255, 0.2);
  background: rgba(5, 10, 22, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.ops-yoy-field input:focus {
  outline: none;
  border-color: rgba(0, 255, 178, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 255, 178, 0.1);
}

.ops-config-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(0, 209, 255, 0.1);
}

.ops-config-cancel {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0, 209, 255, 0.28);
  background: rgba(5, 10, 22, 0.88);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ops-config-cancel:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 14px rgba(0, 209, 255, 0.14);
}

.ops-config-save {
  min-height: 44px;
  padding: 8px 22px;
  border-radius: 12px;
  border: 1px solid rgba(0, 163, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(0, 163, 255, 0.42), rgba(122, 92, 255, 0.24)),
    rgba(255, 255, 255, 0.06);
  color: #f5fcff;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.ops-config-save:hover {
  border-color: rgba(0, 255, 178, 0.35);
  box-shadow: 0 0 22px rgba(0, 209, 255, 0.22);
  transform: translateY(-1px);
}

.competitor-overlay {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: grid;
  place-items: center;
  padding: 20px;
}

.competitor-overlay[hidden] {
  display: none;
}

.competitor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.78);
  backdrop-filter: blur(10px);
}

.competitor-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  max-height: min(90vh, 880px);
  padding: 0;
  overflow: hidden;
}

.competitor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(0, 209, 255, 0.1);
}

.competitor-head-copy {
  min-width: 0;
}

.competitor-title {
  margin: 0;
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.competitor-subtitle {
  margin: 8px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #ff7ab5;
  text-shadow: 0 0 20px rgba(255, 122, 181, 0.25);
}

.competitor-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(8, 17, 34, 0.96), rgba(5, 10, 22, 0.94)),
    rgba(255, 255, 255, 0.03);
  color: var(--cyan);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.competitor-close:hover {
  border-color: var(--line-strong);
  box-shadow: var(--glow-cyan);
}

.competitor-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 20px 12px;
  overflow: auto;
}

.competitor-section {
  display: grid;
  gap: 10px;
}

.competitor-section-grow {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.competitor-radius-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radius-chip {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 209, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(8, 17, 34, 0.92), rgba(5, 10, 22, 0.9)),
    rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.radius-chip:hover {
  border-color: rgba(0, 209, 255, 0.38);
  color: var(--text);
}

.radius-chip.is-active {
  border-color: rgba(0, 209, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.22), rgba(122, 92, 255, 0.14)),
    rgba(255, 255, 255, 0.05);
  color: #f2fbff;
  box-shadow: 0 0 18px rgba(0, 209, 255, 0.12);
}

.competitor-radius-custom {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.competitor-radius-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 209, 255, 0.22);
  background: rgba(5, 10, 22, 0.85);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
}

.competitor-radius-input::placeholder {
  color: rgba(144, 163, 197, 0.65);
}

.competitor-radius-input:focus {
  outline: none;
  border-color: rgba(0, 255, 178, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 255, 178, 0.12);
}

.competitor-radius-ok {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 209, 255, 0.35);
  background: rgba(0, 209, 255, 0.12);
  color: var(--cyan);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.competitor-radius-ok:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 14px rgba(0, 209, 255, 0.2);
}

.competitor-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.competitor-list-title {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.competitor-selected-count {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(0, 209, 255, 0.85);
  white-space: nowrap;
}

.competitor-list {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: 360px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 209, 255, 0.65) rgba(8, 17, 34, 0.78);
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.competitor-list::-webkit-scrollbar {
  width: 10px;
}

.competitor-list::-webkit-scrollbar-track {
  border-radius: 999px;
  border: 1px solid rgba(0, 209, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 17, 34, 0.92), rgba(5, 10, 22, 0.9)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.competitor-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(8, 17, 34, 0.9);
  background:
    linear-gradient(180deg, rgba(0, 209, 255, 0.78), rgba(122, 92, 255, 0.72)),
    rgba(0, 209, 255, 0.5);
  box-shadow:
    0 0 12px rgba(0, 209, 255, 0.34),
    0 0 20px rgba(122, 92, 255, 0.2);
}

.competitor-list::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(0, 255, 178, 0.84), rgba(0, 209, 255, 0.78)),
    rgba(0, 255, 178, 0.5);
}

.competitor-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 209, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(9, 17, 34, 0.95), rgba(5, 10, 22, 0.92)),
    rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.competitor-card.is-disabled {
  opacity: 0.45;
}

.competitor-card-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.competitor-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.competitor-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 0.76rem;
  color: var(--muted);
}

.competitor-card-distance {
  color: rgba(0, 209, 255, 0.75);
}

.competitor-tier {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.competitor-tier.is-premium {
  border: 1px solid rgba(0, 209, 255, 0.28);
  background: rgba(0, 209, 255, 0.1);
  color: var(--cyan);
}

.competitor-tier.is-mid {
  border: 1px solid rgba(122, 92, 255, 0.28);
  background: rgba(122, 92, 255, 0.1);
  color: #ddd7ff;
}

.competitor-toggle {
  flex: 0 0 auto;
  align-self: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(0, 209, 255, 0.28);
  background: rgba(5, 10, 22, 0.9);
  color: transparent;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.competitor-toggle.is-on {
  border-color: rgba(0, 209, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.35), rgba(122, 92, 255, 0.2)),
    rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 209, 255, 0.18);
}

.competitor-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.competitor-toggle-mark {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.competitor-footer {
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(0, 209, 255, 0.1);
}

.competitor-confirm {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(0, 209, 255, 0.35);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.35), rgba(122, 92, 255, 0.22)),
    rgba(255, 255, 255, 0.06);
  color: #f5fcff;
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.competitor-confirm:hover {
  border-color: rgba(0, 255, 178, 0.35);
  box-shadow: 0 0 24px rgba(0, 209, 255, 0.2);
  transform: translateY(-1px);
}

.logout-overlay {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: grid;
  place-items: center;
  padding: 20px;
}

.logout-overlay[hidden] {
  display: none;
}

.logout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.8);
  backdrop-filter: blur(10px);
}

.logout-sheet {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  overflow: hidden;
}

.logout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(255, 107, 123, 0.14);
}

.logout-head-copy {
  min-width: 0;
}

.logout-title {
  margin: 0;
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.logout-copy {
  margin: 10px 0 0;
  color: rgba(214, 226, 240, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}

.logout-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 20px 20px;
}

.logout-cancel,
.logout-confirm {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.logout-cancel {
  border: 1px solid rgba(0, 209, 255, 0.24);
  background: rgba(5, 10, 22, 0.88);
  color: var(--text);
}

.logout-cancel:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 0 16px rgba(0, 209, 255, 0.14);
}

.logout-confirm {
  border: 1px solid rgba(255, 107, 123, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 107, 123, 0.3), rgba(255, 154, 112, 0.18)),
    rgba(255, 255, 255, 0.05);
  color: #fff3f5;
}

.logout-confirm:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 135, 149, 0.48);
  box-shadow: 0 0 20px rgba(255, 107, 123, 0.18);
}

.context-menu {
  position: fixed;
  z-index: 50;
  min-width: 280px;
  max-width: min(92vw, 340px);
  padding: 14px;
}

.context-menu[hidden] {
  display: none;
}

.context-title {
  display: grid;
  gap: 6px;
}

.context-title strong {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
}

.context-title span {
  color: var(--muted);
}

.context-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.context-action,
.context-option {
  min-height: 38px;
  padding: 8px 12px;
}

.context-divider {
  height: 1px;
  margin-top: 14px;
  background: rgba(0, 209, 255, 0.08);
}

.context-option.is-active {
  border-color: rgba(122, 92, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.12), rgba(122, 92, 255, 0.16)),
    rgba(255, 255, 255, 0.04);
}

@keyframes radarSweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(1turn);
  }
}

@keyframes criticalPulse {
  0%,
  100% {
    box-shadow: var(--shadow-soft), 0 0 24px rgba(0, 209, 255, 0.14);
  }
  50% {
    box-shadow:
      var(--shadow-soft),
      0 0 32px rgba(0, 209, 255, 0.22),
      0 0 40px rgba(122, 92, 255, 0.16);
  }
}

@keyframes warningPulse {
  0%,
  100% {
    box-shadow:
      var(--shadow-soft),
      0 0 0 1px rgba(255, 202, 87, 0.1),
      0 0 18px rgba(255, 202, 87, 0.1);
  }
  50% {
    box-shadow:
      var(--shadow-soft),
      0 0 0 1px rgba(255, 202, 87, 0.22),
      0 0 26px rgba(255, 202, 87, 0.18),
      0 0 34px rgba(255, 202, 87, 0.12);
  }
}

@keyframes dangerPulse {
  0%,
  100% {
    box-shadow:
      var(--shadow-soft),
      0 0 0 1px rgba(255, 59, 59, 0.14),
      0 0 20px rgba(255, 59, 59, 0.12);
  }
  50% {
    box-shadow:
      var(--shadow-soft),
      0 0 0 1px rgba(255, 59, 59, 0.34),
      0 0 30px rgba(255, 59, 59, 0.24),
      0 0 42px rgba(255, 59, 59, 0.16);
  }
}

@media (max-width: 1280px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-hero,
  .auth-card {
    min-height: 0;
  }

  .auth-card {
    max-width: 620px;
  }

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

  .brand-block {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  }

  .topbar-controls {
    grid-template-columns: minmax(0, 1fr) 228px;
    grid-template-areas:
      "context context"
      "head actions"
      "cluster cluster";
  }

  .control-deck-head {
    grid-template-columns: 1fr;
  }

  .topbar-controls .toolbar-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .topbar-controls .segmented-control,
  .topbar-controls .preset-strip {
    grid-template-columns: repeat(3, minmax(88px, 1fr));
  }

  .topbar-controls .mode-note {
    max-width: none;
    text-align: left;
  }

  .toolbar-copy-compact p {
    max-width: none;
  }

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

  .grid-shell-head {
    flex-direction: column;
  }

  .grid-meta {
    justify-content: flex-start;
  }

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

@media (max-width: 860px) {
  .auth-shell,
  .app-shell {
    padding: 16px;
  }

  .topbar-logout-button {
    width: 110px;
    height: 40px;
    min-height: 40px;
    flex-basis: 110px;
    border-radius: 14px;
  }

  .auth-layout {
    gap: 16px;
  }

  .auth-hero,
  .auth-card {
    padding: 20px;
  }

  .auth-loading {
    padding: 30px 24px;
    gap: 16px;
  }

  .auth-loading-projector {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
  }

  .auth-loading-reel {
    width: 46px;
    height: 46px;
  }

  .auth-loading-head strong {
    font-size: 1.36rem;
  }

  .auth-loading-step {
    padding: 9px 10px;
  }

  .auth-loading-step small {
    font-size: 0.74rem;
  }

  .auth-hero-copy h1 {
    max-width: none;
  }

  .auth-hero-visual {
    min-height: 320px;
  }

  .auth-hero-ticker {
    right: 14px;
    top: 14px;
    gap: 7px;
    padding: 8px 10px;
  }

  .auth-hero-ticker span {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  .auth-hero-ticker strong {
    min-width: 4.2ch;
    font-size: 0.72rem;
  }

  .auth-wheel {
    width: 214px;
    height: 214px;
    top: 58%;
  }

  .auth-wheel-grip {
    width: 68px;
    height: 124px;
  }

  .auth-hero-telemetry {
    min-width: 148px;
    padding: 12px 14px;
  }

  .auth-hero-telemetry strong {
    font-size: 1.16rem;
  }

  .topbar {
    padding: 18px;
  }

  .ops-sections-strip {
    padding: 14px;
  }

  .brand-block {
    grid-template-columns: 1fr;
  }

  .brand-visual {
    min-height: 220px;
  }

  .topbar-controls {
    padding: 14px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "context"
      "head"
      "cluster"
      "actions";
  }

  .topbar-context-bar {
    justify-content: flex-start;
  }

  .context-field {
    justify-items: stretch;
    flex: 1 1 200px;
  }

  .context-field .toolbar-label {
    justify-self: start;
  }

  .cinema-dropdown {
    min-width: 0;
    width: 100%;
  }

  .date-dropdown {
    min-width: 0;
    width: 100%;
  }

  .context-launch-cluster {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .benchmark-launch {
    justify-items: stretch;
    width: 100%;
    flex: 1 1 auto;
  }

  .ops-config-launch {
    justify-items: stretch;
    width: 100%;
  }

  .ops-config-open-btn {
    width: 100%;
  }

  .ops-config-open-inner {
    justify-content: center;
  }

  .benchmark-open-btn {
    width: 100%;
  }

  .benchmark-open-inner {
    justify-content: center;
  }

  .benchmark-open-label {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.06em;
  }

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

  .control-cluster {
    grid-template-columns: 1fr;
  }

  .topbar-controls .toolbar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    justify-self: stretch;
  }

  .topbar-controls .segmented-control,
  .topbar-controls .preset-strip {
    grid-template-columns: 1fr;
  }

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

  .grid-stage {
    min-height: 860px;
  }

  .focus-card {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .topbar-controls .segmented-button,
  .topbar-controls .preset-button {
    min-width: 0;
  }

  .control-button-meta {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand-visual {
    min-height: 184px;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1260px) {
  .schedule-top-band {
    flex-direction: column;
  }

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

@media (max-width: 760px) {
  .schedule-metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .grid-stage {
    overflow: auto;
  }

  .group-layer,
  .grid-canvas,
  .drop-outline {
    min-width: 980px;
  }
}
