/* ============================================================
   CHKT TRAINING — Main Stylesheet
   ============================================================ */

:root {
  --blue:      #1565c0;
  --blue-dark: #0d47a1;
  --teal:      #00838f;
  --red:       #c62828;
  --orange:    #e65100;
  --green:     #2e7d32;
  --bg:        #f0f4f8;
  --surface:   #ffffff;
  --border:    #dde3ea;
  --text:      #1a2332;
  --text-sub:  #546e7a;
  --sidebar-w: 220px;
  --radius:    10px;
  --shadow:    0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --font:      'Segoe UI', system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

.hidden { display: none !important; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: #1a2332;
  color: #e0e6f0;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  box-shadow: 2px 0 12px rgba(0,0,0,0.2);
}

.sidebar-brand {
  padding: 22px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand h1 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}
.sidebar-brand p {
  font-size: 10.5px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.lang-toggle {
  display: flex;
  gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lang-btn {
  flex: 1;
  padding: 5px 0;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.lang-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.lang-btn:hover:not(.active) { border-color: rgba(255,255,255,0.5); color: #fff; }

.nav-menu {
  list-style: none;
  padding: 12px 0;
  flex: 1;
  overflow-y: auto;
}
.nav-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13.5px;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.nav-menu li a .nav-icon { font-size: 16px; width: 20px; text-align: center; }
.nav-menu li a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-menu li a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-left-color: var(--blue);
}

.cp-status {
  padding: 10px 18px;
  font-size: 11px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}
.cp-loading { color: rgba(255,255,255,0.4); }
.cp-ready   { color: #69f0ae; }
.cp-error   { color: #ff5252; }

/* ── Main content ────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  padding: 0;
}

.page-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 28px 60px;
}

.page-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 22px; font-weight: 700; color: var(--text); }
.page-header p  { font-size: 13px; color: var(--text-sub); margin-top: 4px; }

/* ── Cards (home page) ───────────────────────────────────── */
.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.home-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.home-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.home-card-icon  { font-size: 32px; }
.home-card h3    { font-size: 15px; font-weight: 700; }
.home-card p     { font-size: 13px; color: var(--text-sub); flex: 1; }
.home-card .btn-primary { align-self: flex-start; margin-top: 4px; }

.home-info {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 24px;
}
.home-info h3  { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.home-info ul  { padding-left: 18px; }
.home-info li  { margin-bottom: 6px; font-size: 13.5px; }

/* ── Sub-tabs ────────────────────────────────────────────── */
.subtab-bar {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
  width: fit-content;
}
.subtab-btn {
  padding: 7px 18px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.subtab-btn:hover { color: var(--text); background: var(--bg); }
.subtab-btn.active {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

.subtab-content { display: block; }
.subtab-content.hidden { display: none; }

/* ── Input form ──────────────────────────────────────────── */
.calc-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.input-with-unit {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.15s;
}
.input-with-unit:focus-within { border-color: var(--blue); }
.input-with-unit input {
  flex: 1;
  border: none;
  outline: none;
  padding: 7px 10px;
  font-size: 13.5px;
  font-family: var(--font);
  background: transparent;
  min-width: 0;
}
.input-unit {
  padding: 7px 9px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-sub);
  white-space: nowrap;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.form-group select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13.5px;
  font-family: var(--font);
  background: var(--surface);
  cursor: pointer;
  outline: none;
}
.form-group select:focus { border-color: var(--blue); }
.form-hint { font-size: 11.5px; color: var(--text-sub); margin-bottom: 12px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover  { background: var(--blue-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: var(--surface);
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 7px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary:hover { background: #e3f0ff; }

.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.iso-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.iso-toggle input { accent-color: var(--blue); }

/* ── P-H diagram area ────────────────────────────────────── */
.diagram-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1000px) { .diagram-layout { grid-template-columns: 1fr; } }

.diagram-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.diagram-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--text-sub); }

#ph-canvas { width: 100%; min-height: 380px; position: relative; }
#ph-tooltip {
  position: fixed;
  background: rgba(26,35,50,0.92);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: pre-line;
  pointer-events: none;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  line-height: 1.6;
}

/* ── Results ─────────────────────────────────────────────── */
.results-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-bottom: 16px;
}
.results-table th {
  background: var(--bg);
  padding: 7px 8px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border);
}
.results-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
}
.results-table tr:last-child td { border-bottom: none; }

.pt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  margin-right: 4px;
}
.pt-1 { background: #1976d2; }
.pt-2 { background: #c62828; }
.pt-3 { background: #e65100; }
.pt-4 { background: #388e3c; }

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.kpi {
  background: var(--bg);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-label { font-size: 10.5px; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.3px; }
.kpi-value { font-size: 15px; font-weight: 700; color: var(--blue); }

/* ── Theory / Education ──────────────────────────────────── */
.theory-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.theory-section h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  color: var(--text);
}
.theory-section h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0 8px;
  color: var(--blue);
}
.theory-section p { margin-bottom: 10px; font-size: 13.5px; line-height: 1.65; }
.theory-section ul { padding-left: 20px; margin-bottom: 10px; }
.theory-section li { margin-bottom: 5px; font-size: 13.5px; }
.theory-section strong { color: var(--text); }

.zone-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 12px; }
@media (max-width: 800px) { .zone-cards { grid-template-columns: 1fr; } }
.zone-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 14px;
  border-left-width: 4px;
  border-left-style: solid;
}
.zone-card strong { display: block; margin-bottom: 6px; font-size: 13.5px; }
.zone-card p { font-size: 12.5px; color: var(--text-sub); margin: 0; }

.cycle-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 900px) { .cycle-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cycle-steps { grid-template-columns: 1fr; } }
.cycle-step {
  background: var(--bg);
  border-radius: 8px;
  padding: 14px;
  border-top-width: 3px;
  border-top-style: solid;
}
.cycle-step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cycle-step-num {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
}
.cycle-step-name { font-size: 13px; font-weight: 700; }
.cycle-step p { font-size: 12px; color: var(--text-sub); margin: 0; }

.params-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.params-table th {
  background: var(--bg);
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.params-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.params-table tr:last-child td { border-bottom: none; }
.params-table code {
  background: var(--bg);
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 11.5px;
  font-family: 'Cascadia Code', 'Consolas', monospace;
}

/* ── Faults ──────────────────────────────────────────────── */
.faults-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 16px; }
.fault-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.fault-card-header {
  background: #fff;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fault-name  { font-size: 14px; font-weight: 700; color: var(--text); }
.fault-short { font-size: 11.5px; color: var(--red); font-weight: 600; }
.fault-body  { padding: 12px 14px; }
.fault-section { margin-bottom: 10px; }
.fault-section h5 { font-size: 11.5px; font-weight: 700; color: var(--text-sub); text-transform: uppercase; margin-bottom: 5px; letter-spacing: 0.4px; }
.fault-section p  { font-size: 12.5px; margin: 0; }
.fault-section ul { padding-left: 16px; margin: 0; }
.fault-section li { font-size: 12.5px; margin-bottom: 3px; }
.fault-params { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fault-param {
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ── Circuit pages ───────────────────────────────────────── */
.circuit-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1000px) { .circuit-layout { grid-template-columns: 1fr; } }

.circuit-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.circuit-panel h3 { font-size: 14px; font-weight: 700; color: var(--text-sub); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.4px; }

#fridge-circuit, #ac-circuit, #heatpump-circuit {
  width: 100%;
  min-height: 300px;
}

.component-info-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 14px;
  margin-top: 10px;
}
.component-info-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--blue); }
.component-info-card p  { font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.measure-point-info {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12.5px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.measure-icon { font-size: 14px; flex-shrink: 0; }
.text-muted { color: var(--text-sub); font-style: italic; font-size: 13px; padding: 12px 0; text-align: center; }

/* Mini P-H canvas for circuit pages */
.mini-ph-canvas { width: 100%; min-height: 200px; }

/* HP mode toggle */
.mode-toggle { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.mode-toggle label { display: flex; align-items: center; gap: 5px; font-size: 13.5px; cursor: pointer; }
.mode-toggle input[type=radio] { accent-color: var(--blue); }

/* ── Quiz ────────────────────────────────────────────────── */
.quiz-start-screen {
  text-align: center;
  padding: 40px 20px;
}
.quiz-start-screen h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.quiz-start-screen p  { font-size: 14px; color: var(--text-sub); margin-bottom: 20px; }

.quiz-progress { margin-bottom: 12px; }
.quiz-progress-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
  transition: width 0.3s;
}
.quiz-progress-text { font-size: 12px; color: var(--text-sub); }

.quiz-score-chip {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.quiz-cat-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  background: var(--bg);
  color: var(--text-sub);
  border: 1px solid var(--border);
}

.quiz-question {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--text);
}

.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition: all 0.15s;
  width: 100%;
}
.quiz-option-btn:hover:not(:disabled) { border-color: var(--blue); background: #f0f6ff; }
.quiz-option-btn.correct { border-color: var(--green); background: #e8f5e9; color: #1b5e20; }
.quiz-option-btn.wrong   { border-color: var(--red); background: #ffebee; color: #b71c1c; }
.quiz-option-btn:disabled { cursor: default; }

.opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.correct .opt-letter { background: var(--green); color: #fff; border-color: var(--green); }
.wrong   .opt-letter { background: var(--red); color: #fff; border-color: var(--red); }
.opt-text { font-size: 13.5px; line-height: 1.4; }

.quiz-feedback {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.feedback-correct { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; }
.feedback-wrong   { background: #ffebee; border: 1px solid #ef9a9a; color: #b71c1c; }
.quiz-explanation { color: inherit; opacity: 0.8; font-style: italic; }

.quiz-next-btn { width: 100%; margin-top: 4px; }
.quiz-restart-btn { margin-top: 20px; }

/* Quiz visual illustration layout */
.quiz-with-visual {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 4px;
}
.quiz-visual-panel {
  flex: 0 0 240px;
  min-width: 200px;
  background: #f0f4f8;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 4px;
}
.quiz-visual-panel svg {
  border-radius: 6px;
}
.quiz-main-panel {
  flex: 1;
  min-width: 0;
}
@media (max-width: 620px) {
  .quiz-with-visual { flex-direction: column; }
  .quiz-visual-panel { flex: none; width: 100%; min-width: 0; }
}

.quiz-results { text-align: center; padding: 20px 0; }
.quiz-result-score {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.quiz-result-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
}
.grade-excellent .quiz-result-circle { background: #2e7d32; }
.grade-good      .quiz-result-circle { background: #00838f; }
.grade-pass      .quiz-result-circle { background: #e65100; }
.grade-fail      .quiz-result-circle { background: #c62828; }

.quiz-result-num { font-size: 32px; font-weight: 800; }
.quiz-result-den { font-size: 16px; }
.quiz-result-pct { font-size: 22px; font-weight: 700; }
.quiz-grade-text { font-size: 15px; font-weight: 600; margin-bottom: 16px; }

.quiz-result-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.result-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-correct { background: #43a047; }
.dot-wrong   { background: #e53935; }

/* ── Axis labels in SVG (D3 P-H diagram) ─────────────────── */
.diagram-bg { fill: #f8fafc; }
.axis text  { font-family: var(--font); fill: var(--text-sub); }
.axis path, .axis line { stroke: var(--border); }

/* Scrollbar */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Responsive: hide sidebar on small screens */
@media (max-width: 700px) {
  .sidebar { width: 60px; }
  .sidebar-brand p, .lang-toggle, .nav-menu li a span:not(.nav-icon), .cp-status { display: none; }
  .main-content { margin-left: 60px; }
  .nav-menu li a { justify-content: center; padding: 14px; }
}

/* ── CO2 Page ───────────────────────────────────────────── */
.home-card-co2 {
  border-top: 3px solid #00695c;
}
.home-card-co2 .home-card-icon {
  background: linear-gradient(135deg, #00695c22 0%, #00897b22 100%);
}

.co2-tab-content { margin-top: 0; }

.co2-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.co2-app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.co2-app-card .co2-app-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.co2-app-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #00695c;
}
.co2-app-card p {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* CO2 comparison table highlight */
.co2-compare-table .co2-highlight-col {
  background: rgba(0, 105, 92, 0.08);
  font-weight: 700;
  color: #00695c;
}
.co2-compare-table thead .co2-highlight-col {
  background: #00695c;
  color: #fff;
}

/* CO2 pressure badge */
.co2-pressure-badge {
  display: inline-block;
  background: #c62828;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 6px;
}

/* CO2 component cards */
.co2-comp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.co2-comp-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg);
  border-left: 5px solid #c62828;
  border-bottom: 1px solid var(--border);
}
.co2-comp-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.co2-comp-step {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.co2-comp-flow {
  font-size: 0.82rem;
  color: var(--text-sub);
  font-family: monospace;
  margin-bottom: 4px;
}
.co2-comp-body {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 700px) {
  .co2-comp-body { grid-template-columns: 1fr; }
}
.co2-comp-section h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-sub);
  margin: 0 0 6px;
}
.co2-comp-section p {
  font-size: 0.88rem;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}
.co2-comp-special {
  background: rgba(0, 105, 92, 0.06);
  border: 1px solid rgba(0, 105, 92, 0.2);
  border-radius: 6px;
  padding: 10px 12px;
}
.co2-comp-special h4 {
  color: #00695c;
}
.co2-comp-types {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--text-sub);
}
.co2-comp-types strong {
  color: var(--text);
}
.co2-comp-types ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
.co2-comp-types li {
  margin-bottom: 2px;
}

/* CO2 P-H process legend */
.co2-process-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
@media (max-width: 600px) {
  .co2-process-legend { grid-template-columns: 1fr; }
}
.co2-process-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.co2-process-line {
  width: 4px;
  min-height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 2px;
}
.co2-process-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.co2-process-item p {
  font-size: 0.83rem;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.5;
}
