/* AnswerScore Audit — dashboard styles
   Built on Clementine Media foundations (../assets/colors_and_type.css). */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg-1);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.tnum, .score, .h-num, .cat-score, .stat-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

::selection { background: var(--c-orange); color: #fff; }
.lucide { stroke-width: 1.6; }

/* ====== APP GRID ====== */
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  grid-template-rows: 64px 1fr;
  grid-template-areas:
    "side top"
    "side main";
  min-height: 100vh;
  background: var(--bg-1);
}
.sidebar { z-index: 5; }
.main { position: relative; z-index: 1; }

/* ====== SIDEBAR ====== */
.sidebar {
  grid-area: side;
  border-right: 1px solid var(--c-line-2);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #fff;
  position: sticky; top: 0;
  height: 100vh;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 4px;
}
.brand img { height: 26px; width: auto; }
.brand .product {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  margin-left: 2px;
  border-left: 1px solid var(--c-line);
  padding-left: 10px;
  text-transform: uppercase;
}

.nav-section { display: flex; flex-direction: column; gap: 2px; }
.nav-section .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 6px 12px 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  cursor: pointer;
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.nav-item:hover { background: var(--bg-2); color: var(--fg-1); }
.nav-item.active { background: var(--c-navy); color: #fff; }
.ni-icon {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-3);
  flex-shrink: 0;
}
.nav-item:hover .ni-icon { color: var(--c-navy); }
.nav-item.active .ni-icon { color: var(--c-orange); }
.nav-item .badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--c-orange);
  color: #fff;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}
.nav-item.active .badge { background: #fff; color: var(--c-navy); }

.sidebar-foot {
  margin-top: auto;
  padding: 14px 12px;
  border-top: 1px solid var(--c-line-2);
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: var(--r-circle);
  background: var(--c-navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.sidebar-foot .who { font-size: 13px; line-height: 1.3; min-width: 0; }
.sidebar-foot .who b {
  font-weight: 600; color: var(--fg-1); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-foot .who small { display: block; color: var(--fg-3); font-size: 11.5px; }

/* ====== TOPBAR ====== */
.topbar {
  grid-area: top;
  border-bottom: 1px solid var(--c-line-2);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px 0 32px;
  position: sticky; top: 0; z-index: 10;
  min-height: 64px;
}
.crumbs {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--fg-3); white-space: nowrap;
}
.crumbs b { color: var(--fg-1); font-weight: 600; }
.crumbs .sep { color: var(--c-line); }

.topbar-spacer { flex: 1; }
.topbar-meta {
  display: flex; align-items: center; gap: 18px;
  font-size: 13px; color: var(--fg-3);
  flex-wrap: nowrap; white-space: nowrap;
}
.topbar-meta > span { white-space: nowrap; }
.topbar-meta .dot { width: 5px; height: 5px; background: var(--c-line); border-radius: var(--r-circle); }
@media (max-width: 1280px) {
  .topbar-meta .hide-md { display: none; }
}

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

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.005em;
  transition: all var(--dur-fast) var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
}
.btn .lucide { width: 15px; height: 15px; }
.btn-primary { background: var(--c-orange); color: #fff; }
.btn-primary:hover { background: var(--c-red); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
  background: #fff;
  color: var(--fg-1);
  border-color: var(--c-line);
}
.btn-secondary:hover { background: var(--bg-2); border-color: var(--c-line-2); }

/* ====== MAIN CANVAS ====== */
.main {
  grid-area: main;
  padding: 32px 40px 96px;
  max-width: 1480px;
  width: 100%;
}

/* Page head — overview variant */
.page-head-overview {
  display: flex; align-items: flex-end;
  gap: 32px;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.page-head-overview .ph-title {
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0; flex: 1;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-orange);
}
.page-head-overview .company-h1 {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.0;
  color: var(--c-navy);
  margin: 0;
}
.page-head-overview .ph-sub-row {
  display: flex; gap: 10px; align-items: center;
  font-size: 13.5px; color: var(--fg-3);
  flex-wrap: wrap;
  margin-top: 2px;
}
.page-head-overview .ph-sub-row .dot-sep { color: var(--c-line); }

/* ====== HERO SCORE ====== */
.hero {
  display: grid;
  grid-template-columns: minmax(440px, 540px) 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 1280px) {
  .hero { grid-template-columns: 1fr; }
}
.hero-card {
  background: var(--c-navy);
  border-radius: var(--r-lg);
  color: #fff;
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  gap: 24px;
}
.hero-card::after {
  content: '';
  position: absolute;
  inset: auto -80px -80px auto;
  width: 240px; height: 240px;
  background: radial-gradient(circle at 30% 30%, rgba(247, 149, 32, 0.18), transparent 60%);
  pointer-events: none;
}
.hero-card .label-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; position: relative; z-index: 1;
}
.hero-card .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.hero-card .grade {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.hero-card .grade .pulse {
  width: 7px; height: 7px; border-radius: var(--r-circle);
  background: var(--c-orange);
  box-shadow: 0 0 0 0 rgba(247,149,32,0.6);
  animation: pulse 1.8s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(247,149,32,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(247,149,32,0); }
  100% { box-shadow: 0 0 0 0   rgba(247,149,32,0); }
}

.score-stage {
  display: flex; align-items: center; gap: 24px;
  position: relative; z-index: 1;
  flex-wrap: wrap;
}
.score-meta { flex: 1 1 200px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.score-meta .stat-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}
.score-meta .stat-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.score-meta .trend {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--c-green);
  background: rgba(39, 170, 112, 0.15);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  align-self: flex-start;
  white-space: nowrap;
}

.score-ring { width: 200px; height: 200px; flex-shrink: 0; position: relative; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.score-ring .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}
.score-ring .num small {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  margin-left: 4px;
}
.score-ring .lbl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ====== HERO STATS GRID ====== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  padding: 22px 24px;
  display: flex; flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all var(--dur-fast) var(--ease-out);
}
.stat-card:hover { border-color: var(--c-line); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.stat-card .top {
  display: flex; align-items: center; justify-content: space-between;
}
.stat-card .stat-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  color: var(--c-navy);
}
.stat-card .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--c-navy);
}
.stat-card .stat-label {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.35;
}
.stat-card.tone-warn .stat-num { color: var(--c-red); }
.stat-card.tone-warn .stat-icon { background: rgba(239, 65, 55, 0.08); color: var(--c-red); }
.stat-card.tone-good .stat-num { color: var(--c-green); }
.stat-card.tone-good .stat-icon { background: rgba(39, 170, 112, 0.10); color: var(--c-green); }
.stat-card.tone-accent .stat-icon { background: rgba(247, 149, 32, 0.12); color: var(--c-orange); }

/* ====== SECTIONS ====== */
.section { margin-bottom: 48px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 18px; flex-wrap: wrap;
}
.section-head > div:first-child {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0; flex: 1 1 480px;
}
.section-head > div:first-child .eyebrow { margin-bottom: 2px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--c-navy);
  margin: 0;
  text-wrap: balance;
}
.section-head .sec-sub { color: var(--fg-3); font-size: 13.5px; }
.section-head .sec-aside { font-size: 13px; color: var(--fg-3); flex: 0 0 auto; white-space: nowrap; }
.section-head .sec-aside a {
  color: var(--c-orange);
  font-weight: 600;
  font-family: var(--font-display);
  text-decoration: none;
}

/* ====== CATEGORY ROW ====== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

.cat-card {
  background: #fff;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  padding: 20px;
  cursor: default;
  transition: all var(--dur-fast) var(--ease-out);
  display: flex; flex-direction: column;
  gap: 14px;
  position: relative;
}
.cat-card:hover { border-color: var(--c-navy); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.cat-card .cat-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--c-navy);
  display: flex; align-items: center; gap: 8px;
  line-height: 1.3;
}
.cat-card .cat-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--c-navy);
}
.cat-card .cat-score small {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-3);
  margin-left: 2px;
}
.cat-bar {
  height: 4px;
  background: var(--c-line-2);
  border-radius: var(--r-pill);
  position: relative;
  overflow: hidden;
}
.cat-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--c-navy);
  border-radius: var(--r-pill);
}
.cat-card.tone-good .cat-bar > span { background: var(--c-green); }
.cat-card.tone-warn .cat-bar > span { background: var(--c-orange); }
.cat-card.tone-bad  .cat-bar > span { background: var(--c-red); }
.cat-card .cat-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--fg-3);
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.cat-card .cat-status .pip {
  width: 6px; height: 6px; border-radius: var(--r-circle);
  background: var(--c-navy);
}
.cat-card.tone-good .cat-status .pip { background: var(--c-green); }
.cat-card.tone-warn .cat-status .pip { background: var(--c-orange); }
.cat-card.tone-bad  .cat-status .pip { background: var(--c-red); }

/* ====== TWO-UP ====== */
.two-up {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
@media (max-width: 1100px) { .two-up { grid-template-columns: 1fr; } }

.panel {
  background: #fff;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  padding: 24px;
}
.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.panel-head h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: 0;
  color: var(--c-navy);
}
.panel-head .panel-sub {
  font-size: 13px; color: var(--fg-3);
  margin-top: 4px;
}

/* ====== PROMPT LIST ====== */
.prompt {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--c-line-2);
}
.prompt:first-of-type { border-top: 0; padding-top: 4px; }
.prompt .pidx {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  padding-top: 3px;
}
.prompt .ptext {
  font-size: 14.5px;
  color: var(--fg-1);
  line-height: 1.4;
}
.prompt .pmeta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--fg-3);
  margin-top: 6px;
  flex-wrap: wrap;
}
.prompt .pmeta .dot { width: 3px; height: 3px; background: var(--c-line); border-radius: var(--r-circle); }
.prompt .pmeta b { color: var(--fg-2); font-weight: 600; }
.prompt .pstatus { white-space: nowrap; align-self: flex-start; }

.prompt-quote {
  grid-column: 2 / 4;
  margin-top: 8px;
  background: var(--bg-2);
  border-left: 2px solid var(--c-orange);
  padding: 10px 14px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fg-2);
}

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.status-pill .pip { width: 6px; height: 6px; border-radius: var(--r-circle); background: currentColor; }
.status-pill.direct { color: var(--c-green); background: rgba(39, 170, 112, 0.10); }
.status-pill.partial { color: var(--c-orange); background: rgba(247, 149, 32, 0.12); }
.status-pill.missing { color: var(--c-red); background: rgba(239, 65, 55, 0.10); }

/* ====== MODELL-SICHTBARKEIT (right of two-up) ====== */
.model-bars { display: flex; flex-direction: column; gap: 14px; }
.mbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
}
.mbar .mb-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--c-navy);
  letter-spacing: 0.02em;
}
.mbar .mb-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--c-navy);
  letter-spacing: -0.02em;
}
.mbar .mb-val small { font-size: 11px; color: var(--fg-3); font-weight: 500; }
.mbar .mb-bar {
  grid-column: 1 / 3;
  height: 6px;
  background: var(--c-line-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.mbar .mb-bar > span {
  display: block; height: 100%;
  background: var(--c-navy);
  border-radius: var(--r-pill);
  transition: width var(--dur-slow) var(--ease-out);
}
.mbar.tone-warn .mb-bar > span { background: var(--c-orange); }
.mbar.tone-bad  .mb-bar > span { background: var(--c-red); }
.mbar.tone-good .mb-bar > span { background: var(--c-green); }
.mbar .mb-status {
  grid-column: 1 / 3;
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 2px;
}

/* ====== HEBEL ====== */
.hebel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .hebel-grid { grid-template-columns: 1fr; } }

.hebel {
  background: #fff;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-fast) var(--ease-out);
}
.hebel:hover { border-color: var(--c-orange); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.hebel .hebel-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--c-orange);
  display: flex; align-items: center; gap: 8px;
}
.hebel .hebel-num::after {
  content: ''; flex: 1; height: 1px; background: var(--c-line-2);
}
.hebel h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-navy);
  margin: 0;
}
.hebel p {
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}
.hebel .hebel-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--c-line-2);
  font-size: 12px;
  color: var(--fg-3);
}
.hebel .hebel-impact {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600;
  color: var(--c-green);
}

/* ====== BENCH ====== */
.bench {
  background: #fff;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  padding: 28px 28px 24px;
}
.bench-row {
  display: grid;
  grid-template-columns: 220px 1fr 100px;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--c-line-2);
}
.bench-row:first-of-type { border-top: 0; }
.bench-row .b-name {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.bench-row .b-name > div { min-width: 0; }
.bench-row .b-name .b-mark {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--c-navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.bench-row.us .b-name .b-mark {
  background: var(--c-navy); color: var(--c-orange);
}
.bench-row .b-name b {
  font-family: var(--font-display); font-weight: 700;
  font-size: 14.5px; color: var(--c-navy);
  display: block; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bench-row .b-name small { color: var(--fg-3); font-size: 11.5px; }
.bench-row .b-bar {
  position: relative; height: 8px;
  background: var(--c-line-2);
  border-radius: var(--r-pill);
}
.bench-row .b-bar > span {
  position: absolute; inset: 0 auto 0 0;
  background: var(--c-navy);
  border-radius: var(--r-pill);
  transition: width var(--dur-slow) var(--ease-out);
}
.bench-row.us .b-bar > span { background: var(--c-gradient); }
.bench-row .b-score {
  text-align: right;
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; color: var(--c-navy);
  letter-spacing: -0.02em;
}
.bench-row .b-score small {
  font-size: 12px; color: var(--fg-3); font-weight: 500;
}

/* ====== PROJECTION CARD ====== */
.proj-card {
  background: var(--c-navy);
  color: #fff;
  border-radius: var(--r-md);
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}
.proj-card .pc-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: 6px;
}
.proj-card .pc-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}
.proj-card .pc-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}
.proj-num {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.proj-num .from { font-size: 22px; color: rgba(255,255,255,0.45); }
.proj-num .arrow { font-size: 18px; color: var(--c-orange); margin: 0 4px; }
.proj-num .to { font-size: 44px; color: #fff; }
.proj-num .d { font-size: 12px; color: rgba(255,255,255,0.5); margin-left: 2px; }

/* ====== ERROR ====== */
.audit-error {
  position: fixed; inset: 0;
  background: rgba(0,42,60,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
}
.audit-error[hidden] { display: none; }
.audit-error-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 32px 40px;
  text-align: center;
  border: 1px solid var(--c-line);
  max-width: 460px;
}
.audit-error-code {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-red);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.audit-error-msg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--c-navy);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "main";
    grid-template-rows: 64px 1fr;
  }
  .sidebar { display: none; }
  .main { padding: 24px; }
  .topbar { padding: 0 20px; }
}
@media (max-width: 720px) {
  .main { padding: 16px; }
  .page-head-overview .company-h1 { font-size: 36px; }
  .hero-card { padding: 24px; }
  .score-stage { gap: 16px; }
  .score-ring { width: 160px; height: 160px; }
  .score-ring .num { font-size: 50px; }
  .topbar-meta { display: none; }
  .bench-row { grid-template-columns: 1fr 80px; gap: 10px; }
  .bench-row .b-bar { display: none; }
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 10px; border: 2px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: var(--c-line-2); }
::-webkit-scrollbar-track { background: transparent; }

@media print {
  .sidebar, .topbar { display: none; }
  body { background: #fff; }
  .panel, .stat-card, .cat-card, .hebel { break-inside: avoid; }
}
