/* ===== 고래 · 경제 일정 · 뉴스 · 호가·체결 패널 (js/feeds.js) ===== */
.panel[data-p="whale"] .seg button, .panel[data-p="econ"] .seg button, .panel[data-p="news"] .seg button { padding: 3px 7px; }
.fd { font-size: var(--fs-sm); }
.fd .empty { padding: 28px 16px; text-align: center; color: var(--text-3); line-height: 1.6; }
.fd .empty.sm { padding: 10px 12px; text-align: left; font-size: var(--fs-xs); }
.fd .empty .btn { margin-top: 8px; }
.fd .note { margin: 10px 12px 16px; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.55; }
.fd-stamp { padding: 2px 12px 8px; font-size: var(--fs-xs); color: var(--text-3); }
.fd-card { margin: 0 10px 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: var(--r); background: var(--win-2); }
.fd-ct { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fd-ct b { font-size: var(--fs); }
.fd-ct .dim { font-size: var(--fs-xs); }
.fd-ratio { display: flex; align-items: center; gap: 6px; margin: 9px 0 8px; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.fd-ratio i { flex: 1; height: 6px; border-radius: 3px; background: var(--down); overflow: hidden; }
.fd-ratio i b { display: block; height: 100%; background: var(--up); }
.fd-kv { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 8px; font-size: var(--fs-xs); color: var(--text-2); align-items: baseline; }
.fd-kv b { text-align: right; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.fd-kv b.up { color: var(--up); }
.fd-kv b.down { color: var(--down); }
.fd-cols, .fd-row { display: grid; align-items: center; gap: 6px; padding: 0 12px; }
.fd-cols { height: 24px; font-size: var(--fs-xs); color: var(--text-3); border-bottom: 1px solid var(--line); }
.fd-row { min-height: 40px; color: inherit; text-decoration: none; cursor: pointer; position: relative; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.fd-row:hover, .fd-row:focus-visible { background: var(--hover); outline: none; }
.fd-w5 { grid-template-columns: minmax(0, 1.25fr) 40px 56px 64px 58px; }
.fd-w4 { grid-template-columns: minmax(0, 1fr) 58px 58px 58px; }
.fd-cols span:not(:first-child), .fd-row > span:not(:first-child) { text-align: right; }
.fd-w5 > span:nth-child(2) { text-align: center !important; }
.fd-who { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-family: var(--mono); font-size: var(--fs-xs); line-height: 1.3; overflow: hidden; white-space: nowrap; }
.fd-who small { font-family: var(--font); font-weight: 500; font-size: 10px; font-variant-numeric: tabular-nums; }
.fd-side { font-weight: 700; font-size: var(--fs-xs); display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.fd-side small { font-weight: 500; font-size: 10px; color: var(--text-3); }
.fd-row .num, .fd-tr .num { font-variant-numeric: tabular-nums; font-size: var(--fs-xs); }
.fd-mini { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--down-bg); border-radius: 2px; overflow: hidden; }
.fd-mini b { display: block; height: 100%; background: color-mix(in srgb, var(--up) 70%, transparent); }
.fd-trader { margin: 0 10px 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r); }
.fd-trader.open { border-color: var(--line-2); background: var(--win-2); }
.fd-tr-h { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; cursor: pointer; }
.fd-tr-h:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
.fd-tr-h .num { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.fd-tr-h .num small { font-weight: 500; font-size: 10px; }
.fd-rank { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--win-2); font-size: 10px; font-weight: 700; color: var(--text-2); }
.fd-trader:nth-child(-n+4) .fd-rank { background: var(--brand-bg); color: var(--brand-2); }
.fd-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; align-items: center; font-size: 10px; }
.fd-chip { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--win-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.fd-chip.up { color: var(--up); border-color: color-mix(in srgb, var(--up) 35%, transparent); }
.fd-chip.down { color: var(--down); border-color: color-mix(in srgb, var(--down) 35%, transparent); }
.fd-chip:hover { background: var(--hover); }
.fd-link { display: inline-block; margin-top: 8px; font-size: var(--fs-xs); color: var(--brand-2); }
.fd-ev { display: grid; grid-template-columns: 38px 58px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 6px 12px; font-size: var(--fs-xs); cursor: pointer; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.fd-ev:hover, .fd-ev:focus-visible { background: var(--hover); outline: none; }
.fd-evt { color: var(--text-3); font-variant-numeric: tabular-nums; }
.fd-evk { font-weight: 700; font-size: 10px; padding: 1px 5px; border-radius: 3px; text-align: center; background: var(--win-2); color: var(--text-2); }
.fd-evk.k-open, .fd-evk.k-add { color: var(--brand-2); background: var(--brand-bg); }
.fd-evk.k-flip { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.fd-evb { display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.fd-ev .fd-who { font-size: 10px; }
.fd-when { margin: 6px 0 2px; font-size: var(--fs-xs); color: var(--text-2); }
.fd-when b { color: var(--warn); margin-left: 4px; }
.fd-sub { margin: 10px 0 5px; font-size: var(--fs-xs); color: var(--text-2); font-weight: 600; }
.fd-sub .dim { font-weight: 500; margin-left: 4px; }
.fd-prob { display: grid; grid-template-columns: minmax(0, 1fr) 70px 36px; gap: 8px; align-items: center; font-size: var(--fs-xs); margin: 3px 0; color: var(--text-2); }
.fd-prob i { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.fd-prob i b { display: block; height: 100%; background: var(--text-3); }
.fd-prob.top { color: var(--text); font-weight: 700; }
.fd-prob.top i b { background: var(--brand-2); }
.fd-prob .num { text-align: right; font-variant-numeric: tabular-nums; }
.fd-past { margin-top: 8px; font-size: var(--fs-xs); }
.fd-past summary { cursor: pointer; color: var(--text-3); }
.fd-pr { display: grid; grid-template-columns: 62px minmax(0, 1fr) 56px 56px; gap: 6px; padding: 3px 0; }
.fd-pr span:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.fd-day { position: sticky; top: 0; z-index: 1; padding: 6px 12px; font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); background: var(--win); border-bottom: 1px solid var(--line); }
.fd-wk { display: grid; grid-template-columns: 38px 22px minmax(0, 1fr); gap: 2px 6px; padding: 7px 12px; align-items: baseline; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.fd-wk.past { opacity: .55; }
.fd-wk > .num { font-variant-numeric: tabular-nums; font-size: var(--fs-xs); color: var(--text-2); }
.fd-imp { font-size: 7px; letter-spacing: -1px; color: var(--warn); }
.fd-imp.i2 { color: var(--text-3); }
.fd-wt { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-wv { grid-column: 3; display: flex; gap: 8px; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.fd-wv:empty { display: none; }
.fd-news { padding: 9px 12px 9px 14px; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); position: relative; }
.fd-news a { color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.45; display: block; word-break: keep-all; overflow-wrap: anywhere; }
.fd-news a:hover { color: var(--brand-2); }
.fd-news a:visited { color: var(--text-2); }
.fd-news.fresh::before { content: ""; position: absolute; left: 5px; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); }
.fd-nm { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 5px; font-size: var(--fs-xs); }
.fd-nm .num { color: var(--text-3); font-variant-numeric: tabular-nums; }
.fd-tag { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--text-2); font-variant-numeric: tabular-nums; }
.fd-tag:hover { background: var(--hover); color: var(--text); }
.fd-tag b { font-weight: 600; }
.fd-tag b.up { color: var(--up); }
.fd-tag b.down { color: var(--down); }
.fd-th { display: flex; align-items: center; gap: 4px; padding: 0 12px 6px; font-size: var(--fs-xs); color: var(--text-2); font-weight: 600; }
.fd-th .sp, .fd-subrow .sp { flex: 1; }
.fd-th b { font-variant-numeric: tabular-nums; }
.fd-th b.warn { color: var(--warn); }
.fd .fd-sub { margin: 10px 12px 4px; }
.fd .fd-card .fd-sub { margin: 10px 0 5px; }
.fd-subrow { display: flex; align-items: center; gap: 6px; }
.fd-subrow select { height: 24px; font-size: var(--fs-xs); padding: 0 4px; width: auto; }
.fd-trs { font-size: var(--fs-xs); }
.fd-tr { display: grid; grid-template-columns: 62px 1fr 64px; gap: 6px; padding: 1px 12px; height: 19px; align-items: center; }
.fd-tr span:not(:first-child) { text-align: right; }
.fd-tr span:first-child { color: var(--text-3); }
.fd-tr.up span:nth-child(2) { color: var(--up); }
.fd-tr.down span:nth-child(2) { color: var(--down); }
.fd-tr.big { font-weight: 700; }
.fd-tr.big.up { background: var(--up-bg); }
.fd-tr.big.down { background: var(--down-bg); }
.fd-trs.big .fd-tr { height: 21px; }
.fd-w5 { grid-template-columns: minmax(0, 1fr) 84px 62px 58px; }
.fd-w5 > span:nth-child(2) { text-align: right !important; }
.fd-pos { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; font-variant-numeric: tabular-nums; }
.fd-pos b { font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.fd-pos small { font-size: 10px; color: var(--text-3); white-space: nowrap; }
.fd-ev { grid-template-columns: 38px 58px minmax(0, 1fr); row-gap: 2px; }
.fd-evb b.num { margin-left: 2px; }
.fd-evs { grid-column: 3; font-size: 10px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* 주식 · 원자재 아이콘: 둥근 네모에 한글 첫 글자 */
.ci.tf { border-radius: 28%; background: color-mix(in srgb, var(--brand-2) 22%, var(--win-2)); }
.ci.tf::before { color: var(--text); font-size: 11px; font-weight: 800; }

/* 종목 목록 묶음 (market.js) */
.wl-sec { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; position: sticky; top: 0; z-index: 2; background: var(--win-2); border-bottom: 1px solid var(--line); cursor: pointer; font-size: var(--fs-sm); user-select: none; }
.wl-sec:hover { background: color-mix(in srgb, var(--win-2) 70%, var(--hover)); }
.wl-sec:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; }
.wl-sec b { font-weight: 700; }
.wl-sec .n { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: var(--fs-xs); }
.wl-sec .d { color: var(--text-3); font-size: 10px; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wl-sec .wl-chev { width: 14px; height: 14px; color: var(--text-3); transition: transform .15s; flex: none; }
.wl-sec.fold .wl-chev { transform: rotate(-90deg); }
.wl-none { padding: 12px 14px; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }
.wl-row { content-visibility: auto; contain-intrinsic-size: auto 42px; }
.wl-row .tag.ko { background: color-mix(in srgb, var(--brand-2) 16%, transparent); color: var(--brand-2); }
.wl-row .x.pin { color: var(--text-3); }
.wl-row .x.pin:hover { color: var(--warn); background: var(--hover); }
.wl-idx .ci.ix { border-radius: 28%; background: var(--win-2); border: 1px solid var(--line-2); }
.wl-foot { flex: none; height: 26px; display: flex; align-items: center; padding: 0 12px; font-size: var(--fs-xs); color: var(--text-3); border-top: 1px solid var(--line); }
.ix-pop { padding: 12px 14px; width: 296px; }
.ix-h { display: flex; align-items: baseline; gap: 6px; }
.ix-v { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 8px; }
.ix-v b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ix-spark { display: block; background: var(--win-2); border-radius: 6px; }
.ix-rng { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); margin-top: 3px; font-variant-numeric: tabular-nums; }
.ix-empty { padding: 18px 10px; text-align: center; font-size: var(--fs-xs); color: var(--text-3); background: var(--win-2); border-radius: 6px; }
.ix-note { margin: 8px 0 4px; font-size: 10px; color: var(--text-3); line-height: 1.5; }
.ix-pop .btn { margin-top: 6px; }

.wl-sec b { white-space: nowrap; }
.wl-row .sub .lb { color: var(--text-2); }
.wl-row .sub .lb.ko { color: color-mix(in srgb, var(--brand-2) 80%, var(--text)); }

.fd-w5 { grid-template-columns: minmax(78px, 1fr) 80px 60px 56px; }
.fd-who, .fd-evs { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }
.fd-stamp .nw { white-space: nowrap; }
.fd-late { color: var(--warn); font-weight: 600; white-space: nowrap; }
.fd-trh { color: var(--text-3); height: 18px; font-size: 10.5px; }
.fd-trh span { color: var(--text-3) !important; }
.fd-chips .dim { white-space: nowrap; }
.fd-w5 { grid-template-columns: minmax(64px, 1fr) 72px 56px 56px; gap: 4px; padding: 0 10px; }
.fd-w5 .num { font-size: 10.5px; letter-spacing: -.2px; }
