header.main-header .tax-report-nav-open {
    border: 0;
    background: transparent;
    cursor: pointer;
}

header.main-header .mobile-nav-link.tax-report-mobile-open {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

html:not([data-tax-report-ready="1"]) header.main-header [data-tax-open] {
    visibility: hidden;
    pointer-events: none;
}

.tax-report-modal-root {
    display: contents;
}

.tax-report-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    color: #0f172a;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.tax-report-modal.is-open {
    display: block;
}

.tax-report-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(14px);
}

.tax-report-dialog {
    position: absolute;
    inset: 24px;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(2, 6, 23, 0.55);
}

.tax-report-modal.is-dark .tax-report-dialog {
    background: #0f172a;
    border-color: rgba(51, 65, 85, 0.95);
    color: #e2e8f0;
}

.tax-report-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e2e8f0;
}

.tax-report-modal.is-dark .tax-report-topbar {
    background: rgba(15, 23, 42, 0.96);
    border-bottom-color: #1e293b;
}

.tax-report-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.tax-report-modal.is-dark .tax-report-brand {
    color: #f8fafc;
}

.tax-report-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #1e40af;
    color: #ffffff;
    flex: 0 0 auto;
}

.tax-report-brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tax-report-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.tax-report-top-page-count {
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.tax-report-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tax-report-action:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
    transform: translateY(-1px);
}

.tax-report-action.is-primary {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.tax-report-action.is-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
}

.tax-report-modal.is-dark .tax-report-action {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.tax-report-modal.is-dark .tax-report-action:hover {
    background: #334155;
    color: #ffffff;
}

.tax-report-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    min-height: 0;
    overflow: hidden;
}

.tax-report-stage {
    min-height: 0;
    overflow: auto;
    padding: 22px 86px 74px 22px;
    background: #e2e8f0;
}

.tax-report-modal.is-dark .tax-report-stage {
    background: #020617;
}

.tax-report-canvas {
    width: min(100%, 900px);
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-left: 10px solid #1e40af;
    border-right: 10px solid #1e40af;
    box-shadow: 0 18px 56px rgba(15, 23, 42, 0.16);
    min-height: 1120px;
    position: relative;
    box-sizing: border-box;
}

.tax-report-modal.is-dark .tax-report-canvas {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.42);
}

.tax-report-page {
    display: none;
    min-height: 1120px;
    padding: 58px;
    position: relative;
    overflow: hidden;
}

.tax-report-page.is-active {
    display: flex;
    flex-direction: column;
}

.tax-report-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #0f172a, #1d4ed8, #0f172a);
}

.tax-report-page.is-red .tax-report-strip {
    background: linear-gradient(90deg, #7f1d1d, #dc2626, #7f1d1d);
}

.tax-report-cover {
    justify-content: space-between;
}

.tax-report-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tax-report-modal.is-dark .tax-report-badge {
    background: rgba(30, 64, 175, 0.24);
    border-color: rgba(59, 130, 246, 0.45);
    color: #93c5fd;
}

.tax-report-cover-title {
    margin: 38px 0 0;
    color: #0f172a;
    font-size: clamp(48px, 7vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.tax-report-modal.is-dark .tax-report-cover-title,
.tax-report-modal.is-dark .tax-report-heading,
.tax-report-modal.is-dark .tax-report-card-title,
.tax-report-modal.is-dark .tax-report-section-title {
    color: #f8fafc;
}

.tax-report-cover-title strong {
    color: #1e40af;
}

.tax-report-accent-row {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.tax-report-accent-row span {
    width: 64px;
    height: 8px;
    border-radius: 999px;
    background: #0f172a;
}

.tax-report-accent-row span:last-child {
    background: #1d4ed8;
}

.tax-report-lead {
    margin-top: 58px;
    max-width: 680px;
    color: #475569;
    font-size: 20px;
    line-height: 1.75;
    font-weight: 650;
    word-break: keep-all;
}

.tax-report-modal.is-dark .tax-report-lead,
.tax-report-modal.is-dark .tax-report-muted,
.tax-report-modal.is-dark .tax-report-copy {
    color: #cbd5e1;
}

.tax-report-lead mark {
    background: #eff6ff;
    color: #1e40af;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 4px;
}

.tax-report-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 46px;
    padding-top: 24px;
    border-top: 1px solid #cbd5e1;
}

.tax-report-metric-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.tax-report-metric-value {
    margin-top: 4px;
    color: #0f172a;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.tax-report-modal.is-dark .tax-report-metric-value {
    color: #f8fafc;
}

.tax-report-page-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #cbd5e1;
}

.tax-report-footer-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tax-report-footer-value {
    margin-top: 4px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.tax-report-modal.is-dark .tax-report-footer-value {
    color: #f8fafc;
}

.tax-report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 34px;
    border-bottom: 4px solid #1e40af;
}

.tax-report-header.is-neutral {
    border-bottom-color: #0f172a;
}

.tax-report-header.is-red {
    border-bottom-color: #b91c1c;
}

.tax-report-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tax-report-kicker.is-red {
    color: #dc2626;
}

.tax-report-heading {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: -0.04em;
    word-break: keep-all;
}

.tax-report-risk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 34px;
}

.tax-report-risk {
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.tax-report-risk-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.tax-report-risk-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tax-report-risk-id {
    color: rgba(30, 64, 175, 0.15);
    font-size: 31px;
    font-style: italic;
    font-weight: 950;
}

.tax-report-risk-title {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 900;
    word-break: keep-all;
}

.tax-report-modal.is-dark .tax-report-risk-title {
    color: #f8fafc;
}

.tax-report-risk-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 7px;
    border-radius: 6px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.tax-report-risk-desc {
    margin: 0 0 10px 42px;
    color: #475569;
    font-size: 12px;
    line-height: 1.65;
    font-weight: 650;
    word-break: keep-all;
}

.tax-report-risk-impact {
    margin-left: 42px;
    padding: 12px;
    border-left: 4px solid #94a3b8;
    border-radius: 0 8px 8px 0;
    background: #f8fafc;
    color: #334155;
    font-size: 11px;
    line-height: 1.5;
    word-break: keep-all;
}

.tax-report-modal.is-dark .tax-report-risk-impact {
    background: rgba(15, 23, 42, 0.7);
    color: #cbd5e1;
}

.tax-report-insight {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.tax-report-modal.is-dark .tax-report-insight {
    background: rgba(15, 23, 42, 0.55);
    border-color: #334155;
}

.tax-report-insight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1d4ed8;
    flex: 0 0 auto;
}

.tax-report-card-stack {
    display: grid;
    gap: 34px;
}

.tax-report-strategy {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 24px;
}

.tax-report-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
}

.tax-report-step.is-blue {
    background: #1e40af;
}

.tax-report-step.is-soft {
    background: #f1f5f9;
    border: 2px solid #94a3b8;
    color: #334155;
}

.tax-report-card-title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.tax-report-copy {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 650;
    word-break: keep-all;
}

.tax-report-card-title.is-inverse {
    color: #ffffff;
}

.tax-report-copy.is-inverse {
    color: #cbd5e1;
}

.tax-report-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.tax-report-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 850;
    word-break: keep-all;
}

.tax-report-modal.is-dark .tax-report-check {
    background: rgba(15, 23, 42, 0.6);
    border-color: #334155;
    color: #cbd5e1;
}

.tax-report-quote {
    margin-top: 16px;
    padding: 16px;
    border-left: 4px solid #1d4ed8;
    border-radius: 0 8px 8px 0;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 850;
    word-break: keep-all;
}

.tax-report-modal.is-dark .tax-report-quote {
    background: rgba(15, 23, 42, 0.6);
    color: #cbd5e1;
}

.tax-report-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tax-report-summary-card {
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #2563eb;
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
}

.tax-report-summary-card.is-dark {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.tax-report-modal.is-dark .tax-report-summary-card:not(.is-dark) {
    background: rgba(15, 23, 42, 0.55);
    border-color: #334155;
}

.tax-report-summary-value {
    color: #1e40af;
    font-size: 38px;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.tax-report-summary-card.is-dark .tax-report-summary-value {
    color: #ffffff;
}

.tax-report-roadmap {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.tax-report-roadmap-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.tax-report-roadmap-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #1e40af;
    color: #ffffff;
    font-size: 17px;
    font-weight: 950;
}

.tax-report-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 10px 14px;
    border-left: 4px solid #1e40af;
    background: #f8fafc;
    color: #0f172a;
    font-size: 19px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.tax-report-section-title.is-spaced {
    margin-top: 34px;
}

.tax-report-modal.is-dark .tax-report-section-title,
.tax-report-modal.is-dark .tax-report-roadmap-item {
    background: rgba(15, 23, 42, 0.6);
    border-color: #334155;
}

.tax-report-final-box {
    margin-top: auto;
    padding: 30px;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
}

.tax-report-tool-page {
    gap: 24px;
}

.tax-report-tool-intro {
    max-width: 720px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 650;
    word-break: keep-all;
}

.tax-report-tool-intro.is-strong {
    margin-top: 5px;
    color: #1e40af;
    font-weight: 900;
}

.tax-report-tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    flex: 1;
    min-height: 0;
}

.tax-report-tool-layout-stacked {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 3fr) minmax(0, 7fr);
}

.tax-report-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.tax-report-advisor-header {
    margin-bottom: 28px;
}

.tax-report-advisor-title-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tax-report-advisor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #1e40af;
    color: #ffffff;
    flex: 0 0 auto;
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.2);
}

.tax-report-advisor-shell {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 24px;
    flex: 1;
    min-height: 0;
}

.tax-report-advisor-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.tax-report-advisor-query {
    margin-bottom: 0;
}

.tax-report-advisor-result {
    min-height: 520px;
    border-color: #dbe3ef;
    background: #ffffff;
    box-shadow: 6px 0 0 rgba(15, 23, 42, 0.08);
}

.tax-report-modal.is-dark .tax-report-panel {
    background: rgba(15, 23, 42, 0.6);
    border-color: #334155;
}

.tax-report-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
}

.tax-report-modal.is-dark .tax-report-panel-title {
    color: #f8fafc;
    border-bottom-color: #334155;
}

.tax-report-field {
    display: grid;
    min-width: 0;
    gap: 8px;
    margin-bottom: 14px;
}

.tax-report-field label {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tax-report-field input,
.tax-report-field select,
.tax-report-field textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.tax-report-field input,
.tax-report-field select {
    min-height: 44px;
    padding: 0 13px;
}

.tax-report-field textarea {
    min-height: 220px;
    padding: 13px;
    resize: vertical;
    line-height: 1.6;
}

.tax-report-field input:focus,
.tax-report-field select:focus,
.tax-report-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.tax-report-modal.is-dark .tax-report-field input,
.tax-report-modal.is-dark .tax-report-field select,
.tax-report-modal.is-dark .tax-report-field textarea {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.tax-report-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    margin-top: auto;
    border: 0;
    border-radius: 8px;
    background: #1e40af;
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.tax-report-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.tax-report-submit:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.tax-report-panel-action {
    width: 100%;
    margin-top: 4px;
}

.tax-report-tool-layout-stacked .tax-report-panel {
    overflow: hidden;
}

.tax-report-tool-layout-stacked .tax-report-result {
    height: 100%;
}

.tax-report-submit.is-red {
    background: #dc2626;
}

.tax-report-submit.is-red:hover {
    background: #b91c1c;
}

.tax-report-result {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    line-height: 1.85;
    font-weight: 650;
    white-space: pre-wrap;
    word-break: keep-all;
}

.tax-report-result.is-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

.tax-report-result.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #94a3b8;
}

.tax-report-modal.is-dark .tax-report-result {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.tax-report-side-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.88);
    border-left: 1px solid #e2e8f0;
}

.tax-report-modal.is-dark .tax-report-side-nav {
    background: rgba(15, 23, 42, 0.92);
    border-left-color: #1e293b;
}

.tax-report-dot {
    width: 38px;
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tax-report-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: width 180ms ease, height 180ms ease, background-color 180ms ease;
}

.tax-report-dot.is-active::before {
    width: 8px;
    height: 28px;
    background: #1e40af;
}

.tax-report-dot.is-red.is-active::before {
    background: #dc2626;
}

.tax-report-dot-label {
    position: absolute;
    right: 46px;
    top: 50%;
    transform: translate(8px, -50%);
    padding: 7px 10px;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
}

.tax-report-dot:hover .tax-report-dot-label,
.tax-report-dot.is-active .tax-report-dot-label {
    opacity: 1;
    transform: translate(0, -50%);
}

.tax-report-bottom-nav {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18);
}

.tax-report-modal.is-dark .tax-report-bottom-nav {
    background: rgba(15, 23, 42, 0.96);
    border-color: #334155;
}

.tax-report-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.tax-report-nav-btn:hover {
    background: #f1f5f9;
    color: #1e40af;
}

.tax-report-modal.is-dark .tax-report-nav-btn:hover {
    background: #1e293b;
}

.tax-report-nav-btn:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.tax-report-page-count {
    min-width: 82px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
}

.tax-report-loading {
    animation: taxReportSpin 1s linear infinite;
}

@keyframes taxReportSpin {
    to {
        transform: rotate(360deg);
    }
}

body.tax-report-lock {
    overflow: hidden;
}

@media (max-width: 980px) {
    .tax-report-dialog {
        inset: 8px;
    }

    .tax-report-body {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .tax-report-stage {
        padding: 12px 12px 150px;
    }

    .tax-report-side-nav {
        grid-row: 2;
        flex-direction: row;
        justify-content: center;
        padding: 10px;
        border-left: 0;
        border-top: 1px solid #e2e8f0;
        overflow-x: auto;
    }

    .tax-report-bottom-nav {
        bottom: 64px;
    }

    .tax-report-dot-label {
        display: none;
    }

    .tax-report-page {
        min-height: auto;
        padding: 34px 22px;
    }

    .tax-report-canvas {
        min-height: auto;
    }

    .tax-report-risk-grid,
    .tax-report-summary-grid,
    .tax-report-tool-layout,
    .tax-report-metrics {
        grid-template-columns: 1fr;
    }

    .tax-report-advisor-result {
        min-height: 360px;
    }

    .tax-report-advisor-actions {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 640px) {
    .tax-report-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .tax-report-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .tax-report-action {
        flex: 1 1 auto;
    }

    .tax-report-top-page-count {
        width: 100%;
        order: -1;
    }

    .tax-report-cover-title {
        font-size: 38px;
    }

    .tax-report-heading {
        font-size: 26px;
    }

    .tax-report-check-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html,
    body.tax-report-print-mode {
        width: 210mm !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    body.tax-report-print-mode > :not(#tax-report-modal-root) {
        display: none !important;
    }

    body.tax-report-print-mode #tax-report-modal-root {
        display: block !important;
        position: static !important;
        width: 210mm !important;
        margin: 0 auto !important;
        background: #ffffff !important;
        color: #0f172a !important;
    }

    body.tax-report-print-mode #tax-report-modal-root,
    body.tax-report-print-mode #tax-report-modal-root * {
        visibility: visible !important;
    }

    body.tax-report-print-mode .tax-report-modal {
        position: static !important;
        display: block !important;
        width: 210mm !important;
        height: auto !important;
        color: #0f172a !important;
    }

    body.tax-report-print-mode .tax-report-backdrop,
    body.tax-report-print-mode .tax-report-topbar,
    body.tax-report-print-mode .tax-report-side-nav,
    body.tax-report-print-mode .tax-report-bottom-nav,
    body.tax-report-print-mode [data-tax-print-hide] {
        display: none !important;
    }

    body.tax-report-print-mode .tax-report-dialog,
    body.tax-report-print-mode .tax-report-body,
    body.tax-report-print-mode .tax-report-stage,
    body.tax-report-print-mode .tax-report-canvas {
        position: static !important;
        display: block !important;
        inset: auto !important;
        width: 210mm !important;
        max-width: 210mm !important;
        height: auto !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    body.tax-report-print-mode .tax-report-page {
        display: flex !important;
        flex-direction: column !important;
        width: 210mm !important;
        height: 297mm !important;
        min-height: 297mm !important;
        max-height: 297mm !important;
        padding: 15mm !important;
        box-sizing: border-box !important;
        page-break-after: always !important;
        break-after: page !important;
        overflow: hidden !important;
        background: #ffffff !important;
        color: #0f172a !important;
    }

    body.tax-report-print-mode .tax-report-header {
        flex: 0 0 auto !important;
        margin-bottom: 8mm !important;
        padding-bottom: 4mm !important;
    }

    body.tax-report-print-mode .tax-report-risk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 4mm 7mm !important;
    }

    body.tax-report-print-mode .tax-report-metrics,
    body.tax-report-print-mode .tax-report-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.tax-report-print-mode .tax-report-tool-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }

    body.tax-report-print-mode .tax-report-tool-layout-stacked {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: minmax(0, 3fr) minmax(0, 7fr) !important;
    }

    body.tax-report-print-mode .tax-report-risk {
        padding-bottom: 3mm !important;
    }

    body.tax-report-print-mode .tax-report-risk-title {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    body.tax-report-print-mode .tax-report-risk-id {
        font-size: 24px !important;
    }

    body.tax-report-print-mode .tax-report-risk-desc {
        margin-left: 34px !important;
        margin-bottom: 2mm !important;
        font-size: 9.5px !important;
        line-height: 1.45 !important;
    }

    body.tax-report-print-mode .tax-report-risk-impact {
        margin-left: 34px !important;
        padding: 2.4mm !important;
        font-size: 8.8px !important;
        line-height: 1.35 !important;
    }

    body.tax-report-print-mode .tax-report-insight {
        margin-top: auto !important;
        padding: 4mm !important;
    }

    body.tax-report-print-mode .tax-report-card-stack {
        gap: 7mm !important;
    }

    body.tax-report-print-mode .tax-report-strategy {
        grid-template-columns: 16mm 1fr !important;
        gap: 6mm !important;
    }

    body.tax-report-print-mode .tax-report-step {
        width: 15mm !important;
        height: 15mm !important;
        font-size: 20px !important;
    }

    body.tax-report-print-mode .tax-report-card-title {
        font-size: 21px !important;
    }

    body.tax-report-print-mode .tax-report-copy {
        font-size: 13px !important;
        line-height: 1.62 !important;
    }

    body.tax-report-print-mode .tax-report-summary-card {
        padding: 5mm !important;
    }

    body.tax-report-print-mode .tax-report-summary-value {
        font-size: 32px !important;
    }

    body.tax-report-print-mode .tax-report-roadmap {
        gap: 3mm !important;
        margin-top: 4mm !important;
    }

    body.tax-report-print-mode .tax-report-roadmap-item {
        padding: 4mm !important;
    }

    body.tax-report-print-mode .tax-report-final-box {
        margin-top: 5mm !important;
        padding: 6mm !important;
    }

    body.tax-report-print-mode .tax-report-page:last-child {
        page-break-after: auto !important;
        break-after: auto !important;
    }
}
