.dccr-support {
  width: min(1312px, calc(100vw - 32px));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 16px;
  color: #111827;
  background: linear-gradient(135deg, var(--support-bg-start, #fef3c7), var(--support-bg-end, #fde68a));
  font: 12px/normal system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

.dccr-support *,
.dccr-support *::before,
.dccr-support *::after {
  box-sizing: border-box;
}

.dccr-support > header {
  margin: 0 0 32px;
  text-align: center;
}

.dccr-support > header h2 {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  color: #111827;
  font-size: 36px;
  font-weight: 700;
  line-height: 36px;
}

.dccr-support > header p {
  width: 672px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 8px;
  color: #4b5563;
  font-size: 14px;
  line-height: 21px;
}

.dccr-support-card {
  margin: 0 0 24px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1);
}

.dccr-support-card h3 {
  margin: 0 0 16px;
  padding: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 600;
  line-height: 20px;
}

.dccr-support-card label {
  position: relative;
  display: block;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  line-height: 14.4px;
}

.dccr-support-card input[type="number"] {
  display: block;
  width: 100%;
  height: 33.6px;
  margin: 8px 0 0;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.dccr-support-input-row {
  display: flex;
  width: 100%;
  height: 33.6px;
  margin-top: 8px;
}

.dccr-support-input-row .dccr-support-icon {
  position: static;
  display: flex;
  width: 32px;
  height: 33.6px;
  flex: 0 0 32px;
  align-items: center;
  color: var(--support-accent, #5148ef);
}

.dccr-support-input-row input[type="number"] {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  margin-top: 0;
  padding-left: 12px !important;
}

.dccr-currency {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 32.4px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
}

.dccr-currency + input {
  padding-left: 32px !important;
}

.dccr-support-card label small {
  display: block;
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
}

.dccr-earners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dccr-earners label + label {
  margin-top: 16px;
}

.dccr-support-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.dccr-support-types label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 53.6px;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  color: #000;
  cursor: pointer;
}

.dccr-support-types label:has(input:checked) {
  padding: 12px;
  border-color: #6366f1;
}

.dccr-support-types input {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin: 0;
}

.dccr-support-types span b,
.dccr-support-types span small {
  display: block;
}

.dccr-support-types span b {
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 14.4px;
}

.dccr-support-types span small {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
}

.dccr-support-factors {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dccr-support-factors label {
  display: flex;
  gap: 12px;
  margin: 0;
}

.dccr-support-factors input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 3px 3px 3px 4px;
}

.dccr-support-factors span b,
.dccr-support-factors span small {
  display: block;
}

.dccr-support-factors span b {
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 14.4px;
}

.dccr-support-factors span small {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
}

.dccr-support-factors label:has(input[data-support-factor="education"]) small {
  margin-bottom: 8px;
}

.dccr-support-results > h3 {
  margin-bottom: 24px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 24px;
}

.dccr-support-hero {
  margin: 0 0 24px;
  padding: 24px;
  border-radius: 12px;
  background: var(--support-result, #4f46e5);
  color: #fff;
  text-align: center;
}

.dccr-support-hero > span,
.dccr-support-hero > b,
.dccr-support-hero > strong {
  display: block;
}

.dccr-support-hero > span {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 14.4px;
}

.dccr-support-hero > strong {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 700;
  line-height: 40px;
}

.dccr-support-hero > b {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 14.4px;
}

.dccr-support-hero > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .3);
}

.dccr-support-hero p {
  margin: 0;
}

.dccr-support-hero p small,
.dccr-support-hero p strong {
  display: block;
}

.dccr-support-hero p small {
  font-size: 12px;
  line-height: 12px;
}

.dccr-support-hero p strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 17.6px;
}

.dccr-support-summary {
  display: flex;
  flex-direction: column;
  margin: 0 0 24px;
  padding: 16px;
  border-radius: 8px;
  background: #f3f4f6;
}

.dccr-support-summary b {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 12px;
}

.dccr-support-summary span {
  color: #4b5563;
  font-size: 14px;
  line-height: 14.4px;
}

.dccr-support-results h4 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 18px;
  font-weight: 600;
  line-height: 17.6px;
}

.dccr-income-analysis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dccr-income-analysis > div {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  padding: 16px;
  border-radius: 8px;
  background: #fef3c7;
  color: #92400e;
}

.dccr-income-analysis > div + div {
  background: #dbeafe;
  color: #1e40af;
}

.dccr-income-analysis span {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 12px;
}

.dccr-income-analysis strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
}

.dccr-income-analysis small {
  margin-top: 4px;
  font-size: 12px;
  line-height: 12px;
}

.dccr-income-analysis + h4,
.dccr-post-income + [data-support-adjustments] h4 {
  margin-top: 24px;
}

.dccr-post-income {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dccr-post-income > div {
  min-height: 138.4px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.dccr-post-income h5 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
}

.dccr-post-income p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  color: #111827;
  font-size: 14px;
  line-height: 14.4px;
}

.dccr-post-income p span {
  color: #6b7280;
}

.dccr-post-income p b {
  font-weight: 500;
}

.dccr-post-income p:last-child {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  font-weight: 600;
}

.dccr-post-income p:last-child strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 14.4px;
}

.dccr-post-income p:last-child strong:last-child {
  color: #4f46e5;
}

.dccr-post-income .dccr-red,
.dccr-post-income .dccr-red span {
  color: #dc2626;
}

.dccr-post-income .dccr-green,
.dccr-post-income .dccr-green span {
  color: #16a34a;
}

.dccr-adjustments {
  min-height: 52px;
  margin: 0;
  padding: 16px 34px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.dccr-post-income + [data-support-adjustments] h4 {
  margin-bottom: 12px;
}

.dccr-tax {
  display: flex;
  min-height: 73px;
  flex-direction: column;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.dccr-tax b {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  font-weight: 600;
}

.dccr-tax svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #f59e0b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dccr-critical {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border-left: 4px solid var(--support-critical, #dc2626);
  border-radius: 0 8px 8px 0;
  background: #fef2f2;
  color: #7f1d1d;
  font-size: 12px;
  font-weight: 500;
  line-height: 21px;
}

.dccr-critical svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  fill: var(--support-critical, #dc2626);
}

.dccr-critical p {
  margin: 0;
  color: inherit;
  font: inherit;
}

.dccr-critical b {
  font-weight: 700;
}

.dccr-support-basic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.dccr-support-card select {
  display: block;
  width: 100%;
  min-height: 35px;
  margin: 8px 0 0;
  padding: 8px 12px;
  color: #111827;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.25;
}

.dccr-post-income {
  margin-top: 16px;
}

.dccr-support-factor-result {
  margin-top: 16px;
  padding: 16px;
  color: #374151;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.dccr-support-factor-result > b {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  color: #3730a3;
  background: #e0e7ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.dccr-support-factor-result [data-support-factor-list] {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dccr-support-warning {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  padding: 14px 16px;
  color: #92400e;
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  line-height: 1.5;
}

.dccr-support-warning[hidden] {
  display: none;
}

.dccr-support-warning strong {
  font-weight: 700;
}

.dccr-support input:focus-visible,
.dccr-support select:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .3);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .dccr-support {
    width: 100%;
    max-width: 100%;
    left: auto;
    transform: none;
    padding: 10px;
  }

  .dccr-support > header h2 {
    min-height: 34px;
    font-size: 24px;
    line-height: 28px;
  }

  .dccr-support > header p {
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow-wrap: anywhere;
  }

  .dccr-earners,
  .dccr-support-basic-grid,
  .dccr-support-types,
  .dccr-income-analysis,
  .dccr-post-income {
    grid-template-columns: 1fr;
  }

  .dccr-support-card {
    padding: 14px;
  }

  .dccr-support-hero > div {
    gap: 10px;
  }
}
