/* 10-K 손익 생키 — 부품 스타일 (2026-11-14) · 사이트 토큰(assets/css/_variables.css)을 그대로 쓰고, 없을 때만 같은 값으로 채운다.
 * 규율: 청회 + 네이비 한 색 · 색으로 분류하지 않는다. 이익 = 네이비 면 · 비용 = 청회 면 · 손실 = 빗금 · 영업외이익 = 점선 테두리 */
.tks {
  --tks-accent: var(--accent, #22456e);
  --tks-ink: var(--text-primary, #1b2430);
  --tks-ink-2: var(--text-secondary, #3a4654);
  --tks-ink-3: var(--text-tertiary, #64707e);
  --tks-paper: var(--bg-card, #ffffff);
  --tks-ground: var(--bg-elevated, #eef1f5);
  --tks-line: var(--border, #e3e7ec);
  --tks-profit: rgba(34, 69, 110, 0.30);
  --tks-cost: rgba(100, 112, 126, 0.20);
  --tks-mono: var(--font-mono, 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace);
  font-family: var(--font-sans, 'Pretendard', 'Noto Sans KR', system-ui, sans-serif);
  color: var(--tks-ink);
  display: grid;
  gap: var(--space-md, 1rem);
  min-width: 0;
}
.tks > * { min-width: 0; }   /* 그리드 칸이 연도 띠 너비로 늘어나지 않게(타임라인 스크롤이 생기도록) */
.tks-tlwrap, .tks-stage { min-width: 0; max-width: 100%; }
.tks [hidden] { display: none !important; }   /* 사이트 CSS 가 hidden 을 덮어쓰지 않게(11-14 라이브에서 칩이 보였음) */
.tks button { font: inherit; color: inherit; }
.tks-head { display: flex; flex-wrap: wrap; gap: 6px; }
.tks-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.tks-chip {
  border: 1px solid var(--tks-line); background: var(--tks-paper); border-radius: var(--radius-sm, 4px);
  padding: 4px 10px; font-family: var(--tks-mono); font-size: var(--fs-2xs, 0.75rem); letter-spacing: 0.02em; cursor: pointer;
}
.tks-chip:hover { border-color: var(--tks-ink-3); }
.tks-chip[aria-pressed="true"] { background: var(--tks-accent); border-color: var(--tks-accent); color: var(--tks-paper); }
.tks-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tks-name { margin: 0; font-size: var(--fs-xl, 1.375rem); line-height: var(--lh-tight, 1.35); text-wrap: balance; }
.tks-per { font-family: var(--tks-mono); font-size: var(--fs-sm, 0.9375rem); color: var(--tks-ink-2); font-variant-numeric: tabular-nums; }
.tks-fit { margin-left: auto; }
.tks-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--tks-line); border: 1px solid var(--tks-line); border-radius: var(--radius-md, 6px); overflow: hidden; }
.tks-k { background: var(--tks-paper); padding: 10px 14px; display: grid; gap: 2px; min-width: 0; }
.tks-k .l { font-size: var(--fs-2xs, 0.75rem); color: var(--tks-ink-3); letter-spacing: 0.02em; }
.tks-k b { font-family: var(--tks-mono); font-size: var(--fs-lg, 1.125rem); font-variant-numeric: tabular-nums; font-weight: 600; }
.tks-k small { font-family: var(--tks-mono); font-size: var(--fs-2xs, 0.75rem); color: var(--tks-ink-2); font-variant-numeric: tabular-nums; }
.tks-stage { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--tks-line); border-radius: var(--radius-md, 6px); background: var(--tks-paper); }
.tks-svg { display: block; }
.tks-link { mix-blend-mode: multiply; transition: opacity var(--transition-fast, 150ms ease); }
.tks-link.k-profit { fill: var(--tks-profit); }
.tks-link.k-cost { fill: var(--tks-cost); }
.tks-link.k-gain { fill: var(--tks-profit); stroke: var(--tks-accent); stroke-width: 1; stroke-dasharray: 4 3; }
.tks-link.k-loss { stroke: var(--tks-ink-3); stroke-width: 1; opacity: 0.85; }
.tks-node.k-base, .tks-node.k-profit { fill: var(--tks-accent); }
.tks-node.k-cost { fill: var(--tks-ink-3); }
.tks-node.k-gain { fill: var(--tks-paper); stroke: var(--tks-accent); stroke-width: 1.5; stroke-dasharray: 3 2; }
.tks-node.k-loss { stroke: var(--tks-ink); stroke-width: 1.5; stroke-dasharray: 3 2; }
.tks-lab text { paint-order: stroke; stroke: var(--tks-paper); stroke-width: 4px; stroke-linejoin: round; }
.tks-lab .n { font-size: 13px; font-weight: 600; fill: var(--tks-ink-2); }
.tks-lab.p .n { fill: var(--tks-accent); }
.tks-lab .s { font-family: var(--tks-mono); font-size: 11.5px; fill: var(--tks-ink-3); font-variant-numeric: tabular-nums; }
.tks-lab .r { font-family: var(--tks-mono); font-size: 11px; fill: var(--tks-ink-3); font-variant-numeric: tabular-nums; }
.tks-lab.p .r { fill: var(--tks-accent); }
@media (max-width: 640px) { .tks-lab .n { font-size: 11.5px; } .tks-lab.big .n { font-size: 12.5px; } .tks-lab .s, .tks-lab.big .s { font-size: 10.5px; } }
.tks-lab.big .n { font-size: 15px; }
.tks-lab.big .s { font-size: 12.5px; fill: var(--tks-ink-2); }
.tks-tlwrap { position: relative; }
.tks-tl {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; cursor: grab; outline: none;
  border-top: 1px solid var(--tks-line); border-bottom: 1px solid var(--tks-line); background: var(--tks-ground);
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.tks-tl:active { cursor: grabbing; }
.tks-tl:focus-visible { box-shadow: 0 0 0 2px var(--tks-accent) inset; }
.tks-track { display: flex; width: max-content; }
.tks-item {
  flex: 0 0 92px; width: 92px; display: grid; justify-items: center; align-content: end; gap: 3px; padding: 10px 4px 8px;
  background: none; border: 0; cursor: pointer; color: var(--tks-ink-3);
}
.tks-item b { font-family: var(--tks-mono); font-size: var(--fs-xs, 0.8125rem); font-weight: 500; font-variant-numeric: tabular-nums; }
.tks-item small { font-family: var(--tks-mono); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.tks-item small.neg { text-decoration: underline dotted; }
.tks-bar { display: block; width: 18px; background: var(--tks-ink-3); opacity: 0.35; border-radius: 2px 2px 0 0; }
.tks-item.on { color: var(--tks-ink); }
.tks-item.on .tks-bar { background: var(--tks-accent); opacity: 1; }
.tks-item.on b { font-weight: 700; }
.tks-item:focus-visible { outline: 2px solid var(--tks-accent); outline-offset: -2px; }
.tks-mark { position: absolute; left: 50%; top: 0; bottom: 0; width: 92px; transform: translateX(-50%); box-shadow: inset 1px 0 0 var(--tks-accent), inset -1px 0 0 var(--tks-accent); pointer-events: none; opacity: 0.5; }
.tks-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tks-btn {
  border: 1px solid var(--tks-line); background: var(--tks-paper); border-radius: var(--radius-sm, 4px); padding: 6px 12px;
  font-size: var(--fs-xs, 0.8125rem); cursor: pointer;
}
.tks-btn:hover { border-color: var(--tks-ink-3); }
.tks-btn:focus-visible, .tks-chip:focus-visible { outline: 2px solid var(--tks-accent); outline-offset: 2px; }
.tks-btn[aria-pressed="true"] { border-color: var(--tks-accent); color: var(--tks-accent); font-weight: 600; }
.tks-hint { font-size: var(--fs-2xs, 0.75rem); color: var(--tks-ink-3); }
.tks-note { margin: 0; font-size: var(--fs-2xs, 0.75rem); line-height: 1.6; color: var(--tks-ink-3); max-width: 80ch; }
@media (prefers-reduced-motion: reduce) { .tks-link { transition: none; } }
