:root {
  --ccsvlr-bg: #f8fafc;
  --ccsvlr-surface: #ffffff;
  --ccsvlr-surface-soft: #f7fffd;
  --ccsvlr-text: #0f172a;
  --ccsvlr-muted: #64748b;
  --ccsvlr-border: #d9e5f0;
  --ccsvlr-shadow: 0 26px 70px rgba(15, 23, 42, 0.10);
}

.ccsvlr-calculator {
  --ccsvlr-accent: #0f766e;
  --ccsvlr-accent-dark: #115e59;
  --ccsvlr-secondary: #1d4ed8;
  color: var(--ccsvlr-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
}

.ccsvlr-calculator * {
  box-sizing: border-box;
}

.ccsvlr-shell {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  background: linear-gradient(135deg, #eef6ff 0%, #f8fafc 42%, #ecfeff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--ccsvlr-shadow);
}

.ccsvlr-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}

.ccsvlr-heading-block {
  min-width: 0;
}

.ccsvlr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 118, 110, 0.10);
  color: var(--ccsvlr-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.ccsvlr-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.03;
}

.ccsvlr-description {
  margin: 0;
  color: var(--ccsvlr-muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 900px;
}

.ccsvlr-headline-card {
  flex: 0 0 320px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 229, 240, 0.9);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.ccsvlr-headline-card span,
.ccsvlr-headline-card small {
  display: block;
  color: var(--ccsvlr-muted);
}

.ccsvlr-headline-card span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.ccsvlr-headline-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.ccsvlr-section {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 229, 240, 0.92);
  border-radius: 28px;
  padding: 24px;
}

.ccsvlr-section + .ccsvlr-section {
  margin-top: 20px;
}

.ccsvlr-section-heading {
  margin-bottom: 18px;
}

.ccsvlr-section-heading h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
}

.ccsvlr-section-heading p {
  margin: 0;
  color: var(--ccsvlr-muted);
  line-height: 1.6;
}

.ccsvlr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

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

.ccsvlr-field > span {
  font-size: 14px;
  font-weight: 700;
}

.ccsvlr-field > small {
  color: var(--ccsvlr-muted);
  line-height: 1.5;
  font-size: 12px;
}

.ccsvlr-input {
  width: 100%;
  min-height: 52px;
  border-radius: 15px;
  border: 1px solid var(--ccsvlr-border);
  background: var(--ccsvlr-surface);
  padding: 0 14px;
  font-size: 15px;
  color: var(--ccsvlr-text);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ccsvlr-input:focus {
  outline: none;
  border-color: var(--ccsvlr-accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.ccsvlr-assumption-box,
.ccsvlr-decision-box {
  margin-top: 18px;
  border-radius: 18px;
  padding: 16px 18px;
}

.ccsvlr-assumption-box {
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.14);
  color: var(--ccsvlr-text);
  font-size: 14px;
  line-height: 1.65;
}

.ccsvlr-decision-box {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.10) 0%, rgba(29, 78, 216, 0.08) 100%);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.ccsvlr-decision-box h4 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.ccsvlr-decision-box p {
  margin: 0;
  color: var(--ccsvlr-muted);
  line-height: 1.7;
}

.ccsvlr-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.ccsvlr-summary-card {
  background: #ffffff;
  border: 1px solid var(--ccsvlr-border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.ccsvlr-summary-card-featured {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12) 0%, rgba(29, 78, 216, 0.10) 100%);
  border-color: rgba(15, 118, 110, 0.2);
}

.ccsvlr-summary-card span,
.ccsvlr-summary-card small {
  display: block;
}

.ccsvlr-summary-card span {
  color: var(--ccsvlr-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.ccsvlr-summary-card strong {
  display: block;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  margin-bottom: 8px;
}

.ccsvlr-summary-card small {
  color: var(--ccsvlr-muted);
  line-height: 1.55;
}

.ccsvlr-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ccsvlr-border);
  border-radius: 22px;
  background: #ffffff;
}

.ccsvlr-compare-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.ccsvlr-compare-table thead th,
.ccsvlr-compare-table tbody th,
.ccsvlr-compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(217, 229, 240, 0.9);
  text-align: left;
  font-size: 14px;
}

.ccsvlr-compare-table thead th {
  background: #f8fafc;
  color: var(--ccsvlr-text);
  font-weight: 800;
}

.ccsvlr-compare-table tbody th {
  background: #fbfdff;
  color: var(--ccsvlr-text);
  font-weight: 700;
  width: 28%;
}

.ccsvlr-compare-table td {
  color: var(--ccsvlr-muted);
}

.ccsvlr-compare-table tbody tr:last-child th,
.ccsvlr-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.ccsvlr-chart-card {
  border: 1px solid var(--ccsvlr-border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
  padding: 18px;
}

.ccsvlr-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 12px;
}

.ccsvlr-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ccsvlr-muted);
  font-size: 14px;
}

.ccsvlr-chart-legend em {
  font-style: normal;
}

.ccsvlr-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.ccsvlr-dot-save { background: #0f766e; }
.ccsvlr-dot-repay { background: #1d4ed8; }

.ccsvlr-chart-wrap {
  width: 100%;
  min-height: 360px;
}

.ccsvlr-chart-canvas {
  display: block;
  width: 100%;
  height: 360px;
}

.ccsvlr-chart-note {
  margin-top: 12px;
  color: var(--ccsvlr-muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .ccsvlr-header {
    flex-direction: column;
    align-items: stretch;
  }

  .ccsvlr-headline-card {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .ccsvlr-shell {
    padding: 18px;
    border-radius: 24px;
  }

  .ccsvlr-section {
    padding: 18px;
    border-radius: 22px;
  }

  .ccsvlr-chart-wrap,
  .ccsvlr-chart-canvas {
    min-height: 300px;
    height: 300px;
  }

  .ccsvlr-compare-table {
    min-width: 720px;
  }
}
