@charset "UTF-8";

:root {
  --dashboard-bg: #120507;
  --dashboard-panel: rgba(43, 12, 14, 0.82);
  --dashboard-panel-strong: rgba(58, 18, 21, 0.92);
  --dashboard-border: rgba(212, 166, 58, 0.28);
  --dashboard-gold: #d8b067;
  --dashboard-gold-bright: #ffd86e;
  --dashboard-red: #9f1f23;
  --dashboard-cream: #f5ecd8;
  --dashboard-muted: rgba(245, 236, 216, 0.72);
  --dashboard-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --dashboard-radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

.dashboard-body {
  margin: 0;
  color: var(--dashboard-cream);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 50% 10%, rgba(120, 38, 28, 0.24), transparent 32%),
    radial-gradient(circle at 20% 80%, rgba(212, 166, 58, 0.1), transparent 24%),
    linear-gradient(180deg, #22090c 0%, #150608 48%, #0d0304 100%);
  overflow: hidden;
}

.dashboard-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.dashboard-bg-grid,
.dashboard-bg-orbit,
.dashboard-bg-glow {
  position: absolute;
  inset: 0;
}

.dashboard-bg-grid {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(212, 166, 58, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 166, 58, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
}

.dashboard-bg-glow {
  filter: blur(28px);
}

.dashboard-bg-glow--left {
  background: radial-gradient(circle at 20% 30%, rgba(159, 31, 35, 0.35), transparent 36%);
  animation: dashboardDrift 16s ease-in-out infinite alternate;
}

.dashboard-bg-glow--right {
  background: radial-gradient(circle at 80% 65%, rgba(212, 166, 58, 0.16), transparent 28%);
  animation: dashboardDrift 20s ease-in-out infinite alternate-reverse;
}

.dashboard-bg-orbit {
  inset: 8% 20%;
  border: 1px solid rgba(212, 166, 58, 0.08);
  border-radius: 999px;
  animation: dashboardSpin 28s linear infinite;
}

#dashboard-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 18px 20px 20px;
}

.dashboard-screen {
  height: calc(100vh - 38px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-header {
  display: grid;
  grid-template-columns: minmax(0, 14%) minmax(0, 1fr) minmax(0, 15.6%);
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 14px 18px;
  border: 1px solid rgba(212, 166, 58, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(55, 16, 18, 0.92), rgba(25, 7, 8, 0.82)),
    radial-gradient(circle at 50% 0%, rgba(212, 166, 58, 0.12), transparent 46%);
  box-shadow: var(--dashboard-shadow);
  backdrop-filter: blur(12px);
}

.dashboard-header-block {
  position: relative;
  min-width: 0;
}

.dashboard-header-block::before,
.dashboard-header-block::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(212, 166, 58, 0.32);
}

.dashboard-header-block::before {
  top: -6px;
  left: -6px;
  border-right: 0;
  border-bottom: 0;
}

.dashboard-header-block::after {
  right: -6px;
  bottom: -6px;
  border-left: 0;
  border-top: 0;
}

.dashboard-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 166, 58, 0.22);
  background: rgba(19, 5, 6, 0.55);
  color: var(--dashboard-gold);
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.dashboard-back:hover {
  transform: translateY(-2px);
  background: rgba(87, 25, 20, 0.52);
  box-shadow: 0 0 20px rgba(212, 166, 58, 0.18);
}

.dashboard-back svg {
  flex: 0 0 auto;
}

.dashboard-header-eyebrow {
  margin-bottom: 8px;
  color: rgba(212, 166, 58, 0.78);
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.dashboard-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.9rem);
  letter-spacing: 0.08em;
  color: transparent;
  background: linear-gradient(180deg, #fff4ce 0%, #f6d989 46%, #d8b067 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 8px 26px rgba(212, 166, 58, 0.2);
}

.dashboard-subtitle {
  margin-top: 8px;
  color: rgba(245, 236, 216, 0.7);
  font-size: 12px;
  letter-spacing: 0.32em;
}

.dashboard-source {
  margin-top: 10px;
  color: rgba(245, 236, 216, 0.58);
  font-size: 12px;
}

.dashboard-clock {
  text-align: right;
}

.dashboard-time {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--dashboard-gold-bright);
  letter-spacing: 0.08em;
}

.dashboard-date {
  margin-top: 8px;
  color: var(--dashboard-muted);
  font-size: 13px;
}

.dashboard-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 24%) minmax(0, 52%) minmax(0, 24%);
  gap: 16px;
  min-height: 0;
}

.dashboard-side {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 0.88fr) minmax(0, 0.92fr);
  gap: 12px;
}

.dashboard-side--right {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 0.88fr) minmax(0, 0.92fr);
  gap: 12px;
}

.dashboard-center {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--dashboard-border);
  border-radius: var(--dashboard-radius);
  background:
    linear-gradient(180deg, rgba(52, 15, 17, 0.86), rgba(25, 7, 8, 0.92)),
    radial-gradient(circle at 50% 0%, rgba(212, 166, 58, 0.12), transparent 48%);
  box-shadow: var(--dashboard-shadow);
  backdrop-filter: blur(12px);
}

.dashboard-panel::before,
.dashboard-panel::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(212, 166, 58, 0.48);
}

.dashboard-panel::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.dashboard-panel::after {
  right: 10px;
  bottom: 10px;
  border-left: 0;
  border-top: 0;
}

.dashboard-panel-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 18px 18px 16px;
}

.dashboard-side--right .dashboard-panel-inner {
  padding: 14px 14px 12px;
}

.dashboard-panel-kicker {
  color: rgba(212, 166, 58, 0.78);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.dashboard-panel-title {
  margin: 8px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--dashboard-cream);
}

.dashboard-panel-summary {
  color: var(--dashboard-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.dashboard-panel-fade {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dashboard-panel-fade.is-swapping {
  opacity: 0.35;
  transform: translateY(6px);
}

.dashboard-overview {
  min-height: 180px;
}

.dashboard-overview .dashboard-panel-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-theme-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-theme-pill {
  border: 1px solid rgba(212, 166, 58, 0.2);
  background: rgba(245, 236, 216, 0.04);
  color: rgba(245, 236, 216, 0.82);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard-theme-pill:hover,
.dashboard-theme-pill.is-active {
  color: #2b0c0e;
  background: linear-gradient(180deg, #f2cf63, #d8b067);
  box-shadow: 0 0 18px rgba(242, 207, 99, 0.22);
}

.dashboard-chart {
  flex: 1;
  min-height: 0;
}

.dashboard-chart-hierarchy {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 10px;
  padding-top: 6px;
}

.dashboard-hierarchy-level {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 166, 58, 0.12);
  overflow: hidden;
  animation: dashboardRise 0.8s ease both;
}

.dashboard-hierarchy-level:nth-child(2) { animation-delay: 0.08s; }
.dashboard-hierarchy-level:nth-child(3) { animation-delay: 0.16s; }
.dashboard-hierarchy-level:nth-child(4) { animation-delay: 0.24s; }

.dashboard-hierarchy-level::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--level-width);
  background: linear-gradient(90deg, rgba(212, 166, 58, 0.34), rgba(212, 166, 58, 0.08));
}

.dashboard-hierarchy-level > * {
  position: relative;
  z-index: 1;
}

.dashboard-hierarchy-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-hierarchy-name {
  font-size: 0.94rem;
  font-weight: 700;
}

.dashboard-hierarchy-value {
  color: var(--dashboard-gold-bright);
  font-family: var(--font-serif);
  font-size: 1rem;
}

.dashboard-hierarchy-note {
  margin-top: 3px;
  color: rgba(245, 236, 216, 0.68);
  font-size: 0.78rem;
  line-height: 1.35;
}

.dashboard-network-wrap {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-top: 10px;
}

.dashboard-network {
  position: relative;
  min-height: 230px;
  border-radius: 18px;
  border: 1px solid rgba(212, 166, 58, 0.14);
  background:
    radial-gradient(circle at 50% 50%, rgba(212, 166, 58, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.dashboard-network svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dashboard-network-link {
  fill: none;
  stroke: rgba(212, 166, 58, 0.42);
  stroke-width: 1.4;
  stroke-dasharray: 8 6;
  animation: dashboardDash 8s linear infinite;
}

.dashboard-network-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0 8px;
  text-align: center;
  line-height: 1.18;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: rgba(49, 18, 10, 0.96);
  text-shadow: 0 1px 0 rgba(255, 244, 214, 0.26);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  border-radius: 999px;
  border: 1px solid rgba(212, 166, 58, 0.18);
  background: radial-gradient(circle, rgba(255, 231, 170, 0.98) 0%, rgba(212, 166, 58, 0.9) 38%, rgba(159, 31, 35, 0.65) 100%);
  box-shadow: 0 0 24px rgba(212, 166, 58, 0.28);
  animation: dashboardPulse 3.2s ease-in-out infinite;
}

.dashboard-network-node[data-group="core"] {
  background: radial-gradient(circle, rgba(255, 239, 203, 0.95) 0%, rgba(212, 166, 58, 0.88) 35%, rgba(159, 31, 35, 0.72) 100%);
}

.dashboard-network-node[data-group="joint"] {
  background: radial-gradient(circle, rgba(255, 231, 192, 0.92) 0%, rgba(166, 112, 41, 0.84) 34%, rgba(86, 26, 18, 0.72) 100%);
}

.dashboard-network-node[data-group="roof"] {
  background: radial-gradient(circle, rgba(255, 246, 196, 0.94) 0%, rgba(212, 166, 58, 0.86) 36%, rgba(111, 72, 17, 0.74) 100%);
}

.dashboard-network-node[data-group="base"] {
  background: radial-gradient(circle, rgba(245, 236, 216, 0.94) 0%, rgba(163, 132, 98, 0.84) 34%, rgba(74, 44, 30, 0.72) 100%);
}

.dashboard-network-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-network-tag {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 166, 58, 0.18);
  background: rgba(245, 236, 216, 0.05);
  color: rgba(245, 236, 216, 0.82);
  font-size: 12px;
}

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

.dashboard-kpi {
  position: relative;
  overflow: hidden;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(212, 166, 58, 0.2);
  background: linear-gradient(180deg, rgba(64, 19, 21, 0.72), rgba(31, 9, 10, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-kpi::after {
  content: "";
  position: absolute;
  inset: auto -20% 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 216, 110, 0.9), transparent);
  animation: dashboardSweep 4.2s linear infinite;
}

.dashboard-kpi-label {
  color: rgba(245, 236, 216, 0.7);
  font-size: 13px;
}

.dashboard-kpi-value {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2vw, 2.3rem);
  color: var(--dashboard-gold-bright);
  letter-spacing: 0.04em;
}

.dashboard-kpi-unit {
  margin-left: 6px;
  font-size: 0.95rem;
  color: rgba(245, 236, 216, 0.72);
}

.dashboard-stage {
  flex: 1;
  min-height: 0;
}

.dashboard-stage .dashboard-panel-inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  height: 100%;
}

.dashboard-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.dashboard-stage-note {
  max-width: 320px;
  color: rgba(245, 236, 216, 0.7);
  font-size: 13px;
  text-align: right;
}

.dashboard-stage-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.dashboard-camera-save {
  border: 1px solid rgba(212, 166, 58, 0.24);
  background: rgba(25, 7, 8, 0.72);
  color: var(--dashboard-gold-bright);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.dashboard-camera-save:hover {
  transform: translateY(-1px);
  background: rgba(74, 21, 18, 0.82);
  box-shadow: 0 0 18px rgba(242, 207, 99, 0.16);
}

.dashboard-model-shell {
  position: relative;
  min-height: 0;
  --dashboard-model-shift-x: 0%;
  --dashboard-model-shift-y: 0%;
  border-radius: 24px;
  border: 1px solid rgba(212, 166, 58, 0.14);
  background:
    radial-gradient(circle at 50% 50%, rgba(212, 166, 58, 0.12) 0%, rgba(212, 166, 58, 0.02) 35%, transparent 60%),
    linear-gradient(180deg, rgba(23, 6, 8, 0.64), rgba(16, 4, 5, 0.9));
  overflow: hidden;
}

.dashboard-model-shell::before {
  content: "";
  position: absolute;
  inset: 12% 18%;
  border: 1px solid rgba(212, 166, 58, 0.08);
  border-radius: 999px;
  animation: dashboardSpin 20s linear infinite;
}

.dashboard-model-glow {
  position: absolute;
  inset: auto 16% 7%;
  height: 72px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212, 166, 58, 0.42), rgba(212, 166, 58, 0.05) 60%, transparent 72%);
  filter: blur(14px);
}

.dashboard-model-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  opacity: 0;
  transform: translate(var(--dashboard-model-shift-x), var(--dashboard-model-shift-y));
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.dashboard-model-viewer.is-ready {
  opacity: 1;
}

.dashboard-model-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 236, 216, 0.08);
  border: 1px solid rgba(212, 166, 58, 0.16);
  color: rgba(245, 236, 216, 0.82);
  font-size: 12px;
}

.dashboard-model-hint {
  position: absolute;
  left: 50%;
  bottom: 72px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(25, 7, 8, 0.78);
  border: 1px solid rgba(212, 166, 58, 0.22);
  color: rgba(245, 236, 216, 0.88);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.dashboard-model-hint.is-active {
  display: inline-flex;
}

.dashboard-model-hint-hand {
  font-size: 18px;
  color: var(--dashboard-gold-bright);
  animation: dashboardHintSlide 1.6s ease-in-out infinite;
}

.dashboard-model-hint-text {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.dashboard-model-legend {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 62%;
}

.dashboard-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(19, 5, 6, 0.62);
  border: 1px solid rgba(212, 166, 58, 0.16);
  font-size: 12px;
}

.dashboard-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 12px currentColor;
}

.dashboard-model-callout {
  position: absolute;
  z-index: 2;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(25, 7, 8, 0.68);
  border: 1px solid rgba(212, 166, 58, 0.18);
  font-size: 12px;
  color: rgba(245, 236, 216, 0.82);
  backdrop-filter: blur(10px);
}

.dashboard-model-callout::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 216, 110, 0.9), transparent);
}

.dashboard-model-callout--roof {
  top: 22%;
  left: 8%;
}

.dashboard-model-callout--roof::before {
  top: 50%;
  left: 100%;
}

.dashboard-model-callout--base {
  right: 9%;
  bottom: 24%;
}

.dashboard-model-callout--base::before {
  top: 50%;
  right: 100%;
}

.dashboard-model-error {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(120, 24, 22, 0.82);
  border: 1px solid rgba(255, 216, 110, 0.24);
  color: #fff3d0;
  font-size: 12px;
}

.dashboard-theme-detail {
  display: block;
}

.dashboard-theme-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.dashboard-theme-nav {
  display: inline-flex;
  gap: 6px;
}

.dashboard-theme-nav button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(212, 166, 58, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dashboard-gold);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard-theme-nav button:hover {
  background: rgba(212, 166, 58, 0.14);
  transform: translateY(-2px);
}

.dashboard-theme-copy-title {
  font-family: var(--font-serif);
  font-size: 1.06rem;
}

.dashboard-theme-copy-text {
  margin-top: 8px;
  color: var(--dashboard-muted);
  line-height: 1.5;
  font-size: 0.88rem;
}

.dashboard-theme-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.dashboard-stat-chip {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(245, 236, 216, 0.05);
  border: 1px solid rgba(212, 166, 58, 0.15);
}

.dashboard-stat-chip strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--dashboard-gold-bright);
  font-size: 1.02rem;
}

.dashboard-stat-chip span {
  color: rgba(245, 236, 216, 0.62);
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.3;
  word-break: break-word;
}

.dashboard-theme-points {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.dashboard-theme-point {
  position: relative;
  padding-left: 16px;
  color: rgba(245, 236, 216, 0.82);
  font-size: 0.84rem;
  line-height: 1.45;
}

.dashboard-theme-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--dashboard-gold-bright);
  box-shadow: 0 0 14px rgba(255, 216, 110, 0.48);
}

.dashboard-donut-wrap {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  height: 100%;
}

.dashboard-donut {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
  background: var(--donut-gradient);
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.24), 0 0 26px rgba(212, 166, 58, 0.08);
  animation: dashboardSpinSlow 22s linear infinite;
}

.dashboard-donut::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: rgba(17, 4, 5, 0.94);
  border: 1px solid rgba(212, 166, 58, 0.12);
}

.dashboard-donut::after {
  content: "五色\n编码";
  white-space: pre;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-serif);
  line-height: 1.5;
  color: rgba(245, 236, 216, 0.86);
}

.dashboard-palette-list {
  display: grid;
  gap: 6px;
}

.dashboard-palette-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 32px;
  gap: 7px;
  align-items: center;
}

.dashboard-palette-name {
  font-size: 11px;
}

.dashboard-palette-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.dashboard-palette-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--palette-width);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), var(--palette-color));
  animation: dashboardReveal 1.2s ease both;
}

.dashboard-palette-value {
  text-align: right;
  color: var(--dashboard-gold-bright);
  font-size: 11px;
}

.dashboard-engineering {
  height: 100%;
  display: grid;
  grid-template-rows: 112px auto auto;
  gap: 8px;
  align-content: start;
}

.dashboard-flow-chart {
  position: relative;
  min-height: 112px;
  max-height: 112px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(245, 236, 216, 0.02), rgba(245, 236, 216, 0.01)),
    radial-gradient(circle at 50% 100%, rgba(61, 115, 153, 0.18), transparent 55%);
  border: 1px solid rgba(212, 166, 58, 0.08);
  overflow: hidden;
}

.dashboard-flow-chart svg {
  width: 100%;
  height: 100%;
}

.dashboard-flow-axis {
  stroke: rgba(245, 236, 216, 0.16);
  stroke-width: 1;
}

.dashboard-flow-line {
  fill: none;
  stroke: #f0cb67;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(240, 203, 103, 0.28));
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  animation: dashboardDraw 1.8s ease forwards;
}

.dashboard-flow-line--secondary {
  stroke: #75a7d0;
  animation-delay: 0.25s;
}

.dashboard-flow-area {
  fill: url(#flow-gradient-primary);
  opacity: 0.32;
}

.dashboard-flow-area--secondary {
  fill: url(#flow-gradient-secondary);
  opacity: 0.28;
}

.dashboard-engineering-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-engineering-card {
  padding: 9px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 166, 58, 0.14);
  align-self: start;
}

.dashboard-engineering-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--dashboard-gold-bright);
}

.dashboard-engineering-card span {
  color: rgba(245, 236, 216, 0.72);
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.3;
  word-break: break-word;
}

.dashboard-engineering-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  align-self: start;
}

.dashboard-route-node {
  position: relative;
  flex: 1;
  padding: 8px 6px;
  border-radius: 12px;
  text-align: center;
  background: rgba(245, 236, 216, 0.05);
  border: 1px solid rgba(212, 166, 58, 0.12);
  font-size: 11px;
}

.dashboard-route-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% - 2px);
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 166, 58, 0.78), transparent);
}

.dashboard-focus {
  min-height: 230px;
}

.dashboard-focus .dashboard-panel-inner {
  display: grid;
  gap: 8px;
  align-content: start;
}

.dashboard-focus-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(212, 166, 58, 0.08);
  border: 1px solid rgba(212, 166, 58, 0.16);
  color: var(--dashboard-gold);
  font-size: 12px;
}

.dashboard-focus-counter {
  margin-left: auto;
  color: rgba(245, 236, 216, 0.62);
  font-size: 12px;
}

.dashboard-focus-head {
  display: flex;
  justify-content: flex-end;
  min-height: 16px;
}

.dashboard-focus-name {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 1.42rem;
  color: var(--dashboard-gold-bright);
}

.dashboard-focus-copy {
  color: var(--dashboard-muted);
  line-height: 1.7;
}

.dashboard-focus-panel {
  min-height: 0;
}

.dashboard-colors-panel {
  min-height: 0;
}

.dashboard-engineering-panel {
  min-height: 0;
}

.dashboard-side--right .dashboard-panel-title {
  margin: 6px 0 8px;
  font-size: 1.08rem;
}

.dashboard-side--right .dashboard-panel-summary {
  font-size: 0.82rem;
  line-height: 1.4;
}

.dashboard-side--right .dashboard-panel-kicker {
  font-size: 11px;
}

.dashboard-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 216, 110, 0.08), transparent);
  transform: translateY(-100%);
  animation: dashboardScan 7s linear infinite;
  pointer-events: none;
}

.dashboard-footer-note {
  margin-top: 8px;
  color: rgba(245, 236, 216, 0.56);
  font-size: 12px;
}

@keyframes dashboardDrift {
  from { transform: translate3d(-2%, -2%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

@keyframes dashboardSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes dashboardSpinSlow {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.02); }
  to { transform: rotate(360deg) scale(1); }
}

@keyframes dashboardPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 18px rgba(212, 166, 58, 0.22); }
  50% { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 26px rgba(212, 166, 58, 0.34); }
}

@keyframes dashboardDash {
  to { stroke-dashoffset: -140; }
}

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

@keyframes dashboardReveal {
  from { width: 0; }
}

@keyframes dashboardSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes dashboardDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes dashboardScan {
  0% { transform: translateY(-105%); }
  100% { transform: translateY(105%); }
}

@keyframes dashboardHintSlide {
  0%, 100% { transform: translateX(-10px); opacity: 0.72; }
  50% { transform: translateX(10px); opacity: 1; }
}

@media (max-width: 1420px) {
  #dashboard-shell {
    padding: 14px;
  }

  .dashboard-screen {
    height: auto;
    min-height: calc(100vh - 28px);
  }

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

  .dashboard-body {
    overflow-y: auto;
  }

  .dashboard-center,
  .dashboard-side,
  .dashboard-side--right {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .dashboard-stage {
    min-height: 680px;
  }
}

@media (max-width: 920px) {
  .dashboard-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dashboard-clock {
    text-align: center;
  }

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

  .dashboard-donut-wrap,
  .dashboard-theme-detail {
    grid-template-columns: 1fr;
  }

  .dashboard-stage-head {
    flex-direction: column;
  }

  .dashboard-stage-tools {
    align-items: flex-start;
  }

  .dashboard-stage-note {
    max-width: none;
    text-align: left;
  }

  .dashboard-model-legend {
    max-width: 100%;
  }
}

@media (min-width: 1921px) {
  #dashboard-shell { padding: clamp(18px, 1.4vw, 28px) clamp(20px, 1.6vw, 32px); }
  .dashboard-screen { gap: clamp(16px, 1.2vw, 22px); }
  .dashboard-main { gap: clamp(16px, 1.2vw, 22px); }
}
