.toast-container{position:fixed;bottom:var(--space-6);right:var(--space-6);z-index:9999;display:flex;flex-direction:column;gap:var(--space-3);pointer-events:none}.toast{position:relative;min-width:320px;max-width:480px;padding:var(--space-4) var(--space-5);background:var(--bg-secondary);border-radius:var(--radius-lg);box-shadow:var(--shadow-xl);display:flex;align-items:center;gap:var(--space-3);pointer-events:all;animation:toastSlideIn .3s cubic-bezier(.4,0,.2,1);border-left:4px solid}@keyframes toastSlideIn{0%{transform:translate(400px);opacity:0}to{transform:translate(0);opacity:1}}.toast-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center;font-size:var(--text-lg);font-weight:700;flex-shrink:0;border-radius:var(--radius-full);padding:var(--space-1)}.toast-message{flex:1;font-size:var(--text-sm);font-weight:500;color:var(--text-primary);line-height:1.5}.toast-close{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;color:var(--text-tertiary);font-size:var(--text-2xl);font-weight:300;cursor:pointer;border-radius:var(--radius-md);transition:all var(--transition-base);flex-shrink:0}.toast-close:hover{background:var(--bg-tertiary);color:var(--text-secondary)}.toast-progress{position:absolute;bottom:0;left:0;height:3px;background:currentColor;border-bottom-left-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg);animation:toastProgress linear forwards;opacity:.6}@keyframes toastProgress{0%{width:100%}to{width:0%}}.toast-success{border-left-color:var(--success)}.toast-success .toast-icon{background:var(--success-light);color:var(--success-dark)}.toast-success .toast-progress{color:var(--success)}.toast-error{border-left-color:var(--error)}.toast-error .toast-icon{background:var(--error-light);color:var(--error-dark)}.toast-error .toast-progress{color:var(--error)}.toast-info{border-left-color:var(--info)}.toast-info .toast-icon{background:var(--info-light);color:var(--info-dark)}.toast-info .toast-progress{color:var(--info)}.toast-warning{border-left-color:var(--warning)}.toast-warning .toast-icon{background:var(--warning-light);color:var(--warning-dark)}.toast-warning .toast-progress{color:var(--warning)}@media (max-width: 640px){.toast-container{left:var(--space-4);right:var(--space-4);bottom:var(--space-4)}.toast{min-width:unset;width:100%}}.landing-hero{background:radial-gradient(circle at top left,rgba(204,0,0,.1),transparent 40%),radial-gradient(circle at bottom right,rgba(0,51,102,.15),transparent 45%),linear-gradient(to bottom,transparent,rgba(0,51,102,.02));padding:clamp(3rem,8vw,6rem) 1.5rem;color:var(--text-primary);position:relative;overflow:hidden}[data-theme=dark] .landing-hero{background:radial-gradient(circle at top left,rgba(204,0,0,.16),transparent 42%),radial-gradient(circle at bottom right,rgba(33,136,255,.2),transparent 48%),linear-gradient(to bottom,transparent,rgba(33,136,255,.04))}.landing-hero__inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(2rem,6vw,4.5rem);align-items:center}.landing-hero__content{grid-column:span 7;display:flex;flex-direction:column;gap:1.5rem}.hero-kicker{display:inline-flex;align-items:center;gap:.5rem;font-size:.75rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-secondary);background:#0033660f;padding:.4rem .75rem;border-radius:var(--radius-full);border:1px solid rgba(0,51,102,.12);width:fit-content}[data-theme=dark] .hero-kicker{background:#2188ff1a;border-color:#2188ff33}.kicker-badge{background:var(--primary-500);color:#fff;padding:.15rem .45rem;border-radius:var(--radius-sm);font-size:.7rem;font-weight:700;letter-spacing:.06em}.kicker-divider{opacity:.4;font-weight:400;font-size:.7rem}.landing-hero h1{font-size:clamp(2.2rem,4vw,3.1rem);line-height:1.1;font-weight:700;letter-spacing:-.025em;background:linear-gradient(135deg,var(--text-primary) 0%,var(--text-primary) 70%,var(--primary-500) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}[data-theme=dark] .landing-hero h1{background:linear-gradient(135deg,var(--text-primary) 0%,var(--text-primary) 65%,rgba(143,194,247,.9) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.landing-hero__subtitle{font-size:clamp(1.05rem,1.4vw,1.2rem);max-width:36rem;color:var(--text-secondary)}.landing-hero__actions{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}.hero-btn{border:none;border-radius:var(--radius-full);padding:.75rem 1.5rem;font-size:.95rem;font-weight:600;transition:transform var(--transition-fast),box-shadow var(--transition-fast);display:inline-flex;align-items:center;gap:.5rem;cursor:pointer}.btn-icon{font-size:1.1rem;line-height:1}.hero-btn--primary{background:linear-gradient(135deg,var(--primary-500),var(--primary-400));color:#fff;box-shadow:0 15px 30px #0033663d}.hero-btn--primary:hover{transform:translateY(-2px);box-shadow:0 18px 32px #00336647}.hero-btn--secondary{background:#cc000014;color:var(--accent-500);border:1px solid rgba(204,0,0,.2)}.hero-btn--secondary:hover{transform:translateY(-2px);background:#cc00001f}.hero-highlights{display:flex;flex-wrap:wrap;gap:.75rem;list-style:none;padding:0;margin:0;font-size:.9rem;color:var(--text-secondary)}.hero-highlights li{display:inline-flex;align-items:center;gap:.5rem;padding:.45rem .7rem;border-radius:var(--radius-lg);background:#ffffffb3;box-shadow:var(--shadow-xs);flex-shrink:0}.hero-highlights li span:not(.highlight-icon){white-space:normal;word-break:break-word}[data-theme=dark] .hero-highlights li{background:#071425bf}.highlight-icon{font-size:1.1rem;line-height:1}.landing-hero__snapshot{grid-column:span 5}.snapshot-card{background:var(--bg-secondary);border-radius:clamp(1.25rem,3vw,1.75rem);border:1px solid rgba(0,51,102,.08);box-shadow:0 20px 40px #000d1d1f;padding:clamp(1.5rem,3vw,2.25rem);display:flex;flex-direction:column;gap:1.25rem;position:relative;animation:snapshot-float 6s ease-in-out infinite;transition:transform var(--transition-fast),box-shadow var(--transition-fast)}.snapshot-card:hover{transform:translateY(-4px);box-shadow:0 24px 48px #000d1d29}@keyframes snapshot-float{0%,to{transform:translateY(0)}50%{transform:translateY(-8px)}}[data-theme=dark] .snapshot-card{border-color:#8fc2f729;box-shadow:0 20px 40px #0000004d}[data-theme=dark] .snapshot-card:hover{box-shadow:0 24px 48px #0006}.snapshot-trust-badge{position:absolute;top:-12px;right:1.5rem;background:linear-gradient(135deg,var(--success),#10b981);color:#fff;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:.4rem .75rem;border-radius:var(--radius-full);box-shadow:0 4px 12px #10b9814d;display:inline-flex;align-items:center;gap:.35rem;will-change:transform,opacity;animation:badge-pulse-transform 3s ease-in-out infinite}@keyframes badge-pulse-transform{0%,to{transform:translateZ(0);opacity:1}50%{transform:translateZ(0) scale(1.02);opacity:.98}}.badge-icon{font-size:.85rem;line-height:1}.snapshot-card__header h2{font-size:1.4rem;margin-top:.35rem;margin-bottom:.75rem}.snapshot-kicker{font-size:.8rem;text-transform:uppercase;letter-spacing:.16em;color:var(--accent-500);font-weight:600}.snapshot-tabs{display:flex;gap:.5rem;margin-top:.75rem}.snapshot-tab{flex:1;border:1px solid rgba(0,51,102,.15);background:transparent;color:var(--text-secondary);padding:.75rem 1rem;min-height:44px;border-radius:var(--radius-md);font-size:.85rem;font-weight:600;cursor:pointer;transition:all var(--transition-fast)}.snapshot-tab:hover{background:#0033660d;border-color:#00336640}.snapshot-tab--active{background:linear-gradient(135deg,var(--primary-500),var(--primary-400));color:#fff;border-color:var(--primary-500)}.snapshot-tab--active:hover{background:linear-gradient(135deg,var(--primary-600),var(--primary-500));border-color:var(--primary-600)}.snapshot-tab:focus-visible{outline:2px solid var(--primary-400);outline-offset:2px}[data-theme=dark] .snapshot-tab{border-color:#8fc2f733}[data-theme=dark] .snapshot-tab:hover{background:#8fc2f71a;border-color:#8fc2f74d}.snapshot-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;font-family:var(--font-mono)}.snapshot-metrics[hidden]{display:none!important}.snapshot-metrics dt{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--text-tertiary)}.snapshot-metrics dd{margin:0;font-size:1.35rem;font-weight:600;color:var(--text-primary)}.metric-negative{color:var(--accent-500)}.metric-positive{color:var(--success)}.snapshot-footer{font-size:.85rem;color:var(--text-secondary);line-height:1.4;border-top:1px solid rgba(0,51,102,.08);padding-top:1rem;margin-top:.25rem}[data-theme=dark] .snapshot-footer{border-top-color:#8fc2f71a}.snapshot-footer strong{color:var(--primary-500);font-weight:600}@media (max-width: 1024px){.landing-hero__inner{grid-template-columns:repeat(1,minmax(0,1fr))}.landing-hero__content,.landing-hero__snapshot{grid-column:auto}.landing-hero__snapshot{order:-1}.snapshot-card{max-width:26rem}}@media (max-width: 640px){.landing-hero{padding:3rem 1.1rem}.landing-hero__actions{flex-direction:column;align-items:stretch}.hero-btn{width:100%;justify-content:center}.hero-highlights{gap:.5rem}.hero-highlights li{background:#fffc}}@media (prefers-reduced-motion: reduce){.snapshot-card,.snapshot-trust-badge{animation:none}.hero-btn,.snapshot-card{transition:none}}html{scroll-behavior:smooth;scroll-padding-top:80px;overflow-x:hidden;max-width:100vw}@media (max-width: 768px){html{scroll-padding-top:70px;scroll-padding-bottom:20px}}:root{--primary-50: #f1f5fb;--primary-100: #d8e4f5;--primary-200: #b3cae6;--primary-300: #8caed6;--primary-400: #5f8ec2;--primary-500: #003366;--primary-600: #002a54;--primary-700: #002042;--primary-800: #00162f;--primary-900: #000d1d;--accent-400: #ff4d4d;--accent-500: #cc0000;--accent-600: #990000;--gray-50: #f8fafc;--gray-100: #eef2f6;--gray-200: #dbe2ec;--gray-300: #c0ccd9;--gray-400: #97a4b5;--gray-500: #6b7788;--gray-600: #4c5868;--gray-700: #354151;--gray-800: #232c38;--gray-900: #151c26;--success: #27804d;--success-light: #e0f3e9;--success-dark: #1f6240;--error: #c92a2a;--error-light: #fde8e8;--error-dark: #a91e1e;--warning: #ffb300;--warning-light: #fff4d6;--warning-dark: #b77c00;--info: #1872ce;--info-light: #e3f1ff;--info-dark: #0b4f99;--font-sans: system-ui, sans-serif;--font-mono: ui-monospace, monospace;--text-xs: .75rem;--text-sm: .875rem;--text-base: 1rem;--text-lg: 1.125rem;--text-xl: 1.25rem;--text-2xl: 1.5rem;--text-3xl: 1.875rem;--text-4xl: 2.25rem;--space-1: .25rem;--space-2: .5rem;--space-3: .75rem;--space-4: 1rem;--space-5: 1.25rem;--space-6: 1.5rem;--space-8: 2rem;--space-10: 2.5rem;--space-12: 3rem;--space-16: 4rem;--radius-sm: .35rem;--radius-md: .55rem;--radius-lg: .85rem;--radius-xl: 1.15rem;--radius-2xl: 1.65rem;--radius-full: 9999px;--shadow-xs: 0 1px 2px 0 rgba(0, 13, 29, .05);--shadow-sm: 0 1px 4px rgba(0, 13, 29, .08);--shadow-md: 0 10px 30px rgba(0, 13, 29, .08);--shadow-lg: 0 18px 40px rgba(0, 13, 29, .12);--shadow-xl: 0 30px 60px rgba(0, 13, 29, .16);--transition-fast: .15s cubic-bezier(.4, 0, .2, 1);--transition-base: .22s cubic-bezier(.4, 0, .2, 1);--transition-slow: .32s cubic-bezier(.4, 0, .2, 1);--bg-primary: #fafafa;--bg-secondary: #ffffff;--bg-tertiary: #f0f4f8;--text-primary: #0c1b2a;--text-secondary: #2f3b4c;--text-tertiary: #5c6b7b;--border-color: #d6dee8;--border-color-strong: #b1c1d3}.section-loading,.calculator-loading{display:flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);color:var(--text-secondary);background:var(--bg-secondary);border:1px dashed var(--border-color);gap:.5rem}.section-loading{min-height:220px;font-size:var(--text-base)}.calculator-loading{min-height:520px;font-size:var(--text-lg);padding:2rem}[data-theme=dark]{--bg-primary: #040b15;--bg-secondary: #071425;--bg-tertiary: #0d1d33;--text-primary: #f6f7f9;--text-secondary: #d9e2ef;--text-tertiary: #a8b6c9;--border-color: #1c2a3d;--border-color-strong: #27405d;--gray-50: #0d1c2c;--gray-100: #132234;--gray-200: #1b2c40;--gray-300: #22364c;--gray-400: #31455a;--gray-500: #4a5d72;--gray-600: #62768d;--gray-700: #7f91a8;--gray-800: #a3b3c7;--gray-900: #d0d9e6;--success-light: #123524;--success-dark: #7bd0a0;--error-light: #401212;--error-dark: #f89a9a;--warning-light: #3b2a05;--warning-dark: #ffd476;--info-light: #0a2746;--info-dark: #8fc2ff}[data-theme=dark] .input-group-card{background:var(--bg-secondary);border-color:var(--border-color-strong)}[data-theme=dark] .input-group-card.has-content{background:var(--bg-secondary);border-color:var(--primary-400)}[data-theme=dark] .input-group-header{border-bottom-color:var(--border-color)}[data-theme=dark] .section-help{color:var(--text-secondary)}[data-theme=dark] .deduction-help,[data-theme=dark] .deduction-limit{color:var(--text-tertiary)}[data-theme=dark] .checkbox-label,[data-theme=dark] .checkbox-item label,[data-theme=dark] .validation-message,[data-theme=dark] .feedback-message{color:var(--text-primary)}[data-theme=dark] .help-text,[data-theme=dark] .input-prefix,[data-theme=dark] .input-help{color:var(--text-secondary)}[data-theme=dark] .section-label,[data-theme=dark] .input-group-title{color:var(--text-primary)}[data-theme=dark] .conversion-hint{background:var(--info-light);color:var(--info-dark)}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.celebration-animation,.slideDown,.wave,.focus-ring,.refreshing,.loading-spinner{animation:none!important}}.app{min-height:100vh;background:var(--bg-primary);color:var(--text-primary)}main{display:flex;flex-direction:column;gap:0}.calculator-section{padding:clamp(3rem,6vw,5rem) 1.5rem;background:transparent}.calculator-section__header{max-width:720px;margin:0 auto 2rem;text-align:center;display:flex;flex-direction:column;gap:1rem}.section-kicker{font-size:.8rem;text-transform:uppercase;letter-spacing:.14em;font-weight:600;color:var(--accent-500)}.calculator-section__header h2{font-size:clamp(1.9rem,2.8vw,2.4rem)}.calculator-section__header p{font-size:1rem;color:var(--text-secondary)}.calculator-section__body{max-width:min(100%,1400px);margin:0 auto}@media (max-width: 768px){.calculator-section{padding:2.75rem 0}}@media (max-width: 640px){.calculator-section{padding:2.75rem 0}.calculator-section__header{margin-bottom:2rem;padding:0 1rem}}.historical-data-section{padding:clamp(3rem,6vw,5rem) 1.5rem;background:var(--bg-secondary);border-top:1px solid var(--border-color)}.historical-data-section__inner{max-width:min(100%,1400px);margin:0 auto}.historical-data-section__header{max-width:720px;margin:0 auto 3rem;text-align:center;display:flex;flex-direction:column;gap:1rem}.historical-data-section__header h2{font-size:clamp(1.9rem,2.8vw,2.4rem);color:var(--text-primary);margin:0}.historical-data-section__header p{font-size:1rem;color:var(--text-secondary);margin:0}@media (max-width: 768px){.historical-data-section{padding:2.75rem 1rem}.historical-data-section__header{margin-bottom:2rem}}@media (max-width: 640px){.historical-data-section{padding:2.5rem 1rem}.historical-data-section__header{margin-bottom:1.5rem}}[data-theme=dark] .historical-data-section{background:var(--bg-primary);border-top-color:var(--border-color)}[data-theme=dark] .manage-saved-btn{background:var(--bg-secondary);border-color:var(--border-color-strong);color:var(--text-primary)}[data-theme=dark] .manage-saved-btn:hover{background:var(--bg-tertiary);border-color:var(--primary-600)}[data-theme=dark] .compare-btn{background:#3b82f61a;border-color:#3b82f64d;color:var(--primary-300)}[data-theme=dark] .compare-btn:hover{background:#3b82f626;border-color:var(--primary-400);color:var(--primary-200)}[data-theme=dark] .saved-manager-content{background:var(--bg-secondary);border-color:var(--border-color-strong)}[data-theme=dark] .saved-manager-header h4{color:var(--text-primary)}[data-theme=dark] .saved-table-wrapper{background:var(--bg-primary);border-color:var(--border-color-strong)}[data-theme=dark] .saved-table thead{background:#14b8a61f;color:var(--primary-200)}[data-theme=dark] .saved-table th,[data-theme=dark] .saved-table td{color:var(--text-secondary);border-color:var(--border-color)}[data-theme=dark] .saved-table tbody tr:nth-child(2n){background:#ffffff0a}[data-theme=dark] .saved-table tbody tr:hover{background:#14b8a629}[data-theme=dark] .saved-empty-state{background:#ffffff0d;border-color:var(--border-color-strong);color:var(--text-secondary)}[data-theme=dark] .input-error-message{background:var(--error-light);color:var(--error-dark)}[data-theme=dark] .input-warning-message{background:var(--warning-light);color:var(--warning-dark)}[data-theme=dark] .input-success-message{background:var(--success-light);color:var(--success-dark)}*{box-sizing:border-box}body{font-family:var(--font-sans);font-size:var(--text-base);line-height:1.5;color:var(--text-primary);background:var(--bg-secondary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transition:background-color var(--transition-base),color var(--transition-base);overflow-x:hidden;max-width:100vw}button{-webkit-tap-highlight-color:transparent}button:active:not(:disabled){transform:scale(.98);transition:transform .1s ease-out}button:focus-visible{outline:2px solid var(--primary-500);outline-offset:2px;animation:focusRing .3s ease-out}@keyframes focusRing{0%{outline-offset:0px;outline-width:0px}to{outline-offset:2px;outline-width:2px}}:root{--safe-area-top: env(safe-area-inset-top, 0px);--safe-area-right: env(safe-area-inset-right, 0px);--safe-area-bottom: env(safe-area-inset-bottom, 0px);--safe-area-left: env(safe-area-inset-left, 0px)}.export-btn,.btn-secondary,.manage-saved-btn,.compare-btn,.export-all-btn,.results-tabs-nav button,.segmented-control button,.global-header button,header .global-header button,nav a,button,label[for]{min-width:44px;min-height:44px;padding:max(10px,.5rem) max(12px,.75rem)}.btn-icon-only,.close-button,.help-tooltip-trigger,.menu-toggle,.back-to-top-button{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
