:root{--bg:#f4f6f9;--card:#fff;--ink:#141a24;--mut:#667085;--line:#cfd6e0;--accent:#7650e8;--veil:transparent;--glass:rgba(255,255,255,.72);box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){color-scheme:dark;--bg:#0e1218;--card:#181e27;--ink:#eef1f6;--mut:#98a2b3;--line:#2e3846;--veil:rgba(14,18,24,.8);--glass:rgba(24,30,39,.7);--path:#3a4352}}
:root[data-theme="dark"]{color-scheme:dark;--bg:#0e1218;--card:#181e27;--ink:#eef1f6;--mut:#98a2b3;--line:#2e3846;--veil:rgba(14,18,24,.8);--glass:rgba(24,30,39,.7);--path:#3a4352}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
*{box-sizing:border-box}
body{margin:0;background:linear-gradient(var(--veil),var(--veil)),var(--bgimg,none) center/cover fixed,radial-gradient(circle at 80% 45%,#d3bfff 0,transparent 38%),radial-gradient(circle at 15% 2%,#cbbff0 0,transparent 28%),linear-gradient(#ebebee,#eeeaf5);color:var(--ink);font:16px/1.55 'Noto Sans KR',system-ui,-apple-system,'Apple SD Gothic Neo','Malgun Gothic',sans-serif}
.hd{display:flex;align-items:center;gap:22px;margin:22px 20px 0;padding:14px 26px;background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:2px solid rgba(190,160,230,.35);border-radius:18px}
.sep{width:1px;height:20px;background:var(--ink);opacity:.7}
.adm{border:0;border-radius:99px;padding:12px 22px;font:inherit;font-size:16px;background:#d4c6ff;color:#141a24;cursor:pointer}
.ov{position:fixed;inset:0;background:rgba(20,26,36,.45);display:grid;place-items:center;z-index:9}
.md{background:var(--card);border-radius:16px;padding:22px;width:min(320px,90vw);display:grid;gap:10px}
.md input{font:inherit;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink)}
.brand{font-weight:500;font-size:22px;color:var(--ink);text-decoration:none}
.sub{flex:1;font-size:20px;font-weight:300;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
main{max-width:1040px;margin:0 auto;padding:20px}
.h1{font-size:26px;margin:6px 0 16px}
.hint{color:var(--mut);margin:12px 2px}
.mapw{overflow-x:auto;border:2px solid var(--ink);border-radius:6px;background:var(--card)}
.map{display:block;width:100%;min-width:900px;height:auto;aspect-ratio:2576/1932}
.st{fill:var(--card);stroke:var(--ink);stroke-width:5}
.sp{cursor:pointer}
.sp:hover .st,.sp:hover .gt{stroke:var(--accent);stroke-width:10}
.pcard{max-width:720px}
.bs{fill:var(--box,var(--card));stroke:var(--boxink,var(--ink));stroke-width:5;stroke-linejoin:miter}
.bx{cursor:pointer}
.bx.hv .bs{stroke:var(--accent);stroke-width:10}
.editing .bx{cursor:move;touch-action:none;user-select:none}
.bx.sel .bs{stroke:var(--accent);stroke-width:10;stroke-dasharray:28 15}
.dr{fill:#c8f8f8;stroke:var(--boxink,var(--ink));stroke-width:3}
.gt{fill:#c8f8f8;stroke:var(--ink);stroke-width:5}
.gp{fill:var(--path,#d8d8d8);fill-rule:evenodd;pointer-events:none}
.lb{font:500 36px 'Noto Sans KR',system-ui,-apple-system,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;fill:var(--boxink,var(--ink));text-anchor:middle;pointer-events:none;user-select:none}
.lb.lt{fill:var(--ink)}
.rz{fill:var(--accent);cursor:nwse-resize}
.crumb{font-size:14px;color:var(--mut)}.crumb a{color:var(--mut)}
.grid{display:grid;grid-template-columns:minmax(220px,1fr) 2fr;gap:16px}
@media (max-width:720px){.grid{grid-template-columns:1fr}}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px}
.t{font-size:13px;font-weight:500;color:var(--mut);margin:0 0 12px}
.fl{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}
.fb{display:flex;justify-content:space-between;padding:13px 16px;border:1px solid var(--line);border-radius:10px;color:var(--ink);text-decoration:none;font-weight:500}
.fb:hover{border-color:var(--accent);color:var(--accent)}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.chips a{padding:6px 14px;border:1px solid var(--line);border-radius:99px;text-decoration:none;color:var(--ink);font-size:14px;background:var(--card)}
.chips a.on{background:var(--accent);border-color:var(--accent);color:#fff}
.ph{position:relative;aspect-ratio:4/3;display:grid;place-items:center;overflow:hidden;border:1px dashed var(--line);border-radius:10px;background:var(--bg);color:var(--mut)}
.ph img{width:100%;height:100%;object-fit:cover}
.pt{position:absolute;right:8px;bottom:8px;display:flex;gap:6px}
.btn{font:inherit;font-size:13px;padding:7px 12px;border-radius:8px;border:1px solid var(--line);background:var(--card);color:var(--ink);cursor:pointer}
.btn.p{background:var(--accent);border-color:var(--accent);color:#fff}
.bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 20px;font-size:13px;background:var(--card);border-bottom:1px solid var(--line)}
.bar input[type=text],.bar input:not([type]),.bar input[type=number]{font:inherit;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--ink)}
#insp{border:0;border-bottom:1px solid var(--line);margin:0 -20px 14px}
.e:empty::before{content:attr(data-ph);color:var(--mut)}
[contenteditable]{outline:1px dashed var(--accent);outline-offset:3px;border-radius:3px;min-width:2em;display:inline-block}
div.e[contenteditable]{display:block}
.info{white-space:pre-wrap;min-height:220px}
.zn{margin:0 -18px;padding:16px 18px}
.zn+.zn{border-top:1.5px dashed rgba(110,110,130,.3)}
.zh{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px}
.zp{display:inline-flex;align-items:center}
.zp.lk{cursor:pointer}
.zp.lk:hover .pill{filter:brightness(.95)}
.go{margin-left:12px;font-size:13px;color:var(--mut);white-space:nowrap}
.pill.np{padding:8px 24px}
a.btn{text-decoration:none;display:inline-block}
.pill{display:inline-block;padding:6px 26px 6px 40px;border-radius:99px;font-weight:500;min-width:110px;text-align:center}
.zc{flex:none;width:46px;height:46px;margin-right:-34px;border-radius:50%;background:#fff;border:3px solid #d4c6ff;display:grid;place-items:center;padding:0;position:relative;z-index:1}
button.zc{cursor:pointer}
.ic{display:block;width:26px;height:26px;background:url(assets/icons.png) 0 0/1700% 100% no-repeat}
.ig{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.ib{width:44px;height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.ib.on{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.zi{min-height:100px;white-space:pre-wrap}
.zh input[type=color]{width:34px;height:30px;padding:0;border:1px solid var(--line);border-radius:6px;background:none}
.desc{display:block;color:var(--mut);white-space:pre-wrap}
.mut{color:var(--mut)}

/* ===== 메인 화면: 지도 양옆 기능 버튼 4개 ===== */
main.mh{max-width:1700px}
.hm{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:clamp(18px,3.2vw,90px);align-items:center}
.hmap{min-width:0}
.hb{width:clamp(138px,15.9vw,320px);display:flex;flex-direction:column;align-items:center;gap:clamp(16px,4.6vw,100px)}
.hm .map{min-width:0}
.hbtn{container-type:inline-size;position:relative;display:block;padding:0;border:0;border-radius:clamp(12px,1.45vw,30px);background:var(--hc);font:inherit;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;-webkit-tap-highlight-color:transparent}
.hbtn:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(90,60,170,.22)}
.hbtn:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.hbin{position:absolute;inset:0;overflow:hidden;border-radius:inherit;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:8cqw 4cqw 8cqw}
.hbiw{position:relative;flex:1;min-height:0;width:100%;margin-bottom:3cqw}
.hbi{position:absolute;inset:0;margin:auto;display:block;width:auto;height:auto;max-height:100%;max-width:62%;pointer-events:none;user-select:none}
.hbtn.dk .hbi{filter:brightness(0);opacity:.82}
.hbl{font-weight:900;font-size:11.4cqw;line-height:1.1;letter-spacing:-.03em;white-space:nowrap;pointer-events:none}
.editing .hbtn{touch-action:none}
.hbtn.sel{outline:3px dashed var(--accent);outline-offset:5px}
.hrz{position:absolute;right:-9px;bottom:-9px;width:20px;height:20px;border-radius:6px;background:var(--accent);box-shadow:0 0 0 2px #fff;cursor:nwse-resize;touch-action:none;z-index:2}
@media (max-width:1179px){
 .hm{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 16px;align-items:start}
 .hmap{grid-column:1/-1;grid-row:1}
 .hb{display:contents}
 .hbtn{justify-self:center}
 .hm .map{min-width:900px}
}
@media (max-width:640px){.hm{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ===== 기능 버튼 새 창(모달) 기본 틀 ===== */
html.hbm-lock,html.hbm-lock body{overflow:hidden}
.hbm{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:max(10px,3vw);background:rgba(20,16,36,.5);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:hbmFade .25s ease both}
@keyframes hbmFade{from{opacity:0}to{opacity:1}}
.hbm-card{width:min(780px,100%);max-height:88vh;max-height:88dvh;display:flex;flex-direction:column;background:var(--card);color:var(--ink);border-radius:20px;overflow:hidden;box-shadow:0 24px 70px rgba(10,5,25,.45);animation:hbmUp .3s ease both}
@keyframes hbmUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.hbm-hd{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px}
.hbm-hd h2{margin:0;font-size:22px;font-weight:900;letter-spacing:-.02em}
.hbm-x{flex:none;width:38px;height:38px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.35);cursor:pointer}
.hbm-x:hover{background:rgba(255,255,255,.6)}.hbm-x svg{width:18px;height:18px}
.hbm-body{flex:1;min-height:280px;overflow:auto;padding:22px}
@media (prefers-reduced-motion:reduce){.hbm,.hbm-card{animation:none}.hbtn{transition:none}}

/* 교직원 찾기 창 */
.zn.hi{outline:3px solid var(--accent);outline-offset:6px;border-radius:12px;background:rgba(118,80,232,.08)}
.hbm.stf .hbm-card{width:min(1100px,100%);border-radius:clamp(20px,3vw,40px)}
.stf .hbm-hd{gap:16px;padding:clamp(14px,2.6vw,30px) clamp(16px,3vw,44px)}
.stf .hbm-hd h2{font-size:clamp(22px,3.4vw,40px);font-weight:900;white-space:nowrap}
.sd-s{margin-left:auto;display:flex;align-items:center;gap:10px;flex:0 1 580px;min-width:0;height:clamp(44px,5.2vw,58px);padding:0 16px;border:3px solid color-mix(in srgb,var(--hc) 45%,#7d7388);border-radius:14px;background:rgba(255,255,255,.55);color:#7d7388}
.sd-s svg{flex:none;width:28px;height:28px}.sd-s i{flex:none;align-self:stretch;width:2px;margin:9px 0;background:#4b4458}
.sd-s input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:clamp(14px,1.6vw,18px);color:#3a3346;outline:0}
.sd-s input::placeholder{color:#8d8498}.sd-s:focus-within{box-shadow:0 0 0 3px rgba(118,80,232,.35)}
.stf .hbm-x{width:clamp(44px,5.2vw,58px);height:clamp(44px,5.2vw,58px);background:var(--hc);border:3px solid #111;color:#fff}
.stf .hbm-x:hover{background:color-mix(in srgb,var(--hc) 80%,#fff)}.stf .hbm-x svg{width:55%;height:55%}
.stf .hbm-body{background:#fff;padding:clamp(16px,2.6vw,38px) clamp(16px,3vw,44px);min-height:320px}
.sd-list{display:grid;grid-template-columns:repeat(auto-fill,236px);gap:clamp(16px,2.4vw,30px);align-items:start}
.sd-list>.mut{grid-column:1/-1}
.sd-c{display:flex;flex-direction:column;gap:12px;padding:clamp(12px,1.6vw,18px);border:3px solid var(--hc);border-radius:26px;background:#fff}
.sd-h{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:8px 10px;border-radius:14px;background:var(--hc);color:#fff;font-weight:900;font-size:clamp(17px,1.8vw,22px);text-align:center;word-break:keep-all}
.sd-h .e{flex:1;min-width:0}.sd-dx{flex:none;border:0;border-radius:8px;padding:3px 8px;background:rgba(255,255,255,.55);font:inherit;font-size:12px;font-weight:700;color:#3a3346;cursor:pointer}
.sd-r{display:flex;gap:6px;align-items:stretch}
.sd-t{flex:1;min-width:0;padding:10px 6px;border:3px solid var(--hc);border-radius:14px;background:#fff;font:inherit;font-weight:900;font-size:clamp(15px,1.6vw,19px);color:color-mix(in srgb,var(--hc) 60%,#34234f);cursor:pointer;transition:background .15s}
.sd-t:hover,.sd-t:focus-visible{background:color-mix(in srgb,var(--hc) 18%,#fff);outline:0}
.sd-x{flex:none;width:34px;border:0;border-radius:10px;background:#f1ecf8;color:#6b5a86;font-size:18px;cursor:pointer}
.sd-add{width:100%;padding:9px 8px;border:2px dashed var(--hc);border-radius:12px;background:#fff;font:inherit;font-size:14px;color:#5a4a78}
.sd-new{align-self:start;padding:14px 18px;border:3px dashed var(--hc);border-radius:20px;background:#fff;font:inherit;font-weight:900;color:#5a4a78;cursor:pointer}
@media (max-width:640px){.stf .hbm-hd{flex-wrap:wrap}.sd-s{order:3;flex:1 1 100%;margin-left:0}.stf .hbm-x{margin-left:auto}.sd-list{grid-template-columns:1fr 1fr}}
@media (max-width:420px){.sd-list{grid-template-columns:1fr}}

.lbm .hbm-x{background:rgba(255,255,255,.35);border:0}.lbm .hbm-x:hover{background:rgba(255,255,255,.55)}

/* 교과 정보 찾기창 */
/* 교과 정보 찾기창은 사이트의 다른 페이지처럼 브라우저 화면 자체가 아래로 스크롤돼요 */
.hbm.cjm{position:relative;inset:auto;z-index:auto;display:block;min-height:100vh;min-height:100dvh;padding:0;animation:none;background:#e6dcfe url(assets/cj-bg.jpg) center/100% 100% no-repeat;-webkit-backdrop-filter:none;backdrop-filter:none}
.cj-sc{position:static;width:100%}
.cj-in{container-type:inline-size;width:92.6%;margin:0 auto;padding:2.1cqw 0 6cqw;min-width:0}
.cj-hd{display:flex;align-items:center;height:clamp(54px,3.77cqw,200px);padding:0 clamp(12px,.7cqw,40px) 0 clamp(14px,1.9cqw,90px);border:2px solid #e6d9f3;border-radius:clamp(12px,1.1cqw,40px);background:rgba(247,244,255,.96);box-shadow:0 .2cqw .8cqw rgba(110,80,200,.08)}
.cj-hd h2{margin:0;font-size:clamp(15px,1.35cqw,60px);font-weight:400;color:#14101f;letter-spacing:-.01em}
.cj-br{border:0;background:none;padding:0;font:inherit;font-size:clamp(15px,1.35cqw,60px);color:#14101f;cursor:pointer}
.cj-hd>i{width:2px;height:1.1cqw;min-height:14px;margin:0 clamp(12px,2.8cqw,120px);background:#14101f;opacity:.85}
.cj-r{margin-left:auto;display:flex;gap:clamp(6px,.6cqw,20px)}
.cj-pill{border:0;border-radius:999px;padding:0 clamp(14px,1.9cqw,80px);height:clamp(34px,2.52cqw,110px);background:#d3c3fd;font:inherit;font-size:clamp(13px,1.2cqw,52px);color:#14101f;cursor:pointer}
.cj-pill:hover{background:#c3affb}.cj-close{background:rgba(255,255,255,.7);box-shadow:inset 0 0 0 2px #d3c3fd}
.cj-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:1.2cqw;padding:10px 14px;border:1px solid #d9cdf5;border-radius:14px;background:rgba(255,255,255,.85);font-size:14px}
.cj-bar input{padding:6px 8px;border:1px solid #cbbdf0;border-radius:8px;font:inherit}
.cj-cv{position:relative;container-type:inline-size;width:100%;aspect-ratio:2386/1370;margin-top:2.64cqw;font-family:'Noto Sans KR',system-ui,sans-serif;color:#2d2262}
.cj-i{position:absolute;isolation:isolate;display:flex;align-items:center;justify-content:center;box-sizing:border-box;text-align:center;line-height:1.15;word-break:keep-all;user-select:none;cursor:default}
.cj-i span{position:relative;z-index:1;padding:0 4%;pointer-events:none}
.cj-g{border:2.5px solid #d1bdfe;border-radius:1.2cqw;background:linear-gradient(165deg,#fff 0%,#fcfaff 32%,#efe8fe 72%,#e2d6fe 100%);font-size:4.55cqw;font-weight:600;letter-spacing:-.01em;color:#33235e}
/* 과 아이콘: iOS Liquid Glass — 반투명 굴절 유리 + 가장자리 스펙큘러 림 + 상단 광택 + 안쪽 깊이감 */
.cj-m{border:0;border-radius:2.7cqw;font-size:3.9cqw;font-weight:700;letter-spacing:-.03em;color:#2d2262;overflow:hidden;isolation:isolate;
 background:linear-gradient(135deg,rgba(255,255,255,.26) 0%,rgba(255,255,255,.04) 40%,rgba(196,176,255,.10) 70%,rgba(255,255,255,.2) 100%);
 -webkit-backdrop-filter:blur(.9cqw) saturate(190%) brightness(1.1) contrast(1.03);backdrop-filter:blur(.9cqw) saturate(190%) brightness(1.1) contrast(1.03);
 box-shadow:0 1.3cqw 3cqw rgba(86,56,176,.22),0 .2cqw .6cqw rgba(86,56,176,.18),
  inset 0 0 0 .13cqw rgba(255,255,255,.55),inset 0 0 0 .3cqw rgba(150,125,225,.10),inset 0 0 2.4cqw rgba(255,255,255,.28),
  inset .5cqw .6cqw .7cqw -.35cqw rgba(255,255,255,.95),inset -.5cqw -.6cqw .7cqw -.35cqw rgba(255,255,255,.75),
  inset 0 -1.6cqw 2.4cqw -1.2cqw rgba(138,104,236,.34)}
.cj-m::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:.28cqw;pointer-events:none;z-index:2;
 background:conic-gradient(from 215deg,rgba(255,255,255,.98),rgba(186,214,255,.6) 14%,rgba(255,255,255,.16) 30%,rgba(255,255,255,.16) 42%,rgba(255,196,238,.6) 56%,rgba(255,255,255,.95) 72%,rgba(255,255,255,.2) 88%,rgba(255,255,255,.98));
 -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.cj-m::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;
 background:radial-gradient(75% 34% at 30% 6%,rgba(255,255,255,.7),rgba(255,255,255,0) 70%),linear-gradient(118deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.34) 43%,rgba(255,255,255,0) 55%),radial-gradient(70% 60% at 92% 108%,rgba(176,146,255,.4),rgba(176,146,255,0) 70%)}
.cj-bar~.cj-cv .cj-i{cursor:grab;touch-action:none}
.cj-i.sel{outline:3px dashed var(--accent);outline-offset:4px;overflow:visible}
.cj-rz{position:absolute;right:-9px;bottom:-9px;width:18px;height:18px;border-radius:50%;background:var(--accent);border:3px solid #fff;cursor:nwse-resize;z-index:3}
@media (max-width:760px){.cj-in{width:94%;min-width:720px}.cj-pill{padding:0 12px}}
@media (prefers-reduced-motion:reduce){.cjm{animation:none}}


/* ===== 급식 정보 찾기창 (헤더·배경은 첨부 디자인: 위·아래 연보라 → 가운데 흰색 그라데이션) ===== */
.hbm.cjm.mlm{background:linear-gradient(180deg,#e7dcfe 0%,#ece3fe 7%,#f0ebff 14%,#f6f2ff 21%,#fcfaff 31%,#fff 41%,#fff 55%,#fafbff 69%,#f4f0ff 76%,#ece3fe 83%,#e4d8fe 90%,#ddcdfe 97%,#d9c8fe 100%)}
.ml-wrap{width:min(100%,max(52cqw,640px));margin:3.6cqw auto 0;font-family:'Noto Sans KR',system-ui,sans-serif;color:#2d2262}
.ml-nav{display:flex;align-items:center;justify-content:center;gap:clamp(14px,2.4cqw,60px)}
.ml-ar{display:grid;place-items:center;width:clamp(40px,3.6cqw,92px);height:clamp(40px,3.6cqw,92px);border:2px solid #d9c9fb;border-radius:50%;background:rgba(255,255,255,.85);color:#5b3fc4;cursor:pointer;box-shadow:0 .3cqw .9cqw rgba(110,80,200,.12)}
.ml-ar:hover{background:#efe7ff}.ml-ar svg{width:48%;height:48%}
.ml-date{min-width:clamp(190px,22cqw,520px);text-align:center;display:flex;flex-direction:column;gap:.2cqw}
.ml-date b{font-size:clamp(20px,2.3cqw,62px);font-weight:700;letter-spacing:-.02em;color:#2a1d5c}
.ml-date span{font-size:clamp(13px,1.2cqw,34px);color:#7d6bb5}
.ml-tools{display:flex;justify-content:center;gap:clamp(8px,.9cqw,24px);margin-top:1.4cqw}
.ml-t{border:0;border-radius:999px;padding:0 clamp(14px,1.6cqw,44px);height:clamp(34px,2.4cqw,66px);display:inline-flex;align-items:center;gap:8px;background:#d3c3fd;font:inherit;font-size:clamp(13px,1.15cqw,32px);color:#14101f;cursor:pointer}
.ml-t:hover{background:#c3affb}
.ml-pick{background:rgba(255,255,255,.8);box-shadow:inset 0 0 0 2px #d3c3fd;position:relative}
.ml-pick input{border:0;background:none;font:inherit;color:inherit;outline:0;cursor:pointer}
.ml-card{margin-top:2.2cqw;min-height:clamp(220px,20cqw,520px);padding:clamp(18px,2.2cqw,60px) clamp(18px,2.8cqw,76px);border:2px solid #e2d4fa;border-radius:clamp(16px,1.8cqw,48px);background:rgba(255,255,255,.88);box-shadow:0 .9cqw 2.6cqw rgba(110,80,200,.12)}
.ml-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:1.1cqw;border-bottom:2px dashed #e6dcfb}
.ml-bd{padding:.3cqw 1.3cqw;border-radius:999px;background:#b99dfb;color:#fff;font-size:clamp(14px,1.4cqw,38px);font-weight:700}
.ml-cal{font-size:clamp(13px,1.3cqw,36px);color:#5b4aa0}.ml-cal b{font-size:1.25em;color:#3b2a8a}
.ml-ls{list-style:none;margin:0;padding:.8cqw 0 0}
.ml-ls li{display:flex;align-items:center;flex-wrap:wrap;gap:.6cqw 1cqw;padding:clamp(8px,.85cqw,24px) 0;border-bottom:1px solid #f0e9fd;font-size:clamp(15px,1.55cqw,42px);font-weight:500}
.ml-ls li:last-child{border-bottom:0}
.ml-al{display:inline-flex;flex-wrap:wrap;gap:.3cqw}
.ml-al i{font-style:normal;min-width:1.7em;padding:0 .45em;height:1.7em;display:inline-grid;place-items:center;border-radius:999px;background:#efe7ff;color:#6a4fd0;font-size:.62em;font-weight:600;line-height:1}
.ml-msg{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:clamp(180px,16cqw,420px);text-align:center;font-size:clamp(15px,1.6cqw,42px);color:#7d6bb5}
.ml-er{color:#b2415b}.ml-er small{font-size:.72em;color:#8a7aa8}
.ml-sp{width:26px;height:26px;border:3px solid #d9c9fb;border-top-color:#8b6af0;border-radius:50%;animation:mlsp .8s linear infinite}
@keyframes mlsp{to{transform:rotate(360deg)}}
.ml-lg{margin:1.4cqw .4cqw 0;font-size:clamp(11px,.95cqw,26px);line-height:1.7;color:#8a7aa8}.ml-lg b{color:#6a5aa8;margin-right:.5em}
.ml-bar b{color:#4a3a9a}
@media (max-width:760px){.ml-wrap{width:100%;min-width:0}}
@media (prefers-reduced-motion:reduce){.ml-sp{animation:none}}
.hbtn[data-hb=meal] .hbi{max-width:72%}

/* ===== 모바일(iPhone·Android) 최적화 — PC(≥1180px)·태블릿 가로 화면 디자인은 그대로 ===== */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,a,.hbtn,.fb,.chips a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.editing .bx{touch-action:none}
@supports (-webkit-touch-callout:none){body{background-attachment:scroll}}
@media (max-width:640px){
 body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
 .hd{margin:12px 10px 0;padding:8px 10px 8px 16px;gap:10px;border-radius:16px}
 .brand{font-size:19px;white-space:nowrap}
 .sub{font-size:15px;min-width:0}
 .adm{padding:0 16px;min-height:44px;font-size:14px;white-space:nowrap;flex:none}
 main{padding:14px 12px}
 .h1{font-size:22px;word-break:keep-all}
 .mapw,.hm .map,.map{min-width:0}
 .mapw{overflow-x:hidden}
 .hint{font-size:14px}
 .hm{gap:12px}
 .md{width:min(340px,92vw)}
 .md input{font-size:16px;min-height:44px}
 .card{padding:16px 14px}.zn{margin:0 -14px;padding:14px}
 .crumb{font-size:13px;word-break:keep-all}
 .bar{padding:10px 12px;gap:8px}
 .bar input{min-width:0}
 .info{min-height:140px}
 /* 급식 정보창: 교과창용 최소 폭(720px)이 모바일에서 화면 밖으로 밀리지 않게 */
 .mlm .cj-in{width:100%!important;min-width:0}
 .mlm .cj-hd{gap:10px;flex-wrap:wrap}
 .ml-wrap{width:100%;margin-top:22px}
 .ml-bar{flex-wrap:wrap}.ml-bar input{max-width:100%!important}
 .ml-date{min-width:0;flex:1}
 .ml-tools{flex-wrap:wrap}
 .ml-card{padding:16px 14px;margin-top:16px}
 .ml-lg{font-size:11px}
 .ml-pick input{min-width:0;font-size:16px}
}
@media (pointer:coarse){
 .btn{min-height:44px;padding:9px 14px;font-size:14px}
 .chips a{padding:11px 18px;font-size:15px}
 .fb{padding:16px}
 .hbm-x,.sd-x{min-width:44px;min-height:44px}
 input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea{font-size:16px}
 .ml-ar{width:48px;height:48px}
 .ml-t{min-height:44px;font-size:14px}
 .cj-pill{min-height:44px;display:inline-flex;align-items:center}
 .sd-card,.sd-it{min-height:44px}
}
@media (max-width:640px) and (orientation:landscape){.hbm-card{max-height:96dvh}}
@media (pointer:coarse){
 .cjm .cj-hd .cj-pill,.cjm .cj-hd .cj-br{min-height:44px;height:auto}
 .cjm .cj-hd .cj-pill{padding-left:16px;padding-right:16px}
 .mlm .ml-wrap .ml-t{min-height:44px;height:auto}
}
@media (max-width:640px){#insp{margin:0 -12px 14px}.bar{padding:10px 12px}}
