/* 화면별 스타일 */

/* 진입 관문 */
.gate { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (min-width: 900px) {
  .gate { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .gate-output { position: sticky; top: 64px; }
}
.gate-form { display: flex; flex-direction: column; gap: 14px; }
.more { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.more > summary { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.results { display: flex; flex-direction: column; gap: 14px; }

.verdict { padding: 12px 14px; border-radius: var(--r-sm); border-left: 4px solid var(--line-strong); background: var(--surface-2); }
.verdict-title { font-size: 17px; font-weight: 600; }
.verdict-ok { background: var(--ok-bg); border-left-color: var(--ok); }
.verdict-ok .verdict-title { color: var(--ok); }
.verdict-warn { background: var(--warn-bg); border-left-color: var(--warn); }
.verdict-warn .verdict-title { color: var(--warn); }
.verdict-bad { background: var(--bad-bg); border-left-color: var(--bad); }
.verdict-bad .verdict-title { color: var(--bad); }

.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rule { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: 0; }
.rule-icon {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--muted);
}
.rule-pass .rule-icon { background: var(--ok-bg); color: var(--ok); }
.rule-warn .rule-icon { background: var(--warn-bg); color: var(--warn); }
.rule-fail .rule-icon { background: var(--bad-bg); color: var(--bad); }
.rule-title { font-weight: 500; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rule-kind { font-size: 11px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; }
.rule-msg { overflow-wrap: anywhere; }
.record { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.record .field { width: 100%; }

/* 포지션 */
.pos { gap: 10px; }
.pos.is-example { border-style: dashed; }
.pos-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pos-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pos-pnl { font-weight: 600; font-size: 15px; }
.pos-pnl.gain { color: var(--ok); }
.pos-pnl.loss { color: var(--bad); }
.kvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px 24px; margin: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 13px; white-space: nowrap; }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.kv-bad dd { color: var(--bad); font-weight: 600; }
.price-row { max-width: 320px; }
.close-form { display: flex; flex-direction: column; gap: 12px; padding: 12px; background: var(--surface-2); border-radius: var(--r-sm); }

/* 일지 */
.note-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items: end; }
.note-form .btn { justify-self: start; }
.notes, .trades { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.notes > li, .trades > li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.notes > li:last-child, .trades > li:last-child { border-bottom: 0; }
.note-head, .trade-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.note-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.note-label { color: var(--muted); font-size: 13px; }
.trade.is-example { opacity: 0.85; }

/* 목록 끝의 "더 보기" 줄 — 거래가 아니므로 가로로 눕히고 조용하게 둡니다 */
.trades > li.trade-more, .notes > li.note-more {
  flex-direction: row; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; border-bottom: 0; padding-top: 10px;
}

/* 아직 안 닫은 거래는 왼쪽에 띠를 둘러 한눈에 가립니다 */
.trades > li.trade-live { border-left: 3px solid var(--warn); padding-left: 10px; }
.trade-times { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.trade-times > div { display: flex; gap: 8px; }
.trade-times .note-label { min-width: 30px; }

/* 거시지표 */
.macro-group { display: flex; flex-direction: column; gap: 4px; }
.macro-list { list-style: none; margin: 0; padding: 0; }
.macro-row {
  display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(130px, 0.8fr) minmax(0, 1.6fr);
  gap: 8px 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line);
}
.macro-name { display: flex; flex-direction: column; min-width: 0; }
.macro-val { display: flex; align-items: center; gap: 8px; }
.macro-val input { max-width: 150px; }
.macro-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.macro-meta input[type="date"] { width: auto; min-height: 34px; padding: 4px 8px; font-size: 13px; }
@media (max-width: 640px) {
  .macro-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .macro-meta { grid-column: 1 / -1; }
}
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.inline-form .btn { justify-self: start; }
.links { margin-top: 8px; }

/* 거래소 포지션 화면 */
.live-table td { vertical-align: top; }
.live-coin { font-weight: 600; }
.live-table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cell-warn { color: var(--warn); }
.cell-bad { color: var(--bad); font-weight: 600; }
.pnl-up { color: var(--ok); }
.pnl-down { color: var(--bad); }

/* 주소 입력 + 분석 단추 */
.addr-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.addr-bar input { flex: 1 1 320px; min-width: 0; font-size: 14px; }
.addr-bar .search { flex: 1 1 320px; }

/* 신호등 */
.lights { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.light { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.light-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--line-strong); }
.light-ok .light-dot { background: var(--ok); }
.light-warn .light-dot { background: var(--warn); }
.light-bad .light-dot { background: var(--bad); }
.light-label { font-weight: 500; }

/* 대시보드 */
.meter-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--fg); opacity: 0.55; }
.donut-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.legend { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.legend-dot { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.curve-wrap { margin-top: 12px; }
.curve { width: 100%; height: 140px; display: block; }

.rule-list { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }

/* 인텔리전스 카드 */
.intel-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.intel-sym { font-size: 20px; }
.intel-price { font-size: 18px; margin-top: 4px; }
.intel-grade { text-align: right; padding: 8px 14px; border-radius: var(--r-sm); min-width: 140px; }
.intel-grade-label { font-size: 20px; font-weight: 700; }
.intel-grade-ok { background: var(--ok-bg); color: var(--ok); }
.intel-grade-warn { background: var(--warn-bg); color: var(--warn); }
.intel-grade-bad { background: var(--bad-bg); color: var(--bad); }

/* 감정 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 3px 9px; border-radius: 2px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 12px; }
.chip-on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

.mini-input { width: 90px; min-height: 34px; padding: 4px 8px; }
/* 일지 머리줄: 왼쪽에 가려 보기, 오른쪽에 줄세우기와 찾기 — 한 줄에 모읍니다 */
.journal-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 12px; margin-bottom: 10px;
}
.journal-bar > .chips { flex: 1 1 320px; align-items: center; }
.journal-bar .bar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.journal-bar .bar-right .chips { align-items: center; }
.bar-label { white-space: nowrap; }
.chip-sm { padding: 2px 8px; font-size: 11px; }

/* 찾기 칸 — 오른쪽 끝에 작게. 좁아지면 한 줄을 다 씁니다 */
.find-box { width: 210px; }

@media (max-width: 760px) {
  .journal-bar .bar-right { width: 100%; justify-content: space-between; }
  .find-box { flex: 1 1 auto; width: auto; }
}

.row-on > td { background: var(--accent-soft); }

/* 가로 막대 */
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: minmax(70px, 22%) 1fr auto; gap: 10px; align-items: center; }
.bar-label { font-size: 13px; overflow-wrap: anywhere; }
.bar-track { position: relative; height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; min-width: 0; }
.bar-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; background: var(--accent); }
.bar-track-mid .bar-fill { border-radius: 4px; }
.bar-pos { background: var(--ok); }
.bar-neg { background: var(--bad); }
.bar-zero { position: absolute; left: 50%; top: -1px; bottom: -1px; width: 1px; background: var(--line-strong); }
.bar-value { font-size: 13px; white-space: nowrap; }
/* 주해는 막대 바로 밑에 붙입니다 (왼쪽 이름 칸 아래로 흘러내리지 않게) */
.bar-note { grid-column: 2 / -1; margin-top: -2px; line-height: 1.25; }
.bar-row:has(.bar-note) { row-gap: 1px; }
.bars > .bar-row + .bar-row { margin-top: 6px; }

/* 머리 숫자 */
.hero { margin-bottom: 12px; }
.hero-value { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.hero-sub { font-size: 13px; margin-top: 3px; }

/* 지갑별·체인별 합계 (접었다 펼 수 있게) */
.rollup { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.rollup + .rollup { margin-top: 8px; }
.rollup > summary { cursor: pointer; color: var(--muted); padding: 2px 0; }
.rollup[open] > summary { margin-bottom: 6px; }

/* ── 자산 지도 (treemap) ─────────────────────────────────────── */
.treemap-wrap { width: 100%; }
.treemap { width: 100%; height: clamp(240px, 34vw, 420px); display: block; }
.tm-cell rect { transition: opacity 0.12s ease; }
.tm-cell:hover rect { opacity: 1; }
.tm-label { font-size: 15px; font-weight: 700; fill: #fff; paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.35); stroke-width: 3px; }
.tm-value { font-size: 13px; fill: #fff; opacity: 0.95; paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.3); stroke-width: 3px; }
.tm-pct { font-size: 11px; fill: #fff; opacity: 0.8; }
.tm-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.tm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tm-key { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.tm-key-up { background: var(--s1); }
.tm-key-down { background: var(--bad); }
.tm-key-spot { background: var(--s3); }
.tm-key-mix { background: var(--s4); }

/* ── 꺾은선 + 면 (자산 곡선·낙폭) ──────────────────────────────
 * 눈금 글자는 svg 안이 아니라 HTML 로 얹습니다 — 그림은 가로로 늘여 쓰기 때문에
 * (preserveAspectRatio=none) 글자까지 같이 늘어나면 찌그러집니다. */
.linechart-wrap { width: 100%; }
.lc-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin: 14px 0 4px; min-height: 20px;
}
.lc-cap { font-size: 13px; font-weight: 600; }
.lc-tip { position: absolute; z-index: 3; pointer-events: none; display: grid; gap: 1px; padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 6px 18px rgba(10, 20, 40, .18);
  transform: translate(14px, -50%); transition: left .06s linear, top .06s linear; }
.lc-tip-left { transform: translate(calc(-100% - 14px), -50%); }
@media (prefers-reduced-motion: reduce) { .lc-tip { transition: none; } }
.lc-read-v { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; }
.lc-read-d { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* 세로 눈금이 들어갈 왼쪽 자리와 가로 눈금이 들어갈 아래 자리를 비워 둡니다 */
.lc-plot { position: relative; padding: 0 0 18px 58px; touch-action: pan-y; }
.linechart { width: 100%; display: block; }
.lc-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lc-y, .lc-x { position: absolute; pointer-events: none; }
.lc-y { left: 0; top: 0; bottom: 18px; width: 54px; }
.lc-x { left: 58px; right: 0; bottom: 0; height: 18px; }
.lc-tick {
  position: absolute; font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.lc-y .lc-tick { right: 0; transform: translateY(-50%); }
.lc-x .lc-tick { top: 2px; transform: translateX(-50%); }
.lc-x .lc-tick-first { transform: none; }
.lc-x .lc-tick-last { transform: translateX(-100%); }
/* 마우스를 댄 자리 */
.lc-cursor { stroke: var(--fg); stroke-width: 1; opacity: 0; vector-effect: non-scaling-stroke; }
.lc-hot { stroke: var(--card); stroke-width: 2; opacity: 0; }
.lc-hot.lc-ok { fill: var(--ok); }
.lc-hot.lc-bad { fill: var(--bad); }
.lc-zero { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.lc-line { stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.lc-line.lc-ok { stroke: var(--ok); }
.lc-line.lc-bad { stroke: var(--bad); }
.lc-fill.lc-ok { fill: var(--ok); opacity: 0.14; }
.lc-fill.lc-bad { fill: var(--bad); opacity: 0.16; }
.lc-mark { fill: var(--bad); stroke: var(--card); stroke-width: 2; }

/* ── 위험·수익 산점도 ───────────────────────────────────────── */
.scatter-wrap { width: 100%; overflow-x: auto; }
.scatter { width: 100%; min-width: 460px; height: clamp(240px, 26vw, 320px); display: block; }
.sc-axis { stroke: var(--line-strong); stroke-width: 1; }
.sc-axis-label { font-size: 12px; fill: var(--muted); }
.sc-name { font-size: 12px; font-weight: 600; fill: var(--fg); }

/* ── 상관 히트맵 ─────────────────────────────────────────────── */
.heat-wrap { overflow-x: auto; }
.heat { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
.heat-corner { width: 54px; }
.heat-head { font-weight: 600; color: var(--muted); padding: 2px 4px; text-align: center; white-space: nowrap; }
.heat-row { font-weight: 600; color: var(--fg); padding: 2px 6px 2px 0; text-align: right; white-space: nowrap; }
.heat-cell {
  width: 42px; height: 26px; text-align: center; border-radius: 3px;
  color: var(--fg); font-variant-numeric: tabular-nums;
}
.heat-self { opacity: 0.45; }

/* ── 쌓은 막대 (원금 + 수익) ─────────────────────────────────── */
.stackchart { width: 100%; position: relative; }
.stack-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.stack-legend span { display: inline-flex; align-items: center; gap: 6px; }
.stack-key { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
/* 위쪽 12px 은 마우스를 올려 커진 막대가 잘리지 않게 비워 둔 자리 */
.stack-rows { display: flex; align-items: flex-end; gap: 6px; height: 202px; overflow-x: auto; padding: 12px 0 2px; }
.stack-row { display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  height: 100%; min-width: 26px; max-width: 84px; flex: 1 1 26px; cursor: default; outline: none; }
.stack-bar { display: flex; flex-direction: column-reverse; justify-content: flex-start;
  width: 100%; height: 100%;
  transform-origin: 50% 100%;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.18s, opacity 0.18s, box-shadow 0.18s; }
.stack-seg { width: 100%; display: block; border-radius: 2px 2px 0 0; }
.stack-seg + .stack-seg { border-radius: 0; }
.stack-label { margin-top: 5px; white-space: nowrap; font-size: 10px; transition: color 0.15s; }

/* 올린 달: 막대가 한 뼘 커지고 밝아지며 빛이 번집니다. 나머지는 한 걸음 물러납니다. */
.stack-rows.has-hot .stack-row:not(.is-hot) .stack-bar { opacity: 0.42; filter: saturate(0.7); }
.stack-row.is-hot .stack-bar {
  transform: scale(1.16, 1.045);
  /* 막대는 키 100% 짜리 빈 상자라, box-shadow·테두리를 달면 위쪽 빈 칸에 네모가 그려집니다.
   * drop-shadow 는 색이 칠해진 부분의 모양만 따라가므로 실제 막대에만 빛이 번집니다. */
  filter: brightness(1.14) saturate(1.12) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 9px rgba(80, 160, 255, 0.35));
  position: relative; z-index: 2;
}
.stack-row.is-hot .stack-label { color: var(--fg); font-weight: 700; }
.stack-row:focus-visible .stack-label { outline: 2px solid var(--accent, #3b82f6); outline-offset: 2px; border-radius: 3px; }

/* 말풍선 — 값이 앞(굵게)이고 이름이 뒤(흐리게). 계열은 색 막대 하나로 가리킵니다. */
.stack-tip {
  position: absolute; left: 0; top: 0; z-index: 6; min-width: 210px; max-width: 280px;
  padding: 11px 13px 12px; border-radius: 10px; pointer-events: none;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 2px 6px rgba(0, 0, 0, 0.25);
  opacity: 0; transform: translateY(5px) scale(0.97); transform-origin: 50% 100%;
  transition: opacity 0.12s ease, transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stack-tip.is-on { opacity: 1; transform: none; }
.stack-tip::after {                                   /* 꼬리: 막대를 가리킵니다 */
  content: ''; position: absolute; width: 10px; height: 10px; background: inherit;
  border: 1px solid var(--line-strong); transform: rotate(45deg);
}
.stack-tip[data-side="top"]::after { left: calc(var(--caret, 50%) - 5px); bottom: -6px; border-top: 0; border-left: 0; }
.stack-tip[data-side="right"]::after { left: -6px; top: 14px; border-top: 0; border-right: 0; }
.stack-tip[data-side="left"]::after { right: -6px; top: 14px; border-bottom: 0; border-left: 0; }
.st-title { font-size: 11px; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 8px; }
.st-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; line-height: 1.55; }
.st-row + .st-row { margin-top: 3px; }
.st-name { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.st-key { width: 4px; height: 14px; border-radius: 2px; display: inline-block; flex: none; }
.st-val { font-size: 14px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-sep { height: 1px; background: var(--line); margin: 9px 0 7px; }
.st-note .st-val { font-size: 12px; font-weight: 600; }
.st-note .st-name { padding-left: 12px; }
.st-ok { color: var(--ok); }
.st-bad { color: var(--bad); }
@media (prefers-reduced-motion: reduce) {
  .stack-bar, .stack-tip { transition: none; }
}

/* ── 읽어주기 (소견) ─────────────────────────────────────────── */
.verdicts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.verdict { padding: 10px 12px; border-radius: 6px; background: var(--surface-2);
  border-left: 3px solid var(--line-strong); }
.verdict-bad { border-left-color: var(--bad); }
.verdict-watch { border-left-color: var(--warn, #eda100); }
.verdict-good { border-left-color: var(--ok); }
.verdict-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.verdict-top strong { font-size: 13px; }
.verdict p { margin: 0; color: var(--muted); line-height: 1.55; }

/* ── 체인 로고 칩 (현물 탭 · 지갑 주소로 읽기) ─────────────────── */
.chip-chain { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 10px 4px 7px;
  border-radius: 999px; font-weight: 600; letter-spacing: 0.02em; transition: border-color .12s, background .12s, opacity .12s; }
.chip-chain.chip-all { padding: 4px 12px; }
.chip-chain:not(.chip-on) { opacity: 0.72; }
.chip-chain:not(.chip-on):hover { opacity: 1; border-color: var(--accent); }
.chip-chain:not(.chip-on) .chain-logo { filter: grayscale(0.4); }
.chip-chain.chip-on { opacity: 1; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--fg);
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.chip-chain.chip-all.chip-on { background: var(--accent); color: var(--accent-fg); }
.chip-chain:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chain-logo { width: 18px; height: 18px; flex: none; display: inline-block; border-radius: 50%; }
.chain-logo-none { background: var(--line-strong); }
.chain-tk { font-variant-numeric: tabular-nums; }
.chip-need { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); }
.chain-badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.chain-badges { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; font-weight: 600; color: var(--muted); }
.chain-badges .chain-logo { width: 14px; height: 14px; }
.table .chain-badge .chain-logo { width: 16px; height: 16px; }

/* 추가·수정 칸 — 단추 바로 밑에 열리는 테두리 판 */
.edit-panel { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm, 6px); background: var(--surface-2); }
.edit-panel > h3.sub:first-child { margin-top: 0; }
.edit-panel-foot { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 10px; }

/* ── 토큰 그림 + 체인 꼬마 로고 (현물 탭 목록) ─────────────────── */
.tk-cell { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.tk-text { min-width: 0; }
.tk-sym { font-weight: 600; }
.tk-icon { position: relative; width: 26px; height: 26px; flex: none; margin-top: 1px; }
.tk-main { width: 26px; height: 26px; border-radius: 50%; display: block; object-fit: cover; background: var(--surface-2); }
.tk-letter { display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: -0.02em; }
.tk-chain { position: absolute; right: -5px; top: -5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 0 0 1.5px var(--surface); }

/* ── 지갑 색 꼬리표 (현물 탭) ───────────────────────────────────
 * --wc 는 지갑마다 자바스크립트가 정해 줍니다 (같은 앞머리 = 같은 색 계열). */
.wtag { --wc: var(--muted); display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5;
  color: var(--fg); white-space: nowrap;
  background: color-mix(in srgb, var(--wc) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--wc) 55%, transparent); }
.wtag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wc); flex: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--wc) 25%, transparent); }
.wtag-name { overflow: hidden; text-overflow: ellipsis; }
button.wtag-btn { cursor: pointer; font-family: inherit; transition: background .12s, border-color .12s; }
button.wtag-btn:hover { background: color-mix(in srgb, var(--wc) 30%, transparent); border-color: var(--wc); }
button.wtag-btn:focus-visible { outline: 2px solid var(--wc); outline-offset: 2px; }

/* 줄 왼쪽의 지갑 색 띠 */
.wtable tr.wrow > td:first-child { box-shadow: inset 3px 0 0 var(--wc, transparent); padding-left: 12px; }
/* 묶어 볼 때의 지갑 머리줄 */
.wtable tr.wgroup-head > td { padding: 9px 12px; border-top: 2px solid var(--wc);
  background: color-mix(in srgb, var(--wc) 9%, var(--surface)); }
.wtable tr.wgroup-head:hover { background: none; }
.wgroup-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wgroup-bar { justify-content: space-between; align-items: center; }
.wtag-legend { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.wlist-id { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }

/* ── 디파이 자리 (Aave) ─────────────────────────────────────────── */
.defi-panel { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm, 6px);
  background: color-mix(in srgb, #b6509e 6%, var(--surface)); }
.defi-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.defi-pill { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; vertical-align: 1px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em; line-height: 17px;
  color: #b6509e; background: color-mix(in srgb, #b6509e 16%, transparent); }
.defi-pill.defi-debt { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.hf { display: inline-block; min-width: 46px; text-align: center; padding: 1px 8px; border-radius: 999px;
  font-weight: 700; font-variant-numeric: tabular-nums; }
.hf-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.hf-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 18%, transparent); }
.hf-bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, transparent); }

/* ── 검색 탭: 매출 대비 가격 ───────────────────────────────────── */
.val-mults .stat-value { font-size: 1.35em; }
.val-table td { vertical-align: middle; }
.val-table td .btn { padding: 2px 8px; min-height: 0; font-weight: 700; }
.ps-cell { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; }
.ps-bar { position: relative; flex: 1 1 90px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ps-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent)); }
.ps-cell .num { min-width: 56px; text-align: right; font-weight: 600; }
.val-gloss { margin-top: 2px; }

/* ── 검색 탭: 코인 한 장 (개요) ─────────────────────────────────── */
.card.pf-head { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; text-align: left; }
.pf-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pf-logo { width: 48px; height: 48px; border-radius: 50%; flex: none; background: var(--surface-2); }
.pf-name { margin: 0; font-size: 1.35rem; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pf-sym { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.pf-rank { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pf-price { font-size: 1.25rem; font-weight: 700; margin-top: 2px; }
.pf-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.star-btn { display: inline-flex; align-items: center; gap: 2px; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
.star-btn > span:first-child { color: var(--muted); font-size: 15px; line-height: 1; }
.star-btn.is-on { border-color: #e0a526; background: color-mix(in srgb, #e0a526 14%, var(--surface)); }
.star-btn.is-on > span:first-child { color: #e0a526; }
.star-btn.star-sm { padding: 2px 6px; border-color: transparent; background: transparent; }
.star-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ret-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ret-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: var(--r-sm, 6px);
  background: var(--surface-2); border: 1px solid var(--line); }
.ret-cell strong { font-size: 14px; }
.ret-cell.pnl-up strong { color: var(--ok); }
.ret-cell.pnl-down strong { color: var(--bad); }
@media (max-width: 640px) { .ret-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-chart { display: flex; flex-direction: column; gap: 10px; }
.pf-chart-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pf-cmp { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.pc-wrap { position: relative; }
.pc-loading { height: 260px; display: flex; align-items: center; justify-content: center; }
.pc-plot { position: relative; height: 260px; padding-right: 64px; cursor: crosshair; }
.pc-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pc-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pc-area { fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: none; }
.pc-line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.pc-line-0 { stroke: var(--accent); }
.pc-line-1 { stroke: #e0a526; stroke-dasharray: 5 3; }
.pc-ylab { position: absolute; top: 0; bottom: 0; right: 0; width: 60px; pointer-events: none; }
.pc-ylab span { position: absolute; right: 0; transform: translateY(-50%); font-size: 11px; color: var(--muted); }
.pc-xlab { display: flex; justify-content: space-between; padding-right: 64px; margin-top: 4px; }
.pc-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-strong); pointer-events: none; }
.pc-tip { position: absolute; top: 8px; min-width: 170px; padding: 8px 10px; border-radius: 8px; pointer-events: none; z-index: 3;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); }
.pc-tip-row { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 3px; }
.pc-tip-row strong { margin-left: auto; }
.pc-key { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.pc-key-0 { background: var(--accent); }
.pc-key-1 { background: #e0a526; }
.pf-desc { white-space: pre-line; line-height: 1.65; max-width: 80ch; margin: 0; }
.tag-row, .link-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row .tag { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); }
.tag-row .tag-llama { border-color: var(--accent); color: var(--accent); }
.pf-link { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; }
.pf-link:hover { border-color: var(--accent); }
.supply-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 30%, var(--surface-2)); overflow: hidden; }
.supply-bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.pf-unlock-form { flex-wrap: wrap; }
.pf-unlock-form input[type="date"] { width: 170px; flex: 0 0 170px; }
.pf-unlock-form input[type="text"] { min-width: 180px; flex: 1 1 220px; width: auto; }
.gov-link { font-weight: 600; text-decoration: none; }
.gov-link:hover { text-decoration: underline; }
.gov-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gov-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.gov-item:last-child { border-bottom: 0; }
.gov-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gov-state { flex: none; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.gov-state.gov-active { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.gov-state.gov-pending { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
/* 스크리너·관심 목록 */
.coin-pick { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; border: 0; background: none; cursor: pointer; color: var(--fg); font: inherit; text-align: left; }
.coin-pick img { border-radius: 50%; flex: none; }
.coin-pick:hover strong { text-decoration: underline; }
.scr-table td { vertical-align: middle; }
.held-tag { margin-left: 6px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent); }
label.chk { display: inline-flex; align-items: center; gap: 4px; }
.pf-desc-tools { align-items: center; gap: 10px; }
.pf-tr summary { color: var(--muted); }

/* ── 설정: 자료원 연결 ─────────────────────────────────────────── */
.src-row { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.src-row:last-child { border-bottom: 0; }
.src-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.src-cost { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.src-state { margin-left: auto; }
.src-on, .src-ok { color: var(--ok); font-weight: 600; }

/* ── 수급·파생: 새 자료원 ─────────────────────────────────────── */
.light-na .light-dot { background: var(--line-strong); }
.light-na { opacity: 0.7; }
.liq-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.liq-bar .liq-long { background: var(--bad); }
.liq-bar .liq-short { background: var(--ok); }
.fg-stat { position: relative; }
.fg-gauge { position: relative; height: 6px; margin-top: 8px; border-radius: 999px;
  background: linear-gradient(90deg, #d9534f 0%, #e0a526 35%, #9aa3ad 50%, #7cc576 65%, #2fa86a 100%); }
.fg-gauge > i { position: absolute; top: -3px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px; background: var(--fg);
  box-shadow: 0 0 0 2px var(--surface); }
.etf-flows { display: flex; flex-direction: column; gap: 6px; }
.etf-bars { display: flex; align-items: center; gap: 4px; height: 70px; }
.etf-bar { flex: 1 1 0; height: 100%; position: relative; border-bottom: 0; }
.etf-bar::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 1px; background: var(--line); }
.etf-bar > i { position: absolute; left: 0; right: 0; border-radius: 2px; }
.etf-bar.etf-in > i { bottom: 50%; background: var(--ok); }
.etf-bar.etf-out > i { top: 50%; background: var(--bad); }
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.news-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.news-list li:last-child { border-bottom: 0; }

/* ── 새 경고 띠 (어느 탭에서나 맨 위) ─────────────────────────── */
.alert-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; margin-bottom: 12px;
  border-radius: var(--r-sm, 6px); border: 1px solid; border-left-width: 5px; }
/* 화면은 자주 다시 그려지므로 움직임(애니메이션)은 넣지 않습니다 — 그릴 때마다 깜빡이게 됩니다 */
.alert-strip-bad { background: color-mix(in srgb, var(--bad) 26%, var(--surface)); border-color: var(--bad); }
.alert-strip-warn { background: color-mix(in srgb, var(--warn) 26%, var(--surface)); border-color: var(--warn); }
.alert-strip > strong { color: var(--fg); font-size: 14px; }
.alert-strip ul { list-style: none; margin: 0; padding: 0; flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.alert-strip li { font-size: 13px; }
.alert-strip .row-actions { margin-left: auto; }
.new-tag { color: var(--bad); font-weight: 700; }

/* ── 현물: 코인별 손익 ───────────────────────────────────── */
.stat-up .stat-value { color: var(--ok); }
.cb-table td { vertical-align: middle; }
.cb-row { cursor: pointer; }
.cb-row:hover td, .cb-row:focus-visible td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.cb-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cb-open td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.cb-unknown td:not(:first-child) { color: var(--muted); }
.cb-coin { display: flex; align-items: center; gap: 6px; }
.cb-caret { font-size: 10px; color: var(--muted); }
.cb-gauge { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.cb-track { position: relative; flex: 1; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--muted) 18%, transparent); overflow: hidden; }
.cb-fill { position: absolute; top: 0; bottom: 0; }
.cb-up { background: var(--ok); border-radius: 0 4px 4px 0; }
.cb-down { background: var(--bad); border-radius: 4px 0 0 4px; }
.cb-mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--fg); opacity: .55; }
.cb-word { font-size: 12px; font-weight: 600; white-space: nowrap; }
.cb-detail > td { padding: 10px 12px 14px; }
.cb-lots { display: grid; gap: 8px; }
.cb-lots tfoot td { border-top: 1px solid var(--line); font-weight: 500; }
.lot-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 10px; align-items: end; }
.lot-form-go { display: flex; align-items: end; }
@media (max-width: 640px) { .cb-gauge { min-width: 90px; } }
/* 자동 원가 상태 줄 */
.cb-auto { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--accent) 4%, transparent); }
.cb-auto-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cb-auto-go { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.cb-src { font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.cb-src-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.cb-src-bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.cb-src-warn { color: var(--warn, var(--bad)); }
.cb-auto-bad { margin: 0; padding-left: 18px; color: var(--bad); }
.cb-side { font-size: 11px; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.cb-buy { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.cb-sell { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.cb-est { color: var(--muted); font-style: italic; }
.cex-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; align-items: center; }
/* 지금 없는 코인 (손익 계산 안 함) */
.cb-gone { display: grid; gap: 6px; }
.cb-gone-head { all: unset; cursor: pointer; padding: 6px 2px; font-size: 13px; font-weight: 600; }
.cb-gone-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.cb-gone-row td { color: var(--muted); }
.cb-gone-row td strong { color: var(--fg); }
/* 일지 쓰라는 띠 (파랑) */
.alert-strip-info { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: var(--accent); }
/* 일지 탭 맨 위 "일지 쓸 거래" */
.jp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.jp-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.jp-item .jp-text { flex: 1 1 260px; min-width: 0; }
.jp-kind { font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-right: 6px; }
.jp-open { color: var(--accent); background: var(--accent-soft); }
.jp-close { color: var(--warn); background: var(--warn-bg); }
/* 일지 태그 고르기 */
.tag-picker { display: grid; gap: 8px; width: 100%; }
.tag-picked { display: flex; flex-wrap: wrap; gap: 5px; min-height: 26px; align-items: center; }
.tag-x { display: inline-flex; align-items: center; gap: 2px; }
.tag-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.tag-tab { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; color: var(--muted); border: 1px solid transparent; }
.tag-tab:hover { color: var(--fg); background: var(--surface-2); }
.tag-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.tag-tab-on { color: var(--fg); font-weight: 600; background: var(--accent-soft); border-color: var(--accent); }
.tag-tab-bad.tag-tab-on { background: var(--bad-bg); border-color: var(--bad); }
.tag-tab-good.tag-tab-on { background: var(--ok-bg); border-color: var(--ok); }
.tag-tab-n { font-size: 10px; min-width: 16px; text-align: center; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); }
.tag-chips { max-height: 190px; overflow-y: auto; padding: 2px; }

/* ── 뉴스 탭 ───────────────────────────────────────────── */
.news-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.news-q { flex: 1 1 200px; min-width: 0; }
.news-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column;
  --n-title: 17px; --n-meta: 12.5px; --n-sum: 14.5px; --n-time: 15px; --n-pad: 16px; }
.news-feed-m { --n-title: 15px; --n-meta: 12px; --n-sum: 13.5px; --n-time: 14px; --n-pad: 12px; }
.news-feed-xl { --n-title: 20px; --n-meta: 14px; --n-sum: 16.5px; --n-time: 17px; --n-pad: 20px; }
.news-day { font-size: 14px; font-weight: 600; color: var(--fg); padding: 18px 4px 8px; border-bottom: 2px solid var(--line-strong); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.news-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: var(--n-pad) 6px; border-bottom: 1px solid var(--line); }
.news-item:hover { background: var(--surface-2); }
.news-flash { box-shadow: inset 4px 0 0 var(--warn); padding-left: 14px; }
.news-time { font-size: var(--n-time); color: var(--fg); line-height: 1.35; font-weight: 500; }
.news-time > .small { font-family: var(--font-sans); font-size: var(--n-meta); font-weight: 400; margin-top: 2px; }
.news-body { min-width: 0; display: grid; gap: 6px; max-width: 78ch; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; font-size: var(--n-meta); }
.news-src { font-size: var(--n-meta); padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.news-src-flash { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.news-src-korea { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.news-src-data { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.news-tag-flash { font-size: calc(var(--n-meta) - 1px); font-weight: 700; color: #fff; background: var(--bad); padding: 1px 6px; border-radius: 3px; }
.news-coin { all: unset; cursor: pointer; font-size: var(--n-meta); font-family: var(--font-mono); padding: 1px 7px; border-radius: 3px; border: 1px solid var(--line-strong); color: var(--muted); }
.news-coin-mine { color: var(--fg); border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.news-coin-on { background: var(--accent); color: var(--accent-fg); }
.news-coin:focus-visible { outline: 2px solid var(--focus); }
.news-title { all: unset; cursor: pointer; display: block; font-size: var(--n-title); font-weight: 500; line-height: 1.5; color: var(--fg); overflow-wrap: anywhere; text-wrap: pretty; }
.news-title:hover { color: var(--accent); }
.news-title:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.news-new .news-title, .news-open .news-title { font-weight: 700; }
.news-out { font-size: var(--n-meta); color: var(--muted); text-decoration: none; padding: 0 4px; border-radius: 3px; }
.news-out:hover { color: var(--accent); background: var(--accent-soft); }
.news-open { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.news-reader { display: grid; gap: 12px; margin-top: 6px; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 6px; background: var(--surface); max-width: 72ch; }
.news-reader p { margin: 0; font-size: calc(var(--n-sum) + 1.5px); line-height: 1.8; color: var(--fg); overflow-wrap: anywhere; }
.news-reader .small { font-size: var(--n-meta); line-height: 1.5; }
.news-reader .news-reader-note, .news-reader .news-reader-wait { color: var(--muted); }
.news-reader-h { margin: 6px 0 0; font-size: calc(var(--n-sum) + 3px); font-weight: 700; color: var(--fg); }
.news-reader-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.news-reader-foot a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.news-feed .news-orig { font-size: calc(var(--n-sum) - 1px); line-height: 1.45; overflow-wrap: anywhere; }
.news-feed .news-sum { font-size: var(--n-sum); line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-size .seg-btn { min-width: 34px; padding-inline: 8px; line-height: 1; }
.news-size .news-size-m { font-size: 12px; }
.news-size .news-size-l { font-size: 15px; }
.news-size .news-size-xl { font-size: 18px; font-weight: 600; }
.news-fresh { all: unset; cursor: pointer; display: block; text-align: center; padding: 8px; border-radius: 6px; font-size: 13px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.news-sources { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.news-src-group { display: grid; gap: 4px; }
.news-src-chip { display: inline-flex; align-items: center; gap: 5px; }
.news-src-chip.chip-on { background: var(--surface); color: var(--fg); border-color: var(--line-strong); }
.news-src-chip.chip-on:hover { border-color: var(--accent); }
.news-src-chip:not(.chip-on) { opacity: 0.5; text-decoration: line-through; }
.news-src-chip.news-src-bad { border-color: color-mix(in srgb, var(--bad) 55%, transparent); color: var(--muted); }
.news-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }
.news-dot-ok { background: var(--ok); }
.news-dot-warn { background: var(--warn); }
.news-dot-bad { background: var(--bad); }
.news-bad-list { margin: 0; padding-left: 18px; color: var(--bad); }
.news-add { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(200px, 2fr) auto; gap: 8px; }
@media (max-width: 640px) {
  .news-add { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .news-time { display: flex; align-items: baseline; gap: 8px; }
  .news-time > .small { margin-top: 0; }
  .news-reader { padding: 12px; }
}

/* ── 서재 (책장·성구·뷰어) ─────────────────────────────── */
.lib-bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lib-search { flex: 1 1 180px; min-width: 0; max-width: 360px; }

/* 오늘의 성구 */
.lib-today { margin: 0; padding: 26px 30px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  background-image: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%); display: grid; gap: 12px; }
.lib-today .label-caps { color: var(--muted); }
.lib-today-text { margin: 0; font-family: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Batang, serif; font-size: clamp(19px, 2.2vw, 25px); font-weight: 500;
  line-height: 1.7; color: var(--fg); white-space: pre-line; text-wrap: pretty; max-width: 46em; }
.lib-today-text::before { content: '“'; color: var(--accent); margin-right: 2px; }
.lib-today-text::after { content: '”'; color: var(--accent); margin-left: 2px; }
.lib-today-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; }
.lib-today-next { margin-left: auto; }

/* 성구 목록 */
.lib-qform { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.lib-qform textarea { font-size: 15px; line-height: 1.6; }
.lib-qform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.lib-filter { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.lib-kind { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.lib-kind-0 { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.lib-kind-1 { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.lib-kind-2 { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.lib-quote-top { display: flex; gap: 6px; }
.lib-quote-orig, .lib-today-orig { font-family: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Batang, serif; color: var(--muted); letter-spacing: .04em; white-space: pre-line; overflow-wrap: anywhere; }
.lib-quote-orig { font-size: 15px; }
.lib-today-orig { font-size: clamp(16px, 1.8vw, 20px); }
.lib-quote-meaning, .lib-today-meaning { margin: 0; color: var(--muted); line-height: 1.65; white-space: pre-line; }
.lib-quote-meaning { font-size: 14px; }
.lib-today-meaning { font-size: 15px; max-width: 60em; }
.lib-q-src { color: var(--muted); }
.lib-quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* 열 하나를 0~1fr 로 묶어야, 접은 글의 한 줄(줄바꿈 없음)이 칸을 밀어 화면 밖으로 나가지 않고 … 으로 잘립니다 */
.lib-quotes > li { min-width: 0; }
.lib-quote { padding: 16px 18px 12px; border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: 8px; background: var(--surface); display: grid; gap: 8px; }
.lib-quote-fav { border-left-color: var(--warn); }
.lib-quote-text { margin: 0; font-family: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Batang, serif; font-size: 17px; line-height: 1.75; color: var(--fg);
  white-space: pre-line; overflow-wrap: anywhere; max-width: 60em; }
.lib-quote-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; }
.lib-q-who { font-weight: 600; color: var(--fg); }
.lib-q-book { all: unset; cursor: pointer; color: var(--accent); }
.lib-q-book:hover { text-decoration: underline; }
.lib-q-book:focus-visible { outline: 2px solid var(--focus); }
.lib-q-book-off { color: var(--muted); }
.lib-quote-note { margin: 0; color: var(--muted); padding-left: 10px; border-left: 2px solid var(--line); }
.lib-quote-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.lib-quote-foot .btn { padding: 2px 8px; font-size: 12px; }
.lib-quote-date { margin-right: auto; }
.lib-tag { all: unset; cursor: pointer; font-size: 12px; color: var(--accent); padding: 1px 6px; border-radius: 3px; background: var(--accent-soft); }
.lib-star[aria-pressed="true"] { color: var(--warn); }

/* ── AI 주간 복기 (성과 분석 맨 위) ─────────────────────── */
.cc-body { display: grid; gap: 14px; }
.cc-head { display: grid; gap: 4px; }
.cc-headline { margin: 0; font-size: 20px; line-height: 1.4; text-wrap: balance; }
.cc-summary { margin: 0; font-size: 15px; line-height: 1.7; max-width: 72ch; }
.cc-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.cc-num { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); min-width: 0; }
.cc-num strong { font-size: 17px; }
.cc-one { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent-soft); display: grid; gap: 4px; }
.cc-one .label-caps { color: var(--accent); }
.cc-one-title { font-size: 18px; line-height: 1.45; }
.cc-one p { margin: 0; }
.cc-grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cc-grade { display: grid; gap: 4px; }
.cc-grade-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.cc-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cc-bar > i { display: block; height: 100%; width: 0; border-radius: 3px; }
.cc-g-good { background: var(--ok); } .cc-g-mid { background: var(--warn); } .cc-g-bad { background: var(--bad); }
.cc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.cc-block { display: grid; gap: 6px; min-width: 0; }
.cc-block .sub { margin: 0; }
.cc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cc-list > li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: grid; gap: 4px; }
.cc-list p { margin: 0; line-height: 1.6; }
.cc-leaks > li { border-left: 3px solid var(--bad); }
.cc-goods > li { border-left: 3px solid var(--ok); }
.cc-item-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cc-fix { color: var(--accent); font-weight: 600; }
.cc-trades { display: flex; flex-wrap: wrap; gap: 4px; }
.cc-trade { all: unset; cursor: pointer; font-size: 11.5px; color: var(--accent); padding: 1px 6px; border-radius: 3px; background: var(--accent-soft); }
.cc-trade:focus-visible { outline: 2px solid var(--focus); }
.cc-signals { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cc-signals li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 6px 10px; border-radius: 6px; font-size: 13.5px; background: var(--surface-2); }
.cc-sig-bad { box-shadow: inset 3px 0 0 var(--bad); }
.cc-sig-ok { box-shadow: inset 3px 0 0 var(--ok); }
.cc-questions { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14.5px; line-height: 1.6; }
.cc-quote { margin: 0; padding: 14px 18px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 4px; }
.cc-quote blockquote { margin: 0; font-family: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Batang, serif; font-size: 16.5px; line-height: 1.7; white-space: pre-line; }
.cc-quote p { margin: 0; }
.cc-foot { justify-content: space-between; }
.cc-running { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.cc-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: cc-spin 0.9s linear infinite; flex: none; }
@keyframes cc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cc-spin { animation: none; } }
.cc-empty { padding: 14px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.cc-empty p { margin: 4px 0 0; }
.cc-setup { display: grid; gap: 10px; justify-items: start; }
.cc-history summary { cursor: pointer; }
.cc-hist-btn { all: unset; cursor: pointer; display: grid; gap: 2px; min-width: 0; }
.cc-hist-btn:hover span:last-child { color: var(--accent); }
.cc-hist-on { background: var(--accent-soft); }

/* 서버 상태 (설정) */
.sys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sys-meter { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.sys-top { display: flex; justify-content: space-between; align-items: baseline; }
.sys-top strong { font-size: 18px; }
.sys-bar { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.sys-bar > i { display: block; height: 100%; width: 0; border-radius: 4px; }
.sys-ok { background: var(--ok); } .sys-warn { background: var(--warn); }

/* 일지: 확신도 */
.conf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.conf-in { width: 80px; }

/* AI 복기: 기간 고르기 · 흐름 · 지난 다짐 */
.cc-periods { flex-wrap: wrap; }
.cc-range { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cc-range input { width: auto; min-width: 140px; }
.cc-series { display: grid; gap: 2px; overflow-x: auto; }
.cc-srow { display: grid; grid-template-columns: 70px minmax(160px, 1fr) 48px 52px minmax(90px, auto); gap: 10px; align-items: center; padding: 4px 6px; border-radius: 4px; }
.cc-srow:not(.cc-shead):hover { background: var(--surface-2); }
.cc-snet { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cc-sbar { flex: 1; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; max-width: 260px; }
.cc-sbar > i { display: block; height: 100%; width: 0; border-radius: 4px; }
.cc-sb-up { background: var(--ok); } .cc-sb-down { background: var(--bad); }
.cc-progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cc-progress li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.cc-progress p { margin: 2px 0 0; }
.cc-pstat { text-align: center; font-size: 12px; font-weight: 700; padding: 2px 0; border-radius: 4px; color: #fff; }
.cc-pstat-0 { background: var(--ok); } .cc-pstat-1 { background: color-mix(in srgb, var(--ok) 60%, var(--accent)); }
.cc-pstat-2 { background: var(--muted); } .cc-pstat-3 { background: var(--bad); }
.cc-dive > li { border-left: 3px solid var(--accent); }
.cc-dive b { color: var(--muted); font-weight: 600; margin-right: 4px; }
.cc-verdict-0 { background: var(--ok); } .cc-verdict-1 { background: var(--warn); } .cc-verdict-2 { background: var(--bad); }
.cc-prose { margin: 0; font-size: 14.5px; line-height: 1.75; white-space: pre-line; }
.cc-plan { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.6; }

/* ── 비중 설계 (views/sizing) ── */
.sz-band { display: grid; gap: 10px; }
.sz-band-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 14px 28px; align-items: center; }
.sz-band-col { display: grid; gap: 4px; min-width: 0; }
.sz-band-big { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.sz-band-unit { font-size: 14px; font-weight: 500; color: var(--muted); }
.sz-meter-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sz-meter { position: relative; display: flex; height: 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.sz-meter-fill { height: 100%; transition: width .3s ease; }
.sz-meter-stop { background: var(--accent); }
.sz-meter-assumed { background: repeating-linear-gradient(135deg, var(--warn) 0 5px, color-mix(in srgb, var(--warn) 55%, transparent) 5px 10px); }
.sz-band-over .sz-meter-assumed { background: repeating-linear-gradient(135deg, var(--bad) 0 5px, color-mix(in srgb, var(--bad) 55%, transparent) 5px 10px); }
.sz-meter-limit { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--fg); box-shadow: 0 0 0 1px var(--surface); }
.sz-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.sz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sz-key { display: inline-block; width: 12px; height: 8px; border-radius: 2px; }
.sz-key-stop { background: var(--accent); }
.sz-key-assumed { background: repeating-linear-gradient(135deg, var(--warn) 0 3px, color-mix(in srgb, var(--warn) 55%, transparent) 3px 6px); }
.sz-band-over { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.sz-band-next { margin: 0; padding-top: 8px; border-top: 1px dashed var(--line); }
.sz-tabs .seg-btn[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.sz-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.sz-out { position: sticky; top: 12px; }
.sz-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sz-coin { display: flex; gap: 8px; align-items: center; min-width: 0; }
.sz-coin .sg-input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
.sz-px { white-space: nowrap; }
.sz-risk { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sz-risk-input { width: 92px !important; }
.sz-chip { border-radius: 999px; padding: 4px 11px; }
.sz-chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.sz-split { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.sz-split p { margin: 0; }
.sz-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 600; width: max-content; }
.sz-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sz-switch-track { width: 34px; height: 20px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .15s; }
.sz-switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.sz-switch input:checked + .sz-switch-track { background: var(--accent); }
.sz-switch input:checked + .sz-switch-track::after { transform: translateX(14px); }
.sz-switch input:focus-visible + .sz-switch-track { outline: 2px solid var(--focus); outline-offset: 2px; }
.sz-assume summary { cursor: pointer; padding: 4px 0; }
.sz-assume[open] summary { margin-bottom: 8px; }
.sz-result { display: grid; gap: 12px; }
.sz-head { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sz-big { font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--fg); }
.sz-big-dim { color: var(--muted); }
.sz-sub { color: var(--muted); font-size: 13px; }
.sz-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.stat-good .stat-value { color: var(--ok); }
.stat-warn .stat-value { color: var(--warn); }
.sz-over { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.sz-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.sz-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.sz-check-ico { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; font-size: 11px; font-weight: 700; }
.sz-ok .sz-check-ico { background: var(--ok-bg); color: var(--ok); }
.sz-warn .sz-check-ico { background: var(--warn-bg); color: var(--warn); }
.sz-bad .sz-check-ico { background: var(--bad-bg); color: var(--bad); }
.sz-bad { color: var(--bad); }
.sz-tr { display: grid; gap: 6px; }
.sz-tr-table td, .sz-tr-table th { white-space: nowrap; }
.sz-tp { width: 110px !important; min-height: 28px !important; padding: 2px 7px !important; }
.sz-todo { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 3px; }
.sz-actions { align-items: center; }
.sz-soon { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
@media (max-width: 900px) {
  .sz-calc { grid-template-columns: minmax(0, 1fr); }
  .sz-out { position: static; }
  .sz-band-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .sz-grid2 { grid-template-columns: minmax(0, 1fr); } }

/* 비중 지도 */
.sz-map-stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.sz-notes { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 3px; }
.sz-wtable td, .sz-btable td { vertical-align: middle; }
.sz-wcoin { font-weight: 600; }
.sz-whold { max-width: 260px; white-space: normal; }
.sz-wbar { position: relative; min-width: 120px; height: 20px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.sz-wbar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 5px; opacity: .85; }
.sz-wbar-money { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.sz-wbar-risk { background: color-mix(in srgb, var(--warn) 70%, transparent); }
.sz-wbar-hot { background: color-mix(in srgb, var(--bad) 75%, transparent); }
.sz-wbar-cash { background: color-mix(in srgb, var(--ok) 60%, transparent); }
.sz-wbar-hold { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.sz-wbar-perp { background: color-mix(in srgb, var(--warn) 60%, transparent); }
.sz-wbar-text { position: relative; display: block; padding: 0 7px; line-height: 20px; font-size: 12px; color: var(--fg); }
.sz-hot td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.sz-basis { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.sz-basis-stop { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.sz-basis-assumed { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.sz-btc { display: grid; gap: 2px; margin-bottom: 10px; }
.sz-btc-big { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.sz-target { width: 80px !important; }
.sz-gap { color: var(--warn); }
/* 계획 대 실제 */
.sz-verdict { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.sz-v-asPlanned { background: var(--ok-bg); color: var(--ok); }
.sz-v-bigger { background: var(--bad-bg); color: var(--bad); }
.sz-v-smaller { background: var(--accent-soft); color: var(--accent); }
.sz-v-none { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.sz-ptable td { vertical-align: middle; }
.sz-pact { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.sz-link { width: auto !important; min-height: 30px !important; font-size: 12.5px; max-width: 260px; }

/* 오늘의 한마디 — 옆으로 넘기는 판 */
.lib-car { position: relative; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  background-image: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%); overflow: hidden; }
.lib-car-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px 0 30px; }
.lib-car-head .label-caps { color: var(--muted); }
.lib-car-nav { display: flex; align-items: center; gap: 6px; }
.lib-car-hint { margin-right: 6px; }
.lib-car-count { min-width: 48px; text-align: center; font-size: 12.5px; color: var(--muted); }
.lib-car-btn { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  font-size: 19px; line-height: 1; color: var(--fg); border: 1px solid var(--line); background: var(--surface); transition: background .12s, opacity .12s; }
.lib-car-btn:hover:not(:disabled) { background: var(--surface-2); }
.lib-car-btn:disabled { opacity: .3; cursor: default; }
.lib-car-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.lib-car-track { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; transition: height .25s ease; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; outline: none; }
.lib-car-track::-webkit-scrollbar { display: none; }
.lib-car-track:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.lib-car-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.lib-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; align-content: start; border: 0; border-radius: 0; background: none; padding: 14px 30px 22px; }
.lib-dup { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.lib-dup-soft { border-left-color: var(--accent); }
.lib-dup-acts { display: flex; gap: 6px; }
.lib-flash { animation: lib-flash 1.8s ease-out; }
@keyframes lib-flash { 0%, 30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 560px) { .lib-car-head { padding: 14px 14px 0 18px; } .lib-slide { padding: 12px 18px 18px; } .lib-car-hint { display: none; } }

/* 한눈에 — 오늘의 마음 */
.mind { position: relative; display: grid; gap: 10px; padding: 22px 28px 18px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden;
  background: var(--surface);
  background-image: radial-gradient(130% 160% at 100% 0%, color-mix(in srgb, var(--mind-c, var(--accent)) 14%, transparent), transparent 55%); }
.mind::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--mind-c, var(--accent)); }
.mind-revenge, .mind-loss, .mind-risk { --mind-c: var(--bad); }
.mind-fear, .mind-greed, .mind-hubris { --mind-c: var(--warn); }
.mind-rest, .mind-patience { --mind-c: var(--ok); }
.mind-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mind-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mind-theme { font-weight: 700; font-size: 15px; color: var(--mind-c, var(--accent)); }
.mind-nav { display: flex; align-items: center; gap: 6px; }
.mind-btn { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 18px;
  border: 1px solid var(--line); color: var(--fg); background: var(--surface); }
.mind-btn:hover { background: var(--surface-2); }
.mind-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.mind-orig { font-family: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Batang, serif; color: var(--muted); letter-spacing: .05em; font-size: 15px; white-space: pre-line; }
.mind-text { margin: 0; font-family: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Batang, serif; font-size: clamp(18px, 2vw, 23px); font-weight: 500;
  line-height: 1.7; white-space: pre-line; text-wrap: pretty; max-width: 48em; }
.mind-meaning { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; white-space: pre-line; }
.mind-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; }
.mind-who { font-weight: 600; }
.mind-src { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.mind-src-mine { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.mind-why { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.mind-chip { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; }
.mind-acts { margin-left: auto; display: inline-flex; gap: 6px; }
.mind-folded { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.mind-folded-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.mind-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
@media (max-width: 560px) { .mind { padding: 18px 18px 14px 20px; } .mind-acts { margin-left: 0; } }

@media (prefers-reduced-motion: reduce) { .lib-car-track { transition: none; } }

/* AI 복기 접기 */
.cc-fold { white-space: nowrap; }
.cc-folded { display: flex; align-items: center; min-width: 0; }
.cc-fold-line { all: unset; box-sizing: border-box; display: flex; align-items: baseline; gap: 10px; min-width: 0; width: 100%; cursor: pointer; padding: 6px 8px; margin: -6px -8px; border-radius: 8px; }
.cc-fold-line:hover { background: var(--surface-2); }
.cc-fold-line:focus-visible { outline: 2px solid var(--focus); }
.cc-fold-kind { flex: none; font-size: 11.5px; font-weight: 600; color: var(--accent); padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); }
.cc-fold-head { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

/* 보유 중 점검 */
.hc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); }
.hc-due { border-left: 3px solid var(--warn); }
.hc-main { display: grid; gap: 5px; min-width: 0; }
.hc-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.hc-why { overflow-wrap: anywhere; }
.hc-memo { min-height: 30px !important; font-size: 12.5px; max-width: 560px; }
.hc-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hc-btn { all: unset; box-sizing: border-box; cursor: pointer; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line-strong);
  background: var(--surface); transition: background .12s, border-color .12s; white-space: nowrap; }
.hc-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hc-btn:disabled { opacity: .5; cursor: default; }
.hc-alive { color: var(--ok); } .hc-alive:hover:not(:disabled) { background: var(--ok-bg); border-color: var(--ok); }
.hc-shaky { color: var(--warn); } .hc-shaky:hover:not(:disabled) { background: var(--warn-bg); border-color: var(--warn); }
.hc-broken { color: var(--bad); } .hc-broken:hover:not(:disabled) { background: var(--bad-bg); border-color: var(--bad); }
@media (max-width: 640px) { .hc-row { grid-template-columns: minmax(0, 1fr); } .hc-acts { justify-content: flex-start; } }

/* 명언록: 꼬리표 제안 */
.lib-tagrow { display: flex; gap: 6px; align-items: center; min-width: 0; }
.lib-tagrow input { flex: 1 1 auto; min-width: 0; }
.lib-tagai { white-space: nowrap; color: var(--accent); }
.lib-tagsug { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); }
.lib-tagchip { all: unset; box-sizing: border-box; cursor: pointer; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); }
.lib-tagchip-sit { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--accent); }
.lib-tagchip-on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.lib-tagchip:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.lib-tagall { padding: 3px 10px !important; min-height: 0 !important; font-size: 12px; }
.lib-tagwhy { flex-basis: 100%; }

/* 명언록 목록: 접기 · 쪽 */
.lib-quote-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lib-fold { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  color: var(--muted); font-size: 13px; border: 1px solid transparent; }
.lib-fold:hover { background: var(--surface-2); border-color: var(--line); color: var(--fg); }
.lib-fold:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.lib-quote-folded { display: flex; align-items: center; gap: 8px; padding-top: 10px !important; padding-bottom: 10px !important; }
.lib-quote-line { all: unset; box-sizing: border-box; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; border-radius: 6px; }
.lib-quote-line:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lib-line-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Batang, serif; font-size: 15px; }
.lib-line-who { flex: none; font-size: 13px; color: var(--muted); max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-line-star { flex: none; color: var(--warn); }
.lib-quote-editing { padding: 0 !important; border: 0 !important; background: none !important; }
.lib-quote-editing .lib-qform { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.lib-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lib-foldall { padding: 4px 10px !important; min-height: 0 !important; font-size: 12.5px; }
.lib-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; padding-top: 4px; }
.lib-pg { all: unset; box-sizing: border-box; min-width: 34px; height: 32px; padding: 0 10px; border-radius: 8px; text-align: center; line-height: 32px;
  cursor: pointer; font-size: 13px; font-variant-numeric: tabular-nums; border: 1px solid var(--line); background: var(--surface); }
.lib-pg:hover:not(:disabled) { background: var(--surface-2); }
.lib-pg:disabled { opacity: .35; cursor: default; }
.lib-pg:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.lib-pg-on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 700; }
.lib-pg-on:hover:not(:disabled) { background: var(--accent); }
.lib-pg-gap { padding: 0 4px; color: var(--muted); }
.lib-pg-count { margin-left: 8px; }
.lib-kind { white-space: nowrap; }
.lib-quote-line .lib-kind { flex: none; }

/* 비중 설계 › 내 기준 */
.sz-rules > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.sz-rules > summary::-webkit-details-marker { display: none; }
.sz-rules > summary::before { content: '▸'; color: var(--muted); margin-right: 6px; transition: transform .15s; display: inline-block; }
.sz-rules[open] > summary::before { transform: rotate(90deg); }
.sz-rule-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px 22px; margin-top: 12px; }
.sz-rule-group { display: grid; gap: 8px; align-content: start; }
.sz-rule-group h3 { margin: 0; }
.sz-rule { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sz-rule-ask { display: grid; gap: 1px; font-size: 13.5px; min-width: 0; }
.sz-rule-val { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sz-rule-in { width: 72px !important; text-align: right; }
.sz-rule-money { min-width: 70px; }
@media (max-width: 480px) { .sz-rule { grid-template-columns: minmax(0, 1fr); } }
.mc-window { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mc-window-in { width: 64px !important; text-align: right; }

/* ── 전략 설계실 (views/strategy.js) ───────────────────── */
.st .linklike, .sj .linklike, .sc .linklike { font-size: inherit; font-weight: 500; }
.st-shelf { display: grid; gap: 8px; }
.st-shelf-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.st-shelf-row h2 { margin: 0 0 2px; }
.st-drafts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.st-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .st-layout { grid-template-columns: minmax(0, 1fr); } }
.st-wizard { display: grid; gap: 14px; min-width: 0; }
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.st-head h2 { margin: 0; }
.st-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; counter-reset: none; }
.st-step { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.st-step:hover { border-color: var(--line-strong); color: var(--fg); }
.st-step-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); font-size: 11px; font-weight: 600; }
.st-step-done { color: var(--fg); }
.st-step-done .st-step-n { background: var(--ok-bg); color: var(--ok); }
.st-step-on { border-color: var(--accent); color: var(--fg); background: var(--accent-soft); font-weight: 600; }
.st-step-on .st-step-n { background: var(--accent); color: var(--accent-fg); }
@media (max-width: 640px) { .st-step-l { display: none; } .st-step-on .st-step-l { display: inline; } }
.st-ask { font-size: 17px; font-weight: 600; margin: 2px 0 4px; letter-spacing: -0.01em; }
.st-body { min-width: 0; }
.st-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; align-items: start; }
.st-grid2 > .field input:not(.st-text) { max-width: 320px; }
.st-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; align-items: start; }
.st-text { width: 100%; min-height: 96px; resize: vertical; }
.st-sc { max-width: 560px; }
.st-sc th[scope="row"] { font-weight: 600; white-space: nowrap; }
.st-sc input { width: 120px; }
.st-pin { display: inline-flex; align-items: center; gap: 4px; }
.st-pin input { width: 64px; text-align: right; }
.st-more > summary { cursor: pointer; color: var(--muted); margin-bottom: 6px; }
.st-nav { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
.st-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.st-opt { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; display: grid; gap: 6px; align-content: start; background: var(--surface); min-width: 0; }
.st-opt-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft); }
.st-opt-over:not(.st-opt-on) { border-left: 3px solid var(--bad); }
.st-opt-off { opacity: 0.6; }
.st-opt-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.st-opt-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
.st-opt-in input { width: 100%; }
.st-line { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
.st-line-k { font-size: 12px; color: var(--muted); }
.st-line-v { font-weight: 600; }
.st-line-sub { grid-column: 2; }
.st-notes { margin: 0; padding-left: 16px; }
.st-mem { display: grid; gap: 10px; position: sticky; top: 12px; }
.st-mem-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.st-mem-block { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.st-mem-block p { margin: 0; }
.st-mem-title { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.st-mem-warn { border-left: 3px solid var(--warn); padding-left: 8px; }
.st-mem-bad { border-left-color: var(--bad); }
.st-mem-list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; }
.st-mem-lesson { font-size: 12px; }
.st-quad { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 11px; background: var(--surface-2); color: var(--muted); }
.st-quad-skill { background: var(--ok-bg); color: var(--ok); }
.st-quad-danger { background: var(--bad-bg); color: var(--bad); }
.st-quad-missed { background: var(--warn-bg); color: var(--warn); }
.st-quad-danger.st-quad-won { outline: 1px dashed var(--bad); outline-offset: -1px; }
.sc-help { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; white-space: nowrap; }
.st-rv { display: grid; gap: 10px; }
.st-rv-one { font-weight: 600; margin: 0; padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: var(--r-sm); }
.st-rv-block { display: grid; gap: 3px; }
.st-rv-block p { margin: 0; }
.st-rv-list { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.st-sum { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.st-sum dt { color: var(--muted); font-size: 12.5px; }
.st-sum dd { margin: 0; overflow-wrap: anywhere; }
.st-howto { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* ── 전략 일지 · 성과분석의 전략 (views/strat-journal.js · strat-score.js) ── */
.sj-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sj-card { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); display: grid; gap: 8px; }
.sj-card-open { padding-bottom: 10px; }
.sj-card-open > :not(.sj-line) { margin: 0 12px; }
.sj-crossed { border-left: 3px solid var(--bad); }
.sj-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; width: 100%; padding: 8px 12px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sj-line:hover { background: var(--surface-2); }
.sj-caret { color: var(--muted); width: 12px; }
.sj-why { margin: 0; overflow-wrap: anywhere; }
.sj-facts { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; }
.sj-facts dt { color: var(--muted); }
.sj-facts dd { margin: 0; overflow-wrap: anywhere; }
.sj-warn { margin: 0; padding: 6px 10px 6px 26px; background: var(--warn-bg); border-radius: var(--r-sm); color: var(--fg); }
.sj-retro { padding: 10px 12px; border-left: 3px solid var(--warn); }
.sj-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.sj-q { display: grid; gap: 10px; }
.sj-q input { width: 100%; }
.sj-edit { padding: 10px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); }
.sj-import { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sj-map > summary { cursor: pointer; padding: 6px 0; }
.sj-pick { margin: 8px 0 4px; max-width: 420px; }
.sj-pick select { width: 100%; }
.sc-table td { vertical-align: top; }
.sc-sum { grid-template-columns: 150px minmax(0, 1fr); }
@media (max-width: 560px) { .sj-facts, .sc-sum, .st-sum { grid-template-columns: minmax(0, 1fr); } .sj-facts dt, .sc-sum dt, .st-sum dt { margin-top: 4px; } }
.st-ref { display: flex; gap: 8px; align-items: stretch; max-width: 440px; min-width: 0; }
.st-ref input { flex: 1 1 auto; min-width: 0; }
.st-ref-px { white-space: nowrap; flex: none; }

.st-tp { display: grid; gap: 4px; padding: 4px 0 2px; }
.st-tp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-tp-row > input { width: 120px; }
.st-over { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; color: var(--bad); font-weight: 600; }
.st-over li::before { content: '▲ '; font-size: 10px; }

/* ── 원금과 수익: 맞춰 보기 · 기록 밖 입금 (v163) ── */
.cf-rec { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.cf-rec-gap { border-left: 3px solid var(--warn); }
.cf-rec-list { margin: 0; display: grid; gap: 2px; }
.cf-rec-row { display: grid; grid-template-columns: 170px 130px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; }
.cf-rec-row dt { color: var(--muted); font-size: 13px; }
.cf-rec-row dd { margin: 0; }
.cf-rec-last { border-top: 1px solid var(--line-strong); padding-top: 4px; margin-top: 2px; font-weight: 700; }
.cf-mf { display: grid; gap: 8px; }
.cf-mf > summary { cursor: pointer; padding: 4px 0; }
.cf-mf-form { display: grid; grid-template-columns: 140px 170px 160px minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.cf-mf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cf-mf-list li { display: grid; grid-template-columns: 90px 110px 110px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
@media (max-width: 760px) {
  .cf-rec-row { grid-template-columns: minmax(0, 1fr) auto; } .cf-rec-row dd.small { grid-column: 1 / -1; }
  .cf-mf-form, .cf-mf-list li { grid-template-columns: minmax(0, 1fr); }
}
.cf-chk td, .cf-chk th { white-space: nowrap; }
.cf-chk td.small { white-space: normal; min-width: 220px; }
.cf-chk-notes { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* v169: 열린 거래 — 미실현과 이미 실현한 몫을 함께 */
.pos-pnl-pair { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }

/* v170: 맞춰 보기 — 다 맞으면 한 줄로 접힘 */
.cf-box { display: grid; gap: 8px; }
.cf-box > summary { cursor: pointer; padding: 4px 0; }
.cf-box[open] > summary { margin-bottom: 2px; }
/* v171 */
.sj-pos { margin-top: 4px; }
.sj-pos td:first-child { white-space: nowrap; }
/* 한눈에 · 어디에 들어 있나: 도넛 | 계정별 */
.alloc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.alloc-acc { display: grid; gap: 6px; min-width: 0; border-left: 1px solid var(--line); padding-left: 24px; }
.alloc-main { min-width: 0; }
@media (max-width: 860px) {
  .alloc-split { grid-template-columns: minmax(0, 1fr); }
  .alloc-acc { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
}

/* v172: 종목 찾기 칸 — 선물 포지션·현물·지갑 맨 위, 내려도 따라옴 */
.cs-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 8px); }
.cs-bar.cs-on { border-color: var(--accent); }
.cs-icon { color: var(--muted); font-size: 1.1em; line-height: 1; }
.cs-input { flex: 1 1 220px; min-width: 0; padding: 6px 8px; background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; }
.cs-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cs-note { color: var(--muted); }
.cs-none { padding: 8px 0; }

/* v176: 급등 숏 후보 레이더 */
.pr-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pr-card.pr-open { border-color: var(--accent); }
.pr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: 100%; padding: 10px 12px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.pr-head:hover { background: var(--surface-2); }
.pr-score { display: inline-grid; place-items: center; min-width: 2.4em; height: 2.4em; border-radius: 50%; font-weight: 700; font-variant-numeric: tabular-nums; border: 2px solid var(--line); }
.pr-score.pr-strong { border-color: var(--ok, #22c55e); color: var(--ok, #22c55e); }
.pr-score.pr-watch { border-color: var(--accent); color: var(--accent); }
.pr-score.pr-early { color: var(--muted); }
.pr-coin { font-size: 1.05em; min-width: 4em; }
.pr-flags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pr-body { padding: 4px 12px 12px; }
.pr-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 24px; }
@media (max-width: 860px) { .pr-cols { grid-template-columns: minmax(0, 1fr); } }
.pr-why { margin: 4px 0 8px; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.pr-pts { display: inline-block; min-width: 2.6em; text-align: right; color: var(--ok, #22c55e); }
.pr-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 4px 0 8px; }
.pr-facts dt { color: var(--muted); }
.pr-facts dd { margin: 0; }
.pr-early > summary { cursor: pointer; padding: 6px 0; color: var(--muted); }

/* v177: 설계 중 칩 옆 지우기 */
.st-draft { display: inline-flex; align-items: center; gap: 2px; }
.st-draft-x { padding: 2px 8px; min-height: 0; line-height: 1.4; }

/* v179: 명언록 분야 탭 — 트레이딩 · 인생 · 리더십 */
.lib-areas { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.lib-area { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; margin-bottom: -1px; }
.lib-area:hover { color: var(--fg); }
.lib-area-on { color: var(--fg); border-bottom-color: var(--accent); }
.lib-area-n { font-size: 0.85em; font-weight: 400; color: var(--muted); }
.lib-area-tag { display: inline-block; font-size: 0.75em; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-left: 6px; }
.lib-area-tag-1 { border-color: color-mix(in srgb, var(--ok, #22c55e) 50%, transparent); }
.lib-area-tag-2 { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.lib-kinds { display: inline-flex; align-items: center; gap: 6px; } .lib-kinds .lib-area-tag { margin-left: 0; }

/* v180: 명언록 — 한 칸에 묻기 · 마음 지도 · 거르는 중 · 뜻으로 찾은 결과 */
.lib-ask { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lib-ask .lib-ask-input { flex: 1 1 360px; min-width: 0; }
.lib-moodmap { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.lib-moodmap-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; justify-content: space-between; }
.lib-moodmap-rows { display: grid; gap: 6px; }
.lib-moodrow { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 8px; align-items: center; }
.lib-moodrow:only-child { grid-template-columns: minmax(0, 1fr); }
.lib-moodrow-area { color: var(--muted); font-weight: 600; }
.lib-moodtiles { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-moodtile { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); font: inherit; font-size: 0.9em; cursor: pointer; }
.lib-moodtile:hover { border-color: var(--accent); }
.lib-moodtile-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.lib-moodtile-n { font-size: 0.85em; color: var(--muted); }
.lib-moodtile-empty { border-style: dashed; color: var(--muted); }
.lib-moods { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.lib-mood { font: inherit; font-size: 0.78em; padding: 1px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: none; color: var(--accent); cursor: pointer; }
.lib-mood-on { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.lib-active { align-items: center; }
.lib-ask-res { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 10px; }
.lib-ask-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.lib-ask-head .btn { margin-left: auto; }
.lib-ask-note { margin: 0; color: var(--muted); }
.lib-why { margin: 2px 0 0; color: var(--accent); }
.lib-q-who.linklike { font-weight: 600; color: inherit; }
.view-library .linklike { font-size: inherit; font-weight: 500; }

/* v182: 알림에서 연 거래 줄을 잠깐 밝혀 어디인지 보이게 */
@keyframes trade-flash { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.trade-flash { animation: trade-flash 2.4s ease-out; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .trade-flash { animation: none; outline: 2px solid var(--accent); } }

/* v184: [그 글 보기] — 알림 안에 그 글을 펼침, 겹치는 줄은 밝게 */
.lib-peek { flex-basis: 100%; display: grid; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); }
.lib-peek-text p { margin: 0; line-height: 1.6; }
.lib-peek-hit { background: color-mix(in srgb, var(--warn, #d29922) 22%, transparent); border-radius: 4px; padding: 0 4px; margin: 0 -4px !important; font-weight: 600; }
.lib-peek-orig { margin: 0; }

/* v187: 토큰 언락 — Claude 가 웹에서 찾은 것 + 직접 적은 것 */
.ul-ctl { display: grid; gap: 8px; margin-bottom: 10px; }
.ul-actions { flex-wrap: wrap; align-items: center; gap: 8px; }
.ul-actions .ul-ask { flex: 0 1 15em; width: auto; min-width: 0; max-width: 100%; }
.ul-table td { vertical-align: top; }
.ul-row.ul-near { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.ul-row.ul-long { background: color-mix(in srgb, var(--warn, #d29922) 12%, transparent); }
.ul-why { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0; }
.ul-links { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.ul-table .ul-links { display: flex; margin-top: 3px; }
.ul-quiet .ul-links, .ul-line .ul-links { margin-left: 4px; }
.ul-links a { white-space: nowrap; }
.ul-line { margin: 6px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; line-height: 1.5; }
.ul-quiet, .ul-manual { margin-top: 10px; }
.ul-quiet summary, .ul-manual summary { cursor: pointer; }
.ul-quiet li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.ul-manual .inline-form { margin-top: 8px; }

/* v189: 떠 있는 풀이 판 (poptip) + 논리 × 실행 2×2 */
.pt-anchor { cursor: help; }
.pt-anchor:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.pt-box { position: fixed; z-index: 1000; max-width: min(460px, calc(100vw - 24px)); padding: 14px; border-radius: var(--r-md);
  background: var(--surface); color: var(--fg); border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 12px 32px rgba(0, 0, 0, .28);
  animation: pt-in .12s ease-out; }
@keyframes pt-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.pt-box.pt-above { animation-name: pt-in-up; }
@keyframes pt-in-up { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.pt-arrow { position: absolute; top: -6px; width: 10px; height: 10px; margin-left: -5px; background: var(--surface);
  border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); transform: rotate(45deg); }
.pt-above .pt-arrow { top: auto; bottom: -6px; transform: rotate(225deg); }

.qm { display: grid; gap: 10px; font-size: 12px; }
.qm-head { display: grid; gap: 2px; }
.qm-head strong { font-size: 13px; letter-spacing: .01em; }
.qm-head span, .qm-foot { color: var(--muted); }
.qm-foot { margin: 0; font-size: 11px; }
.qm-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px; align-items: stretch; }
.qm-col { text-align: center; font-size: 11px; color: var(--muted); letter-spacing: .04em; padding-bottom: 2px; }
.qm-row { display: flex; align-items: center; justify-content: center; text-align: center; white-space: pre-line; line-height: 1.35; width: 3.4em; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.qm-cell { display: grid; gap: 4px; align-content: start; padding: 9px 10px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line);
  transition: opacity .12s; min-width: 0; }
.qm-cell p { margin: 0; line-height: 1.45; }
.qm-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.qm-top .st-quad { margin-left: 0; }
.qm-n { color: var(--muted); font-size: 11px; }
.qm-say { color: var(--fg); }
.qm-won { color: var(--muted); font-size: 11px; }
.qm-won-on { color: var(--fg); font-weight: 600; }
.qm-next { color: var(--muted); font-size: 11px; border-top: 1px dashed var(--line); padding-top: 4px; }
.qm-skill { border-left: 3px solid var(--ok); }
.qm-missed { border-left: 3px solid var(--warn); }
.qm-goodLoss { border-left: 3px solid var(--line-strong); }
.qm-danger { border-left: 3px solid var(--bad); }
.qm-on { border-top-color: var(--accent); border-right-color: var(--accent); border-bottom-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.qm-dim { opacity: .55; }
@media (max-width: 480px) { .qm-grid { grid-template-columns: auto 1fr 1fr; gap: 4px; } .qm-cell { padding: 7px; } .qm-next { display: none; } }

/* v191: 종목별 위험·수익 — 점에 올리면 뜨는 판 */
.scatter-wrap .sc-dot { cursor: pointer; transition: opacity .12s; outline: none; }
.scatter-wrap .sc-dot circle { transition: stroke-width .12s; stroke: var(--surface); stroke-width: 1.5; }
.scatter-wrap .sc-nolabel .sc-name { opacity: 0; transition: opacity .12s; }
.scatter-wrap.sc-focus .sc-dot { opacity: .45; }
.scatter-wrap.sc-focus .sc-dot.sc-hot { opacity: 1; }
.scatter-wrap .sc-dot.sc-hot circle { stroke: var(--fg); stroke-width: 2.5; }
.scatter-wrap .sc-dot.sc-hot .sc-name { opacity: 1; }
.scatter-wrap .sc-dot:focus-visible circle { stroke: var(--focus); stroke-width: 3; }

.rr { display: grid; gap: 10px; width: min(330px, calc(100vw - 52px)); font-size: 12px; }
.rr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rr-coin { font-size: 16px; letter-spacing: .02em; margin-right: 2px; }
.rr-say { margin: -4px 0 0; color: var(--muted); }
.rr-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rr-tile { display: grid; gap: 2px; padding: 7px 8px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.rr-tile-l { font-size: 10.5px; color: var(--muted); letter-spacing: .03em; }
.rr-tile strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr .rr-pos { color: var(--ok); }
.rr .rr-neg { color: var(--bad); }
.rr-dist { display: grid; gap: 4px; }
.rr-dist-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.rr-strip { position: relative; height: 22px; margin: 0 6px; }
.rr-strip-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line-strong); border-radius: 1px; }
.rr-strip-zero { position: absolute; top: 1px; bottom: 1px; width: 2px; margin-left: -1px; background: var(--fg); opacity: .55; }
.rr-strip-avg { position: absolute; top: 0; bottom: 0; width: 0; margin-left: -1px; border-left: 2px dashed var(--accent); }
.rr-strip-dot { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; border: 1.5px solid var(--surface); opacity: .9; }
.rr-strip-dot.rr-up { background: var(--ok); }
.rr-strip-dot.rr-down { background: var(--bad); }
.rr-dist-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.rr-meta { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; padding-top: 8px; border-top: 1px dashed var(--line); }
.rr-meta dt { color: var(--muted); }
.rr-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* v192: AI 복기 — 데일리 노트에서 (극복할 것 · 배울 것) */
.cc-notes { padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.cc-notes-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.cc-notes-head .sub { margin: 0; }
.cc-notes .cc-prose { margin: 8px 0 0; }
.cc-notes-col .label-caps { margin-bottom: 6px; }
.cc-notes .cc-list > li { background: var(--surface); }
.cc-dates { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.cc-date { font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.cc-notes .cc-cols { align-items: start; }
.cc-notes .cc-list > li { align-content: start; }

/* v194: 저평가 롱 후보 */
.pr-score.vr-strong { color: var(--ok); border-color: var(--ok); }
.pr-score.vr-watch { color: var(--accent); border-color: var(--accent); }
.pr-score.vr-weak { color: var(--muted); border-color: var(--line-strong); }
.vr-parts { display: grid; gap: 6px; margin-top: 4px; }
.vr-part { display: grid; grid-template-columns: 8.5em 1fr 3.4em; align-items: center; gap: 8px; }
.vr-part-l { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vr-part-bar { position: relative; height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.vr-part-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--accent); }
.vr-part-fill.vr-cheap { background: var(--accent); }
.vr-part-fill.vr-earn { background: var(--ok); }
.vr-part-fill.vr-hold { background: color-mix(in srgb, var(--ok) 60%, var(--accent)); }
.vr-part-fill.vr-price { background: var(--warn); }
.vr-part-fill.vr-supply { background: color-mix(in srgb, var(--muted) 70%, var(--accent)); }
.vr-part-n { text-align: right; color: var(--muted); }

/* v196: 주식·지수·원자재 토큰 알아보기 */
.tag-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--accent-soft); }

/* v197: 데일리 노트 — 종류 · 이어 붙이기 · 아이디어의 그 뒤 */
.note-head-l { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.note .note-row span:last-child { white-space: pre-line; }
.cc-ideas .cc-item-top { flex-wrap: wrap; gap: 6px; justify-content: flex-start; align-items: center; }
.cc-notes .cc-ideas > li { background: var(--surface); }

/* v198: 데일리 노트 맨 위 한 줄 — 날짜 · 무엇을 남기나 · 그날 상태 */
.note-form .note-top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 32px; }
.note-top > label.field { flex: 0 1 220px; min-width: 180px; }
.note-top > div.field { flex: 0 1 280px; }
.note-daystate { display: grid; gap: 6px; flex: 1 1 360px; min-width: 0; }
.note-daystate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.note-daystate-l { width: 4.5em; flex: none; }
.note-daystate .chips { gap: 6px; }

/* ── v199 펀드 성과 리포트 ─────────────────────────────── */
.an-tabs { align-self: flex-start; }
.fund-head h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fund-hero { display: grid; grid-template-columns: minmax(220px, 1fr) 2.4fr; gap: 16px; align-items: stretch; margin-top: 4px; }
.fund-hero-main { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-md); padding: 14px 16px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.fund-hero-label { font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.fund-hero-value { font-size: 40px; font-weight: 600; line-height: 1.1; font-family: var(--font-mono); }
.fund-hero-side { margin: 0; }
.fund-why { margin-top: 10px; max-width: 72ch; }
.fund-note { margin-top: 6px; }
.fund-note summary { cursor: pointer; }
.fund-note ul { margin: 6px 0 0 18px; display: grid; gap: 4px; }
.warn-text { color: var(--warn); }
.fund-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 6px; }
.fund-key { display: inline-flex; align-items: center; gap: 6px; }
.fund-key i { width: 18px; height: 3px; border-radius: 2px; background: currentColor; display: inline-block; }
.fund-l-fund { color: var(--accent); stroke: var(--accent); }
.fund-l-btc { color: #c77d0a; stroke: #c77d0a; }
.fund-l-alt { color: #7a5bd1; stroke: #7a5bd1; }
.fund-key.fund-l-fund strong, .fund-key.fund-l-btc strong, .fund-key.fund-l-alt strong { color: var(--fg); }
.fund-chart-wrap { position: relative; padding-right: 54px; }
.fund-chart { width: 100%; height: 240px; display: block; overflow: visible; }
.fund-line { stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fund-line.fund-l-btc, .fund-line.fund-l-alt { stroke-width: 1.5; opacity: .85; }
.fund-zero { stroke: var(--line-strong); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.fund-axis { position: absolute; right: 0; top: 0; bottom: 0; width: 50px; }
.fund-axis span { position: absolute; right: 0; transform: translateY(-50%); font-family: var(--font-mono); }
.fund-xaxis { display: flex; justify-content: space-between; padding-right: 54px; margin: 2px 0 10px; font-family: var(--font-mono); }
.fund-table td.fund-cell strong { font-weight: 600; }
.fund-table .linklike { font-size: inherit; font-weight: 500; white-space: nowrap; }
.fund-table th, .fund-table td { white-space: nowrap; }
.fund-trio { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.fund-trio > .card { height: 100%; }
#fund-sheet select { min-width: 140px; }
.fund-sheet { border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 22px 24px; background: var(--surface); display: grid; gap: 18px; }
.fund-sheet-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--fg); padding-bottom: 10px; }
.fund-sheet-top h3 { margin: 2px 0 0; font-size: 24px; }
.fund-sheet-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fund-sheet-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fund-big { border-left: 2px solid var(--line-strong); padding-left: 10px; }
.fund-big:first-child { border-left-color: var(--accent); }
.fund-big-v { font-size: 26px; font-weight: 600; font-family: var(--font-mono); }
.fund-sheet-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 22px; }
.fund-block h4 { margin: 0 0 6px; font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.fund-block dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin: 0; font-size: 13px; }
.fund-block dt { color: var(--muted); min-width: 0; }
.fund-block dd { margin: 0; text-align: right; }
.fund-sheet-read { background: var(--bg); border-radius: var(--r-md); padding: 10px 14px; font-size: 13px; }
.fund-sheet-read ul { margin: 6px 0 0 18px; display: grid; gap: 3px; }
.fund-sheet-foot { border-top: 1px solid var(--line); padding-top: 8px; }
@media (max-width: 760px) {
  .fund-hero { grid-template-columns: 1fr; }
  .fund-hero-value { font-size: 32px; }
  .fund-sheet { padding: 16px; }
  .fund-sheet-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#fund-print { display: none; }
.fund-trio .linklike { font-size: 13px; font-weight: 500; align-self: flex-start; }
@media print {
  body.fund-printing > *:not(#fund-print) { display: none !important; }
  body.fund-printing { background: #fff; }
  body.fund-printing #fund-print { display: block; }
  #fund-print .fund-sheet { border: 0; padding: 0; background: #fff; color: #111;
    --fg: #111; --muted: #555; --line: #ddd; --line-strong: #999; --bg: #f3f3f3; --surface: #fff; }
  @page { size: A4; margin: 14mm; }
}
.fund-warn { margin: 8px 0 0 18px; display: grid; gap: 3px; }
.note-auto { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.chip-static { cursor: default; pointer-events: none; }

/* ── Me (v204): 문 · 비망록 ───────────────────────────────── */
.me-door { max-width: 420px; margin: 8vh auto 0; text-align: center; }
.me-door-in { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; }
.me-door h2 { margin: 0; font-size: 26px; letter-spacing: 0.06em; }
.me-lock-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.me-pin { display: flex; gap: 8px; width: 100%; max-width: 300px; }
.me-pin input { flex: 1; min-width: 0; text-align: center; font-size: 20px; letter-spacing: 0.3em; padding: 10px; }
.me-door-note { margin: 4px 0 0; }

.nb-wrap { gap: 14px; }
.nb-new { align-items: center; flex-wrap: wrap; }
.nb-pastehint { margin-left: 4px; }
.nb-filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.nb-search { flex: 1 1 240px; min-width: 0; }
.nb-tagbar { gap: 6px; }
.nb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.nb-list.nb-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); align-items: start; }
.nb-list.nb-grid > .nb-open { grid-column: 1 / -1; }      /* 펼쳐 읽는 글은 한 줄을 다 씀 (v207) */
.nb-list.nb-grid > .nb-text .nb-preview { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.nb-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-md, 10px); background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.nb-card.nb-open { border-color: var(--line-strong); }
.nb-card.nb-just { animation: nb-just 2s ease-out; }   /* 방금 남긴 글 (v215) */
@keyframes nb-just { 0%, 35% { box-shadow: 0 0 0 2px var(--accent); } 100% { box-shadow: 0 0 0 2px transparent; } }
@media (prefers-reduced-motion: reduce) { .nb-card.nb-just { animation: none; outline: 2px solid var(--accent); } }
.nb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: pointer; }
.nb-head:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.nb-title { flex: 1 0 100%; margin: 0; font-size: 16px; line-height: 1.4; text-wrap: balance; overflow-wrap: anywhere; }
.nb-kind { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.nb-kind-0 { color: var(--accent); background: var(--accent-soft); }
.nb-kind-1 { color: var(--ok); background: var(--ok-bg); }
.nb-kind-2 { color: var(--warn); background: var(--warn-bg); }
.nb-star { color: #e0a800; }
.nb-preview { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.nb-body { line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 68ch; }
.nb-serif { font-family: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Batang, serif; font-size: 15.5px; }
.nb-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nb-thumb { padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); cursor: zoom-in; overflow: hidden; width: 96px; height: 96px; }
.nb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nb-strip-big .nb-thumb { width: 100%; height: auto; max-height: 340px; }
.nb-strip-big .nb-thumb img { height: auto; max-height: 340px; object-fit: contain; background: #fff; }
.nb-open .nb-strip-big .nb-thumb { width: 96px; height: 96px; }
.nb-open .nb-strip-big .nb-thumb img { height: 100%; object-fit: cover; }
.nb-more { color: var(--muted); padding: 0 4px; }
.nb-caps { margin: 0; padding-left: 18px; }
.nb-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.nb-acts { flex: 1 0 100%; flex-wrap: wrap; }
.nb-pager { justify-content: center; align-items: center; }
.nb-usage { margin: 0; text-align: right; }

.nb-form { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md, 10px); padding: 16px; background: var(--surface); }
.nb-form-top { display: flex; flex-wrap: wrap; gap: 12px; }
.nb-form-top > .field { flex: 1 1 220px; min-width: 0; }
.nb-form-top > .field:first-child:has(input[type=date]) { flex: 0 0 auto; }
.nb-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.nb-tagsugg { margin-top: 6px; gap: 6px; }
.nb-media-edit { display: flex; flex-direction: column; gap: 10px; }
.nb-drop { border: 2px dashed var(--line-strong); border-radius: var(--r-md, 10px); padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; text-align: center; background: var(--surface-2); }
.nb-media-small .nb-drop { padding: 10px; flex-direction: row; justify-content: center; gap: 10px; flex-wrap: wrap; }
.nb-drop:hover, .nb-drop:focus-visible, .nb-drop-on { border-color: var(--accent); color: var(--accent); outline: none; }
.nb-file { display: none; }
.nb-pends { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.nb-pend { margin: 0; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--surface); min-width: 0; }
.nb-pend img { width: 100%; height: 120px; object-fit: contain; background: var(--surface-2); border-radius: 4px; }
.nb-pend-new { border-style: dashed; border-color: var(--accent); }
.nb-pend input { width: 100%; min-width: 0; }
.nb-fav-toggle { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }

.nb-light { position: fixed; inset: 0; z-index: 200; background: rgba(8, 10, 14, 0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.nb-light-bar { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; display: flex; gap: 10px; align-items: center; justify-content: flex-end; color: #e8ecf2; }
.nb-light-bar > span { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-light-bar .btn { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.nb-light-img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; background: #fff; }
.nb-light-cap { color: #e8ecf2; margin: 0; max-width: 70ch; text-align: center; }
.nb-light-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 30px; cursor: pointer; }
.nb-prev { left: max(10px, env(safe-area-inset-left, 0px)); }
.nb-next { right: max(10px, env(safe-area-inset-right, 0px)); }

/* ── 캔들 분석 (v208) ─────────────────────────────────── */
.view-candles-in .good { color: var(--ok); }
.view-candles-in .bad { color: var(--bad); }
.cdl-ctl { flex-wrap: wrap; align-items: center; gap: 8px; }
.cdl-coin-in { width: 150px; max-width: 100%; flex: 0 0 auto; }
.cdl-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--gap, 14px); align-items: start; }
@media (max-width: 980px) { .cdl-top { grid-template-columns: minmax(0, 1fr); } }
.cdl-chart { width: 100%; max-width: 100%; }
.cdl-chart svg { width: 100%; height: 200px; display: block; }
.cdl-bar.cdl-up { fill: var(--ok); stroke: var(--ok); }
.cdl-bar.cdl-dn { fill: var(--bad); stroke: var(--bad); }
.cdl-wick { stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.cdl-partial { opacity: 0.45; }
.cdl-mk { font-size: 12px; font-weight: 700; }
.cdl-date { font-size: 10.5px; fill: var(--muted); }
text.cdl-bull { fill: var(--ok); } text.cdl-bear { fill: var(--bad); } text.cdl-neutral { fill: var(--muted); }
.cdl-bull { color: var(--ok); } .cdl-bear { color: var(--bad); } .cdl-neutral { color: var(--muted); }
.cdl-evlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cdl-evlist li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.cdl-evday { min-width: 64px; }
.cdl-evs { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.cdl-ev { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.cdl-ev.cdl-bull { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-bg); }
.cdl-ev.cdl-bear { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: var(--bad-bg); }
.cdl-ind { display: flex; flex-direction: column; }
.cdl-ind-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cdl-ind-row:last-child { border-bottom: 0; }
.cdl-ind-row > * { min-width: 0; overflow-wrap: anywhere; }
.cdl-sim { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.cdl-sim-col { min-width: 0; }
.cdl-sim-col h3 { font-size: 14px; margin: 0 0 2px; }
.cdl-lean { margin: 0; font-size: 14px; }
.cdl-tbl { min-width: 0; }
.cdl-tbl td, .cdl-tbl th { white-space: nowrap; }
.cdl-board td:first-child { white-space: normal; min-width: 150px; }
.cdl-boardctl { flex-wrap: wrap; gap: 8px; }
.cdl-askrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; align-items: stretch; }
@media (max-width: 760px) { .cdl-askrow { grid-template-columns: minmax(0, 1fr); } }
.cdl-drop { min-height: 170px; }
.cdl-drop img { max-width: 100%; max-height: 260px; object-fit: contain; border-radius: 6px; }
.cdl-file { display: none; }
.cdl-askside { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cdl-askside textarea { width: 100%; resize: vertical; }
.cdl-result { border: 1px solid var(--line); border-radius: var(--r-md, 10px); padding: 12px 16px; background: var(--surface-2); }
.cdl-answer h4 { margin: 12px 0 4px; font-size: 14px; }
.cdl-answer h4:first-child { margin-top: 0; }
.cdl-answer p { margin: 2px 0; line-height: 1.65; }

/* ── 캔들 & 지표분석 v209: 탭 · 내 패턴 자료 · 내 분석 기록 ── */
.cdl-tabs { flex-wrap: wrap; }
.cdl-tabs .seg-btn[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.cdl-mine { margin-left: 6px; font-size: 10.5px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); cursor: pointer; line-height: 1.6; }
.cl-form .nb-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.cl-form select { max-width: 100%; }
.cl-conf { width: 76px; }
.cl-grid .cl-card { cursor: pointer; }
.cl-grid .cl-card:hover { border-color: var(--line-strong); }
.cl-reader { border-color: var(--accent); }
.cl-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.cl-imgs figure { margin: 0; }
.cl-imgs img { width: 100%; max-height: 420px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; display: block; }
.ik-drop-small { padding: 10px; flex-direction: row; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.cl-verdict { margin: 0; }
.cl-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; align-items: start; }
.view-candles-in .cl-two .good, .view-candles-in .cl-recs .good { color: var(--ok); }
.cl-recs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cl-rec { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r-md, 10px); padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.cl-rec.cl-hit { border-left-color: var(--ok); }
.cl-rec.cl-miss { border-left-color: var(--bad); }
.cl-rec-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cl-rec-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cl-rec-body p { margin: 0; white-space: pre-wrap; }
.cl-mark { font-weight: 700; width: 1.2em; }
.cl-hit .cl-mark { color: var(--ok); } .cl-miss .cl-mark { color: var(--bad); }

/* ── 캔들 & 지표분석 v211: 내 사례 · 닮은 사례 · 알림 ── */
.cs-top { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 140px) auto; gap: 12px; align-items: end; }
@media (max-width: 560px) { .cs-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cs-snapbox { border: 1px dashed var(--line-strong); border-radius: var(--r-md, 10px); padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); }
.cs-snap-row { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
.cs-line { margin: 0; }
.cs-h4 { margin: 0 0 6px; font-size: 13px; }
.cs-gap { margin-top: 8px; }
.cs-card.cl-hit { border-left: 4px solid var(--ok); } .cs-card.cl-miss { border-left: 4px solid var(--bad); }
.cl-hitmark { color: var(--ok); } .cl-missmark { color: var(--bad); } .cl-pend { color: var(--muted); }
.cs-sims { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cs-sim { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; border: 1px solid var(--line); border-radius: var(--r-md, 10px); padding: 10px; background: var(--surface); }
.cs-sim:not(:has(.cs-sim-img)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .cs-sim { grid-template-columns: minmax(0, 1fr); } }
.cs-sim-img { width: 100%; max-height: 120px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--line); }
.cs-sim-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cs-sim-body p { margin: 0; }
.cs-sim-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.cs-score { color: var(--accent); font-size: 16px; }
.cs-alerts { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--r-md, 10px); padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.cs-alerts-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cs-alert { border-top: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.cs-alert p { margin: 0; }

/* v212: 코인 칩 × (목록에서 빼기) */
.cdl-coins { gap: 6px; }
.cdl-coin { display: inline-flex; align-items: center; position: relative; }
.cdl-coin-x { position: absolute; top: -7px; right: -7px; z-index: 1; width: 17px; height: 17px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 12px; line-height: 1; cursor: pointer; padding: 0; opacity: 0; transition: opacity .12s; }
.cdl-coin:hover .cdl-coin-x, .cdl-coin-on .cdl-coin-x, .cdl-coin-x:focus-visible { opacity: 1; }
@media (hover: none) { .cdl-coin-x { opacity: 1; } }
.cdl-coin-x:hover { color: var(--bad); border-color: var(--bad); }

/* v213: 합성 패턴 */
.cdl-ev.cdl-combo { border-style: dashed; font-weight: 600; }
.cl-combo .chips { align-items: center; }
.cl-combo-line { margin: 0; }
.cdl-combo-parts { white-space: normal !important; min-width: 180px; }

/* ── Me: 읽기 화면 (v217) — 수필·일기를 책처럼 ───────────────────────── */
.nbr { --nbr-fs: 19px; display: flex; flex-direction: column; gap: 14px; }
.nbr-bar { position: sticky; top: calc(62px + env(safe-area-inset-top, 0px)); z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md, 10px); background: var(--surface); box-shadow: var(--shadow); }
.nbr-where { flex: 1; text-align: center; }
.nbr-tools { display: flex; gap: 4px; margin-left: auto; }
.nbr-tools .btn { min-width: 38px; }
.nbr-page { width: 100%; max-width: calc(var(--nbr-fs) * 34 + 112px); margin: 0 auto; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 5vw, 56px); display: flex; flex-direction: column; gap: 28px; }
.nbr-headline { display: flex; flex-direction: column; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.nbr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nbr-title { margin: 0; font-family: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Batang, serif; font-weight: 700;
  font-size: calc(var(--nbr-fs) * 1.55); line-height: 1.35; letter-spacing: -0.01em; text-wrap: balance; word-break: keep-all; outline: none; }
.nbr-body { font-family: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Batang, serif; font-size: var(--nbr-fs); line-height: 1.95; color: var(--fg);
  word-break: keep-all; overflow-wrap: anywhere; hanging-punctuation: first; }
.nbr-p { margin: 0 0 0.62em; white-space: pre-wrap; }
.nbr-p.nbr-head { font-weight: 700; margin-top: 0.9em; }
.nbr-p.nbr-head:first-child { margin-top: 0; }
.nbr-gap { height: 0.9em; }
.nbr-body ::selection { background: var(--accent-soft); }
.nbr-figs { display: flex; flex-direction: column; gap: 18px; }
.nbr-fig { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.nbr-figbtn { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; display: block; }
.nbr-figbtn img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.nbr-foot { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.nbr-navs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.nbr-nav { min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--fg); cursor: pointer; font: inherit; }
.nbr-nav strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbr-nav.nbr-next { text-align: right; grid-column: 2; }
.nbr-nav:hover { border-color: var(--line-strong); }
.nbr-nav:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 560px) {
  .nbr-page { padding: 22px 18px; border-radius: 10px; gap: 22px; }
  .nbr-navs { grid-template-columns: minmax(0, 1fr); }
  .nbr-nav.nbr-next { grid-column: 1; }
  .nbr-where { display: none; }
}

/* 누적 수익률 견주기 — 마우스를 대면 그날 값 (v218) */
.fund-chart-wrap { touch-action: pan-y; cursor: crosshair; }
.fund-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: currentColor; border: 2px solid var(--surface); transform: translate(-50%, -50%); pointer-events: none; box-sizing: content-box; z-index: 2; }
.fund-tip { min-width: 172px; gap: 4px; }
.fund-tip-day { font-size: 12.5px; }
.fund-tip-rows { display: grid; gap: 2px; }
.fund-tip-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 6px; font-size: 12px; }
.fund-tip-row i { width: 10px; height: 3px; border-radius: 2px; background: currentColor; }
.fund-tip-row.muted i { background: transparent; }
.fund-tip-name { color: var(--muted); }
.fund-tip-row b { font-weight: 600; text-align: right; color: var(--fg); }
.fund-tip-row b.pnl-up { color: var(--ok); }
.fund-tip-row b.pnl-down { color: var(--bad); }
.fund-tip-gap { border-top: 1px dashed var(--line); padding-top: 3px; margin-top: 1px; }

/* Me: 같은 글 · 같은 그림 알림 (v219) */
.nb-dups { display: flex; flex-direction: column; gap: 8px; }
.nb-dup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.nb-dup > div:first-of-type { flex: 1 1 260px; min-width: 0; }
.nb-dup-soft { background: var(--surface-2); border-color: var(--line); }
.nb-dup-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-dup-img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.nb-dup-peek { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.nb-dup-peek p { margin: 0; white-space: pre-wrap; }
.nb-dup-peek .nb-strip img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.nb-dup-q { border-left: 3px solid var(--accent); }

/* ── 명언록: 카드 목록 · 읽기 화면 (v221, Me 와 같은 결) ───────────────── */
.lib-quotes.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; align-items: start; }
.lib-quotes.lib-grid > .lib-quote-editing { grid-column: 1 / -1; }
.lib-card { list-style: none; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.lib-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.lib-card.lib-quote-fav { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.lib-card-hit { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 10px; min-width: 0; }
.lib-card-hit:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 12px; }
.lib-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lib-card-orig { font-family: "Noto Serif KR", "Nanum Myeongjo", Batang, serif; color: var(--muted); font-size: 14px; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.lib-card-text { font-family: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", Batang, serif; font-size: 16.5px; line-height: 1.8; color: var(--fg); white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.lib-card-short .lib-card-text { font-size: 18.5px; line-height: 1.7; }
.lib-card-who { font-size: 13px; color: var(--muted); }
.lib-card-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 12px 10px 18px; margin-top: auto; border-top: 1px dashed var(--line); }
.lib-card-foot .lib-quote-date { margin-left: auto; }
.lib-card-foot .lib-star { min-width: 32px; }
.lib-card.nb-just { animation: nb-just 2s ease-out; }

.lib-r .nbr-page { gap: 24px; }
.lib-r-head { padding-bottom: 16px; }
.lib-r-orig { padding: 14px 18px; border-radius: 10px; background: var(--surface-2); }
.lib-r-orig .nbr-body { font-size: calc(var(--nbr-fs) * 1.1); color: var(--muted); letter-spacing: 0.02em; }
.lib-r-text { outline: none; }
.lib-r-text .nbr-body { font-size: calc(var(--nbr-fs) * 1.08); }
.lib-r-short .nbr-body { font-size: calc(var(--nbr-fs) * 1.4); line-height: 1.7; text-align: center; text-wrap: balance; padding: 12px 0; }
.lib-r-short .nbr-p { margin-bottom: 0.35em; }
.lib-r-who { margin: -8px 0 0; text-align: right; color: var(--muted); font-size: calc(var(--nbr-fs) * 0.85); }
.lib-r-sec { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.lib-r-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
.lib-r-small { font-size: calc(var(--nbr-fs) * 0.9); color: var(--fg); }
.lib-r .lib-moods { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* v222: 자리를 잡아 둔 그림은 비율대로 (width/height 속성 + height:auto) */
.nb-strip-big .nb-thumb img[width][height], .nbr-figbtn img[width][height] { height: auto; }

/* ── 분석 글 (v223): 캔들 & 지표분석의 내 사례 · 내 패턴 자료 ───────────────── */
.cl-prose { display: flex; flex-direction: column; gap: 10px; max-width: 46em; padding: 18px 22px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.cl-prose-h { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
.cl-prose-h .muted { font-weight: 400; letter-spacing: 0; }
.prose { font-size: 16px; line-height: 1.9; color: var(--fg); word-break: keep-all; overflow-wrap: anywhere; }
.prose .ps-p { margin: 0 0 0.75em; }
.prose .ps-p:last-child { margin-bottom: 0; }
.prose .ps-head { font-weight: 700; margin-top: 0.9em; }
.prose .ps-head:first-child { margin-top: 0; }
.prose .ps-item { padding-left: 1.1em; text-indent: -1.1em; }
.prose .ps-gap { height: 0.6em; }
.prose .ps-term { color: var(--accent); font-weight: 600; }
.prose .ps-num { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg); }
.prose .ps-date { font-weight: 600; color: var(--fg); border-bottom: 1px dotted var(--line-strong); }
@media (max-width: 560px) { .cl-prose { padding: 14px 14px 12px; } .prose { font-size: 15.5px; } }

/* ── 몸과 마음 (v224) ─────────────────────────────── */
.bd-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.bd-daypick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bd-note { margin: 0; }
.bd-form { gap: 18px; }
.bd-group { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.bd-h { margin: 0 0 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.bd-scale { display: grid; grid-template-columns: 84px auto minmax(0, 1fr); align-items: center; gap: 10px; }
.bd-scale-label { font-weight: 600; }
.bd-dots { display: flex; gap: 6px; }
.bd-dot { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; transition: transform .1s, background .15s; }
.bd-dot:hover { border-color: var(--line-strong); }
.bd-dot:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bd-dot.on { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.06); }
.bd-dot-stress.on { background: var(--warn); border-color: var(--warn); }
.bd-inline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bd-pains { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-pain-1 { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.bd-pain-2 { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); border-color: var(--warn); }
.bd-pain-3 { background: color-mix(in srgb, var(--bad) 22%, var(--surface)); border-color: var(--bad); font-weight: 600; }
.bd-red { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.bd-red summary { cursor: pointer; font-weight: 600; }
.bd-red .bd-pains { margin-top: 10px; }
.bd-redchip.on { background: color-mix(in srgb, var(--bad) 25%, var(--surface)); border-color: var(--bad); font-weight: 600; }
.bd-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.bd-text { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; line-height: 1.6; }
.bd-more { align-self: flex-start; }
.bd-nums { gap: 12px; align-items: flex-end; }
.bd-advice .card-head h2 { display: flex; align-items: center; gap: 8px; }
.bd-redbanner { margin-bottom: 12px; }
.bd-adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.bd-adv { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); min-width: 0; }
.bd-adv-h { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.bd-adv-ic { font-size: 18px; }
.bd-adv ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; line-height: 1.7; word-break: keep-all; }
.bd-trade-bad { border-color: var(--bad); }
.bd-trade-meh { border-color: var(--warn); }
.bd-askrow { display: flex; gap: 8px; flex-wrap: wrap; }
.bd-askin { flex: 1 1 280px; min-width: 0; }
.bd-answer { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 16px; background: var(--surface-2); }
.bd-answer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.bd-md { line-height: 1.8; word-break: keep-all; max-width: 52em; }
.bd-md h4 { margin: 14px 0 4px; font-size: 15px; }
.bd-md h4:first-child { margin-top: 0; }
.bd-md p { margin: 4px 0; }
.bd-md ul, .bd-md ol { margin: 4px 0 8px; padding-left: 1.3em; }
.bd-trend-wrap { overflow-x: auto; }
.bd-trend { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.bd-trend th[scope=row] { text-align: right; padding-right: 8px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.bd-trend td { width: 34px; height: 26px; text-align: center; border-radius: 5px; font-variant-numeric: tabular-nums; }
.bd-c0 { background: var(--surface-2); }
.bd-c1 { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.bd-c2 { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.bd-c3 { background: color-mix(in srgb, var(--accent) 52%, var(--surface)); }
.bd-c4 { background: color-mix(in srgb, var(--accent) 75%, var(--surface)); color: #fff; }
.bd-tday { all: unset; cursor: pointer; font-size: 11px; color: var(--muted); padding: 2px 3px; border-radius: 4px; }
.bd-tday.on { color: var(--accent); font-weight: 700; }
.bd-tday:focus-visible { outline: 2px solid var(--focus); }
.bd-prof-toggle { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; flex-wrap: wrap; }
.bd-prof-toggle h2 { margin: 0; }
.bd-prof-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.bd-prof { margin-top: 14px; }
.bd-riskbanner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bd-riskbanner .btn { margin-left: auto; }
@media (max-width: 560px) { .bd-scale { grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; } .bd-scale-label { grid-column: 1 / -1; } .bd-dot { width: 40px; height: 40px; } }
.bd-daypick > * { flex: none; }
.bd-daypick input, .bd-daypick .dp-input { width: 170px !important; max-width: 100%; flex: none; }
/* 몸과 마음 v225: 흐름 기간 · 그래프 · 지난 기록 */
.bd-trhead { justify-content: space-between; gap: 8px 14px; }
.bd-trend-compact { border-spacing: 2px; }
.bd-trend-compact td { width: 12px; height: 22px; border-radius: 3px; }
.bd-trend-compact .bd-tday { font-size: 10px; padding: 0; }
.bd-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.bd-chart { min-width: 0; }
.bd-hfilter { display: flex; flex-direction: column; gap: 8px; }
.bd-hq { width: 100%; box-sizing: border-box; }
.bd-hlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 10px; }
.bd-hcard { min-width: 0; border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
.bd-hcard.bd-h-good { border-left-color: var(--ok); }
.bd-hcard.bd-h-meh { border-left-color: var(--warn); }
.bd-hcard.bd-h-bad { border-left-color: var(--bad); }
.bd-hcard.on { box-shadow: 0 0 0 2px var(--accent); }
.bd-hhit { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; width: 100%; min-width: 0; }
.bd-hhit:hover { background: var(--surface-2); border-radius: 0 10px 10px 0; }
.bd-hhit:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 10px; }
.bd-hhead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bd-hscores { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.bd-hs b { font-variant-numeric: tabular-nums; }
.bd-hpains { display: flex; flex-wrap: wrap; gap: 4px; }
.bd-hline { display: block; font-size: 13.5px; line-height: 1.6; color: var(--fg); word-break: keep-all; overflow-wrap: anywhere; }
.bd-hlab { display: inline-block; min-width: 3.6em; margin-right: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bd-pager { justify-content: center; }
/* 따라 하기 그림 (v225) */
.mv-wrap { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.mv-title { margin-bottom: 10px; }
.mv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.mv-card { min-width: 0; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.mv-pics { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 10px; background: var(--surface-2); }
.mv-frame { margin: 0; flex: 1 1 0; max-width: 170px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mv-frame figcaption { font-size: 11px; color: var(--muted); }
.mv-svg { width: 100%; height: auto; display: block; overflow: visible; }
.mv-then { color: var(--muted); font-size: 18px; flex: none; }
.mv-floor { stroke: var(--line-strong); stroke-width: 1.5; }
.mv-prop { stroke: var(--muted); stroke-width: 2; fill: none; stroke-linecap: round; opacity: .6; }
.mv-wall { stroke-width: 3; opacity: .5; }
.mv-body { stroke: var(--fg); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mv-limb { stroke: var(--fg); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mv-far { stroke: var(--muted); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.mv-hot { stroke: var(--accent); }
.mv-end .mv-body, .mv-end .mv-limb:not(.mv-hot) { stroke: var(--accent); }
.mv-head { fill: var(--surface); stroke: var(--fg); stroke-width: 3.5; }
.mv-end .mv-head { stroke: var(--accent); }
.mv-arrow { stroke: var(--warn); stroke-width: 2; fill: none; stroke-dasharray: 3 2; }
.mv-tipfill { fill: var(--warn); }
.mv-text { font-size: 9px; fill: var(--fg); font-weight: 600; }
.mv-boxsq { fill: none; stroke: var(--accent); stroke-width: 3; }
.mv-dot { fill: var(--accent); }
.mv-info { display: flex; flex-direction: column; gap: 4px; }
.mv-name { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.mv-part { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.mv-reps { margin: 0; font-size: 13px; font-weight: 600; color: var(--accent); }
.mv-steps { margin: 2px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.6; word-break: keep-all; }
.mv-title { flex-wrap: wrap; } .mv-title .small { font-weight: 400; white-space: normal; }
/* v226 아침 중심 */
.bd-fold-in { margin-top: 14px; }
.bd-nudge { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-left: 3px solid var(--accent); }
.bd-nudge > div:nth-child(2) { flex: 1 1 260px; min-width: 0; }
.bd-nudge-ic { font-size: 22px; line-height: 1; }
.bd-nudge-acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── v227 Me 의 내 주소 ─────────────────────────────── */
.me-tabbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mw-wrap { gap: 14px; }
.mw-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.mw-total { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.mw-form { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.mw-row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mw-addr-in { width: 100%; font-size: 14px; }
.mw-group { display: flex; flex-direction: column; gap: 8px; }
.mw-gtitle { margin: 4px 0 0; font-size: 15px; }
.mw-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 10px; }
.mw-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  border-left: 4px solid var(--mw-c, var(--line)); background: var(--surface); min-width: 0; }
.mw-btc { --mw-c: #f7931a; } .mw-eth { --mw-c: #8a92b2; } .mw-sol { --mw-c: #14b8a6; } .mw-xrp { --mw-c: #64748b; } .mw-bnb { --mw-c: #f0b90b; }
.mw-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mw-coin { font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: var(--surface-2); color: var(--mw-c, var(--muted)); }
.mw-label { font-size: 15px; }
.mw-addr { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.mw-addr code { font-size: 13px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); min-width: 0; }
.mw-addr code.mw-full { word-break: break-all; user-select: all; flex: 1 1 100%; order: -1; }
.mw-addr .btn { padding: 3px 10px; font-size: 12px; min-height: 0; text-decoration: none; }
.mw-bal { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; }
.mw-amt { font-size: 18px; font-weight: 700; }
.mw-note { margin: 0; white-space: pre-wrap; }
.mw-acts { margin-top: 2px; }
.mw-edit { display: flex; flex-direction: column; gap: 10px; }
.mw-drop { margin: 6px 0; padding-left: 18px; }

/* ── v230 키 만료 관리 ─────────────────────────────── */
.kw-top { justify-content: space-between; align-items: center; }
.kw-table td { vertical-align: top; }
.kw-name { font-weight: 600; }
.kw-date { background: none; border: 1px dashed var(--line); border-radius: 8px; padding: 4px 8px; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.kw-date:hover { border-style: solid; }
.kw-edit { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.kw-edit input[type=date] { padding: 4px 6px; }
.kw-table td:nth-child(4) { white-space: normal; max-width: 380px; min-width: 180px; }
.kw-msg { overflow-wrap: anywhere; white-space: normal; }
.kw-table td:last-child { width: 1%; }
.kw-expired .kw-name, .kw-failing .kw-name { color: var(--bad, #ef4444); }
