/* 📊 관리 '한눈에' v5 (glance5.js · 방장 2026-11-17 '이대로 넣기') — 이름은 모두 g5…
   - 그래프는 파랑 한 색(--g5s) + 지난 기간 옅은 파랑(--g5ss) · 꽉 참 = 코랄 · 금색은 이번 주 막대 · 박스 순위 숫자만
   - 밝은 모드는 맨 아래 :root[data-theme="light"] 에서 토큰만 바꿔요 (theme.css 보다 앞에 불러요)
   - 연출: 막대 자라기 0.45초 · 펼침 0.32초 · '동작 줄이기'면 끄기 */
:root { --g5s: #8AB4F8; --g5ss: #4A6A9E; --g5h0: #24304A; --g5h1: #2F4A78; --g5h2: #3F67A6; --g5h3: #5D8BD0; --g5h4: #8AB4F8; --g5hk: #15161A; --g5hf: #F4F2EC }

/* 묶음 제목 ①②③④ */
.g5sec { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 14px 0 -2px }
.g5sec h3 { margin: 0; font-size: 16px; font-weight: 800 } .g5sec > span:last-child { color: var(--muted); font-size: 13px }
.g5no { font: 800 13px/1.5 var(--num); color: var(--bg); background: var(--muted); border-radius: 6px; padding: 0 7px; align-self: center }

/* 카드 머리 · 펼침 버튼 */
.g5c { display: flex; flex-direction: column; gap: 8px; min-width: 0 }
.g12 > .g5c { align-self: stretch }
.g5click { cursor: pointer; transition: border-color .2s, transform .2s } .g5click:hover { border-color: var(--line2); transform: translateY(-2px) }
.g5h { display: flex; align-items: center; gap: 8px; min-width: 0; width: 100% }
.g5h h2 { flex: 1; min-width: 0; margin: 0; font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap } .g5h h2 small { color: var(--muted); font-weight: 500; font-size: 12.5px }
.pck .g5h h2 { color: var(--muted) }
.g5t { font-size: 13px; color: var(--muted); white-space: nowrap } .g5t b { font: 800 18px var(--num); color: var(--fg) } .g5t small { font-size: 12.5px }
.g5o { flex: none; width: 44px; height: 44px; margin: -10px -10px -10px 0; display: grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font-size: 17px; font-weight: 800; cursor: pointer }
.g5o:hover, .g5o:focus-visible { background: var(--raise); color: var(--fg) }
.g5why { margin: 0; font-size: 12.5px; color: var(--muted) }

/* 큰 숫자 + 작은 그래프 */
.g5kv { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; width: 100% }
.g5kv .pcbig { flex: none; white-space: nowrap }
.g5sp { width: 52%; max-width: 170px; min-width: 96px; height: auto; aspect-ratio: 170 / 56; flex: 0 1 auto; overflow: visible; display: block }
.pck .pcvs .glsub { font-size: 12.5px; white-space: normal }

/* 그래프 공통 (SVG) */
.g5ch2 { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y }
.g5ax { stroke: var(--line); stroke-width: 1 }
.g5axt { fill: var(--muted); font: 600 11.5px var(--body) } .g5axt.hi { fill: var(--gold); font-weight: 800 }
.g5axn { fill: var(--muted); font: 700 12px var(--num) }
.g5vl { fill: var(--fg); font: 800 13px var(--num) }
.g5ln { fill: none; stroke: var(--g5s); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round }
.g5dot { fill: var(--g5s); stroke: var(--panel); stroke-width: 2 }
.g5bar { fill: var(--g5ss) } .g5bar.last { fill: var(--g5s) } .g5bar.hi { fill: var(--gold-bg, var(--gold)) }
.g5none { stroke: var(--line2); stroke-width: 2; stroke-dasharray: 3 3 }
.g5hit { fill: transparent; cursor: crosshair }
.g5xh { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; pointer-events: none }
.g5grow { transform-box: fill-box; transform-origin: bottom; animation: g5grow .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms) }
.g5growx { transform-origin: left; animation: g5growx .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms) }
@keyframes g5grow { from { transform: scaleY(0) } } @keyframes g5growx { from { transform: scaleX(0) } }
.g5chw { width: 100%; min-height: 150px }
.g5cn { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted) } .g5cn b { color: var(--fg); font-weight: 700 }

/* 가로 막대 (오늘 수업 · 회원권 종류) */
.g5hb { display: flex; flex-direction: column; gap: 4px; width: 100% }
.g5hr { display: flex; align-items: center; gap: 10px; min-height: 30px; border-radius: 8px; padding: 0 4px } .g5hr.on, .g5hr:hover { background: var(--raise) }
.g5hl { width: 92px; flex: none; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.g5tk { flex: 1; height: 14px; position: relative; min-width: 0 }
.g5tk u, .g5tk i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; text-decoration: none } .g5tk u { right: 0; background: var(--raise) } .g5hr.on .g5tk u, .g5hr:hover .g5tk u { background: var(--line) }
.g5tk i { background: var(--g5s) } .g5tk i.full { background: var(--coral) }
.g5hval { width: 58px; flex: none; text-align: right; font: 800 16px var(--num); white-space: nowrap } .g5hval small { font: 600 11.5px var(--body); color: var(--muted); margin-left: 1px }
.g5lg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted) }
.g5lg i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px }
.g5lg i.g5s { background: var(--g5s) } .g5lg i.full { background: var(--coral) } .g5lg i.left { background: var(--raise); box-shadow: inset 0 0 0 1px var(--line) }
.g5lg i.k0 { background: var(--g5h0) } .g5lg i.k2 { background: var(--g5h2) } .g5lg i.k4 { background: var(--g5h4) } .g5lg i.none { border: 1px dashed var(--line2) }

/* 🎉 PR 숫자 두 개 + 8주 막대 */
.g5st { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; width: 100% } .g5st > div:not(.g5stc) { display: flex; flex-direction: column }
.g5st b { font: 800 32px/1 var(--num) } .g5st small { color: var(--muted); font-size: 12.5px }
.g5stc { flex: 1; min-width: 120px; display: flex; justify-content: flex-end } .g5stc .g5sp { width: 100%; max-width: 220px }

/* 🕐 요일 × 시간 색칸 (파랑 한 색 5단계 · 숫자는 올리거나 누르면) */
.g5heat { display: grid; grid-template-columns: 46px repeat(7, minmax(0, 1fr)); gap: 3px; width: 100%; font-size: 12px }
.g5hd { text-align: center; color: var(--muted); font-weight: 700 }
.g5hr2 { text-align: right; padding-right: 4px; white-space: nowrap; font: 700 12.5px var(--num); color: var(--fg); align-self: center }
.g5cell { height: 26px; border-radius: 5px; display: grid; place-items: center; font: 800 12px var(--num); color: transparent; cursor: default; outline: 0 }
.g5cell.k0 { background: var(--g5h0) } .g5cell.k1 { background: var(--g5h1) } .g5cell.k2 { background: var(--g5h2) } .g5cell.k3 { background: var(--g5h3) } .g5cell.k4 { background: var(--g5h4) }
.g5cell.none { background: transparent; border: 1px dashed var(--line) }
.g5cell:hover, .g5cell:focus-visible, .g5cell.on { box-shadow: 0 0 0 2px var(--fg); color: var(--g5hf) } .g5cell:is(.k3, .k4):is(:hover, :focus-visible, .on) { color: var(--g5hk) }
.g5ov .g5cell { color: var(--g5hf); height: 34px; font-size: 13px } .g5ov .g5cell.k3, .g5ov .g5cell.k4 { color: var(--g5hk) }

/* 펼친 큰 그래프 + 표 */
.g5ov { position: fixed; inset: 0; z-index: 60; background: rgba(5,6,8,.72); display: flex; align-items: center; justify-content: center; padding: 24px }
.g5ov[hidden] { display: none }
.g5box { width: min(960px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 20px; padding: 18px 24px 22px; animation: g5in .32s cubic-bezier(.16,1,.3,1) both; overscroll-behavior: contain }
@keyframes g5in { from { opacity: 0; transform: translateY(16px) scale(.98) } }
.g5oh { display: flex; align-items: center; gap: 10px; margin-bottom: 6px } .g5oh h3 { margin: 0; flex: 1; min-width: 0; font-size: 20px }
.g5oh .btn { min-height: 44px; flex: none }
.g5oc { margin: 0 0 12px; font-size: 12.5px; color: var(--muted) }
.g5obc { width: 100% }
.g5tw { overflow-x: auto; margin-top: 14px }
.g5tw table { width: 100%; border-collapse: collapse; font-size: 13px }
.g5tw th, .g5tw td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap } .g5tw th { color: var(--muted); font-weight: 700 }
.g5tw td.n, .g5tw th.n { text-align: right } .g5tw td.n { font: 800 14px var(--num) }
html.g5lock { overflow: hidden }
@media (max-width: 719px) {
  .g5ov { padding: 0; align-items: flex-end }
  .g5box { border-radius: 20px 20px 0 0; max-height: 88vh; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)) }
  .g5oh h3 { font-size: 17px }
}
@media (max-width: 400px) { .g5hl { width: 70px } .g5heat { grid-template-columns: 38px repeat(7, minmax(0, 1fr)); gap: 2px } .g5hr2 { font-size: 11.5px; padding-right: 2px } .g5sp { width: 48% } }
@media (prefers-reduced-motion: reduce) { .g5grow, .g5growx, .g5box { animation: none } .g5click { transition: none } .g5click:hover { transform: none } }

/* 밝은 모드: 파랑을 진하게 (흰 판 위 3:1 넘게) · 색칸은 옅은 파랑 → 진한 파랑 · 진한 두 칸은 흰 글자 */
:root[data-theme="light"] { --g5s: #2F63C0; --g5ss: #A9C0E6; --g5h0: #E6EDF8; --g5h1: #C2D3EF; --g5h2: #8DADE2; --g5h3: #5682D0; --g5h4: #2F63C0; --g5hk: #FFFFFF; --g5hf: #16171B }
:root[data-theme="light"] .g5ov { background: rgba(22,23,27,.38) }
:root[data-theme="light"] .g5box { box-shadow: 0 30px 80px rgba(22,23,27,.25) }
:root[data-theme="light"] .g5no { color: #FFFFFF }
