.dccr-app {
  --dccr-green: #16a34a;
  --dccr-green-dark: #15803d;
  --dccr-indigo: #4f46e5;
  --dccr-red: #dc2626;
  max-width: 1312px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
  color: #111827;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: normal;
}

.dccr-app *, .dccr-app *::before, .dccr-app *::after { box-sizing: border-box; }
.dccr-app [hidden] { display: none !important; }
.dccr-app input, .dccr-app select, .dccr-app button { font-family: inherit; }
.dccr-app input[type="radio"], .dccr-app input[type="checkbox"] { accent-color: #1687d9; }

.dccr-header { margin: 0 0 32px; text-align: center; }
.dccr-eyebrow { display: block; margin-bottom: 10px; color: #6b7280; font-size: 11px; font-weight: 700; letter-spacing: .12em; line-height: 1; text-transform: uppercase; }
.dccr-heading { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.dccr-heading svg { width: 40px; height: 40px; color: var(--dccr-indigo); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.dccr-header h2 { margin: 0; color: #111827; font-size: clamp(24px, 5vw, 36px); font-weight: 700; line-height: 1; }
.dccr-header p { max-width: 672px; margin: 0 auto; padding: 0 8px; color: #4b5563; font-size: 14px; line-height: 1.5; }

.dccr-card { margin: 0 0 24px; padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,.10); }
.dccr-card h3 { margin: 0 0 16px; color: #111827; font-size: 20px; font-weight: 600; line-height: 1; }
.dccr-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.dccr-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.dccr-choice { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 16px; border: 2px solid #e5e7eb; border-radius: 8px; background: transparent; cursor: pointer; transition: border-color .2s, background-color .2s; }
.dccr-choice-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dccr-choice-head b { font-size: 14px; font-weight: 600; }
.dccr-choice small { color: #6b7280; font-size: 12px; font-weight: 400; line-height: normal; }
.dccr-choice:has(input[value="diy"]:checked) { border-color: var(--dccr-green); }
.dccr-choice:has(input[value="diy"]:checked) small { color: var(--dccr-green); font-weight: 600; }
.dccr-choice:has(input[value="mediated"]:checked) { border-color: var(--dccr-indigo); }
.dccr-choice:has(input[value="mediated"]:checked) small { color: var(--dccr-indigo); font-weight: 600; }
.dccr-choice:has(input[value="contested"]:checked) { border-color: var(--dccr-red); }
.dccr-choice:has(input[value="contested"]:checked) small { color: var(--dccr-red); font-weight: 600; }
.dccr-choice em, .dccr-package i { position: absolute; top: -8px; right: 8px; padding: 2px 8px; border-radius: 4px; background: var(--dccr-green); color: #fff; font-size: 10px; font-style: normal; font-weight: 600; line-height: normal; }

.dccr-description { padding: 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; }
.dccr-description[data-dccr-kind="diy"] { border-color: var(--dccr-green); background: #f0fdf4; }
.dccr-description > b { display: block; margin-bottom: 8px; font-weight: 600; }
.dccr-description p { margin: 0 0 12px; color: #4b5563; font-size: 14px; }
.dccr-description small { display: flex; flex-wrap: wrap; gap: 16px; color: #6b7280; font-size: 12px; }

.dccr-packages { margin-top: 16px; padding: 16px; border: 2px solid var(--dccr-green); border-radius: 8px; background: #f0fdf4; }
.dccr-packages h4 { margin: 0 0 12px; color: #111827; font-size: 16px; font-weight: 600; line-height: normal; }
.dccr-package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dccr-package { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 16px; border: 2px solid #d1d5db; border-radius: 8px; background: #f9fafb; cursor: pointer; transition: border-color .2s, background-color .2s; }
.dccr-package:has(input:checked) { border-color: var(--dccr-green); background: #fff; }
.dccr-package.is-disabled { opacity: .45; cursor: not-allowed; }
.dccr-package.is-disabled input { cursor: not-allowed; }
.dccr-package-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dccr-package-head > span { display: flex; flex-direction: column; }
.dccr-package-head b { font-size: 14px; font-weight: 600; }
.dccr-package strong { color: var(--dccr-indigo); font-size: 20px; font-weight: 700; line-height: normal; }
.dccr-package:has(input:checked) strong { color: var(--dccr-green); }
.dccr-features { color: #4b5563; font-size: 12px; line-height: 1.5; }
.dccr-package-summary { display: block; margin-top: auto; padding-top: 12px; color: #6b7280; font-size: 11px; line-height: 1.4; }
.dccr-package:has(input:checked) .dccr-features b { color: var(--dccr-green); }
.dccr-note { display: flex; align-items: flex-start; margin-top: 12px; padding: 12px; border-radius: 8px; background: #dcfce7; color: var(--dccr-green-dark); font-size: 12px; }
.dccr-note svg { width: 16px; height: 16px; margin-right: 8px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.dccr-attorney-title { margin-bottom: 16px; }
.dccr-attorney-title h3 { margin: 0; }
.dccr-attorney-title label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.dccr-attorney-title input { width: 20px; height: 20px; cursor: pointer; }
.dccr-attorney-title span { font-size: 14px; font-weight: 500; }
.dccr-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.dccr-fields > label { display: block; color: #374151; font-size: 14px; font-weight: 500; }
.dccr-fields input, .dccr-custom-edit input, .dccr-custom-edit select { width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #111827; font-size: 16px; font-weight: 400; line-height: normal; }
.dccr-fields small { display: block; margin-top: 4px; color: #6b7280; font-size: 12px; font-weight: 400; }
.dccr-money { position: relative; }
.dccr-money > span, .dccr-money > i { position: absolute; z-index: 1; top: 50%; left: 12px; display: flex; align-items: center; color: #6b7280; font-style: normal; line-height: 1; transform: translateY(-50%); pointer-events: none; }
.dccr-money input { padding-left: 32px; }
.dccr-attorney-warning { margin: 0; padding: 32px; color: #6b7280; font-size: 14px; text-align: center; }

.dccr-help { margin: -8px 0 16px; color: #6b7280; font-size: 12px; }
.dccr-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.dccr-options > label { display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.dccr-options > label:has(input:checked) { background: #eff6ff; }
.dccr-options input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; cursor: pointer; }
.dccr-options b { font-size: 14px; font-weight: 500; line-height: 1; }
.dccr-options small { display: block; color: #6b7280; font-size: 12px; line-height: 1; }

.dccr-services { display: flex; flex-direction: column; gap: 16px; }
.dccr-services > label, .dccr-services > .dccr-service { display: block; padding: 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
.dccr-service-head { display: flex; align-items: center; gap: 12px; margin-bottom: 0; cursor: pointer; }
.dccr-services > label:has([data-dccr-service]:checked) .dccr-service-head, .dccr-service:has([data-dccr-service]:checked) .dccr-service-head { margin-bottom: 12px; }
.dccr-service-head b { font-size: 14px; font-weight: 600; }
.dccr-service-fields { display: none; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-left: 32px; }
.dccr-services > label:has([data-dccr-service]:checked) .dccr-service-fields, .dccr-service:has([data-dccr-service]:checked) .dccr-service-fields { display: grid; }
.dccr-service-fields > span > small { display: block; margin-bottom: 4px; color: #374151; font-size: 12px; font-weight: 500; }
.dccr-service-fields input { width: 100%; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #111827; font-size: 14px; line-height: normal; }
.dccr-service-fields .dccr-money > i { top: 50%; left: 10px; font-size: 14px; }
.dccr-service-fields .dccr-money input { padding-left: 24px; }

.dccr-other .dccr-title-row { margin-bottom: 16px; }
.dccr-other h3 { margin: 0; }
.dccr-app .dccr-add { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 8px; background-color: #6366f1; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; }
.dccr-custom-edit { display: grid; grid-template-columns: 20px repeat(3, minmax(0, 1fr)) 28px; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 8px; }
.dccr-custom-edit::before { content: "$"; color: #6366f1; font-size: 20px; line-height: 1; text-align: center; }
.dccr-custom-edit input, .dccr-custom-edit select { padding: 6px 10px; font-size: 14px; }
.dccr-custom-edit .dccr-money > span { top: 50%; left: 10px; font-size: 14px; }
.dccr-custom-edit .dccr-money input { padding-left: 24px; }
.dccr-delete { padding: 4px !important; border: 0 !important; background: transparent !important; color: var(--dccr-red) !important; font-size: 0 !important; cursor: pointer; }
.dccr-delete svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dccr-empty { margin: 0; padding: 32px; color: #6b7280; font-size: 14px; line-height: normal; text-align: center; }

.dccr-results { margin-bottom: 0; }
.dccr-results > h3 { margin-bottom: 24px; font-size: clamp(20px, 4vw, 24px); font-weight: 700; line-height: 1; text-align: center; }
.dccr-total { margin-bottom: 24px; padding: 24px; border-radius: 12px; background: var(--dccr-indigo); color: #fff; text-align: center; }
.dccr-total span { display: block; margin-bottom: 8px; font-size: 14px; line-height: 14.4px; opacity: .9; }
.dccr-total strong { display: block; margin-bottom: 4px; color: #fff; font-size: 40px; font-weight: 700; line-height: 1; }
.dccr-total small { display: block; color: #fff; font-size: 14px; line-height: 14.4px; opacity: .9; }
.dccr-results h4 { margin: 0 0 16px; color: #111827; font-size: 18px; font-weight: 600; line-height: 1; }
.dccr-results h4:nth-of-type(2) { margin-top: 24px; padding-top: 24px; border-top: 2px solid #e5e7eb; }
[data-dccr-breakdown] { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.dccr-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px; border-radius: 8px; background: #f9fafb; }
.dccr-row span { color: #4b5563; font-size: 14px; }
.dccr-row span small { display: block; margin-top: 2px; color: #6b7280; font-size: 12px; }
.dccr-row > strong { font-weight: 600; white-space: nowrap; }
.dccr-row-green { border: 1px solid var(--dccr-green); background: #f0fdf4; }
.dccr-row-green span, .dccr-row-green span small, .dccr-row-green > strong { color: var(--dccr-green-dark); }
.dccr-row-blue { background: #eff6ff; }
.dccr-row-blue span, .dccr-row-blue > strong { color: #1e40af; line-height: 14.4px; }
.dccr-row-blue span b { font-weight: 400; }
.dccr-row-blue > strong { font-weight: 600; }
.dccr-retainer-box { display: flex; gap: 12px; margin: 0 0 24px; padding: 16px; border: 1px solid #fcd34d; border-radius: 8px; background: #fef3c7; }
.dccr-retainer-box svg { width: 20px; height: 20px; flex: 0 0 auto; color: #f59e0b; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dccr-retainer-box b, .dccr-retainer-box span { display: block; color: #92400e; font-size: 14px; line-height: 14.4px; }
.dccr-retainer-box b { margin-bottom: 4px; font-weight: 600; }
.dccr-pay { text-align: center; }
.dccr-pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dccr-pay-grid > div { padding: 16px; border: 1px solid #86efac; border-radius: 8px; background: #f0fdf4; }
.dccr-pay span { display: block; margin-bottom: 4px; color: var(--dccr-green-dark); font-size: 12px; line-height: 12px; }
.dccr-pay b { display: block; color: var(--dccr-green-dark); font-size: 24px; font-weight: 700; line-height: 24px; }
.dccr-pay > small { display: block; margin-top: 12px; color: #6b7280; font-size: 12px; }

.dccr-disclaimer { display: flex; gap: 12px; margin-top: 24px; padding: 16px; border-left: 4px solid #f59e0b; border-radius: 0 8px 8px 0; background: #fffbeb; }
.dccr-disclaimer svg { width: 20px; height: 20px; flex: 0 0 auto; fill: #f59e0b; }
.dccr-disclaimer p { margin: 0; color: #92400e; font-size: 14px; line-height: 1.5; }
.dccr-disclaimer p b:last-of-type { color: var(--dccr-green-dark); }

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

@media (max-width: 767px) {
  .dccr-app { padding: 16px; }
  .dccr-header h2 { line-height: 1.1; }
  .dccr-type-grid, .dccr-package-grid, .dccr-fields, .dccr-options { grid-template-columns: 1fr; }
  .dccr-choice, .dccr-package { min-height: 0; }
  .dccr-custom-edit { grid-template-columns: 20px minmax(0, 1fr) 28px; }
  .dccr-custom-edit select, .dccr-custom-edit > input, .dccr-custom-edit .dccr-money { grid-column: 2; }
  .dccr-custom-edit::before { grid-column: 1; grid-row: 1; }
  .dccr-custom-edit button { grid-column: 3; grid-row: 1 / 4; }
  .dccr-service-fields { grid-template-columns: 1fr; margin-left: 32px; }
  .dccr-row { align-items: flex-start; }
  .dccr-pay-grid { grid-template-columns: 1fr; }
}
