:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color:#172033; background:#f5f2ec; }
* { box-sizing:border-box; }
body { margin:0; background:radial-gradient(circle at 90% 0%, rgba(56,189,248,.14), transparent 34rem), #f5f2ec; }
button, input { font:inherit; }
.tool { width:min(100%, 980px); margin:0 auto; padding:clamp(20px,4vw,48px); display:grid; gap:20px; }
.tool__header { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; padding:8px 2px; }
.eyebrow { margin:0 0 8px; color:#075985; font-size:.78rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
h2 { margin:0; max-width:720px; font-size:clamp(1.8rem,4vw,3rem); line-height:1.05; letter-spacing:-.04em; }
.lead { max-width:680px; margin:12px 0 0; color:#4b5563; line-height:1.65; }
.privacy { flex:0 0 auto; border:1px solid #7dd3fc; border-radius:999px; padding:8px 12px; background:#ecfeff; color:#075985; font-size:.78rem; font-weight:750; }
.card { border:1px solid #d8d2c8; border-radius:20px; background:rgba(255,255,255,.9); padding:clamp(18px,3vw,28px); box-shadow:0 14px 40px rgba(15,23,42,.07); }
.section-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:18px; }
.section-heading > div { display:flex; align-items:center; gap:12px; }
.section-heading h3 { margin:0; font-size:1.15rem; }
.step { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#0f172a; color:white; font-weight:800; }
.hint { max-width:440px; margin:0; color:#667085; font-size:.9rem; line-height:1.5; text-align:right; }
.file-picker { display:flex; align-items:center; justify-content:center; min-height:94px; border:1px dashed #7c8da7; border-radius:16px; background:#f8fafc; cursor:pointer; font-weight:800; }
.file-picker:focus-within { outline:3px solid rgba(14,165,233,.35); outline-offset:3px; }
.file-picker input { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.busy, .error { margin:14px 0 0; padding:12px 14px; border-radius:12px; }
.busy { background:#eef6ff; color:#1d4ed8; }
.error { background:#fff1f2; color:#9f1239; border:1px solid #fecdd3; }
.metrics { margin:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.metrics.compact { grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr)); margin-bottom:20px; }
.metrics div { min-width:0; border:1px solid #e4e0d8; border-radius:14px; padding:12px; background:#faf9f6; }
.metrics dt { color:#667085; font-size:.76rem; }
.metrics dd { margin:5px 0 0; overflow-wrap:anywhere; font-weight:800; }
.modes { margin:0 0 18px; border:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.modes legend { margin-bottom:10px; font-weight:800; }
.modes label { display:flex; gap:9px; align-items:center; min-height:48px; border:1px solid #d8d2c8; border-radius:12px; padding:10px 12px; cursor:pointer; }
.modes label:has(input:checked) { border-color:#0284c7; background:#f0f9ff; }
.field { display:grid; gap:7px; margin-bottom:16px; font-weight:750; }
.field input { width:100%; border:1px solid #a8b0bd; border-radius:11px; padding:12px 13px; background:white; color:#172033; }
.field input:focus { outline:3px solid rgba(14,165,233,.25); border-color:#0284c7; }
.field small { color:#667085; font-weight:400; line-height:1.45; }
.plan-preview { display:flex; justify-content:space-between; gap:16px; border:1px solid #bae6fd; border-radius:12px; background:#f0f9ff; padding:12px 14px; color:#0c4a6e; }
.boundary, .result-note { margin:16px 0 0; color:#596273; font-size:.88rem; line-height:1.55; }
.actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
button, .button { border:0; border-radius:12px; padding:11px 17px; background:#0f172a; color:white; cursor:pointer; font-weight:800; text-decoration:none; }
button:hover, .button:hover { background:#075985; }
button:focus-visible, .button:focus-visible { outline:3px solid rgba(14,165,233,.35); outline-offset:3px; }
button:disabled { opacity:.5; cursor:not-allowed; }
.secondary { background:#e8e5df; color:#273244; }
.result { border-color:#7dd3fc; }
.result__header { align-items:center; }
[hidden] { display:none !important; }
@media (max-width:720px) {
  .tool { padding:18px 14px 28px; }
  .tool__header, .section-heading { flex-direction:column; }
  .hint { text-align:left; }
  .modes, .metrics, .metrics.compact { grid-template-columns:1fr; }
  .plan-preview { flex-direction:column; }
  .result__header .button { width:100%; text-align:center; }
}
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; } }
