:root{--amber:#a16207;--amber-soft:#fef3c7;--ink:#1d2433;--muted:#57606a;--line:#d8dee6}
body{background:#fbfaf7}
main{max-width:760px}
.lead{font-size:1.02rem}
.badges{display:flex;flex-wrap:wrap;gap:6px;margin:.4rem 0 1rem}
.badge{display:inline-block;background:var(--amber-soft);color:#78350f;border:1px solid #fcd34d;border-radius:999px;padding:1px 10px;font-size:.8rem;font-weight:600}
.notice{background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;padding:8px 12px;font-size:.9rem}
.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;margin:14px 0;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.card h2{margin:0 0 10px;font-size:1.12rem}
.card label{display:block;font-weight:600;margin-top:12px;font-size:.94rem}
.card input[type=text],.card select{width:100%;min-height:46px;padding:9px 12px;font:inherit;border:1px solid #c6cfda;border-radius:9px;background:#fff;box-sizing:border-box}
.card input[type=range]{width:100%;margin:10px 0 2px;accent-color:var(--amber)}
.card button{min-height:46px;padding:9px 16px;font:inherit;font-weight:700;border-radius:9px;border:1px solid var(--amber);background:var(--amber);color:#fff;margin-top:12px;cursor:pointer}
.card button:hover{filter:brightness(1.06)}
.card button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
.hint{font-weight:400;color:var(--muted);font-size:.83rem}
.small{font-size:.86rem;color:var(--muted)}
.error{color:#b91c1c;min-height:1.2em;margin:8px 0 0;font-size:.9rem}
.warn{background:#fff7ed;border:1px solid #fdba74;color:#7c2d12;border-radius:8px;padding:8px 12px;font-size:.9rem;margin:10px 0 0}
.kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.kpis>div{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:10px 12px}
.kpis .k{display:block;font-size:.8rem;color:#92400e}
.kpis strong{display:block;font-size:1.32rem;line-height:1.35;color:#111827;overflow-wrap:anywhere}
.scenario-list{list-style:none;padding:0;margin:8px 0}
.scenario-list li{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid #eef1f5;padding:6px 0;font-size:.9rem}
.scenario-list button{min-height:36px;margin:0;padding:4px 10px;background:#fff;color:#b91c1c;border-color:#fca5a5;font-size:.82rem}
#compare table{font-size:.85rem}
#compare button{min-height:34px;margin:0;padding:3px 8px;background:#fff;color:#b91c1c;border-color:#fca5a5;font-size:.8rem}
.tool-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;margin:16px 0}
.tool-card h2{margin-top:0}
.tool-card label{display:block;font-weight:600;margin-top:10px;font-size:.92rem}
.tool-card input,.tool-card select{width:100%;min-height:46px;padding:9px 12px;font:inherit;border:1px solid #c6cfda;border-radius:9px;box-sizing:border-box}
.tool-card button{min-height:46px;padding:9px 16px;font:inherit;font-weight:700;border-radius:9px;border:1px solid var(--amber);background:var(--amber);color:#fff;margin-top:12px;cursor:pointer}
.tool-out{margin-top:14px}
.tool-out .kpis{margin-bottom:10px}
.big{font-size:1.7rem;font-weight:800;overflow-wrap:anywhere}
table{background:#fff}
thead th{background:#fef3c7}
@media(max-width:420px){
  .kpis{grid-template-columns:1fr}
  .kpis strong{font-size:1.22rem}
  .card{padding:13px}
}
