:root{font:16px/1.5 system-ui,-apple-system,sans-serif;color:#213638;background:#f2efe5}*{box-sizing:border-box}body{margin:0}.notice{background:#f3df9e;text-align:center;padding:7px;font-size:13px}header{height:86px;display:flex;align-items:center;justify-content:space-between;padding:0 5%;border-bottom:1px solid #cbd4cd}h1{margin:0;font-size:25px}small{font-size:12px;color:#517778;font-weight:700;letter-spacing:.04em}main{display:grid;grid-template-columns:minmax(500px,2fr) minmax(310px,1fr);gap:28px;padding:30px 5%}.calendar,aside{background:#fffdf8;border:1px solid #dde2db;border-radius:16px;padding:24px}.toolbar,.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.toolbar{justify-content:center}.toolbar h2{min-width:180px;text-align:center}.week,.grid{display:grid;grid-template-columns:repeat(7,1fr)}.week span{text-align:center;color:#71807d;font-size:13px;padding:12px}.grid button{min-height:78px;border:1px solid #eff1eb;border-radius:0;text-align:left;align-self:stretch;vertical-align:top;color:#243b3b}.grid button.outside{color:#aeb8b2}.grid button.selected{background:#e3f1ee;outline:2px solid #1c7c82;outline-offset:-2px}button{cursor:pointer;border:1px solid #a1bbb4;background:transparent;border-radius:9px;padding:9px 15px;color:#1c7c82;font:inherit}button.primary{background:#1c7c82;color:white;border-color:#1c7c82}button:disabled{opacity:.45;cursor:default}.empty{margin-top:36px;text-align:center;color:#778782}dialog{border:0;border-radius:16px;box-shadow:0 12px 60px #20383844;width:min(560px,95vw);padding:24px}dialog::backdrop{background:#10282866}label{display:block;margin:14px 0;flex:1;font-weight:600;font-size:14px}input,textarea,select{display:block;width:100%;padding:10px;margin-top:6px;font:inherit;border:1px solid #b6c7bf;border-radius:8px;background:white}textarea{min-height:130px}.check input{display:inline;width:auto}.muted{color:#73817d;font-size:13px}@media(max-width:850px){main{grid-template-columns:1fr}.grid button{min-height:52px}}
.event{display:block;width:100%;text-align:left;margin:10px 0;background:#f5f7f1;border-color:#e0e8df;color:#283e3c}.event:hover{border-color:#1c7c82}#links{overflow-wrap:anywhere}#form-status{min-height:1.5em}
.time-pickers{display:flex;gap:6px}.time-pickers select{min-width:0}.detail-memo{white-space:pre-wrap;overflow-wrap:anywhere;min-height:110px}.check{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500}.check input{margin:0}textarea[name=note]{min-height:220px}#detail{width:min(560px,95vw)}
[hidden]{display:none!important}#clear-end{padding:5px 10px;min-height:34px;margin-top:6px}
.grid button.day-cell{display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px;min-height:92px}.day-number{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;flex-shrink:0}.day-number.today{background:#D6AC39;color:#243b3b;font-weight:700}.red-day{color:#AF6653!important}.saturday{color:#537EAE!important}.holiday{font-size:9px;color:#AF6653;line-height:1;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-strip{height:4px;width:90%;border-radius:3px;flex-shrink:0}.overflow{font-size:10px;line-height:1;color:#6d7774}.event-card{padding:16px 14px;margin:10px 0;border:1px solid #e0e8df;border-radius:10px;background:#fff}.event-heading{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:0;padding:0;color:#263c3c;min-height:24px}.event-marker{width:4px;min-width:4px;height:20px;border-radius:3px}.event-memo,.event-place,.event-author{margin:8px 0 0 13px;white-space:pre-wrap;overflow-wrap:anywhere}.event-place,.event-author{font-size:13px;color:#697a75}.event-memo a{color:#1c7c82}@media(max-width:850px){.grid button.day-cell{min-height:72px}}
#palette{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.swatch{width:30px;height:30px;min-height:30px;padding:0;border-radius:50%;border:2px solid transparent}.swatch[aria-checked=true]{outline:2px solid #1C7C82;outline-offset:3px}#category-delete-area{margin-top:16px}
#editor{max-height:calc(100dvh - 32px);overflow:auto}#editor form>.row:last-child{position:sticky;bottom:-24px;background:#fff;padding:12px 0 6px;margin-top:12px;z-index:1;box-shadow:0 -8px 14px #ffffffdd}.time-pickers{justify-content:flex-start}
@media(min-width:851px) and (min-height:560px){body{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.notice,header{flex:none}main{flex:1;min-height:0;overflow:hidden;padding:20px 5%}.calendar,aside{min-height:0;overflow:hidden}.calendar{display:flex;flex-direction:column}.toolbar,.week{flex:none}.toolbar h2{margin:5px 0}.week span{padding:5px}.grid{flex:1;min-height:0;grid-template-rows:repeat(6,minmax(0,1fr))}.grid button.day-cell{min-height:0;overflow:hidden}aside{display:flex;flex-direction:column}aside>.row{flex:none}#events{min-height:0;overflow:auto;flex:1}}
.login{max-width:600px;margin:30px auto;padding:24px;background:#fffdf8;border:1px solid #dde2db;border-radius:16px}.login button{margin:8px 8px 0 0}.login-code{display:block;font-size:36px;letter-spacing:.15em;color:#1c7c82;margin:20px 0}

.notice:empty{display:none}.login{width:min(600px,calc(100% - 32px));line-height:1.6}.login h2{margin:0 0 12px}.login p{margin:12px 0;word-break:keep-all;overflow-wrap:anywhere}.login input[aria-label="인증번호 8자리"]{max-width:300px;font-size:24px;letter-spacing:.15em;font-variant-numeric:tabular-nums}.login .check{margin:18px 0 4px}
