
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#f6f7f2;--ink:#193a32;--green:#245d49;--muted:#707c73;--line:#dfe5db}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif}header{max-width:1280px;margin:auto;padding:27px 40px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.logo{font-size:24px;font-weight:700;letter-spacing:-1px}.logo span{display:inline-grid;place-items:center;background:var(--green);color:#e8f2a8;border-radius:10px;width:34px;height:34px;margin-right:10px}header small{color:var(--muted)}main{max-width:1200px;margin:auto;padding:54px 0}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:var(--green)}h1{font-family:Manrope,sans-serif;font-size:58px;line-height:1.12;letter-spacing:-3px;margin:18px 0}h1 em{font-style:normal;color:#678157}p{color:var(--muted);line-height:1.65}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:38px}.intro p{max-width:480px}.stamp{border:1px solid #ced8b6;border-radius:50%;width:130px;height:130px;display:flex;align-items:center;justify-content:center;text-align:center;transform:rotate(12deg);color:#65804c;font-size:13px;background:#edf1dc}.layout{display:grid;grid-template-columns:310px 1fr;gap:28px}.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:26px}.settings{align-self:start;position:sticky;top:20px}h2{font-family:Manrope,sans-serif;font-size:20px;letter-spacing:-.6px;margin:0 0 22px}label.field{display:block;font-size:12px;font-weight:700;margin-top:22px}select,input[type=number]{width:100%;padding:13px;border:1px solid var(--line);background:#fafbf8;border-radius:9px;font:inherit;color:var(--ink);margin-top:9px}input[type=range]{width:100%;accent-color:var(--green)}.count{font-size:40px;font-family:Manrope;font-weight:700;margin:12px 0 0}.count small{font-size:13px;color:var(--muted);font-weight:400}.check{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.5;margin:17px 0}.check input{accent-color:var(--green)}button{cursor:pointer;border:0;border-radius:9px;padding:14px 18px;background:var(--green);color:white;font:600 13px 'DM Sans',sans-serif}button.primary{width:100%;margin-top:15px}.note{font-size:11px;line-height:1.6;margin-top:18px}.results{min-width:0}.summary{background:#e9eecf;border:1px solid #dce3b9;border-radius:18px;padding:26px 30px;display:flex;justify-content:space-between;gap:20px;margin-bottom:27px}.summary .big{font-size:48px;font-family:Manrope;font-weight:700;letter-spacing:-2px}.summary p{font-size:12px;margin:4px 0}.summary .right{border-left:1px solid #ccd5ae;padding-left:25px;align-self:center}.section-head{display:flex;justify-content:space-between;align-items:center;margin:25px 0 15px}.section-head h2{margin:0}.badge{font-size:11px;border:1px solid var(--line);border-radius:30px;padding:6px 10px;background:white}.card{background:white;border:1px solid var(--line);border-radius:15px;margin-bottom:13px;padding:23px;display:grid;grid-template-columns:1fr 115px;gap:14px}.period{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:1px}.card h3{font-family:Manrope;margin:8px 0;font-size:20px;letter-spacing:-.6px}.card p{font-size:12px;margin:8px 0}.ratio{font-size:29px;font-weight:700;text-align:right}.ratio small{display:block;font-size:11px;font-weight:400;color:var(--muted)}.days{display:flex;gap:4px;flex-wrap:wrap;margin:17px 0}.day{width:27px;height:33px;border-radius:5px;display:flex;align-items:center;justify-content:center;background:#f0f2ed;font-size:10px;color:#6c796f}.day.vac{background:var(--green);color:white}.day.hol{background:#e9edc8;color:#566631}.legend{display:flex;gap:14px;font-size:10px;color:var(--muted);flex-wrap:wrap}.legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:4px;background:#edf0e9}.legend i.v{background:var(--green)}.legend i.h{background:#dce4aa}details{margin-top:13px;font-size:12px;color:var(--muted);line-height:1.7}summary{cursor:pointer;color:var(--green)}.export{background:white;color:var(--green);border:1px solid var(--line);padding:9px 12px;font-size:11px}footer{max-width:1200px;margin:0 auto;padding:25px 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted);display:flex;justify-content:space-between}a{color:var(--green)}@media(max-width:1250px){main,footer{margin:0 30px}}@media(max-width:760px){header{padding:20px}header small,.stamp{display:none}main{margin:0;padding:30px 20px}h1{font-size:42px}.layout{grid-template-columns:1fr}.settings{position:static}.summary{padding:20px}.summary .big{font-size:38px}footer{margin:0 20px;gap:20px}.card{padding:18px;grid-template-columns:1fr 85px}}

/* Mobile-first refinements */
#daycount{width:88px;font-size:36px;font-weight:700;padding:4px 8px;margin:0;background:transparent;border-color:var(--line)}
button,select,input,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #a8bf69;outline-offset:3px}input[type=range]{height:34px;touch-action:pan-y}details summary{min-height:44px;display:flex;align-items:center}.day{height:40px;flex-direction:column;gap:2px}.day small{font-size:8px;opacity:.75}.results{scroll-margin-top:20px}.card>*{min-width:0}.period{overflow-wrap:anywhere}.export:disabled{opacity:.5;cursor:default}
@media(max-width:760px){
header{padding:16px 20px}.logo{font-size:22px}.logo span{width:30px;height:30px;border-radius:8px}header>.badge{font-size:9px;padding:6px 8px}
main{padding:27px 16px 32px}.eyebrow{font-size:10px;letter-spacing:1.5px}h1{font-size:35px;line-height:1.16;letter-spacing:-1.7px;margin:12px 0}.intro{margin-bottom:22px}.intro p{font-size:14px;line-height:1.55;margin:12px 0 0}.layout{gap:22px}.panel{padding:20px;border-radius:15px}.settings h2{font-size:19px;margin-bottom:12px}label.field{font-size:13px;margin-top:18px}select,input[type=number]{font-size:16px;min-height:48px}select{padding:12px 10px;text-overflow:ellipsis}.count{margin-top:8px}.count small{font-size:14px}.check{font-size:13px;gap:12px;padding:7px 0;margin:14px 0}.check input{min-width:20px;height:20px;margin:0}.primary{min-height:52px!important;font-size:15px!important}.note{font-size:12px;margin-bottom:0}.summary{padding:20px;gap:12px;margin-bottom:22px;align-items:center}.summary .big{font-size:39px;letter-spacing:-1.6px;line-height:1.15;margin-top:10px}.summary .big span{display:block;font-size:18px!important;margin-top:3px}.summary .right{padding-left:15px;min-width:92px}.summary p{font-size:12px;line-height:1.5}.section-head{gap:10px;align-items:flex-start;flex-wrap:wrap}.section-head h2{font-size:20px}.export{min-height:44px;font-size:12px;padding:10px 12px}.legend{gap:10px;font-size:11px;line-height:1.6}.card{display:flex;flex-direction:column;gap:0;padding:19px;border-radius:14px}.card h3{font-size:22px;line-height:1.3;margin:10px 0}.card p{font-size:14px;line-height:1.55}.period{font-size:10px;line-height:1.6}.ratio{display:flex;align-items:center;gap:6px;text-align:left;border-top:1px solid var(--line);padding-top:13px;margin-top:9px;font-size:25px}.ratio small{font-size:12px}.ratio .badge{margin:0 0 0 auto!important;font-size:11px}.days{gap:5px;margin:16px 0 7px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.day{width:auto;min-width:0;height:47px;font-size:13px;border-radius:7px}.day small{font-size:9px}details{font-size:13px}summary{line-height:1.4;padding:6px 0}footer{margin:0 16px;padding:22px 0 30px;flex-direction:column;gap:9px;font-size:12px} .results>details{padding:0 4px}
}
@media(max-width:360px){header>.badge{display:none}.logo{white-space:nowrap}}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
input:not([type=checkbox]):not([type=range]),select{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:16px;color:var(--ink);background:#fafbf8;margin-top:8px;min-height:46px}.layout{grid-template-columns:370px 1fr}.settings{position:static}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.advanced{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}.advanced summary{font-weight:700;font-size:15px}.rule{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--line);font-size:12px}.rule span{flex:1}.rule input{width:66px!important;min-height:40px!important;padding:8px!important}.rule small{width:10px}.withdraw{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.withdraw strong{white-space:nowrap}.preview-note,#dirty{background:#ece7cf;border:1px solid #ded5a8;padding:14px 18px;border-radius:10px;font-size:13px;margin:0 0 22px}.assumption{background:white;border:1px solid var(--line);border-radius:12px;padding:15px 18px;font-size:13px}.assumption p{font-size:12px;margin:6px 0}.warning,#error,#dateError{color:#9b4e20}.comp{background:#ce9457;color:white}.results>details{padding:18px;margin-top:20px}.days{display:flex;flex-wrap:wrap}.day{width:30px}.intro{margin-bottom:25px}#cards{margin-top:18px}#save,#reset,#addDate{min-height:44px}#addDate{margin-top:12px}.check{align-items:center}.summary{gap:12px}.summary .big{font-size:42px}.summary .right{min-width:100px}.note{font-size:12px}@media(max-width:850px){.layout{grid-template-columns:1fr}h1{font-size:38px}.settings{width:100%}}@media(max-width:760px){.layout{grid-template-columns:1fr}.two{gap:10px}.summary{padding:18px}.summary .big{font-size:40px}.summary .right{min-width:94px}.preview-note{font-size:12px}.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.day{width:auto}.withdraw{font-size:11px;align-items:flex-start}.withdraw strong{white-space:normal;text-align:right}.rule{font-size:12px}.advanced summary{font-size:15px}.intro p{font-size:14px}.results>details{padding:16px}}