:root {
  color-scheme: dark;
  --bg-deep: #030a10;
  --bg-base: #06131d;
  --bg-raised: #0a1d29;
  --bg-panel: rgba(10, 30, 42, 0.82);
  --line: rgba(127, 200, 216, 0.16);
  --line-strong: rgba(127, 200, 216, 0.3);
  --text: #ecf7f8;
  --text-soft: #9ab2ba;
  --text-muted: #637f89;
  --cyan: #5dd9e9;
  --cyan-bright: #8cecf6;
  --mint: #87e0b8;
  --amber: #f6bf66;
  --rose: #ef8f8f;
  --danger: #ff9292;
  --panel-radius: 8px;
  --font-ui: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-display: "Bahnschrift", "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg-deep);
}

body {
  min-width: 320px;
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

svg {
  display: block;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

[hidden] {
  display: none !important;
}

.app-frame {
  position: relative;
  display: grid;
  width: 100vw;
  height: 100dvh;
  min-height: 100%;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(9, 39, 52, 0.6), transparent 68%),
    var(--bg-deep);
}

.screen {
  position: relative;
  width: min(100vw, 177.7778dvh);
  max-height: 100dvh;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-base);
  container-type: size;
  isolation: isolate;
}

.screen::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 6cqw rgba(0, 0, 0, 0.3);
}

.brand-lockup,
.presentation-brand {
  display: flex;
  align-items: center;
  gap: 1cqw;
}

.brand-mark {
  display: grid;
  width: 2.45cqw;
  height: 2.45cqw;
  border: 1px solid rgba(93, 217, 233, 0.42);
  border-radius: 4px;
  color: var(--cyan-bright);
  background:
    linear-gradient(135deg, rgba(93, 217, 233, 0.16), transparent 65%),
    rgba(8, 27, 38, 0.76);
  font-family: var(--font-display);
  font-size: 0.82cqw;
  font-weight: 700;
  letter-spacing: 0.04em;
  place-items: center;
}

.brand-name {
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 0.72cqw;
  letter-spacing: 0.2em;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.55cqw;
  color: var(--text-soft);
  font-size: 0.76cqw;
  letter-spacing: 0.04em;
}

.status-dot {
  display: inline-block;
  width: 0.38cqw;
  height: 0.38cqw;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0.25cqw rgba(135, 224, 184, 0.08);
  animation: statusPulse 2.4s ease-in-out infinite;
}

/* Login */

.login-screen {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(115deg, rgba(5, 20, 29, 0.92) 0%, rgba(5, 18, 27, 0.66) 52%, rgba(3, 12, 19, 0.92) 100%),
    linear-gradient(160deg, #0a2633 0%, #06131d 48%, #03090e 100%);
}

.login-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(93, 217, 233, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 217, 233, 0.045) 1px, transparent 1px);
  background-size: 4cqw 4cqw;
  mask-image: linear-gradient(to right, black, rgba(0, 0, 0, 0.35) 58%, transparent 90%);
}

.login-grid::before,
.login-grid::after {
  position: absolute;
  content: "";
}

.login-grid::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(93, 217, 233, 0.15) 16% 16.05%, transparent 16.05%),
    linear-gradient(90deg, transparent 0 84%, rgba(93, 217, 233, 0.1) 84% 84.05%, transparent 84.05%);
}

.login-grid::after {
  top: 13cqh;
  left: 5cqw;
  width: 30cqw;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.login-glow {
  position: absolute;
  z-index: -1;
  top: 20%;
  right: 8%;
  width: 34cqw;
  height: 34cqw;
  border: 1px solid rgba(93, 217, 233, 0.08);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 113, 130, 0.11), transparent 66%);
}

.login-glow::before,
.login-glow::after {
  position: absolute;
  border: 1px solid rgba(93, 217, 233, 0.07);
  border-radius: 50%;
  content: "";
}

.login-glow::before {
  inset: 15%;
}

.login-glow::after {
  inset: 32%;
}

.login-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 2.4cqh 4.2cqw;
  border-bottom: 1px solid rgba(127, 200, 216, 0.09);
}

.login-main {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 0;
  padding: 2.5cqh 4cqw;
  place-items: center;
}

.login-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42cqw;
  height: 42cqw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.login-orbit::before,
.login-orbit::after {
  position: absolute;
  border: 1px solid rgba(93, 217, 233, 0.075);
  border-radius: 50%;
  content: "";
}

.login-orbit::before {
  inset: 9%;
}

.login-orbit::after {
  inset: 22%;
  border-style: dashed;
}

.login-orbit span {
  position: absolute;
  width: 0.28cqw;
  height: 0.28cqw;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 1cqw rgba(93, 217, 233, 0.5);
}

.login-orbit span:nth-child(1) {
  top: 9%;
  left: 50%;
}

.login-orbit span:nth-child(2) {
  top: 50%;
  right: 9%;
}

.login-orbit span:nth-child(3) {
  bottom: 22%;
  left: 22%;
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(32cqw, 520px);
  min-width: 380px;
  padding: 3.1cqw 3cqw 2.35cqw;
  border: 1px solid rgba(127, 200, 216, 0.22);
  border-radius: var(--panel-radius);
  background:
    linear-gradient(145deg, rgba(18, 47, 62, 0.9), rgba(6, 22, 31, 0.94) 68%);
  box-shadow:
    0 2.4cqw 6cqw rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(205, 248, 252, 0.08);
  animation: cardArrival 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.login-card::before,
.login-card::after {
  position: absolute;
  width: 1.4cqw;
  height: 1.4cqw;
  border-color: rgba(93, 217, 233, 0.7);
  content: "";
  pointer-events: none;
}

.login-card::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.login-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.login-card-head {
  margin-bottom: 2.7cqh;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55cqw;
  margin: 0 0 1.65cqh;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.65cqw;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.login-card h1 {
  margin: 0;
  font-size: 2.12cqw;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.login-subtitle {
  margin: 0.8cqh 0 0;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 0.72cqw;
  letter-spacing: 0.045em;
  line-height: 1.5;
}

.form-field {
  margin-bottom: 2.2cqh;
}

.form-field label {
  display: block;
  margin-bottom: 0.9cqh;
  color: var(--text-soft);
  font-size: 0.72cqw;
  font-weight: 500;
}

.password-control {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  z-index: 1;
  left: 1.05cqw;
  width: 1.05cqw;
  height: 1.05cqw;
  color: var(--text-muted);
  pointer-events: none;
}

.password-control input {
  width: 100%;
  height: 5.3cqh;
  min-height: 46px;
  padding: 0 3.7cqw 0 2.85cqw;
  outline: none;
  border: 1px solid rgba(127, 200, 216, 0.19);
  border-radius: 5px;
  color: var(--text);
  background: rgba(2, 13, 20, 0.7);
  font-family: var(--font-display);
  font-size: 0.98cqw;
  letter-spacing: 0.14em;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.password-control input::placeholder {
  color: #4f6871;
  font-family: var(--font-ui);
  font-size: 0.76cqw;
  letter-spacing: 0;
}

.password-control:focus-within input {
  border-color: rgba(93, 217, 233, 0.68);
  background: rgba(3, 17, 25, 0.92);
  box-shadow: 0 0 0 3px rgba(93, 217, 233, 0.08);
}

.icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--text-soft);
  background: transparent;
  place-items: center;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.icon-button:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(93, 217, 233, 0.06);
}

.icon-button:focus-visible,
.primary-button:focus-visible,
.tool-button:focus-visible,
.debug-clear:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.password-toggle {
  position: absolute;
  right: 0.55cqw;
  width: 2.3cqw;
  height: 2.3cqw;
}

.password-toggle svg {
  width: 1.05cqw;
  height: 1.05cqw;
}

.form-error {
  min-height: 2.3cqh;
  margin: 0.62cqh 0 0;
  color: var(--danger);
  font-size: 0.7cqw;
  line-height: 1.4;
}

.login-card.has-error {
  animation: formShake 320ms ease;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 5.7cqh;
  min-height: 48px;
  padding: 0 1.3cqw;
  cursor: pointer;
  border: 1px solid rgba(93, 217, 233, 0.6);
  border-radius: 5px;
  color: #031116;
  background: linear-gradient(100deg, var(--cyan-bright), #6ed5dc);
  box-shadow: 0 0 1.8cqw rgba(93, 217, 233, 0.12);
  font-size: 0.82cqw;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.primary-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 2.3cqw rgba(93, 217, 233, 0.22);
}

.primary-button:active {
  transform: translateY(1px);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75cqw;
  margin: 2.3cqh 0 1.2cqh;
}

.login-divider span {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.login-divider b {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.55cqw;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.security-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.61cqw;
  line-height: 1.6;
  text-align: center;
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 1.5cqh 4.2cqw 2.2cqh;
  color: #46606a;
  font-family: var(--font-display);
  font-size: 0.56cqw;
  letter-spacing: 0.1em;
}

/* Presentation shell */

.presentation-screen {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(10, 36, 49, 0.44), transparent 34%),
    linear-gradient(180deg, #071720 0%, #06131c 55%, #040d14 100%);
}

.presentation-screen::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(93, 217, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 217, 233, 0.03) 1px, transparent 1px);
  background-size: 3.2cqw 3.2cqw;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.25) 76%, transparent);
  content: "";
}

.presentation-header {
  position: relative;
  z-index: 10;
  display: grid;
  align-items: center;
  flex: 0 0 8.3cqh;
  grid-template-columns: 1fr auto 1fr;
  padding: 0 4cqw;
  border-bottom: 1px solid rgba(127, 200, 216, 0.11);
  background: rgba(3, 13, 20, 0.42);
  backdrop-filter: blur(8px);
}

.presentation-brand > div {
  display: flex;
  flex-direction: column;
  gap: 0.15cqh;
}

.presentation-brand strong {
  font-size: 0.78cqw;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.presentation-brand span:not(.brand-mark) {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.48cqw;
  letter-spacing: 0.15em;
}

.page-counter {
  display: flex;
  align-items: baseline;
  gap: 0.45cqw;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.72cqw;
  letter-spacing: 0.05em;
}

.page-counter span:first-child {
  color: var(--text);
  font-size: 1.02cqw;
  font-weight: 600;
}

.page-counter i {
  font-style: normal;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35cqw;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  gap: 0.42cqw;
  padding: 0.7cqh 0.72cqw;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text-soft);
  background: rgba(8, 29, 40, 0.5);
  font-size: 0.65cqw;
  line-height: 1;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.tool-button:hover,
.tool-button[aria-expanded="true"] {
  border-color: rgba(93, 217, 233, 0.43);
  color: var(--cyan-bright);
  background: rgba(93, 217, 233, 0.07);
}

.tool-button-quiet {
  color: var(--text-muted);
}

.tool-button svg {
  width: 0.92cqw;
  height: 0.92cqw;
}

.slide-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.presentation-page {
  position: absolute;
  inset: 0;
  display: grid;
  visibility: hidden;
  overflow: hidden;
  padding: 2.7cqh 4cqw 1.6cqh;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 1.9cqh;
  opacity: 0;
  transform: translateX(1.5cqw);
  transition:
    opacity 240ms ease,
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s 360ms;
}

.presentation-page.is-active {
  z-index: 2;
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 220ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s;
}

.presentation-page.is-before {
  opacity: 0;
  transform: translateX(-1.5cqw);
}

.presentation-page.is-after {
  opacity: 0;
  transform: translateX(1.5cqw);
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3cqw;
}

.page-kicker {
  display: flex;
  align-items: center;
  gap: 0.72cqw;
  margin: 0 0 0.9cqh;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.58cqw;
  font-weight: 500;
  letter-spacing: 0.17em;
}

.page-kicker span {
  color: var(--cyan);
  font-size: 0.68cqw;
  font-weight: 600;
}

.page-heading h2 {
  margin: 0;
  color: #f3fbfc;
  font-size: 2.35cqw;
  font-weight: 620;
  letter-spacing: 0.025em;
  line-height: 1.18;
}

.page-description {
  margin: 0.65cqh 0 0;
  color: var(--text-soft);
  font-size: 0.67cqw;
  line-height: 1.5;
}

.demo-stamp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35cqh;
  padding-top: 0.35cqh;
}

.demo-stamp span {
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 0.48cqw;
  letter-spacing: 0.16em;
}

.demo-stamp strong {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.42cqh 0.65cqw;
  border: 1px solid rgba(246, 191, 102, 0.3);
  border-radius: 4px;
  color: #e7c58f;
  background: rgba(246, 191, 102, 0.055);
  font-size: 0.55cqw;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.kpi-grid {
  display: grid;
  min-height: 0;
  gap: 1.05cqw;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 1.55cqh 1.3cqw 1.3cqh;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background:
    linear-gradient(155deg, rgba(19, 51, 65, 0.6), rgba(7, 24, 34, 0.78) 68%);
}

.kpi-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 78%);
  content: "";
}

.kpi-card::after {
  position: absolute;
  top: -2.6cqw;
  right: -2.6cqw;
  width: 6cqw;
  height: 6cqw;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 50%;
  content: "";
}

.accent-cyan {
  --accent: var(--cyan);
}

.accent-mint {
  --accent: var(--mint);
}

.accent-amber {
  --accent: var(--amber);
}

.accent-rose {
  --accent: var(--rose);
}

.kpi-card-head {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.6cqw;
}

.kpi-icon {
  display: inline-grid;
  width: 1.65cqw;
  height: 1.65cqw;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 4px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  place-items: center;
}

.kpi-icon svg {
  width: 0.88cqw;
  height: 0.88cqw;
}

.kpi-label {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.65cqw;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-index {
  margin-left: auto;
  color: #39555f;
  font-family: var(--font-display);
  font-size: 0.48cqw;
}

.kpi-value {
  display: flex;
  align-items: baseline;
  gap: 0.55cqw;
  margin: 1.4cqh 0 0.4cqh;
}

.kpi-value strong {
  color: #f5fcfd;
  font-family: var(--font-display);
  font-size: 2.75cqw;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.kpi-value span {
  color: var(--accent);
  font-size: 0.66cqw;
  font-weight: 500;
}

.kpi-foot {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.5cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-grid,
.team-grid {
  display: grid;
  min-height: 0;
  gap: 1.05cqw;
  grid-template-columns: minmax(0, 1.75fr) minmax(20cqw, 0.82fr);
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background:
    linear-gradient(145deg, rgba(15, 42, 55, 0.58), rgba(5, 20, 29, 0.76));
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1cqw;
}

.panel-eyebrow {
  margin: 0 0 0.55cqh;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.48cqw;
  letter-spacing: 0.14em;
}

.panel-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.95cqw;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.panel-meta {
  display: flex;
  align-items: center;
  gap: 0.42cqw;
  color: var(--text-muted);
  font-size: 0.55cqw;
}

.legend-dot {
  width: 0.32cqw;
  height: 0.32cqw;
  border-radius: 50%;
  background: var(--cyan);
}

.chart-panel {
  display: flex;
  flex-direction: column;
  padding: 1.8cqh 1.6cqw 1.3cqh;
}

.chart-wrap {
  flex: 1;
  min-height: 0;
  margin-top: 1.1cqh;
}

.revenue-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid line {
  stroke: rgba(127, 200, 216, 0.1);
  stroke-dasharray: 3 5;
  stroke-width: 1;
}

.chart-y-labels text,
.chart-x-labels text {
  fill: #607b84;
  font-family: var(--font-display);
  font-size: 11px;
}

.chart-x-labels text {
  text-anchor: middle;
}

.chart-area {
  fill: url("#chart-area");
}

.chart-line {
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.chart-points circle {
  fill: #071b25;
  stroke: var(--cyan);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart-points .chart-point-latest {
  fill: var(--cyan);
  stroke: rgba(93, 217, 233, 0.22);
  stroke-width: 8;
}

.chart-value-label rect {
  fill: #102f3d;
  stroke: rgba(93, 217, 233, 0.35);
  stroke-width: 1;
}

.chart-value-label text {
  fill: var(--cyan-bright);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
}

.chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1cqw;
  padding-top: 1.1cqh;
  border-top: 1px solid rgba(127, 200, 216, 0.1);
  color: var(--text-muted);
  font-size: 0.55cqw;
}

.chart-footer strong {
  color: var(--mint);
  font-weight: 500;
}

.insight-panel {
  display: flex;
  flex-direction: column;
  padding: 1.8cqh 1.35cqw 1.35cqh;
}

.signal-badge {
  padding: 0.34cqh 0.5cqw;
  border: 1px solid rgba(135, 224, 184, 0.25);
  border-radius: 4px;
  color: var(--mint);
  background: rgba(135, 224, 184, 0.05);
  font-size: 0.5cqw;
}

.satisfaction-block {
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 0;
  gap: 1.1cqw;
  padding: 1.5cqh 0;
}

.progress-ring {
  display: grid;
  width: 6.2cqw;
  height: 6.2cqw;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0a202b 0 57%, transparent 58%),
    conic-gradient(var(--cyan) calc(var(--progress) * 1%), rgba(127, 200, 216, 0.1) 0);
  box-shadow: inset 0 0 0 1px rgba(127, 200, 216, 0.06);
  place-items: center;
}

.progress-ring > div {
  display: flex;
  align-items: baseline;
}

.progress-ring strong {
  font-family: var(--font-display);
  font-size: 1.28cqw;
  font-weight: 600;
}

.progress-ring span {
  color: var(--text-soft);
  font-size: 0.58cqw;
}

.satisfaction-copy {
  min-width: 0;
}

.satisfaction-copy > span {
  display: block;
  margin-bottom: 0.5cqh;
  color: var(--text-muted);
  font-size: 0.58cqw;
}

.satisfaction-copy > strong {
  display: block;
  color: var(--text);
  font-size: 0.85cqw;
  font-weight: 600;
}

.satisfaction-copy p {
  margin: 0.7cqh 0 0;
  color: var(--text-soft);
  font-size: 0.57cqw;
  line-height: 1.65;
}

.signal-list {
  display: grid;
  gap: 0.7cqh;
}

.signal-item {
  display: flex;
  align-items: center;
  gap: 0.75cqw;
  padding: 0.9cqh 0.7cqw;
  border-top: 1px solid rgba(127, 200, 216, 0.1);
}

.signal-icon {
  display: inline-grid;
  width: 1.8cqw;
  height: 1.8cqw;
  flex: 0 0 auto;
  border-radius: 4px;
  place-items: center;
}

.signal-icon svg {
  width: 0.9cqw;
  height: 0.9cqw;
}

.signal-icon-up {
  color: var(--mint);
  background: rgba(135, 224, 184, 0.08);
}

.signal-icon-orders {
  color: var(--amber);
  background: rgba(246, 191, 102, 0.08);
}

.signal-item > div {
  min-width: 0;
}

.signal-item strong,
.signal-item span {
  display: block;
}

.signal-item strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.63cqw;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-item div span {
  margin-top: 0.25cqh;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.52cqw;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Team page */

.team-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(20cqw, 0.9fr);
}

.achievement-panel,
.team-visual-panel {
  padding: 1.8cqh 1.55cqw 1.4cqh;
}

.panel-note {
  color: var(--text-muted);
  font-size: 0.56cqw;
}

.progress-list {
  display: grid;
  flex: 1;
  align-content: center;
  height: calc(100% - 4.4cqh);
  gap: 2.4cqh;
}

.progress-item {
  min-width: 0;
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1cqw;
  margin-bottom: 1cqh;
}

.progress-label span {
  color: var(--text-soft);
  font-size: 0.7cqw;
}

.progress-label strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1cqw;
  font-weight: 600;
}

.progress-track {
  position: relative;
  height: 0.55cqh;
  min-height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(127, 200, 216, 0.1);
}

.progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3aaebf, var(--cyan-bright));
  box-shadow: 0 0 1cqw rgba(93, 217, 233, 0.28);
}

.is-active .progress-track > span {
  animation: progressFill 1.05s 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.progress-item:nth-child(2) .progress-track > span {
  background: linear-gradient(90deg, #4eb98d, var(--mint));
  box-shadow: 0 0 1cqw rgba(135, 224, 184, 0.24);
  animation-delay: 0.5s;
}

.progress-item p {
  margin: 0.8cqh 0 0;
  color: var(--text-muted);
  font-size: 0.55cqw;
}

.team-visual-panel {
  display: flex;
  flex-direction: column;
}

.team-orbit {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 0;
  place-items: center;
}

.team-orbit-ring {
  position: absolute;
  width: min(10.6cqw, 22cqh);
  height: min(10.6cqw, 22cqh);
  border: 1px solid rgba(93, 217, 233, 0.22);
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(93, 217, 233, 0.7) 0deg 1deg,
      transparent 1deg 30deg
    );
  mask: radial-gradient(circle, transparent 0 72%, black 72.5% 74%, transparent 74.5%);
  animation: orbitRotate 24s linear infinite;
}

.team-orbit-core {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  width: min(7.8cqw, 16cqh);
  height: min(7.8cqw, 16cqh);
  border: 1px solid rgba(93, 217, 233, 0.25);
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 35%, rgba(93, 217, 233, 0.16), transparent 60%),
    #08202b;
  box-shadow:
    0 0 0 0.55cqw rgba(93, 217, 233, 0.025),
    0 1cqw 2cqw rgba(0, 0, 0, 0.25);
  align-content: center;
}

.team-orbit-core strong {
  font-family: var(--font-display);
  font-size: 2.15cqw;
  font-weight: 600;
  line-height: 1;
}

.team-orbit-core > span {
  color: var(--cyan);
  font-size: 0.7cqw;
}

.team-orbit-core small {
  width: 100%;
  margin-top: 0.4cqh;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.42cqw;
  letter-spacing: 0.12em;
  text-align: center;
}

.orbit-node {
  position: absolute;
  width: 0.38cqw;
  height: 0.38cqw;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0.6cqw rgba(93, 217, 233, 0.6);
}

.orbit-node-1 {
  top: 19%;
  left: 36%;
}

.orbit-node-2 {
  right: 27%;
  bottom: 25%;
  background: var(--mint);
}

.orbit-node-3 {
  bottom: 18%;
  left: 28%;
  background: var(--amber);
}

.team-metric-strip {
  display: grid;
  margin-top: 1.2cqh;
  border-top: 1px solid rgba(127, 200, 216, 0.1);
  grid-template-columns: 1fr 1fr;
}

.team-metric-strip > div {
  padding: 1.15cqh 0 0.2cqh;
}

.team-metric-strip > div + div {
  padding-left: 1cqw;
  border-left: 1px solid rgba(127, 200, 216, 0.1);
}

.team-metric-strip span {
  display: block;
  margin-bottom: 0.45cqh;
  color: var(--text-muted);
  font-size: 0.52cqw;
}

.team-metric-strip strong {
  font-family: var(--font-display);
  font-size: 1.15cqw;
  font-weight: 600;
}

.team-metric-strip small {
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 0.5cqw;
  font-weight: 400;
}

.presentation-footer {
  position: relative;
  z-index: 10;
  display: grid;
  align-items: center;
  flex: 0 0 5.8cqh;
  grid-template-columns: 1fr auto 1fr;
  padding: 0 4cqw;
  border-top: 1px solid rgba(127, 200, 216, 0.1);
  background: rgba(3, 13, 20, 0.42);
  color: var(--text-muted);
}

.control-hint,
.presentation-status {
  display: flex;
  align-items: center;
  gap: 0.55cqw;
  font-size: 0.55cqw;
}

.control-hint svg {
  width: 0.85cqw;
  height: 0.85cqw;
}

.page-dots {
  display: flex;
  align-items: center;
  gap: 0.4cqw;
}

.page-dot {
  width: 1.2cqw;
  height: 2px;
  border-radius: 2px;
  background: rgba(127, 200, 216, 0.16);
  transition:
    width 250ms ease,
    background-color 250ms ease;
}

.page-dot.is-active {
  width: 2.2cqw;
  background: var(--cyan);
  box-shadow: 0 0 0.6cqw rgba(93, 217, 233, 0.3);
}

.presentation-status {
  justify-content: flex-end;
}

/* Debug monitor */

.debug-panel {
  position: absolute;
  z-index: 50;
  top: 9.8cqh;
  right: 2.2cqw;
  display: flex;
  flex-direction: column;
  width: 24.5cqw;
  max-height: 77cqh;
  padding: 1.4cqh 1.2cqw 1.1cqh;
  border: 1px solid rgba(93, 217, 233, 0.35);
  border-radius: var(--panel-radius);
  background: rgba(4, 18, 26, 0.96);
  box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  animation: debugArrival 220ms ease-out both;
}

.debug-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.debug-header p {
  margin: 0 0 0.3cqh;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.46cqw;
  letter-spacing: 0.13em;
}

.debug-header h3 {
  margin: 0;
  font-size: 0.9cqw;
  font-weight: 600;
}

.debug-header .icon-button {
  width: 26px;
  height: 26px;
}

.debug-header .icon-button svg {
  width: 0.8cqw;
  height: 0.8cqw;
}

.debug-help {
  margin: 1.1cqh 0;
  padding: 0.8cqh 0.65cqw;
  border-left: 2px solid rgba(246, 191, 102, 0.65);
  color: #9a9a8c;
  background: rgba(246, 191, 102, 0.035);
  font-size: 0.54cqw;
  line-height: 1.6;
}

.debug-column-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25cqw 0.6cqh;
  border-bottom: 1px solid rgba(127, 200, 216, 0.1);
  color: var(--text-muted);
  font-size: 0.48cqw;
}

.debug-list {
  flex: 1;
  min-height: 15cqh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #315562 transparent;
  scrollbar-width: thin;
}

.debug-empty {
  margin: 2.2cqh 0;
  color: var(--text-muted);
  font-size: 0.58cqw;
  text-align: center;
}

.debug-entry {
  display: grid;
  gap: 0.28cqh;
  padding: 0.85cqh 0.25cqw;
  border-bottom: 1px solid rgba(127, 200, 216, 0.075);
}

.debug-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5cqw;
}

.debug-entry-head strong {
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.66cqw;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.debug-entry-head span {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.45cqw;
}

.debug-entry[data-mapped="true"] .debug-entry-head span {
  color: var(--mint);
}

.debug-entry[data-mapped="false"] .debug-entry-head span {
  color: var(--amber);
}

.debug-fields {
  display: grid;
  margin: 0;
  gap: 0.18cqh;
}

.debug-fields div {
  display: grid;
  grid-template-columns: 4.2cqw minmax(0, 1fr);
}

.debug-fields dt,
.debug-fields dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.48cqw;
  line-height: 1.45;
}

.debug-fields dt {
  color: #55737d;
}

.debug-fields dd {
  overflow: hidden;
  color: #a9c0c6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.debug-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8cqw;
  padding-top: 1cqh;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.44cqw;
}

.debug-clear {
  padding: 0.48cqh 0.55cqw;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text-soft);
  background: transparent;
  font-size: 0.5cqw;
}

.debug-clear:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.toast {
  position: absolute;
  z-index: 60;
  bottom: 8.5cqh;
  left: 50%;
  max-width: 48cqw;
  padding: 1cqh 1.05cqw;
  border: 1px solid rgba(93, 217, 233, 0.28);
  border-radius: 5px;
  color: var(--text);
  background: rgba(6, 24, 33, 0.96);
  box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, 0.36);
  font-size: 0.64cqw;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast[data-tone="warning"] {
  border-color: rgba(246, 191, 102, 0.38);
  color: #f2dab1;
}

/* Reveal animations */

.presentation-page.is-active .reveal {
  animation: revealUp 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.presentation-page.is-active .kpi-card:nth-child(1) {
  animation-delay: 80ms;
}

.presentation-page.is-active .kpi-card:nth-child(2) {
  animation-delay: 150ms;
}

.presentation-page.is-active .kpi-card:nth-child(3) {
  animation-delay: 220ms;
}

.presentation-page.is-active .kpi-card:nth-child(4) {
  animation-delay: 290ms;
}

.presentation-page.is-active .dashboard-grid .panel:nth-child(1),
.presentation-page.is-active .team-grid .panel:nth-child(1) {
  animation-delay: 350ms;
}

.presentation-page.is-active .dashboard-grid .panel:nth-child(2),
.presentation-page.is-active .team-grid .panel:nth-child(2) {
  animation-delay: 430ms;
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 0.35cqw rgba(135, 224, 184, 0.04);
  }
}

@keyframes cardArrival {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes formShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progressFill {
  to {
    width: var(--value);
  }
}

@keyframes orbitRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes debugArrival {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .login-card {
    min-width: 0;
    width: min(72cqw, 520px);
  }

  .presentation-brand strong {
    font-size: 1.3cqw;
  }

  .presentation-brand span:not(.brand-mark) {
    font-size: 0.8cqw;
  }

  .tool-button span {
    display: none;
  }

  .tool-button {
    padding: 0.7cqh;
  }

  .tool-button svg {
    width: 1.5cqw;
    height: 1.5cqw;
  }
}

@media (max-height: 600px) {
  .presentation-page {
    gap: 1.2cqh;
  }

  .login-card {
    padding-top: 2.2cqw;
  }

  .login-card-head {
    margin-bottom: 1.7cqh;
  }

  .security-note {
    display: none;
  }
}

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