/* Workspace theme inspired by the supplied accounting interface. */
:root {
    --ink: #092455;
    --muted: #4a6085;
    --green: #0066df;
    --green-dark: #074ea8;
    --mint: #eff2ff;
    --paper: #f7f9ff;
    --line: #c4d0ff;
    --soft: #edf2ff;
    --radius: 14px;
    --body: "Segoe UI", Arial, sans-serif;
    --display: "Segoe UI", Arial, sans-serif;
    --sidebar-width: 254px;
    --violet: #6731d5;
}
body { font-size: 14px; background: var(--paper); }
h1, h2 { letter-spacing: -.7px; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.workspace-sidebar svg, .heading-icon, .year-badge svg, .stat-icon svg {
    width: 22px; height: 22px; fill: none; stroke: currentColor;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.workspace-sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 10;
    display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
    padding: 27px 12px 22px; color: #f4f7ff;
    background: linear-gradient(155deg, #103f78 0%, #0c2c55 56%, #09205a 100%);
    box-shadow: 3px 0 12px #173f7415;
}
.workspace-sidebar::before {
    content: ""; position: absolute; width: 240px; height: 440px; right: -206px;
    bottom: -140px; border-radius: 50%; transform: rotate(22deg);
    background: #6158b4; box-shadow: -22px 0 0 #494990, -44px 0 0 #294a80;
    pointer-events: none;
}
.workspace-brand {
    display: flex; align-items: center; gap: 11px; margin: 0 7px 26px;
    color: white; text-decoration: none; font-weight: 700; font-size: 19px;
    line-height: 1.25; letter-spacing: -.5px; position: relative;
}
.workspace-brand small { display: block; margin-top: 6px; color: #b7cceb; font-size: 10px; font-weight: 400; letter-spacing: 0; }
.workspace-logo {
    width: 48px; height: 54px; display: grid; place-items: center;
    background: linear-gradient(140deg, #0870f2, #082785); border-radius: 15px;
    border: 1px solid #367ed76b; box-shadow: 0 5px 12px #051d4c30;
}
.workspace-logo svg { width: 29px; height: 34px; stroke-width: 1.8; }
.sidebar-navigation { position: relative; }
.sidebar-navigation>summary {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 8px; margin-bottom: 13px; list-style: none;
    color: #bfd1ee; font-size: 11px;
}
.sidebar-navigation>summary span {
    display: grid; place-items: center; width: 29px; height: 29px;
    background: #1361a7; border: 1px solid #4188c7; color: white; border-radius: 8px; font-size: 17px;
}
.sidebar-label { color: #b1c7e9; font-size: 10px; font-weight: 650; margin: 0 8px 10px; letter-spacing: .5px; }
.workspace-nav { display: grid; gap: 8px; }
.workspace-nav a {
    display: flex; align-items: center; gap: 11px; min-height: 41px;
    padding: 10px 13px; border: 1px solid #386a9d; border-radius: 10px;
    color: #edf3ff; text-decoration: none; font-size: 12px; font-weight: 600;
    line-height: 1.35; background: #ffffff04;
}
.workspace-nav a:hover { background: #ffffff14; border-color: #8cb1df; }
.workspace-nav a[aria-current="page"] {
    background: linear-gradient(105deg, #5540eb, #7a41d7);
    border-color: #a77af3; box-shadow: inset 0 0 0 1px #c3a5ff38;
}
.workspace-nav a:focus-visible, .workspace-brand:focus-visible, .sidebar-navigation>summary:focus-visible { outline-color: #f3cc67; }
.sidebar-divider { border-top: 1px solid #476a956b; padding-top: 21px; margin-top: 26px; }
.amount-nav a { min-height: 36px; padding-block: 8px; font-weight: 500; border-color: #3e628973; }
.sidebar-euro { width: 22px; text-align: center; color: #c6d6f3; font-size: 17px; }
.secondary-nav a { border-style: dashed; background: #ffffff05; }
.sidebar-footer { margin-top: auto; padding: 38px 8px 0; font-size: 10px; color: #d0ddf4; position: relative; }
.sidebar-footer p { font-size: 9px; color: #b4c5e7; margin-top: 7px; }
.sidebar-status { display: inline-block; width: 6px; height: 6px; background: #50d5aa; border-radius: 50%; margin-right: 5px; }
.workspace-main { margin-left: var(--sidebar-width); min-width: 0; }
.container { width: min(1240px, calc(100% - 64px)); }
.site-header {
    position: relative; overflow: hidden; border-bottom: 1px solid #ced6ff;
    background: linear-gradient(105deg, #eff4ff, #dce7ff 72%, #d1d4ff);
}
.site-header::after {
    content: ""; position: absolute; right: -20px; bottom: -1px;
    width: 58%; height: 65px; background: #a395f4;
    clip-path: polygon(0 100%, 45% 80%, 70% 48%, 100% 7%, 100% 100%);
    box-shadow: 0 -15px 0 #c3bdff; opacity: .65; pointer-events: none;
}
.header-inner { height: auto; min-height: 100px; padding-block: 21px; gap: 25px; position: relative; z-index: 1; }
.workspace-heading { display: flex; gap: 18px; align-items: center; min-width: 0; }
.heading-icon { width: 35px; height: 42px; color: #4325bb; stroke-width: 1.6; }
.workspace-heading h1, .workspace-title { font-size: 26px; font-weight: 750; line-height: 1.2; letter-spacing: -.8px; }
.workspace-subtitle { color: #183a77; font-size: 12px; margin-top: 5px; }
.year-badge { background: #ffffffec; border-color: #a8b9ff; border-radius: 11px; padding: 11px 14px; color: #09276a; font-size: 10px; gap: 10px; box-shadow: 0 3px 8px #6376c91c; }
.year-badge>span { width: auto; height: auto; border-radius: 0; background: none; }
.year-badge svg { width: 17px; height: 17px; }
.year-badge small { font-size: 9px; }
.dashboard-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-block: 28px 22px; }
.salary-stat { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 12px; min-width: 0; box-shadow: 0 2px 5px #193e7810; }
.stat-gross { background: linear-gradient(105deg, #e2edff, #d2e2ff); }
.stat-net { background: linear-gradient(105deg, #e3f7f2, #d7eff4); }
.stat-contributions { background: linear-gradient(105deg, #f0eaff, #e6deff); }
.stat-icon { display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; border-radius: 50%; color: #0068e2; background: #f8fbff; box-shadow: 0 2px 4px #3964a224; }
.stat-net .stat-icon { color: #008547; background: #f4fffa; }
.stat-contributions .stat-icon { color: #7440ed; background: #faf7ff; }
.stat-icon svg { width: 18px; height: 18px; }
.salary-stat h2 { font-size: 11px; font-weight: 650; letter-spacing: 0; }
.salary-stat p { font-size: clamp(18px, 1.6vw, 24px); font-weight: 750; line-height: 1.3; margin-top: 3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.salary-stat small { display: block; font-size: 9px; color: #405e86; margin-top: 3px; line-height: 1.5; }
.dashboard-breadcrumb { margin-top: 18px; margin-bottom: -10px; }
.calculator-shell { border-color: #b8c6ff; border-radius: 14px; background: #fff; box-shadow: 0 3px 10px #344a9910; }
.calculator-form { padding: 25px 28px 22px; }
.panel-heading { margin-bottom: 18px; flex-direction: row; align-items: center; }
.panel-heading h2 { font-size: 21px; letter-spacing: -.7px; }
.panel-heading .small-tag { color: #294a86; font-size: 10px; }
.segmented { background: #eff3ff; border-color: #bdccff; padding: 3px; border-radius: 7px; }
.segmented input:checked+span { background: #0964d7; color: #fff; box-shadow: 0 2px 4px #154db82b; }
.direction-switch label:last-child input:checked+span { background: #6731d5; }
.segmented label>span { font-size: 12px; color: #20427b; padding-block: 8px; border-radius: 5px; }
.amount-field { margin-top: 18px; }
.amount-field>label, .period-field legend, .select-grid label { color: #142f67; font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.amount-input { border-color: #aebfff; border-radius: 8px; box-shadow: 0 2px 4px #4a60ae0c; }
.amount-input:focus-within { border-color: #3974df; outline-color: #2b6de91f; }
.amount-input input { color: var(--ink); font-size: 31px; padding: 10px 15px; }
.amount-input>span { color: #496da5; }
.field-hint { color: #546b91; }
.period-field { margin-top: 16px; }
.period-switch { background: transparent; border: 0; padding: 0; gap: 8px; }
.period-switch label>span { border: 1px solid #bfccff; background: white; color: #113577; border-radius: 6px; }
.period-switch input:checked+span { background: #fff0d5; border-color: #f7aa24; color: #804800; box-shadow: none; }
.select-grid { margin-top: 17px; }
.select-grid select { border-color: #b3c4ff; color: #123572; box-shadow: 0 2px 4px #4a60ae0b; border-radius: 7px; padding-block: 8px; min-height: 40px; }
.calculate-button { background: #0067e2; border-color: #0067e2; border-radius: 7px; box-shadow: 0 3px 7px #075dcc24; margin-top: 21px; min-height: 44px; font-size: 12px; }
.calculate-button:hover { background: #0054bd; }
.form-scope { color: #526a94; }
.result-panel { position: relative; isolation: isolate; padding: 26px 30px 0; background: #f5f5ff; border-color: #d2d5ff; }
.result-panel::after {
    content: ""; position: absolute; z-index: -1; bottom: 0; right: 0;
    width: 70%; height: 65px; background: #c9c0ff;
    clip-path: polygon(0 100%, 50% 75%, 75% 26%, 100% 0, 100% 100%);
    opacity: .45; pointer-events: none;
}
.result-topline { margin-bottom: 25px; }
.result-indicator { color: #42229f; }
.result-indicator>span { background: #7242e5; }
.indicative-tag { border-color: #e7be73; background: #fff2d9; color: #805010; }
.result-panel h2 { color: #263b73; font-size: 14px; }
.main-result output { color: #102b68; font-size: clamp(33px, 3.3vw, 47px); letter-spacing: -1.6px; }
.main-result>span, .before-tax { color: #4f648c; }
.salary-bar { height: 10px; background: #d6c9ff; margin-top: 25px; }
.salary-bar>span { background: #0068e2; }
.bar-legend { color: #425980; }
.net-dot { background: #0068e2; }
.deduction-dot { background: #9366ec; }
.result-equation { margin-top: 20px; }
.result-equation dt { color: #3f567f; }
.result-equation dd { color: #143771; }
.result-equation .equation-total { border-color: #c7cff9; }
.equation-total dt, .equation-total dd { color: #007d3b; }
.result-disclaimer { color: #4c6289; }
.result-bottom { color: #4e4c87; padding-block: 14px; }
.result-bottom>span { color: #6731d5; }
.trust-strip { padding-top: 13px; font-size: 10px; color: #4a628a; }
.details-section { margin-top: 28px; padding: 20px 16px 17px; border: 1px solid #b8c5ff; border-radius: 14px; background: #ffffff8c; box-shadow: 0 3px 8px #4058ae0b; }
.section-heading { margin-bottom: 17px; }
.section-heading h2 { font-size: 25px; letter-spacing: -.8px; }
.section-intro { color: #6047b5; font-size: 10px; margin-bottom: 5px; }
.section-heading>p { color: #34568e; font-size: 10px; }
.table-scroll { border-color: #bac9ff; border-radius: 11px; box-shadow: 0 2px 5px #5365bb0a; }
.summary-table thead th { background: #075cc9; color: white; border-right: 1px solid #ffffff26; border-bottom: 0; font-weight: 600; padding-block: 12px; }
.summary-table thead th:first-child { background: #0870e7; }
th, td { padding: 11px 18px; font-size: 12px; }
tbody th { font-weight: 600; }
tbody tr { background: #f7f9ff; }
tbody tr:nth-child(even) { background: #e7eeff; }
tbody tr+tr th, tbody tr+tr td { border-color: #e0e7ff; }
tbody td+td, tbody th+td { border-left: 1px solid #e0e7ff; }
tbody tr.net-row { background: #e7f6ed; }
.net-row td, .net-row th { color: #007b32; }
.contributions-details { border-color: #ced8ff; margin-top: 18px; }
.contributions-details>summary { color: #21437c; padding-block: 13px; }
.contributions-table thead th { background: #6029cd; color: white; border-right: 1px solid #ffffff20; }
.contributions-table thead th:first-child { background: #7136e6; }
.contributions-table caption { color: #3c5688; background: white; }
.contributions-table td:last-child { color: #6530ba; font-weight: 650; }
.popular-section { margin-top: 30px; }
.amount-links { border-color: #bfcdff; background: white; border: 1px solid #bfcdff; border-radius: 10px; overflow: hidden; }
.amount-links>a, .amount-links>a+a { padding: 17px 18px; border-color: #d7dfff; }
.amount-links>a>span:first-child { font-size: 22px; }
.amount-links small { font-size: 10px; }
.amount-arrow { border-color: #bdccff; color: #6936d4; }
.amount-links>a:hover .amount-arrow, .amount-links>a[aria-current] .amount-arrow { background: #6936d4; border-color: #6936d4; }
.learning-section { margin-top: 30px; padding: 29px; gap: 45px; border-color: #c7c9ff; background: #f0efff; }
.outline-icon { border-color: #7855cc; color: #6731d5; }
.learning-section h2, .faq-section :is(h2, h4) { font-size: 27px; }
.learning-intro p, .limits-content p, .limits-content li { color: #4b5c84; }
.limits-content .limits-note { border-color: #c8c9ef; }
.faq-section { gap: 45px; margin-top: 38px; }
.faq-illustration { display: block; width: min(100%, 360px); height: auto; margin-top: 24px; border-radius: 10px; opacity: .65; }
@media (max-width: 740px) {
    .faq-illustration { width: min(100%, 280px); margin-top: 18px; }
}
.faq-list, .faq-list details { border-color: #c8d3ff; }
.faq-list summary::after { color: #6731d5; }
.editorial-section { margin-top: 28px; border-color: #ccd6ff; }
.editorial-label { color: #6731d5; }
.editorial-tip { border-color: #7646da; background: #f0ebff; }
.editorial-tip strong { color: #5630a5; }
.source-line { margin-block: 30px 24px; }
.site-footer { border-color: #d3dcff; padding-block: 22px; }
.footer-inner { flex-wrap: wrap; gap: 20px; }
.footer-links { gap: 18px; }
.footer-note { margin-left: auto; }
.methodology { max-width: 1040px; padding-top: 30px; }
.methodology h1 { font-size: 36px; }
.methodology .article-lead { font-size: 17px !important; }
@media (min-width: 1600px) {
    :root { --sidebar-width: 265px; }
    .container { width: min(1240px, calc(100% - 100px)); }
    .header-inner { min-height: 100px; }
    .dashboard-overview { padding-top: 28px; }
}
@media (max-width: 1150px) {
    :root { --sidebar-width: 228px; }
    .container { width: calc(100% - 40px); }
    .workspace-sidebar { padding-inline: 10px; }
    .workspace-brand { font-size: 17px; gap: 9px; }
    .workspace-nav a { font-size: 11px; padding-inline: 10px; gap: 8px; }
    .workspace-heading { gap: 12px; }
    .workspace-heading h1, .workspace-title { font-size: 23px; }
    .workspace-subtitle { font-size: 10px; }
    .heading-icon { width: 29px; height: 35px; }
    .year-badge { padding: 9px 11px; }
    .year-badge small { display: none; }
    .salary-stat { padding: 13px 12px; gap: 8px; }
    .salary-stat h2 { font-size: 10px; }
    .salary-stat small { font-size: 8px; }
    .stat-icon { width: 29px; height: 29px; }
    .calculator-form { padding: 23px; }
    .result-panel { padding: 24px 23px 0; }
    .panel-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .main-result output { font-size: 35px; }
    .main-result>span { font-size: 14px; }
    .bar-legend { font-size: 9px; }
    .learning-section { gap: 25px; padding: 25px; }
    .amount-links>a, .amount-links>a+a { padding-inline: 13px; }
}
@media (max-width: 900px) and (min-width: 741px) {
    .calculator-shell { grid-template-columns: 1fr; }
    .result-panel { border-left: 0; border-top: 1px solid #d2d5ff; padding-bottom: 3px; }
    .result-bottom { margin-top: 12px; }
    .panel-heading { flex-direction: row; align-items: center; }
    .dashboard-overview { gap: 8px; }
    .salary-stat { flex-direction: column; align-items: flex-start; gap: 7px; }
    .salary-stat p { font-size: 19px; }
    .salary-stat small { font-size: 9px; }
    .workspace-subtitle { max-width: 240px; }
    .year-badge { font-size: 9px; }
    .year-badge svg { display: none; }
    .learning-section, .faq-section { grid-template-columns: 1fr; gap: 23px; }
    .amount-links { grid-template-columns: 1fr 1fr; }
    .amount-links>a:nth-child(3) { border-left: 0; }
    .amount-links>a:nth-child(n+3) { border-top: 1px solid #d7dfff; }
}
@media (max-width: 740px) {
    .workspace-sidebar { position: relative; inset: auto; width: 100%; padding: 14px 18px; overflow: hidden; }
    .workspace-sidebar::before { height: 280px; bottom: -190px; right: -150px; }
    .workspace-brand { margin: 0; font-size: 18px; width: fit-content; }
    .workspace-logo { width: 37px; height: 40px; border-radius: 10px; }
    .workspace-logo svg { width: 23px; height: 28px; }
    .workspace-brand small { font-size: 9px; margin-top: 4px; }
    .sidebar-navigation { margin-top: -37px; }
    .sidebar-navigation>summary { min-height: 37px; width: fit-content; margin: 0 0 0 auto; gap: 9px; padding: 0; font-size: 10px; }
    .sidebar-content { padding-top: 23px; }
    .workspace-nav { grid-template-columns: 1fr 1fr; gap: 7px; }
    .workspace-nav a { font-size: 11px; min-height: 38px; }
    .sidebar-label { margin-bottom: 9px; }
    .sidebar-divider { padding-top: 14px; margin-top: 15px; }
    .sidebar-footer { display: none; }
    .workspace-main { margin-left: 0; }
    .container { width: calc(100% - 30px); }
    .header-inner { min-height: 100px; padding-block: 17px; align-items: flex-start; flex-direction: column; gap: 13px; }
    .workspace-heading { gap: 11px; align-items: center; }
    .workspace-heading h1, .workspace-title { font-size: 23px; letter-spacing: -.6px; }
    .heading-icon { width: 27px; height: 34px; }
    .workspace-subtitle { font-size: 10px; line-height: 1.5; }
    .year-badge { font-size: 9px; padding: 6px 9px; margin-left: 38px; border-radius: 6px; }
    .year-badge svg { height: 13px; width: 13px; }
    .dashboard-overview { gap: 8px; padding-top: 18px; padding-bottom: 17px; grid-template-columns: 1fr 1fr; }
    .salary-stat { align-items: flex-start; padding: 12px; gap: 8px; }
    .salary-stat h2 { font-size: 10px; }
    .salary-stat p { font-size: 20px; }
    .salary-stat small { font-size: 8px; }
    .stat-icon { width: 25px; height: 25px; }
    .stat-icon svg { width: 15px; height: 15px; }
    .stat-contributions { grid-column: 1 / -1; }
    .stat-contributions>div { flex: 1; display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; }
    .stat-contributions h2 { grid-column: 1; }
    .stat-contributions small { grid-column: 1; grid-row: 2; }
    .stat-contributions p { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 19px; }
    .calculator-form { padding: 21px; }
    .panel-heading { flex-direction: row; align-items: center; }
    .panel-heading h2 { font-size: 20px; }
    .panel-heading .small-tag { font-size: 9px; }
    .result-panel { padding: 23px 22px 0; }
    .main-result output { font-size: 41px; }
    .result-topline { margin-bottom: 21px; }
    .bar-legend { font-size: 9px; }
    .trust-strip { gap: 7px 15px; font-size: 9px; }
    .details-section { margin-top: 23px; padding: 17px 12px 13px; }
    .section-heading h2 { font-size: 23px; }
    .summary-table td { min-width: 104px; }
    .summary-table th:first-child { min-width: 155px; }
    th, td { padding: 11px 14px; }
    .learning-section { padding: 23px; margin-top: 26px; }
    .learning-section h2, .faq-section :is(h2, h4) { font-size: 25px; }
    .popular-section { margin-top: 26px; }
    .amount-links>a, .amount-links>a+a { padding: 16px 14px; }
    .amount-links>a:nth-child(3) { padding-left: 14px; }
    .amount-links small { font-size: 9px; }
    .amount-links>a>span:first-child { font-size: 22px; }
    .faq-section { margin-top: 30px; gap: 20px; }
    .source-line { font-size: 9px; }
    .methodology { padding-top: 24px; }
    .methodology h1 { font-size: 32px; }
    .methodology .article-lead { font-size: 15px !important; }
    .footer-inner { gap: 15px; }
}
@media (max-width: 370px) {
    .workspace-heading h1, .workspace-title { font-size: 21px; }
    .container { width: calc(100% - 24px); }
    .salary-stat { gap: 6px; padding: 11px 9px; }
    .salary-stat p { font-size: 18px; }
    .salary-stat .stat-icon { display: none; }
    .stat-contributions p { font-size: 18px; }
    .workspace-nav a { font-size: 10px; gap: 6px; }
    .workspace-nav svg { width: 18px; }
    .panel-heading .small-tag { font-size: 8px; }
    .main-result output { font-size: 37px; }
}
@media (min-width: 1400px) {
    .workspace-main .container {
        width: calc(100% - 400px);
        max-width: none;
        margin-inline: 200px;
    }
}
.amount-input>span { font-size: 15px; }
.health-options { margin-top: 16px; }
.health-toggle { display: inline-flex; align-items: center; gap: 10px; list-style: none; padding: 7px 11px; border: 1px solid #b9c8ed; border-radius: 6px; background: white; color: #385781; font-size: 11px; cursor: pointer; }
.health-toggle::after { content: "+"; font-size: 16px; line-height: 1; }
.health-options[open]>.health-toggle::after { content: "−"; }
.health-toggle:hover { background: #edf2ff; }
.health-fields { margin-top: 13px; }
.health-fields legend span { float: right; font-size: 10px; font-weight: 400; color: var(--muted); }
.health-grid { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.health-grid>div { min-width: 0; }
.health-grid label { display: block; font-size: 11px; margin-bottom: 6px; }
.health-grid input { width: 100%; min-height: 40px; border: 1px solid #b3c4ff; border-radius: 7px; padding: 8px 10px; color: var(--ink); background: white; font-size: 13px; }
.health-grid input::placeholder { color: #667594; font-size: 11px; }
.health-grid input[aria-invalid="true"] { border-color: var(--error); }
.health-fields .field-hint { line-height: 1.7; }
.main-result output { font-size: clamp(28px, 2.7vw, 43px); }
.salary-stat p { font-size: clamp(16px, 1.45vw, 22px); }
@media (max-width: 740px) {
    .main-result output { font-size: clamp(28px, 8vw, 37px); }
    .salary-stat { gap: 7px; }
    .salary-stat p, .stat-contributions p { font-size: 17px; }
    .salary-stat .stat-icon { display: none; }
}

/* Horizontal navigation and compact calculator. */
.workspace-main { margin-left: 0; }
.workspace-home { display: inline-flex; flex-shrink: 0; text-decoration: none; }
.header-wordmark { display: block; width: min(260px, 20vw); height: 48px; object-fit: cover; object-position: center; flex: 0 1 260px; min-width: 160px; }
@media (max-width: 1100px) { .header-wordmark { display: none; } }
.site-logo { display: block; width: 44px; height: 44px; object-fit: contain; }
.footer-brand { display: inline-flex; align-items: center; }
.footer-logo { display: block; width: 28px; height: 28px; object-fit: contain; margin-right: 8px; }
.header-inner { min-height: 68px; padding-block: 12px; }
.heading-icon { width: 29px; height: 35px; }
.workspace-heading h1, .workspace-title { font-size: 24px; }
.workspace-subtitle { font-size: 11px; margin-top: 3px; }
.year-badge { padding: 8px 11px; }
.dashboard-breadcrumb { margin-block: 9px 0; font-size: 10px; line-height: 1.4; }
.dashboard-overview { padding-block: 12px 11px; }
.salary-stat { padding: 8px 14px; gap: 10px; }
.salary-stat h2 { font-size: 10px; }
.salary-stat p { font-size: 20px; line-height: 1.2; margin-top: 2px; }
.salary-stat small { font-size: 8px; line-height: 1.3; margin-top: 2px; }
.stat-icon { width: 30px; height: 30px; }
.top-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 12px; }
.top-filters a { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 10px; border: 1px solid #bdcaff; border-radius: 6px; background: transparent; color: #173e83; text-decoration: none; font-size: 11px; line-height: 1.4; box-shadow: none; }
.top-filters a:hover { background: transparent; border-color: #eea72d; }
.top-filters a[aria-current="page"] { background: #ff9800; color: #492900; border-color: #e88a00; font-weight: 600; }
.top-filters .amount-filter[aria-current="page"] { background: #fff0d7; border-color: #eea72d; color: #805000; }
.filter-separator { height: 20px; width: 1px; background: #cbd5f5; margin-inline: 2px; }
.methodology + .top-filters, main>.top-filters:first-child { padding-top: 15px; }
.calculate-button, .health-toggle, .segmented label>span { font-size: 11px; }
.select-grid select { font-size: 12px; }
.amount-links small { font-size: 9px; }
@media (min-width: 900px) {
    .calculator-shell { grid-template-columns: 1fr 1fr; }
    .calculator-form { padding: 17px 24px 14px; }
    .panel-heading { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 10px; }
    .panel-heading h2 { font-size: 20px; }
    .segmented label>span { padding-block: 5px; }
    .direction-switch label>span>span { font-size: 13px; }
    .amount-field { margin-top: 12px; }
    .amount-field>label, .period-field legend, .select-grid label { font-size: 11px; line-height: 1.4; margin-bottom: 5px; }
    .amount-input input { font-size: 28px; padding: 8px 14px; }
    .amount-input>span { font-size: 13px; }
    .field-hint { font-size: 10px; line-height: 1.4; margin-top: 4px; }
    .period-field, .select-grid { margin-top: 12px; }
    .period-switch label>span { padding-block: 6px; }
    .select-grid select { min-height: 34px; padding-block: 6px; }
    .health-options { margin-top: 10px; }
    .health-toggle { min-height: 28px; padding: 4px 9px; font-size: 10px; }
    .calculate-button { min-height: 36px; padding-block: 6px; margin-top: 12px; }
    .form-scope { font-size: 9px; margin-top: 8px; }
    .result-panel { border-left: 1px solid #d2d5ff; border-top: 0; padding: 20px 27px 0; }
    .result-topline { margin-bottom: 20px; }
    .result-panel h2 { font-size: 13px; }
    .main-result output { font-size: clamp(30px, 2.5vw, 42px); }
    .before-tax { font-size: 11px; margin-top: 6px; }
    .salary-bar { margin-top: 20px; }
    .result-equation { margin-top: 18px; }
    .result-equation>div { padding-block: 6px; }
    .result-disclaimer { margin-top: 12px; font-size: 10px; }
    .result-bottom { padding-block: 9px; font-size: 10px; }
    .trust-strip { padding-top: 9px; font-size: 9px; }
}
@media (min-width: 900px) and (max-height: 800px) {
    .header-inner { min-height: 58px; padding-block: 8px; }
    .workspace-heading h1, .workspace-title { font-size: 22px; }
    .workspace-subtitle { font-size: 10px; }
    .dashboard-overview { padding-block: 9px; }
    .salary-stat { padding-block: 7px; }
    .salary-stat small { display: none; }
    .top-filters { padding-bottom: 9px; gap: 5px; }
    .top-filters a { min-height: 28px; padding-block: 4px; font-size: 10px; }
    .calculator-form { padding: 13px 22px; }
    .panel-heading { margin-bottom: 8px; }
    .panel-heading h2 { font-size: 18px; }
    .amount-field, .period-field, .select-grid { margin-top: 10px; }
    .amount-input input { font-size: 26px; line-height: 1.2; padding-block: 6px; }
    .amount-field .field-hint { display: none; }
    .segmented label>span { padding-block: 4px; }
    .select-grid select { min-height: 32px; padding-block: 5px; }
    .calculate-button { margin-top: 10px; min-height: 32px; padding-block: 4px; }
    .form-scope, .result-bottom { display: none; }
    .result-panel { padding: 17px 25px; }
    .result-topline { margin-bottom: 17px; }
    .salary-bar { margin-top: 17px; }
    .result-equation { margin-top: 15px; }
    .result-disclaimer { margin-top: 10px; }
}
@media (max-width: 899px) {
    .header-inner { min-height: 68px; }
    .top-filters { gap: 6px; }
    .top-filters a { min-height: 32px; font-size: 10px; padding-inline: 9px; }
    .filter-separator { display: none; }
}
@media (max-width: 740px) {
    .header-inner { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; padding-block: 12px; }
    .workspace-heading h1, .workspace-title { font-size: 21px; }
    .year-badge { margin-left: 38px; }
    .dashboard-overview { padding-top: 11px; }
    .salary-stat p, .stat-contributions p { font-size: 17px; }
    .calculator-form { padding: 20px; }
    .calculate-button { font-size: 11px; }
    .top-filters a { flex-grow: 0; }
}

.top-filters a.salary-tool-filter { border-color: #2878ef; }
.top-filters a.severance-tool-filter { border-color: #8a5de2; }
.top-filters a.salary-tool-filter[aria-current="page"],
.top-filters a.severance-tool-filter[aria-current="page"] { border-color: #e88a00; }

.footer-legal-links { display: flex; flex-wrap: wrap; flex-basis: 100%; gap: 8px 20px; border-top: 1px solid #d7dff4; padding-top: 16px; font-size: 11px; }
.footer-legal-links a { color: #405d8e; text-decoration: none; }
.footer-legal-links a:hover, .footer-legal-links a[aria-current="page"] { color: #075fce; text-decoration: underline; }

/* Compact internal links: 20 columns on wide screens, fewer on touch screens. */
.amount-links.conversion-links { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 5px; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.amount-links.conversion-links > a { min-width: 0; min-height: 30px; display: flex; align-items: center; justify-content: center; padding: 5px 3px; border: 1px solid #bfcdff; border-radius: 6px; background: #fff; text-align: center; }
.amount-links.conversion-links > a > span:first-child { font-family: var(--body); font-size: 11px; font-weight: 650; letter-spacing: -.2px; line-height: 1.3; white-space: nowrap; }
.amount-links.conversion-links > a:hover { border-color: #7c9cf1; background: #edf2ff; }
.amount-links.conversion-links > a[aria-current="page"] { border-color: #075fce; background: #e9f1ff; color: #123572; }
@media (max-width: 1199px) {
    .amount-links.conversion-links { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; }
    .amount-links.conversion-links > a > span:first-child { font-size: 12px; }
}
@media (max-width: 740px) {
    .amount-links.conversion-links { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .amount-links.conversion-links > a { min-height: 44px; }
}
@media (max-width: 400px) {
    .amount-links.conversion-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.amount-input.is-locked { background: #e9edf3; border-color: #c1c8d3; box-shadow: none; }
.amount-input.is-locked input { color: #58657b; cursor: not-allowed; }
.amount-input.is-locked > span { color: #58657b; }
.direction-field:disabled .segmented, .period-field:disabled .segmented { opacity: .7; }
.direction-field:disabled label, .direction-field:disabled input,
.period-field:disabled label, .period-field:disabled input { cursor: not-allowed; }
.select-grid select:disabled { background: #e9edf3; color: #58657b; cursor: not-allowed; opacity: 1; }
.simulation-download { position: absolute; right: 12px; bottom: 8px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; padding: 5px; border: 1px solid #bcc9f1; border-radius: 5px; color: #2855a5; background: transparent; cursor: pointer; }
.simulation-download svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.simulation-download:hover { background: #e9efff; border-color: #6185df; }
.simulation-download:focus-visible { outline: 3px solid #2855a5; outline-offset: 3px; }
.simulation-download:disabled { opacity: .45; cursor: wait; }
.result-panel:has(.simulation-download) .result-disclaimer { padding-right: 30px; }
.simulation-download-status { min-height: 0; margin: 0; font-size: 11px; line-height: 1.5; color: #385781; text-align: right; }
.simulation-download-status:not(:empty) { padding-top: 7px; }
@media (max-width: 740px) { .simulation-download { width: 44px; height: 44px; right: 8px; bottom: 8px; } .result-panel:has(.simulation-download) .result-disclaimer { padding-right: 42px; } }

/* Separate the salary form and result while keeping their shared PDF capture. */
#simulation-capture {
    gap: 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
#simulation-capture > .calculator-form,
#simulation-capture > .result-panel {
    min-width: 0;
    border: 2px solid #728bd8;
    border-radius: 16px;
    overflow: hidden;
}
#simulation-capture > .calculator-form { background: #fff; }
.simulation-share { position: absolute; right: 53px; bottom: 8px; z-index: 3; }
.simulation-share>summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px; padding: 4px 8px; list-style: none; border: 1px solid #bcc9f1; border-radius: 5px; background: transparent; color: #2855a5; font-size: 11px; cursor: pointer; }
.simulation-share>summary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.simulation-share>summary:hover,.simulation-share[open]>summary { background: #e9efff; border-color: #6185df; }
.simulation-share>summary[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.simulation-share>summary:focus-visible,.simulation-share-menu :is(a,button):focus-visible { outline: 3px solid #2855a5; outline-offset: 2px; }
.simulation-share-menu { position: absolute; right: 0; bottom: calc(100% + 8px); display: grid; min-width: 160px; padding: 6px; border: 1px solid #bbc9ee; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px #16346824; }
.simulation-share:not([open]) .simulation-share-menu { display: none; }
.simulation-share-menu a,.simulation-share-menu button { display: block; width: 100%; padding: 8px 11px; border: 0; border-radius: 5px; background: transparent; color: #173e83; text-align: left; text-decoration: none; font: inherit; font-size: 12px; cursor: pointer; }
.simulation-share-menu :is(a,button):hover { background: #edf2ff; }
.simulation-share-menu button { border-top: 1px solid #dbe3f8; border-radius: 0; margin-top: 3px; }
#simulation-capture>.result-panel:has(.simulation-share) .result-disclaimer { padding-right: 130px; }
.simulation-share-status { margin: 0; color: #385781; text-align: right; font-size: 11px; }
.simulation-share-status:not(:empty) { padding-top: 7px; }
@media (max-width: 740px) {
    #simulation-capture { gap: 12px; }
    .simulation-share { right: 60px; }
    .simulation-share>summary { min-height: 44px; padding-inline: 10px; }
    #simulation-capture>.result-panel:has(.simulation-share) .result-disclaimer { padding-right: 0; padding-bottom: 44px; }
}
