.net-income-tax-calculator-shell { width: 100%; }
.nit-page { display: grid; gap: 18px; color: var(--ink); }
.nit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.nit-head > div:first-child { display: grid; gap: 6px; }
.nit-head span { color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.nit-head h1 { margin: 0; font-family: Georgia,serif; font-size: clamp(28px,4vw,42px); }
.nit-head p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.5; }
.nit-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.nit-note { padding: 13px 15px; border: 1px solid rgba(198,161,91,.48); border-radius: 10px; background: #fff9e9; color: #5d4a20; line-height: 1.5; }
.nit-note a { color: #60470c; font-weight: 850; }
.nit-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(340px,.9fr); align-items: start; gap: 18px; }
.nit-form { display: grid; gap: 14px; }
.nit-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.nit-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.nit-card-head > span { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #17140f; color: #f1d690; font-weight: 900; }
.nit-card-head h2 { margin: 0 0 3px; font-family: Georgia,serif; font-size: 22px; }
.nit-card-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.nit-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.nit-field { display: grid; gap: 7px; }
.nit-field > span { color: #575044; font-size: 12px; font-weight: 850; }
.nit-field.full,.nit-check.full,.nit-question.full { grid-column: 1 / -1; }
.nit-field input,.nit-field select { width: 100%; min-height: 44px; border: 1px solid #d8d2c7; border-radius: 9px; background: #fff; color: var(--ink); padding: 10px 12px; }
.nit-money-input { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; border: 1px solid #d8d2c7; border-radius: 9px; background: #fff; overflow: hidden; }
.nit-money-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(198,161,91,.16); }
.nit-money-input b { padding-left: 12px; color: #766a54; }
.nit-money-input input { border: 0; box-shadow: none; }
.nit-check { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid #e0dbd1; border-radius: 9px; background: #faf8f3; color: #40392e; font-size: 13px; font-weight: 750; line-height: 1.35; }
.nit-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.nit-question { min-width: 0; margin: 0; padding: 0; border: 0; }
.nit-question legend { margin-bottom: 8px; color: #40392e; font-size: 14px; font-weight: 800; line-height: 1.4; }
.nit-choice { display: flex; flex-wrap: wrap; gap: 9px; }
.nit-choice label { position: relative; min-width: 112px; cursor: pointer; }
.nit-choice input { position: absolute; opacity: 0; pointer-events: none; }
.nit-choice span { display: grid; min-height: 44px; place-items: center; padding: 9px 15px; border: 1px solid #d8d2c7; border-radius: 9px; background: #fff; color: #40392e; font-weight: 750; text-align: center; }
.nit-choice input:checked + span { border-color: var(--brand); background: #fff8e7; box-shadow: inset 0 0 0 1px var(--brand); color: #17140f; }
.nit-choice input:focus-visible + span { outline: 3px solid rgba(198,161,91,.25); }
.nit-results { position: sticky; top: 18px; display: grid; gap: 14px; }
.nit-result-hero { display: grid; gap: 5px; padding: 22px; border-radius: 15px; background: linear-gradient(135deg,#13110d,#302719); color: #fff; }
.nit-result-hero span { color: #e8d7ad; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.nit-result-hero strong { font-family: Georgia,serif; font-size: clamp(34px,5vw,52px); }
.nit-result-hero small { color: #e9dfc8; font-size: 14px; }
.nit-kpis { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.nit-kpis .mc-kpi { min-height: 112px; display: grid; align-content: start; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.nit-kpis span,.nit-kpis small { color: var(--muted); font-size: 11px; }
.nit-kpis strong { font-size: 21px; }
.nit-breakdown { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.nit-breakdown h2 { margin: 0 0 10px; font-family: Georgia,serif; font-size: 23px; }
.nit-tax-workings { overflow: hidden; border: 1px solid #272119; border-bottom: 0; font-size: 13px; }
.nit-tax-section { display: grid; grid-template-columns: minmax(155px,.8fr) minmax(0,1.2fr); border-bottom: 1px solid #272119; }
.nit-tax-label,.nit-tax-values { padding: 11px 12px; }
.nit-tax-label { border-right: 1px solid #272119; background: #fff; }
.nit-tax-label strong { display: block; margin-bottom: 4px; color: #201b15; font-size: 12px; letter-spacing: .035em; text-transform: uppercase; }
.nit-tax-label span { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.nit-tax-values { background: #fffaf4; }
.nit-tax-row,.nit-tax-total { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 16px; padding: 3px 0; }
.nit-tax-row span { color: #575044; }
.nit-tax-row strong,.nit-tax-total strong { text-align: right; white-space: nowrap; }
.nit-tax-row strong.negative,.nit-tax-total strong.negative { color: #8b2e24; }
.nit-tax-total { margin-top: 7px; padding-top: 7px; border-top: 1px solid #272119; font-weight: 900; }
.nit-result-note { margin: 0; padding: 12px; border-radius: 9px; background: #f2efe8; color: var(--muted); font-size: 11px; line-height: 1.5; }
@media (max-width: 980px) { .nit-layout { grid-template-columns: 1fr; } .nit-results { position: static; } }
@media (max-width: 620px) { .nit-head { flex-direction: column; } .nit-actions { display: grid; grid-template-columns: repeat(3,1fr); width: 100%; } .nit-fields,.nit-kpis { grid-template-columns: 1fr; } .nit-card { padding: 15px; } .nit-tax-section { grid-template-columns: 1fr; } .nit-tax-label { border-right: 0; border-bottom: 1px solid #d8d2c7; } }
@media print {
  @page { size: letter portrait; margin: 8mm; }
  .nit-actions,.nit-form,.nit-note,.tool-link-status { display: none !important; }
  .nit-page { gap: 9px; font-size: 10px; }
  .nit-head { gap: 10px; padding-bottom: 8px; }
  .nit-head > div:first-child { gap: 3px; }
  .nit-head span { font-size: 9px; }
  .nit-head h1 { font-size: 25px; line-height: 1.08; }
  .nit-head p { max-width: none; font-size: 9px; line-height: 1.35; }
  .nit-layout { display: block; }
  .nit-results { position: static; gap: 8px; }
  .nit-result-hero { gap: 2px; padding: 12px 15px; border-radius: 8px; break-inside: avoid; }
  .nit-result-hero span { font-size: 9px; }
  .nit-result-hero strong { font-size: 32px; line-height: 1; }
  .nit-result-hero small { font-size: 10px; }
  .nit-kpis { grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 6px; break-inside: avoid; }
  .nit-kpis .mc-kpi { min-height: 0; gap: 3px; padding: 8px; border-radius: 6px; }
  .nit-kpis span,.nit-kpis small { font-size: 8px; line-height: 1.2; }
  .nit-kpis strong { font-size: 16px; line-height: 1.08; }
  .nit-breakdown { padding: 9px 11px; border-radius: 7px; }
  .nit-breakdown h2 { margin: 0 0 6px; font-size: 17px; }
  .nit-tax-workings { font-size: 9px; }
  .nit-tax-section { grid-template-columns: 155px minmax(0,1fr); break-inside: avoid; page-break-inside: avoid; }
  .nit-tax-label,.nit-tax-values { padding: 6px 8px; }
  .nit-tax-label strong { margin-bottom: 2px; font-size: 9px; }
  .nit-tax-label span { font-size: 8px; line-height: 1.25; }
  .nit-tax-row,.nit-tax-total { gap: 12px; padding: 2px 0; line-height: 1.2; }
  .nit-tax-total { margin-top: 3px; padding-top: 4px; }
  .nit-result-note { padding: 6px 8px; border-radius: 5px; font-size: 8px; line-height: 1.3; }
}
