html:has(.declaration),body:has(.declaration) { min-width:0; }
.declaration { --dc-ink:#151a29; --dc-muted:#4e586d; --dc-purple:#4627ad; color:var(--dc-ink); background:#f7f8fc; padding:26px 0 58px; font:16px/1.5 Manrope,Arial,sans-serif; overflow-wrap:anywhere; }
.dc-shell { width:min(1070px,calc(100% - 80px)); margin:auto; }
.dc-back,.dc-link,.dc-faq a,.directory-note [data-decl] { color:#4826aa; text-decoration:underline; text-underline-offset:3px; }
.dc-shell header { margin:26px 0 22px; max-width:760px; }
.dc-shell h1,.dc-shell h2,.dc-shell h3 { color:var(--dc-ink); font-weight:650; margin:0; line-height:1.15; }
.dc-shell h1 { font-size:clamp(34px,4.5vw,65px); letter-spacing:-.035em; }
.dc-shell h2 { font-size:clamp(26px,3vw,36px); margin-bottom:12px; }
.dc-shell h3 { font-size:21px; margin:20px 0 8px; }
.dc-shell p { margin:10px 0 16px; max-width:76ch; }
.dc-shell header p { font-size:18px; color:var(--dc-muted); }
.dc-shell header .dc-kicker { margin:0 0 8px; font-size:15px; font-weight:650; color:var(--dc-purple); }
.dc-shell header { max-width:none; }
.dc-shell header>p:not(.dc-kicker) { max-width:72ch; margin-inline:auto; text-align:center; }
.dc-shell #dc-title { font-size:clamp(30px,3.7vw,53px); text-wrap:balance; text-align:center; }
.dc-shell #dc-title { outline:none; }
.dc-shell #dc-title:focus-visible { text-decoration:underline; text-decoration-color:#ad9ae4; text-decoration-thickness:2px; text-underline-offset:6px; }
.dc-shell .dc-years { margin:8px auto; color:var(--dc-muted); text-align:center; }
.dc-start-steps { display:flex; flex-wrap:wrap; justify-content:center; gap:5px 32px; margin:10px 0; padding:0; list-style-position:inside; text-align:center; font-size:14px; color:var(--dc-muted); }
.dc-start-steps li::marker { color:var(--dc-purple); font-weight:650; }
.dc-guide { margin:36px 0 0; }
.dc-guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 26px; }
.dc-guide > h2:not(:first-child) { margin-top:28px; }
.dc-guide details { border-top:1px solid #d7deec; }
.dc-import { margin:14px 0 0; border-top:1px solid #d7deec; padding:12px 0 0; }
.dc-import .dc-file { display:inline-block; max-width:100%; }
.dc-import small { display:block; color:var(--dc-muted); margin-top:6px; }
.dc-import #dc-import-error { background:#fff0ee; color:#892716; padding:10px 12px; border-radius:8px; }
.dc-import-preview { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr)); gap:8px 14px; margin:12px 0; padding:12px; border-radius:12px; background:#edf2ff; }
.dc-import-preview dt { color:var(--dc-muted); font-size:14px; }
.dc-import-preview dd { margin:0; font-weight:650; }
.dc-guide a { color:var(--dc-purple); text-underline-offset:3px; text-decoration:underline; }
.dc-source-date { color:var(--dc-muted); font-size:14px; }
.figma .calculator-top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 14px; width:min(1280px,calc(100% - 96px)); margin:12px auto 0; }
.figma .calculator-top .product-title { width:auto; margin:0; }
.figma a.dc-entry-button { display:inline-flex; align-items:center; min-height:39px; padding:7px 13px; border-radius:9px; background:#eee9ff; color:#4627ad; font-size:14px; font-weight:650; text-decoration:none; }
.figma a.dc-entry-button:hover { text-decoration:underline; text-underline-offset:3px; }
.figma .dc-dialog-entry { margin-top:18px; }
.figma .dc-entry-card { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; padding:14px 18px; margin-block:16px 0; background:#f3f5fa; border-radius:16px; }
.figma .dc-entry-card h2 { margin:0; font-size:clamp(18px,2vw,23px); line-height:1.2; }
.figma .dc-entry-card p { color:var(--muted); margin:5px 0 0; font-size:15px; }
@media print { .calculator-top,.dc-entry-card { display:none!important; } }
.dc-steps,.dc-actions { display:flex; flex-wrap:wrap; gap:8px; }
.dc-steps { margin:18px 0; justify-content:center; }
.dc-shell button,.dc-file { font:inherit; cursor:pointer; }
.dc-steps button,.dc-secondary,.dc-primary,.dc-file { border:1px solid #d2d6e4; border-radius:12px; background:white; color:var(--dc-ink); padding:9px 15px; min-height:44px; }
.dc-steps button[aria-current] { color:#fff; background:var(--dc-ink); border-color:var(--dc-ink); }
.dc-panel { background:white; border:1px solid #dde1eb; border-radius:24px; padding:clamp(18px,3.5vw,46px); }
.dc-shell [hidden] { display:none!important; }
.dc-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; margin:14px 0; }
.dc-shell label { display:block; font-weight:600; min-width:0; }
.dc-shell label small,.dc-shell .dc-status { display:block; color:var(--dc-muted); font-size:13px; font-weight:450; }
.dc-shell input:not([type=checkbox]):not([type=file]):not([type=radio]),.dc-shell select { display:block; width:100%; min-height:44px; border:1px solid #aab6cd; border-radius:10px; margin:4px 0; padding:8px 10px; font:inherit; color:var(--dc-ink); background:white; }
.dc-shell :is(input,select,button,a,summary):focus-visible { outline:3px solid #5638c7; outline-offset:2px; }
.dc-panel fieldset { min-width:0; margin:18px 0; border:1px solid #d7ddeb; border-radius:14px; padding:14px 18px; }
.dc-panel legend { padding-inline:6px; font-weight:650; }
.dc-shell .dc-callout,.dc-transfer,.dc-confirm { background:#edf2ff; border-radius:12px; padding:14px 18px; margin:14px 0; }
.dc-confirm input { width:18px; height:18px; vertical-align:text-bottom; }
.dc-shell .dc-primary { color:white; background:var(--dc-purple); border-color:var(--dc-purple); font-weight:650; }
.dc-shell .dc-link { padding:8px 0; border:0; background:transparent; }
.dc-panel>.dc-actions { margin-top:22px; }
.dc-panel>.dc-actions:empty {display:none}
.dc-panel .dc-filing {display:flex;flex-wrap:wrap;align-items:center;gap:4px 20px;border:0;padding:0;margin:14px 0 4px}
.dc-filing legend {padding:0}
.dc-filing label {display:inline-flex;align-items:center;gap:5px;min-height:44px;cursor:pointer;font-weight:500}
.dc-filing input {width:18px;height:18px;accent-color:var(--dc-purple)}
.dc-start-note {color:#424c62}
.dc-scope {margin-top:14px;border-top:1px solid #d7deec}
.dc-start-actions button {padding-inline:26px}
@media(max-width:700px){.dc-start{gap:10px}.dc-start-actions button{width:100%}}
.dc-shell button:disabled { opacity:.6; }
.dc-draft,.dc-faq { margin:22px 0; border-block-start:1px solid #d7deec; }
.dc-shell summary { padding:12px 0; font-weight:650; cursor:pointer; }
.dc-file input { display:block; font:inherit; width:100%; max-width:260px; }
.dc-shell #dc-error { background:#fff0ee; color:#892716; padding:12px; border-radius:8px; }
.dc-totals { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:12px; padding:20px; border-radius:14px; background:#eef1fe; }
.dc-totals span,.dc-totals strong { display:block; }
.dc-totals strong { font-size:23px; }
.dc-preview-ready { margin:16px 0; padding:16px 18px; border-radius:12px; background:#edf2ff; }
.dc-reference,.dc-preview-ready a { color:var(--dc-purple); text-decoration:underline; text-underline-offset:3px; }
.dc-preview-ready a { display:inline-flex; align-items:center; min-height:44px; padding:4px 10px; font-weight:650; }
.dc-preview-ready [data-preview-status]:empty { display:none; }
.dc-pager { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:12px 0; }
.dc-pager button { min-height:44px; padding:6px 12px; color:var(--dc-ink); background:#fff; border:1px solid #b6bfd1; border-radius:9px; }
.dc-pager output { text-align:center; font-size:14px; }
.dc-preview-surface canvas { display:block; width:100%; height:auto; background:white; }
.dc-shell [aria-invalid=true] { outline:2px solid #a33321; outline-offset:1px; }
.dc-shell #dc-error { display:block; margin-block:6px; font-weight:500; }
.ndfl .dc-result-entry { display:none; margin:14px 0; }
.ndfl .studio:is([data-task=annual],[data-task=relief]) .dc-result-entry { display:block; }
.dc-result-entry a { color:#4627ad; font-weight:650; text-decoration:underline; }
@media(max-width:700px) {
 .dc-shell header .dc-kicker { margin-bottom:4px; font-size:14px; }
 .dc-shell header>p:not(.dc-kicker) { margin-block:6px 8px; }
 .dc-shell .dc-years { font-size:14px; line-height:1.4; }
 .dc-start-steps { font-size:13px; gap:2px; }
 .figma .calculator-top { width:calc(100% - 40px); margin-top:6px; }
 .figma .calculator-top .product-title { font-size:14px; }
 .figma .calculator-top .dc-entry-button { font-size:12px; padding-inline:8px; min-height:32px; }
 .dc-start-steps { display:grid; }
 .dc-guide-grid { grid-template-columns:1fr; }
 .declaration { padding:16px 0 32px; }
 .dc-shell { width:calc(100% - 28px); }
 .dc-shell header { margin:14px 0; }
 .dc-shell header p { font-size:15px; }
 .dc-steps { gap:5px; }
 .dc-steps button { flex:0 0 calc((100% - 10px) / 3); min-width:0; padding:6px 3px; border-radius:8px; font-size:12px; }
 .dc-grid { grid-template-columns:1fr; }
 .dc-panel { border-radius:16px; }
 .dc-panel fieldset { padding:10px; }
 .dc-shell .dc-file { max-width:100%; }
}
