html { scroll-behavior: auto; }
body { overflow-x: clip; }
.tax-width { max-width: 1216px; }
.tax-hero {
  padding: clamp(42px, 7vw, 82px) 0 74px;
  background: radial-gradient(ellipse at 86% 4%, #416e64 0, transparent 52%), linear-gradient(118deg, #102921, #193e35);
  color: #fff;
}
.tax-hero h1 { margin: 12px 0; font-size: clamp(2.8rem, 6vw, 5.1rem); letter-spacing: -.062em; line-height: 1; }
.tax-hero .lead { color: #e0f3ec; max-width: 640px; line-height: 1.55; margin: 0 0 20px; }
.tax-year { color: #b3e5d2; font-size: .84rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.tax-start {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 15px;
  border: 1px solid #b5d8c9; border-radius: 10px; background: #ddf5eb; color: #153d30;
  font-weight: 800; text-decoration: none;
}
.tax-start:hover { background: #fff; }
.tax-workspace { color: #172f28; padding-bottom: 56px; scroll-margin-top: 86px; }
.tax-workspace [hidden] { display: none !important; }
.tax-workspace :focus-visible, .tax-hero a:focus-visible { outline: 3px solid #397e68; outline-offset: 3px; }
.tax-hero a:focus-visible { outline-color: #beead9; }
.tax-toolbar {
  position: relative; margin: -30px 0 22px; padding: 14px 18px;
  display: flex; flex-wrap: wrap; gap: 7px 16px; align-items: center;
  background: #fff; border: 1px solid #d7e7e0; border-radius: 15px;
  box-shadow: 0 8px 26px rgba(16, 50, 38, .08);
}
.tax-toolbar p { width: 100%; color: #456157; margin: 0; font-size: .86rem; line-height: 1.5; }
.tax-toolbar p:empty { display: none; }
.tax-save { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.tax-save input { width: 18px; height: 18px; accent-color: #246a54; }
.tax-mobile-result { display: none; }
.tax-layout { display: grid; grid-template-columns: minmax(0,1.48fr) minmax(325px,1fr); align-items: start; gap: 22px; }
.tax-inputs { display: grid; gap: 16px; min-width: 0; }
.tax-card, .tax-result, .tax-filing { border: 1px solid #d7e7e0; border-radius: 16px; background: #fff; }
.tax-card, .tax-filing { min-width: 0; padding: clamp(16px, 2.4vw, 25px); }
.tax-card h2, .tax-filing h2 { margin: 0 0 10px; font-size: 1.27rem; color: #183a30; }
.tax-card p, .tax-filing p { margin: 0 0 13px; color: #49645a; font-size: .94rem; line-height: 1.58; }
.tax-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tax-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: .87rem; font-weight: 725; }
.tax-field small { color: #48665a; font-size: .78rem; font-weight: 500; }
.tax-field input, .tax-field select {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 9px 10px; margin-top: auto;
  border: 1px solid #b7ccc4; border-radius: 9px; background: #fbfdfc; color: #173c30; font: inherit; font-size: 1rem;
}
.tax-field input::placeholder { color: #697d76; }
.tax-field input[type=file] { background: #fff; font-size: .87rem; }
.tax-field input::file-selector-button { margin-right: 8px; color: #194535; background: #e9f5ef; border: 0; border-radius: 4px; padding: 5px 8px; cursor: pointer; }
.tax-row { padding: 13px; margin: 0 0 10px; background: #f2f8f5; border-radius: 11px; }
.tax-row-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; margin: 0 0 8px; }
.tax-row-heading h3, .tax-row-heading span { font-size: .96rem; font-weight: 800; margin: 0; }
.tax-remove { border: 0; background: transparent; color: #8f3744; min-height: 36px; font: inherit; font-size: .78rem; font-weight: 750; cursor: pointer; }
.tax-remove:hover { text-decoration: underline; }
.tax-details > summary { cursor: pointer; color: #255543; font-weight: 800; }
.tax-details[open] > summary { margin: 0 0 12px; }
.tax-payroll { margin-top: 12px; font-size: .87rem; }
.tax-import { padding: 12px; margin: 12px 0; border: 1px dashed #9fc5b4; border-radius: 11px; background: #f6fbf8; }
.tax-import p { margin: 6px 0 0; font-size: .82rem; }
.tax-import p:empty { display: none; }
.tax-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: .86rem; }
.tax-secondary, .tax-download {
  min-height: 44px; padding: 8px 12px; border: 1px solid #a6cbb9; border-radius: 9px;
  background: #eef8f3; color: #215543; cursor: pointer; font: inherit; font-weight: 750;
}
.tax-secondary:hover:not(:disabled) { background: #dff2e8; }
.tax-secondary:disabled, .tax-download:disabled { opacity: .55; cursor: default; }
.tax-result { scroll-margin-top: 84px; position: sticky; top: 78px; overflow: hidden; }
.tax-result-top { padding: 20px; background: linear-gradient(135deg,#153b30,#265e4d); color: #fff; }
.tax-result-top h2 { margin: 0; font-size: .96rem; }
.tax-result-top output { display: block; font-weight: 900; font-size: clamp(1.85rem,4.6vw,2.8rem); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tax-result-top p { margin: 4px 0 0; color: #d3eae1; font-size: .82rem; }
.tax-result-content { padding: 16px 20px 20px; }
.tax-breakdown { margin: 0 0 14px; }
.tax-breakdown div { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 8px; padding: 5px 0; border-bottom: 1px solid #e5eee9; font-size: .84rem; }
.tax-breakdown dd { margin: 0; text-align: right; font-weight: 775; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tax-breakdown div:nth-last-child(-n+2) { font-weight: 800; }
.tax-download { width: 100%; color: #fff; background: #24614e; }
.tax-download:hover:not(:disabled) { background: #163f33; }
.tax-card .tax-note, .tax-note { color: #48665a; font-size: .81rem; line-height: 1.5; margin: 11px 0 0; }
.tax-result-content .tax-note { margin: 0 0 7px; }
.tax-notice { margin: 0 0 8px; font-size: .83rem; color: #6b4107; }
.tax-notice:empty { display: none; }
.tax-filing { margin-top: 26px; }
.tax-filing-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.tax-filing-links a { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid #cee1d9; border-radius: 9px; text-decoration: none; color: #225041; }
.tax-filing-links a:hover { background: #eff8f3; }
.tax-filing-links span { font-size: .82rem; line-height: 1.4; color: #48665a; }
.tax-method { max-width: 800px; margin: 32px auto 0; line-height: 1.7; }
.tax-method h2 { margin: 0 0 10px; }
.tax-method p { margin: 0 0 12px; }
.tax-method a, .tax-note a { color: #205b49; text-decoration: underline; text-underline-offset: 2px; }
@media (max-height: 860px) { .tax-result { position: static; } }
@media (max-width: 790px) {
  .tax-layout { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .tax-result { position: static; }
  .tax-mobile-result { display: inline-flex; align-items: center; min-height: 44px; color: #205b49; font-weight: 775; }
  .tax-filing-links { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 455px) {
  .tax-fields { grid-template-columns: minmax(0,1fr); }
  .tax-toolbar { padding: 11px 13px; gap: 6px 10px; }
  .tax-toolbar > :is(label,button,a) { font-size: .86rem; }
}
.tax-hero { padding:38px 0 58px; }
.tax-hero h1 { font-size:clamp(2.6rem,4.5vw,3.8rem); }
.tax-steps { position:static; top:auto; z-index:auto; display:flex; flex-wrap:wrap; gap:8px; margin:0 0 22px; padding:0; border:0; background:transparent; box-shadow:none; backdrop-filter:none; }
.tax-steps a { padding:9px 13px; min-height:44px; border:1px solid #c8ded3; border-radius:99px; background:#f4faf6; color:#234d3d; font-size:.86rem; font-weight:750; text-decoration:none; display:inline-flex; align-items:center; }
.tax-steps a:hover { background:#dcefe4; }
.tax-workspace h2 { scroll-margin-top:90px; }
.tax-plan { padding:15px; border:1px solid #bed7c8; border-radius:12px; background:#f1f8f2; margin:8px 0 18px; }
.tax-plan h3, .tax-next h3 { margin:0 0 7px; font-size:1.03rem; }
.tax-plan p, .tax-next li { font-size:.85rem; line-height:1.55; }
.tax-plan p { margin:0 0 12px; }
.tax-plan #tax-reserve-result { margin:12px 0; font-weight:800; font-size:1rem; color:#1c533e; }
.tax-plan .tax-fields { grid-template-columns:1fr; }
.tax-plan .tax-note { font-size:.75rem; margin:0; }
.tax-next ul { margin:0 0 18px; padding-left:19px; }
.tax-next li { margin-bottom:9px; }
.tax-next a { color:#215c47; text-underline-offset:3px; }
.tax-calculation { margin:18px 0; }
.tax-calculation summary { min-height:36px; }
#tax-print { width:100%; margin-top:9px; }
.tax-ledger-controls { margin:16px 0 8px; }
.tax-expense-totals { margin-top:20px; }
.tax-deadline { padding:14px; background:#f2f7f4; border-radius:10px; margin-top:15px; font-size:.88rem; }
.tax-deadline p { font-size:.8rem; margin:6px 0 10px; }
.tax-deadline a { display:inline-block; padding:12px; color:#205b49; }
.tax-checklist { display:grid; grid-template-columns:1fr 1fr; gap:8px 20px; margin:18px 0; }
.tax-checklist label { display:flex; align-items:flex-start; gap:10px; min-height:44px; padding:10px; border-radius:9px; background:#f4f8f5; font-size:.88rem; line-height:1.5; cursor:pointer; }
.tax-checklist input { flex:0 0 18px; width:18px; height:18px; margin-top:2px; accent-color:#246a54; }
.tax-backups { padding:16px 0; border-top:1px solid #d7e7e0; margin:18px 0; }
#tax-restore-preview { padding:13px; background:#f3f8f4; border-radius:9px; }
#tax-printout { display:none; }
@media (max-width:790px) { .tax-checklist { grid-template-columns:1fr; } }
@media print {
  body > * { display:none !important; }
  body > #tax-printout { display:block !important; color:#111; background:#fff; padding:10mm; font:11pt/1.45 Arial,sans-serif; }
  #tax-printout h1 { font-size:20pt; margin:0 0 12pt; }
  #tax-printout h2 { font-size:14pt; margin:16pt 0 7pt; break-after:avoid; }
  #tax-printout p { margin:5pt 0; }
  #tax-printout table { width:100%; border-collapse:collapse; }
  #tax-printout tr { break-inside:avoid; }
  #tax-printout th, #tax-printout td { text-align:left; font-weight:400; border-bottom:1px solid #ddd; padding:4pt; }
  #tax-printout td { text-align:right; }
  @page { size:auto; margin:12mm; }
}

.tax-filing-exports{margin:16px 0;gap:12px}.tax-filing-exports button{width:auto;flex:1 1 230px;margin:0}.tax-row [data-w2-instructions]{padding:12px;border-left:3px solid #387b66;background:#f0faf6;color:#214b3e}
