:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #f3f7fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f3f7fb; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-header { border-bottom: 1px solid #dbeafe; background: #fff; }
.header-inner { max-width: 1152px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #004a8f; color: #fff; }
.brand-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand h1 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.brand p { margin: 2px 0 0; color: #64748b; font-size: 12px; }
.version { border-radius: 999px; background: #eff6ff; color: #004a8f; padding: 5px 12px; font-size: 12px; font-weight: 800; }

.shell { max-width: 1152px; margin: 0 auto; padding: 36px 24px; display: grid; grid-template-columns: 230px 1fr; gap: 24px; }
.sidebar, .workspace { border: 1px solid #dbeafe; border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgb(15 23 42 / 0.06); }
.sidebar { align-self: start; position: sticky; top: 24px; padding: 16px; }
.progress-block { margin-bottom: 20px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 8px; color: #64748b; font-size: 12px; font-weight: 700; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #0063ad; transition: width .2s ease; }
#step-nav { display: grid; gap: 8px; }
.step-button { width: 100%; border: 0; border-radius: 12px; background: transparent; padding: 11px 12px; text-align: left; color: #64748b; font-size: 14px; font-weight: 700; transition: .15s ease; }
.step-button:hover { background: #f8fafc; }
.step-button.active { background: #004a8f; color: #fff; }
.step-number { margin-right: 8px; opacity: .72; }
.selection-count { margin-top: 20px; border-top: 1px solid #f1f5f9; padding-top: 16px; color: #64748b; font-size: 12px; line-height: 1.6; }
.selection-count strong { color: #334155; }

.workspace { min-width: 0; padding: 28px; }
.section-heading { margin-bottom: 28px; border-bottom: 1px solid #f1f5f9; padding-bottom: 20px; }
.section-heading p { margin: 0; color: #0063ad; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-heading h2 { margin: 8px 0 0; font-size: 25px; letter-spacing: -0.025em; }
.stack { display: grid; gap: 24px; }
.intro { max-width: 680px; margin: 0; color: #475569; font-size: 14px; line-height: 1.7; }
.field { display: grid; gap: 8px; color: #334155; font-size: 14px; font-weight: 700; }
.optional { color: #94a3b8; font-weight: 400; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
input, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; outline: none; transition: .15s ease; }
input { height: 42px; padding: 0 12px; }
textarea { min-height: 86px; resize: vertical; padding: 11px 12px; line-height: 1.5; }
input:focus, textarea:focus { border-color: #2e75b6; box-shadow: 0 0 0 3px rgb(46 117 182 / .14); }

.info-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 12px; background: #eff6ff; padding: 16px; }
.info-panel p { margin: 0; }
.info-title { color: #004a8f; font-size: 14px; font-weight: 800; }
.info-copy { margin-top: 4px !important; color: #475569; font-size: 12px; line-height: 1.55; }
.button-row { display: flex; gap: 8px; flex-shrink: 0; }
.button { min-height: 40px; border: 1px solid transparent; border-radius: 10px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 750; transition: .15s ease; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button.primary { border-color: #004a8f; background: #004a8f; color: #fff; }
.button.primary:hover:not(:disabled) { background: #003d77; }
.button.secondary { border-color: #cbd5e1; background: #fff; color: #334155; }
.button.secondary:hover:not(:disabled) { background: #f8fafc; }
.button.ghost { background: transparent; color: #475569; }
.button.ghost:hover { background: #f8fafc; }
.button.small { min-height: 34px; padding: 0 11px; font-size: 12px; }
.button.icon { width: 40px; padding: 0; font-size: 18px; }
.generate { width: 100%; min-height: 48px; font-size: 15px; }

.group { display: grid; gap: 12px; }
.group-heading { display: flex; align-items: end; justify-content: space-between; }
.group-heading h3 { margin: 0; font-size: 18px; }
.group-heading span { color: #64748b; font-size: 12px; }
.ack-item { display: flex; gap: 12px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 15px; background: #fff; cursor: pointer; transition: .15s ease; }
.ack-item:hover { border-color: #93c5fd; }
.ack-item.inactive { background: #f8fafc; color: #94a3b8; }
.ack-item input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: #004a8f; flex: 0 0 auto; }
.ack-title { display: block; color: #1e293b; font-size: 14px; font-weight: 700; line-height: 1.45; }
.ack-item.inactive .ack-title { color: #94a3b8; text-decoration: line-through; }
.ack-note { display: block; margin-top: 4px; color: #64748b; font-size: 12px; line-height: 1.55; }

.disclosures-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.disclosures-heading h3 { margin: 0; font-size: 16px; }
.disclosures-heading p { margin: 5px 0 0; color: #64748b; font-size: 14px; line-height: 1.6; }
#disclosure-list { display: grid; gap: 20px; }
.disclosure-box { display: grid; grid-template-columns: 36px 1fr 40px; align-items: start; gap: 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; padding: 12px; }
.disclosure-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #004a8f; color: #fff; font-size: 14px; font-weight: 800; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border-radius: 16px; background: #0f172a; color: #fff; padding: 20px; }
.summary-item p { margin: 0; }
.summary-label { color: #94a3b8; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.summary-value { margin-top: 5px !important; font-size: 15px; font-weight: 700; }
.success-note { border: 1px solid #a7f3d0; border-radius: 12px; background: #ecfdf5; color: #065f46; padding: 15px; font-size: 14px; line-height: 1.65; }
.error-note { border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; color: #991b1b; padding: 15px; font-size: 14px; font-weight: 700; }
.share-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #bfdbfe; border-radius: 14px; background: #eff6ff; padding: 18px; }
.share-title { margin: 0; color: #004a8f; font-size: 15px; font-weight: 800; }
.share-copy { max-width: 560px; margin: 5px 0 0; color: #475569; font-size: 13px; line-height: 1.55; }
.share-note { margin: 8px 0 0; color: #9a3412; font-size: 12px; font-weight: 700; line-height: 1.55; }
.share-actions { display: flex; gap: 8px; flex-shrink: 0; }

.footer-actions { margin-top: 32px; border-top: 1px solid #f1f5f9; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-actions > div { display: flex; gap: 8px; }
.site-footer { border-top: 1px solid #dbeafe; background: #fff; padding: 20px 16px; color: #64748b; text-align: center; font-size: 12px; }

@media (max-width: 800px) {
  .header-inner { padding: 14px 16px; }
  .version { display: none; }
  .shell { grid-template-columns: 1fr; padding: 24px 16px; }
  .sidebar { position: static; }
  #step-nav { grid-template-columns: repeat(3, 1fr); }
  .step-button { padding: 9px 8px; text-align: center; font-size: 12px; }
  .step-number { display: none; }
  .workspace { padding: 20px; }
}

@media (max-width: 600px) {
  .brand h1 { font-size: 16px; }
  .brand-icon { width: 40px; height: 40px; }
  .two-column, .summary-grid { grid-template-columns: 1fr; }
  .info-panel, .disclosures-heading, .share-panel { align-items: stretch; flex-direction: column; }
  .share-actions { display: grid; grid-template-columns: 1fr; }
  .button-row { flex-wrap: wrap; }
  .disclosure-box { grid-template-columns: 32px 1fr; }
  .disclosure-number { width: 32px; height: 32px; }
  .disclosure-box .button.icon { grid-column: 2; justify-self: end; margin-top: -4px; }
  .footer-actions { align-items: stretch; flex-direction: column-reverse; }
  .footer-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-actions > .button { width: 100%; }
}
