:root{color-scheme:light;--ink:#171d37;--muted:#526078;--quiet:#66748c;--accent:#5536df;--accent-dark:#4326be;--accent-wash:#f0edff;--canvas:#f6f7fb;--surface:#fff;--line:#e2e6ef;--control-line:#b7c1d2;--green:#086444;--red:#985028;--error:#a32637;--radius:18px;--shadow:0 2px 6px #131c3705,0 12px 32px #131c3707;font-family:Inter,Segoe UI,ui-sans-serif,system-ui,-apple-system,sans-serif;line-height:1.5;color:var(--ink);background:var(--canvas);-webkit-font-smoothing:antialiased}*,:after,:before{box-sizing:border-box}body{margin:0;min-width:280px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit;text-decoration-thickness:.075em;text-underline-offset:.23em}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.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}.shell{max-width:1280px;width:calc(100% - 88px);margin-inline:auto}.muted{color:var(--muted)}.small{font-size:.875rem}.skip-link{position:fixed;top:8px;left:8px;z-index:5;transform:translateY(-160%);padding:10px 16px;border-radius:8px;background:var(--surface)}.skip-link:focus{transform:none}.site-header{background:var(--surface);border-bottom:1px solid var(--line)}.header-inner{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:inline-flex;align-items:center;gap:11px;font-size:1.12rem;font-weight:750;letter-spacing:-.025em;text-decoration:none;white-space:nowrap}.brand-icon{display:grid;place-items:center;width:39px;height:39px;color:white;border-radius:11px;background:var(--accent);box-shadow:inset 0 0 0 1px #ffffff25}.site-header nav{display:flex;align-items:center;gap:clamp(14px,2.8vw,35px);color:var(--muted);font-weight:600}.site-header nav a{text-decoration:none;font-size:.9rem}.footer-inner a:hover,.site-header nav a:hover{color:var(--accent-dark);text-decoration:underline}.main-content{padding-block-start:42px}.page-intro{margin-block-end:26px}.page-intro h1{font-size:clamp(2.35rem,5vw,3.64rem);font-weight:770;letter-spacing:-.065em;line-height:1.09}.page-intro p{margin-top:9px;color:var(--muted);font-size:1.065rem;max-width:58ch}.calculator{scroll-margin-top:1rem}.toolbar{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.mode-tabs{display:flex;align-items:stretch;gap:4px;padding:4px;background:#e9ebf4;border:1px solid #e0e4ef;border-radius:12px}.mode-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:41px;padding:7px 13px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font-weight:650;font-size:.9rem;line-height:1.25;text-align:center}.button svg,.mode-tabs button svg{flex:0 0 auto}.mode-tabs button:hover{color:var(--accent-dark)}.mode-tabs button[aria-selected=true]{color:var(--accent-dark);background:var(--surface);border-color:#e1dcfb;box-shadow:0 1px 3px #24155612}.toolbar-actions{display:flex}.button,.toolbar-actions{align-items:center;gap:7px}.button{display:inline-flex;justify-content:center;min-height:41px;padding:8px 12px;border:1px solid transparent;border-radius:8px;font-weight:650;font-size:.9rem;line-height:1.2;text-align:center}.button-quiet{background:transparent;color:var(--muted);white-space:nowrap}.button-quiet:hover:not(:disabled){background:#edeef6;color:var(--ink)}.button-soft,.example-button{color:var(--accent-dark)}.button-soft{background:var(--accent-wash);border-color:#e0d9fc}.button-soft:hover:not(:disabled){background:#e7e0ff}.button-primary{background:var(--accent);color:white}.button-primary:hover:not(:disabled){background:var(--accent-dark)}.button-primary:disabled{background:#e6e2f9;color:#595071}.button-outline{border-color:var(--control-line);color:var(--ink);background:var(--surface)}.button-outline:hover:not(:disabled){border-color:var(--accent);color:var(--accent-dark)}.button-outline:disabled{color:var(--quiet);border-color:var(--line);background:#f7f8fb}.button-quiet:disabled{color:var(--quiet)}.workbench{display:grid;grid-template-columns:minmax(0,1fr) 292px;align-items:start;gap:16px}.entry-card,.summary-card{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.entry-card{overflow:clip}.entry-heading{padding:22px 22px 18px}.entry-heading h2,.summary-title h2{font-size:1.23rem;font-weight:740;letter-spacing:-.033em;line-height:1.24}.entry-heading p{color:var(--muted);font-size:.91rem;margin-top:5px}.example-note{display:flex;align-items:center;gap:8px;margin:0 22px 15px;color:var(--accent-dark);background:var(--accent-wash);border-radius:8px;padding:8px 11px;font-size:.875rem}.example-note svg,.summary-note svg{flex:0 0 auto}.week-grid{--row-layout:96px minmax(0,1fr) 124px;--field-layout:minmax(0,1fr) minmax(0,1fr) minmax(0,.66fr) 46px}.week-compare{--row-layout:54px minmax(0,1fr) minmax(0,1fr) minmax(92px,.39fr);--field-layout:minmax(65px,1fr) minmax(65px,1fr) minmax(44px,.55fr) 36px}.week-head,.week-row{display:grid;grid-template-columns:var(--row-layout);align-items:start;gap:12px;padding-inline:22px}.week-head{align-items:center;min-height:40px;background:#f5f6fb;border-block:1px solid var(--line);color:var(--muted);font-size:.875rem;font-weight:650}.week-row{padding-block:8px;border-bottom:1px solid #ebedf4}.week-row:last-child{border-bottom:0}.week-row>h3{font-size:.9rem;font-weight:685;line-height:39px;letter-spacing:-.015em}.short-day{display:none}.shift-columns,.shift-fields{display:grid;grid-template-columns:var(--field-layout);gap:8px;align-items:start}.compare-cell,.field,.shift-editor{min-width:0}.field-label{display:block;color:var(--muted);font-size:.875rem;font-weight:600}.week-calculate .field-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.field input,.paste-panel textarea{display:block;width:100%;min-width:0;border:1px solid var(--control-line);border-radius:7px;color:var(--ink);background:var(--surface);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.field input{height:39px;padding:6px 9px;font-size:.9375rem}.field input::placeholder,.paste-panel textarea::placeholder{color:var(--quiet);opacity:1}.field input:focus-visible,.paste-panel textarea:focus-visible{outline-offset:1px}.field input[aria-invalid=true]{border-color:var(--error);background:#fff8f8}.field input:disabled{background:#f0f2f7;border-color:var(--line);color:var(--muted)}.field input:disabled::placeholder{color:transparent}.field-error{color:var(--error);font-size:.8125rem;line-height:1.36;margin-top:4px;overflow-wrap:anywhere}.off-control{display:flex;align-items:center;justify-content:center;min-height:39px;gap:4px;color:var(--muted);cursor:pointer}.off-control input{margin:0;width:17px;height:17px;accent-color:var(--accent);cursor:pointer}.week-calculate .off-control>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.overnight{display:inline-block;margin:4px 0 0;padding:1px 6px;border-radius:4px;color:var(--accent-dark);background:var(--accent-wash);font-size:.8125rem;font-weight:650}.day-result{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-height:39px;font-size:.9rem;line-height:1.3;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.day-result small,.side-total small{display:block;color:var(--muted);font-size:.8125rem;margin-top:2px}.day-result strong,.side-total strong{font-weight:700}.empty-value{color:var(--quiet)}.negative,.pending-value{color:var(--red)}.positive{color:var(--green)}.neutral{color:var(--muted)}.mobile-result-label,.mobile-side-title{display:none}.week-compare .week-row{padding-block:10px}.week-compare .week-row>h3{line-height:1;padding-top:13px}.week-compare .full-day{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.week-compare .short-day{display:inline}.week-compare .shift-fields{gap:5px}.week-compare .field input{padding-inline:5px;font-size:.875rem}.week-compare .field-label{font-size:.8125rem;white-space:nowrap;letter-spacing:-.025em}.week-compare .off-control{flex-direction:column-reverse;gap:4px;font-size:.8125rem;align-self:stretch;justify-content:flex-end;min-height:57px}.week-compare .off-control input{margin-bottom:10px}.week-compare .day-result{min-height:61px}.side-total{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;margin-top:4px;font-size:.8125rem}.paste-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:10px;padding:0 22px 17px}.paste-slot{min-width:0}.paste-toggle{width:100%}.export-status,.paste-applied{font-size:.8125rem;color:var(--muted)}.paste-applied:not(:empty){margin-top:5px}.paste-panel{margin-top:7px;padding:11px;border:1px solid var(--line);border-radius:10px;background:#f9f9fd}.paste-heading{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:.93rem;font-weight:700}.icon-button{min-width:34px;min-height:34px;display:inline-grid;place-items:center;color:var(--muted);background:transparent;border:0;border-radius:6px}.icon-button:hover{color:var(--ink);background:#e9ebf4}.paste-panel textarea{min-height:109px;margin:8px 0;padding:8px;resize:vertical;font-family:ui-monospace,Cascadia Mono,monospace;font-size:.875rem;white-space:pre}.paste-count{color:var(--muted);font-size:.875rem;font-weight:650;margin:6px 0}.paste-review{margin-bottom:8px}.paste-review ul{list-style:none;padding:0;margin:0}.paste-row{display:flex;flex-direction:column;gap:2px;color:var(--green);background:#ebf8f2;padding:7px 8px;margin-top:4px;border-radius:5px;font-size:.8125rem;overflow-wrap:anywhere}.paste-row-error{color:var(--error);background:#fff0f2}.paste-raw{white-space:pre-wrap}.summary-card{overflow:clip;position:sticky;top:16px;scroll-margin-top:16px}.summary-jump{display:none;color:var(--accent-dark);font-size:.875rem;font-weight:650;margin-top:6px}.summary-top{padding:19px;background:#201744;color:white}.summary-title{display:flex;align-items:center;gap:10px}.summary-title p{margin-top:2px;color:#d7cefb;font-size:.8125rem}.summary-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#392768;color:#dfd5ff;flex:0 0 auto}.summary-metric{margin-top:17px;padding:14px;border-radius:11px;background:#302452;border:1px solid #4f4076}.metric-label{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:3px;color:#e8e0ff;font-weight:630;font-size:.875rem}.metric-value{margin-top:2px;font-size:clamp(1.75rem,3.3vw,2.05rem);line-height:1.18;letter-spacing:-.055em;font-weight:760;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.metric-meta{margin-top:5px;font-size:.8125rem;color:#e0d7fa}.provisional{color:#ffe4a8;font-size:.8125rem}.summary-bottom{padding:17px 19px 19px}.progress-line{font-size:.875rem;font-weight:640;color:var(--muted)}.summary-bottom progress{display:block;appearance:none;width:100%;height:5px;margin-top:7px;border:0;border-radius:999px;overflow:hidden;background:#e8e5f4;color:var(--accent)}.summary-bottom progress::-webkit-progress-bar{background:#e8e5f4}.summary-bottom progress::-webkit-progress-value{background:var(--accent)}.summary-bottom progress::-moz-progress-bar{background:var(--accent)}.paired-totals{margin:0 0 11px;padding:0 0 11px;border-bottom:1px solid var(--line);font-size:.8125rem}.paired-totals div{display:flex;justify-content:space-between;gap:7px}.paired-totals div+div{margin-top:5px}.paired-totals dt{color:var(--muted)}.paired-totals dd{margin:0;font-weight:700;white-space:nowrap}.summary-note{display:flex;align-items:flex-start;gap:6px;margin-top:10px;color:var(--red);font-size:.8125rem}.summary-note svg{margin-top:2px}.export-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:15px}.export-copy{grid-column:1/-1}.export-status:not(:empty){margin-top:7px}.print-report{display:none}.privacy-line{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.875rem;margin:13px 0 0 2px}.privacy-line svg{flex:0 0 auto;color:var(--accent-dark)}.examples-section,.guide-section{scroll-margin-top:20px}.examples-section{margin-top:43px}.section-heading{margin-bottom:14px}.guide-section h2,.section-heading h2{font-size:clamp(1.65rem,3vw,2rem);letter-spacing:-.052em;line-height:1.15}.section-heading p{color:var(--muted);margin-top:5px}.examples-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.example-card{display:flex;flex-direction:column;align-items:flex-start;padding:18px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.example-icon{display:grid;place-items:center;width:39px;height:39px;margin-bottom:11px;color:var(--accent-dark);background:var(--accent-wash);border-radius:9px}.example-card h3,.guide-grid h3{font-size:1.06rem;line-height:1.23;letter-spacing:-.02em}.example-card p{color:var(--muted);margin:6px 0 10px;font-size:.93rem}.example-math{margin-top:auto;color:var(--ink);font-size:.93rem;font-weight:700;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.example-card .example-result{margin:3px 0 0;color:var(--accent-dark);font-size:.875rem;font-weight:620}.guide-section{margin-block:43px 48px}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 30px;margin-top:15px}.guide-grid article{border-top:1px solid var(--line);padding-top:12px}.guide-grid p{margin-top:5px;color:var(--muted)}.site-footer{background:var(--surface);border-top:1px solid var(--line)}.footer-inner{min-height:66px;display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:.875rem;color:var(--muted)}.footer-inner>span{color:var(--ink);font-weight:700}@media (max-width:1160px){.shell{width:calc(100% - 52px)}.workbench{grid-template-columns:minmax(0,1fr) 255px}#panel-compare .workbench{grid-template-columns:minmax(0,1fr)}#panel-compare .summary-card{display:grid;grid-template-columns:1fr 1fr;position:static}#panel-compare .metric-value{font-size:2rem}#panel-compare .summary-jump{display:inline-block}}@media (max-width:930px){.workbench{grid-template-columns:minmax(0,1fr)}.summary-card{display:grid;grid-template-columns:1fr 1fr;position:static}.summary-jump{display:inline-block}}@media (max-width:800px){.shell{width:calc(100% - 36px)}.toolbar{flex-wrap:wrap}.entry-heading,.week-head,.week-row{padding-inline:16px}.example-note{margin-inline:16px}.paste-tools{padding-inline:16px}}@media (max-width:740px){.header-inner{min-height:58px;gap:10px}.brand{gap:7px;font-size:1rem}.brand-icon{width:34px;height:34px;border-radius:9px}.site-header nav{gap:12px}.site-header nav a:first-child{display:none}.site-header nav a{font-size:.82rem}.main-content{padding-block-start:29px}.page-intro{margin-block-end:17px}.page-intro p{font-size:1rem}.toolbar{gap:5px;margin-bottom:10px}.mode-tabs{width:100%}.mode-tabs button{flex:1 1 auto;min-height:43px;padding:7px;font-size:.875rem}.toolbar-actions{margin-left:auto}.toolbar-actions .button{min-height:42px}.entry-heading{padding-top:16px;padding-bottom:13px}.week-head{display:none}.week-compare .week-row,.week-row{grid-template-columns:minmax(0,1fr);gap:7px;align-items:start;padding-block:11px 13px}.week-row:first-of-type,.week-row:nth-child(2){border-top:1px solid var(--line)}.week-compare .week-row>h3,.week-row>h3{line-height:1.25;font-size:1rem;padding:0}.week-compare .full-day{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal}.week-compare .short-day{display:none}.week-grid{--field-layout:minmax(0,1fr) minmax(0,1fr) minmax(0,.77fr) 40px}.week-calculate .field-label{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal}.field input,.week-compare .field input{height:43px;font-size:1rem}.shift-fields{gap:5px}.field input{padding-inline:5px}.week-calculate .off-control>span{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal}.off-control,.week-compare .off-control{flex-direction:column-reverse;align-self:stretch;gap:5px;min-height:64px;justify-content:flex-end;font-size:.875rem}.off-control input,.week-compare .off-control input{width:20px;height:20px;margin-bottom:12px}.day-result,.week-compare .day-result{flex-direction:row;align-items:baseline;justify-content:flex-start;flex-wrap:wrap;gap:0 9px;min-height:0}.day-result small{display:inline}.mobile-result-label{display:inline;color:var(--muted);font-size:.875rem;font-weight:650}.mobile-side-title{display:block;font-size:.875rem;font-weight:700;margin-bottom:3px}.compare-cell{padding:7px;border:1px solid var(--line);border-radius:8px}.week-compare .day-result{background:#f5f6fb;padding:6px 8px;border-radius:6px}#panel-compare .summary-card,.summary-card{display:block}.metric-value{font-size:2rem}.examples-section,.guide-section{margin-top:32px}.examples-grid,.guide-grid{grid-template-columns:1fr;gap:10px}}@media (max-width:425px){.shell{width:calc(100% - 28px)}.mode-tabs button svg{display:none}.paste-tools{grid-template-columns:1fr}.entry-heading,.week-compare .week-row,.week-row{padding-inline:12px}.example-note{margin-inline:12px}.paste-tools{padding-inline:12px}}@media print{:root{background:white;color:black;font-size:10pt}.examples-section,.guide-section,.mode-panel,.page-intro p,.privacy-line,.site-footer,.site-header,.skip-link,.toolbar{display:none!important}.shell{width:100%}.main-content{padding:0}.page-intro{margin-bottom:9pt}.page-intro h1{font-size:22pt}.print-report{display:block}.print-report h2{font-size:14pt;margin-bottom:8pt}.print-report table{border-collapse:collapse;width:100%}.print-report td,.print-report th{text-align:left;border:1px solid #999;padding:6pt}.print-report tr{page-break-inside:avoid;break-inside:avoid}}