 /* Prevent flash of unstyled/unpositioned content */
 body { opacity: 0; }
 body.js-ready { opacity: 1; transition: opacity 0.15s ease; }
#modalBackdropBlur {
 display: none;
 position: fixed;
 inset: 0;
 z-index: 9650;
 background: rgba(0,0,0,0.72);
 -webkit-backdrop-filter: blur(14px) saturate(75%);
 backdrop-filter: blur(14px) saturate(75%);
 pointer-events: none;
}
body.cookie-choice-open #modalBackdropBlur,
body.intro-visible #modalBackdropBlur,
body.result-info-visible #modalBackdropBlur {
 display: block;
}
:root {
 color-scheme: dark;
 --bg: #0f1115;
 --bg-elevated: #131722;
 --input-bg: #1a2030;
 --card: #171b22;
 --card-2: #1c2230;
 --text: #e5e7eb;
 --muted: #9ca3af;
 --border: #2a3240;
 --primary: #4da3ff;
 --primary-hover: #2f8cf0;
 --focus-border: rgba(126, 200, 255, 0.62);
 --focus-shadow: 0 0 0 2px rgba(126, 200, 255, 0.10);
 --toggle-active: #FFE4AA;
 --toggle-active-text: #1f2937;
 --accent: #12283d;
 --raise-accent: #c084fc;
 --raise-accent-text: #f3e8ff;
 --raise-accent-bg: rgba(192,132,252,0.13);
 --raise-accent-border: rgba(192,132,252,0.38);
 --good: #00FFA3;
 --good-bg: rgba(0, 255, 163, 0.10);
 --warn: #f59e0b;
 --warn-bg: rgba(245, 158, 11, 0.12);
 --danger-bg: rgba(239, 68, 68, 0.16);
 --danger-text: #FF8A8D;
 --shadow: 0 12px 30px rgba(0,0,0,0.35);
 --table-head: #1d2432;
 --table-row: #171b22;
 --table-row-alt: #141924;
 --chart-tax: #f87171;
 --chart-ni: #fb923c;
 --chart-pension: #7ec8ff;
 --chart-loan: #fbbf24;
 --chart-net: #34d399;
 --summary-title: #cbd5e1;
 --person-a: #7ec8ff;
 --person-a-text: #7ec8ff;
 --person-a-bg: #7ec8ff;
 --chart-ded: #e879f9;
  --chart-pretax: #a78bfa;
 --tooltip-bg: #0b1220;
 --tooltip-border: #2a3240;
 }
html.light-mode-pre body, body.light-mode {
  color-scheme: only light;
  --bg: #f5f9fc;
  --bg-elevated: #edf5fa;
  --input-bg: #ffffff;
  --card: #ffffff;
  --card-2: #f8fbfd;
  --text: #102033;
  --muted: #4a5f73;
  --border: #b8cedc;
 --primary: #0277bd;
 --primary-hover: #075985;
 --focus-border: rgba(2, 119, 189, 0.30);
 --focus-shadow: 0 0 0 2px rgba(2, 119, 189, 0.08);
 --toggle-active: #0277bd;
 --toggle-active-text: #ffffff;
 --accent: #d9f0ff;
 --raise-accent: #6d28d9;
 --raise-accent-text: #ffffff;
 --raise-accent-bg: #6d28d9;
 --raise-accent-border: #5b21b6;
  --good: #047857;
  --good-bg: rgba(4, 120, 87, 0.10);
  --warn: #a16207;
  --warn-bg: rgba(245, 158, 11, 0.14);
  --danger-bg: rgba(220, 38, 38, 0.11);
  --danger-text: #991b1b;
  --shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  --table-head: #e0eef7;
  --table-row: #ffffff;
  --table-row-alt: #f3f8fb;
  --chart-tax: #dc2626;
  --chart-ni: #f97316;
  --chart-pension: #0277bd;
  --chart-loan: #0891b2;
  --chart-net: #16a34a;
  --chart-ded: #c026d3;
  --chart-pretax: #7c3aed;
  --tooltip-bg: #ffffff;
  --tooltip-border: #9fc0d5;
 --summary-title: #24384d;
 --person-a: #0277bd;
 --person-a-text: #0277bd;
 --person-a-bg: #0277bd;
 }
html.light-mode-root,
html.light-mode-pre,
html.light-mode-pre body,
body.light-mode {
  background-color: #f5f9fc !important;
}

#advOptions select,
#taxRegionPanel select,
#taxCodeAcc select {
  text-align: center !important;
  text-align-last: center !important;
}

#advOptions select option,
#taxRegionPanel select option,
#taxCodeAcc select option {
  text-align: center;
  text-align-last: center;
}

.mi-select-menu {
  position: fixed;
  z-index: 12000;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  border: 1px solid rgba(126, 200, 255, 0.35);
  border-radius: 10px;
  background: var(--bg-elevated);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  padding: 6px;
  box-sizing: border-box;
}

.mi-select-menu button {
  width: 100%;
  min-height: clamp(38px, calc(31.379px + 2.069vw), 50px);
  padding: 8px 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: clamp(14px, calc(11.793px + 0.69vw), 18px);
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
}

.mi-select-menu button.is-selected {
  background: rgba(148, 163, 184, 0.18);
}

.mi-select-menu button:active,
.mi-select-menu button:hover {
  background: rgba(77, 163, 255, 0.16);
}
html.light-mode-root,
html.light-mode-pre,
body.light-mode,
body.light-mode *,
body.light-mode *::before,
body.light-mode *::after {
  color-scheme: only light;
}
body.light-mode {
  background: #f5f9fc !important;
}
html.light-mode-pre .card,
html.light-mode-pre .content,
body.light-mode .card,
body.light-mode .content {
  background: #f5f9fc !important;
}
 body.light-mode .header { background: #252b42; }
 body.light-mode .header-play-link { color: #ffffff; }
 body.light-mode .btn-primary { background: var(--primary); color: #ffffff; border: 1px solid rgba(2,119,189,0.34); box-shadow: 0 8px 18px rgba(2,119,189,0.14); }
 body.light-mode .btn-primary:hover { background: var(--primary-hover); }
 body.light-mode .btn-secondary { background: #eef5f9; color: #102033; border-color: #b7cfde; }
 body.light-mode .btn-secondary:hover { background: #e2f0f7; border-color: #8eb8d1; }
 body.light-mode .btn-danger { background: #fee2e2; color: var(--danger-text); border-color: #fecaca; }
 body.light-mode .btn-danger:hover { background: #fecaca; border-color: #fca5a5; }
 body.light-mode .btn-plus { background: var(--accent); color: var(--primary-hover); border-color: #38bdf8; }
 body.light-mode .btn-plus:hover { background: var(--toggle-active); border-color: var(--primary); }
 body.light-mode .input-group input, body.light-mode .mini-select, body.light-mode select { background: #ffffff; color: #102033; border-color: #b8cedc; }
 body.light-mode .input-prefix { background: #eef5f9; color: #27465d; border-color: #b8cedc; }
 body.light-mode .input-suffix-btn { background: #eef5f9; color: #4a5f73; border-color: #b8cedc; }
 body.light-mode .input-suffix-btn.active { background: var(--toggle-active); color: var(--toggle-active-text); border-color: #0277bd; }
 body.light-mode details.panel, body.light-mode details.adv-acc { border-color: #b8cedc; }
 body.light-mode .adv-switch-track { background: #aebfca; }
 body.light-mode .adv-switch input:checked ~ .adv-switch-track,
 body.light-mode .adv-switch input:checked + .adv-switch-track { background: var(--toggle-active); box-shadow: 0 4px 10px rgba(2,132,199,0.22), inset 0 0 0 1px #0277bd; }
 body.light-mode .adv-switch input:checked + .adv-switch-track::after { background: #ffffff; }
body.light-mode .form-section { background: #ffffff; border-color: #c4d7e4; }
body.light-mode .form-section > summary { color: #24384d; }
body.light-mode .form-section > summary .form-section-heading { color:#6b4f1d; text-shadow:0 1px 14px rgba(107,79,29,0.12); }
body.light-mode .form-section > summary .form-section-icon { color:#8a6a29; }
body.light-mode #job1Section > .form-section > summary .form-section-heading,
body.light-mode #j1BonusSection > summary .form-section-heading,
body.light-mode #j1PensionSection > summary .form-section-heading {
  color: #1f5f8b;
  text-shadow: none;
}
body.light-mode #job1Section > .form-section > summary .form-section-icon,
body.light-mode #j1BonusSection > summary .form-section-icon,
body.light-mode #j1PensionSection > summary .form-section-icon {
  color: #2b7bb1;
}
body.light-mode #job1Section > .form-section > summary .form-section-heading > span:not(.form-section-icon)::before,
body.light-mode #job1Section > .form-section > summary .form-section-heading > span:not(.form-section-icon)::after,
body.light-mode #j1BonusSection > summary .form-section-heading > span:not(.form-section-icon)::before,
body.light-mode #j1BonusSection > summary .form-section-heading > span:not(.form-section-icon)::after,
body.light-mode #j1PensionSection > summary .form-section-heading > span:not(.form-section-icon)::before,
body.light-mode #j1PensionSection > summary .form-section-heading > span:not(.form-section-icon)::after {
  background: linear-gradient(90deg, rgba(43,123,177,0), rgba(43,123,177,0.42));
}
body.light-mode #job1Section > .form-section > summary .form-section-heading > span:not(.form-section-icon)::after,
body.light-mode #j1BonusSection > summary .form-section-heading > span:not(.form-section-icon)::after,
body.light-mode #j1PensionSection > summary .form-section-heading > span:not(.form-section-icon)::after {
  background: linear-gradient(90deg, rgba(43,123,177,0.42), rgba(43,123,177,0));
}
 body.light-mode .metric { background: rgba(2,132,199,0.08); border-color: rgba(2,119,189,0.28); }
 body.light-mode .metric h3 { color: #24384d; }
 body.light-mode .metric .value { color: #102033; }
 body.light-mode .metric .sub { color: #526477; }
 body.light-mode .hint { color: #526477; }
 body.light-mode label { color: #24384d; }
 body.light-mode .side-field label { color: #24384d; }
 body.light-mode .panel { background: #ffffff; box-shadow: 0 10px 28px rgba(15,23,42,0.07); }
 body.light-mode .sidebar .panel,
 body.light-mode .sidebar-expand-toggle {
  box-shadow: none;
 }
 body.light-mode .raise-bar { background: #eef6fb; border-color: #b8cedc; }
 body.light-mode .raise-bar-label { color: #24384d; }
 body.light-mode .takehome-tools .raise-bar-label,
 body.light-mode .takehome-tools .target-toggle-btn {
  background: rgba(255,255,255,0.82);
  border-color: #a9d7f3;
  box-shadow: 0 6px 14px rgba(15,23,42,0.035);
 }
 body.light-mode .takehome-tools .target-toggle-btn:hover {
  background: rgba(255,255,255,0.95);
  border-color: #7dc4ed;
 }
 body.light-mode .takehome-tools .raise-toggle-btn:hover .raise-bar-label {
  background: rgba(255,255,255,0.82);
  border-color: #a9d7f3;
  color: #24384d;
  box-shadow: 0 6px 14px rgba(15,23,42,0.035);
 }
 body.light-mode .takehome-tools .raise-toggle-btn input:checked + .raise-bar-label,
 body.light-mode .takehome-tools .raise-toggle-btn:hover input:checked + .raise-bar-label {
  background: var(--raise-accent-bg);
  border-color: var(--raise-accent-border);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(109,40,217,0.22);
 }
 body.light-mode .raise-toggle-btn input:checked + .raise-bar-label { background: var(--raise-accent-bg); border-color: var(--raise-accent-border); color: #ffffff; box-shadow: 0 8px 18px rgba(109,40,217,0.22); }
 body.light-mode .raise-mode-toggle { background: #f4f9fc; border-color: #b8cedc; }
 body.light-mode .raise-mode-btn { background: transparent; color: #4a5f73; border-color: transparent; }
 body.light-mode .raise-mode-btn.active { background: var(--toggle-active); color: var(--toggle-active-text); box-shadow: 0 4px 10px rgba(2,132,199,0.18), inset 0 0 0 1px #0277bd; }
 body.light-mode .section-block summary { color: #102033; }
 body.light-mode .section-block { border-color: #b8cedc; }
 body.light-mode table th { background: var(--table-head); color: #24384d; }
 body.light-mode table td { color: #102033; border-color: #d4e3ed; }
 body.light-mode .job-tab { background: #eef5f9; color: #4a5f73; border-color: #b8cedc; }
 body.light-mode .job-tab.active { background: var(--toggle-active); color: var(--toggle-active-text); }
 body.light-mode .chev { border-color: #607487; }
body.light-mode .info-icon { background: rgba(39,70,93,0.05); color: rgba(39,70,93,0.72); border-color: rgba(39,70,93,0.18); }
body.light-mode .info-icon:hover, body.light-mode .info-icon:focus-visible { background: rgba(17,106,167,0.09); color: #123452; border-color: rgba(17,106,167,0.28); }
 body.light-mode .num-wrap input { background: #ffffff; color: #102033; border-color: #b8cedc; }
 body.light-mode .stepper { background: #f4f9fc; border-color: #b8cedc; }
 body.light-mode .step-btn { background: #f4f9fc; color: #27465d; border-color: #b8cedc; }
 body.light-mode .step-btn:active,
 body.light-mode .step-btn.is-pressing { background: #d7eefc; }
 body.light-mode .step-up::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%230277bd' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
 body.light-mode .step-down::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h14' stroke='%230277bd' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
 body.light-mode .sp-ctx { color: #24384d; }
 body.light-mode .brand-tagline { color: rgba(255,255,255,0.88) !important; }
/* === Simple / Expert Mode Toggle === */
.mode-toggle-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 14px 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mode-toggle-row .theme-toggle-btn {
  position: relative;
  transform: none;
  right: auto;
  top: auto;
  margin-right: auto;
}
.mode-toggle-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.mode-toggle-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
  gap: 0;
}
.mode-btn {
  padding: 4px 13px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}
.mode-btn.active {
  background: var(--toggle-active);
  color: var(--toggle-active-text);
}
body.light-mode .mode-toggle-wrap { border-color: var(--border); background: #f4f9fc; }
body.light-mode .mode-btn { color: var(--muted); }
body.light-mode .mode-btn.active { background: var(--toggle-active); color: var(--toggle-active-text); box-shadow: 0 4px 10px rgba(2,132,199,0.18), inset 0 0 0 1px #0277bd; }
body.light-mode .mode-toggle-label { color: var(--muted); }
body.light-mode .mode-toggle-row { border-color: var(--border); }
/* === Simple Mode — hidden elements === */
body.simple-mode .hours-label { display: none; }
body.simple-mode .second-job-inline { display: none !important; }
body.simple-mode #jobTabs { display: none !important; }
body.simple-mode #j1HoursField { display: none !important; }
body.simple-mode #proRataBtn { display: none !important; }
body.simple-mode #baseSalaryField .input-group input[type="number"] { border-radius: 0 10px 10px 0 !important; }
body.simple-mode #employerNIMetric { display: none !important; }
body.simple-mode #j1PensionSection { display: none !important; }
body.simple-mode #taxCodeAcc { display: none !important; }
body.simple-mode #advOptions { display: none !important; }
body.simple-mode #sickPayPanel,
body.simple-mode #redundancyPanel,
body.simple-mode #leavePayToggle,
body.simple-mode #redundancyToggle { display: none !important; }
 body.light-mode .hh-metric-a h4 { color: #0277bd; }
 body.light-mode .hh-metric-b h4 { color: #c2410c; }
 body.light-mode .hh-metric-total h4 { color: #047857; }
 body.light-mode .hh-metric-c h4 { color: #7c3aed; }
 body.light-mode .hh-metric-d h4 { color: #0f766e; }
 body.light-mode .hh-metric-e h4 { color: #be123c; }
 body.light-mode .hh-table thead th.th-a { color: #0277bd; }
 body.light-mode .hh-table thead th.th-b { color: #c2410c; }
 body.light-mode .hh-table thead th.th-c { color: #7c3aed; }
 body.light-mode .hh-table thead th.th-d { color: #0f766e; }
 body.light-mode .hh-table thead th.th-e { color: #be123c; }
 body.light-mode .card-a .hh-person-tag { color: #0277bd; }
 body.light-mode .card-b .hh-person-tag { color: #c2410c; }
 body.light-mode .hh-metric-a { background: rgba(2,132,199,0.09); border-color: rgba(2,119,189,0.26); }
 body.light-mode .hh-metric-b { background: rgba(194,65,12,0.07); border-color: rgba(194,65,12,0.25); }
 body.light-mode .hh-metric-total { background: rgba(4,120,87,0.08); border-color: rgba(4,120,87,0.25); }
 body.light-mode .hh-metric-c { background: rgba(124,58,237,0.07); border-color: rgba(124,58,237,0.25); }
 body.light-mode .hh-metric-d { background: rgba(15,118,110,0.07); border-color: rgba(15,118,110,0.25); }
 body.light-mode .hh-metric-e { background: rgba(190,18,60,0.07); border-color: rgba(190,18,60,0.25); }
 body.light-mode .hh-table tbody tr.row-takehome td { color: var(--text); }
 body.light-mode .hh-table .row-takehome td.td-a { color: #0277bd; }
 body.light-mode .hh-table .row-takehome td.td-b { color: #c2410c; }
 body.light-mode .hh-table td.td-a { color: #0277bd; }
 body.light-mode .hh-table td.td-b { color: #c2410c; }
 body.light-mode .hh-table td.td-c { color: #7c3aed; }
 body.light-mode .hh-table td.td-d { color: #0f766e; }
 body.light-mode .hh-table td.td-e { color: #be123c; }
 body.light-mode .jc-table td.td-a { color: #0277bd; }
 body.light-mode .jc-table td.td-b { color: #c2410c; }
 body.light-mode .jc-table .row-takehome td.td-a { color: #0277bd; }
 body.light-mode .jc-table .row-takehome td.td-b { color: #c2410c; }
#advOptions > .adv-acc,
#taxCodeAcc {
  background: #1a2540;
  border: 1px solid #2a3a5a;
  border-radius: 11px;
  margin: 0 10px 8px;
  overflow: hidden;
}
#taxCodeAcc {
  margin: 0 10px 8px;
}
body.light-mode #advOptions > .adv-acc,
body.light-mode #taxCodeAcc {
  background: #f8fbfd;
  border-color: #b8cedc;
}
 .second-job-label { color: rgba(255,255,255,0.5); }
 body.light-mode .second-job-label { color: #24384d; }
 .auth-btn {
  display: flex; align-items: center; gap: 6px;
  justify-content: center;
  padding: 0 14px; border-radius: 999px;
  width: 96px;
  height: 38px;
  min-height: 38px;
  position: absolute !important; top: 50% !important; transform: translateY(-50%) !important; right: 14px !important;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.9); font-size: 12px; font-weight: 600;
  cursor: pointer; flex-shrink: 0; white-space: nowrap;
  position: absolute; top: 10px; right: 52px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
 }
 .auth-btn:hover { background: rgba(255,255,255,0.20); }
 .auth-btn svg { width:16px; height:16px; flex-shrink:0; }
.header-play-link {
  width:38px; height:38px;
  position:absolute; top:50%; right:118px; transform:translateY(-50%);
  display:inline-flex; align-items:center; justify-content:center;
  color:#ffffff; opacity:0.92; border-radius:999px; text-decoration:none;
  border:1px solid rgba(255,255,255,0.35);
  background:rgba(255,255,255,0.10);
  box-shadow:0 8px 18px rgba(0,0,0,0.16);
  transition:background 0.18s ease,border-color 0.18s ease,opacity 0.18s ease,transform 0.18s ease;
 }
.header-play-link:hover { opacity:1; background:rgba(255,255,255,0.14); border-color:rgba(255,255,255,0.38); transform:translateY(-50%) scale(1.03); }
.header-play-link svg { width:18px; height:18px; fill:currentColor; stroke:none; }
.header-info-link {
  width:38px; height:38px;
  position:absolute; top:50%; right:164px; transform:translateY(-50%);
  display:inline-flex; align-items:center; justify-content:center;
  color:#ffffff; opacity:0.94; border-radius:999px;
  border:1px solid rgba(255,255,255,0.35);
  background:rgba(255,255,255,0.10);
  box-shadow:0 8px 18px rgba(0,0,0,0.14);
  cursor:pointer; padding:0;
  transition:background 0.18s ease,border-color 0.18s ease,opacity 0.18s ease,transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.header-info-link:hover { opacity:1; background:rgba(255,255,255,0.14); border-color:rgba(255,255,255,0.38); transform:translateY(-50%) scale(1.03); }
.header-info-link svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.3; stroke-linecap:round; stroke-linejoin:round; }
body.light-mode .header-info-link { color:#ffffff; }
 .theme-toggle-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; min-width: 38px; min-height: 38px; max-width: 38px; max-height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.10);
  cursor: pointer; flex-shrink: 0; padding: 0;
  color: rgba(255,255,255,0.48);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  position: absolute; top: 50%; transform: translateY(-50%); right: 210px;
 }
 .theme-toggle-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); }
 .theme-toggle-icon { display: none !important; }
 .theme-toggle-btn::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 1 4 10.47V17H8v-3.53A6 6 0 0 1 12 3z'/%3E%3Cpath d='M8 17h8M9 21h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 1 4 10.47V17H8v-3.53A6 6 0 0 1 12 3z'/%3E%3Cpath d='M8 17h8M9 21h6'/%3E%3C/svg%3E") center / contain no-repeat;
 }
 body.light-mode .theme-toggle-btn {
  background: #ffffff;
  border-color: #0284c7;
  color: #0277bd;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.14), 0 8px 18px rgba(2,119,189,0.18);
 }
 body.light-mode .theme-toggle-btn::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border-radius: 50%;
  background: rgba(2,132,199,0.12);
  opacity: 0.65;
  pointer-events: none;
 }
 * { box-sizing: border-box; }
 summary, button, [role="button"] { -webkit-tap-highlight-color: transparent; }
 body {
 margin: 0;
 background: var(--bg);
 color: var(--text);
 font-family: "Inter", system-ui, -apple-system, sans-serif;
 overflow-x: hidden;
 -webkit-user-select: none;
 user-select: none;
 -webkit-touch-callout: none;
 }
 input, textarea {
 -webkit-user-select: text;
 user-select: text;
 -webkit-touch-callout: default;
 }
 select, option, .mini-select {
 -webkit-user-select: none;
 user-select: none;
 -webkit-touch-callout: none;
 }
 button, input, select, textarea, canvas { font-family: "Inter", system-ui, -apple-system, sans-serif; }
 .container { width: 100%; margin: 0; padding: 0; }
 .card {
 background: var(--bg);
 border-radius: 0;
 box-shadow: none;
 overflow: visible;
 border: none;
 min-height: 100vh;
 }
.header {
 padding: 22px 24px 16px;
 background: #282e45;
 color: white;
 border-bottom: 1px solid rgba(255,255,255,0.08);
 display: flex; align-items: center; position: relative;
 transition: padding 0.2s ease, box-shadow 0.2s ease;
 }
 .header h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
 .header p { margin: 0; opacity: 0.95; line-height: 1.5; max-width: 1200px; }
 .content { padding: 18px 18px 28px; }
 html.mi-modal-scroll-lock-root,
 body.mi-modal-scroll-lock {
 overscroll-behavior: none;
 }
 body.mi-modal-scroll-lock .layout > .main,
 body.mi-modal-scroll-lock .layout > .sidebar,
 body.mi-modal-scroll-lock .mobile-view-body {
 overflow: hidden !important;
 }
 body.mi-modal-scroll-lock .result-info-overlay,
 body.mi-modal-scroll-lock #authOverlay,
 body.mi-modal-scroll-lock #feedbackOverlay,
 body.mi-modal-scroll-lock #saveProfileOverlay,
 body.mi-modal-scroll-lock #saveHouseholdOverlay,
 body.mi-modal-scroll-lock #overwriteProfileOverlay,
 body.mi-modal-scroll-lock #overwriteHouseholdOverlay,
 body.mi-modal-scroll-lock #deleteProfileOverlay,
 body.mi-modal-scroll-lock #deleteHouseholdOverlay,
 body.mi-modal-scroll-lock #resetConfirmOverlay,
 body.mi-modal-scroll-lock #resetAppConfirmOverlay,
 body.mi-modal-scroll-lock #introPanel,
 body.mi-modal-scroll-lock #cookieBanner.is-pwa-modal {
 overscroll-behavior: contain;
 }
 @media (max-width: 900px) {
 body.mi-modal-scroll-lock {
 position: fixed;
 top: var(--mi-modal-scroll-y, 0);
 left: 0;
 right: 0;
 width: 100%;
 overflow: hidden !important;
 touch-action: none;
 }
 body.mi-modal-scroll-lock .result-info-overlay,
 body.mi-modal-scroll-lock #authOverlay,
 body.mi-modal-scroll-lock #feedbackOverlay,
 body.mi-modal-scroll-lock #saveProfileOverlay,
 body.mi-modal-scroll-lock #saveHouseholdOverlay,
 body.mi-modal-scroll-lock #overwriteProfileOverlay,
 body.mi-modal-scroll-lock #overwriteHouseholdOverlay,
 body.mi-modal-scroll-lock #deleteProfileOverlay,
 body.mi-modal-scroll-lock #deleteHouseholdOverlay,
 body.mi-modal-scroll-lock #resetConfirmOverlay,
 body.mi-modal-scroll-lock #resetAppConfirmOverlay,
 body.mi-modal-scroll-lock #introPanel,
 body.mi-modal-scroll-lock #cookieBanner.is-pwa-modal {
 touch-action: auto;
 }
 }
 .layout {
 display: grid;
 grid-template-columns: minmax(260px, 360px) 1fr;
 gap: 18px;
 align-items: start;
 position: relative;
 }
 @media (min-width: 900.01px) and (max-width: 1024px) {
 .layout { grid-template-columns: clamp(310px, calc(88.7097vw - 488.3871px), 420px) 1fr; }
 }
@media (max-width: 900px) {
 .layout { grid-template-columns: 1fr; }
 .sidebar { order: 2; }
 .main { order: 1; min-width: 0; overflow: hidden; }
 .content { padding-left: 14px; padding-right: 14px; }
 }
 .sidebar {
 position: sticky;
 --sidebar-top: calc(var(--header-h, 80px) + 12px);
 top: var(--sidebar-top);
 align-self: start;
 max-height: calc(100vh - var(--sidebar-top) - 12px);
 overflow-y: auto;
 overflow-x: hidden;
 overscroll-behavior: contain;
 scrollbar-gutter: stable;
 scrollbar-width: none;
 scrollbar-color: rgba(126, 200, 255, 0.72) rgba(255, 255, 255, 0.08);
 direction: rtl;
 padding-left: 16px;
 }
 .sidebar > * {
 direction: ltr;
 }
 .sidebar-expand-toggle {
 display: none !important;
 width: 100%;
 min-height: 38px;
 align-items: center;
 justify-content: center;
 gap: 8px;
 margin: 0 0 10px;
 border: 1px solid var(--border);
 border-radius: 10px;
 background: var(--bg-elevated);
 color: var(--summary-title);
 font-size: 12px;
 font-weight: 800;
 text-transform: uppercase;
 letter-spacing: 0.04em;
 cursor: pointer;
 box-shadow: 0 8px 18px rgba(0,0,0,0.14);
 }
 .sidebar-expand-toggle:hover {
 border-color: rgba(126, 200, 255, 0.45);
 color: var(--text);
 background: rgba(255,255,255,0.06);
 }
 .sidebar-expand-toggle svg {
 width: 16px;
 height: 16px;
 flex: 0 0 16px;
 }
 .sidebar::-webkit-scrollbar {
 width: 0;
 }
 .sidebar::-webkit-scrollbar-track {
 background: transparent;
 border-radius: 999px;
 }
 .sidebar::-webkit-scrollbar-thumb {
 background: transparent;
 border: 3px solid transparent;
 border-radius: 999px;
 background-clip: content-box;
 }
 .sidebar:hover,
 .sidebar:focus-within {
 scrollbar-width: auto;
 }
 .sidebar:hover::-webkit-scrollbar,
 .sidebar:focus-within::-webkit-scrollbar {
 width: 14px;
 }
 .sidebar:hover::-webkit-scrollbar-track,
 .sidebar:focus-within::-webkit-scrollbar-track {
 background: rgba(255, 255, 255, 0.06);
 }
 .sidebar:hover::-webkit-scrollbar-thumb,
 .sidebar:focus-within::-webkit-scrollbar-thumb {
 background: linear-gradient(180deg, rgba(126, 200, 255, 0.86), rgba(77, 163, 255, 0.6));
 background-clip: content-box;
 }
 .sidebar::-webkit-scrollbar-thumb:hover {
 background: linear-gradient(180deg, rgba(155, 215, 255, 0.95), rgba(77, 163, 255, 0.72));
 background-clip: content-box;
 }
@media (min-width: 900.01px) {
 html,
 body {
 height: 100%;
 overflow: hidden;
 }
 .container,
 .card {
 height: 100vh;
 min-height: 100vh;
 }
 .card {
 display: flex;
 flex-direction: column;
 overflow: hidden;
 }
 .header {
 flex: 0 0 auto;
 }
 .content {
 flex: 1 1 auto;
 min-height: 0;
 overflow: hidden;
 padding-top: 0;
 background: var(--bg);
 }
 .layout {
 height: 100%;
 min-height: 0;
 align-items: stretch;
 padding-top: 0;
 background: var(--bg);
 }
 .layout > .sidebar {
 background: var(--bg);
 padding-top: 14px;
 }
 .layout > .main {
 min-height: 0;
 overflow-y: auto;
 overflow-x: hidden;
 overscroll-behavior: contain;
 padding-top: 14px;
 padding-right: 16px;
 padding-bottom: 0;
 scrollbar-gutter: stable;
 scrollbar-width: auto;
 scrollbar-color: #243047 rgba(26, 32, 48, 0.28);
 }
 .layout > .main::-webkit-scrollbar {
 width: 14px;
 }
 .layout > .main::-webkit-scrollbar-track {
 background: rgba(26, 32, 48, 0.28);
 border-radius: 999px;
 }
 .layout > .main::-webkit-scrollbar-thumb {
 background: #243047;
 border: 3px solid transparent;
 border-radius: 999px;
 background-clip: content-box;
 }
 .layout > .main::-webkit-scrollbar-thumb:hover {
 background: #2b3852;
 background-clip: content-box;
 }
 body.light-mode .layout > .main {
 scrollbar-color: #8eb8d1 rgba(216, 231, 240, 0.7);
 }
 body.light-mode .layout > .main::-webkit-scrollbar-track {
 background: rgba(216, 231, 240, 0.7);
 }
 body.light-mode .layout > .main::-webkit-scrollbar-thumb {
 background: #8eb8d1;
 background-clip: content-box;
 }
 body.light-mode .layout > .main::-webkit-scrollbar-thumb:hover {
 background: #5fa6cf;
 background-clip: content-box;
 }
 .main-back-top-btn {
 display: flex;
 position: fixed;
 right: auto;
 bottom: 22px;
 z-index: 80;
 width: 42px;
 height: 42px;
 align-items: center;
 justify-content: center;
 border: 1px solid rgba(116, 126, 139, 0.34);
 border-radius: 12px;
 background: rgba(23, 27, 34, 0.88);
 color: rgba(203, 213, 225, 0.86);
 box-shadow: 0 12px 28px rgba(0,0,0,0.28);
 backdrop-filter: blur(8px);
 cursor: pointer;
 opacity: 0;
 transform: translateY(8px);
 pointer-events: none;
 transition: opacity 0.14s ease, transform 0.14s ease, background 0.14s ease, color 0.14s ease;
 }
 .main-back-top-btn.visible {
 opacity: 1;
 transform: translateY(0);
 pointer-events: auto;
 }
 .main-back-top-btn:hover {
 background: rgba(38, 45, 56, 0.96);
 color: #fff;
 border-color: rgba(148, 157, 169, 0.52);
 }
 .main-back-top-btn svg {
 display: none;
 }
 .main-back-top-btn::before {
 content: "";
 width: 0;
 height: 0;
 border-left: 10px solid transparent;
 border-right: 10px solid transparent;
 border-bottom: 12px solid currentColor;
 transform: translateY(-2px);
 }
 .main-back-top-btn::after {
 content: "";
 width: 6px;
 height: 18px;
 border-radius: 999px;
 background: currentColor;
 position: absolute;
 top: 17px;
 }
 .layout > .sidebar {
 position: static;
 max-height: 100%;
 }
 }
 @media (max-width: 900px) { .sidebar { position: static; max-height: none; overflow-y: visible; overflow-x: visible; direction: ltr; padding-left: 0; } .layout > .main { padding-right: 0; padding-bottom: 0; scrollbar-width: auto; scrollbar-color: auto; } .main-back-top-btn, .sidebar-expand-toggle { display: none !important; } }
@media (min-width: 900.01px) {
  body.logged-in .auth-login-copy {
    display: none !important;
  }
}

.main #j1HoursField .working-hours-row .second-job-inline {
  width: max-content !important;
  min-width: 0 !important;
  max-width: max-content !important;
  flex: 0 0 auto !important;
}

.main #j1HoursField .working-hours-row .second-job-inline .second-job-label {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: 0 0 auto !important;
}

.main #j1HoursField .working-hours-row .second-job-inline label.adv-switch {
  display: inline-flex !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  flex: 0 0 40px !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main #j1HoursField .working-hours-row .second-job-inline label.adv-switch .adv-switch-track {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  flex: 0 0 40px !important;
}
body.auth-forgot-active .auth-login-copy {
  display: none !important;
}
.google-login-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.google-login-btn:hover {
  background: rgba(77,163,255,0.10);
  border-color: rgba(77,163,255,0.55);
}
.google-login-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.google-login-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
body:not(.light-mode) .google-login-btn {
  color: var(--text);
}
body.light-mode .google-login-btn {
  background: #f8fbfd;
  color: #24384d;
}
body.light-mode .google-login-btn:hover {
  background: #eef6fb;
  border-color: #8eb8d1;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}
.auth-login-primary {
  min-height: 46px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(77,163,255,0.22);
}
.auth-field {
  position: relative;
  margin-bottom: 14px;
}
.auth-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 42px 8px 12px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.auth-field input:focus {
  border-color: var(--focus-border);
}
.auth-field label {
  position: absolute;
  left: 12px;
  top: 13px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  transition: transform 0.14s ease, color 0.14s ease, font-size 0.14s ease;
}
.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label {
  transform: translateY(-8px);
  font-size: 10px;
  color: var(--focus-border);
}
.auth-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.auth-password-toggle:hover,
.auth-password-toggle[aria-pressed="true"] {
  color: var(--primary);
  background: rgba(77,163,255,0.10);
}
.auth-password-toggle svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}
.auth-form-link-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 12px;
}
.auth-form-link-row a,
.auth-switch-copy a,
.auth-support-menu a,
.auth-support-menu button {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.auth-switch-copy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
#authTabBar {
  display: none !important;
}
.auth-support-menu {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.auth-support-menu summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}
.auth-support-menu summary::-webkit-details-marker {
  display: none;
}
.auth-support-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 10px;
}
.auth-support-links a,
.auth-support-links button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.auth-support-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
 .panel {
 background: var(--card-2);
 border: 1px solid var(--border);
 border-radius: 14px;
 padding: 14px;
 box-shadow: var(--shadow);
 transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
 }
 .sidebar .panel:hover {
 background: color-mix(in srgb, var(--card-2) 92%, var(--primary) 8%);
 border-color: color-mix(in srgb, var(--border) 70%, var(--primary) 30%);
 }
body.light-mode .sidebar .panel:hover {
 background: #dceff8;
 border-color: #0277bd;
 outline: 1px solid var(--focus-border);
 outline-offset: -1px;
}
 body.light-mode .sidebar .panel:hover > summary,
 body.light-mode .sidebar .panel:hover > .adv-acc-summary,
 body.light-mode .sidebar .sidebar-expand-toggle:hover {
 background: #dceff8;
 border-radius: 13px;
 overflow: hidden;
 }
 body.light-mode .sidebar .panel[open]:hover > summary,
 body.light-mode .sidebar .panel[open]:hover > .adv-acc-summary {
 border-radius: 13px 13px 0 0;
 }
 body.light-mode .sidebar .panel:hover > :not(summary),
 body.light-mode .sidebar .adv-acc:hover > :not(summary) {
 background: #dceff8;
 }
 .panel + .panel { margin-top: 14px; }
 .side-field { margin-bottom: 10px; }
.side-field select, .side-field input { width: 100%; }
 .side-field:last-child { margin-bottom: 0; }
 .grid {
 display: grid;
 grid-template-columns: repeat(12, 1fr);
 gap: 16px;
 }
 .field { grid-column: span 6; }
 .field.third { display: flex; flex-direction: column; }
 .field.full { grid-column: 1 / -1; }
 @media (max-width: 900px) { .field, .field.third { grid-column: 1 / -1; } }
 label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--text); }
 .hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
input[type="number"], input[type="text"], select {
 width: 100%;
 padding: 12px 14px;
 border: 1px solid var(--border);
 border-radius: 10px;
 font-size: 15px;
 color: var(--text);
 background: var(--bg-elevated);
 outline: none;
  }
 input[type="number"] { text-align: center; }
 select,
 .mini-select { text-align: center; text-align-last: center; }
 input[type="number"], input[type="text"], input[type="email"], input[type="password"], textarea {
 background: var(--input-bg) !important;
 }
body:not(.light-mode) #authOverlay input[type="text"],
body:not(.light-mode) #authOverlay input[type="email"],
body:not(.light-mode) #authOverlay input[type="password"] {
 color: #ffffff !important;
 -webkit-text-fill-color: #ffffff !important;
 caret-color: #ffffff;
}
body:not(.light-mode) #authOverlay input:-webkit-autofill,
body:not(.light-mode) #authOverlay input:-webkit-autofill:hover,
body:not(.light-mode) #authOverlay input:-webkit-autofill:focus {
 -webkit-text-fill-color: #ffffff !important;
 box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
 caret-color: #ffffff;
 transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
 font-family: inherit;
}
body:not(.light-mode) #authOverlay input:autofill {
 color: #ffffff !important;
 caret-color: #ffffff;
 box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
}
body:not(.light-mode) #authOverlay input::placeholder {
 color: rgba(255,255,255,0.58);
 -webkit-text-fill-color: rgba(255,255,255,0.58);
}
 input[type="number"]:focus, input[type="text"]:focus, select:focus {
 border-color: var(--focus-border);
 box-shadow: none;
 }
 .input-group > input[type="number"] {
  border-top-color: var(--border) !important;
  border-bottom-color: var(--border) !important;
  border-right: 1px solid var(--border) !important;
 }
 .input-group > input[type="number"]:focus {
  border-top-color: var(--focus-border) !important;
  border-bottom-color: var(--focus-border) !important;
  border-color: var(--focus-border) !important;
 }
 .input-group > input[type="number"]:focus:not(:focus-visible) { outline: none; }
 select.select-animate { transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; will-change: transform; }
 @keyframes selectPop {
 0% { transform: translateY(0) scale(1); box-shadow: none; border-color: var(--border); }
 35% { transform: translateY(-1px) scale(1.01); box-shadow: 0 0 0 4px rgba(126, 200, 255, 0.10); border-color: var(--focus-border); }
 100% { transform: translateY(0) scale(1); box-shadow: none; border-color: var(--border); }
 }
 select.select-animate.select-changed { animation: selectPop 320ms ease-out; }
 @media (prefers-reduced-motion: reduce) { select.select-animate { transition: none; } select.select-animate.select-changed { animation: none; } }
.input-group { display: flex; align-items: stretch; width: 100%; }
.input-prefix { display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 10px 0 0 10px; background: var(--bg-elevated); color: var(--muted); font-weight: 800; min-width: 34px; flex: 0 0 34px; user-select: none; }
.input-prefix.icon-prefix svg { width: 17px; height: 17px; stroke: currentColor; }
.days-wrap .input-prefix { min-width: 52px; flex-basis: 52px; padding: 0; }
.days-wrap { width: 100%; max-width: 220px; }
.input-suffix-btn { display: none; align-items: center; justify-content: center; flex-direction: column; line-height: 1.2; gap: 1px; padding: 0 10px; border: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: 0 10px 10px 0; background: var(--bg-elevated); color: #6b7280; font-size: 11px; font-weight: 700; height: 48px; cursor: pointer; user-select: none; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.input-suffix-btn.active { background: var(--toggle-active); color: var(--toggle-active-text); }
.input-suffix-btn.visible { display: inline-flex; }
.input-group:has(.input-suffix-btn.visible) input[type="number"] { border-radius: 0 !important; border-right: 1px solid var(--border) !important; }
.input-group input[type="number"] { border-radius: 0 10px 10px 0; }

.input-group:focus-within .input-prefix { border-color: var(--focus-border); color: var(--summary-title); }
.input-group:focus-within .input-suffix-btn { border-color: var(--focus-border); border-left-color: var(--focus-border); }
.mi-validation-target-wrap {
 animation: miValidationPulse 0.9s ease-out 0s 2;
 border-radius: 12px;
}
@keyframes miValidationPulse {
 0%, 100% { filter: none; }
 45% { filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.36)); }
}
@media (prefers-reduced-motion: reduce) {
 .mi-validation-target-wrap { animation: none; }
}
#baseSalaryField .input-group:focus-within .input-prefix,
#baseSalaryField2 .input-group:focus-within .input-prefix { border-color:var(--focus-border); color:var(--summary-title); }
#baseSalaryField .input-group:has(.input-suffix-btn.visible):focus-within .input-prefix,
#baseSalaryField2 .input-group:has(.input-suffix-btn.visible):focus-within .input-prefix { border-right-color:var(--border); }
#baseSalaryField .input-group:has(.input-suffix-btn.visible):focus-within input[type="number"],
#baseSalaryField2 .input-group:has(.input-suffix-btn.visible):focus-within input[type="number"] { border-color:var(--focus-border) !important; border-right-color:var(--focus-border) !important; }
#baseSalaryField .input-group:has(.input-suffix-btn.visible):focus-within .input-suffix-btn,
#baseSalaryField2 .input-group:has(.input-suffix-btn.visible):focus-within .input-suffix-btn { border-color:var(--border) !important; border-left-color:var(--border) !important; }
#baseSalaryField .input-group:has(#proRataBtn:is(:hover, :focus, :active)) .input-prefix,
#baseSalaryField2 .input-group:has(#proRataBtn2:is(:hover, :focus, :active)) .input-prefix,
#baseSalaryField .input-group:has(#proRataBtn:is(:hover, :focus, :active)) input[type="number"],
#baseSalaryField2 .input-group:has(#proRataBtn2:is(:hover, :focus, :active)) input[type="number"] {
 border-color: var(--border) !important;
 border-right-color: var(--border) !important;
}
#proRataBtn,
#proRataBtn2,
.input-group:focus-within #proRataBtn,
.input-group:focus-within #proRataBtn2,
#proRataBtn:focus,
#proRataBtn2:focus,
#proRataBtn:active,
#proRataBtn2:active {
 border-color: var(--border) !important;
 border-left-color: var(--border) !important;
 outline: none;
 box-shadow: none;
}
#proRataBtn:hover,
#proRataBtn2:hover {
 background: rgba(77, 163, 255, 0.12);
 color: var(--summary-title);
}
#proRataBtn.active,
#proRataBtn2.active {
 background: var(--toggle-active);
 color: var(--toggle-active-text);
}
input[type="checkbox"] { transform: translateY(1px); margin-right: 8px; accent-color: var(--primary); }
 .actions{ margin-top:18px; display:flex; gap:12px; justify-content:center; align-items:center; flex-wrap:wrap; position:relative; padding:0; border:none; background:transparent; width:fit-content; margin-left:auto; margin-right:auto; }
 .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
 .reset-action-btn,
 .adv-options-action-btn { width: 44px; min-width: 44px; height: 44px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
 .reset-action-btn svg,
 .adv-options-action-btn svg { width: 19px; height: 19px; flex: 0 0 auto; }
 .saved-actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: nowrap; }
 .saved-actions button { padding: 11px 12px; font-size: 14px; border-radius: 10px; flex: 1 1 0; min-width: 0; white-space: nowrap; text-align: center; }
 .delete-slot button { width: 100%; box-sizing: border-box; }
 @media (max-width: 900px) { .saved-actions button { flex: 1 1 0; min-width: 0; font-size: 13px; padding: 10px 8px; } }
 .delete-slot { flex: 1 1 0; position: relative; min-width: 0; }
 .delete-slot > * { min-width: 0; }
 .delete-confirm-wrap { display: none; gap: 6px; }
 .delete-confirm-wrap.visible { display: flex; }
 .delete-confirm-wrap button { flex: 1 1 0; min-width: 0; font-size: 14px; line-height: 1; }
 .delete-slot .delete-confirm-wrap { position: absolute; inset: 0; }
 #resetConfirmWrap button { flex: none; width: 42px; }
 #confirmDeleteYes { background: rgba(52,211,153,0.15); color: #34d399; }
#confirmDeleteYes:hover { background: rgba(52,211,153,0.25); }
body:not(.household-can-save) #hhSavedCombosWrap .saved-actions button:first-child {
  display: none !important;
}
.save-action-btn,
#saveProfileBtn,
#hhSavedCombosWrap .saved-actions button:first-child,
.save-modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #047857 !important;
  color: #ffffff !important;
  border: 1px solid #065f46 !important;
  box-shadow: 0 8px 18px rgba(4,120,87,0.18);
}
.save-action-btn:hover,
#saveProfileBtn:hover,
#hhSavedCombosWrap .saved-actions button:first-child:hover,
.save-modal-submit:hover {
  background: #065f46 !important;
  border-color: #064e3b !important;
}
.save-action-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
body.raise-config-open .save-action-btn {
  display: none !important;
}
body.raise-active #saveProfileBtn,
body.raise-config-open #saveProfileBtn {
  display: none !important;
}
body.raise-active #saveRaisedProfileBtn.is-visible,
body.raise-config-open #saveRaisedProfileBtn.is-visible {
  display: inline-flex !important;
}
body.raise-config-open .actions > button[onclick="calculateSalarySafe()"],
body.raise-config-open .fab-btn[onclick="calculateSalarySafe()"],
body.raise-active .actions > button[onclick="calculateSalarySafe()"],
body.raise-active .fab-btn[onclick="calculateSalarySafe()"] {
  display: none !important;
}
.delete-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.delete-icon-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
body.calc-dirty #saveProfileBtn,
body.calc-dirty .actions > button[onclick="openSaveProfileModal()"],
body.calc-dirty .fab-btn[onclick="openSaveProfileModal()"] {
  display: none !important;
}
body:not(.calc-dirty) .actions > button[onclick="calculateSalarySafe()"],
body:not(.calc-dirty) .fab-btn[onclick="calculateSalarySafe()"] {
  display: none !important;
}
body.light-mode #saveProfileBtn,
body.light-mode .actions > button[onclick="openSaveProfileModal()"],
body.light-mode .fab-btn[onclick="openSaveProfileModal()"],
body.light-mode #hhSavedCombosWrap .saved-actions button:first-child,
body.light-mode .save-modal-submit {
  background: #047857 !important;
  color: #ffffff !important;
  border-color: #065f46 !important;
  box-shadow: 0 8px 18px rgba(4,120,87,0.18);
}
body.light-mode #saveProfileBtn:hover,
body.light-mode .actions > button[onclick="openSaveProfileModal()"]:hover,
body.light-mode .fab-btn[onclick="openSaveProfileModal()"]:hover,
body.light-mode #hhSavedCombosWrap .saved-actions button:first-child:hover,
body.light-mode .save-modal-submit:hover {
  background: #065f46 !important;
}
 button { border: none; border-radius: 10px; padding: 13px 18px; font-size: 15px; font-weight: 700; cursor: pointer; transition: 0.2s ease; line-height: 1.15; }
 .btn-primary { background: var(--primary); color: #08111f; }
 .btn-primary:hover { background: var(--primary-hover); }
 .btn-primary, .btn-secondary { display:inline-flex; align-items:center; justify-content:center; }
 .btn-secondary { background: #273041; color: var(--text); }
 .btn-secondary:hover { background: #324055; }
 .account-action-btn { gap: 10px; justify-content:flex-start; text-align:left; }
 .account-menu-icon,
 .push-btn-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 20px; width:20px; height:20px; }
 .push-btn-icon { margin-right:8px; }
 .account-action-btn .push-btn-icon { margin-right:0; }
 .account-menu-icon svg,
 .push-btn-icon svg { width:20px; height:20px; display:block; }
 .account-menu-icon svg { stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
 .account-menu-icon-privacy { color:#38bdf8; }
 .account-menu-icon-key { color:#fbbf24; }
 .account-menu-icon-logout { color:#93c5fd; }
 .push-btn-icon-enabled { color:#ffd43b; }
 .push-btn-icon-disabled { color:#94a3b8; }
 .push-btn-label { line-height:1.1; }
 .btn-danger { background: var(--danger-bg); color: var(--danger-text); border: 1px solid rgba(239, 68, 68, 0.34); }
 .btn-danger:hover { background: rgba(239, 68, 68, 0.22); border-color: rgba(248, 113, 113, 0.48); }
 .cookie-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8000;
  padding: 16px 20px;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--card) 94%, #0b1220 6%);
  border-top: 1px solid color-mix(in srgb, var(--border) 76%, var(--primary) 24%);
  box-shadow: 0 -16px 38px rgba(0,0,0,0.36);
 }
 .cookie-banner.is-pwa-modal {
  inset: 0;
  z-index: 9800;
  padding: 22px;
  align-items: center;
  background: rgba(0,0,0,0.64);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-top: 0;
  box-shadow: none;
 }
 body.cookie-choice-open {
  overflow: hidden;
  overscroll-behavior: none;
 }
 body.cookie-choice-open .cookie-banner.is-pwa-modal,
 body.intro-visible #introPanel,
 body.result-info-visible #resultInfoOverlay {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
 }
 .cookie-banner-inner {
  position: relative;
  width: min(1360px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
 }
 .cookie-banner.is-pwa-modal .cookie-banner-inner {
  width: min(620px, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: #151d2b;
  box-shadow: 0 24px 70px rgba(0,0,0,0.44);
  z-index: 9701;
 }
 .cookie-banner.is-pwa-modal .cookie-banner-title {
  color: #f1f5f9;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 19px;
  line-height: 1.25;
 }
 .cookie-banner.is-pwa-modal .cookie-banner-icon {
  width: 58px;
  height: 58px;
  background: url("/icon-192.png") center / cover no-repeat;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  font-size: 0;
 }
 .cookie-banner.is-pwa-modal .cookie-banner-text {
  color: #aeb8c7;
 }
 .cookie-banner.is-pwa-modal .cookie-banner-text strong {
  color: #f1f5f9;
 }
 .cookie-banner-copy {
  min-width: 240px;
 }
 .cookie-banner.is-pwa-modal .cookie-banner-copy {
  flex: none;
 }
 .cookie-banner-title {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
 }
 .cookie-banner-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(99,179,237,0.12);
  font-size: 15px;
 }
 .cookie-banner-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: grid;
  gap: 7px;
 }
 .cookie-banner-text strong {
  color: var(--text);
  font-weight: 800;
 }
 .cookie-banner-text a {
  color: var(--primary);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
 }
 .cookie-privacy-note {
  color: var(--muted);
 }
 .cookie-analytics-row {
  display: block;
 }
 .cookie-banner:not(.is-pwa-modal) .cookie-analytics-row {
  max-width: 1120px;
 }
 @media (min-width: 320px) and (max-width: 899px) {
  .cookie-banner:not(.is-pwa-modal) .cookie-banner-title {
   font-size: clamp(14px, 11.79px + 0.69vw, 18px);
  }
  .cookie-banner:not(.is-pwa-modal) .cookie-banner-icon {
   width: clamp(24px, 20.69px + 1.03vw, 30px);
   height: clamp(24px, 20.69px + 1.03vw, 30px);
   font-size: clamp(14px, 11.79px + 0.69vw, 18px);
  }
  .cookie-banner:not(.is-pwa-modal) .cookie-banner-text {
   font-size: clamp(12px, 10.34px + 0.52vw, 15px);
  }
  .cookie-banner:not(.is-pwa-modal) .cookie-action-choice {
   font-size: clamp(12px, 10.34px + 0.52vw, 15px);
  }
 }
 .cookie-analytics-row .cookie-toggle {
  margin-left: 12px;
  vertical-align: middle;
 }
 .cookie-banner-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  align-self: center;
  width: auto;
 }
 .cookie-banner.is-pwa-modal .cookie-banner-actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-end;
  width: 100%;
  margin-top: 2px;
 }
 .cookie-banner.is-pwa-modal .cookie-action-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
 }
 @media (min-width: 900px) {
  .cookie-banner:not(.is-pwa-modal) {
   padding: 12px 50px;
  }
  .cookie-banner:not(.is-pwa-modal) .cookie-banner-inner {
   width: min(1800px, 100%);
   display: grid;
   grid-template-columns: minmax(0, 1fr) clamp(234px, 118px + 12.89vw, 350px);
   align-items: center;
   gap: 26px;
   padding: 8px 0;
  }
  .cookie-banner:not(.is-pwa-modal) .cookie-banner-title {
   margin-bottom: 10px;
   font-size: 17px;
   line-height: 1.2;
  }
  .cookie-banner:not(.is-pwa-modal) .cookie-banner-icon {
   width: 30px;
   height: 30px;
   font-size: 16px;
  }
  .cookie-banner:not(.is-pwa-modal) .cookie-banner-text {
   font-size: 14px;
   line-height: 1.45;
   gap: 7px;
  }
  .cookie-banner:not(.is-pwa-modal) .cookie-analytics-row {
   max-width: 1080px;
  }
  .cookie-banner:not(.is-pwa-modal) .cookie-banner-actions {
   display: flex;
   flex-direction: column;
   align-items: stretch;
   justify-content: center;
   width: clamp(234px, 118px + 12.89vw, 350px);
   gap: 8px;
  }
  .cookie-banner:not(.is-pwa-modal) .cookie-action-choice {
   width: 100%;
   min-height: 52px;
   padding: 12px 16px;
   border-radius: 14px;
   font-size: 16px;
  }
  .cookie-banner:not(.is-pwa-modal) .cookie-action-choice:nth-child(2) {
   order: 1;
  }
  .cookie-banner:not(.is-pwa-modal) .cookie-action-choice:nth-child(1) {
   order: 2;
  }
 }
 .cookie-settings-status {
  display: none;
  color: var(--good);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
 }
 .cookie-action-choice {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  padding: 17px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  border: 1px solid rgba(148,163,184,0.18);
  background: #273041;
  color: var(--text);
  box-shadow: none;
  transform: translateY(0) scale(1);
  transition: transform .12s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease, opacity .14s ease;
 }
 .cookie-action-choice:hover {
  background: #324055;
  color: var(--text);
 }
 .cookie-action-choice.is-current-choice {
  border-color: rgba(77,163,255,0.42);
  box-shadow: inset 0 0 0 1px rgba(77,163,255,0.24);
 }
 .cookie-action-choice:active,
 .cookie-action-choice.is-selected {
  transform: translateY(1px) scale(0.97);
  background: color-mix(in srgb, var(--primary) 28%, #273041 72%);
  border-color: color-mix(in srgb, var(--primary) 54%, rgba(255,255,255,0.22) 46%);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.34), 0 0 0 3px rgba(77,163,255,0.14);
 }
 .cookie-action-choice.is-muted-choice {
  opacity: 0.56;
 }
 .cookie-toggle {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  cursor: pointer;
 }
 .cookie-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
 }
 .cookie-toggle-track {
  position: relative;
  width: 50px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.2);
  background: #64748b;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.28);
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
 }
 .cookie-toggle-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.34);
  transform: translateX(0);
  transition: transform .16s ease;
 }
 .cookie-toggle input:checked + .cookie-toggle-track {
  background: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 84%, #ffffff 16%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.18), 0 8px 18px rgba(77,163,255,0.18);
 }
  .cookie-toggle input:checked + .cookie-toggle-track .cookie-toggle-thumb {
  transform: translateX(22px);
 }
 .cookie-banner-actions .cookie-toggle-track {
  width: 62px;
  height: 34px;
 }
 .cookie-banner-actions .cookie-toggle-thumb {
  left: 3px;
  top: 3px;
  width: 28px;
  height: 28px;
 }
 .cookie-banner-actions .cookie-toggle input:checked + .cookie-toggle-track .cookie-toggle-thumb {
  transform: translateX(28px);
 }
 .cookie-toggle:focus-within .cookie-toggle-track {
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.26), 0 0 0 3px rgba(148,163,184,0.16);
 }
 .account-privacy-list {
  display: grid;
  gap: 10px;
 }
 .account-privacy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
 }
 .account-privacy-row strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
 }
 .account-privacy-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 3px;
 }
 body.light-mode .cookie-banner {
  background: #ffffff;
 }
 body.light-mode .cookie-banner.is-pwa-modal {
  background: rgba(5,10,20,0.72);
 }
 body.light-mode .cookie-banner.is-pwa-modal .cookie-banner-inner {
  background: #151d2b;
  border-color: rgba(255,255,255,0.1);
 }
 body.light-mode .cookie-toggle-track {
  background: #cbd5e1;
  border-color: rgba(100,116,139,0.22);
  box-shadow: inset 0 1px 2px rgba(15,23,42,0.12);
 }
 body.light-mode .cookie-toggle input:checked + .cookie-toggle-track {
  background: #2563eb;
  border-color: rgba(37,99,235,0.35);
 }
 body.light-mode .cookie-action-choice {
  background: #eef5f9;
  color: #102033;
  border-color: #b7cfde;
  box-shadow: none;
 }
 body.light-mode .cookie-action-choice:hover {
  background: #e2f0f7;
  border-color: #8eb8d1;
 }
 body.light-mode .cookie-action-choice.is-current-choice {
  border-color: rgba(37,99,235,0.38);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.18);
 }
 body.light-mode .cookie-action-choice:active,
 body.light-mode .cookie-action-choice.is-selected {
  background: color-mix(in srgb, var(--primary) 22%, #eef5f9 78%);
  border-color: rgba(37,99,235,0.38);
  box-shadow: inset 0 2px 10px rgba(15,23,42,0.12), 0 0 0 3px rgba(37,99,235,0.12);
 }
 @media (max-width: 900px) {
  .cookie-banner {
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 10px 12px 12px;
    overflow: visible;
    align-items: initial;
    justify-content: initial;
  }
  .cookie-banner.is-pwa-modal {
    inset: 0 !important;
    padding: 14px;
    align-items: center;
    justify-content: center;
    overflow: auto;
  }
  .cookie-banner-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-content: flex-start;
    gap: 9px;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .cookie-banner.is-pwa-modal .cookie-banner-inner {
    margin: auto;
    padding: 16px;
    border-radius: 16px;
  }
  .cookie-banner-copy {
    flex: none;
    min-width: 0;
    height: auto !important;
    min-height: 0 !important;
  }
  .cookie-banner-title {
    margin-bottom: 4px;
    gap: 7px;
    font-size: 14px;
    line-height: 1.25;
  }
  .cookie-banner.is-pwa-modal .cookie-banner-title {
    margin-bottom: 10px;
    gap: 9px;
    font-size: 18px;
  }
  .cookie-banner-icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  .cookie-banner.is-pwa-modal .cookie-banner-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
  .cookie-banner-text {
    font-size: 12px;
    line-height: 1.38;
  }
  .cookie-analytics-row {
    display: block;
  }
  .cookie-analytics-row .cookie-toggle {
    margin-top: 8px;
    margin-left: 0;
  }
  .cookie-banner-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
  }
  .cookie-settings-status {
    grid-column: 1 / -1;
    text-align: center;
  }
  .cookie-action-choice {
    width: 100%;
    min-width: 0;
    padding: 10px 6px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.15;
  }
 }
 @media (min-width: 420px) and (max-width: 900px) {
  .cookie-banner-actions {
    gap: 10px;
  }
  .cookie-action-choice {
    padding: 12px 10px;
    font-size: 13px;
  }
 }
 @media (min-width: 640px) and (max-width: 900px) {
  .cookie-banner-actions {
    gap: 12px;
  }
  .cookie-action-choice {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
  }
 }
 @media (min-width: 761px) and (max-width: 1100px) {
  .cookie-banner-inner {
    width: min(900px, 100%);
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
 .cookie-banner-actions {
    width: 100%;
  }
 }
 .saved-panel { margin-top: 0; padding: 0; border: none; border-radius: 0; background: transparent; box-shadow: none; }
 .results-wrap {
  display: none;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid rgba(99,179,237,0.28);
  position: relative;
 }
 .results-wrap::before {
  content: "Your pay, decoded";
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
 }
 .summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; margin-top: 18px; }
 .metric { background: rgba(99,179,237,0.04); border: 1px solid rgba(99,179,237,0.2); border-radius: 14px; padding: 16px; }
#annualNetMetric { grid-column: span 2; position: relative; }
 .metric h3 { margin: 0 0 8px; font-size: 14px; color: #b8d7ff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
 .metric .value { font-size: 28px; font-weight: 800; color: #f8fafc; line-height: 1.15; }
 #annualNet, #monthlyNet { color: #34d399 !important; }
 .th-freq { font-size:12px; color:var(--muted); font-weight:600; letter-spacing:0.03em; margin-left:2px; }
 .th-mo-val { font-size:22px; font-weight:800; line-height:1.2; }
 .th-row { display:flex; align-items:baseline; gap:6px; }
 .raise-new-gross { display:block; margin-top:8px; color:var(--text); font-size:13px; font-weight:800; line-height:1.35; min-height:18px; }
 .raise-new-gross .raise-new-gross-label { color:var(--text); }
 .raise-new-gross .raise-new-gross-value { color:var(--text); }
 .th-row-mo { margin-top:8px; padding-top:8px; border-top:1px solid rgba(99,179,237,0.15); }
 #totalDeductions { color: #f87171 !important; }
 #employerNIDisplay { color: #94a3b8 !important; }
.metric .sub { margin-top: 6px; color: #c0d4ea; font-size: 13px; line-height: 1.4; }
.takehome-tools { display:flex; align-items:stretch; flex-wrap:wrap; gap:8px; margin-top:12px; padding-top:10px; border-top:1px solid rgba(99,179,237,0.15); }
.takehome-tools > .raise-toggle-btn,
.takehome-tools > .target-toggle-btn { flex:1 1 168px; min-width:0; height:38px; }
.takehome-tools > .raise-toggle-btn { margin:0; }
.target-toggle-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:0; padding:0 13px; box-sizing:border-box; border-radius:999px; border:1px solid rgba(99,179,237,0.28); background:rgba(99,179,237,0.08); color:var(--text); font-size:14px; font-weight:700; white-space:nowrap; }
.target-toggle-btn.active { background:rgba(52,211,153,0.13); border-color:rgba(52,211,153,0.35); color:#34d399; }
#annualNetMetric > .raise-bar {
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(99,179,237,0.15);
}
.form-section { border: 1px solid var(--border); border-radius: 14px; background: var(--bg-elevated); margin-bottom: 14px; overflow: visible; min-width: 0; }
 .form-section > summary { list-style: none; cursor: pointer; padding: 16px 16px 40px; display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; color: var(--text); user-select: none; -webkit-tap-highlight-color: transparent; }
 .form-section > summary::-webkit-details-marker { display: none; }
 .form-section > summary::marker { display: none; content: ""; }
 .chev { width:10px; height:10px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); transition:transform 0.2s ease; flex:0 0 10px; }
 .form-section > summary .form-section-heading { flex: 1 1 auto; display: inline-flex; flex-direction:column; align-items: center; justify-content: center; gap: 7px; min-width: 0; text-align: center; color: cornsilk; font-size: 18px; font-weight: 900; line-height: 1.15; letter-spacing: 0.01em; text-shadow: 0 1px 16px rgba(255,248,220,0.18); }
 .form-section > summary .form-section-icon { order:1; display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; color:rgba(255,248,220,0.8); background:none; border:0; box-shadow:none; flex-shrink: 0; }
 .form-section > summary .form-section-icon svg { width:20px; height:20px; stroke:currentColor; }
 .form-section > summary .form-section-heading > span:not(.form-section-icon) { order:2; display:flex; align-items:center; justify-content:center; gap:14px; width:min(100%, 520px); }
 .form-section > summary .form-section-heading > span:not(.form-section-icon)::before,
 .form-section > summary .form-section-heading > span:not(.form-section-icon)::after { content:""; display:block; width:58px; height:1px; flex:0 1 58px; background:linear-gradient(90deg, rgba(255,248,220,0), rgba(255,248,220,0.7)); }
 .form-section > summary .form-section-heading > span:not(.form-section-icon)::after { background:linear-gradient(90deg, rgba(255,248,220,0.7), rgba(255,248,220,0)); }
 .form-section > summary .chev { margin-left: auto; }
 .main .form-section > summary .chev { display:none; }
 .form-section.non-collapsible > summary { cursor: default; }
 .form-section.non-collapsible > summary .chev { display: none; }
 .form-section[open] > summary .chev { transform: rotate(-135deg); }
 .form-section > .form-section-body { padding: 2px 16px 16px; }
 .form-section-body > .grid { grid-template-columns: 1fr !important; }
 .section-block { margin-top: 30px; }
 table { width: 100%; border-collapse: collapse; margin-top: 14px; background: var(--table-row); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
 th, td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: right; font-size: 14px; vertical-align: top; color: var(--text); }
 td { background: var(--table-row); }
 tbody tr:nth-child(even) td { background: var(--table-row-alt); }
 th:first-child, td:first-child { text-align: left; }
 thead th { background: var(--table-head); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--summary-title); }
 tbody tr:last-child td { border-bottom: none; }
 .tooltip { position: relative; display: inline-flex; vertical-align: middle; }
 .info-icon { display: inline-flex; align-items:center; justify-content:center; width:18px; height:18px; margin-left:3px; border-radius:999px; border:1px solid rgba(148,163,184,0.24); background:rgba(148,163,184,0.07); color:rgba(203,213,225,0.78); font-size:11px; font-weight:800; line-height:1; cursor:pointer; user-select:none; transition:background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
 .info-icon:hover,.info-icon:focus-visible { background:rgba(126,200,255,0.08); border-color:var(--focus-border); color:color-mix(in srgb, var(--text) 80%, var(--primary) 20%); }
 .tooltip .tip { position:absolute; left:0; top:calc(100% + 10px); min-width:240px; max-width:280px; background:var(--tooltip-bg); border:1px solid var(--tooltip-border); border-radius:12px; padding:10px 12px; color:var(--text); font-size:12px; line-height:1.45; box-shadow:var(--shadow); z-index:500!important; opacity:0; transform:translateY(-4px); pointer-events:none; transition:opacity 0.15s ease, transform 0.15s ease; white-space:normal; overflow-wrap:anywhere; word-break:normal; box-sizing:border-box; }
 .tooltip .tip::before { content:""; position:absolute; top:-6px; left:12px; width:12px; height:12px; background:var(--tooltip-bg); border-left:1px solid var(--tooltip-border); border-top:1px solid var(--tooltip-border); transform:rotate(45deg); }
 .tooltip:hover .tip,.tooltip:focus-within .tip,.tooltip.open .tip { opacity:1; transform:translateY(0); pointer-events:auto; }
 .pill { display:inline-block; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700; }
 .pill.good { background: var(--good-bg); color: var(--good); }
 .pill.warn { background: var(--warn-bg); color: var(--warn); }
 .hidden { display:none!important; }
 .footer { margin-top: 28px; padding: 28px 32px 18px; color: var(--muted); font-size: 14px; text-align: left; border-top: 0; background: #131820; box-sizing: border-box; } @media (max-width:900px){ .footer { display:none !important; } }
@media (max-width: 900px) { .footer { padding-bottom: 90px; } }
 .footer-inner { display:grid; grid-template-columns:minmax(180px, 280px) 1fr; gap:36px; align-items:start; padding-bottom:28px; }
 .footer-links-col { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
 .footer-links-col a { color:var(--muted); text-decoration:none; font-size:14px; line-height:1.25; }
 .footer-links-col a:hover { color:var(--primary); text-decoration:none; }
 body.logged-in .privacy-consent-entry { display:none !important; }
 .footer-note { margin-top:16px; padding-top:12px; border-top:0; color:var(--muted); font-size:11px; line-height:1.5; text-align:center; }
 .footer-brand-row { display:flex; align-items:center; gap:20px; padding-top:20px; }
 .footer-logo { width:172px; max-width:40vw; height:auto; display:block; }
 .footer-play-link { display:inline-flex; align-items:center; justify-self:start; gap:10px; margin-top:0; padding:0; border:0; border-radius:0; background:transparent; color:var(--text) !important; font-size:0 !important; font-weight:800; text-decoration:none !important; }
 .footer-play-link:hover { color:var(--primary); background:transparent; }
 .footer-play-link svg { width:44px; height:44px; flex:0 0 44px; }
 body.light-mode .footer-play-link { background:transparent; color:#24384d; }
 .footer .tm { margin-top: 0; color: #94a3b8; font-size: 14px; }
 body.light-mode .footer { background: #e7f0f6; color:#58708a; }
 body.light-mode .footer-logo {
  background: #282e45;
  border-radius: 6px;
  padding: 7px 10px;
  box-sizing: content-box;
 }
 body.light-mode .footer .tm,
 body.light-mode .footer-note,
 body.light-mode .footer-links-col a { color:#58708a; }
 input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
 input[type="number"] { -moz-appearance:textfield; }
 .num-wrap { display:flex; align-items:stretch; width:100%; position:relative; box-sizing:border-box; }
 .num-wrap:not(.input-group) > input[type="number"] { border-radius:10px 0 0 10px; border-right:none; }
.input-group.num-wrap { min-width:0; max-width:100%; box-sizing:border-box; }
.input-group.num-wrap > input[type="number"] { width:0; border-radius:0; border-left:none; border-right:none; min-width:0; flex:1 1 auto; box-sizing:border-box; }
.num-wrap.has-stepper > input[type="number"] { border-right:0 !important; }
.stepper { display:flex; flex-direction:row; width:78px; border:1px solid var(--border); border-left:0 !important; border-radius:0 10px 10px 0; overflow:hidden; background:var(--bg-elevated); height:48px; flex:0 0 78px; }
.step-btn { flex:1 1 50%; border:none; border-right:1px solid var(--border); background:transparent; cursor:pointer; padding:0; display:flex; align-items:center; justify-content:center; transition:background 0.15s ease, transform 0.08s ease; min-height:0; min-width:39px; }
.stepper .step-btn:first-child { border-left:0 !important; }
 .step-btn:last-child { border-right:none; }
 .step-btn::before { content:""; width:14px; height:14px; background-repeat:no-repeat; background-position:center; background-size:14px 14px; opacity:0.85; transition:opacity 0.12s ease, transform 0.08s ease; }
 .step-down { order:1; }
 .step-up { order:2; }
 .step-down { border-right:1px solid var(--border); }
 .step-up { border-right:none; }
 .step-up::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23cbd5e1' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
 .step-down::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h14' stroke='%23cbd5e1' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
 .step-btn:focus,
 .step-btn:focus-visible { outline:none; }
 .step-btn:active,
 .step-btn.is-pressing { background: rgba(77, 163, 255, 0.18); transform:scale(0.96); }
 .step-btn:active::before,
 .step-btn.is-pressing::before { opacity:1; transform:scale(0.9); }
 details.assumptions { margin-top:16px; border:1px solid var(--border); border-radius:14px; background:var(--bg-elevated); box-shadow:var(--shadow); overflow:hidden; }
 details.assumptions summary { cursor:pointer; padding:14px 16px; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:12px; font-weight:800; color:var(--text); }
 details.assumptions summary::-webkit-details-marker { display:none; }
 details.assumptions summary .chev { width:10px; height:10px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); transition:transform 0.2s ease; flex:0 0 auto; }
 details.assumptions[open] summary .chev,#advOptions[open] > .adv-acc-summary .chev { transform: rotate(-135deg); }
.assumptions-body { padding:0 16px 14px; color:var(--muted); font-size:13px; line-height:1.55; }
.assumptions-body .notes-inner { padding-top:6px; display:flex; flex-direction:column; gap:10px; }
.assumption-note { display:block; }
 #calcSummaryDetails,
 #assumptionsDetails {
  display: none;
 }
 .result-info-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
 }
 .result-info-card {
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  min-height:92px;
  padding:16px 18px;
  border:1px solid rgba(99,179,237,0.2);
  border-radius:14px;
  background:rgba(99,179,237,0.04);
  color:var(--text);
  text-align:left;
  box-shadow:var(--shadow);
 }
 .result-info-card:hover,
 .result-info-card:focus-visible {
  border-color:rgba(99,179,237,0.45);
  background:rgba(99,179,237,0.08);
  transform:translateY(-1px);
 }
 .result-info-card:focus-visible {
  outline:2px solid var(--primary);
  outline-offset:2px;
 }
 .result-info-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:12px;
  background:rgba(99,179,237,0.1);
  color:#7ec8ff;
 }
 .result-info-icon svg {
  width:22px;
  height:22px;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
 }
 .auth-verify-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:58px;
  height:58px;
  margin:0 auto 16px;
  border:1px solid rgba(77,163,255,0.34);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(77,163,255,0.16), rgba(77,163,255,0.07));
  color:var(--primary);
  box-shadow:0 14px 30px rgba(0,0,0,0.18);
 }
 .auth-verify-icon svg {
  width:31px;
  height:31px;
  stroke:currentColor;
  stroke-width:2.1;
  stroke-linecap:round;
  stroke-linejoin:round;
 }
 .auth-verify-icon .auth-verify-check {
  color:var(--good);
  stroke-width:2.4;
 }
 .result-info-title {
  display:block;
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color:#7ec8ff;
 }
 .result-info-copy {
  display:block;
  margin-top:5px;
  font-size:13px;
  line-height:1.4;
  color:var(--muted);
  font-weight:600;
 }
 .result-info-overlay {
  position:fixed;
  inset:0;
  z-index:9700;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,0.64);
  backdrop-filter:blur(5px);
 }
 .result-info-modal {
  position:relative;
  width:min(760px,100%);
  max-height:min(78vh,760px);
  overflow:hidden;
  border:1px solid rgba(99,179,237,0.26);
  border-radius:16px;
  background:var(--card);
  box-shadow:0 26px 80px rgba(0,0,0,0.45);
 }
 .result-info-modal h2 {
  margin:0;
  padding:20px 58px 16px 22px;
  border-bottom:1px solid var(--border);
  color:#7ec8ff;
  font-size:17px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.06em;
 }
 .result-info-close {
  position:absolute;
  top:13px;
  right:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  padding:0;
  border-radius:10px;
  background:rgba(255,255,255,0.04);
  color:var(--muted);
  font-size:24px;
  line-height:1;
 }
 .result-info-close:hover {
  background:rgba(99,179,237,0.12);
  color:var(--text);
 }
 .result-info-modal-body {
  max-height:calc(min(78vh,760px) - 58px);
  overflow:auto;
  padding:18px 22px 22px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
 }
 .result-info-modal-body table {
  margin-top:0 !important;
  box-shadow:none !important;
 }
 .result-info-modal-body .notes-inner {
  padding-top:0;
  display:flex;
  flex-direction:column;
  gap:14px;
 }
 .result-info-modal-body .assumption-note {
  display:block;
  padding:0 0 14px;
  border-bottom:1px solid rgba(148,163,184,0.14);
 }
 .result-info-modal-body .assumption-note:last-child {
  padding-bottom:0;
  border-bottom:0;
 }
 .intro-popup-overlay {
  z-index:9800;
 }
 .intro-popup-modal {
  width:min(860px,100%);
  max-height:min(84vh,760px);
 }
 .intro-popup-modal h1 {
  margin:0;
  padding:22px 24px 16px;
  border-bottom:1px solid var(--border);
  color:var(--text);
  font-size:20px;
  font-weight:800;
  line-height:1.3;
  letter-spacing:0;
  text-transform:none;
 }
 .intro-popup-body {
  max-height:calc(min(84vh,760px) - 146px);
  font-size:14px;
  line-height:1.7;
 }
 .intro-popup-body p {
  margin:0;
 }
 .intro-popup-tagline {
  margin-bottom:10px;
  color:var(--text);
  font-size:15px;
  font-weight:800;
 }
 .intro-popup-body p + p {
  margin-top:10px;
 }
 .intro-popup-body strong {
  color:var(--text);
 }
 .intro-popup-actions {
  padding:18px 22px 22px;
  border-top:1px solid var(--border);
 }
 .intro-popup-actions .btn-primary {
  width:100%;
  padding:13px;
  font-size:15px;
 }
 @media (max-width:900px){
  .result-info-grid{grid-template-columns:1fr;}
  .result-info-overlay{align-items:center;padding:16px;}
  .result-info-modal{max-height:86vh;border-radius:16px;}
  .result-info-modal h2{font-size:15px;padding:18px 54px 14px 18px;}
  .result-info-modal-body{max-height:calc(86vh - 54px);padding:16px 18px 20px;}
  .intro-popup-modal{max-height:68vh;}
  .intro-popup-modal h1{font-size:16px;padding:16px 18px 12px;}
  .intro-popup-body{max-height:calc(68vh - 146px);font-size:13px;padding:14px 16px 16px;}
  .intro-popup-tagline{font-size:14px;margin-bottom:8px;}
 .intro-popup-actions{padding:12px 16px 16px;}
 .intro-popup-actions .btn-primary{padding:12px;font-size:14px;}
  #targetTakeHomeOverlay {
    align-items: flex-start;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  #targetTakeHomeOverlay .target-takehome-modal {
    max-height: min(72vh, 520px);
  }
 #targetTakeHomeOverlay .target-takehome-modal-body {
    max-height: calc(min(72vh, 520px) - 54px);
  }
  #targetTakeHomeOverlay .target-takehome-modal-body,
  #targetTakeHomeOverlay .target-takehome-modal-body p,
  #targetTakeHomeOverlay .target-takehome-modal-body span,
  #leavePayOverlay .target-takehome-modal-body,
  #leavePayOverlay .target-takehome-modal-body .adv-hint,
  #leavePayOverlay .target-takehome-modal-body .sick-field label,
  #leavePayOverlay .target-takehome-modal-body #sspPhaseSummary,
  #redundancyOverlay .target-takehome-modal-body,
  #redundancyOverlay .target-takehome-modal-body .adv-hint,
  #redundancyOverlay .target-takehome-modal-body .sick-field label {
    font-size: clamp(13px, calc(11.345px + 0.517vw), 16px) !important;
  }
  #targetTakeHomeOverlay .result-info-modal h2,
  #leavePayOverlay .result-info-modal h2,
  #redundancyOverlay .result-info-modal h2 {
    font-size: clamp(15px, calc(13.345px + 0.517vw), 18px) !important;
  }
 }
 .chart-wrap { display:grid; grid-template-columns:minmax(240px, 360px) 1fr; gap:20px; align-items:center; }
 .chart-canvas-wrap { display:flex; justify-content:center; align-items:center; }
 #paySplitChart{ display:block; }
 .chart-legend{ display:flex; flex-wrap:wrap; gap:8px; align-content:start; }
 .legend-item { display:grid; grid-template-columns:14px 1fr; gap:0 10px; align-items:start; padding:9px 12px; border:1px solid rgba(99,179,237,0.12); border-radius:8px; background:rgba(99,179,237,0.03); min-width:160px; flex:1 1 160px; }
 .legend-swatch{ width:16px; height:16px; border-radius:4px; margin-top:3px; flex-shrink:0; }
 .legend-main{ display:flex; flex-direction:column; gap:3px; }
 .legend-name{ font-weight:700; color:var(--text); line-height:1.3; }
 .legend-pct{ font-size:15px; font-weight:800; color:var(--text); }
 .legend-value{ font-size:12px; color:var(--muted); }
 .num-wrap input[type="number"], .input-group input[type="number"], input[type="text"], select, .input-prefix{ height:48px; }
 .num-wrap:not(.has-stepper):focus-within::after { content:''; position:absolute; inset:-1px; border:1px solid var(--focus-border); border-radius:10px; box-shadow:none; pointer-events:none; }
 .brand{display:flex;align-items:center;gap:12px;}
.brand-link{display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:#ffffff;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:manipulation;}
.brand-home-btn{appearance:none;-webkit-appearance:none;border:0;background:transparent;margin:0;padding:0;font:inherit;cursor:pointer;}
.brand-link:focus,.brand-link:focus-visible{outline:none;}
 .brand-logo-img{width:auto;display:block;transition:height 0.2s ease;-webkit-user-drag:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;pointer-events:none;} .brand-logo-desktop{height:80px;display:block;} .brand-logo-mobile{height:64px;display:none;} 
.brand-tagline{font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:15px;font-weight:600;font-style:normal;color:rgba(255,255,255,0.9);letter-spacing:0;line-height:1.2;margin-left:16px;align-self:center;display:inline;border-left:2px solid rgba(255,255,255,0.45);padding-left:14px;transition:font-size 0.2s ease, opacity 0.2s ease;}
@media (min-width: 900.01px){
 body.header-compact .header{padding-top:8px;padding-bottom:8px;box-shadow:0 10px 24px rgba(0,0,0,0.28);}
 body.header-compact .brand-logo-desktop{height:54px;}
 body.header-compact .brand-tagline{font-size:14px;opacity:0.86;}
}
 .main > .grid{grid-template-columns:1fr!important;}
 .main > .grid > .field,.main > .grid > .field.third,.main > .grid > .field.full{grid-column:1 / -1!important;}
 #job1Section > .grid, #job2Section > .grid { grid-template-columns: 1fr !important; }
 #job1Section > .grid > .field, #job1Section > .grid > .field.third, #job1Section > .grid > .field.full,
 #job2Section > .grid > .field, #job2Section > .grid > .field.third, #job2Section > .grid > .field.full { grid-column: 1 / -1 !important; }
 .control-row{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;}
 .control-row label{margin:0;flex:0 0 auto;}
 .control-row .grow{flex:1 1 auto; min-width:280px;}
 .control-row .grow .input-group,.control-row .grow .num-wrap{max-width:none;width:100%;}
@media (min-width: 900.01px){
  #proRataFields .control-row,
  #proRataFields2 .control-row { justify-content:flex-start; align-items:center; gap:16px; }
  #proRataFields .control-row label,
  #proRataFields2 .control-row label { flex:0 0 auto; min-width:0; white-space:nowrap; }
  #proRataFields .tooltip .tip,
  #proRataFields2 .tooltip .tip { white-space:normal; }
  #proRataFields .control-row .grow,
  #proRataFields2 .control-row .grow { flex:0 0 260px; min-width:0; }
 }
@media (max-width:900px){
  #proRataFields .control-row .grow,
  #proRataFields2 .control-row .grow {
    flex:0 1 100%;
    min-width:0 !important;
    max-width:100%;
  }
  #proRataFields .num-wrap,
  #proRataFields2 .num-wrap {
    min-width:0;
    max-width:100%;
    width:100%;
    box-sizing:border-box;
  }
  #proRataFields input[type="number"],
  #proRataFields2 input[type="number"] {
    min-width:0;
  }
  #proRataFields .control-row label.has-tip,
  #proRataFields2 .control-row label.has-tip {
   display:block;
   min-width:0 !important;
   max-width:100%;
   white-space:normal;
   overflow-wrap:break-word;
  }
  #proRataFields .control-row label.has-tip .tooltip,
  #proRataFields2 .control-row label.has-tip .tooltip {
   margin-left:6px;
  }
 }
 .main .input-group,.main .num-wrap,.main select{max-width:none;}
 .main .field,.main .field.full,.main .field.third{max-width:none;justify-self:stretch;}
 #job1Section > .form-section:first-child { position:relative; }
#job1Section > .form-section:first-child > .form-section-body { padding-bottom:16px; }
.working-hours-row { align-items:center; }
.working-hours-row .second-job-inline { margin-left:auto; display:flex !important; align-items:center; gap:8px; white-space:nowrap; }
.working-hours-row .working-hours-info { margin-left:2px; vertical-align:middle; }
.working-hours-row .info-icon,
.working-hours-hint .info-icon { margin-left:0; width:18px; min-width:18px; height:18px; min-height:18px; flex:0 0 18px; padding:0 !important; box-sizing:border-box; font-size:11px; }
.working-hours-hint { margin-top:8px; display:inline-flex; align-items:center; gap:7px; width:max-content; max-width:100%; }
.working-hours-hint .hint-text { flex:0 1 auto; min-width:0; }
.working-hours-hint .tooltip { margin-left:0 !important; flex:0 0 auto !important; }
.second-job-working-hours-hint {
  margin-bottom: 14px;
}
.second-job-total-days-hint {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  margin-top: 10px;
  margin-bottom: 14px;
}
.second-job-total-days-hint .hint-text {
  flex: 0 1 auto;
  min-width: 0;
}
.second-job-total-days-hint .tooltip {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
}
.second-job-total-days-hint .info-icon {
  margin-left: 0;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  padding: 0 !important;
  box-sizing: border-box;
  font-size: 11px;
}
.pro-rata-hint { display:inline-flex; align-items:center; justify-content:flex-start; gap:7px; flex-wrap:wrap; width:max-content; max-width:100%; margin:0; }
.pro-rata-hint .hint-text { flex:0 1 auto; }
.pro-rata-hint .tooltip { margin-left:0; flex:0 0 auto; display:inline-flex; }
.pro-rata-hint .info-icon { margin-left:0; width:18px; min-width:18px; height:18px; min-height:18px; flex:0 0 18px; padding:0 !important; box-sizing:border-box; font-size:11px; }
 #pensionContribMain{max-width:none;}
 #pensionContribMain .grid,
 #pensionContrib2 .grid{grid-template-columns:1fr; gap:14px;}
 .pension-inline{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:flex-end;}
 .pension-item{min-width:0;}
 .pension-item label{margin-bottom:8px;}
 .pension-item .num-wrap{max-width:none;}
 #salaryType{margin-left:0!important;}
 .header{position:-webkit-sticky!important; position:sticky!important; top:0; z-index:1000; isolation:isolate; -webkit-transform:translateZ(0); transform:translateZ(0);}
@media (min-width: 1920.01px) {
 .header {
  --header-wide-gutter: calc((100vw - 1920px) / 2);
  padding-left: calc(var(--header-wide-gutter) + 24px);
  padding-right: calc(var(--header-wide-gutter) + 24px);
 }
 .auth-btn { right: calc(var(--header-wide-gutter) + 14px) !important; }
 .header-play-link { right: calc(var(--header-wide-gutter) + 118px); }
 .header-info-link { right: calc(var(--header-wide-gutter) + 164px); }
 .theme-toggle-btn { right: calc(var(--header-wide-gutter) + 210px); }
}
 label.has-tip{display:flex; align-items:center; justify-content:space-between; gap:10px;} label.has-tip .tooltip{margin-left:auto;} .hint.has-tip{display:flex; align-items:flex-start;} .hint.has-tip .hint-text{flex:1 1 auto; min-width:0;} .hint.has-tip .tooltip{flex:0 0 auto; margin-left:12px;} .tooltip{margin-left:auto;}
.hint.second-job-total-days-hint.has-tip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  max-width: 100%;
}
.hint.second-job-total-days-hint.has-tip .hint-text {
  flex: 0 1 auto;
}
.hint.second-job-total-days-hint.has-tip .tooltip {
  margin-left: 0 !important;
}
#baseSalaryField > label,#bonusField > label{margin-bottom:6px;} .inputs-row{display:flex; align-items:center; gap:18px;} #baseSalaryField > .hint,#bonusField > .hint{margin-top:10px;} #bonusField .hint{display:flex; align-items:center; gap:10px;} #bonusField .hint .tooltip{margin-left:auto;}
@media (min-width: 900.01px) {
  #j1BaseSection {
    position: relative;
    padding-bottom: 46px;
  }
  #j1HoursField .second-job-inline {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-left: 0 !important;
  }
  #j1HoursField .second-job-inline .second-job-label {
    width: auto !important;
    min-width: 0 !important;
  }
  #j1HoursField .second-job-inline .adv-switch {
    margin-left: 0 !important;
    flex: 0 0 auto !important;
  }
  #j1HoursField .working-hours-row {
    position: static;
    padding-bottom: 0;
  }
  #j1HoursField .working-hours-row .second-job-inline {
    position: absolute;
    right: 14px;
    bottom: 14px;
    margin-left: 0;
    transform: translateY(0);
    z-index: 2;
  }
}
@media (min-width: 900.01px) {
  #baseSalaryField .inputs-row,
  #baseSalaryField2 .inputs-row {
    width: 400px;
    max-width: 400px;
    flex-wrap: nowrap;
    gap: 10px;
  }
  #baseSalaryField .inputs-row .grow,
  #baseSalaryField2 .inputs-row .grow {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }
  #baseSalaryField .input-group,
  #baseSalaryField2 .input-group {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  #baseSalaryField #salaryType,
  #baseSalaryField2 #salaryType2 {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    flex: 0 0 90px;
    padding-left: 9px;
    padding-right: 22px;
  }
  #proRataFields .grow,
  #proRataFields2 .grow,
  #proRataFields .input-group,
  #proRataFields2 .input-group,
  #j1HoursField .input-group.num-wrap {
    width: 400px !important;
    min-width: 400px !important;
    max-width: 400px !important;
  }
}
@media (min-width: 900.01px) and (max-width: 1120px) {
  #baseSalaryField .inputs-row,
  #baseSalaryField2 .inputs-row {
    margin-left: auto;
    margin-right: auto;
  }
  #baseSalaryField,
  #baseSalaryField2,
  #proRataFields,
  #proRataFields2,
  #j1HoursField {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #baseSalaryField {
    width: min(500px, 100%);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  #baseSalaryField > .hint,
  #baseSalaryField2 > .hint,
  #baseSalaryField #salaryHintRow,
  #baseSalaryField2 #salaryHintRow2,
  #proRataFields,
  #proRataFields2,
  #j1HoursField > .hint,
  #j1HoursField .working-hours-hint {
    width: 500px;
    max-width: 500px;
  }
  #proRataFields .control-row,
  #proRataFields2 .control-row {
    width: 400px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  #proRataFields .grow,
  #proRataFields2 .grow,
  #j1HoursField .working-hours-row .input-group.num-wrap {
    width: 400px !important;
    min-width: 400px !important;
    max-width: 400px !important;
  }
  #proRataHoursLabel,
  #proRataHours2Label {
    width: 500px;
    max-width: 500px;
    align-self: flex-start;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }
  #proRataHoursLabel .hint-text,
  #proRataHours2Label .hint-text {
    flex: 0 1 auto;
    text-align: left;
  }
  #proRataHoursLabel .tooltip,
  #proRataHours2Label .tooltip {
    margin-left: 0 !important;
  }
  #j1HoursField .working-hours-hint {
    display: flex;
    width: 500px;
    max-width: 500px;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    align-self: flex-start;
    margin-left: auto;
    margin-right: auto;
  }
  #j1HoursField .working-hours-hint .hint-text {
    flex: 0 0 auto;
  }
  #j1HoursField .working-hours-hint .tooltip {
    margin-left: 4px !important;
    flex: 0 0 auto !important;
  }
  #hoursPerWeek2Hint {
    width: max-content;
    max-width: 100%;
    align-self: flex-start;
    margin-left: 0;
    margin-right: auto;
  }
  #j1HoursField .working-hours-hint .tooltip,
  #hoursPerWeek2Hint .tooltip {
    margin-left: 0 !important;
    flex: 0 0 auto !important;
  }
  #j1HoursField .working-hours-hint .info-icon,
  #hoursPerWeek2Hint .info-icon {
    margin-left: 0 !important;
  }
  #j1HoursField .working-hours-row {
    width: 500px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  #j2BaseSection .field.third,
  #j2BaseSection .field.third .control-row {
    width: 500px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  #j2BaseSection .field.third .control-row .grow {
    min-width: 0;
    max-width: 500px;
  }
  #j2BaseSection .field.third .control-row .grow .input-group,
  #j2BaseSection .field.third .control-row .grow .num-wrap {
    width: 100%;
    max-width: 100%;
  }
  #j2BaseSection #hoursPerWeek2Hint,
  #j2BaseSection .field.third > .hint {
    width: 500px;
    max-width: 500px;
    margin-left: 0;
    margin-right: auto;
  }
  #j2BaseSection #hoursPerWeek2Hint {
    width: max-content;
    max-width: 100%;
    align-self: flex-start;
  }
}
@media (min-width: 1121px) {
  #baseSalaryField .inputs-row,
  #baseSalaryField2 .inputs-row {
    margin-left: 0;
    margin-right: 0;
  }
  #baseSalaryField,
  #baseSalaryField2,
  #proRataFields,
  #proRataFields2,
  #j1HoursField {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #baseSalaryField > .hint,
  #baseSalaryField2 > .hint,
  #baseSalaryField #salaryHintRow,
  #baseSalaryField2 #salaryHintRow2,
  #proRataFields,
  #proRataFields2,
  #j1HoursField > .hint,
  #j1HoursField .working-hours-hint {
    width: 500px;
    max-width: 500px;
  }
  #salaryHintRow,
  #salaryHintRow2,
  #salaryHint2 {
    width: 500px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  #j1HoursField .working-hours-hint,
  #hoursPerWeek2Hint {
    display: inline-flex;
    width: 500px;
    max-width: 500px;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin-left: auto;
    margin-right: auto;
  }
  #j1HoursField .working-hours-hint .tooltip,
  #hoursPerWeek2Hint .tooltip {
    margin-left: 0 !important;
    flex: 0 0 auto !important;
  }
  #baseSalaryField .inputs-row,
  #baseSalaryField2 .inputs-row {
    width: 500px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  #baseSalaryField #salaryHintRow,
  #baseSalaryField #proRataHoursLabel,
  #baseSalaryField .working-hours-hint {
    width: 500px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  #bonusField {
    width: min(500px, 100%);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  #bonusField .bonus-rows,
  #bonusField .bonus-row {
    width: 100%;
  }
  #pensionContribMain .grid,
  #pensionContrib2 .grid {
    width: min(500px, 100%);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  #pensionContribMain .pension-inline,
  #pensionContrib2 .pension-inline {
    width: 100%;
  }
  #j2BaseSection {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #j2BaseSection .form-section-body,
  #j2BaseSection .field.third,
  #j2BaseSection .field.third .inputs-row,
  #j2BaseSection .field.third .control-row,
  #j2BaseSection .field.third > .hint,
  #j2BaseSection #hoursPerWeek2Hint {
    width: min(500px, 100%);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  #bonusField2,
  #pensionContrib2,
  #j2PensionSection .form-section-body,
  #j2BonusSection .form-section-body,
  #overtimeRows2,
  details.form-section:has(#overtimeRows2) .form-section-body {
    width: min(500px, 100%);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  #bonusField2 .bonus-rows,
  #bonusField2 .bonus-row,
  #pensionContrib2 .pension-inline,
  #pensionContrib2 .pension-grid-head,
  #overtimeRows2 {
    width: 100%;
  }
  #j2BaseSection .field.third .inputs-row .grow,
  #j2BaseSection .field.third .control-row .grow {
    min-width: 0;
    max-width: 500px;
  }
  #j2BaseSection .field.third .inputs-row .grow .input-group,
  #j2BaseSection .field.third .control-row .grow .input-group,
  #j2BaseSection .field.third .control-row .grow .num-wrap {
    width: 100%;
    max-width: 100%;
  }
  #j2BonusSection .form-section-body,
  #j2PensionSection .form-section-body,
  #j2OvertimeSection .form-section-body {
    width: min(500px, 100%);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  #j2BonusSection .field.third.field-block,
  #j2PensionSection .field.full,
  #j2OvertimeSection .field.third.field-block {
    width: 100%;
    max-width: 100%;
  }
}
 .layout{grid-template-areas:"sidebar main";} .layout > .sidebar{grid-area:sidebar;} .layout > .main{grid-area:main;}
 details.panel{padding:0;} details.panel > summary{list-style:none;} details.panel > summary::-webkit-details-marker{display:none;} html, body{max-width:100%; overflow-x:clip;} .container,.card,.content,.layout,.main,#resultsWrap{max-width:100%;} table{max-width:100%;} .chart-wrap,.summary{min-width:0;} .layout > .sidebar, .layout > .main { min-width: 0; } /* Breakdown scroll arrows — desktop only */
@media (min-width: 1600px) {
 .content { width: 100%; max-width: 1600px !important; margin-left: auto !important; margin-right: auto !important; }
 }
@media (min-width: 900.01px) and (max-width: 1120px) {
  #baseSalaryField .inputs-row,
  #baseSalaryField2 .inputs-row {
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
  }
  #baseSalaryField #salaryType,
  #baseSalaryField2 #salaryType2 {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px;
    flex: 0 0 90px;
    padding-left: 9px;
    padding-right: 22px;
  }
}

 .breakdown-scroll-outer { position: relative; }
.hh-scroll-outer { position: relative; width: 100%; box-sizing: border-box; }
.jc-scroll-outer { position: relative; width: 100%; box-sizing: border-box; }
 .bk-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 32px; height: 56px; background: rgba(15,25,40,0.85); border: 1px solid var(--border); border-radius: 8px; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: background 0.15s, opacity 0.2s; backdrop-filter: blur(4px); padding: 0; }
 .bk-arrow:hover { background: rgba(126,200,255,0.10); border-color: var(--focus-border); }
 .bk-arrow.hidden { opacity: 0; pointer-events: none; }
 .bk-arrow-left { left: -16px; }
 .bk-arrow-right { right: -16px; }
 .breakdown-table { overflow-x: scroll; overflow-y: hidden; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); scrollbar-width: auto; scrollbar-color: rgba(255,255,255,0.35) rgba(255,255,255,0.08); }
 .breakdown-card { background: rgba(99,179,237,0.04); border: 1px solid rgba(99,179,237,0.2); border-radius: 14px; padding: 16px 15px 15px; }
 .breakdown-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
 .breakdown-card-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #7ec8ff; }
 .breakdown-title-with-action { display: inline-flex; align-items: center; gap: 8px; }
 .breakdown-transpose-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(99,179,237,0.30);
  background: rgba(99,179,237,0.08);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
 }
 .breakdown-transpose-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
 .breakdown-transpose-btn:hover {
  background: rgba(99,179,237,0.16);
  border-color: rgba(99,179,237,0.50);
  color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
 }
 .breakdown-transpose-btn:focus-visible {
  outline: 2px solid var(--focus-border);
  outline-offset: 2px;
 }
 .breakdown-transpose-btn.active {
  background: linear-gradient(180deg, rgba(77,163,255,0.24), rgba(77,163,255,0.13));
  border-color: rgba(77,163,255,0.62);
  color: #bfdbfe;
  box-shadow: 0 0 0 3px rgba(77,163,255,0.12);
 }
@media (min-width: 900.01px) { .breakdown-table table { min-width: 900px; } } .breakdown-table::-webkit-scrollbar { height: 16px; } .breakdown-table::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 0 0 14px 14px; } .breakdown-table::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.35); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; } .breakdown-table::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.55); background-clip: content-box; } .breakdown-table table { border: none !important; border-radius: 0 !important; box-shadow: none !important; margin-top: 0 !important; overflow: visible !important; border-collapse: separate; border-spacing: 0; } .breakdown-table th, .breakdown-table td { text-align: center !important; border-right: 1px dotted rgba(255,255,255,0.1); } .breakdown-table th:first-child, .breakdown-table td:first-child { text-align: left !important; position: sticky; left: 0; z-index: 2; background: var(--table-head); width: 160px; min-width: 160px; } .breakdown-table tbody td:first-child { background: var(--table-head); font-weight: 700; }
 .breakdown-table .breakdown-transposed tbody td:first-child { background: var(--table-head); font-weight: 600; }
@media (max-width:900px){
  .breakdown-scroll-outer::after { opacity: 0; transition: opacity 0.2s; }
  .breakdown-scroll-outer.bd-shadow-visible::after { opacity: 1; }
}
 .breakdown-table .breakdown-transposed tbody tr:nth-child(even) td:first-child { background: var(--table-head); } .breakdown-table tbody tr:nth-child(even) td:first-child { background: var(--table-head); } .breakdown-table th:last-child, .breakdown-table td:last-child { border-right: none; } .section-block { min-width: 0; overflow-x: hidden; } #resultsWrap { min-width: 0; }
 .breakdown-carousel{display:none;} .breakdown-table{display:block;} .bc-track{display:flex; gap:12px; overflow-x:auto; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; scroll-snap-type:x mandatory; padding-bottom:10px; scrollbar-width:none;} .bc-track::-webkit-scrollbar{display:none;} .bc-slide{flex:0 0 100%; scroll-snap-align:start; background:transparent;} .bc-table{width:100%; border-collapse:collapse; background:var(--table-row); border-radius:14px; overflow:hidden; border:1px solid var(--border); box-shadow:var(--shadow); min-width:0!important;} .bc-table th,.bc-table td{padding:12px 14px; border-bottom:1px solid var(--border); font-size:14px; color:var(--text);} .bc-table th{ text-align:left; background:var(--table-head); text-transform:uppercase; letter-spacing:0.03em; font-size:12px; color:#cbd5e1;} .bc-table td:last-child,.bc-table th:last-child{ text-align:right!important; font-variant-numeric:tabular-nums;} .bc-table td:first-child,.bc-table th:first-child{ text-align:left!important;} .bc-table tr:last-child td{border-bottom:none;} .bc-dots{display:flex; gap:8px; justify-content:center; align-items:center; margin-top:10px;} .bc-dot{width:8px; height:8px; border-radius:999px; border:1px solid var(--border); background:rgba(255,255,255,0.06); cursor:pointer; padding:0;} .bc-dot.active{background:rgba(77,163,255,0.55); border-color:rgba(77,163,255,0.85);}
 .no-sticky .header{position:fixed!important; left:0; right:0; top:0;} .no-sticky body{padding-top:var(--header-fixed-offset, 0px);}
@media (max-width:900px){
 html { font-size: clamp(15px, max(min(4.375vw, 16px), calc(1px + 4.375vw)), 19px); }
 body{font-size:clamp(0.75rem, 2.6vw, 0.875rem);}
 .content{padding-left:clamp(0.375rem, 1.45vw, 0.5rem); padding-right:clamp(0.375rem, 1.45vw, 0.5rem);}
 .form-section > summary{padding-left:0.75rem; padding-right:0.75rem; font-size:clamp(0.8125rem, 2.85vw, 0.9375rem);}
 .form-section > .form-section-body{padding-left:clamp(0.625rem, 2.15vw, 0.75rem); padding-right:clamp(0.625rem, 2.15vw, 0.75rem);}
 .hint{font-size:0.75rem; line-height:1.45;}
 .input-prefix{min-width:1.875rem; flex-basis:1.875rem; padding-left:0.375rem; padding-right:0.375rem;}
 input[type="number"],
 input[type="text"],
 select,
 .mini-select{font-size:0.875rem!important;}
 #baseSalaryField .inputs-row,
 #baseSalaryField2 .inputs-row{gap:clamp(0.4375rem, 1.8vw, 0.625rem);}
 #baseSalaryField #salaryType,
 #baseSalaryField2 #salaryType2{min-width:clamp(4.625rem, 13.4vw, 5.125rem)!important; max-width:clamp(4.875rem, 15vw, 5.75rem); flex-basis:clamp(4.875rem, 15vw, 5.75rem); padding-left:clamp(0.5rem, 1.6vw, 0.5625rem); padding-right:clamp(1.3125rem, 4vw, 1.5rem); font-size:0.75rem!important;}
 #baseSalaryField .input-group > input[type="number"],
 #baseSalaryField2 .input-group > input[type="number"]{padding-left:clamp(0.625rem, 2.25vw, 0.875rem); padding-right:clamp(0.625rem, 2.25vw, 0.875rem);}
 #proRataBtn,
 #proRataBtn2{width:clamp(3.75rem, 15.7vw, 5.5rem)!important; min-width:clamp(3.75rem, 15.7vw, 5.5rem)!important; max-width:clamp(3.75rem, 15.7vw, 5.5rem)!important; flex:0 0 clamp(3.75rem, 15.7vw, 5.5rem)!important; padding-left:clamp(0.1875rem, 1.4vw, 0.5rem)!important; padding-right:clamp(0.1875rem, 1.4vw, 0.5rem)!important; font-size:clamp(0.625rem, 2.25vw, 0.75rem)!important; line-height:1.1;}
 #j1HoursField .control-row{gap:0.5rem!important;}
 #j1HoursField .input-group.num-wrap{width:16.875rem!important; max-width:100%;}
 #j1HoursField .input-group.num-wrap > input[type="number"]{font-size:0.875rem!important; font-weight:400;}
 #j1HoursField .stepper,
 #proRataFields .stepper{width:5.375rem; flex-basis:5.375rem;}
 #j1HoursField .step-btn,
 #proRataFields .step-btn{min-width:2.6875rem;}
 .metric .value{font-size:clamp(1.4375rem, 5vw, 1.625rem)!important;}
 .metric h3{font-size:0.75rem!important;}
 th,
 td{font-size:0.75rem;}
 .ot-row{ grid-template-columns:minmax(0,1fr) clamp(3.75rem, 12vw, 4.125rem) 2.25rem !important; gap:0.4375rem; }
 .ot-row .select-animate{ padding-left:0.5rem; padding-right:1.25rem; }
 .bonus-row .btn-plus-row,
 .bonus-remove{width:2.625rem; min-width:2.625rem; height:48px;}
 .bonus-row{grid-template-columns:minmax(0,1fr) clamp(6.625rem, 31vw, 6.875rem) 2.625rem !important; gap:clamp(0.375rem, 1.8vw, 0.4375rem);}
 .bonus-type,
 .bonus-type2{font-size:clamp(0.6875rem, 2.25vw, 0.8125rem)!important; padding-left:clamp(0.25rem, 1.1vw, 0.5rem); padding-right:clamp(0.75rem, 3vw, 1.25rem);}
 .bonus-row input[type="number"]{font-size:0.875rem!important; font-weight:400;}
 .bonus-row .input-group > input[type="number"]{padding-left:clamp(0.625rem, 2.25vw, 0.875rem); padding-right:clamp(0.625rem, 2.25vw, 0.875rem);}
 #salary,
 #salary2,
 #hoursPerWeek,
 #hoursPerWeek2,
 #proRataHours,
 #proRataHours2,
 #employeePension,
 #employerPension,
 #employeePension2,
 #employerPension2,
 #j1HoursField .input-group.num-wrap > #hoursPerWeek,
 #j2BaseSection .input-group.num-wrap > #hoursPerWeek2,
 #job1Section .bonus-row input.bonus-amount,
 #job2Section .bonus-row input.bonus-amount2,
 .bonus-row .bonus-amount,
 .bonus-row .bonus-amount2{font-size:clamp(0.875rem, calc(-0.5rem + 6.75vw), 1.125rem)!important;}
 #j2BaseSection .input-group.num-wrap > #proRataHours2,
 #j2BaseSection .input-group.num-wrap > #hoursPerWeek2{font-size:0.875rem!important;}
 .benefit-row{gap:clamp(0.375rem, 1.5vw, 0.5rem);}
 .benefit-row .input-group{min-width:0;}
 .benefit-row .input-prefix{min-width:clamp(1.6rem, 5vw, 1.875rem); flex-basis:clamp(1.6rem, 5vw, 1.875rem);}
 .benefit-row .input-group > input[type="number"]{padding-left:clamp(0.35rem, 1.5vw, 0.625rem) !important; padding-right:clamp(0.35rem, 1.5vw, 0.625rem) !important;}
 .benefit-row .stepper{width:clamp(3.5rem, 14.75vw, 3.875rem) !important; flex-basis:clamp(3.5rem, 14.75vw, 3.875rem) !important;}
 .benefit-row .step-btn{min-width:0 !important;}
 .benefit-period-sel{flex:0 0 clamp(6.25rem, 30vw, 8rem) !important; width:clamp(6.25rem, 30vw, 8rem) !important; padding-left:0.5rem !important; padding-right:1.5rem !important;}
 #pensionContribMain .pension-inline,
 #pensionContrib2 .pension-inline { gap: 0.5rem; }
 #pensionContribMain .pension-control-row,
 #pensionContrib2 .pension-control-row { gap: 0.3125rem; }
 #pensionContribMain .pension-item .input-prefix,
 #pensionContrib2 .pension-item .input-prefix { min-width: 4rem; flex-basis: 4rem; padding: 0; }
 #pensionContribMain .pension-item .pension-unit-toggle,
 #pensionContrib2 .pension-item .pension-unit-toggle { flex-basis: 4rem; }
 #pensionContribMain .pension-item .pmt-btn,
 #pensionContrib2 .pension-item .pmt-btn { min-height: 2.875rem; font-size: 0.8125rem; }
 #pensionContribMain .pension-item .num-wrap > input[type="number"],
 #pensionContrib2 .pension-item .num-wrap > input[type="number"] { min-width: 2rem; padding-left: 0.375rem; padding-right: 0.3125rem; }
 #pensionContribMain .pension-control-row .input-group > input[type="number"],
 #pensionContrib2 .pension-control-row .input-group > input[type="number"] { border-left: 1px solid var(--border) !important; }
 #pensionContribMain .pension-item .stepper,
 #pensionContrib2 .pension-item .stepper { width: 3.375rem !important; flex-basis: 3.375rem !important; }
 #pensionContribMain .pension-item .step-btn,
 #pensionContrib2 .pension-item .step-btn { min-width: 1.6875rem; }
}
@media (max-width:560px){
 .raise-bar { align-items:flex-start; }
 #raiseInputWrap.visible { width:100%; flex-basis:100%; justify-content:flex-start; }
 .raise-input-row { flex:1 1 100%; justify-content:flex-start; flex-wrap:wrap; }
 #annualNetMetric > .raise-bar.is-open .raise-input-row { flex:1 1 100%; flex-wrap:wrap; }
 .raise-input-label { order:1; flex:0 0 auto; text-align:left; display:flex; align-items:baseline; gap:0.375rem; }
 #annualNetMetric > .raise-bar.is-open .raise-input-label { flex:0 0 auto; text-align:left; }
 .raise-input-label + .raise-mode-toggle { order:3; }
 .raise-input-label + .raise-mode-toggle + .raise-amount-wrap { order:4; }
 .raise-input-label + .raise-mode-toggle + .raise-amount-wrap + .raise-amount-hint {
   order:2;
   flex:1 0 calc(100% - 7.5rem);
   min-width:0;
   max-width:none;
   margin-left:0.125rem;
   align-self:baseline;
 }
 #raiseInputWrap .raise-mode-toggle { flex:0 0 7.875rem; }
 #raiseInputWrap .raise-mode-btn { min-width:3.625rem; padding-left:0.75rem; padding-right:0.75rem; }
 .raise-bonus-note { padding-left:0; width:100%; }
 .raise-amount-wrap { flex:1 1 0; width:auto; max-width:calc(100% - 9.625rem); margin-right:1.25rem; }
 .raise-amount-hint { flex:0 0 auto; }
 .raise-bar.has-raise-values .save-raised-inline { display:none; }
 .save-raised-fab.is-visible { display:inline-flex !important; }
 .save-raised-profile-btn.is-visible { display:none !important; }
 #annualNetMetric .th-row { flex-wrap:wrap; }
 #annualNetMetric .th-row .raise-delta-badge { margin-left:0; }
 .takehome-tools { gap:0.75rem; }
 .takehome-tools > .raise-toggle-btn,
 .takehome-tools > .target-toggle-btn { flex-basis:100%; }
}
@media (min-width: 561px) and (max-width: 753px) {
 .takehome-tools > .raise-toggle-btn,
 .takehome-tools > .target-toggle-btn {
   flex: 1 1 calc(50% - 0.375rem);
   max-width: calc(50% - 0.375rem);
 }
}
@media (min-width:380px) and (max-width:900px){
 #salary,
 #salary2{font-size:clamp(1rem, 5vw, 1.25rem)!important;}
}
 @media (max-width:900px){ .layout{grid-template-columns:1fr; grid-template-areas:"main" "sidebar"; gap:14px;} .layout > .sidebar{position:static;} #actionsBar{margin-top:14px;} #resultsWrap{margin-top:18px;} .content,.layout,.main,#resultsWrap{overflow-x:clip;} }
 @media (max-width:900px){
  .pay-breakdown-card { padding: 12px 8px 8px; }
  .pay-breakdown-card .breakdown-card-header { margin-bottom: 10px; padding: 0 8px; }
 }
 @media (max-width:900px){ .breakdown-carousel{display:none;} .breakdown-scroll-outer{position:relative; overflow:hidden;} .breakdown-scroll-outer::after{content:'';position:absolute;left:120px;top:0;bottom:0;width:28px;background:linear-gradient(to right,rgba(0,0,0,0.55),transparent);pointer-events:none;z-index:5;} .hh-scroll-outer::after{content:'';position:absolute;left:110px;top:0;bottom:0;width:28px;background:linear-gradient(to right,rgba(0,0,0,0.55),transparent);pointer-events:none;z-index:5;opacity:0;transition:opacity 0.2s;} .hh-scroll-outer.hh-shadow-visible::after{opacity:1;} .jc-scroll-outer::after{content:'';position:absolute;left:110px;top:0;bottom:0;width:28px;background:linear-gradient(to right,rgba(0,0,0,0.55),transparent);pointer-events:none;z-index:5;opacity:0;transition:opacity 0.2s;} .jc-scroll-outer.jc-shadow-visible::after{opacity:1;} .breakdown-card{overflow-x:clip;} .content,.layout,.main,#resultsWrap{overflow-x:clip!important;} .breakdown-table{display:block; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; border-radius:12px; scrollbar-width:none; -ms-overflow-style:none;} .breakdown-table::-webkit-scrollbar{width:0!important;height:0!important;display:none;} .breakdown-table th:first-child,.breakdown-table td:first-child{position:-webkit-sticky!important; position:sticky!important; left:0!important; z-index:3!important; background:var(--table-head)!important; width:120px!important; min-width:120px!important; max-width:120px!important; border-right:2px solid rgba(99,179,237,0.25);} .breakdown-table table{display:table; min-width:560px; width:max-content; max-width:none;} .breakdown-table table thead,.breakdown-table table tbody{display:table-header-group;} .breakdown-table table tbody{display:table-row-group;} .chart-wrap{grid-template-columns:1fr;} #paySplitChart{max-width:100%;} .control-row{flex-wrap:wrap;} }
@media (max-width:900px){ .second-job-inline { display:flex !important; }
 .content{padding:14px 12px 22px;} .header{padding:1px 14px 1px; box-shadow:0 12px 30px rgba(0,0,0,0.35); justify-content:center;} .brand-logo-desktop{display:none;} .brand-logo-mobile{display:block;}  .header p{font-size:13px; line-height:1.45;} .panel{padding:12px; border-radius:12px;} .summary{grid-template-columns:1fr; gap:12px;} #annualNetMetric { grid-column: span 1; } .summary-with-percentile { flex-direction:column; } .summary-with-percentile .summary { flex-basis:auto; } .summary-with-percentile #percentilePanel { flex-basis:auto; } .metric .value{font-size:24px;} .inputs-row{display:flex; flex-wrap:wrap; gap:12px;} .inputs-row .grow{width:100%; min-width:100%;} #baseSalaryField #salaryType{width:100%!important; min-width:0!important;} .control-row{flex-wrap:wrap; gap:10px;} .control-row label{min-width:100%; flex:0 0 100%;} .control-row .grow{min-width:100%; max-width:100%;} #baseSalaryField .inputs-row, #baseSalaryField2 .inputs-row{flex-wrap:nowrap; align-items:stretch;} #baseSalaryField .inputs-row .grow, #baseSalaryField2 .inputs-row .grow{width:auto; min-width:0; flex:1 1 0;} #baseSalaryField #salaryType, #baseSalaryField2 #salaryType2{width:auto!important; min-width:90px!important; flex:0 0 auto;} .pension-inline{display:grid;grid-template-columns:1fr 1fr;gap:12px;} .pension-item{min-width:0; flex:1 1 0;} .pension-item .stepper { width:110px; flex-basis:110px; } }
@media (max-width:900px){
 html { overflow-x:hidden!important; max-width:100%; }
 body { max-width:100%; }
 html {
   height: auto !important;
   min-height: 100%;
   overflow-y: auto !important;
 }
 body {
   height: auto !important;
   min-height: 100%;
   overflow: visible !important;
 }
  html.mobile-tab-open,
  html.mobile-tab-open body {
    height: 100dvh !important;
    overflow-y: hidden !important;
  }
  html.mobile-tab-open .header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 1001;
  }
  html.mobile-tab-open .mobile-view {
    top: var(--header-h, 70px) !important;
  }
 .container,
 .card,
 .content,
 .layout,
 .layout > .main,
 .layout > .sidebar {
   height: auto !important;
   max-height: none !important;
   overflow-y: visible !important;
 }
 .form-section { max-width:100%; overflow:visible; }
 .main, #job1Section, #job2Section, .form-section-body, .grid, .field { min-width:0; max-width:100%; box-sizing:border-box; }
 .form-section > summary .form-section-heading { gap:7px; }
 .form-section > summary .form-section-heading > span:not(.form-section-icon) { gap:10px; width:100%; }
 .form-section > summary .form-section-heading > span:not(.form-section-icon)::before,
 .form-section > summary .form-section-heading > span:not(.form-section-icon)::after { width:34px; flex-basis:34px; }
 #baseSalaryField,
 #baseSalaryField2,
 #baseSalaryField .inputs-row,
 #baseSalaryField2 .inputs-row { min-width:0; max-width:100%; box-sizing:border-box; }
 #baseSalaryField .inputs-row,
 #baseSalaryField2 .inputs-row { gap:10px; }
 #baseSalaryField .input-group,
 #baseSalaryField2 .input-group { min-width:0; max-width:100%; }
 #baseSalaryField .input-group > input[type="number"],
 #baseSalaryField2 .input-group > input[type="number"] { width:0; min-width:0; flex:1 1 auto; }
 #baseSalaryField #salaryType,
 #baseSalaryField2 #salaryType2 { min-width:82px!important; max-width:92px; }
 #proRataFields .control-row,
 #proRataFields2 .control-row,
 #proRataFields .grow,
 #proRataFields2 .grow,
 #proRataFields .input-group.num-wrap,
 #proRataFields2 .input-group.num-wrap {
   width:100% !important;
   min-width:0 !important;
   max-width:100% !important;
 }
 #baseSalaryField #proRataHoursLabel,
 #baseSalaryField2 #proRataHours2Label,
 #j1HoursField .working-hours-hint,
 #hoursPerWeek2Hint { font-size:inherit !important; line-height:inherit !important; }
 #proRataBtn,
 #proRataBtn2 { flex:0 0 88px; max-width:88px; padding-left:8px; padding-right:8px; }
}
 .ot-row{ display:grid; grid-template-columns: minmax(0,1fr) 90px 36px; gap:10px; align-items: end; }
 .ot-row .ot-cell label{ font-size:12px; color:var(--muted); font-weight:800; letter-spacing:0.02em; margin-bottom:6px; }
 .ot-remove{ width:36px; height:48px; padding:0; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; }
 .ot-row .ot-remove::before, .btn-danger.ot-remove::before, .ot-row .ot-remove2::before, .btn-danger.ot-remove2::before{ content:"×"; font-size:20px; font-weight:900; line-height:1; opacity:0.9; }
 .ot-remove2{ width:36px; height:48px; padding:0; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; }
 .btn-plus{ flex:0 0 auto; width:28px; height:28px; border-radius:8px; border:1px solid rgba(77,163,255,0.35); background:rgba(77,163,255,0.10); color:var(--primary); font-size:18px; font-weight:700; line-height:1; padding:0; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; transition:background 0.15s ease, border-color 0.15s ease; }
 .btn-plus:hover{ background:rgba(77,163,255,0.22); border-color:var(--primary); }
 .btn-plus-row{ width:36px; height:48px; border-radius:10px; }
 @media (min-width: 900.01px) {
 .sidebar .ot-row {
 grid-template-columns: minmax(0, 1fr) clamp(64px, calc(11.2903vw - 37.6129px), 78px) clamp(28px, calc(1.6129vw + 13.4839px), 30px);
 gap: clamp(5px, calc(1.6129vw - 9.5161px), 7px);
 }
 .sidebar .ot-row .input-group {
 min-width: 0;
 }
 .sidebar .ot-row .input-prefix {
 min-width: clamp(26px, calc(1.6129vw + 11.4839px), 28px);
 flex-basis: clamp(26px, calc(1.6129vw + 11.4839px), 28px);
 padding: 0 clamp(5px, calc(0.8065vw - 2.2581px), 6px);
 }
 .sidebar .ot-row .stepper {
 width: clamp(48px, calc(4.8387vw + 4.4516px), 54px);
 flex-basis: clamp(48px, calc(4.8387vw + 4.4516px), 54px);
 }
 .sidebar .ot-row .step-btn {
 min-width: clamp(24px, calc(2.4194vw + 2.2258px), 27px);
 }
 .sidebar .num-wrap > input[type="number"],
 .sidebar .input-group.num-wrap > input[type="number"] {
 padding-left: 7px;
 padding-right: 7px;
 }
 .sidebar .ot-row .select-animate {
 font-size: clamp(11px, calc(1.6129vw - 3.5161px), 13px);
 padding-left: clamp(7px, calc(1.6129vw - 7.5161px), 9px);
 padding-right: clamp(18px, calc(3.2258vw - 11.0323px), 22px);
 }
 .sidebar .ot-row .btn-plus-row,
 .sidebar .ot-remove,
 .sidebar .ot-remove2 {
 width: clamp(28px, calc(1.6129vw + 13.4839px), 30px);
 min-width: clamp(28px, calc(1.6129vw + 13.4839px), 30px);
 height: 48px;
 border-radius: 10px;
 }
 }
@media (max-width:900px){
 .ot-row{ grid-template-columns:minmax(0,1fr) 82px 36px; gap:8px; }
 .ot-row .stepper{ width:58px; flex-basis:58px; }
 .ot-row .step-btn{ min-width:29px; }
 .ot-row .num-wrap > input[type="number"],
 .ot-row .input-group.num-wrap > input[type="number"]{ padding-left:8px; padding-right:6px; }
 }
.taxcode-status{margin-top:8px; padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:var(--bg-elevated); font-size:12px; line-height:1.45;}
.taxcode-status.good{background:var(--good-bg); color:var(--good); border-color:rgba(52,211,153,0.35);}
.taxcode-status.warn{background:var(--warn-bg); color:var(--warn); border-color:rgba(245,158,11,0.35);}
.taxcode-status.bad{background:var(--danger-bg); color:var(--danger-text); border-color:rgba(239,68,68,0.38);}
.taxcode-status .taxcode-title{display:block; font-size:11px; font-weight:800; letter-spacing:0.04em; text-transform:uppercase; margin-bottom:4px; opacity:0.95;}
.taxcode-status .taxcode-body{display:block;}
body:not(.light-mode) .taxcode-status.good{background:rgba(16,185,129,0.16); color:#34d399; border-color:rgba(52,211,153,0.42);}
body:not(.light-mode) .taxcode-status.warn{background:rgba(245,158,11,0.16); color:#fbbf24; border-color:rgba(245,158,11,0.44);}
body:not(.light-mode) .taxcode-status.bad{background:rgba(239,68,68,0.18); color:#fca5a5; border-color:rgba(248,113,113,0.46);}
body.light-mode .taxcode-status.good{background:#dcfce7; color:#166534; border-color:#86efac;}
body.light-mode .taxcode-status.warn{background:#fef3c7; color:#854d0e; border-color:#facc15;}
body.light-mode .taxcode-status.bad{background:#fee2e2; color:#991b1b; border-color:#fca5a5;}
.bonus-rows{ display:flex; flex-direction:column; gap:12px; }
.bonus-row{ display:grid; grid-template-columns:minmax(0,1fr) minmax(140px,180px) 44px; gap:14px; align-items:end; }
.bonus-cell{ min-width:0; }
.bonus-cell label{ display:none; }
.bonus-grow{ min-width:0; }
.bonus-type{ width:100%; min-width:0; }
.bonus-remove{ width:36px; height:48px; padding:0; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; }
.bonus-remove::before{ content:"×"; font-size:20px; font-weight:900; line-height:1; opacity:0.9; }
@media (max-width:900px){ .bonus-row{ grid-template-columns:minmax(0,0.9fr) minmax(118px,1.15fr) 36px; gap:8px; } .bonus-type,.bonus-type2 { font-size:12px; } .pension-grid-head{ gap:10px; } }
.tooltip .tip{ --tip-shift-x:0px; }
.tooltip .tip.tip-right{ left:auto; right:0; }
.tooltip .tip.tip-right::before{ left:auto; right:12px; }
.tooltip .tip.tip-center{ left:50%; right:auto; transform:translate(-50%,-4px); }
.tooltip:hover .tip.tip-center,.tooltip:focus-within .tip.tip-center,.tooltip.open .tip.tip-center{ transform:translate(-50%,0); }
@media (max-width:900px){ .tooltip .tip{ display:none; width:min(280px, calc(100vw - 56px)); min-width:0; max-width:min(280px, calc(100vw - 56px)); box-sizing:border-box; white-space:normal; overflow-wrap:break-word; word-break:normal; } .tooltip:hover .tip,.tooltip:focus-within .tip,.tooltip.open .tip{ display:block; } .tooltip .tip.tip-mobile-center{ left:50%; right:auto; transform:translate(calc(-50% + var(--tip-shift-x)),-4px); } .tooltip:hover .tip.tip-mobile-center,.tooltip:focus-within .tip.tip-mobile-center,.tooltip.open .tip.tip-mobile-center{ transform:translate(calc(-50% + var(--tip-shift-x)),0); } .tooltip .tip.tip-mobile-center::before{ left:calc(50% - var(--tip-shift-x)); right:auto; } .working-hours-info .tip{ width:min(280px, calc(100vw - 56px)); max-width:min(280px, calc(100vw - 56px)); } }
/* Bonus tooltip: force open to the left on mobile so it doesn't clip */
@media (max-width: 900px) {
  #bonusField .tooltip .tip {
    left: auto;
    right: 0;
    transform: translateY(-4px);
  }
  #bonusField .tooltip .tip::before { left: auto; right: 12px; }
  #bonusField .tooltip:hover .tip,
  #bonusField .tooltip:focus-within .tip,
  #bonusField .tooltip.open .tip { transform: translateY(0); }
}
/* Overtime panel as collapsible */
#overtimePanel { padding: 0; }
#overtimePanel > :not(summary) { padding: 0 14px 14px; }
#overtimePanel[open] .chev { transform: rotate(-135deg); }
/* Saved profiles panel as collapsible */
#savedProfilesPanel { padding: 0; }
#savedProfilesPanel > summary.saved-panel-summary { list-style: none; cursor: pointer; padding: 0 14px; min-height: 52px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--summary-title); display: flex; align-items: center; justify-content: space-between; user-select: none; }
#savedProfilesPanel > summary.saved-panel-summary::-webkit-details-marker { display: none; }
#savedProfilesPanel > .saved-panel { padding: 0 14px 14px; }
#savedProfilesPanel[open] > summary .chev { transform: rotate(-135deg); }
#savedProfilesPanel > summary.saved-panel-summary svg {
  color: #7ec8ff;
}
#advOptions {
  position: relative;
}
#advOptions::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126,200,255,0.20), transparent);
  pointer-events: none;
}
#savedProfilesPanel,
#householdPanel,
#jobCompPanel {
  overflow: hidden;
}
#savedProfilesPanel::before,
#householdPanel::before,
#jobCompPanel::before {
  content: "";
  display: block;
  height: 3px;
}
#savedProfilesPanel::before {
  background: linear-gradient(90deg, #4da3ff, #34d399);
}
#householdPanel::before {
  background: linear-gradient(90deg, #34d399, #4da3ff);
}
#jobCompPanel::before {
  background: linear-gradient(90deg, #a78bfa, #4da3ff);
}
body:not(.light-mode) #savedProfilesPanel,
body:not(.light-mode) #householdPanel,
body:not(.light-mode) #jobCompPanel {
  border-color: rgba(99,179,237,0.24);
}
body:not(.light-mode) #savedProfilesPanel:hover,
body:not(.light-mode) #householdPanel:hover,
body:not(.light-mode) #jobCompPanel:hover {
  background: rgba(77,163,255,0.10);
  border-color: rgba(77,163,255,0.48);
}
body:not(.light-mode) #savedProfilesPanel:hover > summary.saved-panel-summary,
body:not(.light-mode) #householdPanel:hover > summary.saved-panel-summary,
body:not(.light-mode) #jobCompPanel:hover > summary.saved-panel-summary {
  background: rgba(77,163,255,0.10);
}
body:not(.light-mode) #savedProfilesPanel:hover > .saved-panel,
body:not(.light-mode) #householdPanel:hover > .saved-panel,
body:not(.light-mode) #jobCompPanel:hover > .saved-panel {
  background: rgba(77,163,255,0.10);
}
body.light-mode #savedProfilesPanel {
  background: #ffffff;
  border-color: rgba(2,119,189,0.38);
  box-shadow: 0 12px 28px rgba(15,23,42,0.07);
  overflow: hidden;
  margin-top: 22px;
  position: relative;
}
body.light-mode #advOptions::after {
  background: linear-gradient(90deg, transparent, rgba(2,119,189,0.22), transparent);
}
body.light-mode #savedProfilesPanel::before {
  background: linear-gradient(90deg, #0277bd, #16a34a);
}
body.light-mode #savedProfilesPanel > summary.saved-panel-summary {
  color: #1f3449;
  background: #ffffff;
}
body.light-mode #savedProfilesPanel:hover {
  background: #dceff8;
  border-color: #0277bd;
  outline: 1px solid var(--focus-border);
  outline-offset: -1px;
}
body.light-mode #savedProfilesPanel:hover > summary.saved-panel-summary {
  background: #dceff8;
  border-radius: 13px 13px 0 0;
}
body.light-mode #savedProfilesPanel > summary.saved-panel-summary svg {
  color: #0277bd;
}
body.light-mode #savedProfilesPanel > .saved-panel {
  background: #ffffff;
  border-radius: 0 0 14px 14px;
}
body.light-mode #savedProfilesPanel:hover > .saved-panel {
  background: #dceff8;
}
body.light-mode #savedProfilesPanel select {
  border-color: #9fc0d5;
  box-shadow: 0 1px 0 rgba(15,23,42,0.03);
}
body.light-mode #savedProfilesPanel .hint {
  color: #4a5f73;
}
body.light-mode #savedProfilesPanel .saved-actions button:not(.btn-danger),
body.light-mode #savedProfilesPanel .delete-confirm-wrap button {
  background: #eef5f9;
  border: 1px solid #b7cfde;
  color: #102033;
}
body.light-mode #savedProfilesPanel .saved-actions button:not(.btn-danger):hover,
body.light-mode #savedProfilesPanel .delete-confirm-wrap button:hover {
  background: #e2f0f7;
  border-color: #8eb8d1;
}
body.light-mode #savedProfilesPanel .saved-actions > button[onclick="loadSelectedProfile()"] {
  background: #0277bd;
  border-color: #0277bd;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(2,119,189,0.16);
}
body.light-mode #savedProfilesPanel .saved-actions > button[onclick="loadSelectedProfile()"]:hover {
  background: #075985;
  border-color: #075985;
}
body.light-mode #savedProfilesPanel .btn-danger {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}
body.light-mode #savedProfilesPanel .btn-danger:hover {
  background: #fecaca;
  border-color: #ef4444;
}
#savedProfilesPanel .saved-actions > button[onclick="loadSelectedProfile()"],
#hhSavedCombosWrap .saved-actions > button[onclick="loadSelectedHouseholdCombination()"] {
  background: #0e7490 !important;
  border: 1px solid #155e75 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(14,116,144,0.22);
}
#savedProfilesPanel .saved-actions > button[onclick="loadSelectedProfile()"]:hover,
#hhSavedCombosWrap .saved-actions > button[onclick="loadSelectedHouseholdCombination()"]:hover {
  background: #155e75 !important;
  border-color: #164e63 !important;
}
#savedProfilesPanel .delete-icon-btn,
#hhSavedCombosWrap .delete-icon-btn {
  background: #b91c1c !important;
  border: 1px solid #991b1b !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(185,28,28,0.22);
}
#savedProfilesPanel .delete-icon-btn:hover,
#hhSavedCombosWrap .delete-icon-btn:hover {
  background: #991b1b !important;
  border-color: #7f1d1d !important;
}
body.light-mode #savedProfilesPanel .saved-actions > button[onclick="loadSelectedProfile()"],
body.light-mode #hhSavedCombosWrap .saved-actions > button[onclick="loadSelectedHouseholdCombination()"] {
  background: #0f766e !important;
  border-color: #0d9488 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(15,118,110,0.18);
}
body.light-mode #savedProfilesPanel .saved-actions > button[onclick="loadSelectedProfile()"]:hover,
body.light-mode #hhSavedCombosWrap .saved-actions > button[onclick="loadSelectedHouseholdCombination()"]:hover {
  background: #0d9488 !important;
  border-color: #0f766e !important;
}
body.light-mode #savedProfilesPanel .delete-icon-btn,
body.light-mode #hhSavedCombosWrap .delete-icon-btn {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(220,38,38,0.18);
}
body.light-mode #savedProfilesPanel .delete-icon-btn:hover,
body.light-mode #hhSavedCombosWrap .delete-icon-btn:hover {
  background: #b91c1c !important;
  border-color: #991b1b !important;
}
body.light-mode #householdPanel,
body.light-mode #jobCompPanel {
  background: #ffffff;
  border-color: rgba(2,119,189,0.24);
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  overflow: hidden;
}
body.light-mode #householdPanel::before,
body.light-mode #jobCompPanel::before {
  content: "";
  display: block;
  height: 3px;
}
body.light-mode #householdPanel::before {
  background: linear-gradient(90deg, #16a34a, #0277bd);
}
body.light-mode #jobCompPanel::before {
  background: linear-gradient(90deg, #7c3aed, #0277bd);
}
body.light-mode #householdPanel > summary.saved-panel-summary,
body.light-mode #jobCompPanel > summary.saved-panel-summary {
  color: #1f3449;
  background: #ffffff;
}
body.light-mode #householdPanel > summary.saved-panel-summary svg {
  color: #16a34a;
}
body.light-mode #jobCompPanel > summary.saved-panel-summary svg {
  color: #7c3aed;
}
body.light-mode #householdPanel > .saved-panel,
body.light-mode #jobCompPanel > .saved-panel {
  background: #ffffff;
}
body.light-mode #householdPanel select,
body.light-mode #jobCompPanel select {
  border-color: #9fc0d5;
  box-shadow: 0 1px 0 rgba(15,23,42,0.03);
}
body.light-mode #householdPanel .hint,
body.light-mode #jobCompPanel .hint,
body.light-mode #jcNoProfilesMsg,
body.light-mode #hhNoProfilesMsg {
  color: #4a5f73;
}
body.light-mode #householdPanel:hover,
body.light-mode #jobCompPanel:hover {
  background: #dceff8;
  border-color: #0277bd;
  outline: 1px solid var(--focus-border);
  outline-offset: -1px;
}
body.light-mode #householdPanel:hover > summary.saved-panel-summary,
body.light-mode #jobCompPanel:hover > summary.saved-panel-summary {
  background: #dceff8;
  border-radius: 13px 13px 0 0;
}
body.light-mode #householdPanel:hover > .saved-panel,
body.light-mode #jobCompPanel:hover > .saved-panel {
  background: #dceff8;
}
body:not(.light-mode) #advOptions > .adv-acc:hover,
body:not(.light-mode) #taxCodeAcc:hover {
  background: rgba(77,163,255,0.10);
  border-color: rgba(77,163,255,0.48);
}
body:not(.light-mode) #advOptions > .adv-acc:hover > summary,
body:not(.light-mode) #taxCodeAcc:hover > summary,
body:not(.light-mode) #advOptions > .adv-acc:hover > .adv-acc-body,
body:not(.light-mode) #taxCodeAcc:hover > .adv-acc-body {
  background: rgba(77,163,255,0.10);
}
body.light-mode #advOptions > .adv-acc:hover,
body.light-mode #taxCodeAcc:hover {
  background: #dceff8;
  border-color: #0277bd;
  outline: 1px solid var(--focus-border);
  outline-offset: -1px;
}
body.light-mode #advOptions > .adv-acc:hover > summary,
body.light-mode #taxCodeAcc:hover > summary,
body.light-mode #advOptions > .adv-acc:hover > .adv-acc-body,
body.light-mode #taxCodeAcc:hover > .adv-acc-body {
  background: #dceff8;
}
body.light-mode #advOptions > .adv-acc:hover > summary,
body.light-mode #taxCodeAcc:hover > summary {
  border-radius: 10px;
}
body.light-mode #advOptions > .adv-acc[open]:hover > summary,
body.light-mode #taxCodeAcc[open]:hover > summary {
  border-radius: 10px 10px 0 0;
}
@media (max-width: 900px) {
  body:not(.light-mode) .sidebar .panel[open]:hover {
    background: var(--card-2);
    border-color: var(--border);
  }
  body:not(.light-mode) #advOptions > .adv-acc[open]:hover,
  body:not(.light-mode) #taxCodeAcc[open]:hover {
    background: #1a2540;
    border-color: #2a3a5a;
  }
  body:not(.light-mode) .sidebar .panel[open]:hover > summary,
  body:not(.light-mode) .sidebar .panel[open]:hover > .adv-acc-summary,
  body:not(.light-mode) #advOptions > .adv-acc[open]:hover > summary,
  body:not(.light-mode) #advOptions > .adv-acc[open]:hover > .adv-acc-body,
  body:not(.light-mode) #taxCodeAcc[open]:hover > summary,
  body:not(.light-mode) #taxCodeAcc[open]:hover > .adv-acc-body {
    background: transparent;
  }
  body.light-mode .sidebar .panel[open]:hover {
    background: var(--card-2);
    border-color: var(--border);
    outline: none;
  }
  body.light-mode #advOptions > .adv-acc[open]:hover,
  body.light-mode #taxCodeAcc[open]:hover {
    background: #f8fbfd;
    border-color: #b8cedc;
    outline: none;
  }
  body.light-mode .sidebar .panel[open]:hover > summary,
  body.light-mode .sidebar .panel[open]:hover > .adv-acc-summary,
  body.light-mode .sidebar .panel[open]:hover > :not(summary),
  body.light-mode .sidebar .adv-acc[open]:hover > :not(summary),
  body.light-mode #advOptions > .adv-acc[open]:hover > summary,
  body.light-mode #advOptions > .adv-acc[open]:hover > .adv-acc-body,
  body.light-mode #taxCodeAcc[open]:hover > summary,
  body.light-mode #taxCodeAcc[open]:hover > .adv-acc-body {
    background: transparent;
  }
}
/* Floating action buttons — hidden on desktop */
.fab-actions { display: none; }
@media (max-width: 900px) {
  /* Saved profiles collapsed by default on mobile */
  #savedProfilesPanel { open: initial; }
  /* fab-btn styling needed for ≤900px full-width bar */
  .fab-btn {
    padding: 13px 0;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    flex: 1;
    max-width: 160px;
    box-shadow: none;
  }
}
/* ── Mobile bottom nav ── */
.mobile-nav {
  display: none;
}
.mobile-view { display: none; }
.mobile-view-header {
  display: none;
}
.mobile-view-theme-toggle {
  display: none;
}
@media (max-width: 900px) {
  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    z-index: 500;
    box-shadow: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body.cookie-choice-open .mobile-nav,
  body.intro-visible .mobile-nav,
  body.result-info-visible .mobile-nav {
    background: transparent;
    border-top-color: transparent;
    filter: none;
    opacity: 1;
    pointer-events: none;
  }
  body.cookie-choice-open .mobile-nav .fab-actions,
  body.intro-visible .mobile-nav .fab-actions,
  body.result-info-visible .mobile-nav .fab-actions {
    background: transparent;
    border-bottom-color: transparent;
  }
  /* FAB row — top part of the sticky footer */
  #actionsBar { display: none; }
  .mobile-nav .fab-actions {
    display: flex !important;
    position: static !important;
    width: 100%;
    padding: 9px 14px;
    gap: 10px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border);
    background: var(--card-2);
    box-shadow: none;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }
  .mobile-nav .reset-action-btn,
  .mobile-nav .adv-options-action-btn {
    flex: 0 0 52px !important;
    max-width: 52px;
    height: 46px;
  }
  /* Tab bar row — bottom part of the sticky footer */
  .mobile-nav-tabs {
    display: flex;
    height: 70px;
    width: 100%;
  }
  .mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: none;
    cursor: pointer;
    padding: 12px 4px 9px;
    transition: color 0.15s;
  }
  .mobile-nav-btn.active {
    color: var(--primary);
  }
  .mobile-nav-btn svg {
    width: 22px;
    height: 22px;
    transform: translateY(-2px);
  }
  /* Cookie banner above sticky footer */
  #cookieBanner {
    bottom: 70px !important;
  }
  /* Push content above sticky footer (FAB row ~64px + tab row 70px) */
  body { padding-bottom: 134px; }
  body.simple-mode .card {
    min-height: calc(100vh - 134px);
  }
  body.intro-visible {
    padding-bottom: 0;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }
  body.intro-visible .intro-popup-modal,
  body.intro-visible .intro-popup-body {
    overscroll-behavior: contain;
    touch-action: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Push page content above nav — spacer ensures FAB never overlaps content */
  /* Hide saved profiles panel on mobile — Profiles tab handles it */
  #savedProfilesPanel { display: none !important; }
  /* Hide household & job comparison from calc page — Compare tab handles them */
  body:not(.compare-tab) #householdPanel,
  body:not(.compare-tab) #hhResultsWrap,
  body:not(.compare-tab) #jobCompPanel,
  body:not(.compare-tab) #jcResultsWrap { display: none !important; }
  /* Compare view: spacing between panels, and contain metric cards within outer card */
  #mobileCompareBody > * + * { margin-top: 14px; }
  .mobile-compare-toggle { display:flex; gap:4px; padding:3px; border:1px solid var(--border); border-radius:10px; background:var(--bg-elevated); margin-bottom:14px; }
  .mobile-compare-toggle button { flex:1; border:none; border-radius:7px; padding:9px 10px; background:transparent; color:var(--muted); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:0.04em; cursor:pointer; font-family:inherit; }
  .mobile-compare-toggle button.active { background:var(--toggle-active); color:var(--toggle-active-text); }
  #mobileCompareBody .hh-top-metrics,
  #mobileCompareBody .jc-top-metrics { max-width: 100%; overflow: hidden; }
  /* Hide header auth button on mobile — Account tab handles it */
  .auth-btn {
    display: none !important;
  }
  .header-play-link {
    display: none !important;
  }
  .header-info-link {
    display: none !important;
  }
  /* Mobile views */
  .mobile-view {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 70px;
    background: var(--bg);
    z-index: 900;
    overflow: hidden;
    grid-template-rows: auto 1fr;
  }
  .mobile-view.active {
    display: grid !important;
  }
  .mobile-view-body {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px 16px 20px;
    min-height: 0;
  }
 #mobileCompareBody,
  #mobileAccountBody,
  #mobileProfilesPanel {
    padding-left: 8px;
    padding-right: 8px;
  }
  .mobile-profile-card {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: clamp(14px, calc(5.172px + 2.759vw), 30px) clamp(16px, calc(0.552px + 4.828vw), 44px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, calc(1.517px + 3.276vw), 31px);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  }
  .mobile-profile-card:active {
    transform: translateY(1px);
    background: color-mix(in srgb, var(--card-2) 88%, #ffffff 12%);
    border-color: rgba(77,163,255,0.45);
  }
  .mobile-profile-card-name {
    font-size: clamp(15px, calc(5.621px + 2.931vw), 32px);
    font-weight: 700;
    color: var(--text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-profile-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }
  .mobile-profile-card-actions button {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
  }
  .mobile-profile-money-row {
    font-size: clamp(13px, calc(5.276px + 2.414vw), 27px);
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-profile-money-label {
    display: inline-block;
    width: clamp(76px, calc(37.379px + 12.069vw), 146px);
    font-size: clamp(11px, calc(6.034px + 1.552vw), 20px);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.75;
  }
  .mobile-profile-money-value {
    font-size: clamp(15px, calc(5.621px + 2.931vw), 32px);
    font-weight: 800;
  }
  .mobile-profile-money-unit {
    font-size: clamp(11px, calc(6.034px + 1.552vw), 20px);
    opacity: 0.75;
  }
  /* Account view panels */
  .mobile-account-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    text-align: center;
  }
  /* Profiles view — show the panel content full width */
  #mobileProfilesPanel .saved-panel {
    padding: 0;
  }
  #mobileProfilesPanel .saved-actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
  }
  #mobileProfilesPanel .saved-actions button {
    flex: 1 1 auto;
    min-width: 80px;
  }
  .mobile-account-panel .account-action-btn {
    padding: clamp(12px, calc(7.586px + 1.379vw), 20px) clamp(12px, calc(4.276px + 2.414vw), 26px) !important;
    margin-bottom: clamp(10px, calc(6.69px + 1.034vw), 16px) !important;
    gap: clamp(10px, calc(6.69px + 1.034vw), 16px);
    min-height: clamp(58px, calc(45.862px + 3.793vw), 80px);
    font-size: clamp(15px, calc(10.034px + 1.552vw), 24px);
    border-radius: clamp(10px, calc(7.793px + 0.69vw), 14px);
  }
  .mobile-account-panel .account-action-btn .account-menu-icon,
  .mobile-account-panel .account-action-btn .push-btn-icon {
    width: clamp(20px, calc(15.586px + 1.379vw), 28px);
    height: clamp(20px, calc(15.586px + 1.379vw), 28px);
    flex-basis: clamp(20px, calc(15.586px + 1.379vw), 28px);
  }
  .mobile-account-panel .account-action-btn .account-menu-icon svg,
  .mobile-account-panel .account-action-btn .push-btn-icon svg {
    width: clamp(20px, calc(15.586px + 1.379vw), 28px);
    height: clamp(20px, calc(15.586px + 1.379vw), 28px);
  }
  .mobile-profiles-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, calc(5.793px + 0.69vw), 12px);
    width: fit-content;
    max-width: 100%;
    padding: clamp(5px, calc(3.345px + 0.517vw), 8px) clamp(10px, calc(5.586px + 1.379vw), 18px);
    border: 1px solid rgba(126, 200, 255, 0.18);
    border-radius: 999px;
    background: rgba(126, 200, 255, 0.055);
    color: #9bd3ff !important;
    font-size: clamp(11px, calc(9.345px + 0.517vw), 14px) !important;
    letter-spacing: clamp(0.06em, 0.045em + 0.025vw, 0.08em) !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .mobile-profiles-section-title::before,
  .mobile-profiles-section-title::after {
    content: "";
    display: block;
    width: clamp(14px, calc(7.379px + 2.069vw), 26px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126, 200, 255, 0.45));
  }
  .mobile-profiles-section-title::after {
    background: linear-gradient(90deg, rgba(126, 200, 255, 0.45), transparent);
  }
  .mobile-profiles-section-divider {
    height: 1px;
    width: min(100%, 720px);
    margin: clamp(16px, calc(7.172px + 2.759vw), 32px) auto clamp(2px, calc(-0.207px + 0.69vw), 6px);
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.26), rgba(126, 200, 255, 0.28), rgba(148, 163, 184, 0.26), transparent);
  }
  #mobileAccountBody .mobile-account-panel > div:first-child {
    font-size: clamp(12px, calc(8.69px + 1.034vw), 18px) !important;
    margin-bottom: clamp(12px, calc(5.379px + 2.069vw), 24px) !important;
  }
  #mobileAccountBody .google-login-btn {
    min-height: clamp(42px, calc(28.759px + 4.138vw), 66px);
    margin-bottom: clamp(12px, calc(7.586px + 1.379vw), 20px);
    gap: clamp(10px, calc(6.69px + 1.034vw), 16px);
    border-radius: clamp(8px, calc(4.69px + 1.034vw), 14px);
    font-size: clamp(13px, calc(6.931px + 1.897vw), 24px);
  }
  #mobileAccountBody .google-login-icon,
  #mobileAccountBody .google-login-icon svg {
    width: clamp(18px, calc(12.483px + 1.724vw), 28px);
    height: clamp(18px, calc(12.483px + 1.724vw), 28px);
  }
  #mobileAccountBody .auth-divider {
    gap: clamp(10px, calc(6.69px + 1.034vw), 16px);
    margin-bottom: clamp(14px, calc(7.379px + 2.069vw), 26px);
    font-size: clamp(12px, calc(8.69px + 1.034vw), 18px);
  }
  #mobileAccountBody .auth-field {
    margin-bottom: clamp(14px, calc(7.379px + 2.069vw), 26px);
  }
  #mobileAccountBody .auth-field input {
    border-radius: clamp(10px, calc(7.793px + 0.69vw), 14px);
    padding: clamp(18px, calc(10.276px + 2.414vw), 32px) clamp(42px, calc(28.759px + 4.138vw), 66px) clamp(8px, calc(3.586px + 1.379vw), 16px) clamp(12px, calc(5.379px + 2.069vw), 24px);
    font-size: clamp(14px, calc(8.483px + 1.724vw), 24px);
  }
  #mobileAccountBody .auth-field label {
    left: clamp(12px, calc(5.379px + 2.069vw), 24px);
    top: clamp(13px, calc(7.483px + 1.724vw), 23px);
    font-size: clamp(14px, calc(8.483px + 1.724vw), 24px);
  }
  #mobileAccountBody .auth-field input:focus + label,
  #mobileAccountBody .auth-field input:not(:placeholder-shown) + label {
    transform: translateY(clamp(-14px, calc(-4.69px - 1.034vw), -8px));
    font-size: clamp(10px, calc(7.793px + 0.69vw), 14px);
  }
  #mobileAccountBody .auth-password-toggle {
    right: clamp(8px, calc(3.586px + 1.379vw), 16px);
    width: clamp(30px, calc(22.276px + 2.414vw), 44px);
    height: clamp(30px, calc(22.276px + 2.414vw), 44px);
    border-radius: clamp(8px, calc(5.793px + 0.69vw), 12px);
  }
  #mobileAccountBody .auth-password-toggle svg {
    width: clamp(17px, calc(12.034px + 1.552vw), 26px);
    height: clamp(17px, calc(12.034px + 1.552vw), 26px);
  }
  #mobileAccountBody .auth-form-link-row {
    margin-top: clamp(-4px, calc(-1.793px - 0.69vw), 0px);
    margin-bottom: clamp(12px, calc(5.379px + 2.069vw), 24px);
  }
  #mobileAccountBody .auth-form-link-row button {
    font-size: clamp(12px, calc(7.586px + 1.379vw), 20px) !important;
  }
  #mobileAccountBody .auth-login-primary {
    min-height: clamp(46px, calc(27.241px + 5.862vw), 80px);
    padding: clamp(11px, calc(4.379px + 2.069vw), 23px) clamp(18px, calc(11.379px + 2.069vw), 30px) !important;
    border-radius: clamp(10px, calc(6.69px + 1.034vw), 16px);
    font-size: clamp(15px, calc(10.034px + 1.552vw), 24px);
  }
  #mobileAccountBody .auth-switch-copy {
    margin-top: clamp(14px, calc(8.483px + 1.724vw), 24px);
    font-size: clamp(12px, calc(7.586px + 1.379vw), 20px);
  }
  #mobileAccountBody .auth-support-menu {
    margin-top: clamp(16px, calc(7.172px + 2.759vw), 32px);
    padding-top: clamp(14px, calc(6.276px + 2.414vw), 28px);
  }
  #mobileAccountBody .auth-support-menu summary {
    font-size: clamp(12px, calc(7.586px + 1.379vw), 20px);
  }
  #mobileAccountBody .auth-support-links {
    gap: clamp(8px, calc(3.586px + 1.379vw), 16px) clamp(12px, calc(5.379px + 2.069vw), 24px);
    margin-top: clamp(10px, calc(5.586px + 1.379vw), 18px);
  }
  #mobileAccountBody .auth-support-links a,
  #mobileAccountBody .auth-support-links button {
    min-height: clamp(28px, calc(19.172px + 2.759vw), 44px);
    font-size: clamp(12px, calc(7.586px + 1.379vw), 20px);
  }
  #mobileAccountBody .auth-support-note {
    margin-top: clamp(12px, calc(5.379px + 2.069vw), 24px);
    font-size: clamp(10px, calc(5.586px + 1.379vw), 18px);
  }
  .mi-select-menu {
    position: fixed;
    z-index: 12000;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    border: 1px solid rgba(126, 200, 255, 0.35);
    border-radius: 10px;
    background: var(--bg-elevated);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
    padding: 6px;
    box-sizing: border-box;
  }
  .mi-select-menu button {
    width: 100%;
    min-height: clamp(38px, calc(31.379px + 2.069vw), 50px);
    padding: 8px 12px;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font-size: clamp(14px, calc(11.793px + 0.69vw), 18px);
    font-weight: 500;
    text-align: center;
    line-height: 1.25;
  }
  .mi-select-menu button.is-selected {
    background: rgba(148, 163, 184, 0.18);
  }
  .mi-select-menu button:active,
  .mi-select-menu button:hover {
    background: rgba(77, 163, 255, 0.16);
  }
  body.light-mode .mobile-nav {
    background: #ffffff !important;
    border-top-color: #b8cedc;
    box-shadow: none;
  }
  body.light-mode .mobile-nav .fab-actions {
    background: #f8fbfd !important;
    border-bottom-color: #d4e3ed;
  }
  body.light-mode .mobile-nav-btn {
    color: #647789;
  }
  body.light-mode .mobile-nav-btn.active {
    color: #0277bd;
    background: rgba(2,132,199,0.08);
  }
  body.light-mode .mobile-view-header {
    background: #ffffff !important;
    border-bottom: 1px solid #b8cedc;
    color: #102033;
    box-shadow: 0 8px 18px rgba(15,23,42,0.05);
  }
  body.light-mode .mobile-view,
  body.light-mode .mobile-view-body {
    background: #f5f9fc !important;
  }
  body.light-mode #mobileProfilesPanel {
    background: #f5f9fc !important;
  }
  body.light-mode #mobileProfilesList > div:not(.mobile-profile-card) {
    color: #0277bd !important;
  }
  body.light-mode .mobile-profile-card {
    background: #ffffff !important;
    border-color: rgba(2,119,189,0.24);
    box-shadow: 0 8px 20px rgba(15,23,42,0.06);
  }
  body.light-mode .mobile-profile-card:active {
    background: rgba(2,132,199,0.08);
    border-color: #0277bd;
  }
  body.light-mode .mobile-profile-card-name {
    color: #102033;
  }
  body.light-mode .mobile-profile-money-row {
    color: #4a5f73;
  }
  body.light-mode .mobile-profile-money-value[style*="#60a5fa"] {
    color: #0277bd !important;
  }
  body.light-mode .mobile-profile-money-value[style*="#34d399"] {
    color: #047857 !important;
  }
  body.light-mode .mobile-profile-money-value[style*="var(--text)"] {
    color: #102033 !important;
  }
  body.light-mode .mobile-profile-card-actions button[style] {
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
    color: #b91c1c !important;
  }
  body.light-mode .mobile-profile-card-actions button[style]:active {
    background: #fecaca !important;
    border-color: #ef4444 !important;
  }
  body.light-mode .mobile-profile-card-actions button[style] svg {
    stroke: currentColor !important;
  }
  body.light-mode #mobileProfilesEmpty {
    color: #4a5f73 !important;
  }
}
.toast {
  position: fixed;
  top: calc(var(--header-h, 80px) + 12px);
  left: var(--toast-main-center, 50%);
  transform: translateX(-50%) translateY(-10px) scale(0.98);
  background:
    linear-gradient(135deg, rgba(210, 225, 255, 0.26), rgba(115, 142, 201, 0.11) 46%, rgba(40, 46, 69, 0.14)),
    rgba(76, 94, 143, 0.24);
  -webkit-backdrop-filter: blur(24px) saturate(210%);
  backdrop-filter: blur(24px) saturate(210%);
  color: #f8fafc;
  border: 1px solid rgba(210, 225, 255, 0.28);
  border-radius: 999px;
  padding: 9px 18px 10px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -18px 34px rgba(40, 46, 69, 0.10),
    0 18px 48px rgba(15, 23, 42, 0.22),
    0 2px 10px rgba(76, 94, 143, 0.12);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  max-width: min(520px, calc(100vw - 32px));
  text-align: center;
  pointer-events: none;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.toast::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 32px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(77, 163, 255, 0.82);
  box-shadow: 0 0 14px rgba(77, 163, 255, 0.42);
}
.toast::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 48%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(235, 248, 255, 0.34), rgba(235, 248, 255, 0));
  pointer-events: none;
}
body.light-mode .toast {
  color: #102033;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(125, 184, 232, 0.16) 46%, rgba(2, 119, 189, 0.12)),
    rgba(214, 232, 244, 0.44);
  border-color: rgba(2, 119, 189, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -18px 34px rgba(2, 119, 189, 0.08),
    0 18px 48px rgba(15, 23, 42, 0.16),
    0 2px 10px rgba(2, 119, 189, 0.10);
}
body.light-mode .toast::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0));
}
.toast.multi-line {
  white-space: pre-wrap;
  border-radius: 24px;
  padding-inline: 20px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
@media (max-width: 900px) {
  .toast {
    top: auto;
    bottom: calc(134px + env(safe-area-inset-bottom, 0px) + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(14px) scale(0.98);
  }
  .toast.show { transform: translateX(-50%) translateY(0) scale(1); }
}
.mi-field-validation-message {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 158, 11, 0.48);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
  overflow-wrap: anywhere;
}
body.light-mode .mi-field-validation-message {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.44);
}
.mi-validation-target,
.mi-validation-target:focus,
.mi-validation-target-wrap input[type="number"],
.mi-validation-target-wrap input[type="number"]:focus,
.mi-validation-target-wrap input[type="text"],
.mi-validation-target-wrap input[type="text"]:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22) !important;
}
.input-group.mi-validation-target-wrap {
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22) !important;
}
.input-group.mi-validation-target-wrap input[type="number"],
.input-group.mi-validation-target-wrap input[type="number"]:focus,
.input-group.mi-validation-target-wrap input[type="text"],
.input-group.mi-validation-target-wrap input[type="text"]:focus {
  box-shadow: none !important;
}
.mi-validation-target-wrap .input-prefix,
.mi-validation-target-wrap .input-suffix-btn,
.mi-validation-target-wrap .stepper {
  border-color: #f59e0b !important;
}
.pension-label-row { display:none; }
.pension-label-row label { margin:0; font-size:12px; color:var(--muted); font-weight:800; letter-spacing:0.05em; text-transform:uppercase; }
.pension-grid-head{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:0 0 8px; }
.pension-grid-head span{ font-size:12px; color:var(--muted); font-weight:800; letter-spacing:0.05em; text-transform:uppercase; text-align:center; }
.pension-control-row { display:flex; align-items:stretch; gap:8px; }
 .pension-unit-toggle { flex:0 0 68px; min-width:68px; padding:0; border:none !important; background:none !important; box-shadow:none !important; outline:none !important; }
 .pension-unit-toggle .pension-mode-toggle { width:100%; height:100%; }
 .pension-mode-toggle { display:flex; width:100%; height:100%; border:1px solid var(--border); border-radius:8px; padding:0; gap:0; background:rgba(255,255,255,0.03); overflow:hidden; box-sizing:border-box; box-shadow:none; outline:none; }
 .pension-mode-toggle::before,
 .pension-mode-toggle::after { content:none !important; display:none !important; }
 .pension-unit-toggle::before,
 .pension-unit-toggle::after { content:none !important; display:none !important; }
 .pmt-btn { border:none; background:transparent; color:var(--muted); font-size:13px; font-weight:900; padding:0; cursor:pointer; transition:background 0.15s ease, color 0.15s ease; line-height:1; border-radius:0; flex:1 1 0; min-width:0; height:100%; display:flex; align-items:center; justify-content:center; }
.pmt-btn.active { background:var(--toggle-active); color:var(--toggle-active-text); }
.pmt-btn:hover:not(.active) { background:rgba(255,255,255,0.08); color:var(--text); }
#pensionContribMain .pension-control-row .input-group > input[type="number"],
#pensionContrib2 .pension-control-row .input-group > input[type="number"] {
  border-left: 1px solid var(--border) !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}
#pensionContribMain .pension-control-row .input-group:focus-within > input[type="number"],
#pensionContrib2 .pension-control-row .input-group:focus-within > input[type="number"] {
  border-left-color: var(--focus-border) !important;
}
#pensionContribMain .pension-control-row .input-group > input[type="number"]:focus,
#pensionContrib2 .pension-control-row .input-group > input[type="number"]:focus {
  border-left-color: var(--focus-border) !important;
}
#pensionContribMain .input-group:focus-within .input-prefix,
#pensionContribMain .input-group:focus-within .stepper,
#pensionContrib2 .input-group:focus-within .input-prefix,
#pensionContrib2 .input-group:focus-within .stepper {
  border-color: var(--border) !important;
}
#pensionContribMain .num-wrap:focus-within::after,
#pensionContrib2 .num-wrap:focus-within::after {
  display: none;
}
#pensionContribMain .input-group:focus-within input[type="number"],
#pensionContrib2 .input-group:focus-within input[type="number"] {
  position: relative;
  z-index: 1;
  border-color: var(--primary) !important;
  border-left: 1px solid var(--primary) !important;
  border-right: 1px solid var(--primary) !important;
  box-shadow: none !important;
  outline: none !important;
}
#pensionContribMain .input-group > input[type="number"]:focus,
#pensionContrib2 .input-group > input[type="number"]:focus {
  border-color: var(--focus-border) !important;
  border-left-color: var(--focus-border) !important;
  border-right-color: var(--focus-border) !important;
}
#j1HoursField .num-wrap:focus-within::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--focus-border);
  border-radius: 10px;
  box-shadow: none;
  pointer-events: none;
}
#j1HoursField .num-wrap:focus-within {
  box-shadow: none !important;
}
#j1HoursField .num-wrap:focus-within .stepper {
  border-color: var(--border) !important;
}
#j1HoursField .num-wrap:focus-within .input-prefix,
#proRataFields .num-wrap:focus-within .input-prefix,
#j1HoursField .num-wrap:focus-within .stepper,
#proRataFields .num-wrap:focus-within .stepper {
  border-color: var(--border) !important;
}
#j1HoursField .input-group.num-wrap:focus-within > input[type="number"],
#proRataFields .input-group.num-wrap:focus-within > input[type="number"] {
  border-color: var(--border) !important;
  border-top-color: var(--border) !important;
  border-bottom-color: var(--border) !important;
  border-left-color: var(--border) !important;
  border-right-color: var(--border) !important;
  box-shadow: none !important;
  outline: none !important;
}
#j1HoursField .input-group.num-wrap > input[type="number"]:focus-visible,
#proRataFields .input-group.num-wrap > input[type="number"]:focus-visible {
  box-shadow: none !important;
  outline: none !important;
}
#baseSalaryField .input-group:has(.input-suffix-btn.visible):focus-within input[type="number"],
#baseSalaryField2 .input-group:has(.input-suffix-btn.visible):focus-within input[type="number"],
#baseSalaryField .input-group > input[type="number"]:focus,
#baseSalaryField2 .input-group > input[type="number"]:focus {
  border-color: var(--focus-border) !important;
  border-right-color: var(--focus-border) !important;
}
.adv-acc {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: visible;
}
.adv-acc-summary {
  list-style: none;
  cursor: pointer;
  padding: 0 14px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--summary-title) !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
 #advOptions > .adv-acc-summary { min-height:78px; padding:10px 46px; box-sizing:border-box; position:relative; }
 .adv-summary-text { display:flex; flex-direction:column; min-width:0; gap:3px; text-align:center; max-width:100%; }
 .adv-summary-title { color:var(--summary-title); font-size:14px; line-height:1.1; }
 .adv-summary-meta { max-width:100%; overflow:hidden; text-overflow:clip; white-space:normal; word-break:normal; overflow-wrap:break-word; color:var(--muted); font-size:11px; font-weight:700; letter-spacing:0; text-transform:none; line-height:1.25; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
#taxRegionPanel > .adv-acc-summary .adv-summary-text { flex:1 1 auto; text-align:center; }
#taxRegionPanel .side-field label {
  display: block;
  text-align: center;
}
#advOptions details.adv-acc > .adv-acc-summary {
  justify-content: center;
  position: relative;
  padding-left: 46px;
  padding-right: 46px;
  text-align: center;
}
#advOptions details.adv-acc > .adv-acc-summary > span:first-child {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
}
#advOptions details.adv-acc > .adv-acc-summary .chev {
  position: absolute;
  right: 16px;
  top: 50%;
  margin-left: 0;
  transform: translateY(-50%) rotate(45deg);
}
#advOptions details.adv-acc[open] > .adv-acc-summary .chev {
  transform: translateY(-50%) rotate(-135deg);
}
#job1Section > .form-section > summary,
#j1BonusSection > summary,
#j1PensionSection > summary,
#job2Section > .form-section > summary {
  justify-content:center;
}
#job1Section > .form-section > summary > span:first-child,
#j1BonusSection > summary > span:first-child,
#j1PensionSection > summary > span:first-child,
#job2Section > .form-section > summary > span:first-child {
  flex:1 1 auto;
  justify-content:center;
}
#job1Section > .form-section > summary .form-section-icon,
#j1BonusSection > summary .form-section-icon,
#j1PensionSection > summary .form-section-icon,
#job2Section > .form-section > summary .form-section-icon {
  color: #8fc8ff;
}
.adv-acc-summary::-webkit-details-marker { display: none; }
.adv-acc[open] > .adv-acc-summary .chev { transform: rotate(-135deg); }
.adv-acc-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 14px; }
.adv-rows { display: flex; flex-direction: column; gap: 10px; }
.adv-field { display: flex; flex-direction: column; gap: 6px; }
.adv-field > label { font-weight: 700; color: var(--text); margin: 0; }
.adv-hint { color: var(--muted); font-size: 12px; line-height: 1.45; }
/* Toggle row (checkbox + label) */
.adv-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elevated); }
.adv-toggle-label { font-weight: 700; color: var(--text); margin: 0; }
.adv-toggle-label.with-icon { display:inline-flex; align-items:center; gap:10px; min-width:0; }
.adv-toggle-icon { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; color:var(--primary); flex:0 0 20px; }
.adv-toggle-icon svg { width:18px; height:18px; stroke:currentColor; }
/* iOS-style switch */
.adv-switch { position: relative; display: inline-flex; flex-shrink: 0; }
.adv-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.adv-switch-track {
  display: inline-block; width: 40px; height: 22px; border-radius: 11px;
  background: var(--border); transition: background 0.2s ease; cursor: pointer;
}
.adv-switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform 0.2s ease;
}
.adv-switch input:checked + .adv-switch-track { background: var(--toggle-active); }
.adv-switch input:checked + .adv-switch-track::after { transform: translateX(18px); }
/* Segmented control */
.adv-seg-wrap { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elevated); }
.weeks-basis-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: stretch; justify-content: stretch; min-height: 48px; padding: 0; overflow: hidden; background: var(--input-bg); }
.weeks-basis-icon { display: flex; align-items: center; justify-content: center; width: 52px; min-width: 52px; flex: 0 0 52px; padding: 0; box-sizing: border-box; border-right: 1px solid var(--border); background: var(--bg-elevated); color: var(--muted); }
.weeks-basis-icon svg { width: 17px; height: 17px; stroke: currentColor; }
.weeks-basis-control { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 6px 12px; }
.weeks-basis-control .adv-seg { min-width: 164px; }
.weeks-basis-control .adv-seg label { flex: 1 1 50%; text-align: center; padding-left: 20px; padding-right: 20px; }
.adv-seg-label { font-size: 12px; color: var(--text); font-weight: 700; letter-spacing: 0.02em; }
.adv-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.adv-seg input { position: absolute; opacity: 0; pointer-events: none; }
.adv-seg label { margin: 0; padding: 6px 14px; font-size: 12px; font-weight: 800; color: var(--text); background: rgba(255,255,255,0.03); cursor: pointer; user-select: none; }
.adv-seg input:checked + label { background: var(--toggle-active); color: var(--toggle-active-text); }
body.light-mode .adv-seg input:checked + label { background: var(--toggle-active); color: var(--toggle-active-text); }
@media (max-width: 900px) {
  #advOptions .adv-hint,
  #taxCodeAcc .adv-hint,
  #advOptions .hint,
  #taxCodeAcc .hint,
  #advOptions .working-hours-hint,
  #advOptions .pro-rata-hint {
    font-size: clamp(12px, calc(10.345px + 0.517vw), 15px) !important;
    line-height: 1.5;
  }
  #advOptions select,
  #taxRegionPanel select,
  #taxCodeAcc select,
  #advOptions .select-animate,
  #taxRegionPanel .select-animate,
  #taxCodeAcc .select-animate,
  #advOptions .mini-select {
    font-size: clamp(14px, calc(11.793px + 0.69vw), 18px) !important;
    text-align: center !important;
    text-align-last: center !important;
  }
  #advOptions select option,
  #taxRegionPanel select option,
  #taxCodeAcc select option {
    text-align: center;
    text-align-last: center;
  }
}
.brand-tagline { display: inline; }
@media (max-width: 900px) {
  .brand { flex-wrap: wrap; } .brand-link { flex: none; } .brand-tagline { display: none !important; }
}
@media (max-width: 900px) {
  #proRataFields .control-row,
  #proRataFields2 .control-row { display:block; }
  #proRataFields .grow,
  #proRataFields2 .grow { width:180px; max-width:180px; min-width:180px; }
  #proRataFields .input-group,
  #proRataFields2 .input-group { width:180px; max-width:180px; }
  #proRataFields .pro-rata-hint,
  #proRataFields2 .pro-rata-hint { width:100%; max-width:100%; font-size:12px; margin-top:8px !important; align-items:flex-start; }
  #proRataFields .pro-rata-hint,
  #proRataFields2 .pro-rata-hint { justify-content:flex-start; }
  #proRataFields .pro-rata-hint .hint-text,
  #proRataFields2 .pro-rata-hint .hint-text { flex:0 1 auto; }
  #proRataFields .tooltip .tip,
  #proRataFields2 .tooltip .tip { max-width:min(280px, calc(100vw - 56px)); }
  #pensionContribMain .pension-inline,
  #pensionContrib2 .pension-inline { grid-template-columns: 1fr; gap: 10px; align-items:flex-end; }
  #pensionContribMain .pension-item,
  #pensionContrib2 .pension-item { min-width: 0; display:block; }
  #pensionContribMain .pension-label-row,
  #pensionContrib2 .pension-label-row { display:flex; justify-content:center; align-items:center; margin-bottom:8px; }
  #pensionContribMain .pension-item:first-child .pension-label-row,
  #pensionContrib2 .pension-item:first-child .pension-label-row { margin-top: 0; }
  #pensionContribMain .pension-item + .pension-item .pension-label-row,
  #pensionContrib2 .pension-item + .pension-item .pension-label-row { margin-top: 6px; }
  #pensionContribMain .pension-grid-head,
  #pensionContrib2 .pension-grid-head { display:none; }
  #pensionContribMain .pension-control-row,
  #pensionContrib2 .pension-control-row { gap: 6px; width:100%; }
  #pensionContribMain .pension-item .input-prefix { min-width: 68px; flex-basis: 68px; padding: 0; }
  #pensionContribMain .pension-item .pension-unit-toggle,
  #pensionContrib2 .pension-item .pension-unit-toggle { width: 100%; min-width: 0; flex: 0 0 68px; }
  #pensionContribMain .pension-item .pension-mode-toggle,
  #pensionContrib2 .pension-item .pension-mode-toggle { width: 100%; height: 100%; }
  #pensionContribMain .pmt-btn,
  #pensionContrib2 .pmt-btn { padding: 0; min-height: 48px; font-size: 13px; }
  #pensionContribMain .pension-item .num-wrap > input[type="number"],
  #pensionContrib2 .pension-item .num-wrap > input[type="number"] { min-width: 36px; padding-left: 7px; padding-right: 6px; }
  #pensionContribMain .pension-control-row .input-group > input[type="number"],
  #pensionContrib2 .pension-control-row .input-group > input[type="number"] { border-left: 1px solid var(--border) !important; }
  #pensionContribMain .pension-item .stepper,
  #pensionContrib2 .pension-item .stepper { width: clamp(76px, 24vw, 112px) !important; flex-basis: clamp(76px, 24vw, 112px) !important; }
  #pensionContribMain .pension-item .step-btn,
  #pensionContrib2 .pension-item .step-btn { min-width: 38px; }
}
/* Benefits: amount + period on one row */
.benefit-row { display: flex; gap: 8px; align-items: stretch; }
.benefit-row .input-group { flex: 1 1 0; min-width: 0; }
.benefit-row .stepper { width: 62px; flex-basis: 62px; }
.benefit-row .step-btn { min-width: 31px; }
.benefit-period-sel { flex: 0 0 96px; width: 96px; padding-left: 10px; padding-right: 26px; font-size: 13px; }
@media (max-width: 900px) { .benefit-period-sel { flex: 0 0 98px; width: 98px; } }
.oded-row { display: block; }
.oded-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.oded-cell label { font-size: inherit; color: var(--text); font-weight: 700; letter-spacing: 0; margin: 0; }
@media (min-width: 900.01px) {
  .sidebar {
    font-size: clamp(11.2px, calc(3.871vw - 23.639px), 16px);
  }
  .sidebar label,
  .sidebar select,
  .sidebar input,
  .sidebar button,
  .sidebar textarea,
  .sidebar summary,
  .sidebar .hint {
    font-size: inherit !important;
  }
  .sidebar .oded-row {
    display: block;
  }
  .sidebar .oded-row .num-wrap {
    height: 48px;
  }
  .sidebar #otherDeductionsAcc .num-wrap,
  .sidebar #conversionAcc .num-wrap {
    min-height: clamp(52px, calc(3.2258vw + 22.9677px), 56px);
  }
  .sidebar #otherDeductionsAcc .num-wrap input[type="number"],
  .sidebar #conversionAcc .num-wrap input[type="number"],
  .sidebar #otherDeductionsAcc .input-prefix,
  .sidebar #conversionAcc .input-prefix {
    height: clamp(52px, calc(3.2258vw + 22.9677px), 56px) !important;
    font-size: clamp(14px, calc(1.6129vw - 0.5161px), 16px) !important;
  }
  .sidebar #otherDeductionsAcc .stepper,
  .sidebar #conversionAcc .stepper {
    width: clamp(66px, calc(6.4516vw + 7.9355px), 74px) !important;
    flex-basis: clamp(66px, calc(6.4516vw + 7.9355px), 74px) !important;
    height: clamp(52px, calc(3.2258vw + 22.9677px), 56px) !important;
  }
  .sidebar #otherDeductionsAcc .step-btn,
  .sidebar #conversionAcc .step-btn {
    min-width: clamp(33px, calc(3.2258vw + 3.9677px), 37px) !important;
  }
  .sidebar #savedProfiles,
  .sidebar #hhProfileA,
  .sidebar #hhProfileB,
  .sidebar #hhSavedCombos,
  .sidebar #jcProfileA,
  .sidebar #jcProfileB {
    height: clamp(52px, calc(3.2258vw + 22.9677px), 56px) !important;
    font-size: clamp(14px, calc(1.6129vw - 0.5161px), 16px) !important;
    padding-left: clamp(12px, calc(3.2258vw - 17.0323px), 16px) !important;
    padding-right: clamp(30px, calc(4.8387vw - 13.5484px), 36px) !important;
  }
  .sidebar .benefit-row {
    gap: clamp(5px, calc(2.4194vw - 16.7742px), 8px);
  }
  .sidebar .benefit-period-sel {
    flex: 0 0 clamp(104px, calc(9.6774vw + 16.9032px), 116px);
    width: clamp(104px, calc(9.6774vw + 16.9032px), 116px);
    min-width: clamp(104px, calc(9.6774vw + 16.9032px), 116px);
    font-size: clamp(11px, calc(1.6129vw - 3.5161px), 13px);
    padding-left: clamp(8px, calc(1.6129vw - 6.5161px), 10px);
    padding-right: clamp(20px, calc(4.8387vw - 23.5484px), 26px);
  }
  .sidebar .benefit-row .input-prefix {
    min-width: clamp(26px, calc(3.2258vw - 3.0323px), 30px);
    flex-basis: clamp(26px, calc(3.2258vw - 3.0323px), 30px);
    padding: 0 clamp(5px, calc(0.8065vw - 2.2581px), 6px);
  }
  .sidebar .benefit-row .stepper {
    width: clamp(50px, calc(9.6774vw - 37.0968px), 62px);
    flex-basis: clamp(50px, calc(9.6774vw - 37.0968px), 62px);
  }
  .sidebar .benefit-row .step-btn {
    min-width: clamp(25px, calc(4.8387vw - 18.5484px), 31px);
  }
}
@media (max-width: 900px) {
  .oded-row { display:block; }
}
/* === Minimum Wage Checker === */
.nmw-banner {
  margin-top: 8px;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.nmw-banner::before { content: attr(data-icon); font-size: 15px; flex-shrink: 0; }
.nmw-banner.nmw-ok { background: var(--good-bg); color: var(--good); border: 1px solid rgba(52,211,153,0.3); }
.nmw-banner.nmw-warn { background: var(--danger-bg); color: var(--danger-text); border: 1px solid rgba(239,68,68,0.3); }
.nmw-banner.nmw-info { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(245,158,11,0.3); }
/* Uniform height for top-level sidebar panel summaries */
#taxRegionPanel > summary,
#advOptions > summary,
#savedProfilesPanel > summary,
#householdPanel > summary,
#jobCompPanel > summary {
  height: 52px !important;
  min-height: 52px !important;
  box-sizing: border-box;
}
#advOptions > summary {
  height: auto !important;
  min-height: 78px !important;
}
@media (max-width: 900px) {
  #advOptions > .adv-acc-summary,
  #advOptions > summary {
    height: auto !important;
    min-height: 70px !important;
    max-height: none !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    overflow: visible;
  }

  #advOptions > .adv-acc-summary .adv-summary-meta {
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow-wrap: break-word;
  }

  body:not(.mobile-tab-open) .container,
  body:not(.mobile-tab-open) .card,
  body:not(.mobile-tab-open) .content,
  body:not(.mobile-tab-open) .layout,
  body:not(.mobile-tab-open) .main,
  body:not(.mobile-tab-open) .sidebar {
    overscroll-behavior-y: auto !important;
    scrollbar-gutter: auto !important;
  }
}
/* Centre subsection titles inside Advanced Options */
#job1Section > .form-section > summary,
#j1BonusSection > summary,
#j1PensionSection > summary {
  justify-content: center !important;
}
#job1Section > .form-section > summary > .form-section-heading,
#j1BonusSection > summary > .form-section-heading,
#j1PensionSection > summary > .form-section-heading {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
}
#job1Section > .form-section > summary .form-section-icon,
#j1BonusSection > summary .form-section-icon,
#j1PensionSection > summary .form-section-icon {
  color: #8fc8ff;
}
#advOptions > .adv-acc-summary,
#taxCodeAcc .adv-acc-summary {
  justify-content: center;
  gap: 0;
}
#advOptions > .adv-acc-summary > span:first-child,
#taxCodeAcc .adv-acc-summary > span:first-child {
  flex: 1 1 0;
  text-align: center;
}
#taxRegionPanel > .adv-acc-summary,
#taxCodeAcc > .adv-acc-summary,
#advOptions > .adv-acc-summary {
  padding-left: 46px;
  padding-right: 46px;
  position: relative;
}
#taxRegionPanel > .adv-acc-summary .chev,
#taxCodeAcc > .adv-acc-summary .chev,
#advOptions > .adv-acc-summary .chev {
  position:absolute;
  right:16px;
  top:50%;
  margin-left:0;
  transform:translateY(-50%) rotate(45deg);
  flex-shrink: 0;
}
#taxRegionPanel[open] > .adv-acc-summary .chev,
#taxCodeAcc[open] > .adv-acc-summary .chev,
#advOptions[open] > .adv-acc-summary .chev {
  transform:translateY(-50%) rotate(-135deg);
}
#advOptions.mobile-adv-partial > .adv-acc-summary .chev {
  transform: translateY(-50%) rotate(45deg);
}
#advOptions.mobile-adv-partial > .adv-acc-summary .chev::before,
#advOptions.mobile-adv-full > .adv-acc-summary .chev::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  left: -6px;
  top: -6px;
  box-sizing: border-box;
}
/* === Second Job tabs === */
.job-tabs { display: flex; gap: 0; margin-bottom: 18px; margin-top: 10px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.job-tab { flex: 1 1 0; padding: 11px 14px; font-size: 13px; font-weight: 700; background: var(--bg-elevated); color: var(--muted); border: none; cursor: pointer; transition: background 0.15s, color 0.15s; -webkit-tap-highlight-color: transparent; }
.job-tab.active { background: var(--toggle-active); color: var(--toggle-active-text); }
.job-tab:first-child { border-right: 1px solid var(--border); }
#householdPanel { padding: 0; }
#householdPanel > summary.saved-panel-summary { list-style: none; cursor: pointer; padding: 0 14px; min-height: 52px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--summary-title); display: flex; align-items: center; justify-content: space-between; user-select: none; -webkit-tap-highlight-color: transparent; }
#householdPanel > summary.saved-panel-summary::-webkit-details-marker { display: none; }
#householdPanel > summary.saved-panel-summary svg {
  color: #34d399;
}
#jobCompPanel > summary.saved-panel-summary svg {
  color: #a78bfa;
}
#sickPayPanel > summary.saved-panel-summary { list-style: none; cursor: pointer; padding: 0 14px; min-height: 52px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--summary-title); display: flex; align-items: center; justify-content: space-between; user-select: none; -webkit-tap-highlight-color: transparent; }
#sickPayPanel > summary.saved-panel-summary::-webkit-details-marker { display: none; }
#sickPayPanel[open] > summary.saved-panel-summary .chev { transform: rotate(-135deg); }
#redundancyPanel { padding: 0; }
#redundancyPanel > summary.saved-panel-summary { list-style: none; cursor: pointer; padding: 0 14px; min-height: 52px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--summary-title); display: flex; align-items: center; justify-content: space-between; user-select: none; -webkit-tap-highlight-color: transparent; }
#redundancyPanel > summary.saved-panel-summary::-webkit-details-marker { display: none; }
#redundancyPanel > summary.saved-panel-summary::marker { display: none; content: ""; }
#redundancyPanel[open] > summary.saved-panel-summary .chev { transform: rotate(-135deg); }
@media (max-width: 900px) {
  #resultsWrap > details.assumptions.section-block,
  #resultsWrap > #sickPayPanel,
  #resultsWrap > #redundancyPanel {
    margin-top: 16px;
  }
  #resultsWrap > #sickPayPanel,
  #resultsWrap > #redundancyPanel {
    background: var(--bg-elevated);
    box-shadow: none;
  }
  #resultsWrap > #sickPayPanel > summary.saved-panel-summary,
  #resultsWrap > #redundancyPanel > summary.saved-panel-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    min-height: 0;
    text-transform: none;
    letter-spacing: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 800;
    color: var(--text);
  }
  #resultsWrap > #sickPayPanel > summary.saved-panel-summary > span:first-child,
  #resultsWrap > #redundancyPanel > summary.saved-panel-summary > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 9px;
  }
  #resultsWrap > #sickPayPanel > summary.saved-panel-summary .chev,
  #resultsWrap > #redundancyPanel > summary.saved-panel-summary .chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex: 0 0 auto;
    margin-left: auto;
  }
  #resultsWrap > #sickPayPanel[open] > summary.saved-panel-summary .chev,
  #resultsWrap > #redundancyPanel[open] > summary.saved-panel-summary .chev {
    transform: rotate(-135deg);
  }
  #resultsWrap > #redundancyPanel {
    margin-top: 16px;
    margin-bottom: 0;
  }
  #resultsWrap > #sickPayPanel .raise-mode-toggle[aria-label="Leave type"] {
    min-height: 48px;
  }
  #resultsWrap > #sickPayPanel .raise-mode-toggle[aria-label="Leave type"] .raise-mode-btn {
    min-height: 42px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
/* Sick phase row ± buttons — same size */
#householdPanel > .saved-panel { padding: 0 14px 14px; }
#householdPanel[open] > summary .chev { transform: rotate(-135deg); }
#householdPanel > summary { height: 52px !important; min-height: 52px !important; box-sizing: border-box; }
#jobCompPanel { padding: 0; }
#jobCompPanel > summary.saved-panel-summary { list-style: none; cursor: pointer; padding: 0 14px; min-height: 52px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--summary-title); display: flex; align-items: center; justify-content: space-between; user-select: none; -webkit-tap-highlight-color: transparent; }
#jobCompPanel > summary.saved-panel-summary::-webkit-details-marker { display: none; }
#jobCompPanel > .saved-panel { padding: 0 14px 14px; }
#jobCompPanel[open] > summary .chev { transform: rotate(-135deg); }
#jobCompPanel > summary { height: 52px !important; min-height: 52px !important; box-sizing: border-box; }
.hh-side-field { margin-bottom: 12px; }
.hh-side-field:last-of-type { margin-bottom: 0; }
.hh-side-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.hh-side-field select { width: 100%; }
.hh-persona-label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.hh-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-right: 6px; }
.hh-dot-a { background: #4da3ff; }
.hh-dot-b { background: #f97316; }
.hh-dot-c { background: #a78bfa; }
.hh-dot-d { background: #2dd4bf; }
.hh-dot-e { background: #fb7185; }
.hh-no-profiles-msg { font-size: 12px; color: var(--muted); line-height: 1.5; padding: 4px 0 8px; }
.hh-calc-btn { width: 100%; margin-top: 14px; }
.hh-calc-btn.hh-save-mode {
  background: #047857 !important;
  color: #ffffff !important;
  border: 1px solid #065f46 !important;
  box-shadow: 0 8px 18px rgba(4,120,87,0.18);
}
.hh-calc-btn.hh-save-mode:hover {
  background: #065f46 !important;
  border-color: #064e3b !important;
}
.hh-summary-save-after-total {
  display: none;
}
.hh-add-person-btn { margin-left: 0; width: 46px; min-width: 46px; min-height: 46px; height: auto; flex: 0 0 46px; align-self: center; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 20px; line-height: 1; }
.hh-action-placeholder { width: 46px; min-width: 46px; min-height: 46px; flex: 0 0 46px; align-self: center; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(148,163,184,0.18); background: rgba(148,163,184,0.06); color: var(--muted); opacity: 0.72; }
.hh-action-placeholder svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hh-extra-row { margin-top: 10px; }
.hh-selector-line { display: flex; align-items: stretch; gap: 10px; }
.hh-selector-line select { min-width: 0; flex: 1 1 auto; }
.hh-size-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.hh-size-field label { font-size: 11px; line-height: 1.35; color: var(--muted); margin-bottom: 5px; }
.hh-size-field .num-wrap { height: 48px; align-items: stretch; }
.hh-size-field .num-wrap > input[type="number"] { height: 48px; padding: 9px 10px; font-size: 17px; font-weight: 700; min-width: 0; }
.hh-size-field .stepper { width: 78px; height: 48px; flex-basis: 78px; align-self: stretch; }
.hh-size-field .num-wrap,
.hh-size-field .num-wrap * {
  -webkit-user-select: none;
  user-select: none;
}
.hh-size-field .num-wrap > input[type="number"] {
  pointer-events: none;
  caret-color: transparent;
  cursor: default;
}
.hh-size-field .num-wrap > input[type="number"]:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--border) !important;
}
.hh-size-field .num-wrap:focus-within::after {
  content: none !important;
  display: none !important;
}
.hh-size-field .num-wrap:focus-within .stepper {
  border-color: var(--border) !important;
}
.num-wrap.has-stepper:focus-within::after {
  content: none !important;
  display: none !important;
}
.num-wrap.has-stepper:focus-within .input-prefix,
.num-wrap.has-stepper:focus-within .stepper {
  border-color: var(--border) !important;
}
.num-wrap.has-stepper > input[type="number"]:focus,
.input-group.num-wrap.has-stepper > input[type="number"]:focus {
  border-color: var(--border) !important;
  border-top-color: var(--border) !important;
  border-bottom-color: var(--border) !important;
  border-left-color: var(--border) !important;
  border-right: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
@media (max-width: 900px) {
 .hh-size-grid {
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: clamp(0.25rem, 1.6vw, 0.625rem);
 }
 .hh-size-field label { font-size: 0.625rem; min-height: 1.5rem; }
 .hh-size-field .num-wrap,
 .hh-size-field .num-wrap > input[type="number"],
 .hh-size-field .stepper { height: clamp(2.625rem, 10.5vw, 3rem); }
 .hh-size-field .num-wrap > input[type="number"] {
   flex: 1 1 2rem;
   width: 0;
   padding: 0.5rem 0.25rem;
   font-size: clamp(1rem, 4.4vw, 1.125rem);
   text-align: center;
 }
 .hh-size-field .stepper {
   width: clamp(2.75rem, 12vw, 4.25rem);
   flex-basis: clamp(2.75rem, 12vw, 4.25rem);
 }
 .hh-size-field .step-btn { min-width: clamp(1.375rem, 6vw, 2.125rem); }
 .hh-size-field .step-btn::before {
   width: clamp(0.75rem, 3.2vw, 0.875rem);
   height: clamp(0.75rem, 3.2vw, 0.875rem);
   background-size: clamp(0.75rem, 3.2vw, 0.875rem) clamp(0.75rem, 3.2vw, 0.875rem);
 }
}
/* Household results section */
.hh-results-wrap { display: none; margin-top: 26px; }
/* === Raise comparison === */
.raise-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:11px 14px; border:1px solid var(--border); border-radius:12px; background:var(--bg-elevated); margin-bottom:18px; }
#annualNetMetric > .raise-bar { display:none; align-content:flex-start; background:transparent; border-color:transparent; margin-bottom:0; min-height:0; box-sizing:border-box; padding:0; }
#annualNetMetric > .raise-bar.is-open { display:flex; }
#annualNetMetric > .raise-bar #raiseInputWrap { flex:1 1 100%; justify-content:flex-start; }
#annualNetMetric > .raise-bar .raise-input-row { flex:1 1 100%; justify-content:flex-start; flex-wrap:wrap; }
#annualNetMetric > .raise-bar.is-open .raise-input-row { flex:1 1 360px; flex-wrap:nowrap; }
#annualNetMetric > .raise-bar .raise-input-label { flex:1 1 100%; text-align:left; }
#annualNetMetric > .raise-bar.is-open .raise-input-label { flex:0 0 70px; text-align:left; }
#annualNetMetric > .raise-bar .raise-amount-wrap { flex:1 1 140px; width:auto; }
.raise-toggle-btn { display:inline-flex; cursor:pointer; -webkit-tap-highlight-color:transparent; touch-action:manipulation; user-select:none; }
.raise-toggle-btn input { position:absolute; opacity:0; width:0; height:0; }
.raise-toggle-btn .raise-bar-label { width:100%; height:100%; min-height:0; padding:0 13px; box-sizing:border-box; border-radius:999px; border:1px solid rgba(99,179,237,0.28); background:rgba(99,179,237,0.08); transition:background 0.15s,border-color 0.15s,color 0.15s; -webkit-tap-highlight-color:transparent; user-select:none; }
.raise-toggle-btn:active .raise-bar-label { background:rgba(99,179,237,0.08); border-color:rgba(99,179,237,0.28); color:var(--text); }
.raise-toggle-btn input:checked + .raise-bar-label { background:var(--raise-accent-bg); border-color:var(--raise-accent-border); color:#fff; }
.raise-toggle-btn input:focus-visible + .raise-bar-label { outline:2px solid var(--focus-border); outline-offset:2px; }
.raise-bar-label { display:inline-flex; align-items:center; justify-content:center; gap:7px; font-weight:700; color:var(--text); margin:0; font-size:14px; white-space:nowrap; }
.raise-bar-icon { width:16px; height:16px; color:var(--primary); flex:0 0 auto; }
.raise-bar-icon-active { display:none; }
.raise-toggle-btn input:checked + .raise-bar-label .raise-bar-icon-default { display:none; }
.raise-toggle-btn input:checked + .raise-bar-label .raise-bar-icon-active { display:block; color:#fff; }
.raise-toggle-btn input:checked + .raise-bar-label .raise-bar-icon-active path:last-of-type { display:none; }
@media (hover: none) and (pointer: coarse) {
  .raise-toggle-btn input:focus-visible + .raise-bar-label { outline: none; }
  .raise-toggle-btn:active .raise-bar-label { transition: none; }
  body.light-mode .takehome-tools .raise-toggle-btn:active .raise-bar-label {
    background: rgba(255,255,255,0.82);
    border-color: #a9d7f3;
    color: #24384d;
    box-shadow: 0 6px 14px rgba(15,23,42,0.035);
  }
  .raise-toggle-btn input:checked + .raise-bar-label,
  body.light-mode .takehome-tools .raise-toggle-btn input:checked + .raise-bar-label {
    background: var(--raise-accent-bg);
    border-color: var(--raise-accent-border);
    color: #fff;
    box-shadow: 0 8px 18px rgba(109,40,217,0.22);
  }
}
.target-takehome-modal { width:min(680px,100%); }
.target-takehome-modal-body { padding-top:18px; }
.leave-result-modal { width:min(860px,100%); }
#raiseInputWrap { display:none; align-items:stretch; justify-content:flex-end; gap:8px; flex:1 1 520px; min-width:0; flex-wrap:wrap; }
#raiseInputWrap.visible { display:flex; }
.save-raised-btn { display:none; }
.save-raised-btn,
.save-raised-btn:hover {
  background: linear-gradient(180deg, #7c3aed 0%, #6d28d9 100%) !important;
  border: 1px solid #5b21b6 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(109,40,217,0.24);
}
.save-raised-btn:hover,
body.light-mode .save-raised-btn:hover {
  background: linear-gradient(180deg, #6d28d9 0%, #5b21b6 100%) !important;
}
.raise-bar.has-raise-values .save-raised-inline { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; margin-top:4px; }
.save-raised-fab { justify-content:center; text-align:center; white-space:nowrap; }
.raise-input-row { display:flex; align-items:center; justify-content:flex-end; gap:8px; min-width:0; flex:1 1 350px; }
.raise-input-label { flex:0 0 82px; color:var(--text); font-size:12px; font-weight:800; text-align:right; }
.raise-mode-toggle { display:inline-flex; border:1px solid var(--border); border-radius:8px; padding:2px; gap:2px; background:var(--bg); }
.raise-mode-btn { background:transparent; border:none; color:var(--muted); font-size:13px; font-weight:700; padding:4px 10px; border-radius:6px; cursor:pointer; transition:background 0.15s,color 0.15s; }
.raise-mode-btn.active { background:var(--toggle-active); color:var(--toggle-active-text); }
#raiseInputWrap .raise-mode-toggle { align-self:stretch; min-height:48px; border-radius:10px; flex:0 0 auto; }
#raiseInputWrap .raise-mode-btn { display:inline-flex; align-items:center; justify-content:center; min-width:38px; padding:4px 10px; border-radius:8px; }
.raise-amount-field { width:auto; flex:1 1 auto; min-width:0; padding:10px 10px; border:1px solid var(--border); border-radius:10px 0 0 10px; background:var(--bg); color:var(--text); font-size:14px; font-weight:700; }
.raise-amount-wrap { width:150px; min-width:132px; flex:0 0 150px; }
.raise-amount-wrap .stepper { height:48px; }
.raise-amount-hint { flex:1 1 92px; min-width:0; max-width:116px; line-height:1.35; white-space:normal; overflow-wrap:normal; font-size:12px; color:var(--muted); font-weight:600; }
.raise-bonus-note { flex:1 1 100%; width:100%; color:var(--muted); font-size:11px; line-height:1.4; margin:4px 0 2px; padding-left:0; }
@media (min-width: 561px) {
  #annualNetMetric > .raise-bar { padding-right:52px; }
  #annualNetMetric > .raise-bar.is-open .raise-input-row { flex:1 1 100%; }
  #annualNetMetric > .raise-bar.is-open .raise-input-row { gap:7px; }
  #annualNetMetric > .raise-bar.is-open .raise-amount-wrap { flex:0 0 132px; min-width:132px; }
  #annualNetMetric > .raise-bar.is-open .raise-amount-field { padding:0 0 0 6px !important; text-align:center; }
  #annualNetMetric > .raise-bar.is-open .raise-amount-wrap .stepper { width:58px; flex-basis:58px; align-items:stretch; justify-content:stretch; }
  #annualNetMetric > .raise-bar.is-open .raise-amount-wrap .step-btn { flex:1 1 0; min-width:0; display:flex; align-items:center; justify-content:center; }
  #annualNetMetric > .raise-bar.is-open .raise-amount-wrap .step-btn::before { margin:auto; }
  .raise-bar.has-raise-values .save-raised-inline {
    position:absolute;
    top:14px;
    right:14px;
    width:36px;
    height:36px;
    min-width:36px;
    margin:0;
    padding:0;
    border-radius:999px;
    font-size:0;
    line-height:0;
    color:var(--raise-accent-text) !important;
  }
  .raise-bar.has-raise-values .save-raised-inline::before {
    content:"";
    width:17px;
    height:17px;
    background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8'/%3E%3Cpath d='M7 3v5h8'/%3E%3C/svg%3E") center/contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpath d='M17 21v-8H7v8'/%3E%3Cpath d='M7 3v5h8'/%3E%3C/svg%3E") center/contain no-repeat;
  }
}
@media (min-width: 561px) and (max-width: 900px) {
  .raise-bar.has-raise-values .save-raised-inline { display:none; }
  .save-raised-fab.is-visible { display:inline-flex !important; }
  .save-raised-profile-btn.is-visible { display:none !important; }
}
@media (max-width: 560px) {
  #resultsWrap,
  #resultsWrap .summary-with-percentile,
  #resultsWrap .summary,
  #resultsWrap .metric,
  #annualNetMetric,
  #bonusNetMetric {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  #resultsWrap .metric > *,
  #annualNetMetric > .raise-bar,
  #annualNetMetric .takehome-tools,
  #raiseInputWrap,
  #annualNetMetric > .raise-bar.is-open .raise-input-row,
  .raise-bonus-note {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  #resultsWrap .raise-delta-badge {
    width: fit-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }

  #resultsWrap .metric > .value {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    margin-right: 0.375rem;
    vertical-align: baseline;
    white-space: nowrap;
  }

  #resultsWrap .metric > .value + .raise-delta-badge {
    display: inline-flex !important;
    margin-left: 0 !important;
    vertical-align: baseline;
  }

  #saveRaisedInline {
    display: none !important;
  }

  #annualNetMetric > .raise-bar.is-open .raise-input-row {
    flex: 1 1 100% !important;
    flex-wrap: wrap !important;
    gap: 0.375rem !important;
  }

  #raiseInputWrap .raise-mode-toggle {
    order: 3;
    flex: 0 0 6.25rem !important;
    min-height: 2.75rem;
  }

  #raiseInputWrap .raise-mode-btn {
    min-width: 2.75rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .raise-amount-wrap {
    order: 4;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 6.75rem) !important;
    margin-right: 0 !important;
  }

  .raise-amount-wrap .stepper {
    width: 3.625rem;
    flex-basis: 3.625rem;
  }

  .raise-amount-wrap .step-btn {
    min-width: 0;
  }
}
@media (max-width: 900px) {
  .summary .metric > .value {
    display: inline-flex;
    align-items: baseline;
    width: auto;
    margin-right: 6px;
    vertical-align: baseline;
    white-space: nowrap;
  }

  .summary .metric > .value + .raise-delta-badge {
    margin-left: 0;
    margin-top: 0;
    vertical-align: baseline;
    white-space: nowrap;
  }
}
@media (min-width: 320px) and (max-width: 900px) {
  #annualNetMetric > .raise-bar {
    padding-right: 0 !important;
  }

  #raiseInputWrap.visible {
    width: 100% !important;
    flex-basis: 100% !important;
    justify-content: center !important;
  }

  #annualNetMetric > .raise-bar.is-open .raise-input-row {
    flex: 1 1 550px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 550px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: clamp(6px, calc(4.897px + 0.345vw), 8px) !important;
  }

  .raise-input-label {
    order: 1;
    flex: 0 0 auto !important;
    display: flex;
    align-items: baseline;
    gap: clamp(6px, calc(4.897px + 0.345vw), 8px);
    text-align: left !important;
    font-size: clamp(12px, calc(10.897px + 0.345vw), 14px);
  }

  #annualNetMetric > .raise-bar.is-open .raise-input-label {
    flex: 0 0 auto !important;
    text-align: left !important;
  }

  .raise-amount-hint {
    order: 2 !important;
    flex: 1 0 calc(100% - clamp(120px, calc(97.931px + 6.897vw), 160px)) !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-left: auto !important;
    padding-right: 10px;
    box-sizing: border-box;
    align-self: baseline;
    text-align: right;
    font-size: clamp(12px, calc(10.897px + 0.345vw), 14px);
  }

  #raiseInputWrap .raise-mode-toggle {
    order: 3;
    flex: 0 0 clamp(100px, calc(76.552px + 7.328vw), 142px) !important;
    min-height: clamp(44px, calc(41.793px + 0.69vw), 48px);
  }

  #raiseInputWrap .raise-mode-btn {
    flex: 1 1 0;
    min-width: 0;
    padding-left: clamp(8px, calc(5.793px + 0.69vw), 12px);
    padding-right: clamp(8px, calc(5.793px + 0.69vw), 12px);
    font-size: clamp(13px, calc(12.448px + 0.172vw), 14px);
  }

  .raise-amount-wrap {
    order: 4;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - clamp(108px, calc(78.207px + 9.31vw), 162px)) !important;
    margin-right: 0 !important;
  }

  .raise-amount-field {
    font-size: clamp(14px, calc(12.897px + 0.345vw), 16px);
    height: clamp(44px, calc(38.483px + 1.724vw), 54px) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .raise-amount-wrap .stepper {
    width: clamp(58px, calc(30.414px + 8.621vw), 108px) !important;
    flex-basis: clamp(58px, calc(30.414px + 8.621vw), 108px) !important;
    height: clamp(44px, calc(38.483px + 1.724vw), 54px) !important;
    align-self: stretch;
  }

  .raise-amount-wrap .step-btn {
    min-width: 0;
  }

  .raise-bonus-note {
    max-width: 550px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(11px, calc(9.897px + 0.345vw), 13px);
  }
}
.raise-delta-badge { display:inline-flex; align-items:center; gap:3px; margin-left:6px; font-size:12px; font-weight:700; padding:2px 8px; border-radius:6px; vertical-align:middle; }
.raise-delta-badge.pos { color:#00FFA3; background:rgba(0,255,163,0.10); border:1px solid rgba(0,255,163,0.2); }
.raise-delta-badge.neg { color:#FF5E62; background:rgba(255,94,98,0.10); border:1px solid rgba(255,94,98,0.2); }
.raise-delta-badge.neu { color:var(--muted); background:var(--bg-elevated); border:1px solid var(--border); }
body.light-mode .raise-delta-badge.pos {
  color: #047857;
  background: rgba(4, 120, 87, 0.12);
  border-color: rgba(4, 120, 87, 0.26);
}
body.light-mode .raise-delta-badge.neg {
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.10);
  border-color: rgba(220, 38, 38, 0.24);
}
body.light-mode .raise-new-gross,
body.light-mode .raise-new-gross .raise-new-gross-label,
body.light-mode .raise-new-gross .raise-new-gross-value {
  color: var(--text);
}
body.raise-active #annualNet,
body.raise-active #monthlyNet,
body.raise-active #bonusNetPay,
body.raise-active #annualEmployerPension,
body.raise-active #totalDeductions,
body.raise-active #employerNIDisplay,
body.raise-active #bonusMonthTakeHomeTotal {
  color: var(--raise-accent) !important;
}
body.raise-active #raiseNewGross,
body.raise-active #raiseNewGross .raise-new-gross-label,
body.raise-active #raiseNewGross .raise-new-gross-value,
body.light-mode.raise-active #raiseNewGross,
body.light-mode.raise-active #raiseNewGross .raise-new-gross-label,
body.light-mode.raise-active #raiseNewGross .raise-new-gross-value {
  color: var(--text) !important;
}
body.light-mode.raise-active #annualNet,
body.light-mode.raise-active #monthlyNet,
body.light-mode.raise-active #bonusNetPay,
body.light-mode.raise-active #annualEmployerPension,
body.light-mode.raise-active #totalDeductions,
body.light-mode.raise-active #employerNIDisplay,
body.light-mode.raise-active #bonusMonthTakeHomeTotal,
body.light-mode.raise-active .pct-big-num,
body.light-mode.raise-active .pct-big-sfx,
body.light-mode.raise-active .median-title {
  color: #6d28d9 !important;
}
body.light-mode.raise-active .pct-pin {
  background: #6d28d9;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(109,40,217,0.28);
}
/* Extra raise columns in breakdown table — hidden unless raise active */
/* === Median comparison === */
#percentilePanel { display:none; border:1px solid rgba(99,179,237,0.2); border-radius:14px; background:rgba(99,179,237,0.03); padding:16px 18px; }
#percentilePanel.visible { display:block; }
.summary-with-percentile { display:flex; flex-wrap:wrap; gap:14px; margin-top:18px; align-items:start; }
.summary-with-percentile .summary { flex:1 1 400px; margin-top:0; min-width:0; }
.summary-with-percentile #percentilePanel { flex:1 1 280px; margin-top:0; margin-bottom:0; min-width:0; }
@media (max-width: 900px) {
  .summary-with-percentile { flex-direction:column; width:100%; }
  .summary-with-percentile .summary,
  .summary-with-percentile #percentilePanel {
    flex:0 0 auto;
    width:100%;
  }
  .summary-with-percentile .metric {
    width:100%;
    box-sizing:border-box;
  }
}
.pct-top { display:flex; align-items:center; gap:16px; margin-bottom:18px; }
.pct-num-block { display:flex; align-items:baseline; gap:2px; flex-shrink:0; }
.pct-big-num { font-size:52px; font-weight:800; color:#7ec8ff; line-height:1; }
.pct-big-sfx { font-size:22px; font-weight:800; color:#7ec8ff; line-height:1; align-self:flex-end; margin-bottom:5px; }
.pct-text-block { flex:1; min-width:0; }
.pct-text-label { font-size:11px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:0.05em; margin-bottom:4px; }
.pct-text-desc { font-size:13px; font-weight:600; color:var(--text); line-height:1.45; }
.pct-gradient-bar { height:10px; border-radius:6px; background:linear-gradient(to right,rgba(148,163,184,0.22) 0%,rgba(99,179,237,0.55) 50%,rgba(52,211,153,0.7) 100%); position:relative; overflow:visible; margin-bottom:6px; }
.pct-pin { position:absolute; top:50%; width:16px; height:16px; border-radius:50%; background:#7ec8ff; border:2.5px solid var(--bg-elevated); box-shadow:0 0 0 3px rgba(99,179,237,0.35); transform:translate(-50%,-50%); transition:left 0.4s cubic-bezier(.4,0,.2,1); }
body.raise-active .pct-big-num,
body.raise-active .pct-big-sfx,
body.raise-active .median-title {
  color: var(--raise-accent) !important;
}
body.raise-active .pct-pin {
  background: var(--raise-accent);
  box-shadow: 0 0 0 3px var(--raise-accent-border);
}
.pct-ticks-row { position:relative; height:34px; }
.pct-tick { position:absolute; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:1px; }
.pct-tick::before { content:''; width:1px; height:5px; background:rgba(148,163,184,0.4); display:block; }
.pct-tick-p { font-size:10px; font-weight:700; color:#94a3b8; line-height:1; }
.pct-tick-v { font-size:9px; color:var(--muted); line-height:1; }
.median-title { font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; color:#7ec8ff; margin:0 0 14px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; }
.median-title-src { font-size:11px; font-weight:500; text-transform:none; letter-spacing:0; color:var(--muted); }
.median-diff { margin-top:14px; display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; }
.median-diff-badge { padding:3px 10px; border-radius:6px; font-size:13px; font-weight:800; }
.median-diff-badge.pos { background:rgba(52,211,153,0.12); color:#34d399; border:1px solid rgba(52,211,153,0.25); }
.median-diff-badge.neg { background:rgba(248,113,113,0.1); color:#f87171; border:1px solid rgba(248,113,113,0.2); }
.median-diff-badge.neu { background:var(--bg-elevated); color:var(--muted); border:1px solid var(--border); }
.median-diff-label { color:var(--muted); font-weight:600; }
.hh-percentile-card { margin-top:16px; border:1px solid rgba(99,179,237,0.2); border-radius:14px; background:rgba(99,179,237,0.03); padding:16px 18px; }
.hh-percentile-grid { display:grid; grid-template-columns:minmax(150px,auto) 1fr; gap:16px; align-items:center; }
.hh-percentile-num { display:flex; align-items:baseline; gap:2px; color:#7ec8ff; }
.hh-percentile-num strong { font-size:52px; line-height:1; font-weight:800; }
.hh-percentile-num span { font-size:22px; line-height:1; font-weight:800; }
.hh-percentile-meta { display:grid; gap:6px; min-width:0; }
.hh-percentile-main { font-size:13px; font-weight:700; color:var(--text); line-height:1.45; }
.hh-percentile-sub { font-size:11px; color:var(--muted); line-height:1.5; }
body.light-mode #percentilePanel,
body.light-mode .hh-percentile-card,
body.light-mode .breakdown-card,
body.light-mode .metric {
  background: rgba(2,132,199,0.08);
  border-color: rgba(2,119,189,0.28);
}
body.light-mode .pct-big-num,
body.light-mode .pct-big-sfx,
body.light-mode .median-title,
body.light-mode .breakdown-card-title,
body.light-mode .result-info-title,
body.light-mode .result-info-icon,
body.light-mode .result-info-modal h2,
body.light-mode .hh-percentile-num,
body.light-mode .hh-table thead th.th-a,
body.light-mode .hh-table .td-a,
body.light-mode .jc-table thead th.th-a,
body.light-mode .jc-table .td-a,
body.light-mode .jc-metric-a h4,
body.light-mode .card-a .jc-person-tag,
body.light-mode .card-a .hh-person-tag,
body.light-mode .win-a .jc-winner-title {
  color: #0277bd !important;
}
body.light-mode .result-info-icon {
  background: rgba(2,119,189,0.12);
  border: 1px solid rgba(2,119,189,0.22);
}
body.light-mode .auth-verify-icon {
  border-color: rgba(2,119,189,0.28);
  background: linear-gradient(180deg, rgba(2,119,189,0.12), rgba(2,119,189,0.05));
  box-shadow: 0 14px 28px rgba(15,23,42,0.08);
}
body.light-mode .pct-gradient-bar {
  background: linear-gradient(to right, rgba(82,100,119,0.26) 0%, rgba(2,132,199,0.62) 50%, rgba(4,120,87,0.72) 100%);
}
body.light-mode .pct-pin {
  background: #0284c7;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.30);
}
body.light-mode .breakdown-transpose-btn {
  background: #eef5f9;
  border-color: #9fc0d5;
  color: #0277bd;
  box-shadow: 0 6px 14px rgba(15,23,42,0.06);
}
body.light-mode .breakdown-transpose-btn:hover {
  background: #e0f2fb;
  border-color: #38bdf8;
  color: #075985;
}
body.light-mode .breakdown-transpose-btn.active {
  background: linear-gradient(180deg, #0277bd, #075985);
  border-color: #0277bd;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.18);
}
body.light-mode #paySplitCard > div:first-child > span:first-child {
  color: #0277bd !important;
}
body.light-mode #annualNet,
body.light-mode #monthlyNet {
  color: #047857 !important;
}
body.light-mode #totalDeductions {
  color: #b91c1c !important;
}
body.light-mode #employerNIDisplay {
  color: #526477 !important;
}
body.light-mode .jc-metric .jc-big-val {
  color: #102033;
}
.pension-mode-toggle .raise-mode-btn.active { color: var(--toggle-active-text) !important; }
.split-a-text { color: var(--person-a-text) !important; }
.split-a-bg { background: var(--person-a-bg) !important; }
@media (max-width: 640px) { .hh-percentile-grid { grid-template-columns:1fr; } .hh-percentile-num strong { font-size:44px; } }
.hh-person-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.card-a .hh-person-tag { color: #4da3ff; }
.card-b .hh-person-tag { color: #f97316; }
.hh-person-name { font-weight: 800; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-person-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.hh-top-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .hh-top-metrics { grid-template-columns: 1fr 1fr; } .hh-metric-total { grid-column: 1 / -1; } }
@media (max-width: 900px) { .hh-table-wrap { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; scrollbar-width: none; -ms-overflow-style: none; width: 100%; max-width: 100%; box-sizing: border-box; } .hh-scroll-outer { overflow: hidden; width: 100%; max-width: 100%; box-sizing: border-box; } #hhResultsBody { width: 100%; box-sizing: border-box; } #hhResultsBody .hh-top-metrics { width: 100%; box-sizing: border-box; } .hh-table-wrap::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none; } .hh-table { display: table; min-width: 380px; width: max-content; max-width: none; overflow: visible !important; } .hh-table thead { display: table-header-group; } .hh-table tbody { display: table-row-group; } .hh-table th:first-child, .hh-table td:first-child { position: -webkit-sticky !important; position: sticky !important; left: 0 !important; z-index: 3 !important; background: var(--table-head) !important; width: 110px !important; min-width: 110px !important; max-width: 110px !important; border-right: 2px solid rgba(99,179,237,0.25) !important; font-size: 12px; padding-left: 8px !important; } .hh-table tbody td:first-child { background: var(--table-row) !important; } .hh-table th, .hh-table td { padding: 9px 10px; font-size: 13px; } .hh-table thead th { font-size: 11px; } }
@media (max-width: 900px) { .hh-metric { padding: 10px 10px; border-radius: 10px; } .hh-metric .hh-big-val { font-size: 16px; } .hh-metric .hh-sub-val { font-size: 10px; } .hh-metric h4 { font-size: 9px; margin-bottom: 4px; } .hh-metric .hh-person-name { font-size: 12px; } .hh-metric .hh-person-meta { font-size: 10px; } .hh-top-metrics { gap: 8px; } }
@media (max-width: 900px) {
  #mobileCompareBody #hhResultsWrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding-left: 8px;
    padding-right: 8px;
  }
  #mobileCompareBody #hhResultsBody,
  #mobileCompareBody .hh-scroll-outer,
  #mobileCompareBody .hh-table-wrap {
    min-width: 0;
    max-width: 100%;
  }
  #mobileCompareBody .hh-top-metrics {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }
  #mobileCompareBody .hh-metric {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  #mobileCompareBody .hh-metric-total {
    grid-column: 1 / -1;
  }
  #mobileCompareBody .hh-person-name,
  #mobileCompareBody .hh-person-meta,
  #mobileCompareBody .hh-sub-val {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #mobileCompareBody .hh-metric .hh-big-val {
    white-space: nowrap;
    font-size: clamp(15px, 5.2vw, 18px);
  }
}
.hh-metric { border-radius: 14px; padding: 14px 16px; box-sizing: border-box; width: 100%; }
.hh-metric-a { background: rgba(77,163,255,0.08); border: 1px solid rgba(77,163,255,0.2); }
.hh-metric-b { background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.2); }
.hh-metric-c { background: rgba(167,139,250,0.08); border: 1px solid rgba(167,139,250,0.24); }
.hh-metric-d { background: rgba(45,212,191,0.08); border: 1px solid rgba(45,212,191,0.24); }
.hh-metric-e { background: rgba(251,113,133,0.08); border: 1px solid rgba(251,113,133,0.24); }
.hh-metric-total { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); }
.hh-metric h4 { margin: 0 0 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.hh-metric-a h4 { color: #2563eb; }
.hh-metric-b h4 { color: #f97316; }
.hh-metric-c h4 { color: #a78bfa; }
.hh-metric-d h4 { color: #2dd4bf; }
.hh-metric-e h4 { color: #fb7185; }
.hh-metric-total h4 { color: var(--good); }
.hh-metric .hh-big-val { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.2; }
.hh-metric .hh-sub-val { font-size: 11px; color: var(--muted); margin-top: 4px; }
.hh-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--table-row); border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: visible; }
.hh-table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.hh-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--table-row); margin-top: 0; overflow: visible; }
.hh-table th, .hh-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 14px; text-align: center; color: var(--text); vertical-align: middle; }
.hh-table th:first-child, .hh-table td:first-child { text-align: left; font-weight: 600; padding-right: 4px; }
.hh-table th:nth-child(3), .hh-table td:nth-child(3) { border-left: 1px dotted var(--border); }
.hh-table thead th { background: var(--table-head); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--summary-title); }
.hh-table thead th.th-a { color: #7ec8ff; }
.hh-table thead th.th-b { color: #f97316; }
.hh-table thead th.th-c { color: #a78bfa; }
.hh-table thead th.th-d { color: #2dd4bf; }
.hh-table thead th.th-e { color: #fb7185; }
.hh-table thead th.th-total { color: var(--text); }
.hh-table tbody tr:nth-child(even) td { background: var(--table-row-alt); }
.hh-table tbody tr:last-child td { border-bottom: none; }
.hh-table .td-a { color: #7ec8ff; }
.hh-table .td-b { color: #f97316; }
.hh-table .td-c { color: #a78bfa; }
.hh-table .td-d { color: #2dd4bf; }
.hh-table .td-e { color: #fb7185; }
.hh-table .td-total { font-weight: 700; color: var(--text); }
.hh-table .row-takehome td { font-weight: 800 !important; font-size: 14px !important; }
.hh-table .row-takehome td.td-a { color: #7ec8ff; }
.hh-table .row-takehome td.td-b { color: #f97316; }
.hh-table .row-takehome td.td-c { color: #a78bfa; }
.hh-table .row-takehome td.td-d { color: #2dd4bf; }
.hh-table .row-takehome td.td-e { color: #fb7185; }
.hh-table .row-takehome td.td-total { color: var(--good); }
.hh-table .row-gross td { background: rgba(255,255,255,0.02); }
/* ── Job A vs Job B Comparison ───────────────────── */
.jc-persons-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; margin-bottom: 16px; align-items: center; }
.jc-person-card { background: var(--card-2); border-radius: 12px; padding: 12px 14px; }
.jc-person-card.card-a { border: 1px solid rgba(77,163,255,0.35); }
.jc-person-card.card-b { border: 1px solid rgba(249,115,22,0.35); }
.jc-person-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.card-a .jc-person-tag { color: #4da3ff; }
.card-b .jc-person-tag { color: #f97316; }
.jc-person-name { font-weight: 800; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jc-person-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.jc-vs-sep { text-align: center; font-size: 14px; font-weight: 800; color: var(--muted); line-height: 1; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; padding: 5px 8px; white-space: nowrap; }
.jc-top-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .jc-top-metrics { grid-template-columns: 1fr; } }
.jc-metric { border-radius: 14px; padding: 14px 16px; }
.jc-metric-a { background: rgba(77,163,255,0.08); border: 1px solid rgba(77,163,255,0.2); }
.jc-metric-b { background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.2); }
.jc-metric h4 { margin: 0 0 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.jc-metric-a h4 { color: #7ec8ff; }
.jc-metric-b h4 { color: #f97316; }
.jc-metric .jc-big-val { font-size: 22px; font-weight: 800; color: #f8fafc; line-height: 1.2; }
.jc-metric .jc-sub-val { font-size: 11px; color: var(--muted); margin-top: 4px; }
.jc-delta-win { font-size: 13px; font-weight: 800; color: var(--good); margin-top: 8px; }
.jc-delta-lose { font-size: 13px; font-weight: 800; color: var(--danger-text); margin-top: 8px; }
.jc-table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.jc-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--table-row); margin-top: 0; overflow: visible; }
.jc-table .row-effective-rate .tip { top: auto !important; bottom: calc(100% + 10px); transform: translateY(4px) !important; }
.jc-table .row-effective-rate .tooltip:hover .tip,
.jc-table .row-effective-rate .tooltip:focus-within .tip { transform: translateY(0) !important; opacity: 1; pointer-events: auto; }
.jc-table .row-effective-rate .tip::before { top: auto !important; bottom: -6px; border-left: none !important; border-top: none !important; border-right: 1px solid var(--tooltip-border); border-bottom: 1px solid var(--tooltip-border); }
.jc-table th, .jc-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 14px; text-align: center; color: var(--text); vertical-align: middle; }
.jc-table th:first-child, .jc-table td:first-child { text-align: left; font-weight: 600; padding-right: 4px; }
.jc-table th:last-child, .jc-table td:last-child { border-left: 1px dotted rgba(255,255,255,0.15); }
.jc-table thead th { background: var(--table-head); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--summary-title); }
.jc-table thead th.th-a { color: #7ec8ff; }
.jc-table thead th.th-b { color: #f97316; }
.jc-table thead th.th-delta { color: #a78bfa; }
.jc-table tbody tr:nth-child(even) td { background: var(--table-row-alt); }
.jc-table tbody tr:last-child td { border-bottom: none; }
.jc-table .td-a { color: #7ec8ff; }
.jc-table .td-b { color: #f97316; }
.jc-table .td-delta-pos { color: #34d399; font-weight: 700; }
.jc-table .td-delta-neg { color: #f87171; font-weight: 700; }
.jc-table .td-delta-neu { color: var(--muted); }
.jc-table .row-takehome td { font-weight: 800 !important; font-size: 14px !important; }
.jc-table .row-effective-rate td:first-child { text-align: left !important; vertical-align: middle !important; padding-top: 0 !important; padding-bottom: 0 !important; padding-left: 8px !important; height: 28px; }
.jc-table .row-takehome td.td-a { color: #7ec8ff; }
.jc-table .row-takehome td.td-b { color: #f97316; }
.jc-table .row-effective-rate td { font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.03) !important; border-top: 2px solid var(--border); color: var(--muted); }
.jc-table .row-effective-rate td.td-a { color: #7ec8ff; }
.jc-table .row-effective-rate td.td-b { color: #f97316; }
@media (max-width: 900px) { .jc-table-wrap { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; scrollbar-width: none; -ms-overflow-style: none; width: 100%; max-width: 100%; box-sizing: border-box; } .jc-scroll-outer { overflow: hidden; width: 100%; max-width: 100%; box-sizing: border-box; } #jcResultsBody { width: 100%; box-sizing: border-box; } #jcResultsBody .jc-top-metrics { width: 100%; box-sizing: border-box; } .jc-table-wrap::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none; } .jc-table { display: table; min-width: 380px; width: 100%; max-width: none; table-layout: fixed; overflow: visible !important; } .jc-table thead { display: table-header-group; } .jc-table tbody { display: table-row-group; } .jc-table th:first-child, .jc-table td:first-child { position: -webkit-sticky !important; position: sticky !important; left: 0 !important; z-index: 3 !important; background: var(--table-head) !important; width: 110px !important; min-width: 110px !important; max-width: 110px !important; border-right: 2px solid rgba(99,179,237,0.25) !important; font-size: 12px; padding-left: 8px !important; } .jc-table th:not(:first-child), .jc-table td:not(:first-child) { width: calc((100% - 110px) / 3); } .jc-table tbody td:first-child { background: var(--table-row) !important; } .jc-table tbody tr:nth-child(even) td:first-child { background: var(--table-row-alt) !important; } .jc-table th, .jc-table td { padding: 9px 10px; font-size: 13px; } .jc-table thead th { font-size: 11px; } .jc-table .row-effective-rate td { font-size: 13px; } }
.jc-winner-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; }
.jc-winner-banner.win-a { background: rgba(77,163,255,0.1); border: 1px solid rgba(77,163,255,0.25); }
.jc-winner-banner.win-b { background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.25); }
.jc-winner-banner.win-tie { background: rgba(156,163,175,0.1); border: 1px solid rgba(156,163,175,0.25); }
.jc-winner-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.jc-winner-body { flex: 1; min-width: 0; }
.jc-winner-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.win-a .jc-winner-title { color: #7ec8ff; }
.win-b .jc-winner-title { color: #f97316; }
.jc-winner-sub { font-size: 12px; color: var(--muted); line-height: 1.45; }
#jcResultsWrap { display: none; margin-top: 26px; }
#hhResultsWrap { overflow: visible; }
#jcResultsWrap { overflow: visible; }
#jcResultsWrap summary::-webkit-details-marker { display: none; }
.hh-summary-save-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid rgba(52,211,153,0.35);
  background: rgba(52,211,153,0.14);
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0;
}
@media (max-width: 900px) {
  #hhSavedCombosWrap { display: none !important; }
  .hh-summary-save-mobile { display: none !important; }
  .hh-summary-save-after-total {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    border-radius: 12px;
    background: #047857 !important;
    border: 1px solid #065f46 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(4,120,87,0.18);
  }
  .hh-summary-save-after-total:hover {
    background: #065f46 !important;
    border-color: #064e3b !important;
  }
}
/* ── Sick Pay Calculator ─────────────────────────── */
.sick-panel{padding:12px 14px 14px;}
.sick-field{margin-bottom:12px;}
.sick-field label{display:block;font-size:13px;color:var(--muted);margin-bottom:4px;}
.sick-pay-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:4px;}
@media(max-width:900px){.sick-pay-grid{grid-template-columns:1fr;}}
.sick-col{background:var(--card-2);border-radius:8px;padding:14px;}
.sick-col.sp-normal{border-top:3px solid var(--primary);}
.sick-col.sp-sick{border-top:3px solid var(--warn);}
.sick-col-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.sick-col-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);}
.sick-weeks-badge{font-size:11px;background:rgba(245,158,11,.2);color:var(--warn);padding:2px 8px;border-radius:10px;font-weight:700;}
.sp-row{display:flex;justify-content:space-between;align-items:baseline;padding:5px 0;border-bottom:1px solid var(--border);font-size:13px;}
.sp-row:last-child{border-bottom:none;}
.sp-row-lbl{color:var(--muted);}
.sp-row-val{font-weight:600;font-variant-numeric:tabular-nums;}
.sp-total-row{margin-top:4px;}
.sp-total-row .sp-row-lbl{font-weight:600;color:var(--text);}
.sp-impact{border-radius:8px;padding:12px 14px;margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:8px;}
.sp-impact.sp-loss{background:var(--danger-bg);}
.sp-impact.sp-gain{background:var(--good-bg);}
.sp-impact-lbl{font-size:12px;color:var(--muted);}
.sp-impact-val{font-size:20px;font-weight:700;font-variant-numeric:tabular-nums;}
.sp-impact.sp-loss .sp-impact-val{color:var(--danger-text);}
.sp-impact.sp-gain .sp-impact-val{color:var(--good);}
.sp-ctx{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.6;}
.sp-ctx strong{color:var(--text);}
/* Sick phase rows */
.sp-phase-row{display:grid;grid-template-columns:112px minmax(118px,160px) 36px;gap:10px;align-items:end;margin-bottom:10px;}
.sp-phase-row.has-custom{grid-template-columns:112px minmax(96px,112px) 66px 36px;gap:8px;}
.sp-phase-cell{display:flex;flex-direction:column;gap:0;min-width:0;}
.sp-phase-cell label{font-size:12px;color:var(--muted);font-weight:800;letter-spacing:.02em;margin-bottom:6px;}
.sp-phase-weeks-wrap{width:112px;}
.sp-phase-weeks-wrap .stepper{width:56px;flex-basis:56px;}
.sp-phase-weeks-wrap .step-btn{min-width:28px;}
.sp-phase-custom-wrap{width:66px;}
.sp-phase-custom-wrap > input[type="number"]{border-radius:10px !important;border-right:1px solid var(--border) !important;}
@media (max-width: 420px) {
  #leavePayOverlay{padding-left:8px;padding-right:8px;}
  #leavePayOverlay .result-info-modal-body{padding-left:12px;padding-right:12px;}
  #leavePayOverlay .sick-panel{padding-left:0;padding-right:0;}
  .sp-phase-row{grid-template-columns:minmax(84px,0.82fr) minmax(112px,1.18fr) 32px;gap:6px;}
  .sp-phase-row.has-custom{grid-template-columns:minmax(78px,0.85fr) minmax(94px,1fr) minmax(58px,0.75fr) 32px;gap:4px;}
  .sp-phase-weeks-wrap,
  .sp-phase-custom-wrap,
  .sp-phase-type{width:100%;min-width:0;max-width:100%;box-sizing:border-box;}
  .sp-phase-weeks-wrap .stepper{width:48px;flex-basis:48px;}
  .sp-phase-weeks-wrap .step-btn{min-width:24px;}
  .sp-phase-row .sp-phase-add,
  .sp-phase-row .sp-phase-remove{width:32px !important;min-width:32px !important;height:48px !important;}
}
@media (min-width: 900.01px) {
  .sp-phase-row{
    grid-template-columns: clamp(96px, calc(12.9032vw - 20.129px), 112px) minmax(clamp(96px, calc(17.7419vw - 63.6774px), 118px), clamp(108px, calc(41.9355vw - 269.4194px), 160px)) clamp(30px, calc(4.8387vw - 13.5484px), 36px);
    gap: clamp(6px, calc(3.2258vw - 23.0323px), 10px);
  }
  .sp-phase-row.has-custom{
    grid-template-columns: clamp(96px, calc(12.9032vw - 20.129px), 112px) minmax(clamp(86px, calc(8.0645vw + 13.4194px), 96px), clamp(96px, calc(12.9032vw - 20.129px), 112px)) clamp(58px, calc(6.4516vw - 0.0645px), 66px) clamp(30px, calc(4.8387vw - 13.5484px), 36px);
    gap: clamp(6px, calc(1.6129vw - 8.5161px), 8px);
  }
  .sp-phase-weeks-wrap{width:clamp(96px, calc(12.9032vw - 20.129px), 112px);}
  .sp-phase-weeks-wrap .stepper{width:clamp(48px, calc(6.4516vw - 10.0645px), 56px);flex-basis:clamp(48px, calc(6.4516vw - 10.0645px), 56px);}
 .sp-phase-weeks-wrap .step-btn{min-width:clamp(24px, calc(3.2258vw - 5.0323px), 28px);}
 .sp-phase-custom-wrap{width:clamp(58px, calc(6.4516vw - 0.0645px), 66px);}
 .sp-phase-row .sp-phase-add,
 .sp-phase-row .sp-phase-remove{width:clamp(30px, calc(4.8387vw - 13.5484px), 36px) !important;min-width:clamp(30px, calc(4.8387vw - 13.5484px), 36px) !important;}
}
.btn-danger.sp-phase-remove::before{content:"×";font-size:20px;font-weight:900;line-height:1;opacity:0.9;}
@media (max-width:900px){
  #baseSalaryField,
  #baseSalaryField2,
  #proRataWrap,
  #proRataWrap2,
  #proRataFields,
  #proRataFields2 {
    max-width:100%;
    min-width:0;
    overflow-x:clip;
    box-sizing:border-box;
  }
  #proRataFields .control-row,
  #proRataFields2 .control-row {
    width:100%;
    max-width:100%;
    min-width:0;
    gap:10px 0;
    box-sizing:border-box;
  }
  #proRataFields .control-row .grow,
  #proRataFields2 .control-row .grow {
    flex:0 1 100% !important;
    width:100%;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box;
  }
  #proRataFields .input-group.num-wrap,
  #proRataFields2 .input-group.num-wrap {
    width:100%;
    min-width:0;
    max-width:100%;
  }
}

@media (max-width:900px) {
  html:not(.pwa-standalone) .bc-track,
  html:not(.pwa-standalone) .breakdown-table,
  html:not(.pwa-standalone) .hh-table-wrap,
  html:not(.pwa-standalone) .jc-table-wrap,
  html:not(.pwa-standalone) .mobile-view-body {
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
  }

  html:not(.pwa-standalone) .bc-track::-webkit-scrollbar,
  html:not(.pwa-standalone) .breakdown-table::-webkit-scrollbar,
  html:not(.pwa-standalone) .hh-table-wrap::-webkit-scrollbar,
  html:not(.pwa-standalone) .jc-table-wrap::-webkit-scrollbar,
  html:not(.pwa-standalone) .mobile-view-body::-webkit-scrollbar {
    display: block !important;
    width: auto !important;
    height: auto !important;
  }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .content {
    padding-top: 14px;
  }

  .sidebar {
    --sidebar-top: 12px;
    top: 12px;
  }
}

html.pwa-standalone .content {
  padding-top: 14px;
}

html.pwa-standalone .sidebar {
  --sidebar-top: 12px;
  top: 12px;
}

@media (max-width: 900px) {
  html.pwa-standalone {
    --pwa-mobile-header-min-h: 48px;
    --pwa-mobile-header-pad-top: calc(env(safe-area-inset-top, 0px) + 15px);
    --pwa-mobile-header-pad-x: 16px;
    --pwa-mobile-header-pad-bottom: 9px;
    --pwa-mobile-header-total-h: calc(var(--pwa-mobile-header-min-h) + var(--pwa-mobile-header-pad-top) + var(--pwa-mobile-header-pad-bottom) + 1px);
    --pwa-mobile-toggle-left: 16px;
    --pwa-mobile-toggle-bottom: 16px;
  }

  html.pwa-standalone,
  html.pwa-standalone body {
    background: var(--bg);
  }

  html:not(.pwa-standalone) .header {
    display: flex !important;
    visibility: visible !important;
    position: sticky !important;
    top: 0 !important;
  }

  html:not(.pwa-standalone) .header > * {
    visibility: visible !important;
  }

  html.pwa-standalone .header,
  html.pwa-standalone .header > *,
  html.pwa-standalone .header-play-link {
    display: none !important;
    visibility: hidden !important;
  }

  html.pwa-standalone,
  html.pwa-standalone body,
  html.pwa-standalone *,
  html.pwa-standalone .mobile-view-body,
  html.pwa-standalone .breakdown-table,
  html.pwa-standalone .bc-track,
  html.pwa-standalone .hh-table-wrap,
  html.pwa-standalone .jc-table-wrap {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  html.pwa-standalone::-webkit-scrollbar,
  html.pwa-standalone body::-webkit-scrollbar,
  html.pwa-standalone *::-webkit-scrollbar,
  html.pwa-standalone .mobile-view-body::-webkit-scrollbar,
  html.pwa-standalone .breakdown-table::-webkit-scrollbar,
  html.pwa-standalone .bc-track::-webkit-scrollbar,
  html.pwa-standalone .hh-table-wrap::-webkit-scrollbar,
  html.pwa-standalone .jc-table-wrap::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }

  html.pwa-standalone body {
    overflow-x: clip !important;
  }

  html.pwa-standalone.light-mode-root,
  html.pwa-standalone.light-mode-root body {
    background: #f5f9fc !important;
    color-scheme: only light;
  }

  html.pwa-standalone .card,
  html.pwa-standalone .content,
  html.pwa-standalone .mobile-view {
    background: var(--bg);
  }

  html.pwa-standalone.light-mode-root .card,
  html.pwa-standalone.light-mode-root .content,
  html.pwa-standalone.light-mode-root .mobile-view,
  html.pwa-standalone.light-mode-root .mobile-view-body {
    background: #f5f9fc !important;
  }

  html.pwa-standalone .mobile-view {
    top: 0 !important;
  }

  html.pwa-standalone.mobile-tab-open .mobile-view {
    top: 0 !important;
  }

  html.pwa-standalone .content {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }

  html.pwa-standalone .layout {
    gap: 14px;
  }

  html.pwa-standalone .layout > .sidebar,
  html.pwa-standalone .main > :not(.mode-toggle-row):not(.main-back-top-btn) {
    margin-left: 12px;
    margin-right: 12px;
  }

  html.pwa-standalone #resultsWrap {
    margin-left: 4px;
    margin-right: 4px;
    width: calc(100% - 8px) !important;
    max-width: calc(100% - 8px) !important;
  }

  html.pwa-standalone #resultsWrap .takehome-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.pwa-standalone #resultsWrap .takehome-tools > .raise-toggle-btn,
  html.pwa-standalone #resultsWrap .takehome-tools > .target-toggle-btn {
    width: 100%;
    min-width: 0;
  }

  html.pwa-standalone .mode-toggle-row,
  html.pwa-standalone .mobile-view-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: var(--pwa-mobile-header-min-h);
    padding: var(--pwa-mobile-header-pad-top) var(--pwa-mobile-header-pad-x) var(--pwa-mobile-header-pad-bottom);
    border-top: 0 !important;
    border-bottom: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    box-sizing: content-box;
    box-shadow: none !important;
    outline: 0;
  }

  html.pwa-standalone.light-mode-root .mode-toggle-row,
  html.pwa-standalone.light-mode-root .mobile-view-header,
  html.pwa-standalone.light-mode-root .mobile-nav {
    background: #ffffff !important;
  }

  html.pwa-standalone.light-mode-root .mobile-nav .fab-actions {
    background: #f8fbfd !important;
  }

  html.pwa-standalone .mode-toggle-row {
    width: 100%;
    max-width: 100%;
    min-height: var(--pwa-mobile-header-total-h);
    margin: 0 0 14px;
    gap: 10px;
    justify-content: flex-end;
    box-sizing: border-box;
    box-shadow: none;
  }

  html.pwa-standalone .mode-toggle-row::before,
  html.pwa-standalone .mode-toggle-row::after,
  html.pwa-standalone .mobile-view-header::before,
  html.pwa-standalone .mobile-view-header::after {
    display: none !important;
  }

  html.pwa-standalone .main {
    overflow-x: hidden !important;
  }

  html.pwa-standalone .mode-toggle-label {
    margin-left: 0;
  }

  html.pwa-standalone .mode-toggle-row .theme-toggle-btn,
  html.pwa-standalone .mobile-view-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: var(--pwa-mobile-toggle-left);
    bottom: var(--pwa-mobile-toggle-bottom);
    top: auto;
    right: auto;
    transform: none;
    margin: 0;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    max-width: 34px;
    max-height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: rgba(255,255,255,0.48);
    cursor: pointer;
    padding: 0;
  }

  html.pwa-standalone .mobile-view-theme-toggle::before {
    content: "";
    position: relative;
    z-index: 1;
    width: 17px;
    height: 17px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 1 4 10.47V17H8v-3.53A6 6 0 0 1 12 3z'/%3E%3Cpath d='M8 17h8M9 21h6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 1 4 10.47V17H8v-3.53A6 6 0 0 1 12 3z'/%3E%3Cpath d='M8 17h8M9 21h6'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  html.pwa-standalone body.light-mode .mode-toggle-row .theme-toggle-btn,
  html.pwa-standalone body.light-mode .mobile-view-theme-toggle {
    background: #ffffff;
    border-color: #0284c7;
    color: #0277bd;
    box-shadow: 0 0 0 3px rgba(2,132,199,0.14), 0 8px 18px rgba(2,119,189,0.18);
  }

  html.pwa-standalone body.light-mode .mode-toggle-row .theme-toggle-btn::after,
  html.pwa-standalone body.light-mode .mobile-view-theme-toggle::after {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 0;
    border-radius: 50%;
    background: rgba(2,132,199,0.12);
    opacity: 0.65;
    pointer-events: none;
  }
}

@media (min-width: 900.01px) {
  .layout {
    display: grid;
    grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  }

  .layout > .sidebar,
  .layout > .main {
    min-width: 0;
  }

  #job1Section > .form-section > .form-section-body,
  #job2Section > .form-section > .form-section-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #job1Section > .form-section > .form-section-body > .grid,
  #job2Section > .form-section > .form-section-body > .grid,
  #job1Section > .form-section > .form-section-body > .field,
  #job2Section > .form-section > .form-section-body > .field,
  #job1Section > .form-section > .form-section-body > .field.third,
  #job2Section > .form-section > .form-section-body > .field.third,
  #job1Section > .form-section > .form-section-body > .field.full,
  #job2Section > .form-section > .form-section-body > .field.full {
    width: min(500px, 100%) !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #job1Section .form-section .field > select,
  #job2Section .form-section .field > select,
  #job1Section .form-section .field > .select-animate,
  #job2Section .form-section .field > .select-animate,
  #job1Section .form-section .bonus-rows,
  #job2Section .form-section .bonus-rows,
  #job1Section .form-section .bonus-row,
  #job2Section .form-section .bonus-row,
  #job1Section .form-section .pension-inline,
  #job2Section .form-section .pension-inline,
  #job1Section .form-section .pension-grid-head,
  #job2Section .form-section .pension-grid-head,
  #job1Section .form-section .adv-rows,
  #job2Section .form-section .adv-rows {
    width: 100% !important;
  }

  #baseSalaryField,
  #baseSalaryField2,
  #j1HoursField,
  #bonusField,
  #pensionContribMain,
  #j2BaseSection .field.third,
  #bonusField2,
  #pensionContrib2,
  #j2OvertimeSection .field.third.field-block {
    width: min(500px, 100%) !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #baseSalaryField .inputs-row,
  #baseSalaryField2 .inputs-row,
  #j1HoursField .working-hours-row,
  #proRataFields,
  #proRataFields2 {
    width: min(500px, 100%) !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #proRataFields .control-row,
  #proRataFields2 .control-row,
  #proRataFields .grow,
  #proRataFields2 .grow,
  #proRataFields .input-group,
  #proRataFields2 .input-group,
  #j1HoursField .working-hours-row > .input-group.num-wrap,
  #j2BaseSection .field.third .control-row .grow .input-group.num-wrap {
    width: 500px !important;
    min-width: 500px !important;
    max-width: 500px !important;
  }

  #salaryHintRow,
  #salaryHintRow2,
  #baseSalaryField > .hint,
  #baseSalaryField2 > .hint {
    width: min(500px, 100%) !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #salaryHintRow > div,
  #salaryHintRow2 > div {
    display: flex !important;
    width: 100%;
    justify-content: flex-start !important;
  }

  #salaryHint,
  #salaryHint2 {
    margin: 0 !important;
    flex: 0 1 auto !important;
    width: auto !important;
    text-align: left;
  }

  #baseSalaryField #proRataHoursLabel,
  #baseSalaryField2 #proRataHours2Label {
    width: min(500px, 100%) !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
  }

  #baseSalaryField #proRataHoursLabel .hint-text,
  #baseSalaryField2 #proRataHours2Label .hint-text {
    flex: 0 0 auto !important;
  }

  #baseSalaryField #proRataHoursLabel .tooltip,
  #baseSalaryField2 #proRataHours2Label .tooltip {
    margin-left: 0 !important;
    flex: 0 0 auto !important;
  }

  #j1HoursField .working-hours-hint,
  #hoursPerWeek2Hint {
    width: min(500px, 100%) !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 4px;
  }

  #j1HoursField .working-hours-hint .hint-text,
  #hoursPerWeek2Hint .hint-text {
    flex: 0 0 auto;
  }

  #j1HoursField .working-hours-hint .tooltip,
  #hoursPerWeek2Hint .tooltip {
    margin-left: 0 !important;
    flex: 0 0 auto !important;
  }

  .second-job-working-hours-hint {
    margin-bottom: 16px !important;
  }

  .second-job-total-days-hint {
    width: min(500px, 100%) !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
  }

  .second-job-total-days-hint .hint-text {
    flex: 0 1 auto !important;
  }

  #j2BaseSection .form-section-body,
  #j2BonusSection .form-section-body,
  #j2PensionSection .form-section-body,
  #j2OvertimeSection .form-section-body {
    width: min(500px, 100%) !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 900.01px) and (max-width: 1024px) {
  .layout {
    grid-template-columns: clamp(310px, calc(88.7097vw - 488.3871px), 420px) minmax(0, 1fr);
  }

}

@media (min-width: 1024.01px) {
  .layout {
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  }
}

@media (min-width: 900.01px) {
  #j2PensionSection .form-section-body {
    width: min(532px, 100%) !important;
    max-width: 532px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  #j1BaseSection {
    position: relative;
    padding-bottom: 16px !important;
  }

  #j1HoursField {
    position: relative;
    padding-bottom: 48px;
  }

  #j1HoursField .working-hours-row {
    position: static;
    flex-wrap: nowrap !important;
    padding-bottom: 0;
  }

  #j1HoursField .working-hours-row .second-job-inline {
    position: absolute !important;
    right: 0;
    bottom: 0;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    transform: translateY(0) !important;
    z-index: 2;
  }
}

@media (min-width: 900.01px) and (max-width: 1120px) {
  #baseSalaryField .inputs-row,
  #baseSalaryField2 .inputs-row {
    width: min(500px, 100%) !important;
    max-width: 500px !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #baseSalaryField .inputs-row .grow,
  #baseSalaryField2 .inputs-row .grow {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  #baseSalaryField .input-group,
  #baseSalaryField2 .input-group {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  #baseSalaryField #salaryType,
  #baseSalaryField2 #salaryType2 {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    flex: 0 0 90px !important;
    padding-left: 9px !important;
    padding-right: 22px !important;
  }

  #proRataBtn,
  #proRataBtn2 {
    flex: 0 0 74px !important;
    max-width: 74px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    font-size: 10px !important;
  }
}

@media (min-width: 1280px) {
  .main #job1Section input[type="number"],
  .main #job1Section input[type="text"],
  .main #job1Section select,
  .main #job1Section .mini-select,
  .main #job2Section input[type="number"],
  .main #job2Section input[type="text"],
  .main #job2Section select,
  .main #job2Section .mini-select {
    font-size: 17px !important;
  }

  .main #job1Section .input-prefix,
  .main #job2Section .input-prefix {
    font-size: 17px !important;
  }

  .main #job1Section .input-suffix-btn,
  .main #job2Section .input-suffix-btn {
    font-size: 12px !important;
  }

  .main #job1Section .hint,
  .main #job2Section .hint,
  .main #job1Section label,
  .main #job2Section label {
    font-size: 14px !important;
  }

  .main #job1Section .working-hours-hint,
  .main #job2Section .working-hours-hint,
  .main #job1Section .pro-rata-hint,
  .main #job2Section .pro-rata-hint {
    font-size: 14px !important;
  }

  .main .form-section > summary .form-section-heading {
    font-size: 21px;
  }

  .main .job-tab {
    font-size: 15px;
  }

  .main .mode-toggle-label {
    font-size: 13px;
  }

  .main .mode-btn {
    font-size: 13px;
  }

  .main #job1Section .second-job-label,
  .main #job2Section .second-job-label {
    font-size: 14px !important;
  }
}

@media (min-width: 900.01px) {
  #baseSalaryField #salaryType,
  #baseSalaryField2 #salaryType2 {
    width: clamp(90px, calc(27.4194vw - 156.7742px), 124px) !important;
    min-width: clamp(90px, calc(27.4194vw - 156.7742px), 124px) !important;
    max-width: clamp(90px, calc(27.4194vw - 156.7742px), 124px) !important;
    flex: 0 0 clamp(90px, calc(27.4194vw - 156.7742px), 124px) !important;
    padding-left: clamp(9px, calc(2.4194vw - 12.7742px), 12px) !important;
    padding-right: clamp(22px, calc(4.8387vw - 21.5484px), 28px) !important;
  }

  #job1Section .bonus-row,
  #job2Section .bonus-row {
    grid-template-columns: minmax(0, 1fr) minmax(clamp(140px, calc(56.4516vw - 368.0645px), 210px), clamp(180px, calc(40.3226vw - 182.9032px), 230px)) 44px;
  }

  #job1Section .bonus-type,
  #job2Section .bonus-type2 {
    min-width: clamp(140px, calc(56.4516vw - 368.0645px), 210px);
    padding-left: clamp(8px, calc(3.2258vw - 21.0323px), 12px);
    padding-right: clamp(20px, calc(8.0645vw - 52.5806px), 30px);
  }
}

@media (max-width: 900px) {
  .main #job1Section > .form-section > .form-section-body,
  .main #job2Section > .form-section > .form-section-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .main #job1Section > .form-section > .form-section-body > .grid,
  .main #job2Section > .form-section > .form-section-body > .grid,
  .main #job1Section > .form-section > .form-section-body > .field,
  .main #job2Section > .form-section > .form-section-body > .field,
  .main #job1Section > .form-section > .form-section-body > .field.third,
  .main #job2Section > .form-section > .form-section-body > .field.third,
  .main #job1Section > .form-section > .form-section-body > .field.full,
  .main #job2Section > .form-section > .form-section-body > .field.full,
  .main #baseSalaryField,
  .main #baseSalaryField2,
  .main #j1HoursField,
  .main #bonusField,
  .main #pensionContribMain,
  .main #bonusField2,
  .main #pensionContrib2,
  .main #j2OvertimeSection .field.third.field-block {
    width: min(500px, 100%) !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .main #baseSalaryField .inputs-row,
  .main #baseSalaryField2 .inputs-row,
  .main #j1HoursField .working-hours-row,
  .main #proRataFields,
  .main #proRataFields2,
  .main #proRataFields .control-row,
  .main #proRataFields2 .control-row,
  .main #salaryHintRow,
  .main #salaryHintRow2,
  .main #baseSalaryField > .hint,
  .main #baseSalaryField2 > .hint,
  .main #j1HoursField .working-hours-hint,
  .main #hoursPerWeek2Hint {
    width: min(500px, 100%) !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .main #job1Section .bonus-rows,
  .main #job2Section .bonus-rows,
  .main #job1Section .bonus-row,
  .main #job2Section .bonus-row,
  .main #job1Section .pension-inline,
  .main #job2Section .pension-inline,
  .main #job1Section .pension-grid-head,
  .main #job2Section .pension-grid-head,
  .main #job1Section .adv-rows,
  .main #job2Section .adv-rows {
    width: 100% !important;
  }

  .main #j1HoursField .working-hours-hint,
  .main #hoursPerWeek2Hint,
  .main #proRataHoursLabel,
  .main #proRataHours2Label,
  .main .second-job-total-days-hint {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
  }

  .main #j1HoursField .working-hours-hint .hint-text,
  .main #hoursPerWeek2Hint .hint-text,
  .main #proRataHoursLabel .hint-text,
  .main #proRataHours2Label .hint-text,
  .main .second-job-total-days-hint .hint-text {
    flex: 0 1 auto !important;
  }

  .main #j1HoursField .working-hours-hint .tooltip,
  .main #hoursPerWeek2Hint .tooltip,
  .main #proRataHoursLabel .tooltip,
  .main #proRataHours2Label .tooltip,
  .main .second-job-total-days-hint .tooltip {
    margin-left: 0 !important;
    flex: 0 0 auto !important;
  }

  .main #j1HoursField {
    position: relative !important;
    padding-bottom: 48px !important;
  }

  .main #j1HoursField .working-hours-row {
    position: static !important;
    flex-wrap: nowrap !important;
    padding-bottom: 0 !important;
  }

  .main #j1HoursField .working-hours-row > .input-group.num-wrap {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }

  .main #j1HoursField .working-hours-row .second-job-inline {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    transform: none !important;
    z-index: 2;
  }
}

/* Final mobile sidebar sizing ramp: unchanged through 440px, larger toward 900px. */
@media (min-width: 440.01px) and (max-width: 900px) {
  .sidebar .adv-acc-summary {
    min-height: clamp(52px, calc(40.52px + 2.609vw), 64px) !important;
    font-size: clamp(13px, calc(8.217px + 1.087vw), 18px) !important;
  }

  .sidebar #advOptions > .adv-acc-summary,
  .sidebar #advOptions > summary {
    min-height: clamp(70px, calc(48.956px + 4.783vw), 92px) !important;
  }

  .sidebar .adv-summary-title {
    font-size: clamp(14px, calc(9.217px + 1.087vw), 19px) !important;
  }

  .sidebar .adv-summary-meta {
    font-size: clamp(11px, calc(8.13px + 0.652vw), 14px) !important;
  }

  .sidebar .adv-toggle-row {
    gap: clamp(10px, calc(5.217px + 1.087vw), 15px);
    padding: clamp(10px, calc(5.217px + 1.087vw), 15px) clamp(12px, calc(8.174px + 0.87vw), 16px);
  }

  .sidebar .adv-toggle-label {
    font-size: clamp(14px, calc(10.174px + 0.87vw), 18px) !important;
  }

  .sidebar .num-wrap input[type="number"],
  .sidebar .input-group input[type="number"],
  .sidebar input[type="text"],
  .sidebar select,
  .sidebar .mini-select,
  .sidebar .input-prefix {
    height: clamp(48px, calc(40.348px + 1.739vw), 56px) !important;
  }

  .sidebar input[type="number"],
  .sidebar input[type="text"],
  .sidebar select,
  .sidebar .mini-select {
    font-size: clamp(14px, calc(10.174px + 0.87vw), 18px) !important;
  }

  .sidebar .input-prefix {
    min-width: clamp(30px, calc(22.348px + 1.739vw), 38px) !important;
    flex-basis: clamp(30px, calc(22.348px + 1.739vw), 38px) !important;
    padding-left: clamp(6px, calc(4.087px + 0.435vw), 8px) !important;
    padding-right: clamp(6px, calc(4.087px + 0.435vw), 8px) !important;
    font-size: clamp(14px, calc(10.174px + 0.87vw), 18px) !important;
  }

  .sidebar .input-prefix.icon-prefix svg {
    width: clamp(17px, calc(13.174px + 0.87vw), 21px);
    height: clamp(17px, calc(13.174px + 0.87vw), 21px);
  }

  .sidebar .adv-toggle-icon {
    width: clamp(20px, calc(14.261px + 1.304vw), 26px);
    height: clamp(20px, calc(14.261px + 1.304vw), 26px);
    flex-basis: clamp(20px, calc(14.261px + 1.304vw), 26px);
  }

  .sidebar .adv-toggle-icon svg {
    width: clamp(18px, calc(12.261px + 1.304vw), 24px);
    height: clamp(18px, calc(12.261px + 1.304vw), 24px);
  }

  .sidebar .adv-switch-track {
    width: clamp(40px, calc(26.609px + 3.043vw), 54px) !important;
    height: clamp(22px, calc(14.348px + 1.739vw), 30px) !important;
    border-radius: clamp(11px, calc(7.174px + 0.87vw), 15px) !important;
  }

  .sidebar .adv-switch-track::after {
    width: clamp(16px, calc(8.348px + 1.739vw), 24px) !important;
    height: clamp(16px, calc(8.348px + 1.739vw), 24px) !important;
  }

  .sidebar .adv-switch input:checked + .adv-switch-track::after,
  .sidebar .adv-switch input:checked ~ .adv-switch-track::after {
    transform: translateX(clamp(18px, calc(12.261px + 1.304vw), 24px)) !important;
  }

  .sidebar .stepper {
    width: clamp(78px, calc(58.87px + 4.348vw), 98px) !important;
    flex-basis: clamp(78px, calc(58.87px + 4.348vw), 98px) !important;
    height: clamp(48px, calc(40.348px + 1.739vw), 56px) !important;
  }

  .sidebar .step-btn {
    min-width: clamp(39px, calc(29.435px + 2.174vw), 49px) !important;
  }

  .sidebar .step-btn::before {
    width: clamp(14px, calc(10.174px + 0.87vw), 18px) !important;
    height: clamp(14px, calc(10.174px + 0.87vw), 18px) !important;
    background-size: clamp(14px, calc(10.174px + 0.87vw), 18px) clamp(14px, calc(10.174px + 0.87vw), 18px) !important;
  }

  .sidebar .ot-row .stepper {
    width: clamp(58px, calc(33.13px + 5.652vw), 84px) !important;
    flex-basis: clamp(58px, calc(33.13px + 5.652vw), 84px) !important;
  }

  .sidebar .ot-row .step-btn {
    min-width: clamp(29px, calc(16.565px + 2.826vw), 42px) !important;
  }

  .sidebar .benefit-row .stepper {
    width: clamp(62px, calc(37.13px + 5.652vw), 88px) !important;
    flex-basis: clamp(62px, calc(37.13px + 5.652vw), 88px) !important;
  }

  .sidebar .benefit-row .step-btn {
    min-width: clamp(31px, calc(18.565px + 2.826vw), 44px) !important;
  }

  .sidebar #pensionContribMain .pension-item .stepper,
  .sidebar #pensionContrib2 .pension-item .stepper {
    width: clamp(105px, calc(83px + 5vw), 128px) !important;
    flex-basis: clamp(105px, calc(83px + 5vw), 128px) !important;
  }

  .sidebar #pensionContribMain .pension-item .step-btn,
  .sidebar #pensionContrib2 .pension-item .step-btn {
    min-width: clamp(52.5px, calc(41.5px + 2.5vw), 64px) !important;
  }

  .sidebar .adv-seg-wrap {
    min-height: clamp(48px, calc(40.348px + 1.739vw), 56px);
    gap: clamp(10px, calc(5.217px + 1.087vw), 15px);
    padding: clamp(10px, calc(5.217px + 1.087vw), 15px) clamp(12px, calc(8.174px + 0.87vw), 16px);
  }

  .sidebar .days-wrap .input-prefix {
    min-width: 52px !important;
    flex-basis: 52px !important;
    padding: 0 !important;
  }

  .sidebar .weeks-basis-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }

  .sidebar .weeks-basis-icon {
    width: 52px;
    min-width: 52px;
    flex-basis: 52px;
    padding: 0;
  }

  .sidebar .adv-seg-label {
    font-size: clamp(12px, calc(8.174px + 0.87vw), 16px) !important;
  }

  .sidebar .adv-seg label {
    padding: clamp(6px, calc(2.174px + 0.87vw), 10px) clamp(14px, calc(6.348px + 1.739vw), 22px) !important;
    font-size: clamp(12px, calc(8.174px + 0.87vw), 16px) !important;
    line-height: 1.2;
  }
}
