/* 종목 드로어(옆 패널) 공용 스타일 — /select · /today (2026-09-14). 드로어 내부 기본 요소는 .drawer 스코프로 정의(desk.css/today.css 전역과 충돌 방지) */
.drawer-bd{position:fixed;inset:0;background:#142c3b66;z-index:60}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(640px,100vw);background:#fffdf8;border-left:1px solid #d9d3c7;box-shadow:-12px 0 30px #0002;z-index:61;display:flex;flex-direction:column;font-variant-numeric:tabular-nums;font-size:14px;color:#1f2937;line-height:1.5}
.drawer *{box-sizing:border-box}
.drawer-h{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid #ece7db;background:#faf8f3;flex-wrap:wrap}
.drawer-h .nm{font-size:19px;font-weight:800}.drawer-h .nm small{font-size:12px;font-weight:400;color:#626e73;margin-left:6px}
.drawer-h .x{margin-left:auto;font-size:13px;padding:5px 10px;border:1px solid #dddcd4;border-radius:8px;background:#fff;cursor:pointer}
.drawer-b{overflow:auto;padding:12px 16px 30px;flex:1}
.drawer-b h4{margin:14px 0 6px;font-size:13px;color:#8e692b;letter-spacing:.3px}
.drawer-b h4:first-child{margin-top:4px}
.drawer-b ul{margin:0;padding-left:18px;font-size:13px;line-height:1.55}
.drawer .q-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:0 0 10px}
.drawer .q-strip article{border:1px solid #dddcd4;border-radius:10px;background:#fff;padding:8px 10px;min-width:0}
.drawer .q-strip .lab{font-size:11px;color:#626e73;font-weight:700}.drawer .q-strip .val{font-size:17px;font-weight:800;margin-top:2px;line-height:1.2}.drawer .q-strip .sub{font-size:11px;color:#626e73}
.drawer .chart{width:100%;height:auto;display:block;background:#fff;border:1px solid #ece7db;border-radius:10px}
.drawer .chart-legend{font-size:11.5px;color:#626e73;margin:4px 0 0;display:flex;gap:12px;flex-wrap:wrap}
.drawer .chart-legend i{display:inline-block;width:14px;height:0;border-top:2px solid;vertical-align:middle;margin-right:4px}
.drawer .links{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.drawer .links a{font-size:12px;border:1px solid #dddcd4;border-radius:8px;padding:4px 9px;text-decoration:none;background:#fff;color:inherit}
.drawer .up{color:#c0392b}.drawer .dn{color:#1f5fa8}.drawer .flat{color:#666}.drawer .pos{color:#c0392b}.drawer .neg{color:#1f5fa8}
.drawer .badge{display:inline-block;font-size:11px;font-weight:700;border-radius:5px;padding:2px 7px;background:#eef1f4;color:#33414f;vertical-align:middle}
.drawer .badge.st-active{background:#0f1a2a;color:#fff}.drawer .badge.st-wait{background:#e6eef7;color:#1f4f82}.drawer .badge.st-closed{background:#e7e7e7;color:#444}.drawer .badge.st-dropped{background:#f2ece0;color:#7a5a25}.drawer .badge.st-screen{background:#eee;color:#555}
.drawer .badge.cls{background:#f5ecd8;color:#6b4f1d}.drawer .badge.warn{background:#fdecea;color:#a3322e}
.drawer .gates{display:inline-flex;gap:4px;vertical-align:middle}.drawer .gates span{font-size:11px;font-weight:700;border-radius:4px;padding:2px 6px;background:#eef1f4;color:#33414f}
.drawer .gates span.ok{background:#e4f1e6;color:#1e5a2b}.drawer .gates span.no{background:#fdecea;color:#a3322e}.drawer .gates span.na{background:#f1f1f1;color:#888}
.drawer .hz{display:inline-flex;gap:3px;flex-wrap:wrap}.drawer .hz span{font-size:11.5px;border:1px solid #e3ded2;border-radius:5px;padding:1px 6px;background:#fff}.drawer .hz span.pend{color:#9a9a9a;border-style:dashed}
.drawer .kv{display:grid;grid-template-columns:max-content 1fr;gap:3px 12px;font-size:12.5px}.drawer .kv b{color:#626e73;font-weight:600}
.drawer .ev{border-bottom:1px solid #efeee7;padding:7px 0;font-size:13px}.drawer .ev:last-child{border:0}.drawer .ev .m{font-size:11.5px;color:#626e73}.drawer .ev a{font-size:12px}
.drawer table.tl{width:100%;border-collapse:collapse;font-size:12.5px}.drawer table.tl th,.drawer table.tl td{border-bottom:1px solid #efeee7;padding:5px 6px;text-align:right;white-space:nowrap}
.drawer table.tl th{color:#626e73;font-weight:600;font-size:11.5px}.drawer table.tl td:first-child,.drawer table.tl th:first-child{text-align:left}.drawer .tl-wrap{overflow-x:auto}
.drawer .sc-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px;margin:6px 0}.drawer .sc-body .full{grid-column:1/-1}.drawer .sc-body h4{margin:0 0 6px}
.drawer .sc-note{background:#fcf8ef;border:1px solid #e9dcc0;border-radius:10px;padding:10px 12px;font-size:13.5px;line-height:1.6;white-space:pre-wrap}
.drawer .sel-skel,.drawer .empty{border:1px dashed #dddcd4;border-radius:12px;padding:30px;text-align:center;color:#626e73;background:#fff9ee}
.drawer .err{color:#a3322e}
body.drawer-open{overflow:hidden}
@media(max-width:700px){.drawer{width:100vw}.drawer .sc-body{grid-template-columns:1fr}}

/* 인터랙티브 차트(klinecharts) */
.drawer .kl{height:420px;border:1px solid #ece7db;border-radius:10px;background:#fff;overflow:hidden}
.drawer .kl-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:12px 0 6px;font-size:12.5px}.drawer .kl-bar .kl-t{font-weight:800;color:#8e692b;font-size:13px;margin-right:4px}
.drawer .kl-bar button{border:1px solid #cfc7b8;background:#f7f3ea;border-radius:7px;padding:4px 10px;font-size:12px;font-weight:700;cursor:pointer}.drawer .kl-bar button[aria-pressed="true"]{background:#0f1a2a;color:#fff;border-color:#0f1a2a}
.drawer .kl-s{margin-left:auto;font-size:11px;color:#777}.drawer .kl-c{font-size:11.5px;color:#666;margin:6px 0 4px}.drawer .kl-c span{border-bottom:1px dotted #5483a6;cursor:help}
@media(max-width:700px){.drawer .kl{height:340px}}
