/* 퀀트 연구 탭 — R6 구성(TradingView 기술적 분석 참고): 반원 게이지 3개 + 표(지표·값·상태). Toss 스타일(플랫·답 먼저),
   색은 Karrot 중립 + 오렌지는 구독 버튼 하나. 상태는 색 글자(칩 아님), 등락 관례색(빨강 높음·상승 / 파랑 낮음·하락). */
#ql-host { padding: 0 0 24px; }
.ql-pad { padding: 16px 20px; }
.ql-note, .ql-disc { font-size: 12px; color: var(--tk-sub, #868b94); margin-top: 6px; line-height: 1.5; }
.ql-disc { padding: 10px 20px 0; }
.ql-empty { font-size: 14px; color: var(--tk-sub, #868b94); margin-top: 10px; }

/* 지수 드롭다운 줄 */
.ql-dd { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--tk-line, #eaebee); }
.ql-dd-btn { border: 0; background: none; font-size: 16px; font-weight: 700; color: #212124; padding: 4px 0; }

/* 지수 고르기 메뉴 — 누른 버튼 바로 아래. 위쪽에서 살짝 커지며 나타난다(150ms). 바깥은 투명하게 막아 누르면 닫힘 */
.ql-menu { position: fixed; inset: 0; z-index: 1000; }
.ql-menu-dim { position: absolute; inset: 0; background: transparent; }
.ql-menu-box { position: absolute; width: 220px; background: var(--tk-bg, #fff); border: 1px solid var(--tk-line, #eaebee); border-radius: 14px; padding: 6px; transform-origin: top left; animation: ql-menu-in 150ms ease-out both; }
.ql-menu-row { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; border-radius: 10px; padding: 10px 10px; text-align: left; color: #212124; }
.ql-menu-row:active { background: var(--tk-surface, #f2f3f6); }
.ql-menu-t { flex: 1; display: flex; flex-direction: column; }
.ql-menu-t b { font-size: 15px; font-weight: 500; }
.ql-menu-row.on .ql-menu-t b { font-weight: 700; }
.ql-menu-t small { font-size: 12px; color: var(--tk-sub, #868b94); margin-top: 2px; }
.ql-menu-row i { font-style: normal; }

/* 반원 게이지 3개 — 0에서 차오른다(stroke-dasharray, 400ms) */
.ql-arcs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 16px 14px 6px; text-align: center; }
.ql-arcs svg { width: 100%; height: 52px; }
.ql-arc-bg { fill: none; stroke: #eaebee; stroke-width: 8; }
.ql-arc { fill: none; stroke: #212124; stroke-width: 8; animation: ql-arc 400ms ease-out both; }
.ql-arc.is-muted { stroke: #b0b5bd; }
.ql-arcs small { display: block; font-size: 11px; color: var(--tk-sub, #868b94); margin-top: 4px; }
.ql-arcs b { display: block; font-size: 13px; margin-top: 2px; word-break: keep-all; }

/* 표 — 지표 · 값 · 상태 */
.ql-sec { padding: 16px 20px; }
.ql-tbl { width: calc(100% - 40px); margin: 14px 20px 0; border-collapse: collapse; font-size: 14px; }
.ql-tbl caption { text-align: left; font-size: 16px; font-weight: 700; padding: 8px 0 6px; }
.ql-tbl th { text-align: left; font-weight: 400; font-size: 11px; color: var(--tk-sub, #868b94); padding: 6px 0; border-bottom: 1px solid var(--tk-line, #eaebee); }
.ql-tbl td { padding: 10px 0; border-bottom: 1px solid var(--tk-line, #eaebee); vertical-align: top; }
.ql-tbl th:nth-child(2), .ql-tbl td:nth-child(2) { text-align: right; padding-left: 8px; }
.ql-tbl th:last-child, .ql-tbl td:last-child { text-align: right; padding-left: 12px; white-space: nowrap; width: 1%; }
.ql-st { font-size: 13px; font-weight: 600; }
.ql-st.hi { color: #e42939; } .ql-st.lo { color: #1b64da; } .ql-st.mid { color: var(--tk-sub, #868b94); }

/* 잠금(비구독자) */
.ql-lock { position: relative; min-height: 420px; }
.ql-blur { filter: blur(4px); pointer-events: none; user-select: none; padding: 0 20px; }
.ql-fake { height: 14px; margin-top: 14px; border-radius: 6px; background: #e5e8eb; }
.ql-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 0 20px; }
.ql-cta-t { font-size: 16px; font-weight: 700; }
.ql-btn { background: #ff6f0f; color: #fff; border: 0; border-radius: 12px; padding: 12px 20px; font-size: 15px; font-weight: 700; }

/* 로딩 → 내용: 스켈레톤 후 페이드(200ms) */
.ql-skel { height: 140px; background: linear-gradient(90deg, #f2f3f6 25%, #e5e8eb 50%, #f2f3f6 75%); background-size: 200% 100%; animation: ql-shim 1.2s linear infinite; }
.ql-skel-top { height: 72px; margin: 12px 20px; border-radius: 16px; }
.ql-in { animation: ql-fade 200ms ease-out both; }
@keyframes ql-arc { from { stroke-dasharray: 0 100; } }
@keyframes ql-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ql-menu-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ql-shim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ql-in, .ql-skel, .ql-menu-box, .ql-arc { animation: none; } }
