/* 옴니사이트 앱 — 실시간 수급(유동성). 색·글자 크기는 app.css 의 변수와 부품을 따른다. */
.neg { color: var(--red); } .pos { color: var(--green); } .flat { color: var(--muted); }
.fl-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-left: 7px; vertical-align: 2px; }
.fl-dot.down { background: var(--red); } .fl-dot.up { background: var(--green); }
.ev-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--panel2); color: var(--muted); }
.ev-ic.neg { background: rgba(255,107,107,.14); color: var(--red); } .ev-ic.pos { background: rgba(61,220,151,.14); color: var(--green); }

/* 15분 칸 띠 */
.cells { display: inline-flex; gap: 2px; align-items: flex-end; flex: none; }
.cells i { position: relative; width: 7px; height: 14px; border-radius: 2px; background: #232a35; }
.cells .c-U { background: var(--green); } .cells .c-u { background: rgba(61,220,151,.38); }
.cells .c-D { background: var(--red); } .cells .c-d { background: rgba(255,107,107,.42); }
.cells .has-ev::after, .tl-lg .has-ev::after { content: ''; position: absolute; left: 50%; top: -6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gold); }

/* 목록 */
.flow-strip { display: flex; align-items: center; gap: 10px; width: calc(100% - 24px); margin: 0 12px 10px; padding: 10px 12px; border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 12px; background: var(--panel); text-align: left; color: var(--muted); }
.fs-main { flex: 1; min-width: 0; display: block; }
.fs-top { display: block; font-size: 11.5px; color: var(--muted); } .fs-top b { color: var(--head); font-weight: 800; }
.fs-v { display: block; font-size: 14px; font-weight: 700; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-flow { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; }
.cf-v { font-weight: 700; flex: 1; } .cf-v.flat { color: var(--text); } .cf-t { color: var(--muted); font-variant-numeric: tabular-nums; }
.card-flow + .card-foot { margin-top: 8px; }

/* 차트 화면 */
.pane-tags { position: absolute; left: 10px; bottom: 30px; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 0; font-size: 10.5px; font-weight: 700; height: 26%; justify-content: space-between; }
.pt-oi { color: var(--blue); } .pt-liq { color: var(--muted); }
.flowbar { flex: none; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px 0 14px; border-top: 1px solid var(--border); font-size: 13px; text-align: left; color: var(--muted); }
.fb-k { font-size: 11px; font-weight: 700; } .fb-v { font-weight: 700; white-space: nowrap; } .fb-s { flex: 1; min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-variant-numeric: tabular-nums; }
.toast { position: absolute; left: 10px; right: 10px; top: calc(8px + var(--safe-t)); z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #1c232e; border: 1px solid #303a48; box-shadow: 0 10px 30px rgba(0,0,0,.5); text-align: left; }
.toast-go { color: var(--blue); font-size: 13px; font-weight: 700; padding-left: 6px; }
.sh-tabs { position: sticky; top: -4px; z-index: 4; display: flex; gap: 4px; margin: 0 -16px; padding: 10px 16px 8px; background: var(--panel); }
.sh-tab { height: 32px; padding: 0 14px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.sh-tab.is-on { background: var(--panel2); color: var(--head); }

/* 수급 탭: 지금 상황 */
.fl-now { margin-top: 6px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.fl-now-h { display: flex; align-items: center; gap: 10px; }
.fl-now-h b { display: block; font-size: 17px; font-weight: 800; } .fl-now-h b.flat { color: var(--head); }
.fl-now-h span { display: block; color: var(--muted); font-size: 11.5px; }
.fl-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.fl-chip { padding: 8px 10px; border-radius: 9px; background: var(--panel2); min-width: 0; }
.fl-chip em { display: block; font-style: normal; color: var(--muted); font-size: 11px; }
.fl-chip b { display: block; color: var(--head); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.fl-chip i { display: block; font-style: normal; color: var(--gold); font-size: 11px; }

/* 상황판 */
.quad { position: relative; height: 188px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background:
  linear-gradient(var(--border), var(--border)) 50% 0 / 1px 100% no-repeat, linear-gradient(var(--border), var(--border)) 0 50% / 100% 1px no-repeat, var(--bg); }
.qc { position: absolute; width: 50%; height: 50%; padding: 9px 11px; font-size: 12px; font-weight: 700; color: #4d5766; }
.qc.tl { left: 0; top: 0; } .qc.tr { right: 0; top: 0; text-align: right; } .qc.bl { left: 0; bottom: 0; display: flex; align-items: flex-end; } .qc.br { right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: flex-end; }
.qc.on.neg { background: rgba(255,107,107,.10); color: var(--red); } .qc.on.pos { background: rgba(61,220,151,.10); color: var(--green); }
.qa { position: absolute; font-size: 10px; color: #5b6573; white-space: nowrap; }
.qa.top { left: 50%; top: 4px; transform: translateX(-50%); } .qa.bot { left: 50%; bottom: 4px; transform: translateX(-50%); }
.qa.lef { left: 6px; top: 50%; transform: translateY(-140%); } .qa.rig { right: 6px; top: 50%; transform: translateY(-140%); }
.qd { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 5px; z-index: 2; }
.qd i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .55; }
.qd em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.qd.main i { width: 15px; height: 15px; opacity: 1; box-shadow: 0 0 0 4px rgba(255,107,107,.18); } .qd.main em { color: var(--head); font-size: 12px; }

/* 누가 밀고 있나 */
.seg { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.seg-b { height: 30px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-size: 12.5px; font-weight: 700; border: 1px solid var(--border); }
.seg-b.is-on { background: var(--head); border-color: var(--head); color: var(--bg); }
.seg-v { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--text); }
.seg.wide .seg-b { flex: 1; }
.pb-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: #5b6573; margin-bottom: 2px; }
.pb { margin-bottom: 11px; }
.pb-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.pb-h b { font-size: 13px; font-variant-numeric: tabular-nums; }
.pb-track { position: relative; height: 12px; border-radius: 6px; background: #1a202a; overflow: hidden; }
.pb-mid { position: absolute; left: 50%; top: 0; width: 1px; height: 100%; background: #4a5462; z-index: 2; }
.pb-fill { position: absolute; top: 0; height: 100%; } .pb-fill.neg { background: var(--red); border-radius: 6px 0 0 6px; } .pb-fill.pos { background: var(--green); border-radius: 0 6px 6px 0; }

/* 4시간 흐름 */
.tl { padding-top: 8px; }
.tl .cells { display: flex; gap: 3px; width: 100%; } .tl .cells i { flex: 1; height: 26px; border-radius: 4px; }
.tl-x { display: flex; justify-content: space-between; font-size: 10.5px; color: #5b6573; margin-top: 5px; }
.tl-lg { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 9px; font-size: 11.5px; color: var(--muted); }
.tl-lg span { display: inline-flex; align-items: center; gap: 5px; }
.tl-lg i { position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: #232a35; }
.tl-lg .c-U { background: var(--green); } .tl-lg .c-u { background: rgba(61,220,151,.38); } .tl-lg .c-D { background: var(--red); } .tl-lg .c-d { background: rgba(255,107,107,.42); }
.tl-lg .has-ev::after { top: 2px; }

/* 가격 사다리 */
.ladder { position: relative; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); font-variant-numeric: tabular-nums; overflow: hidden; }
.ld-axis { position: absolute; left: 84px; top: 0; bottom: 0; width: 2px; background: #232a35; }
.ld-row, .ld-zone, .ld-band { position: absolute; left: 0; right: 0; display: flex; align-items: center; }
.ld-row { height: 0; }
.ld-p { flex: none; width: 74px; text-align: right; font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.ld-n { font-size: 12px; font-weight: 700; margin-left: 10px; white-space: nowrap; }
.ld-row i { flex: none; width: 14px; height: 3px; margin-left: 4px; border-radius: 2px; }
.ld-row.stop i { background: var(--red); } .ld-row.stop .ld-n, .ld-row.stop .ld-p { color: var(--red); }
.ld-row.t1 i { background: var(--green); } .ld-row.t1 .ld-n, .ld-row.t1 .ld-p { color: var(--green); }
.ld-row.now i { width: 13px; height: 13px; margin-left: 4.5px; border-radius: 50%; background: var(--head); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--head); }
.ld-row.now .ld-n, .ld-row.now .ld-p { color: var(--head); }
.ld-zone i { flex: none; align-self: stretch; width: 14px; margin-left: 4px; border-radius: 3px; background: rgba(240,185,11,.30); border: 1px solid rgba(240,185,11,.75); }
.ld-zone .ld-n, .ld-zone .ld-p { color: var(--gold); }
.ld-band i { flex: none; align-self: stretch; margin-left: 11px; border-radius: 0 5px 5px 0; }
.ld-band.long i { background: rgba(255,107,107,.30); border-left: 2px solid var(--red); } .ld-band.long .ld-n { color: var(--red); }
.ld-band.short i { background: rgba(61,220,151,.26); border-left: 2px solid var(--green); } .ld-band.short .ld-n { color: var(--green); }
.ld-band .ld-n { font-weight: 600; }

/* 상황 보고 카드 */
.fl-ev { border: 1px solid var(--border); border-radius: 12px; padding: 12px 12px 4px; margin-bottom: 8px; background: var(--bg); }
#feed-cards .fl-ev { background: var(--panel); margin-bottom: 0; border-radius: 14px; }
.fl-ev-h { display: flex; align-items: center; gap: 10px; }
.fl-ev-m { flex: 1; min-width: 0; }
.fl-ev-t { display: block; color: var(--muted); font-size: 11.5px; } .fl-ev-t b { color: var(--head); font-weight: 800; }
.fl-ev-v { display: block; color: var(--head); font-size: 15px; }
.fl-ev-key { text-align: right; } .fl-ev-key em { display: block; font-style: normal; color: var(--muted); font-size: 11px; }
.fl-ev-key b { display: block; color: var(--head); font-size: 17px; font-variant-numeric: tabular-nums; }
.fl-ev .rp-list li { font-size: 13.5px; padding-bottom: 6px; line-height: 1.5; }
.fl-ev .card-foot { border-top: 1px solid var(--border); padding: 9px 0 8px; margin-top: 2px; }

/* 알림 설정 */
.al-wrap { padding: 0 16px 30px; }
.al-box { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.al-row { display: flex; align-items: center; gap: 11px; padding: 12px; border-top: 1px solid var(--border); } .al-row:first-child { border-top: 0; }
.al-t { flex: 1; min-width: 0; } .al-t b { display: block; color: var(--head); font-size: 14.5px; } .al-t span { display: block; color: var(--muted); font-size: 12px; }
.sw { flex: none; width: 44px; height: 26px; border-radius: 13px; background: #2a323e; position: relative; } .sw i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #8b949e; }
.sw.on { background: var(--green); } .sw.on i { left: 21px; background: #fff; }
.al-note { color: var(--muted); font-size: 12px; margin: 9px 2px 0; }

/* 실제 자료용 보강 */
.cells .c-n, .tl-lg .c-n { background: #161b24; }
.flow-strip.pos { border-left-color: var(--green); } .flow-strip.flat { border-left-color: var(--border); }
.pane-tags { left: 74px; bottom: 34px; height: auto; color: var(--muted); }
.fl-note { color: var(--muted); font-size: 12px; margin: 8px 2px 0; }
.fl-mini { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fl-mini b { color: var(--head); font-weight: 600; } .fl-mini b.neg { color: var(--red); } .fl-mini b.pos { color: var(--green); }
.qd.est i { background: transparent; border: 2px solid currentColor; opacity: .8; }
.qd.main.est i { box-shadow: none; }
.qd.pos.main i { box-shadow: 0 0 0 4px rgba(61,220,151,.18); } .qd.flat.main i { box-shadow: 0 0 0 4px rgba(139,148,158,.18); }
.ld-band .ld-p { font-size: 9.5px; letter-spacing: -.03em; white-space: nowrap; }
.ld-zone i { align-self: center; height: 22px; }
.fl-ev { margin-top: 0; } .fl-ev-h + .rp-list, .fl-ev-h + .fl-rep { margin-top: 10px; }
.fl-rep { color: var(--head); font-weight: 700; font-size: 14px; margin: 10px 0 6px; }
.fl-ev-view { color: var(--muted); font-size: 12.5px; padding: 0 0 10px; } .fl-ev-view.near { color: var(--gold); font-weight: 600; }
.fl-ev.is-hit { border-color: rgba(240,185,11,.6); }
#feed-cards .fl-ev[data-id]:not([data-id=""]) { cursor: pointer; }
.toast.pos { border-color: rgba(61,220,151,.35); } .toast.neg { border-color: rgba(255,107,107,.35); }
.toast { position: fixed; max-width: 500px; margin: 0 auto; }
.fs-near { display: block; font-size: 12px; color: var(--gold); font-weight: 600; }
.sw { border: 0; cursor: pointer; }
.al-btn { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--border); color: var(--head); font-size: 13px; font-weight: 700; }
.al-btn.primary { background: var(--head); border-color: var(--head); color: var(--bg); }
.al-btn:disabled { opacity: .5; }
#feed-view .top, #alerts-view .top { position: sticky; top: 0; z-index: 5; background: var(--bg); }
#feed-view .top-title, #alerts-view .top-title { flex: 1; }
.fl-chip b { white-space: normal; line-height: 1.3; }
.ld-band .ld-n { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ladder { padding-right: 8px; }
.ev-ic.flip svg { transform: scaleY(-1); }
