.dccr-split {
  --asset: #65db6a;
  --debt: #dc2626;
  max-width: 1312px;
  margin: 0 auto;
  padding: 16px;
  color: #000;
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: normal;
  box-sizing: border-box;
}

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

.dccr-split > header {
  margin-bottom: 32px;
  text-align: center;
}

.dccr-split > header h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  line-height: 36px;
}

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

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

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

.dccr-quick > p {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 14px;
  line-height: 14.4px;
}

.dccr-quick-grid,
.dccr-ledgers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.dccr-quick-grid h4 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 14.4px;
}

.dccr-quick-grid [data-quick] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dccr-quick-grid button,
.dccr-split-title button {
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--asset);
  font-family: sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .2s;
}

.dccr-quick-grid button:hover,
.dccr-split-title button:hover {
  opacity: .9;
}

.dccr-quick-grid > div:nth-child(2) button,
.dccr-debts .dccr-split-title button {
  background: var(--debt);
}

.dccr-ledgers {
  margin-bottom: 24px;
}

.dccr-ledgers > .dccr-split-card {
  min-width: 0;
  margin: 0;
}

.dccr-split-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dccr-split-title h3 {
  margin: 0;
}

.dccr-split-title button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
}

.dccr-split-title button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.dccr-split [data-list] {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.dccr-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.dccr-item-main {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.dccr-item select,
.dccr-item input {
  width: 100%;
  margin: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #000;
  background: #fff;
  font-family: inherit;
  font-weight: 400;
}

.dccr-item select,
.dccr-item-main > input,
.dccr-split-money input {
  padding: 8px 12px;
  font-size: 16px;
  line-height: normal;
}

.dccr-item select {
  height: 35.2px;
}

.dccr-item-main > input,
.dccr-split-money input {
  height: 33.6px;
}

.dccr-split-money {
  position: relative;
  display: block;
}

.dccr-split-money span {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 12px;
  color: #6b7280;
  font-size: 16px;
  line-height: normal;
}

.dccr-split-money input {
  padding-left: 32px;
}

.dccr-remove {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 4px;
  border: 0;
  color: var(--debt);
  background: transparent;
  cursor: pointer;
}

.dccr-percent {
  padding: 12px;
  border-radius: 8px;
  background: #f9fafb;
}

.dccr-percent > b {
  display: block;
  margin: 0 0 8px;
  color: #374151;
  font-size: 12px;
  font-weight: 500;
  line-height: 12px;
}

.dccr-percent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dccr-percent-grid label {
  display: block;
  margin: 0 0 4px;
  color: #4b5563;
  font-size: 12px;
  line-height: 12px;
}

.dccr-percent-grid input {
  height: 24px;
  padding: 4px 8px;
  font-size: 14px;
  line-height: normal;
}

.dccr-allocated {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 12px;
}

.dccr-item.has-value .dccr-allocated {
  display: block;
}

.dccr-allocated span {
  display: flex;
  justify-content: space-between;
}

.dccr-allocated span:first-child {
  margin-bottom: 4px;
}

.dccr-allocated b {
  font-weight: 500;
}

.dccr-section-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 18px;
  font-weight: 600;
  line-height: 17.6px;
}

.dccr-section-total b,
.dccr-section-total strong {
  font-weight: 600;
}

.dccr-assets .dccr-section-total strong {
  color: var(--asset);
}

.dccr-debts .dccr-section-total strong {
  color: var(--debt);
}

.dccr-division > h3 {
  margin: 0 0 24px;
  color: #111827;
  text-align: center;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 700;
  line-height: 24px;
}

.dccr-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 0 0 24px;
}

.dccr-summary div {
  padding: 16px;
  border-radius: 8px;
  color: #4b5563;
  background: #dbeafe;
  text-align: center;
  font-size: 14px;
  line-height: 14.4px;
}

.dccr-summary span,
.dccr-summary b {
  display: block;
}

.dccr-summary span {
  margin-bottom: 4px;
}

.dccr-summary b {
  color: var(--asset);
  font-size: 24px;
  font-weight: 700;
  line-height: 24px;
}

.dccr-summary div:nth-child(2) b {
  color: var(--debt);
}

.dccr-spouses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.dccr-spouses > div {
  padding: 16px;
  border: 2px solid var(--asset);
  border-radius: 8px;
  background: #eef2ff;
}

.dccr-spouses h4 {
  margin: 0 0 16px;
  color: #111827;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 20px;
}

.dccr-spouses p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 0 0 8px;
  border-bottom: 0;
  color: #374151;
  line-height: 12px;
}

.dccr-spouses p b {
  color: var(--asset);
  font-weight: 600;
}

.dccr-spouses p:nth-child(3) b {
  color: var(--debt);
}

.dccr-spouses p:last-child {
  margin: 24px 0 0;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  color: #111827;
  background: rgba(101, 219, 106, .125);
  font-weight: 600;
}

.dccr-spouses strong {
  color: var(--asset);
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
}

.dccr-split-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  color: #92400e;
  background: #fffbeb;
  font-size: 14px;
  line-height: 1.5;
}

.dccr-split-note > svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #f59e0b;
  fill: currentColor;
}

.dccr-split-note b {
  font-weight: 700;
}

.dccr-split input:focus-visible,
.dccr-split select:focus-visible,
.dccr-split button:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .3);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .dccr-split {
    padding: 16px;
  }

  .dccr-split-title {
    gap: 12px;
  }

  .dccr-item {
    gap: 8px;
  }
}

/* New York planning fields use the existing card, color, and two-column design. */
.dccr-split [hidden] {
  display: none !important;
}

.dccr-split-intro-note {
  display: block;
  max-width: 672px;
  margin: 10px auto 0;
  padding: 0 8px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.dccr-scenario-disclaimer,
.dccr-result-note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.dccr-education {
  border-left: 4px solid #f59e0b;
}

.dccr-education h3 {
  margin-bottom: 10px;
}

.dccr-education p {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.dccr-education p:last-child {
  margin-bottom: 0;
}

.dccr-item-field {
  display: block;
  margin: 0;
}

.dccr-field-label {
  display: block;
  margin: 0 0 5px;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.dccr-item-field > input {
  height: 33.6px;
  padding: 8px 12px;
  font-size: 16px;
  line-height: normal;
}

.dccr-item-helper {
  display: block;
  margin: -2px 0 0;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.45;
}

.dccr-unresolved {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 8px;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.dccr-validation {
  display: block;
  margin-top: 4px;
  color: #b91c1c;
  font-size: 11px;
  line-height: 1.35;
}

.dccr-owner-field select[aria-invalid="true"] {
  border-color: #dc2626;
}

.dccr-conditional-note {
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 11px;
  line-height: 1.45;
}

.dccr-conditional-note b,
.dccr-conditional-note span {
  display: block;
}

.dccr-conditional-note b {
  margin-bottom: 3px;
  font-weight: 700;
}

.dccr-percent.is-disabled {
  opacity: .62;
}

.dccr-summary div:nth-child(4) b {
  color: #2563eb;
}

.dccr-summary div:nth-child(5) b {
  color: #7c3aed;
}

.dccr-summary div:nth-child(6) b {
  color: #d97706;
}

.dccr-spouses p:nth-child(5) b {
  color: var(--debt);
}

@media (max-width: 600px) {
  .dccr-summary {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }

  .dccr-summary div {
    padding: 12px 8px;
  }

  .dccr-summary b {
    font-size: 20px;
  }
}
