* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #eef6ff 0, #f3f2ef 310px),
    var(--brand-bg);
  color: var(--brand-text);
}

.dashboard-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 48px;
}

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 28px;
  border: 1px solid rgba(10, 102, 194, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 36px rgba(10, 102, 194, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  color: #191919;
}

.header-stat {
  min-width: 190px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

.stat-label {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.header-stat strong {
  color: var(--brand-blue);
  font-size: 24px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  padding: 22px;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.panel-accent {
  border-color: rgba(10, 102, 194, 0.26);
  box-shadow: 0 10px 28px rgba(10, 102, 194, 0.10);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-heading h2 {
  font-size: 22px;
  line-height: 1.2;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: #e8f3fe;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 800;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field span {
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  min-height: 17px;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fbfdff;
  color: #111827;
  font: inherit;
  font-weight: 700;
  outline: none;
  padding: 0 12px;
}

input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.input-shell {
  position: relative;
}

.input-shell input {
  padding-left: 34px;
}

.prefix {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-weight: 800;
}

.model-note {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}

.model-note strong {
  color: #111827;
  font-size: 14px;
}

.model-note span {
  color: #5f6b7a;
  font-size: 13px;
  line-height: 1.45;
}

.blue-note {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.result-stack {
  margin-top: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #fff;
}

.result-row + .result-row {
  border-top: 1px solid #e5e7eb;
}

.result-row span {
  color: #5f6b7a;
  font-size: 14px;
  font-weight: 700;
}

.result-row strong {
  color: #111827;
  font-size: 24px;
  text-align: right;
}

.result-row.total {
  background: #f3f8fd;
}

.result-row.total strong {
  color: var(--brand-blue);
}

.summary-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #004182, #0a66c2);
  color: #fff;
  box-shadow: 0 14px 30px rgba(10, 102, 194, 0.18);
}

.summary-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.82;
  text-transform: uppercase;
}

.summary-band h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.summary-band p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.5;
}

.savings-box {
  min-width: 260px;
  padding: 18px 20px;
  border-radius: 10px;
  background: #fff;
  color: #191919;
}

.savings-box span {
  display: block;
  margin-bottom: 6px;
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.savings-box strong {
  display: block;
  color: #047857;
  font-size: 36px;
  line-height: 1;
}

.comparison-table {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.035);
}

.table-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
}

.table-row + .table-row {
  border-top: 1px solid #e5e7eb;
}

.table-row span {
  color: #5f6b7a;
  font-size: 14px;
  font-weight: 700;
}

.table-row strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
}

.table-head {
  background: #f3f8fd;
}

.table-head span {
  color: #374151;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .dashboard-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 84px;
  }

  .dashboard-header,
  .summary-band {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .calculator-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .header-stat,
  .savings-box {
    width: 100%;
    min-width: 0;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-head {
    display: none;
  }
}

@media (max-width: 480px) {
  .dashboard-shell {
    width: min(100% - 16px, 1180px);
    padding-top: 76px;
  }

  h1 {
    font-size: 30px;
  }

  .panel,
  .summary-band {
    padding: 18px;
  }

  .dashboard-header {
    padding: 20px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .result-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-row strong {
    text-align: left;
  }
}
