﻿:root {
  --bg: #07111f;
  --panel: rgba(10, 24, 44, 0.84);
  --panel-strong: rgba(7, 19, 36, 0.92);
  --line: rgba(150, 197, 255, 0.18);
  --ink: #eff5ff;
  --muted: #9db2cb;
  --accent: #70d6ff;
  --accent-2: #8a8bff;
  --accent-3: #4de3b8;
  --shadow: 0 20px 60px rgba(0, 10, 23, 0.34);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(112, 214, 255, 0.18), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(138, 139, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #081221 0%, #07101d 44%, #091728 100%);
}
a { color: inherit; }
h1, h2, h3, strong { margin: 0; }
.shell { max-width: 1380px; margin: 0 auto; padding: 28px; display: grid; gap: 18px; }
.hero, .panel, .metric, .link-card, .insight-card, .stack-card, .target-card, .chart-card, .goal-reality-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero, .panel { padding: 24px; }
.hero {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 20px;
  background: linear-gradient(140deg, rgba(12, 27, 48, 0.96), rgba(9, 22, 39, 0.9));
}
.hero-copy { display: grid; gap: 12px; }
.hero-side { display: grid; gap: 14px; align-content: start; }
.lang-switch { display: inline-flex; gap: 8px; justify-content: flex-end; }
.lang-pill { min-width: 58px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 20, 35, 0.68); color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.lang-pill.is-active { color: var(--ink); background: linear-gradient(135deg, rgba(112, 214, 255, 0.18), rgba(138, 139, 255, 0.16)); border-color: rgba(112, 214, 255, 0.5); }
.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 700;
}
.hero h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -.04em; line-height: .95; }
.hero-text, .summary-copy, label span, .link-card span, .insight-card span, .stack-card span, .target-card p, .goal-reality-card p, th, td, .empty, .goal-chip__label {
  color: var(--muted); line-height: 1.55;
}
.goal-chip { display: grid; gap: 6px; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel-strong); }
.goal-chip strong { font-size: 18px; color: var(--ink); }
.link-grid, .metrics-grid, .filter-grid, .insights-grid, .resource-grid, .target-grid, .two-col-layout, .goal-vs-reality-grid, .goal-reality-figures { display: grid; gap: 14px; }
.link-grid, .resource-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.metrics-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.filter-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.insights-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.target-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.goal-vs-reality-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.goal-reality-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.two-col-layout { grid-template-columns: 1.05fr .95fr; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.panel-head h2, .panel h2 { font-size: 26px; }
.metrics-grid .metric, .link-card, .insight-card, .stack-card, .target-card, .chart-card, .goal-reality-card { padding: 18px; }
.metric span, .insight-card span, .stack-card span, .target-card span { display: block; margin-bottom: 8px; }
.metric strong { font-size: 30px; color: var(--accent); }
.link-card { text-decoration: none; display: grid; gap: 6px; transition: transform .18s ease, border-color .18s ease; }
.link-card:hover { transform: translateY(-2px); border-color: rgba(112, 214, 255, 0.46); }
.link-card strong, .insight-card strong, .stack-card strong, .target-card strong, .goal-reality-card strong { color: var(--ink); }
.filters-panel { background: linear-gradient(180deg, rgba(12, 28, 49, 0.92), rgba(10, 24, 44, 0.82)); }
label { display: grid; gap: 6px; }
input, select {
  width: 100%; min-height: 48px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(4, 13, 24, 0.78); color: var(--ink); padding: 10px 12px; font: inherit;
}
.tabbar { display: flex; flex-wrap: wrap; gap: 10px; }
.tab {
  border: 1px solid var(--line); background: rgba(8, 20, 35, 0.68); color: var(--muted);
  border-radius: 999px; min-height: 46px; padding: 0 18px; font: inherit; font-weight: 700; cursor: pointer;
}
.tab.is-active { color: var(--ink); background: linear-gradient(135deg, rgba(112, 214, 255, 0.18), rgba(138, 139, 255, 0.16)); border-color: rgba(112, 214, 255, 0.5); }
.tab-panel { display: none; gap: 18px; }
.tab-panel.is-active { display: grid; }
.target-card { display: grid; gap: 10px; background: linear-gradient(180deg, rgba(10, 22, 40, 0.92), rgba(8, 18, 34, 0.82)); }
.target-topline { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.target-topline strong { font-size: 22px; }
.target-score { color: var(--accent); font-weight: 700; }
.progress-track { width: 100%; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.progress-bar.is-over { background: linear-gradient(90deg, var(--accent-3), var(--accent)); }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.progress-meta strong { font-size: 14px; }
.goal-reality-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(11, 26, 48, 0.98), rgba(9, 21, 39, 0.9));
}
.goal-reality-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.goal-reality-top h3 {
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.goal-reality-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(157, 178, 203, 0.12);
}
.goal-reality-status.is-good {
  background: rgba(77, 227, 184, 0.16);
  border-color: rgba(77, 227, 184, 0.35);
}
.goal-reality-status.is-warm {
  background: rgba(255, 211, 111, 0.16);
  border-color: rgba(255, 211, 111, 0.34);
}
.goal-reality-status.is-alert {
  background: rgba(255, 131, 131, 0.14);
  border-color: rgba(255, 131, 131, 0.3);
}
.goal-reality-status.is-muted {
  background: rgba(157, 178, 203, 0.1);
}
.goal-figure {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(150, 197, 255, 0.14);
  background: rgba(5, 16, 30, 0.54);
}
.goal-figure span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.goal-figure strong {
  font-size: 28px;
  color: var(--ink);
}
.goal-reality-progress {
  height: 14px;
}
.goal-reality-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}
.goal-reality-meta span {
  color: var(--muted);
  line-height: 1.5;
}
.goal-reality-meta strong {
  color: var(--accent);
  font-size: 15px;
}
.insight-card, .stack-card, .chart-card { background: linear-gradient(180deg, rgba(9, 22, 39, 0.94), rgba(8, 18, 34, 0.82)); }
.stack-grid { display: grid; gap: 14px; }
.stack-card { display: grid; gap: 8px; }
.subject-line { display: flex; justify-content: space-between; gap: 10px; }
.bar-stack { display: grid; gap: 8px; }
.mini-bar { display: grid; gap: 4px; }
.mini-bar__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.mini-bar__track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.mini-bar__fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(112, 214, 255, 0.9), rgba(77, 227, 184, 0.9)); }
.resource-card { padding: 18px; display: grid; gap: 12px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(112, 214, 255, 0.12); color: var(--ink); font-size: 12px; }
.priority-high { background: rgba(77, 227, 184, 0.18); }
.priority-medium { background: rgba(255, 211, 111, 0.18); }
.resource-card a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(112, 214, 255, 0.18), rgba(138, 139, 255, 0.18)); border: 1px solid rgba(112, 214, 255, 0.3); color: var(--ink); text-decoration: none; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-caption { margin-top: 14px; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.chart-caption strong { color: var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 700; }
.empty { border: 1px dashed var(--line); border-radius: 16px; padding: 16px; }
@media (max-width: 1024px) { .hero, .two-col-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .shell { padding: 16px; } .panel-head { flex-direction: column; } .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .goal-reality-figures { grid-template-columns: 1fr; } .goal-reality-top, .goal-reality-meta { flex-direction: column; } }
.manual-imports {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 19, 36, 0.45);
}
.manual-imports summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--ink);
}
.manual-imports summary::-webkit-details-marker {
  display: none;
}
.manual-imports__grid {
  padding: 0 20px 20px;
}
.live-mode-note {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(112, 214, 255, 0.18);
  background: rgba(6, 16, 29, 0.54);
}
.live-mode-note strong {
  color: var(--ink);
  font-size: 15px;
}
.live-mode-note span {
  color: var(--muted);
  line-height: 1.5;
}
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.chart-stack-card {
  display: grid;
  gap: 12px;
  padding: 14px 0;
}
.chart-stack-card__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.chart-stack-card__bars {
  display: grid;
  gap: 10px;
}
.chart-bar-row {
  display: grid;
  gap: 6px;
}
.chart-bar-row__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.chart-bar-row__track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.chart-bar-row__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.chart-bar-row__fill.is-good {
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
}
.chart-bar-row__fill.is-ghost {
  background: linear-gradient(90deg, rgba(157,178,203,0.5), rgba(157,178,203,0.9));
}
@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}
.trainer-layout {
  align-items: start;
}
.trainer-panel {
  display: grid;
  gap: 18px;
}
.trainer-actions {
  display: flex;
  justify-content: flex-start;
}
.trainer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(112, 214, 255, 0.28);
  background: linear-gradient(135deg, rgba(112, 214, 255, 0.18), rgba(138, 139, 255, 0.18));
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.trainer-frame-wrap {
  min-height: 920px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(112, 214, 255, 0.18);
  background: rgba(4, 11, 22, 0.82);
}
.trainer-frame {
  width: 100%;
  min-height: 920px;
  border: 0;
  background: #081120;
}
.trainer-side-panel {
  display: grid;
  gap: 18px;
}
@media (max-width: 1024px) {
  .trainer-frame-wrap,
  .trainer-frame {
    min-height: 720px;
  }
}


.metric {
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-height: 160px;
  overflow: hidden;
}
.metric span,
.metric strong,
.panel-head h2,
.summary-copy,
.link-card span,
.insight-card span,
.target-card p,
.goal-reality-card span,
.goal-reality-card strong,
.trainer-bridge__copy {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.metric span {
  margin-bottom: 0;
}
.metric strong {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.05;
}
.tab {
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  padding-top: 10px;
  padding-bottom: 10px;
}
.panel-head h2,
.panel h2 {
  font-size: clamp(22px, 3vw, 26px);
  line-height: 1.15;
}
.panel-head {
  flex-wrap: wrap;
}
.target-topline {
  align-items: flex-start;
  flex-wrap: wrap;
}
.target-score {
  white-space: nowrap;
}
.target-meta-list,
.goal-reality-metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 14px;
}
.target-meta-item,
.goal-reality-metric-row > div {
  display: grid;
  gap: 4px;
}
.target-meta-item span,
.goal-reality-metric-row span {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.target-meta-item strong,
.goal-reality-metric-row strong {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.05;
}
.goal-reality-card {
  display: grid;
  gap: 16px;
}
.goal-reality-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.goal-reality-card__top strong {
  font-size: clamp(26px, 4vw, 38px);
}
.goal-reality-summary {
  max-width: 360px;
}
.trainer-bridge {
  background: linear-gradient(180deg, rgba(11, 25, 45, 0.92), rgba(8, 19, 34, 0.82));
}
.trainer-bridge__head {
  margin-bottom: 12px;
}
.trainer-bridge .trainer-link {
  min-width: 220px;
}
@media (max-width: 760px) {
  .metric {
    min-height: 132px;
  }
  .goal-reality-card__top strong {
    font-size: 24px;
  }
  .goal-reality-summary {
    max-width: none;
  }
}
