
        :root{
            --ac:#5b6da6; --ac-soft:color-mix(in srgb,var(--ac) 12%,transparent);
            --cmp:#9aa3ad;
            --bg-base:#f4f6f4; --card-bg:#fff; --card-border:#ececec;
            --text-main:#30303a; --text-sub:#5b6270; --track:#eef0f2; --stage:#f3f2f8;
        }
        *{margin:0;padding:0;box-sizing:border-box}
        a{color:inherit;text-decoration:none}
        button{font:inherit;color:inherit}
        body{min-height:100vh;background:var(--bg-base);color:var(--text-main);overflow-x:hidden;font-family:'Pretendard',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}
        .main-content{display:flex;flex-direction:column;align-items:center;padding:26px 18px 60px;width:100%}
        .container{width:100%;max-width:1100px}
        .page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:2px 0 16px}
        .page-head h1{font-size:21px;font-weight:800;letter-spacing:-.4px}
        .page-head p{font-size:13px;color:var(--text-sub);margin-top:4px}

        .layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:16px;align-items:start}
        .box{background:var(--card-bg);border:1px solid var(--card-border);border-radius:22px}

        /* ── 목록 ── */
        .roster{position:sticky;top:84px;padding:14px;display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 104px)}
        .seg{display:flex;background:var(--track);border-radius:11px;padding:3px}
        .seg button{flex:1;font-size:13px;font-weight:700;border:0;background:transparent;color:var(--text-sub);padding:7px 0;border-radius:8px;cursor:pointer}
        .seg button.on{background:var(--card-bg);color:var(--text-main);box-shadow:0 1px 3px rgba(0,0,0,.08)}
        .tools{display:flex;gap:6px}
        .search,.sortsel{height:36px;border:1px solid var(--card-border);background:var(--card-bg);color:inherit;border-radius:10px;font:inherit;font-size:13px;outline:none}
        .search{flex:1;min-width:0;padding:0 11px}
        .sortsel{padding:0 6px;font-weight:600;max-width:118px}
        .search:focus,.sortsel:focus{border-color:var(--ac)}
        .list{overflow-y:auto;display:flex;flex-direction:column;gap:2px;margin:0 -4px;padding:0 4px}
        .it{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:10px;padding:6px 8px;border:0;background:transparent;border-radius:12px;cursor:pointer;text-align:left}
        .it:hover{background:var(--track)}
        .it.on{background:var(--ac-soft)}
        .it img{width:40px;height:40px;border-radius:50%;background:var(--stage);object-fit:cover}
        .it .nm{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
        .it .sub{font-size:11px;color:var(--text-sub);font-weight:600;margin-top:1px}
        .it .val{font-size:13px;font-weight:800;color:var(--text-sub);min-width:22px;text-align:right}
        .it.on .nm{color:var(--ac)}
        .empty{padding:30px 0;text-align:center;color:var(--text-sub);font-size:13px}

        /* ── 상세 ── */
        .detail{overflow:hidden;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
        .stage{position:relative;background:var(--stage);display:flex;align-items:flex-start;justify-content:center;min-height:520px;padding:96px 16px 20px}
        .stage img{position:sticky;top:100px;width:100%;max-width:340px;height:auto;aspect-ratio:500/700;display:block;/*GRAY_CLS_CHAR*/filter:drop-shadow(0 16px 20px rgba(40,30,90,.18))}
        .stage .ttl{position:absolute;left:22px;top:20px;right:22px}
        .stage .ttl small{display:block;font-size:12.5px;font-weight:700;color:var(--text-sub)}
        .stage .ttl b{display:block;font-size:30px;font-weight:900;letter-spacing:-.7px;line-height:1.2}
        .stage .tag{display:inline-block;margin-top:6px;font-size:10.5px;font-weight:800;color:var(--ac);background:var(--ac-soft);padding:3px 8px;border-radius:999px}
        .nav2{position:absolute;right:14px;top:18px;display:flex;gap:6px}
        .nav2 button{width:34px;height:34px;border-radius:50%;border:1px solid var(--card-border);background:var(--card-bg);cursor:pointer;font-size:15px;line-height:1}
        .info{padding:22px 24px 24px;min-width:0}
        .sec{margin-bottom:20px}
        .sec:last-child{margin-bottom:0}
        .sh{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
        .sh h4{font-size:12.5px;font-weight:800;color:var(--text-sub);letter-spacing:.2px}
        .cmpsel{height:30px;border:1px solid var(--card-border);background:var(--card-bg);color:inherit;border-radius:8px;font:inherit;font-size:12px;font-weight:600;padding:0 6px;max-width:150px}

        .stats{display:flex;flex-direction:column;gap:11px}
        .srow{display:grid;grid-template-columns:62px 1fr 44px;align-items:center;gap:10px;font-size:13px;font-weight:700}
        .pips{display:grid;gap:4px}
        .pips i{height:12px;border-radius:4px;background:var(--track)}
        .pips i.f{background:var(--ac)}
        .pips i.c{box-shadow:inset 0 0 0 2px var(--cmp)}
        .srow b{text-align:right;font-size:15px}
        .srow b em{font-style:normal;font-size:11px;font-weight:800;margin-left:3px}
        .up{color:#1f9d6b}.dn{color:#e0565b}
        .total{display:flex;align-items:baseline;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid var(--card-border);font-size:12.5px;font-weight:700;color:var(--text-sub)}
        .total b{font-size:20px;color:var(--text-main)}
        .legend{display:flex;gap:12px;font-size:11px;font-weight:700;color:var(--text-sub);margin-top:8px}
        .legend span::before{content:"";display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:4px;vertical-align:-1px;background:var(--ac)}
        .legend span.c::before{background:transparent;box-shadow:inset 0 0 0 2px var(--cmp)}

        .ab{border:1px solid var(--card-border);border-radius:14px;padding:12px 14px}
        .ab li{list-style:none;font-size:13.5px;font-weight:600;line-height:1.6;padding-left:14px;position:relative}
        .ab li::before{content:"";position:absolute;left:0;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--ac)}
        .ab .bal{margin-top:8px;padding-top:8px;border-top:1px dashed var(--card-border);font-size:12.5px;color:var(--text-sub)}
        .ab .bal b{color:var(--text-main)}
        .mot{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
        .mot div{background:var(--track);border-radius:10px;padding:8px 4px;text-align:center}
        .mot span{display:block;font-size:10.5px;color:var(--text-sub);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
        .mot b{font-size:15px;font-weight:800}
        .mot small{font-size:10px;color:var(--text-sub);margin-left:1px}
        .prof{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:6px}
        .prof div{border:1px solid var(--card-border);border-radius:10px;padding:7px 10px}
        .prof span{display:block;font-size:10.5px;color:var(--text-sub);font-weight:700}
        .prof b{font-size:13px;font-weight:800}
        .cm{font-size:13px;line-height:1.75;color:var(--text-sub);white-space:pre-line}
        .src{font-size:11.5px;color:var(--text-sub);margin-top:16px}
        .src a{text-decoration:underline}

        @media(max-width:900px){
            .layout{grid-template-columns:minmax(0,1fr)}
            .layout>*{min-width:0}
            .roster{position:static;max-height:none}
            .list{flex-direction:row;overflow-x:auto;overflow-y:hidden;gap:4px;padding-bottom:4px}
            .it{grid-template-columns:1fr;justify-items:center;gap:4px;width:68px;flex-shrink:0;padding:6px 2px}
            .it img{width:48px;height:48px}
            .it .nm{font-size:12px;max-width:64px;text-align:center}
            .it .sub,.it .val{display:none}
        }
        @media(max-width:700px){
            .detail{grid-template-columns:1fr}
            .stage{min-height:460px;padding-top:86px}
            .stage img{max-width:260px}
            .mot{grid-template-columns:repeat(3,minmax(0,1fr))}
        }

/*GRAY_DARK*/
html[data-theme="dark"]{--bg-base:#171717;--card-bg:#26262b;--card-border:#34343b;--text-main:#e9eaf1;--text-sub:#9aa0b2;--track:#2f2f36;--stage:#202027;--cmp:#7c8290}
html[data-theme="dark"] .stage img{filter:drop-shadow(0 16px 20px rgba(0,0,0,.45))}
    /*GRAY_A11Y_CONTRAST*/#detail:empty{min-height:840px}@media(max-width:760px){#detail:empty{min-height:1400px}}