.tax-calc {
        color-scheme: light;
        --bg: #f4f7fb;
        --surface: #ffffff;
        --surface-2: #f9fbff;
        --text: #10233f;
        --muted: #58708f;
        --primary: #2563eb;
        --primary-dark: #1649b4;
        --border: #e2e8f0;
      }

      

      .tax-calc {
        margin: 0;
        font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
        color: var(--text);
        background: linear-gradient(180deg, #0c85ca 0%, #064264 100%);
        line-height: 1.5;
      }

      .app-shell {
        max-width: 1080px;
        margin: 0 auto;
        padding: 24px;
      }

      .top-logo {
        display: flex;
        justify-content: center;
        padding: 20px 0 8px;
      }

      .top-logo svg {
        width: 170px;
        height: auto;
        display: block;
      }

      .section-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 24px;
        box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
        margin-bottom: 20px;
      }

      .section-banner {
        width: 100%;
        aspect-ratio: 2.4 / 1;
        background: #e2e8f0;
        border-radius: 24px 24px 0 0;
        overflow: hidden;
      }

      .section-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 15%;
        display: block;
      }

      .section-body {
        padding: 24px;
      }

      .section-title {
        font-size: 1.5rem;
        font-weight: 800;
        color: #1e293b;
        text-align: center;
        letter-spacing: -0.02em;
        margin: 0 0 20px;
      }

      .rows {
        display: grid;
        gap: 12px;
      }

      .row {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 14px 18px;
        border-radius: 14px;
        border: 1px solid var(--border);
        background: var(--surface-2);
      }

      .row-icon {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #64748b;
        color: #fff;
        flex-shrink: 0;
      }

      .row-icon svg {
        width: 20px;
        height: 20px;
      }

      .row-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
      }

      .row-title {
        font-weight: 600;
        font-size: 0.98rem;
        color: #334155;
      }

      .row-sub {
        font-size: 0.78rem;
        color: #94a3b8;
      }

      .row-value {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 10px 14px;
        width: 160px;
        font-size: 1.05rem;
        justify-content: flex-end;
        flex-shrink: 0;
      }

      .row-currency {
        color: #94a3b8;
        font-weight: 600;
      }

      .row-input {
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        text-align: right !important;
        font: inherit;
        font-weight: 600 !important;
        width: 100% !important;
        color: #94a3b8 !important;
        -moz-appearance: textfield;
        -webkit-appearance: none;
        appearance: none;
      }

      .row-input:focus {
        outline: none !important;
        box-shadow: none !important;
        border: 0 !important;
      }

      .row-input::-webkit-outer-spin-button,
      .row-input::-webkit-inner-spin-.tax-calc button {
        -webkit-appearance: none;
        margin: 0;
      }

      .row-display {
        font-weight: 700;
        color: #1e293b;
        width: 100%;
        text-align: right;
      }

      .row-select select {
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 8px 10px;
        font: inherit;
        background: #fff;
        color: #1e293b;
      }

      .row.variant-green { background: #ecfdf5; border-color: #6ee7b7; }
      .row.variant-green .row-icon { background: #059669; }
      .row.variant-green .row-title { color: #065f46; }
      .row.variant-green .row-value { background: #a7f3d0; border-color: #6ee7b7; }
      .row.variant-green .row-currency,
      .row.variant-green .row-display,
      .row.variant-green .row-input { color: #065f46 !important; }

      .row.variant-red { background: #fef2f2; border-color: #fecaca; }
      .row.variant-red .row-icon { background: #e11d48; }
      .row.variant-red .row-title { color: #991b1b; }
      .row.variant-red .row-value { background: #fecaca; border-color: #fecaca; }
      .row.variant-red .row-currency,
      .row.variant-red .row-display { color: #991b1b; }

      .row.variant-blue { background: #eff6ff; border-color: #bfdbfe; }
      .row.variant-blue .row-icon { background: #2563eb; }
      .row.variant-blue .row-title { color: #1e3a8a; }
      .row.variant-blue .row-value { background: #bfdbfe; border-color: #bfdbfe; }
      .row.variant-blue .row-currency,
      .row.variant-blue .row-display { color: #1e3a8a; }

      .row.variant-rose { background: #fff1f2; border-color: #fecdd3; }
      .row.variant-rose .row-icon { background: #be123c; }
      .row.variant-rose .row-title { color: #9f1239; }
      .row.variant-rose .row-value { background: #fecdd3; border-color: #fecdd3; }
      .row.variant-rose .row-currency,
      .row.variant-rose .row-display,
      .row.variant-rose .row-input { color: #9f1239 !important; }

      .row.variant-amber { background: #fffbeb; border-color: #fcd34d; }
      .row.variant-amber .row-icon { background: #d97706; }
      .row.variant-amber .row-title { color: #92400e; }
      .row.variant-amber .row-value { background: #fde68a; border-color: #fde68a; }
      .row.variant-amber .row-currency,
      .row.variant-amber .row-display { color: #92400e; }

      .deduction-group {
        display: contents;
      }

      .deduction-group.hidden {
        display: none;
      }

      .row-divider {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 14px 18px;
        border-radius: 14px;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
      }

      .row-divider .row-icon {
        background: #2563eb;
      }

      .row-divider .row-title {
        color: #1e3a8a;
        font-weight: 700;
      }

      .bracket-row {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 12px 18px;
        border-radius: 14px;
        border: 1px solid var(--border);
        background: #f1f5f9;
      }

      .bracket-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #cad5e2;
        flex-shrink: 0;
      }

      .bracket-range {
        flex: 1;
        color: #475569;
        font-weight: 500;
      }

      .bracket-rate {
        font-weight: 700;
        color: #1e293b;
        width: 44px;
        text-align: right;
      }

      .bracket-tax {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 6px 12px;
        font-weight: 700;
        color: #1e293b;
        min-width: 100px;
        text-align: right;
      }

      .summary-card-outer {
        background: transparent;
        border: none;
        box-shadow: none;
      }

      .summary-card-outer .section-body {
        padding: 36px 24px;
      }

      .summary-layout {
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 20px;
        flex-wrap: wrap;
      }

      .summary-clipboard-frame {
        background-repeat: no-repeat;
        background-position: top center;
        background-size: 100% 100%;
        width: 100%;
        max-width: 480px;
        padding: 185px 32px 42px;
        filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.35));
      }

      .summary-paper {
        background: transparent;
        padding: 0 24px 24px;
      }

      .summary-logo {
        width: 150px;
        margin: 4px auto 6px;
      }

      .summary-logo svg {
        width: 100%;
        height: auto;
        display: block;
      }

      .summary-paper .section-title {
        margin-bottom: 16px;
      }

      .summary-rows {
        display: grid;
        gap: 10px;
      }

      .summary-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 14px;
        border: 1px solid var(--border);
        font-weight: 600;
        font-size: 0.92rem;
      }

      .summary-row .summary-value {
        border-radius: 10px;
        padding: 6px 12px;
        font-weight: 700;
        white-space: nowrap;
      }

      .summary-row.variant-green { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
      .summary-row.variant-green .summary-value { background: #a7f3d0; color: #065f46; }
      .summary-row.variant-red { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
      .summary-row.variant-red .summary-value { background: #fecaca; color: #991b1b; }
      .summary-row.variant-blue { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
      .summary-row.variant-blue .summary-value { background: #bfdbfe; color: #1e3a8a; }

      .summary-drew {
        width: auto;
        height: auto;
        margin-left: -40px;
        filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35));
      }

      .summary-print-wrap {
        display: flex;
        justify-content: center;
        margin-top: 28px;
      }

      @media (max-width: 720px) {
        .summary-drew { display: none; }
      }

      .top-actions {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 16px;
      }

      .actions {
        display: flex;
        justify-content: center;
      }

      button {
        border: 0;
        border-radius: 999px;
        padding: 12px 22px;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
      }

      .btn-reset {
        background: #e8f0ff;
        color: var(--primary-dark);
      }

      .btn-print {
        background: linear-gradient(135deg, #152656, #1e3a8a);
        border: 2px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
        color: #fff;
        font-size: 1rem;
        padding: 14px 28px;
      }

      @media (max-width: 640px) {
        .row { flex-wrap: wrap; }
        .row-value, .row-select { flex: 1 1 100%; min-width: 0; }
        .row-select select { width: 100%; }
        .bracket-row { flex-wrap: wrap; row-gap: 8px; }
        .bracket-range { flex-basis: 100%; }
        .bracket-tax { flex: 1 1 100%; min-width: 0; text-align: left; }
        .summary-row { flex-wrap: wrap; row-gap: 8px; }
        .summary-value { flex: 1 1 100%; min-width: 0; text-align: right; }
      }

      @media print {
        body { background: #fff; }
        .no-print { display: none !important; }
        .section-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
      }
