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

body {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* ── Header brand + link ── */
.header-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.header-link:hover { color: var(--blue); }

/* ── Tab FREE badge ── */
.tab-badge {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 1px 6px;
  border-radius: 99px;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1.6;
}

/* ── Header ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 56px;
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.site-name-tile {
  width: 32px;
  height: 32px;
  background: #185FA5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.site-name-wordmark {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.tab-nav {
  display: flex;
  gap: 4px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.tab-btn:hover { background: var(--blue-light); color: var(--blue); }
.tab-btn.active { background: var(--blue-light); color: var(--blue); }

/* ── Tab panels ── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ── Dropzone ── */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--blue);
  background: var(--blue-light);
}

.drop-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.drop-inner p { color: var(--muted); }
.browse-link { color: var(--blue); cursor: pointer; text-decoration: underline; }
button.browse-link { background: none; border: 0; padding: 0; font: inherit; }
.demo-line { font-size: 13px; color: var(--muted); margin-top: 10px; }

.upload-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
}

.upload-status.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--success); }
.upload-status.error   { background: #fef2f2; border: 1px solid #fecaca; color: var(--red); }
.upload-status.loading { background: var(--blue-light); border: 1px solid #bfdbfe; color: var(--blue); }

/* ── Toggle group ── */
.toggle-group {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.toggle-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.toggle-btn:hover { border-color: var(--blue); color: var(--blue); }
.toggle-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ── Param row ── */
.param-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.param-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.unit { font-weight: 400; color: var(--muted); font-size: 12px; }

.param-input {
  width: 120px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
}

.param-input:focus {
  outline: none;
  border-color: var(--blue);
}

/* ── Model tabs ── */
.model-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}

.model-tab {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.model-tab:hover { border-color: var(--blue); color: var(--blue); }
.model-tab.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

.model-panel { display: none; }
.model-panel.active { display: block; }

.formula {
  font-family: 'Georgia', serif;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
}

.model-note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* ── Run section ── */
.run-section { text-align: right; }

/* ── Buttons ── */
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 7px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-primary:hover:not(:disabled) { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 7px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-secondary:hover { background: var(--blue-light); }

.btn-sm { padding: 5px 11px; font-size: 12px; }

.btn-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}

.btn-remove:hover { color: var(--red); }

/* ── Summary grid ── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.summary-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.metric-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.metric-value { font-size: 20px; font-weight: 700; color: var(--text); }

/* ── Chart ── */
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chart-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.chart-wrap {
  position: relative;
  width: 100%;
  height: 340px;
}

.chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* ── Bouts table ── */
.bouts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bouts-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.bouts-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}

.bout-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 13px;
}

.bout-input:focus { outline: none; border-color: var(--blue); }

/* ── W′ERG display ── */
.werg-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--blue-light);
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  flex-wrap: wrap;
}

/* ── Checkbox label ── */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* ── Diary-specific ── */
.btn-icon {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  transition: background 0.1s, color 0.1s;
}
.btn-icon:hover { background: #fee2e2; color: var(--red); border-color: #fca5a5; }

.diary-note-input { min-width: 120px; }

.upload-status.success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: var(--success);
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
}

.rmse-line {
  font-size: 13px;
  color: var(--muted);
  font-family: 'Courier New', monospace;
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 4px;
}

.werg-label { font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.werg-value { font-size: 18px; font-weight: 700; color: var(--blue); }
.werg-hint  { font-size: 12px; color: var(--muted); }

.trial-role {
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
}

.trial-role:focus { outline: none; border-color: var(--blue); }

/* ── Trial detail panel ── */
.trial-detail-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-top: 4px;
}

.trial-range-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.range-input {
  width: 72px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 13px;
}

.range-input:focus { outline: none; border-color: var(--blue); }

/* ── Fit results ── */
.fit-constants {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.fit-const-item { font-size: 15px; font-weight: 600; }
.fit-const-item span { font-weight: 400; color: var(--muted); }

.rmse-line { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* ── Modals ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.modal-error {
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--red);
  background: var(--red-tint);
  border: 1px solid color-mix(in srgb, var(--red) 25%, transparent);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}

.modal-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ── Pro badge ── */
.pro-badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 1px 6px;
  border-radius: 99px;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1.6;
}

/* ── Tooltips ── */
.tip-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  background: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  vertical-align: middle;
}

.tip-btn:hover,
.tip-btn:focus {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
  outline: none;
}

.tip-popover {
  position: fixed;
  z-index: 999;
  max-width: 320px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 13px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
}

.tip-popover.visible { opacity: 1; }

/* ── Page intro banner ── */
.page-intro {
  background: var(--blue-light);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 22px 24px;
}

.page-intro .section-title {
  margin-bottom: 10px;
}

.page-intro .intro-lead {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 18px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.intro-block h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 8px;
}

.intro-block ul {
  padding-left: 16px;
  margin: 0;
  list-style-type: disc;
}

.intro-block li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2px;
}

/* ── Utilities ── */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   PER-TAB VISUAL IDENTITY
   Each tab gets its own accent colour via scoped CSS variable overrides.
   The Analyse tab goes fully dark (performance-dashboard aesthetic).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Header accent strip — thin coloured bottom border per active tab ── */
.site-header { transition: box-shadow 0.3s; }
body[data-tab="analyse"]      .site-header { box-shadow: inset 0 -3px 0 var(--tool-analyse); border-bottom-color: transparent; }
body[data-tab="cp-determine"] .site-header { box-shadow: inset 0 -3px 0 var(--tool-cp); border-bottom-color: transparent; }
body[data-tab="calculator"]   .site-header { box-shadow: inset 0 -3px 0 var(--tool-calc); border-bottom-color: transparent; }
body[data-tab="diary"]        .site-header { box-shadow: inset 0 -3px 0 var(--tool-diary); border-bottom-color: transparent; }

/* ── Active tab button: each tab's colour ── */
body[data-tab="analyse"]      .tab-btn[data-tab="analyse"].active      { background: var(--dash-bg); color: var(--tool-analyse); }
body[data-tab="cp-determine"] .tab-btn[data-tab="cp-determine"].active { background: #ecfdf5; color: var(--tool-cp); }
body[data-tab="calculator"]   .tab-btn[data-tab="calculator"].active   { background: #f5f3ff; color: var(--tool-calc); }
body[data-tab="diary"]        .tab-btn[data-tab="diary"].active        { background: #fef3c7; color: var(--tool-diary); }

/* ══════════════════════════════════════════════
   TAB 1 — ANALYSE EFFORT
   Dark performance-dashboard aesthetic.
   The chart is the centrepiece; everything else
   steps back and lets it breathe.
   ══════════════════════════════════════════════ */
#tab-analyse {
  --bg:         var(--dash-bg);
  --white:      var(--dash-surface);
  --text:       var(--dash-text);
  --muted:      var(--dash-muted);
  --border:     var(--dash-border);
  --blue:       var(--tool-analyse);
  --blue-light: rgba(56, 189, 248, 0.08);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56,189,248,0.06) 0%, transparent 55%),
    linear-gradient(rgba(56,189,248,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.025) 1px, transparent 1px),
    var(--dash-bg);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  min-height: calc(100vh - 56px);
}

#tab-analyse .page-intro {
  background:    rgba(56, 189, 248, 0.05);
  border-color:  var(--dash-border);
  border-left-color: var(--tool-analyse);
}
#tab-analyse .page-intro .intro-lead { color: #cbd5e1; }
#tab-analyse .intro-block h4         { color: var(--tool-analyse); }
#tab-analyse .intro-block li         { color: var(--dash-muted); }

/* Chart is the hero — make it tall */
#tab-analyse .chart-wrap { height: 420px; }

/* Buttons */
#tab-analyse .btn-primary              { background: var(--tool-analyse); color: var(--dash-bg); font-weight: 700; }
#tab-analyse .btn-primary:disabled     { opacity: 0.3; }
#tab-analyse .btn-secondary            { background: transparent; border-color: #475569; color: var(--dash-muted); }
#tab-analyse .btn-secondary:hover      { background: rgba(56,189,248,0.08); border-color: var(--tool-analyse); color: var(--tool-analyse); }

/* Toggles + model tabs */
#tab-analyse .toggle-btn               { background: transparent; border-color: var(--dash-border); color: var(--dash-muted); }
#tab-analyse .toggle-btn:hover         { border-color: var(--tool-analyse); color: var(--tool-analyse); }
#tab-analyse .toggle-btn.active        { background: var(--tool-analyse); border-color: var(--tool-analyse); color: var(--dash-bg); }
#tab-analyse .model-tab                { background: transparent; border-color: var(--dash-border); color: var(--dash-muted); }
#tab-analyse .model-tab:hover          { border-color: var(--tool-analyse); color: var(--tool-analyse); }
#tab-analyse .model-tab.active         { background: var(--tool-analyse); border-color: var(--tool-analyse); color: var(--dash-bg); }
#tab-analyse .formula                  { color: var(--dash-text); }
#tab-analyse .model-panel p            { color: var(--dash-muted); }
#tab-analyse .model-note            { color: #64748b; }

/* Metric cards */
#tab-analyse .summary-card             { border-color: var(--dash-border); background: rgba(15,23,42,0.6); }
#tab-analyse .metric-value             { color: var(--dash-text); }
#tab-analyse .metric-label             { color: var(--dash-muted); }

/* Table */
#tab-analyse .bouts-table th  { color: var(--dash-muted); border-color: var(--dash-border); }
#tab-analyse .bouts-table td  { color: #cbd5e1; border-color: #2d3f55; }

/* Upload status messages */
#tab-analyse .upload-status.success { background: rgba(22,163,74,0.12);  border-color: rgba(74,222,128,0.3); color: #4ade80; }
#tab-analyse .upload-status.error   { background: rgba(220,38,38,0.12);  border-color: rgba(248,113,113,0.3); color: #f87171; }
#tab-analyse .upload-status.loading { background: rgba(56,189,248,0.08); border-color: rgba(56,189,248,0.3);  color: var(--tool-analyse); }

/* Dropzone */
#tab-analyse .dropzone              { border-color: var(--dash-border); }
#tab-analyse .dropzone:hover,
#tab-analyse .dropzone.drag-over   { border-color: var(--tool-analyse); background: rgba(56,189,248,0.05); }
#tab-analyse .drop-inner p         { color: var(--dash-muted); }
#tab-analyse .browse-link          { color: var(--tool-analyse); }

/* Misc */
#tab-analyse .rmse-line            { background: rgba(15,23,42,0.8); color: #64748b; border: 1px solid var(--dash-border); }
#tab-analyse .section-hint a       { color: var(--tool-analyse); }
#tab-analyse .werg-row             { background: rgba(56,189,248,0.08); border-color: rgba(56,189,248,0.25); }
#tab-analyse .werg-label,
#tab-analyse .werg-value           { color: var(--tool-analyse); }
#tab-analyse .werg-hint            { color: #64748b; }
#tab-analyse .checkbox-label       { color: #cbd5e1; }
#tab-analyse .checkbox-label input[type="checkbox"] { accent-color: var(--tool-analyse); }
#tab-analyse .pro-badge            { background: rgba(56,189,248,0.15); color: var(--tool-analyse); border: 1px solid rgba(56,189,248,0.3); }
#tab-analyse .tip-btn              { border-color: #475569; color: #64748b; }
#tab-analyse .tip-btn:hover        { border-color: var(--tool-analyse); color: var(--tool-analyse); background: rgba(56,189,248,0.08); }
#tab-analyse .page-intro .section-title { color: var(--tool-analyse); }
/* Override hardcoded border on page-intro */
#tab-analyse .page-intro { border: 1px solid var(--dash-border); border-left: 4px solid var(--tool-analyse); }

/* ══════════════════════════════════════════════
   TAB 2 — DETERMINE CP
   Scientific, precise. Emerald accent with a
   faint graph-paper grid background. The
   power-duration curve is the centrepiece.
   ══════════════════════════════════════════════ */
#tab-cp-determine {
  --blue:       var(--tool-cp);
  --blue-light: #ecfdf5;
  background:
    linear-gradient(rgba(5,150,105,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5,150,105,0.04) 1px, transparent 1px),
    #f8fffb;
  background-size: 24px 24px;
}

#tab-cp-determine .page-intro      { background: #ecfdf5; border-color: #a7f3d0; border-left-color: var(--tool-cp); }
#tab-cp-determine .section-title   { color: var(--tool-cp); }
#tab-cp-determine .intro-block h4  { color: var(--tool-cp); }
#tab-cp-determine .btn-primary     { background: var(--tool-cp); }
#tab-cp-determine .toggle-btn.active, #tab-cp-determine .model-tab.active { background: var(--tool-cp); border-color: var(--tool-cp); }
#tab-cp-determine .toggle-btn:hover, #tab-cp-determine .model-tab:hover   { border-color: var(--tool-cp); color: var(--tool-cp); }
#tab-cp-determine .param-input:focus  { border-color: var(--tool-cp); }
#tab-cp-determine .pro-badge, #tab-cp-determine .tab-badge { background: var(--tool-cp); }
#tab-cp-determine .summary-card    { border-left: 3px solid var(--tool-cp); padding-left: 14px; }
#tab-cp-determine .chart-wrap      { height: 380px; }
#tab-cp-determine .tip-btn:hover   { border-color: var(--tool-cp); color: var(--tool-cp); background: #ecfdf5; }
#tab-cp-determine a[style*="color:var(--blue)"] { color: var(--tool-cp) !important; }
#tab-cp-determine .section-hint a  { color: var(--tool-cp); }

/* ══════════════════════════════════════════════
   TAB 3 — RECOVERY RATE CALCULATOR
   Clinical, technical. Violet accent conveys
   precision and physiological depth. Clean
   white with a cool tint.
   ══════════════════════════════════════════════ */
#tab-calculator {
  --blue:       var(--tool-calc);
  --blue-light: #f5f3ff;
  background: #faf8ff;
}

#tab-calculator .page-intro     { background: #f5f3ff; border-color: #ddd6fe; border-left-color: var(--tool-calc); }
#tab-calculator .section-title  { color: var(--tool-calc); }
#tab-calculator .intro-block h4 { color: var(--tool-calc); }
#tab-calculator .btn-primary    { background: var(--tool-calc); }
#tab-calculator .toggle-btn.active, #tab-calculator .model-tab.active { background: var(--tool-calc); border-color: var(--tool-calc); }
#tab-calculator .toggle-btn:hover, #tab-calculator .model-tab:hover   { border-color: var(--tool-calc); color: var(--tool-calc); }
#tab-calculator .param-input:focus { border-color: var(--tool-calc); }
#tab-calculator .pro-badge      { background: var(--tool-calc); }
#tab-calculator .summary-card   { border-left: 3px solid var(--tool-calc); padding-left: 14px; }
#tab-calculator .werg-row       { background: #f5f3ff; border-color: #ddd6fe; }
#tab-calculator .werg-label, #tab-calculator .werg-value { color: var(--tool-calc); }
#tab-calculator .tip-btn:hover  { border-color: var(--tool-calc); color: var(--tool-calc); background: #f5f3ff; }
#tab-calculator .trial-role:focus { border-color: var(--tool-calc); }

/* ══════════════════════════════════════════════
   TAB 4 — TRAINING DIARY
   Warm, logbook feel. Amber accent evokes
   training journals, seasons, and progress
   over time.
   ══════════════════════════════════════════════ */
#tab-diary {
  --blue:       var(--tool-diary);
  --blue-light: #fffbeb;
  background: #fffdf7;
}

#tab-diary .page-intro     { background: #fffbeb; border-color: #fde68a; border-left-color: var(--tool-diary); }
#tab-diary .section-title  { color: var(--tool-diary); }
#tab-diary .intro-block h4 { color: var(--tool-diary); }
#tab-diary .btn-primary    { background: var(--tool-diary); }
#tab-diary .toggle-btn.active { background: var(--tool-diary); border-color: var(--tool-diary); }
#tab-diary .toggle-btn:hover  { border-color: var(--tool-diary); color: var(--tool-diary); }
#tab-diary .param-input:focus { border-color: var(--tool-diary); }
#tab-diary .pro-badge      { background: var(--tool-diary); }
#tab-diary .summary-card   { border-left: 3px solid var(--tool-diary); padding-left: 14px; }
#tab-diary .btn-icon:hover { background: #fef3c7; color: #b45309; border-color: #fde68a; }
#tab-diary .tip-btn:hover  { border-color: var(--tool-diary); color: var(--tool-diary); background: #fffbeb; }
#tab-diary .strava-analyse-btn { color: var(--tool-diary); border-color: var(--tool-diary); }
#tab-diary .strava-analyse-btn:hover { background: #fffbeb; }

/* ═══════════════════════════════════════════════════════════════════
   POLISH LAYER (2026 refresh)
   Brings the marketing-site visual language into the app: gradient
   buttons that lift on hover, softer elevated cards, refined inputs
   with focus rings, and a glassy header. Appended last so these
   component upgrades win over the base rules above, while the
   per-tab accent system (which sets colours by #id) stays in charge
   of palette. No markup, IDs, or classes are changed.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --shadow-card:  0 1px 2px rgba(16,32,64,.04), 0 4px 14px rgba(16,32,64,.05);
  --shadow-hover: 0 8px 28px rgba(16,32,64,.10), 0 2px 8px rgba(16,32,64,.06);
  --shadow-btn:   0 4px 12px rgba(16,32,64,.14);
  --ease-pop:     cubic-bezier(.16,.84,.44,1);
}

/* ── Glassy, elevated header ── */
.site-header {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-name-tile {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  box-shadow: 0 4px 12px rgba(24,95,165,.3);
}
/* Keep each tab's coloured accent strip, add a soft drop shadow under it */
.site-header { box-shadow: 0 1px 0 rgba(16,32,64,.04), 0 6px 20px rgba(16,32,64,.05); }
body[data-tab="analyse"]      .site-header { box-shadow: inset 0 -3px 0 var(--tool-analyse), 0 6px 20px rgba(16,32,64,.06); border-bottom-color: transparent; }
body[data-tab="cp-determine"] .site-header { box-shadow: inset 0 -3px 0 var(--tool-cp),      0 6px 20px rgba(16,32,64,.06); border-bottom-color: transparent; }
body[data-tab="calculator"]   .site-header { box-shadow: inset 0 -3px 0 var(--tool-calc),    0 6px 20px rgba(16,32,64,.06); border-bottom-color: transparent; }
body[data-tab="diary"]        .site-header { box-shadow: inset 0 -3px 0 var(--tool-diary),   0 6px 20px rgba(16,32,64,.06); border-bottom-color: transparent; }

/* ── Tab buttons: smoother + a touch of weight when active ── */
.tab-btn { transition: background .18s, color .18s, transform .18s var(--ease-pop); }
.tab-btn:active { transform: translateY(1px); }

/* ── Cards: gentle elevation instead of a flat outline ── */
.card {
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s var(--ease-pop), border-color .25s, transform .25s var(--ease-pop);
}
.card:hover { box-shadow: var(--shadow-hover); }
/* On the dark Analyse tab a pale shadow won't read — lift the border instead */
#tab-analyse .card { box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 10px 30px rgba(0,0,0,.28); }
#tab-analyse .card:hover { border-color: rgba(56,189,248,.35); }

/* ── Primary buttons: gradient + hover lift + press ── */
.btn-primary {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  box-shadow: var(--shadow-btn);
  transition: transform .18s var(--ease-pop), box-shadow .18s, opacity .15s, filter .15s;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,32,64,.22); opacity: 1; filter: brightness(1.04); }
.btn-primary:active:not(:disabled) { transform: translateY(0); box-shadow: var(--shadow-btn); }
.btn-primary:disabled { box-shadow: none; }

/* Per-tab gradient primaries (override the earlier solid-colour per-tab rules) */
#tab-analyse .btn-primary      { background: linear-gradient(135deg, #1E6FBE, #38BDF8); box-shadow: 0 6px 18px rgba(56,189,248,.30); }
#tab-cp-determine .btn-primary { background: linear-gradient(135deg, #047857, #10B981); }
#tab-calculator .btn-primary   { background: linear-gradient(135deg, #6D28D9, #8B5CF6); }
#tab-diary .btn-primary        { background: linear-gradient(135deg, #B45309, #F59E0B); }

/* ── Secondary buttons: subtle lift + shadow ── */
.btn-secondary { transition: background .15s, transform .18s var(--ease-pop), box-shadow .18s, border-color .15s; }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-secondary:active { transform: translateY(0); box-shadow: none; }

/* ── Toggle / model tabs: smoother, with depth when active ── */
.toggle-btn, .model-tab { transition: background .15s, color .15s, border-color .15s, transform .15s var(--ease-pop), box-shadow .15s; }
.toggle-btn.active, .model-tab.active { box-shadow: 0 4px 12px rgba(16,32,64,.16); }
.toggle-btn:active, .model-tab:active { transform: translateY(1px); }

/* ── Inputs: adaptive focus ring in the active tab's colour ── */
.param-input, .bout-input, .range-input, .trial-role {
  transition: border-color .15s, box-shadow .15s;
}
.param-input:focus, .bout-input:focus, .range-input:focus, .trial-role:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}

/* ── Metric / summary cards: subtle elevation + hover ── */
.summary-card {
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease-pop), box-shadow .2s;
}
.summary-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
#tab-analyse .summary-card { box-shadow: 0 6px 18px rgba(0,0,0,.22); }
#tab-analyse .summary-card:hover { border-color: rgba(56,189,248,.4); }

/* ── Page intro banner: a touch of depth ── */
.page-intro { box-shadow: var(--shadow-card); }

/* ── Dropzone: friendlier hover ── */
.dropzone { transition: border-color .18s, background .18s, transform .18s var(--ease-pop), box-shadow .18s; }
.dropzone:hover, .dropzone.drag-over { box-shadow: var(--shadow-card); }

/* ── Pro badge: gradient to match the marketing site ── */
.pro-badge { background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); }

@media (prefers-reduced-motion: reduce) {
  .card, .btn-primary, .btn-secondary, .toggle-btn, .model-tab,
  .summary-card, .tab-btn, .dropzone {
    transition: none !important;
  }
  .btn-primary:hover, .btn-secondary:hover, .summary-card:hover { transform: none !important; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 8px 0 0;
    gap: 0;
  }

  .header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 16px 8px;
    width: 100%;
  }
  .header-brand::-webkit-scrollbar { display: none; }

  .header-link {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .site-name {
    flex-shrink: 0;
  }

  .tab-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 12px 6px;
    width: 100%;
    border-top: 1px solid var(--border);
  }
  .tab-nav::-webkit-scrollbar { display: none; }

  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
    padding: 6px 12px;
  }

  .panel-inner { padding: 12px; }
  .card { padding: 16px; }
  .param-input { width: 100px; }
  .chart-wrap { height: 280px; }
  .chart-header { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════════
   IDENTITY SHELL (2026 redesign)
   A unified dark "cockpit" header ties every product page together,
   while each tool announces itself with a full-width identity
   masthead — numbered eyebrow, display-type title, and a unique
   line-drawn motif in the tool's own accent colour. Appended last so
   it wins the cascade; no markup hooks used by app JS are changed.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Dark cockpit header ─────────────────────────────────────────── */
.site-header {
  background: linear-gradient(180deg, var(--shell-bg) 0%, var(--shell-bg-2) 100%);
  border-bottom: 1px solid var(--shell-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-name-wordmark { color: var(--shell-bright); }
.header-link { color: var(--shell-text); }
.header-link:hover { color: #FFFFFF; }
.site-name-tile {
  background: linear-gradient(135deg, var(--blue-mid), #7DD3FC);
  box-shadow: 0 0 0 1px rgba(125,211,252,.25), 0 4px 14px rgba(56,189,248,.25);
}
.site-name-tile svg path, .site-name-tile svg line { stroke: #07121F; }

/* Tab buttons on dark: slate at rest, tool-coloured dot always visible */
.tab-btn {
  color: var(--shell-text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 99px;
  padding: 7px 15px;
}
.tab-btn::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: none;
  background: currentColor;
  opacity: .8;
  transition: box-shadow .2s;
}
.tab-btn[data-tab="analyse"]::before      { background: var(--tool-analyse); }
.tab-btn[data-tab="cp-determine"]::before { background: #34D399; }
.tab-btn[data-tab="calculator"]::before   { background: #A78BFA; }
.tab-btn[data-tab="diary"]::before        { background: #FBBF24; }
.tab-btn:hover { background: rgba(148,163,184,.12); color: var(--shell-bright); }

/* Active pill lights up in the tool's own colour */
body[data-tab="analyse"]      .tab-btn[data-tab="analyse"].active      { background: var(--tool-analyse); color: #07121F; }
body[data-tab="cp-determine"] .tab-btn[data-tab="cp-determine"].active { background: #34D399; color: #052E1D; }
body[data-tab="calculator"]   .tab-btn[data-tab="calculator"].active   { background: #A78BFA; color: #1E1145; }
body[data-tab="diary"]        .tab-btn[data-tab="diary"].active        { background: #FBBF24; color: #3B2402; }
.tab-btn.active::before { background: currentColor !important; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.tab-btn.active .pro-badge, .tab-btn.active .tab-badge { background: rgba(0,0,0,.28); color: #fff; }

/* Header accent strip per page (non-tabbed product pages) */
body[data-page="planner"] .site-header { box-shadow: inset 0 -3px 0 var(--tool-planner), 0 6px 20px rgba(0,0,0,.25); }
body[data-page="coach"]   .site-header { box-shadow: inset 0 -3px 0 var(--tool-coach),   0 6px 20px rgba(0,0,0,.25); }
body[data-page="account"] .site-header { box-shadow: inset 0 -3px 0 var(--tool-account), 0 6px 20px rgba(0,0,0,.25); }
body[data-page="threshold"] .site-header { box-shadow: inset 0 -3px 0 var(--tool-threshold), 0 6px 20px rgba(0,0,0,.25); }

/* Sign-out button inherits .header-link colours already */

/* ── Identity masthead ───────────────────────────────────────────── */
.masthead {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 30px 34px 26px;
  min-height: 148px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(120% 180% at 100% 0%, color-mix(in srgb, var(--mast-accent, #38BDF8) 30%, transparent) 0%, transparent 55%),
    linear-gradient(115deg, var(--shell-bg) 40%, color-mix(in srgb, var(--mast-accent, #38BDF8) 22%, var(--shell-bg)) 100%);
  border: 1px solid color-mix(in srgb, var(--mast-accent, #38BDF8) 35%, var(--shell-border));
  box-shadow: 0 18px 44px rgba(4,12,26,.35);
}
.masthead[data-tool="analyse"] { --mast-accent: var(--tool-analyse); }
.masthead[data-tool="cp"]      { --mast-accent: #34D399; }
.masthead[data-tool="calc"]    { --mast-accent: #A78BFA; }
.masthead[data-tool="diary"]   { --mast-accent: #FBBF24; }
.masthead[data-tool="planner"] { --mast-accent: #FB7185; }
.masthead[data-tool="coach"]   { --mast-accent: #818CF8; }
.masthead[data-tool="account"] { --mast-accent: #2DD4BF; }
.masthead[data-tool="threshold"] { --mast-accent: #E879F9; }

.mast-copy { position: relative; z-index: 2; max-width: 640px; }
.mast-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mast-accent, #38BDF8);
  margin-bottom: 10px;
}
.mast-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, var(--mast-accent, #38BDF8) 55%, transparent);
  border-radius: 6px;
  font-weight: 500;
  background: color-mix(in srgb, var(--mast-accent, #38BDF8) 12%, transparent);
}
.mast-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--shell-bright);
  margin: 0 0 8px;
}
.mast-sub {
  font-size: 15px;
  line-height: 1.55;
  color: #B7C3D4;
  margin: 0;
  max-width: 56ch;
}
.mast-motif {
  position: absolute;
  right: -10px;
  bottom: -8px;
  height: 125%;
  max-height: 240px;
  width: auto;
  z-index: 1;
  color: var(--mast-accent, #38BDF8);
  opacity: .55;
  pointer-events: none;
  /* The copy is layered above this (see .mast-copy z-index), but a long
     subtitle still runs across the motif and reads as clutter. Fade the motif
     out towards the text so the two never compete. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 70%);
}

/* On narrow viewports the masthead has no room for both — drop the motif. */
@media (max-width: 700px) {
  .mast-motif { display: none; }
}
.masthead .pro-badge, .masthead .tab-badge {
  position: static;
  background: color-mix(in srgb, var(--mast-accent, #38BDF8) 20%, transparent);
  color: var(--mast-accent, #38BDF8);
  border: 1px solid color-mix(in srgb, var(--mast-accent, #38BDF8) 45%, transparent);
  margin-left: 0;
}

/* ── "About this tool" — the old intro wall, now collapsed ───────── */
details.page-intro { padding: 0; overflow: hidden; }
details.page-intro > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 9px;
  user-select: none;
  transition: background .15s;
}
details.page-intro > summary::-webkit-details-marker { display: none; }
details.page-intro > summary::before {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
  transition: transform .2s var(--ease-pop);
  flex: none;
}
details.page-intro[open] > summary::before { transform: rotate(45deg); }
details.page-intro > summary:hover { background: rgba(0,0,0,.03); }
#tab-analyse details.page-intro > summary:hover { background: rgba(255,255,255,.04); }
details.page-intro .intro-body { padding: 4px 24px 22px; }
details.page-intro .intro-lead { margin-bottom: 18px; }

/* ── Stronger per-tab surfaces ───────────────────────────────────── */
/* Calculator: violet dotted lab-grid */
#tab-calculator {
  background:
    radial-gradient(rgba(124,58,237,.10) 1px, transparent 1px),
    #FAF8FF;
  background-size: 22px 22px;
}
/* Diary: warm ruled logbook paper */
#tab-diary {
  background:
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(217,119,6,.055) 30px 31px),
    #FFFDF6;
}

/* ── Masthead motif animation (dash draw-in) ─────────────────────── */
@keyframes mast-draw { from { stroke-dashoffset: 620; } to { stroke-dashoffset: 0; } }
.mast-motif .draw {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: mast-draw 1.6s .2s cubic-bezier(.3,.7,.3,1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .mast-motif .draw { animation: none; stroke-dashoffset: 0; }
}

/* ── Responsive masthead ─────────────────────────────────────────── */
@media (max-width: 720px) {
  .masthead { padding: 22px 20px 20px; min-height: 0; border-radius: 14px; }
  .mast-motif { opacity: .22; }
  .mast-title { font-size: 26px; }
  .mast-sub { font-size: 14px; }
}

/* ── Shell fixes: no-wrap nav pills, wider header, full-height tabs ── */
.header-inner { max-width: 1280px; gap: 24px; }
.tab-btn { white-space: nowrap; }
.tab-nav { margin-left: auto; }
@media (min-width: 641px) and (max-width: 1180px) {
  .tab-nav { overflow-x: auto; scrollbar-width: none; }
  .tab-nav::-webkit-scrollbar { display: none; }
  .tab-btn { font-size: 13px; padding: 6px 12px; }
}
#tab-cp-determine, #tab-calculator, #tab-diary { min-height: calc(100vh - var(--header-height)); }

/* ── Shared site footer ──────────────────────────────────────────────
   Used by the standalone tool pages (CP calculator, W′bal calculator).
   Every page needs a reachable privacy policy and a way to get in touch,
   and these two are often a visitor's first contact with the product. */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 22px 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--width-app, 1100px);
  margin-left: auto;
  margin-right: auto;
}
.site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.site-footer .footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.site-footer .footer-links a { color: var(--muted); text-decoration: none; }
.site-footer .footer-links a:hover { color: var(--blue); text-decoration: underline; }
.site-footer .footer-links a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── Accessibility utilities ─────────────────────────────────────────
   Content that must reach assistive technology without occupying space. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link — without one, a keyboard user tabs the whole header on every
   page load before reaching any content. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* A visible focus ring everywhere. Several inputs cleared the outline and
   replaced it with a 1px border-colour change, which is too weak to see. */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.param-input:focus-visible,
.bout-input:focus-visible,
.trial-role:focus-visible,
.range-input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
/* Each tool tints its own focus ring to match its accent. */
#tab-cp-determine :focus-visible { outline-color: var(--tool-cp); }
#tab-calculator   :focus-visible { outline-color: var(--tool-calc); }
#tab-diary        :focus-visible { outline-color: var(--tool-diary); }
#tab-analyse      :focus-visible { outline-color: var(--tool-analyse); }

/* ── Skiba formulation picker (inside the Skiba recovery-model panel) ── */
.skiba-variants { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.skiba-variant-note[hidden] { display: none; }

/* ── W′bal feasibility warning (analyser summary) ── */
.feasibility-warning {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: rgba(217, 119, 6, .12); border: 1px solid rgba(217, 119, 6, .45);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.feasibility-warning p { margin: 0; font-size: 14px; line-height: 1.5; flex: 1 1 320px; color: #92400e; }
.feasibility-warning.hidden { display: none; }
#tab-analyse .feasibility-warning   { background: rgba(245, 158, 11, .10); border-color: rgba(251, 191, 36, .45); }
#tab-analyse .feasibility-warning p { color: #fde68a; }
/* Same surface, same problem: the auto-CP note has an inline light-blue tint
   made for dark text, which the dark tab then cannot show. */
#tab-analyse #autocp-banner { background: rgba(56, 189, 248, .10) !important; border: 1px solid rgba(56, 189, 248, .35); }
#tab-analyse #autocp-text   { color: #e0f2fe; }
