/* 좌측 메뉴 후보 (10-28). html[data-menu=a|b]. 둘 다 프로그램 결·기본 결 위에 얹힌다.
   공통: 메뉴 아래 사용자 카드(원래 서대문 시안의 연보라 사람 카드 자리) · 항목 36 · 아이콘 18 · 건수 알약 · 묶음 머리 */
.menu{display:flex;flex-direction:column}
.menu__nav{flex:1}
.menu__me{margin:16px 10px 0;padding:12px;border-radius:var(--r-md);background:var(--surface-2);display:grid;grid-template-columns:34px 1fr;gap:4px 10px;align-items:center}
.menu__me .av{width:34px;height:34px;border-radius:50%;background:var(--brand-sel);color:var(--brand-deep);font-weight:800;display:grid;place-items:center;grid-row:1/3;font-size:13px}
.menu__me b{font-size:var(--fs-meta);color:var(--gray-90);line-height:1.2}
.menu__me span{font-size:var(--fs-cap);color:var(--gray-60);line-height:1.2}
.menu__me .btn{grid-column:1/3;margin-top:8px;justify-content:center}

/* A. 밝은 메뉴 — 묶음 머리를 글자만 남기고, 항목 사이 간격으로 묶음을 나눔. 선택 = 브랜드 옅은 면 + 왼쪽 표식 3 */
html[data-menu=a] .menu{background:var(--surface);padding:12px 10px 16px;box-shadow:1px 0 0 rgba(30,33,36,.06)}
html[data-menu=a] .menu__g{background:none;padding:14px 12px 6px;font-size:11.5px;color:var(--gray-40);letter-spacing:.06em;margin:0}
html[data-menu=a] .menu__g:first-child{padding-top:4px}
html[data-menu=a] .menu a{border-radius:var(--r-md);padding:0 12px;height:36px;font-size:13.5px;color:var(--gray-80);box-shadow:none}
html[data-menu=a] .menu a svg{color:var(--gray-40)}
html[data-menu=a] .menu a:hover{background:var(--gray-5)}
html[data-menu=a] .menu a.on{background:color-mix(in srgb,var(--gray-10) 60%,var(--gray-5));color:var(--brand-deep);font-weight:700;box-shadow:none}
html[data-menu=a] .menu a.on svg{color:var(--brand-deep)}
html[data-menu=a] .menu a .n{background:var(--gray-10);color:var(--gray-70);min-width:20px;text-align:center}
html[data-menu=a] .menu a .n.hot{background:var(--danger);color:#fff}

/* B. 짙은 메뉴 — 머리띠의 브랜드 짙은색이 메뉴까지 이어짐(새올·온나라의 왼쪽 짙은 패널). 선택 = 흰 타일 + 브랜드 글자 */
html[data-menu=b] .menu{background:var(--brand-deep);padding:12px 10px 16px;box-shadow:none}
html[data-menu=b] .menu__g{background:none;padding:14px 12px 6px;font-size:11.5px;color:rgba(255,255,255,.5);letter-spacing:.06em;margin:0}
html[data-menu=b] .menu__g:first-child{padding-top:4px}
html[data-menu=b] .menu a{border-radius:var(--r-md);padding:0 12px;height:36px;font-size:13.5px;color:rgba(255,255,255,.86);box-shadow:none}
html[data-menu=b] .menu a svg{color:rgba(255,255,255,.6)}
html[data-menu=b] .menu a:hover{background:rgba(255,255,255,.1);color:#fff}
html[data-menu=b] .menu a.on{background:var(--surface);color:var(--brand-deep);box-shadow:0 1px 2px rgba(0,0,0,.18)}
html[data-menu=b] .menu a.on svg{color:var(--brand-deep)}
html[data-menu=b] .menu a .n{background:rgba(255,255,255,.16);color:#fff;min-width:20px;text-align:center}
html[data-menu=b] .menu a.on .n{background:var(--brand-sel);color:var(--brand-deep)}
html[data-menu=b] .menu a .n.hot{background:var(--danger);color:#fff}
html[data-menu=b] .menu__me{background:rgba(255,255,255,.1)}
html[data-menu=b] .menu__me .av{background:rgba(255,255,255,.2);color:#fff}
html[data-menu=b] .menu__me b{color:#fff} html[data-menu=b] .menu__me span{color:rgba(255,255,255,.65)}
html[data-menu=b] .menu__me .btn{background:rgba(255,255,255,.14);color:#fff}
html[data-menu=b] .hdr{box-shadow:0 1px 0 rgba(255,255,255,.12)}
/* B 를 기본 결(흰 머리띠)에 얹을 때는 머리띠도 짙게 */
html[data-menu=b]:not([data-skin=program]) .hdr{background:var(--brand-deep);color:#fff}
html[data-menu=b]:not([data-skin=program]) .hdr__org,html[data-menu=b]:not([data-skin=program]) .hdr__time,html[data-menu=b]:not([data-skin=program]) .hdr__me,html[data-menu=b]:not([data-skin=program]) .ibtn{color:#fff}
html[data-menu=b]:not([data-skin=program]) .hdr__svc{color:rgba(255,255,255,.8)} html[data-menu=b]:not([data-skin=program]) .hdr__svc::before{background:rgba(255,255,255,.3)}
html[data-menu=b]:not([data-skin=program]) .hdr__org img{filter:brightness(0) invert(1)}
html[data-menu=b]:not([data-skin=program]) .hdr__me .av{background:rgba(255,255,255,.2);color:#fff}
/* 짙은 메뉴에서 남양주 녹색 선택은 타일 글자색으로만 */
html[data-menu=b] .menu a.on{color:var(--menu-ink,var(--brand-deep))}
/* 아이콘 선택: html[data-icon="3d"] 이면 메뉴 아이콘을 서대문 원본의 입체 아이콘(icons3d.js)으로. 선택 항목은 타일 그대로(색은 아이콘 고유색) */
.menu a .ic3d{width:22px;height:22px;flex:none;display:inline-grid;place-items:center;background:none;box-shadow:none;border-radius:0}
.menu a .ic3d svg{width:22px;height:22px}
html[data-icon="3d"] .menu a{gap:10px}
html[data-icon="3d"] .menu a svg.ln{display:none!important}
html:not([data-icon="3d"]) .menu a .ic3d{display:none!important}
/* 중간 아이콘(html[data-icon="duo"]): 입체 아이콘의 형태를 그대로 쓰되 그라데이션·광택을 걷은 두 톤 평면.
   보통 = 회색 두 톤, 선택 = 브랜드 두 톤. 타일·그림자 없음. */
html[data-icon="duo"] .menu a svg.ln{display:none!important}
html[data-icon="duo"] .menu a .ic3d{display:inline-grid!important;background:none!important;box-shadow:none!important;border-radius:0}
html[data-icon="duo"] .menu .ic3d svg [fill^="url("]{fill:var(--gray-30)}
html[data-icon="duo"] .menu .ic3d svg [fill]:not([fill^="url("]):not([fill="none"]){fill:var(--gray-10)}
html[data-icon="duo"] .menu .ic3d svg [stroke]{stroke:var(--gray-0)}
html[data-icon="duo"] .menu .ic3d svg ellipse[opacity]{display:none}
html[data-icon="duo"] .menu a.on .ic3d svg [fill^="url("]{fill:var(--brand)}
html[data-icon="duo"] .menu a.on .ic3d svg [fill]:not([fill^="url("]):not([fill="none"]){fill:var(--brand-sel)}
html[data-icon="duo"] .menu a.on .ic3d svg [stroke]{stroke:var(--gray-0)}
html[data-icon="duo"] .menu a{gap:10px}
html[data-icon="duo"] .menu a .ic3d,html[data-icon="duo"] .menu a .ic3d svg{width:20px;height:20px}
/* 중간 아이콘 이전 판(html[data-icon="duo1"]): 회색 gray-40/gray-20, 크기 22 — 비교용 */
html[data-icon="duo1"] .menu a svg.ln{display:none!important}
html[data-icon="duo1"] .menu a .ic3d{display:inline-grid!important;background:none!important;box-shadow:none!important;border-radius:0}
html[data-icon="duo1"] .menu .ic3d svg [fill^="url("]{fill:var(--gray-40)}
html[data-icon="duo1"] .menu .ic3d svg [fill]:not([fill^="url("]):not([fill="none"]){fill:var(--gray-20)}
html[data-icon="duo1"] .menu .ic3d svg [stroke]{stroke:var(--gray-0)}
html[data-icon="duo1"] .menu .ic3d svg ellipse[opacity]{display:none}
html[data-icon="duo1"] .menu a.on .ic3d svg [fill^="url("]{fill:var(--brand)}
html[data-icon="duo1"] .menu a.on .ic3d svg [fill]:not([fill^="url("]):not([fill="none"]){fill:var(--brand-sel)}
html[data-icon="duo1"] .menu a{gap:10px}
/* 중간 + 선택만 입체(html[data-icon="duo2"]): 보통은 회색 두 톤(현재 판), 선택 항목만 원본 입체(그라데이션·광택 유지) */
html[data-icon="duo2"] .menu a svg.ln{display:none!important}
html[data-icon="duo2"] .menu a .ic3d{display:inline-grid!important;background:none!important;box-shadow:none!important;border-radius:0;width:20px;height:20px}
html[data-icon="duo2"] .menu a .ic3d svg{width:20px;height:20px}
html[data-icon="duo2"] .menu a:not(.on) .ic3d svg [fill^="url("]{fill:var(--gray-30)}
html[data-icon="duo2"] .menu a:not(.on) .ic3d svg [fill]:not([fill^="url("]):not([fill="none"]){fill:var(--gray-10)}
html[data-icon="duo2"] .menu a:not(.on) .ic3d svg [stroke]{stroke:var(--gray-0)}
html[data-icon="duo2"] .menu a:not(.on) .ic3d svg ellipse[opacity]{display:none}
html[data-icon="duo2"] .menu a{gap:10px}
/* 평면 두 톤(html[data-icon="flat"]): icons-flat.js. 보통 = 회색 두 톤, 선택 = 브랜드 두 톤. 기하 형태라 입체의 둥글둥글한 인상이 없다 */
html[data-icon="flat"] .menu a svg.ln,html[data-icon="flat"] .menu a .ic3d{display:none!important}
html:not([data-icon="flat"]) .menu a svg.icf{display:none!important}
/* 각진 입체(html[data-icon="solid"]): icons-solid.js. 평면의 기하 형태 + 원본 색 그라데이션. 색은 아이콘 고유색, 선택은 바탕 면만 */
html[data-icon="solid"] .menu a svg.ln,html[data-icon="solid"] .menu a .ic3d,html[data-icon="solid"] .menu a svg.icf{display:none!important}
html:not([data-icon="solid"]) .menu a svg.ics{display:none!important}
.menu a svg.ics{width:20px;height:20px;flex:none}
.menu a svg.icf{width:20px;height:20px;flex:none}
.menu a svg.icf .p{fill:var(--gray-50)} .menu a svg.icf .s{fill:var(--gray-20)}
.menu a.on svg.icf .p{fill:var(--brand-deep)} .menu a.on svg.icf .s{fill:var(--brand-tint)}
/* 항목 사이 간격(10-28): 선택·마우스 면이 서로 붙지 않게 */
.menu a + a{margin-top:3px}

/* 나의 할일 건수판(10-28, 새올 첫 화면 왼쪽 열): 머리 띠(제목 + 빨간 합계 + 날짜 + 꺾쇠, 눌러 접기) + 항목 줄, 숫자는 오른쪽 끝, 0이 아니면 주의색 글자만 */
.menu__todo{margin:0 2px 10px;background:var(--surface);border-radius:var(--r-md);box-shadow:var(--shadow-card);overflow:hidden}
.menu__todo-h{display:flex;align-items:center;gap:6px;width:100%;height:34px;padding:0 10px 0 12px;background:var(--brand-deep);color:#fff;font-size:13px;font-weight:700;border:0;border-radius:0;cursor:pointer;font-family:inherit;text-align:left}
.menu__todo-h b{font-size:13px;font-weight:800;color:rgba(255,255,255,.55);font-variant-numeric:var(--num)} .menu__todo-h b.hot{color:#FFB4A6}
.menu__todo-h span{margin-left:auto;font-size:11.5px;font-weight:500;opacity:.8;font-variant-numeric:var(--num)}
.menu__todo-h svg{width:16px;height:16px;flex:none;opacity:.8;transition:transform .15s}
.menu__todo.closed .menu__todo-h svg{transform:rotate(-180deg)} .menu__todo.closed .menu__todo-b{display:none}
.menu__todo-b{padding:4px 4px}
.menu__todo-b a{display:flex;align-items:center;justify-content:space-between;height:30px;padding:0 8px;font-size:12.5px;color:var(--gray-70);border-radius:var(--r-sm);margin:0}
.menu__todo-b a + a{margin-top:3px}
.menu__todo-b a:hover{background:var(--gray-5)}
.menu__todo-b b{font-size:13px;font-weight:700;color:var(--gray-40);font-variant-numeric:var(--num)}
.menu__todo-b b.hot{color:var(--danger)}
html[data-skin=program] .menu__todo{margin:0 0 8px;border-radius:0;box-shadow:none;background:none}
html[data-skin=program] .menu__todo-h{background:var(--gray-10);color:var(--gray-80);height:30px;font-size:12.5px;padding:0 12px 0 14px}
html[data-skin=program] .menu__todo-h b{color:var(--gray-40)} html[data-skin=program] .menu__todo-h b.hot{color:var(--danger)}
html[data-skin=program] .menu__todo-b{padding:4px 4px 4px;background:var(--surface)}
html[data-skin=program] .menu__todo-b a{padding:0 10px 0 12px;border-radius:var(--r-sm)}
html[data-menu=b] .menu__todo{background:rgba(255,255,255,.08);box-shadow:none}
html[data-menu=b] .menu__todo-h{background:rgba(255,255,255,.12)}
html[data-menu=b] .menu__todo-b a{color:rgba(255,255,255,.8);background:none}
html[data-menu=b] .menu__todo-b b{color:rgba(255,255,255,.5)} html[data-menu=b] .menu__todo-b b.hot{color:#FFB4A6}

/* 모노톤(html[data-icon="mono"], 10-29 피드백 "메뉴 아이콘 모노톤 한 가지 색"): 평면 형태를 한 색(gray-50)으로, 보조 면은 같은 색의 45%. 선택은 브랜드 진한색 */
html[data-icon="mono"] .menu a svg.ln,html[data-icon="mono"] .menu a .ic3d,html[data-icon="mono"] .menu a svg.ics{display:none!important}
html[data-icon="mono"] .menu a svg.icf{display:block!important}
html[data-icon="mono"] .menu a svg.icf .p{fill:var(--gray-50)} html[data-icon="mono"] .menu a svg.icf .s{fill:var(--gray-50);opacity:.45}
html[data-icon="mono"] .menu a.on svg.icf .p{fill:var(--brand-deep)} html[data-icon="mono"] .menu a.on svg.icf .s{fill:var(--brand-deep);opacity:.45}
html[data-menu=b][data-icon="mono"] .menu a svg.icf .p,html[data-menu=b][data-icon="mono"] .menu a svg.icf .s{fill:rgba(255,255,255,.85)}
/* 즐겨찾기 별(10-29): 항목 오른쪽 끝, 마우스 올리면 보임. 등록된 것은 항상 보임 */
.menu a .star{margin-left:auto;width:18px;height:18px;display:grid;place-items:center;color:var(--gray-30);opacity:0;flex:none;border-radius:4px} .menu a:hover .star{opacity:1} .menu a .star.on{opacity:1;color:var(--warn)} .menu a .star:hover{color:var(--gray-70)} .menu a .n + .star{margin-left:6px}
.menu__g.fav{color:var(--brand-deep)}
/* 로그인 정보(10-30): 예전 상자 모양(회색 면 둥근 상자, 이름·부서, 아래 로그아웃 버튼). 구분선 없이 메뉴 맨 아래에 고정해 늘 보이게 */
html .menu{padding-bottom:0}
html .menu__me{position:sticky;bottom:12px;z-index:2;margin:16px 0 12px;box-shadow:0 -12px 0 var(--surface),0 12px 0 var(--surface)}
html[data-menu=b] .menu__me{box-shadow:0 -12px 0 var(--brand-deep),0 12px 0 var(--brand-deep)}
/* 메뉴를 화면 높이에 붙여 메뉴 안에서만 스크롤 → 맨 아래 로그인 정보가 늘 보임(머리띠 높이는 셸 첫 줄 높이와 같게) */
html .shell > .menu{position:sticky;top:var(--h-header,48px);align-self:start;height:calc(100vh - var(--h-header,48px));overflow-y:auto}
html .menu__me b,html .menu__me span:not(.av){min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} html .menu__me{grid-template-columns:34px minmax(0,1fr)}
/* 데모 띠(화면 아래 떠 있는 시연용 막대)가 있을 때는 메뉴 맨 아래 로그인 정보를 가리지 않게 그 높이만큼 위에서 끝냄 */ body:has(.demobar) .shell > .menu{height:calc(100vh - var(--h-header,48px) - 56px)}
html[data-menu] .shell > .menu,html .shell > .menu{padding-bottom:0}
/* 메뉴 높이를 화면에 고정한 뒤 안의 항목(메뉴 찾기 칸 등)이 줄어들어 찌그러지지 않게: 줄이지 말고 메뉴 안에서 스크롤 */ html .shell > .menu > *{flex-shrink:0}
/* 즐겨찾기 구획(10-30): 위아래 구분선이 메뉴 가장자리까지 닿게 메뉴 안쪽 여백(10)만큼 바깥으로, 글자는 그만큼 안쪽 */
html .menu .menu__sec.fav{margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}
