  :root {
    --accent: #DE0101;
    --text-main: #1a1a1a;
    --text-muted: #6b6b6b;
    --bg-page: #f7f7f8;
    --card-shadow: 0 0 1em 0 #e2e2e2;
    --border: #e2e2e2;
  }
  * { box-sizing: border-box; }
  body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-page);
    margin: 0;
    padding: 24px 16px;
    color: var(--text-main);
  }
  .calc-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 0.5em;
    box-shadow: var(--card-shadow);
    padding: 28px 24px;
  }
  h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
  .subtitle { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; line-height: 1.5; }
  h3 { font-size: 15px; font-weight: 700; margin: 26px 0 12px; }

  .field { margin-bottom: 14px; }
  .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
  .field-row { display: flex; gap: 12px; }
  .field-row .field { flex: 1; }

  input[type="number"], select {
    width: 100%; padding: 10px 11px; border: 1px solid #d9d9d9; border-radius: 3px;
    font-family: 'Montserrat', sans-serif; font-size: 14px; color: var(--text-main); outline: none;
    background: #fff;
  }
  input[type="number"]:focus, select:focus { border-color: var(--accent); }

  .result {
    margin-top: 24px;
    padding: 20px;
    border-radius: 0.5em;
    background: #fafafa;
    border: 1px solid #ececec;
  }
  .result-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 6px 0; font-size: 13px; color: var(--text-muted);
  }
  .result-row span:last-child { color: var(--text-main); font-weight: 600; }
  .total-main {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-top: 12px; margin-top: 8px; border-top: 1px solid #e2e2e2;
  }
  .total-main .label { font-size: 14px; font-weight: 700; }
  .total-main .value { font-size: 26px; font-weight: 700; color: var(--accent); }

  .section-note {
    font-size: 12.5px; color: var(--text-muted); margin: 0 0 16px; line-height: 1.6;
  }
  .field-note {
    font-size: 11.5px; color: var(--text-muted); line-height: 1.5;
  }
  .warning {
    display: none;
    margin: 4px 0 16px;
    padding: 10px 14px;
    border-radius: 0.5em;
    background: #fff4de;
    color: #9a6b00;
    font-size: 12.5px;
    line-height: 1.5;
  }
  .warning.show { display: block; }

  .coverage-card {
    margin: 4px 0 20px;
    padding: 16px;
    border-radius: 0.5em;
    background: #fafafa;
    border: 1px solid #ececec;
  }
  .coverage-row {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 13px; color: var(--text-muted); padding: 3px 0;
  }
  .coverage-row span:last-child { color: var(--text-main); font-weight: 700; }
  .coverage-bar-track {
    margin: 10px 0 8px;
    height: 10px;
    border-radius: 20px;
    background: #e7e7e7;
    overflow: hidden;
  }
  .coverage-bar-fill {
    height: 100%; border-radius: 20px;
    background: #1a9c53;
    width: 0%;
    transition: width 0.2s ease, background 0.2s ease;
  }
  .coverage-bar-fill.warn { background: #e0a400; }
  .coverage-bar-fill.danger { background: var(--accent); }
  .coverage-status {
    font-size: 12.5px; line-height: 1.5; font-weight: 600;
  }
  .coverage-status.ok { color: #1a7d3f; }
  .coverage-status.warn { color: #9a6b00; }
  .coverage-status.danger { color: var(--accent); }

  .recs {
    margin-top: 16px;
  }
  .rec-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 0.5em;
    margin-bottom: 8px;
    font-size: 13px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
  }
  .rec-item:hover { border-color: var(--accent); background: #fffafa; }
  .rec-item b { font-size: 14px; }
  .rec-item .rec-total { color: var(--text-muted); }
  .rec-item.rec-best { border-color: var(--accent); background: #fdf3f3; }
  .rec-item.rec-mixed { cursor: default; }
  .rec-item.rec-mixed:hover { border-color: var(--border); background: inherit; }
  .rec-item.rec-mixed.rec-best:hover { border-color: var(--accent); background: #fdf3f3; }
  .badge-best {
    display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 20px;
    font-size: 10px; font-weight: 700; background: var(--accent); color: #fff;
  }

  .hint {
    font-size: 12px; color: var(--text-muted); margin-top: 18px; line-height: 1.5;
  }

  .cta { margin-top: 20px; text-align: center; }
  .cta a.secondary-link {
    display: inline-block; color: var(--text-muted); text-decoration: none;
    font-size: 13px; font-weight: 600; border-bottom: 1px dashed var(--text-muted);
    padding-bottom: 1px;
  }
  .cta a.secondary-link:hover { color: var(--accent); border-color: var(--accent); }

  .rec-hint {
    font-size: 12px; color: var(--text-muted); margin: 4px 0 12px;
  }