:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: rgba(0,0,0,0.08);
  --info-bg: #e6f1fb;
  --info-text: #0c447c;
  --warn-bg: #faeeda;
  --warn-text: #633806;
  --radius: 12px;
  --pad: 1rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: rgba(255,255,255,0.1);
    --info-bg: #1e3a5f;
    --info-text: #b5d4f4;
    --warn-bg: #422d10;
    --warn-text: #fac775;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); }
.hdr { display: flex; align-items: center; justify-content: space-between; padding: var(--pad); }
.hdr h1 { font-size: 16px; font-weight: 500; margin: 0; }
.app { padding: 0 var(--pad) 2rem; max-width: 480px; margin: 0 auto; }
.card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: var(--pad); margin-bottom: 0.75rem; }
.tabs { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: var(--radius); margin-bottom: 0.75rem; border: 0.5px solid var(--border); }
.tab { flex: 1; border: 0; background: transparent; padding: 0.6rem; border-radius: 8px; color: var(--muted); font-size: 14px; cursor: pointer; }
.tab.active { background: var(--bg); color: var(--text); }
.panel { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: var(--pad); margin-bottom: 0.75rem; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
select, input { width: 100%; padding: 0.6rem 0.7rem; border: 0.5px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14px; font-family: inherit; }
.result { background: var(--info-bg); color: var(--info-text); padding: var(--pad); border-radius: var(--radius); margin-top: 0.75rem; }
.result .big { font-size: 28px; font-weight: 500; margin: 0.25rem 0; }
.warn { background: var(--warn-bg); color: var(--warn-text); padding: 0.75rem; border-radius: var(--radius); margin-top: 0.5rem; font-size: 13px; }
.src { font-size: 11px; color: var(--muted); margin-top: 1rem; }
.disclaimer { font-size: 11px; color: var(--muted); margin-top: 0.25rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 0.5rem; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0.75rem 0; }
.checks label { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 8px; font-size: 13px; color: var(--text); line-height: 1.3; }
.checks input[type="checkbox"] { margin: 2px 0 0 0; }
.breakdown { font-size: 13px; margin-top: 0.5rem; }
.breakdown div { display: flex; justify-content: space-between; padding: 2px 0; color: var(--muted); }
button.primary { background: var(--info-text); color: white; border: 0; padding: 0.75rem; border-radius: 8px; width: 100%; font-size: 14px; font-weight: 500; cursor: pointer; }
.info-icon { color: var(--info-text); cursor: help; font-size: 12px; opacity: 0.7; }
.hdr h1 { display: flex; align-items: center; }
.logo { height: 36px; width: 36px; display: block; }
