:root{font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1d2a23;background:#f8f9f7;font-size:16px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #a5d7b5;outline-offset:2px}.shell{max-width:1100px;margin:auto;padding:36px 32px 70px}.top{display:flex;align-items:center;justify-content:space-between;padding-bottom:45px}.brand{font-size:18px;letter-spacing:-.05em;font-weight:800}.brand-mark{display:inline-grid;place-items:center;width:29px;height:29px;background:#315e49;color:white;border-radius:9px;margin-right:9px;font-size:15px}.account{display:flex;align-items:center;gap:12px;color:#66756b;font-size:14px}.text-btn{border:0;background:none;color:#77857b;padding:6px}.intro{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:34px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:#71917d}.intro h1{font-size:34px;letter-spacing:-.07em;margin:10px 0 8px}.intro p,.sub{color:#89968d;margin:0;font-size:15px}.primary{border:0;background:#315e49;color:white;border-radius:12px;padding:14px 20px;font-weight:700;white-space:nowrap}.primary:hover{background:#244c39}.primary span{font-size:20px;vertical-align:-1px;margin-right:7px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.card{background:white;border:1px solid #e8eee9;border-radius:18px}.calendar{padding:28px}.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.cal-head h2{font-size:20px;letter-spacing:-.04em;margin:0}.nav{display:flex;gap:6px;align-items:center}.icon{border:0;background:transparent;color:#64756a;border-radius:9px;width:36px;height:36px;font-size:22px}.icon:hover,.today:hover{background:#f3f6f3}.today{font-size:13px;border:1px solid #e5ebe6;background:white;border-radius:8px;padding:7px 11px;color:#65766b}.grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.weekday{text-align:center;color:#a2ada5;font-size:13px;padding-bottom:15px}.day{height:86px;border:0;border-top:1px solid #f0f3f0;background:white;text-align:left;padding:10px 7px;color:#38483e;position:relative;border-radius:0}.day:hover{background:#f7faf7}.day.outside{color:#c9d1cb}.day.selected{background:#edf5ef;border-radius:9px}.num{display:inline-grid;place-items:center;width:26px;height:26px;font-size:14px}.is-today .num{background:#315e49;color:white;border-radius:50%;font-weight:700}.dots{display:flex;gap:3px;flex-wrap:wrap;margin:8px 0 0 5px}.dot{width:6px;height:6px;background:#8db49a;border-radius:50%}.dot.leave{background:#d5a770}.side{padding:25px 22px;min-height:360px}.side-head{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid #eff2ef;padding-bottom:20px}.side h2{font-size:18px;margin:7px 0 0;letter-spacing:-.04em}.count{background:#f1f6f2;color:#62836c;border-radius:20px;padding:5px 9px;font-size:12px}.empty{text-align:center;padding:78px 0;color:#a0aca3;font-size:14px;line-height:1.8}.empty-icon{display:grid;place-items:center;margin:0 auto 13px;width:44px;height:44px;border-radius:15px;background:#f4f7f4;color:#adc0b2;font-size:21px}.event{padding:18px 0;border-bottom:1px solid #f1f3f1}.event-top{display:flex;justify-content:space-between;align-items:center}.event strong{font-size:15px}.event-meta{font-size:13px;color:#88978c;margin-top:8px;line-height:1.6}.delete{border:0;background:none;color:#a5b0a8;font-size:13px}.login{min-height:100vh;display:grid;place-items:center;padding:24px}.login-box{width:min(100%,380px);background:#fff;border:1px solid #e7eee8;border-radius:22px;padding:38px}.login-box h1{font-size:27px;letter-spacing:-.06em;margin:34px 0 10px}.login-box .sub{line-height:1.7;margin-bottom:28px}.tabs{display:flex;background:#f3f6f3;padding:4px;border-radius:10px;margin-bottom:24px}.tabs button{border:0;background:none;flex:1;padding:10px;color:#8b998f;border-radius:8px;font-size:14px}.tabs .active{background:white;color:#315e49;font-weight:700;box-shadow:0 1px 5px #203e2b12}label{display:block;color:#526459;font-size:14px;font-weight:700;margin:17px 0 8px}input{display:block;width:100%;border:1px solid #e1e9e2;border-radius:10px;padding:13px;margin-top:8px;background:white;color:#26382c}input::placeholder{color:#bbc5bd}.wide{width:100%;margin-top:15px}.error{color:#b95a50;font-size:13px;min-height:16px;margin:10px 0}.optional{font-weight:400;color:#aab5ac}dialog{width:min(480px,calc(100% - 32px));border:0;border-radius:20px;padding:28px;box-shadow:0 20px 80px #102c1d30}dialog::backdrop{background:#17271d77}.dialog-head{display:flex;justify-content:space-between;align-items:start}.dialog-head h2{font-size:23px;margin:7px 0 12px}.type-list{display:flex;flex-wrap:wrap;gap:8px}.type{border:1px solid #e5ece6;background:white;color:#6c7e71;padding:9px 12px;border-radius:9px;font-size:14px}.type.active{background:#eaf3ec;border-color:#9fc5a9;color:#315e49;font-weight:700}.date-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.date-fields label:only-child{grid-column:span 2}[hidden]{display:none!important}.loading{text-align:center;padding:100px;color:#829187}@media(max-width:700px){.shell{padding:23px 16px 100px}.top{padding-bottom:42px}.intro h1{font-size:28px}.intro{align-items:end}.intro p{font-size:14px}.primary{padding:13px 15px}.workspace{grid-template-columns:1fr;gap:14px}.calendar{padding:20px 14px}.day{height:65px;padding:6px 3px}.dots{margin-top:5px}.side{min-height:220px}.empty{padding:40px 0}.login-box{padding:30px 24px}}

.toast{position:fixed;z-index:10;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:14px 20px;border-radius:12px;background:#263b2f;color:#fff;box-shadow:0 6px 22px #1c32263d;font-size:14px;text-align:center;line-height:1.5}

.toast{display:flex;align-items:center;gap:18px}.toast button{border:0;background:transparent;color:#bde8c9;font-weight:700;white-space:nowrap;padding:3px;cursor:pointer}

.side-actions{display:flex;align-items:center;gap:8px}.day-add{width:32px;height:32px;border:0;border-radius:9px;background:#edf5ef;color:#315e49;font-size:20px;line-height:1}.day-add:hover{background:#dfeee2}.type-field{border:0;padding:0;margin:22px 0 0;min-width:0}.type-field legend{color:#526459;font-size:14px;font-weight:700;margin-bottom:10px}.type-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.type{text-align:left;min-height:45px}.day-context{font-size:13px;color:#79897d;line-height:1.5;overflow-wrap:anywhere}.date-fields:has(#end-label[hidden]){grid-template-columns:1fr}.primary:disabled{opacity:.5;cursor:not-allowed}@media(max-width:480px){dialog{max-height:calc(100dvh - 32px);overflow-y:auto;padding:22px}#event-form .wide{position:sticky;bottom:0}}

.name-fields{display:grid;grid-template-columns:1fr 2fr;gap:10px}.name-fields label{min-width:0}

.leave-picker{margin-top:22px;border-top:1px solid #edf1ed;padding-top:18px}.leave-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.leave-heading strong{font-size:14px;color:#526459}.leave-heading p{margin:5px 0 0;font-size:13px;color:#7b8b7f}.leave-nav{display:flex;align-items:center;gap:3px;white-space:nowrap;font-size:14px;font-weight:700}.leave-nav button{width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:#64756a;font-size:22px}.leave-nav button:hover{background:#f3f6f3}.leave-grid{display:grid;grid-template-columns:repeat(7,1fr);margin-top:12px;gap:2px}.leave-weekday{text-align:center;color:#929f95;font-size:12px;padding:7px 0}.leave-day{height:38px;border:0;border-radius:9px;background:transparent;color:#38483e}.leave-day:hover:not(:disabled){background:#e6f0e8}.leave-day:disabled{color:#ccd4cd;cursor:not-allowed}.leave-day.in-range{background:#eaf3ec}.leave-day.range-end{background:#315e49;color:white;font-weight:700}#event-form .date-fields{grid-template-columns:1fr}.date-fields label:only-child{grid-column:auto}

.day{height:108px;vertical-align:top;overflow:hidden}.calendar-events{display:flex;flex-direction:column;gap:2px;margin-top:3px}.calendar-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:4px;padding:2px 4px;font-size:12px;font-weight:700;line-height:1.2}.calendar-name.green{background:#e2f2e7;color:#22613a}.calendar-name.yellow{background:#fff2bf;color:#705300}.calendar-name.red{background:#fde6e4;color:#a0312d}.calendar-name.purple{background:#eee5fa;color:#6d3b93}.more-events{padding-left:4px;color:#718075;font-size:11px}.duty-picker{border:0;padding:0;margin:18px 0 0}.duty-picker legend{color:#526459;font-size:14px;font-weight:700;margin-bottom:10px}.duty-options{display:flex;gap:8px}.duty-options button{flex:1;min-height:44px;border:1px solid #e5ece6;border-radius:9px;background:white;color:#6c7e71}.duty-options button.active{background:#eee5fa;border-color:#c5a9dd;color:#6d3b93;font-weight:700}@media(max-width:700px){.day{height:95px;padding:5px 2px}.calendar-name{font-size:11px;padding:2px}.calendar-events{margin-top:2px;gap:2px}}

/* Keep names readable while allowing busy days to expand their calendar row. */
.day{height:auto;min-height:100px;align-self:stretch}.calendar-events{gap:1px;margin-top:2px}.calendar-name{background:none!important;padding:0 2px;border-radius:0;font-size:12px;line-height:1.25}.calendar-name.green{color:#26733f}.calendar-name.yellow{color:#9a7100}.calendar-name.red{color:#c53935}.calendar-name.purple{color:#7544a0}.more-events{padding-left:2px}@media(max-width:700px){.day{height:auto;min-height:84px}.calendar-name{font-size:11px;line-height:1.3;padding:0 1px}}

/* Anchor each date and its events to the top of the calendar cell. */
.day{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;min-width:0}.day .num{flex:none}.day .calendar-events{width:100%;min-width:0;text-align:left}

.overnight-hint{margin:12px 0 0;color:#79897d;font-size:13px;line-height:1.5}

.date-picker{margin-top:4px;border-top:0;padding-top:0}.date-instruction{margin:9px 0 12px;font-size:13px;color:#79897d;line-height:1.45}

.quick-add{padding:20px 0;border-bottom:1px solid #eff2ef}.quick-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.quick-head strong{font-size:15px}.range-toggle{border:1px solid #dce7de;border-radius:8px;background:white;color:#55725d;font-size:13px;padding:7px 10px}.range-toggle.active{background:#eaf3ec;border-color:#9fc5a9}.range-label{font-size:13px;color:#788a7d;margin:10px 0 12px;line-height:1.4}.quick-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.quick-types .type{min-height:38px;padding:7px 9px;font-size:13px}.quick-duty{margin-top:8px}.quick-error{font-size:13px;color:#b95a50;line-height:1.4}.quick-add .wide{margin-top:12px}.day.in-selected-range{background:#edf5ef}.intro{min-height:55px}
.side{min-height:0;align-self:start}.quick-add{padding:0;border:0}

.delete-toggle,.reselect{display:block;width:100%;margin-top:10px;border:0;background:transparent;color:#6c7e71;text-align:center;font-size:13px;padding:9px;cursor:pointer}.delete-toggle{border-top:1px solid #edf1ed;padding-top:16px}.delete-list{display:grid;gap:8px;margin-top:4px}.delete-item{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;padding:9px;border-radius:9px;background:#f6f8f6}.delete-item small{display:block;color:#89978d;font-size:11px;margin-top:3px}.delete-item button{border:0;background:none;color:#b34d49;padding:5px}.quick-add{border:0;padding:0}.side{min-height:0}

.quick-duty button{min-height:38px;font-size:13px;padding:7px 9px}

.day-schedule{border-top:1px solid #edf1ed;margin-top:22px;padding-top:18px}.day-schedule h2{font-size:14px;line-height:1.4;margin:0 0 10px;color:#526459}.day-schedule h2 span{color:#91a095;font-size:13px;margin-left:4px}.schedule-list{display:grid;gap:2px}.schedule-item{display:flex;justify-content:space-between;align-items:center;min-height:43px;gap:8px;padding:7px 0;border-bottom:1px solid #f2f5f2;font-size:14px}.schedule-name{font-weight:700}.schedule-name.green{color:#26733f}.schedule-name.yellow{color:#9a7100}.schedule-name.red{color:#c53935}.schedule-name.purple{color:#7544a0}.schedule-type{margin-left:8px;color:#748479}.schedule-item small{display:block;font-size:12px;color:#89978d;margin-top:4px}.trash{display:grid;place-items:center;flex:none;width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:#9aaba0}.trash:hover{background:#fbefee;color:#b34d49}.schedule-empty{font-size:13px;color:#9aa89d;margin:14px 0 0}

.quick-types{grid-template-columns:1fr}.quick-types .type{min-height:48px;padding:12px 14px;font-size:15px}.quick-duty button{min-height:48px;font-size:15px}

.app-tabs{display:flex;gap:24px;border-bottom:1px solid #e3eae4;margin:-12px 0 24px}.app-tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:12px 2px;color:#8a998e;font-weight:700}.app-tabs button.active{color:#315e49;border-bottom-color:#315e49}.jeom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.jeom-card{padding:24px}.jeom-card h2{font-size:18px;margin:0 0 6px}.jeom-date{font-size:13px;color:#89978d;margin:0 0 20px}.jeom-names{display:flex;flex-wrap:wrap;gap:9px}.jeom-name{background:#f0f6f1;color:#315e49;border-radius:9px;padding:9px 12px;font-size:15px;font-weight:700}.jeom-empty{font-size:14px;color:#89978d}.jeom-count{font-size:13px;color:#89978d;margin-left:6px}@media(max-width:700px){.jeom-grid{grid-template-columns:1fr}.jeom-card{padding:20px}}

.jeom-grid{grid-template-columns:1fr}.jeom-sections{display:grid;grid-template-columns:1fr 1fr;gap:28px}.jeom-sections h3{font-size:15px;margin:0 0 14px;color:#526459}.jeom-sections h3 span{font-size:13px;font-weight:500;color:#89978d;margin-left:4px}.excluded-list{font-size:14px}.excluded-head,.excluded-row{display:grid;grid-template-columns:minmax(70px,1fr) 2fr;gap:12px;padding:9px 0}.excluded-head{font-size:12px;color:#98a59b;border-bottom:1px solid #edf1ed}.excluded-row{color:#56675b;border-bottom:1px solid #f2f5f2}.excluded-row span:last-child{color:#7f8d82}@media(max-width:700px){.jeom-sections{grid-template-columns:1fr;gap:24px}}

.jeom-totals{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f4f8f5;border-radius:10px;padding:14px 16px;margin:0 0 22px;color:#64776a;font-size:14px}.jeom-totals strong{color:#315e49;font-size:17px;white-space:nowrap}.reason-list{display:grid;gap:10px;font-size:14px;color:#526459;line-height:1.5}.reason-list span{color:#7f8d82}


/* Keep both tabs on the same page grid when their heights differ. */
html{overflow-y:scroll;scrollbar-gutter:stable}.shell{width:100%}.jeom-grid{width:100%}
.jeom-name{background:none;border-radius:0;padding:0;color:#526459;font-size:14px;font-weight:400}.jeom-names{gap:8px 14px;line-height:1.5}

.type-menu-toggle{display:none}@media(max-width:700px){.shell:has(.quick-add){padding-bottom:190px}.top{padding-bottom:24px}.app-tabs{margin-bottom:14px}.calendar{padding:14px 10px}.cal-head{margin-bottom:12px}.weekday{padding-bottom:8px}.day{min-height:60px}.side{padding:16px}.quick-add{position:fixed;z-index:5;left:0;right:0;bottom:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;background:white;border-top:1px solid #e0e9e2;padding:10px 16px max(10px,env(safe-area-inset-bottom));box-shadow:0 -6px 20px #203e2b10}.quick-head{grid-column:1/-1;justify-content:space-between}.quick-head strong{font-size:13px}.quick-head .range-label{margin:0;font-size:13px}.type-menu-toggle{display:block;min-width:0;min-height:44px;border:1px solid #dce7de;border-radius:10px;background:#f8fbf8;color:#315e49;text-align:left;padding:10px 13px;font-size:15px;font-weight:700}.mobile-type-menu{display:none;position:absolute;bottom:calc(100% + 6px);left:16px;right:16px;max-height:min(55dvh,460px);overflow:auto;background:white;border:1px solid #e2eae3;border-radius:14px;padding:10px;box-shadow:0 8px 28px #203e2b24}.mobile-type-menu.open{display:block}.quick-types{grid-template-columns:1fr}.quick-types .type{min-height:44px}.quick-add .wide{width:auto;min-width:100px;margin:0}.quick-error{grid-column:1/-1;margin:0}.toast{bottom:calc(125px + env(safe-area-inset-bottom))}.day-schedule{border-top:0;margin-top:0;padding-top:0}}

.jeom-totals{background:none;border-radius:0;padding:0;margin:0 0 12px}.jeom-totals strong{font-size:17px}.jeom-sections{display:block}.jeom-sections h3{margin:0 0 7px;font-size:13px}.jeom-grid{gap:10px}.jeom-card{padding:16px 18px}.jeom-card h2{font-size:16px;margin:0}.jeom-date{margin:3px 0 10px}.reason-list{gap:4px}.jeom-empty{margin:0}.jeom-totals span{font-size:13px}@media(max-width:700px){.shell{padding-top:10px}.shell:has(.quick-add){padding-bottom:130px}.top{padding-bottom:5px}.brand{font-size:16px}.brand-mark{width:25px;height:25px;margin-right:6px}.account{gap:6px}.app-tabs{margin:0 0 8px;gap:20px}.app-tabs button{padding:8px 2px;font-size:14px}.calendar{padding:10px 8px}.cal-head{margin-bottom:6px}.cal-head h2{font-size:17px}.weekday{padding-bottom:5px}.day{min-height:48px}.quick-add{padding-top:7px;gap:5px}.quick-add .wide,.type-menu-toggle{min-height:42px}.jeom-card{padding:14px 16px}.jeom-grid{gap:8px}.jeom-date{margin-bottom:8px}.jeom-totals{margin-bottom:10px}}
