.page { padding: 34px 0 56px; }

.pageHead { text-align: center; margin-bottom: 18px; }
.pageTitle { margin: 0 0 8px; font-size: 34px; letter-spacing: -0.02em; }
.pageSub { margin: 0 auto 14px; max-width: 760px; color: var(--muted); font-size: 14px; }

.calcGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; }

.card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.cardTitle { margin: 0 0 14px; font-size: 16px; }

.formGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; width: 100%; }
.field.full { grid-column: 1 / -1; }

.field span { display: block; font-size: 12px; color: #475569; margin-bottom: 6px; font-weight: 700; }
.smallHint { margin-top: 6px; font-size: 12px; color: #94a3b8; }

.inputWithSuffix{
  display:grid;
  grid-template-columns: 1fr 86px;
  gap:10px;
  align-items:center;
}

.field input,
.field select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  outline: none;
  font-size: 14px;
  background: #fff;
}
.field input:focus,
.field select:focus{
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.suffix{
  text-align:center;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.04);
  color:#64748b;
  font-weight:800;
  font-size: 13px;
  white-space: nowrap;
}

.actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.actions.bottom{ justify-content: center; margin-top: 14px; }
.actions.bottom .btn{ min-width: 180px; }

.hint { margin: 12px 0 0; font-size: 12px; color: #94a3b8; }

/* Badge */
.badge{
  background: #2563eb;
  color: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
  margin: 6px 0 16px;
  box-shadow: 0 14px 28px rgba(37,99,235,.28);
}
.badgeNum{
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.badgeSub{
  margin-top: 6px;
  font-size: 14px;
  opacity: .92;
  font-weight: 700;
}

.rows{
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}
.row{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.row:last-child{ border-bottom: none; }
.row .left{ font-size: 14px; font-weight: 700; color: #0f172a; }
.row .right{ font-size: 14px; font-weight: 900; color: #0f172a; text-align: right; white-space: nowrap; }

/* Mini donut */
.miniChartWrap{
  display:flex;
  align-items:flex-start;
  gap: 14px;
  margin: 4px 0 8px;
}
.miniChart{
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: conic-gradient(#2563eb 0 10%, #fbbf24 10% 20%, #22c55e 20% 35%, #a855f7 35% 45%, #06b6d4 45% 55%, #94a3b8 55% 100%);
  box-shadow: inset 0 0 0 14px #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.miniLegend{
  display:flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #334155;
  font-weight: 700;
}
.legItem{ display:flex; align-items:center; gap:8px; }
.legDot{ width:10px; height:10px; border-radius:3px; }

.conclusion{
  margin-top: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.03);
  border-radius: 14px;
  padding: 12px 14px;
}
.conclTitle{ font-weight: 900; margin-bottom: 6px; }
.conclText{ color: #334155; font-weight: 700; font-size: 13px; }

/* Toggle */
.toggleRow{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.03);
  border-radius: 14px;
}
.toggleTitle{ font-weight: 900; font-size: 13px; }
.toggleSub{ font-weight: 700; color: #64748b; font-size: 12px; margin-top: 3px; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(15, 23, 42, 0.18);
  transition: .2s; border-radius: 999px;
}
.slider:before {
  position: absolute; content: "";
  height: 20px; width: 20px; left: 3px; bottom: 3px;
  background-color: white; transition: .2s; border-radius: 999px;
  box-shadow: 0 10px 18px rgba(15,23,42,.18);
}
.switch input:checked + .slider { background-color: #2563eb; }
.switch input:checked + .slider:before { transform: translateX(20px); }

/* Accordion */
.accordion{ margin-top: 2px; }
.accBtn{
  width: 100%;
  display:flex;
  justify-content: space-between;
  align-items:center;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  border-radius: 14px;
  padding: 12px 12px;
  cursor: pointer;
  font-weight: 900;
}
.accArrow{ opacity: .7; }
.accBody{
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Food */
.foodRow{ display:flex; flex-direction: column; gap: 10px; }
#foodRange{ width: 100%; }

@media (max-width: 980px) {
  .calcGrid { grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .inputWithSuffix{ grid-template-columns: 1fr 78px; }
  .accBody{ grid-template-columns: 1fr; }
}
