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

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

.ccdc-depreciation * {
  box-sizing: border-box;
}

.ccdc-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(--ccdc-shadow);
}

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

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

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

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

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

.ccdc-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);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ccdc-assumption-box {
  margin-top: 18px;
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.14);
  color: var(--ccdc-text);
  font-size: 14px;
  line-height: 1.65;
}

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

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

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

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

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

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

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

.ccdc-compare-table,
.ccdc-breakdown-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

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

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

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

.ccdc-compare-table td,
.ccdc-breakdown-table tbody td {
  color: var(--ccdc-muted);
}

.ccdc-breakdown-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.55);
}

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

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

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

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

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

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

.ccdc-dot-sl {
  background: #0f766e;
}

.ccdc-dot-rb {
  background: #1d4ed8;
}

.ccdc-chart-wrap {
  width: 100%;
  min-height: 320px;
}

.ccdc-chart-canvas {
  display: block;
  width: 100%;
  height: 340px;
}

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

.ccdc-variance-positive {
  color: #1d4ed8 !important;
  font-weight: 700;
}

.ccdc-variance-negative {
  color: #b91c1c !important;
  font-weight: 700;
}

.ccdc-variance-neutral {
  color: var(--ccdc-muted) !important;
}

@media (max-width: 960px) {
  .ccdc-shell {
    padding: 20px;
    border-radius: 24px;
  }

  .ccdc-header {
    flex-direction: column;
  }

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

@media (max-width: 640px) {
  .ccdc-title {
    font-size: 30px;
  }

  .ccdc-section,
  .ccdc-summary-card {
    padding: 18px;
    border-radius: 20px;
  }

  .ccdc-chart-canvas {
    height: 280px;
  }
}
