:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#1b2430;
  --muted:#6b7785;
  --brand:#CB363B;
  --border:#e6e9ef;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --radius:16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
}
.page{padding:32px}
.wrap{max-width:980px;margin:0 auto}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card__head{
  padding:22px 22px 10px 22px;
  border-bottom:1px solid var(--border);
}
.title{margin:0;font-size:22px}
.subtitle{margin:6px 0 0 0;color:var(--muted);font-size:14px}

.calc{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  padding:22px;
}
@media (max-width: 900px){
  .calc{grid-template-columns: 1fr}
}

.panel{
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px;
}
.panel__title{
  display:flex;align-items:center;justify-content:space-between;
  font-weight:700;
  margin-bottom:12px;
}
.badge{
  background:rgba(203,54,59,.10);
  color:var(--brand);
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
}
.field{margin:14px 0}
.label{
  display:flex;align-items:center;justify-content:space-between;
  font-size:13px;color:var(--muted);
  margin-bottom:8px;
}
.value{
  font-weight:800;color:var(--text)
}
.select, .toggle, .radios{
  width:100%;
}
select{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  font-size:14px;
}
input[type="checkbox"]{transform:scale(1.15)}
.radios{display:flex;gap:14px;flex-wrap:wrap}
.radio{
  display:flex;align-items:center;gap:8px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  cursor:pointer;
}
.radio input{cursor:pointer}
.row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 0;
  border-bottom:1px dashed var(--border);
}
.row:last-child{border-bottom:none}
.kpi{font-weight:900}
.kpi--danger{color:var(--brand)}
.small{font-size:12px;color:var(--muted)}
.hr{height:1px;background:var(--border);margin:12px 0}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:100%;
  border:none;
  background:var(--brand);
  color:#fff;
  padding:12px 14px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
}
.btn:active{transform:translateY(1px)}
.footnote{padding:14px 22px 22px 22px}
.muted{color:var(--muted);font-size:12px}
code{font-family:var(--mono);font-size:12px}
.error{
  padding:14px;
  border:1px solid rgba(203,54,59,.25);
  background:rgba(203,54,59,.06);
  border-radius:12px;
  color:#7d1f22;
}
