/* The dashboard: a navigation column, a title bar, and panels on a 12-column grid. Every color is a token below,
   dark by default and light when the owner switches. Text tokens clear 4.5:1 on the panel; the chart series were
   checked for color-vision separation on both panels. A rise is red and a fall is blue, always with ▲ or ▼. */

@font-face { font-family: "IBM Plex Sans KR"; font-weight: 400; font-display: swap; src: url("/static/fonts/IBMPlexSansKR-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans KR"; font-weight: 500; font-display: swap; src: url("/static/fonts/IBMPlexSansKR-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans KR"; font-weight: 600; font-display: swap; src: url("/static/fonts/IBMPlexSansKR-SemiBold.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --canvas: #0f1114; --panel: #181b20; --raised: #21252b; --hair: #2b3038; --hair-2: #22262c;
  --text: #e3e6ea; --text-2: #a3aab4; --text-3: #7f8691;
  --accent: #c9a55c; --on-accent: #15130e;
  --rise: #f0656f; --fall: #5b9cf5;
  --c1: #9085e9; --c2: #199e70; --c3: #d95926; --c4: #2aa2bb; --c5: #c98500; --c6: #b072c4; --c7: #4ea82c; --c8: #d55181;
  --rest: #5d646e; --band: #1f3f39;
  /* the type scale: one size per role */
  --fs-page: 17px; --fs-title: 13.5px; --fs-period: 12px; --fs-body: 13.5px; --fs-table: 13px; --fs-small: 12px; --fs-stat: 24px; --fs-stat-sm: 18px;
  --gap: 12px; --pad: 16px; --radius: 6px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #eceef2; --panel: #ffffff; --raised: #f4f5f7; --hair: #e2e5ea; --hair-2: #eceef1;
  --text: #1a1e24; --text-2: #525a65; --text-3: #6f7782;
  --accent: #8a6818; --on-accent: #ffffff;
  --rise: #cc3434; --fall: #2264c8;
  --c1: #6250d6; --c2: #15996b; --c3: #e0652c; --c4: #1597b0; --c5: #c28a00; --c6: #9a4fb0; --c7: #3f9a1f; --c8: #d4548a;
  --rest: #a9afb8; --band: #cbe5df;
}
/* what older rules call these colors */
:root { --mine: var(--c2); --loan: var(--c1); --credit: var(--c3); }

* { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font-family: "IBM Plex Sans KR", system-ui, "Noto Sans KR", sans-serif; font-size: var(--fs-body); line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration-color: var(--text-3); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--text); }
a:focus-visible, summary:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; background: var(--raised); border-radius: 3px; padding: 0 4px; }
.lbl-hidden, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the frame: the navigation column, the title bar, the content */
.shell { display: grid; grid-template-columns: 212px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 14px 10px 12px; border-right: 1px solid var(--hair-2); }
.brand { display: flex; align-items: center; justify-content: space-between; padding: 2px 10px 14px; }
.brand a { font-weight: 600; font-size: 15px; text-decoration: none; letter-spacing: -0.01em; }
.drawer { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.rail ul { list-style: none; margin: 0 0 10px; padding: 0; }
.rail li.gl { font-size: var(--fs-small); color: var(--text-3); padding: 8px 10px 4px; }
.rail a[href] { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 5px; color: var(--text-2); text-decoration: none; }
.rail nav a:hover { background: var(--raised); color: var(--text); }
.rail nav a[aria-current] { background: var(--raised); color: var(--text); font-weight: 500; box-shadow: inset 3px 0 0 var(--accent); }
.rail nav a[aria-current] svg.ni { color: var(--accent); }
svg.ni { flex: none; display: block; }
.foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--hair-2); }
.foot form { margin: 0; }
button.theme { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px; border: 0; border-radius: 5px; background: none; color: var(--text-2); font: inherit; font-size: var(--fs-body); text-align: left; cursor: pointer; }
button.theme:hover { background: var(--raised); color: var(--text); }
button.theme[hidden], button.menu[hidden] { display: none; }
button.menu { display: none; }

.content { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 16px 20px 14px; }
.top h1 { font-size: var(--fs-page); font-weight: 600; letter-spacing: -0.01em; min-width: 0; overflow-wrap: anywhere; }
.asof { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: baseline; gap: 4px; font-size: var(--fs-small); color: var(--text-2); background: var(--panel); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.chip b { color: var(--text); font-weight: 500; }

/* the grid of panels */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; padding: 0 20px; }
.p { background: var(--panel); border-radius: var(--radius); min-width: 0; display: flex; flex-direction: column; align-self: stretch; padding: 14px var(--pad) var(--pad); }
.p > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; min-width: 0; }
.p > header h2 { font-size: var(--fs-title); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.p > header .per { grid-column: 1; color: var(--text-3); font-size: var(--fs-period); margin-top: 1px; overflow-wrap: anywhere; }
.p > header .more { grid-column: 2; grid-row: 1; font-size: var(--fs-small); color: var(--text-2); text-decoration: none; white-space: nowrap; }
.p > header .more:hover { color: var(--text); }
.p > .b { padding-top: 12px; flex: 1; min-width: 0; }
.p > .b:first-child { padding-top: 0; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; }
.s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s9 { grid-column: span 9; } .s12 { grid-column: span 12; }
h1.page { grid-column: span 12; font-size: var(--fs-title); font-weight: 600; padding: 2px 0; }

.up { color: var(--rise); } .down { color: var(--fall); } .flat { color: var(--text-2); }
.r, .num { text-align: right; }
.empty { color: var(--text-2); font-size: var(--fs-small); }
.note, .legend-note { color: var(--text-2); font-size: var(--fs-small); }
.notes { margin: 6px 0 0; padding-left: 1.1rem; color: var(--text-2); font-size: var(--fs-small); }
.scroll { overflow-x: auto; }
footer.site { padding: 18px 20px 20px; color: var(--text-3); font-size: var(--fs-small); }

/* a slim line across the grid: something that needs the owner today */
.alert { grid-column: span 12; display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: var(--radius); padding: 9px var(--pad); box-shadow: inset 3px 0 0 var(--accent); }
.alert p { margin: 0; }

/* body 1: a board of large numbers */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 18px 20px; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }  /* long ₩ numbers: two a row, one when two cannot hold them */
.stat { min-width: 0; display: flex; flex-direction: column; }
.stat .v { font-size: var(--fs-stat); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; }  /* a number never breaks inside itself */
.stats.small .stat .v { font-size: var(--fs-stat-sm); }
.stat .lb { font-size: var(--fs-small); color: var(--text-2); margin-top: 1px; }
.stat .day { color: var(--text-3); font-size: 11.5px; white-space: nowrap; }  /* a date never breaks inside itself */
.stat .d { font-size: var(--fs-small); margin-top: 3px; overflow-wrap: anywhere; }
.stat .d .since { color: var(--text-3); }
.stat .cap { margin-top: 2px; color: var(--text-3); font-size: var(--fs-small); line-height: 1.4; }
.oneliner { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hair-2); color: var(--text-2); font-size: var(--fs-small); }
.oneliner .lead { color: var(--text); font-size: var(--fs-body); }
svg.spark { display: block; width: 100%; height: 24px; }
svg.spark polyline { stroke: var(--text-3); stroke-width: 1.5; }
svg.spark.tile { height: 26px; margin-top: 6px; }
svg.spark.held polyline { stroke: var(--text-2); }
svg.spark.mini { height: 40px; margin-top: 2px; }
svg.spark.credit { height: 34px; margin: 8px 0 4px; }
svg.spark.credit polyline { stroke: var(--c3); stroke-width: 2; }

/* body 2: a donut and its legend table, largest first */
.donut { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 20px; align-items: center; }
svg.ring { display: block; width: 100%; height: auto; overflow: visible; }
svg.ring .seg { fill: none; stroke-width: 15; }
svg.ring .sum { fill: var(--text); font-size: 9.5px; font-weight: 600; }
svg.ring .sum-l { fill: var(--text-3); font-size: 7.5px; }
.k1 { --k: var(--c1); } .k2 { --k: var(--c2); } .k3 { --k: var(--c3); } .k4 { --k: var(--c4); }
.k5 { --k: var(--c5); } .k6 { --k: var(--c6); } .k7 { --k: var(--c7); } .k8 { --k: var(--c8); } .k0 { --k: var(--rest); }
svg.ring .seg { stroke: var(--k); }
i.sw { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--k); margin-right: 8px; vertical-align: 0; }
table.parts td, table.parts th { padding: 6px 0; }
table.parts td.num { padding-left: 16px; }
table.parts td.nm { white-space: normal; width: 100%; }
table.parts .share { color: var(--text-2); }

/* body 3: lines on one axis, legend chips under it, a readout on hover */
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-small); color: var(--text-2); margin-top: 8px; }
.legend b { color: var(--text); font-weight: 500; margin-left: 2px; }
i.key { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
i.key.s1, .tip i.s1 { background: var(--c1); } i.key.s2, .tip i.s2 { background: var(--c2); }
i.key.s3, .tip i.s3 { background: var(--c3); } i.key.mine, .tip i.mine { background: var(--text); }
.chart { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); touch-action: pan-y; }
.chart svg { display: block; overflow: visible; }
.chart .gr { stroke: var(--hair-2); stroke-width: 1; }
.chart .gr.zero { stroke: var(--text-3); stroke-dasharray: 3 3; }
.chart .ax { fill: var(--text-3); font-size: 11px; }
.chart .ln { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln.s1 { stroke: var(--c1); } .chart .ln.s2 { stroke: var(--c2); } .chart .ln.s3 { stroke: var(--c3); }
.chart .ln.mine { stroke: var(--text); stroke-width: 2.2; }
.chart .dot { stroke: var(--panel); stroke-width: 2; }
.chart .dot.s1 { fill: var(--c1); } .chart .dot.s2 { fill: var(--c2); } .chart .dot.s3 { fill: var(--c3); } .chart .dot.mine { fill: var(--text); }
.chart .cross { stroke: var(--text-2); stroke-width: 1; visibility: hidden; }
.chart .cross.on { visibility: visible; }
.tip { position: absolute; top: 4px; left: 54px; pointer-events: none; background: var(--raised); border-radius: 5px; padding: 7px 10px; font-size: var(--fs-small); white-space: nowrap; z-index: 2; box-shadow: 0 2px 8px rgb(0 0 0 / 0.25); }
.tip[hidden] { display: none; }
.tip div { display: flex; justify-content: space-between; gap: 16px; }
.tip div:first-child { color: var(--text-2); }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
/* small lines, each on its own axis */
.smalls { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 24px; }
.smalls figure { margin: 0; min-width: 0; }
.smalls figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: var(--fs-small); color: var(--text-2); margin-bottom: 2px; }
.smalls figcaption b { color: var(--text); font-weight: 600; font-size: var(--fs-body); }
/* a theme's gauge history: one axis per chart, two charts a row */
.gauge-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.gauge-charts figure { margin: 0; min-width: 0; }
.gauge-charts figcaption { font-size: 13px; margin-bottom: 2px; }
.gauge-charts figcaption small { color: var(--text-2); margin-left: 6px; }
.gauge-charts .latest { margin: 0 0 4px; font-size: 12px; color: var(--text-2); }
.gauge-charts .latest b { color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .gauge-charts { grid-template-columns: 1fr; } }

/* body 4: a compact table: a quiet header, hairline rows, numbers to the right, the name column wraps */
table { border-collapse: collapse; width: 100%; font-size: var(--fs-table); }
th { font-weight: 400; color: var(--text-3); font-size: var(--fs-small); text-align: left; padding: 0 10px 6px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--hair-2); white-space: nowrap; vertical-align: top; }
tbody th { color: var(--text); font-size: var(--fs-table); padding: 7px 10px 7px 0; border-bottom: 1px solid var(--hair-2); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
th.r, td.r, th.num, td.num { text-align: right; padding-right: 0; padding-left: 10px; }
td.nm, th.nm { white-space: normal; }
td.nm small { color: var(--text-2); font-size: var(--fs-small); margin-left: 6px; }
table.symbols td.r small, table.symbols th.r small { display: block; color: var(--text-2); font-size: var(--fs-small); font-weight: 400; }
td.sp, th.sp { padding-left: 16px; width: 110px; }
td.sp svg.spark { width: 100px; height: 22px; }
table.grid td.num + td.num, table.grid th.num + th.num { padding-left: 14px; }
td.num + td:not(.num), th.num + th:not(.num) { padding-left: 14px; }
td.when { white-space: nowrap; color: var(--text-2); }
td.title { white-space: normal; }
table.compact th small, table.compact td small { display: block; color: var(--text-3); font-size: var(--fs-small); font-weight: 400; white-space: normal; }
table.compact tbody th { font-weight: 500; }

/* lists of dated things, and the rows of a short reading */
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--hair-2); }
.rows > div:first-child { border-top: 0; padding-top: 0; }
.rows .k { min-width: 0; }
.rows .k small { display: block; color: var(--text-2); font-size: var(--fs-small); }
.rows .v { text-align: right; white-space: nowrap; font-weight: 500; }
.rows .v small { display: block; font-weight: 400; color: var(--text-2); font-size: var(--fs-small); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.mine { background: var(--mine); } .dot.loan { background: var(--loan); } .dot.credit { background: var(--credit); }
ul.dated { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: fit-content(8.5em) minmax(0, 1fr) auto; column-gap: 12px; }
ul.dated li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--hair-2); }
ul.dated li:first-child { border-top: 0; padding-top: 0; }
ul.dated .when { color: var(--text-2); font-size: var(--fs-small); white-space: nowrap; }
ul.dated .what { min-width: 0; overflow-wrap: anywhere; }
ul.dated .what a { text-decoration: none; }
ul.dated .what a:hover { text-decoration: underline; }
ul.dated .what small { display: block; color: var(--text-2); font-size: var(--fs-small); }
ul.dated .pill { justify-self: end; }
.pill { display: inline-block; border-radius: 999px; padding: 0 8px; font-size: 11.5px; line-height: 1.6; color: var(--text-2); background: var(--raised); white-space: nowrap; }
.pill.act { color: var(--on-accent); background: var(--accent); font-weight: 600; }
.pill.is-ok { color: var(--c2); } .pill.is-bad { color: var(--rise); } .pill.is-part, .pill.is-skip { color: var(--c5); } .pill.is-now { color: var(--c1); }

/* the daily run: a state and the steps as a row of marks */
.run-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.runmarks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.runmarks i { display: block; width: 14px; height: 14px; border-radius: 3px; background: var(--hair); }
.runmarks i.is-ok { background: var(--c2); } .runmarks i.is-part { background: var(--c5); } .runmarks i.is-bad { background: var(--rise); }
.runmarks i.is-skip { background: var(--c3); } .runmarks i.is-now { background: var(--c1); }
ul.steps { list-style: none; margin: 10px 0 0; padding: 0; font-size: var(--fs-small); }
ul.steps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--hair-2); overflow-wrap: anywhere; }
ul.steps li:first-child { border-top: 0; }
ul.steps .pill { margin-right: 6px; }
ul.steps small { display: block; color: var(--text-2); margin-top: 2px; }
ul.steps .took { color: var(--text-3); white-space: nowrap; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }

details { margin-top: 10px; border-top: 1px solid var(--hair-2); }
summary { list-style: none; cursor: pointer; color: var(--text-2); font-size: var(--fs-small); padding: 8px 0 0; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+ "; }
details[open] > summary::before { content: "− "; }
summary:hover { color: var(--text); }
details .in { padding-top: 6px; color: var(--text-2); font-size: var(--fs-small); }
details .in p { padding: 2px 0; }
details .in b { color: var(--text); font-weight: 500; }
details.group > summary { color: var(--text); font-size: var(--fs-title); font-weight: 600; padding-top: 0; }
details.group { border-top: 0; margin-top: 0; }
details.warnings ul { margin: 0; padding-left: 1.1rem; }
.p .b > details:first-child { margin-top: 0; border-top: 0; }

/* the buckets against their targets: the bar, the allowed band, the target tick */
.mix .row { display: grid; grid-template-columns: 5.2em minmax(0, 1fr) 4.4em 3em; gap: 8px; align-items: center; padding: 7px 0; }
.mix .key, .bandkey { display: flex; gap: 14px; color: var(--text-2); font-size: var(--fs-small); margin-top: 8px; }
.mix .key i, .bandkey i { display: inline-block; vertical-align: middle; margin-right: 5px; }
.bandkey .b1 { width: 14px; height: 6px; background: var(--text); border-radius: 0 3px 3px 0; }
.bandkey .b2 { width: 14px; height: 10px; background: var(--band); }
.bandkey .b3 { width: 2px; height: 13px; background: var(--mine); }
svg.track { display: block; width: 100%; height: 12px; }
svg.track .wash { fill: var(--raised); }
svg.track .band { fill: var(--band); }
svg.track .bar { fill: var(--text); }
svg.track .target { fill: var(--mine); }
.st { font-size: var(--fs-small); font-weight: 600; }
.status { font-weight: 600; }


/* the sign-in page: one panel in the middle, nothing about the household */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.signin .p { width: min(100%, 360px); padding: 22px 22px 18px; align-self: center; }
.signin form p + p { margin-top: 14px; }
.signin label { display: flex; flex-direction: column; align-items: stretch; gap: 6px; font-size: var(--fs-body); }
.signin input[type="password"] { width: 100%; padding: 7px 10px; font-size: var(--fs-body); background: var(--canvas); }
.signin button[type="submit"] { width: 100%; padding: 7px 10px; background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.signin .error { margin-bottom: 12px; }

.parts-side { min-width: 0; }
dl.beside { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--hair); }
dl.beside div { display: flex; align-items: baseline; gap: 8px; }
dl.beside dt { color: var(--text-2); font-size: var(--fs-small); }
dl.beside dd { margin: 0; font-weight: 600; }
table.compact td.num, table.compact td.num small { white-space: nowrap; }  /* a value and its arrow stay on one line; the name wraps */
/* 뉴스 */
.news .it { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; gap: 10px; padding: 7px 0; border-top: 1px solid var(--hair-2); align-items: baseline; }
.news .it:first-child { border-top: 0; padding-top: 2px; }
.news .tm { color: var(--text-3); font-size: 12px; }
.news .tt { font-weight: 500; min-width: 0; }
.news .tt a { text-decoration: none; }
.news .tt a:hover { text-decoration: underline; }
.news .tt small { display: block; font-weight: 400; color: var(--text-2); font-size: 12px; margin-top: 1px; }
.news .tt small.sum { color: var(--text); opacity: 0.85; }
.news .tg { color: var(--text-2); font-size: 12px; white-space: nowrap; }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.digest { padding: 9px 0; border-top: 1px solid var(--hair-2); min-width: 0; }
.picks .digest:nth-child(-n+3) { border-top: 0; padding-top: 2px; }
.digest h3 { font-size: 13.5px; font-weight: 500; }
.digest h3 a { text-decoration: none; }
.digest .meta { color: var(--text-2); font-size: 12px; margin-top: 1px; }
.digest .sum { margin-top: 4px; }
.digest ol { margin: 4px 0 0; padding-left: 1.2rem; color: var(--text-2); font-size: 12.5px; }
.digest q { color: var(--text-3); }

/* 오늘의 뉴스 */
.newsbar { grid-column: span 12; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding: 2px 0; }
.newsbar h1.page { padding: 0; }
.newsbar nav { display: flex; gap: 16px; color: var(--text-2); font-size: 12.5px; }
.newsbar form { margin-left: auto; display: flex; gap: 6px; }
.newsbar input { width: 18rem; max-width: 60vw; }
.p.daily .hourly { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--hair-2); }  /* the hourly run's quiet line */
.arrive { columns: 3 20rem; column-gap: 26px; margin-top: 10px; }  /* 새로 들어온 소식: each section's titles, as many columns as fit */
.arrive-group { break-inside: avoid; padding-bottom: 12px; }
.arrive-group h3 { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.arrive-group ul.dated li { padding: 5px 0; }
.stories { display: grid; gap: 14px 26px; }
.stories.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stories.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story { min-width: 0; }
.section .story { padding: 9px 0; border-top: 1px solid var(--hair-2); }
.section .b > .story:first-child { border-top: 0; padding-top: 2px; }
.story h3 { font-size: 14px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.headlines .story h3 { font-size: 15px; }
.story .meta { display: flex; flex-wrap: wrap; gap: 1px 8px; color: var(--text-2); font-size: 12px; }
.story .sec { color: var(--text); font-weight: 500; }
.story .flag { color: var(--credit); }
.story .sum { margin-top: 4px; overflow-wrap: anywhere; }
.story .why { margin-top: 5px; color: var(--text-2); }
.story .why b { color: var(--text); font-weight: 500; margin-right: 4px; }
.story .links { margin-top: 4px; color: var(--text-2); font-size: 12px; }
.story details { margin-top: 4px; }
.story q { color: var(--text-2); overflow-wrap: anywhere; }
/* a lead image: a fixed box at the story's top right, cropped to fill; the text runs beside it, then under it */
.story.pic { display: flow-root; }
.story img.lead { float: right; width: 88px; height: 66px; margin: 3px 0 6px 12px; object-fit: cover; border-radius: 3px; background: var(--raised); }
.headlines .story img.lead { width: 112px; height: 84px; }
.news .it.pic { grid-template-columns: 3.2em minmax(0, 1fr) auto 64px; }
.news .it img.th { width: 64px; height: 48px; object-fit: cover; border-radius: 3px; background: var(--raised); align-self: center; }
details.more > summary { padding-bottom: 2px; }
ul.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5em, 1fr)); gap: 4px 10px; }
.closing-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; }
.closing-cols h3 { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.closing-cols ul { margin: 4px 0 0; padding-left: 1.1rem; }
.skipped { margin-top: 10px; }
.day-group + .day-group { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hair); }
h3.day { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
ul.found-docs { margin: 8px 0 0; padding-left: 1.1rem; color: var(--text-2); font-size: 12.5px; }
ul.found-docs .outlet { color: var(--text); }

/* small charts */
.multi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 8px; }
.multi .m .h { display: flex; justify-content: space-between; align-items: baseline; }
.multi .m .h span { color: var(--text-2); font-size: 12.5px; }
.multi .m .h b { font-weight: 600; }

/* 부채, 자산과 빚 */
svg.stack { display: block; width: 100%; height: 22px; margin-top: 2px; }
svg.stack .mine { fill: var(--mine); } svg.stack .loan { fill: var(--loan); } svg.stack .credit { fill: var(--credit); }
.bal .rows { margin-top: 8px; }
.ends { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); font-size: 12px; }
.big { font-size: 20px; font-weight: 600; }
.big small { font-size: 12.5px; font-weight: 400; color: var(--text-2); margin-left: 6px; }

/* totals, notices, forms */
.totals { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.totals dt { color: var(--text-2); font-size: 12px; }
.totals dd { margin: 0; font-size: 20px; font-weight: 600; }
.totals .main dd { color: var(--text); }
.notice { border: 1px solid var(--hair); border-left: 3px solid var(--credit); border-radius: 4px; padding: 8px 10px; background: var(--raised); display: flex; flex-direction: column; gap: 4px; }
.notice ul { margin: 0; padding-left: 1.1rem; color: var(--text-2); }
.error { color: var(--rise); }
.filters, .new-cash { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin-bottom: 8px; }
label { color: var(--text-2); font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; }
select, input, button { font: inherit; font-size: 13px; color: var(--text); background: var(--panel); border: 1px solid var(--hair); border-radius: 4px; padding: 3px 8px; }
button { cursor: pointer; }
.pager { display: flex; gap: 14px; margin-top: 8px; color: var(--text-2); }
.fields { margin: 0; }
.fields div { display: flex; gap: 14px; padding: 4px 0; border-top: 1px solid var(--hair-2); }
.fields div:first-child { border-top: 0; }
.fields dt { min-width: 8rem; color: var(--text-2); }
.fields dd { margin: 0; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; color: var(--text); }
.summary { color: var(--text-2); }
.original { font-size: 12.5px; }
.track-cell { min-width: 9rem; width: 40%; }
.chart-table td { vertical-align: middle; }
.status.over, .st.over { color: var(--text); }
@media (max-width: 1400px) {
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .picks .digest:nth-child(3) { border-top: 1px solid var(--hair-2); padding-top: 9px; }
  .stories.c5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1020px) { .stories.c5, .stories.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .newsbar form { margin-left: 0; } }
@media (max-width: 560px) {
  .s2 { grid-column: span 6; }
  .multi, .picks, .stories.c5, .stories.c3, .closing-cols { grid-template-columns: 1fr; }
}

/* 해석: notes, themes, forecasts, guides */
.mark { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 5px 2px; border-radius: 3px; vertical-align: 1px; margin-right: 2px; }
.mark.fact { background: var(--raised); color: var(--text-2); border: 1px solid var(--hair); }
.mark.calc { background: var(--band); color: var(--text); }
.mark.judge { background: var(--c1); color: #fff; }
a.v { font-weight: 600; text-decoration: underline dotted var(--text-3); text-underline-offset: 3px; white-space: nowrap; }
a.ref { font-size: 11.5px; color: var(--text-3); text-decoration: none; }
.note-head h1 { font-size: 18px; font-weight: 600; margin: 4px 0 6px; }
.note-head .meta, .card .meta { color: var(--text-2); font-size: 12.5px; }
.note-head .heard { margin-top: 6px; padding: 6px 10px; background: var(--raised); border-radius: 4px; }
.note-head .oneline { margin-top: 8px; font-size: 15px; font-weight: 500; }
.note-head .claim { margin-top: 6px; }
.note-head .question { margin-top: 4px; }
.lead-mark { color: var(--text-2); font-size: 12.5px; margin: 2px 0 6px; }
.reading { margin-top: 8px; overflow-wrap: anywhere; }
/* one sentence to a line: a reading is read down, not across */
.sl { display: block; }
.sl + .sl { margin-top: 3px; }
.sl.lead { display: inline; }
.reading.thin { color: var(--text-2); }
p.tie-head { margin: 0; }
ul.ties .reading, ul.ahead .reading { margin-top: 2px; display: block; }
.action-line { font-size: 14px; }
/* the table of key values, and the views laid out as sources against targets */
table.keyv th[scope="row"] { font-size: 13px; font-weight: 500; white-space: normal; min-width: 7em; }
table.keyv td.num { font-weight: 600; }
table.keyv td.num small { display: block; font-weight: 400; color: var(--text-2); font-size: 11.5px; white-space: nowrap; }
table.keyv td.marks { white-space: normal; min-width: 12em; }
table.keyv td.marks small.plain { color: var(--text-3); }
table.views th[scope="row"] { font-size: 13px; font-weight: 500; white-space: nowrap; }
table.views td { white-space: nowrap; }
table.views a.lean { display: block; text-decoration: none; color: var(--text); font-weight: 500; }
table.views tr.counts td, table.views tr.counts th { border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--text); }
/* the analyst's own view: a row of its own under the sources', and its list and the household's in the reading */
table.views tr.own th, table.views tr.own td { border-top: 2px solid var(--text); background: var(--raised); }
table.views tr.own .lean { display: block; font-weight: 600; color: var(--text); }
table.views tr.own th .mark { margin-right: 4px; }
ul.own, ul.household { list-style: none; margin: 0; padding: 0; }
ul.own li, ul.household li { padding: 6px 0; border-top: 1px solid var(--hair-2); overflow-wrap: anywhere; }
ul.own li:first-child, ul.household li:first-child { border-top: 0; }
ul.own small.why, ul.household small.why { display: inline; font-weight: 500; margin-left: 4px; }
ul.household small.why { display: block; margin-left: 0; color: var(--text-2); font-weight: 400; }
ul.own .reading { display: block; margin-top: 2px; }
ul.household .hb { display: block; font-size: 13px; margin-top: 2px; }
ul.said { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
ul.said li { padding: 5px 0; border-top: 1px solid var(--hair-2); overflow-wrap: anywhere; }
ul.said li:first-child { border-top: 0; }
ul.said q { display: block; margin-top: 2px; color: var(--text); }
.multi { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 18px; }
.multi .mini { min-width: 0; }
.multi .mini .fhead { margin: 0 0 2px; font-size: 12.5px; }
b.action { color: var(--mine); font-weight: 600; }
ol.facts { margin: 0; padding-left: 1.3rem; }
ol.facts li { padding: 4px 0 6px; }
ol.facts .src { color: var(--text-2); font-size: 12px; margin-top: 2px; }
.flag { color: var(--credit); }
ul.ties, ul.ahead { list-style: none; margin: 8px 0 0; padding: 0; }
ul.ties li, ul.ahead li { padding: 4px 0 6px; overflow-wrap: anywhere; }
ul.ties li + li, ul.ahead li + li { border-top: 1px solid var(--hair); }
ul.ties .src { color: var(--text-2); font-size: 12px; margin-top: 2px; }
ul.ahead .when { margin-right: 4px; }
table.values td.label, td.wrap { white-space: normal; }
table.values td.num { white-space: normal; font-weight: 500; }
table.values tr.missing td { color: var(--credit); }
td.when, span.when { color: var(--text-2); font-size: 12px; }
td.wrap small, td.wrap.rule { color: var(--text-2); font-size: 12px; }
td.wrap small { display: block; margin-top: 2px; }
.second { margin-top: 10px; padding: 8px 10px; border-left: 3px solid var(--c2); background: var(--raised); border-radius: 0 4px 4px 0; overflow-wrap: anywhere; }
.second.differ { border-left-color: var(--credit); }
.second.thin { border-left-color: var(--c5); }
.second.counter { border-left-color: var(--c1); }
.state { font-weight: 600; font-size: 12.5px; }
.state.agreed { color: var(--c2); } .state.split { color: var(--credit); } .state.held { color: var(--rise); } .state.unreviewed { color: var(--text-2); }
.fstate { font-weight: 600; } .fstate.hit { color: var(--c2); } .fstate.miss { color: var(--credit); } .fstate.void, .fstate.open { color: var(--text-2); }
td small { display: block; color: var(--text-2); font-size: 12px; white-space: normal; }
.revision { padding: 6px 0 8px; border-top: 1px solid var(--hair-2); }
.revision:first-child { border-top: 0; padding-top: 0; }
h3.sub { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin: 12px 0 4px; }
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.lrow { padding: 7px 0; border-top: 1px solid var(--hair-2); min-width: 0; scroll-margin-top: 60px; }
.lrow:target { background: var(--raised); }
.lrow .lhead { font-size: 12.5px; overflow-wrap: anywhere; }
.lrow .lhead code { white-space: normal; overflow-wrap: anywhere; }
.lrow .quote q { color: var(--text); overflow-wrap: anywhere; }
ul.cells { margin: 4px 0 0; padding-left: 1.1rem; font-size: 12.5px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 26px; }
.card { min-width: 0; }
.card h3 { font-size: 14px; font-weight: 600; margin-top: 2px; }
.card h3 a { text-decoration: none; }
.card .line { margin-top: 3px; }
a.chip { display: inline-block; padding: 0 7px; border: 1px solid var(--hair); border-radius: 10px; font-size: 12px; color: var(--text-2); text-decoration: none; }
a.chip[aria-current] { color: var(--text); border-color: var(--text); }
.chips a { margin-right: 4px; }
.theme-card .question, .note-head .question { color: var(--text-2); }
.thesis { font-size: 14.5px; margin: 6px 0; }
pre.yaml { background: var(--raised); padding: 8px 10px; border-radius: 4px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; margin-top: 8px; }
.tallies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 26px; }
.tally h3 { font-size: 13px; font-weight: 600; }
.tally .big { margin: 4px 0; }
.tally .big small { display: block; margin-left: 0; }
table.calib { margin-top: 6px; }
p.learn { margin-bottom: 8px; }
.interp { margin-top: 6px; }
.news.insights .it { grid-template-columns: 7.5em minmax(0, 1fr) auto; }
.news.daily .it { grid-template-columns: 5.5em minmax(0, 1fr) auto; }
.daily .run-line { font-size: 13.5px; }
.daily .run-line .state { margin-right: 6px; }
.daily .state.ok { color: var(--c2); } .daily .state.part { color: var(--c5); } .daily .state.bad { color: var(--rise); }
.daily .state.skip { color: var(--credit); } .daily .state.now { color: var(--c1); }
.daily .tt small { color: var(--text-2); }
.insights .tt a { font-weight: 500; }
svg.icon { vertical-align: -3px; }
/* asking: the box, the 물어보기 buttons, and a request's page */
form.ask { display: flex; gap: 8px; align-items: stretch; }
form.ask input[type="text"] { flex: 1; min-width: 0; padding: 7px 10px; font-size: var(--fs-body); background: var(--canvas); }
form.ask button { padding: 6px 16px; white-space: nowrap; }
form.ask.small input[type="text"] { padding: 5px 8px; font-size: 13px; }
form.ask.small button { padding: 4px 12px; }
form.ask + .note, form.ask + p { margin-top: 8px; }
.ask-error { color: var(--rise); margin: 0 0 8px; }
.ask-today { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hair-2); }
.ask-today ul.dated { margin-bottom: 8px; }
form.ask-doc { display: inline-block; margin-top: 6px; }
.story form.ask-doc { margin-top: 2px; }
.story form.ask-doc button { font-size: 12px; padding: 1px 9px; color: var(--text-2); }
.story form.ask-doc button:hover { color: var(--text); }
p.asked { font-size: 15px; margin: 0; overflow-wrap: anywhere; }
.run-top .line { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
p.answer { margin: 12px 0 0; font-weight: 600; overflow-wrap: anywhere; }
form.again { margin-top: 12px; }
form.again button { padding: 5px 16px; }
form.watch { margin-top: 3px; }
form.watch button { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
td.watching { min-width: 9em; }
tr[id^="watch-"] { scroll-margin-top: 60px; }
tr[id^="watch-"]:target td { background: var(--raised); }
.wstate { font-weight: 600; font-size: 12.5px; }
.wstate.waiting { color: var(--c1); } .wstate.due { color: var(--c5); } .wstate.reported { color: var(--c2); }
.wstate.failed { color: var(--rise); } .wstate.dropped { color: var(--text-2); }
.follows p { overflow-wrap: anywhere; }
.insights .watching { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--hair-2); }
@media (max-width: 1400px) { .cards, .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tallies { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1020px) { .cards, .ledger, .tallies { grid-template-columns: 1fr; } }

/* Orders: the only page whose buttons change anything. */
.flash .b p { margin: 0; font-size: 13.5px; }
.flash { border-left: 3px solid var(--text-2); }
.flash.ok { border-left-color: var(--c2); } .flash.bad { border-left-color: var(--rise); }
.flash.warn, .flash.wait { border-left-color: var(--credit); }
.ticket { border: 1px solid var(--hair); border-radius: 4px; padding: 10px 12px; margin-bottom: 10px; }
.ticket.hl, tr.hl td { background: var(--raised); }
.ticket > header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.ticket h3 { margin: 0; font-size: 15px; font-weight: 600; }
.ticket .sym { color: var(--text-2); font-size: 12.5px; }
.side.buy { color: var(--rise); } .side.sell { color: var(--fall); }
.fields dd small, td small { display: block; color: var(--text-2); font-size: 12px; }
.decide { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 8px; }
.decide input[type="password"] { width: 9rem; letter-spacing: 0.2em; }
button.go { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
button.stop { color: var(--rise); }
.state.ok { color: var(--c2); } .state.warn { color: var(--credit); } .state.wait { color: var(--text); }
.state.bad { color: var(--rise); } .state.flat { color: var(--text-2); }
#active-table td, #done-table td { vertical-align: top; }

/* folds: every block of values opens and closes the same way, its summary says what and how many */
details.fold > summary .count { color: var(--text-3); margin-left: 4px; }
details.fold > summary .mark { margin-right: 4px; }
details.fold > .fb { padding-top: 4px; }
details.fold[open] > summary { color: var(--text); }
.fold-all { display: flex; gap: 6px; }
.fold-all[hidden] { display: none; }
.fold-all button { font-size: 12px; color: var(--text-2); padding: 2px 9px; }
.fold-all button:hover { color: var(--text); }
.head-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
details.lrow { border-top: 1px solid var(--hair-2); margin-top: 0; padding: 2px 0 4px; scroll-margin-top: 60px; min-width: 0; }
details.lrow > summary { overflow-wrap: anywhere; }
details.lrow:target, details.fold:target { background: var(--raised); }
details.fold { scroll-margin-top: 60px; }
details.rest { border-top: 0; margin-top: 2px; }
details.rest > summary { padding-top: 2px; }

/* a part: the reading on one side, its figures on the other */
.part { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4px 28px; align-items: start; }
.part > .read:only-child { grid-column: 1 / -1; }
.part .read > p:first-child { margin-top: 0; }
.figs { min-width: 0; }
.figs > details.fold:first-child { margin-top: 0; border-top: 0; }
.figs > details.fold:first-child > summary { padding-top: 0; }
.figs .src { color: var(--text-3); font-size: 12px; margin-top: 4px; }
@media (max-width: 1020px) { .part { grid-template-columns: 1fr; } }

/* figures: values and labels in text ink, bars from one zero line, a rise red and a fall blue */
figure.fig { margin: 2px 0 0; min-width: 0; }
figure.fig figcaption.note { margin-top: 6px; }
.fhead { font-size: 12.5px; color: var(--text-2); margin: 2px 0 8px; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.fhead .hv b { color: var(--text); font-weight: 600; }
.fhead .hv.hot { padding: 1px 6px 1px 8px; border-radius: 3px; }
.glyph { color: var(--text); font-size: 11px; margin-left: 4px; }
.fsub { font-size: 12px; color: var(--text-2); margin: 10px 0 2px; }
.bars { display: flex; flex-direction: column; }
.br { display: grid; grid-template-columns: minmax(7em, 36%) minmax(60px, 1fr) 8.5em; gap: 10px; align-items: center; padding: 3px 4px; border-radius: 3px; }
.br .bl { min-width: 0; overflow-wrap: anywhere; font-size: 12.5px; }
.br .bv { text-align: right; font-weight: 600; white-space: nowrap; font-size: 13px; }
.br .bv small { display: block; font-weight: 400; color: var(--text-2); font-size: 11.5px; white-space: normal; }
svg.bt { display: block; overflow: visible; }
svg.bt .bar.up { fill: var(--rise); } svg.bt .bar.down { fill: var(--fall); }
svg.bt .bar.level, svg.bt .bar.member { fill: var(--c1); } svg.bt .bar.other { fill: var(--text-3); }
svg.bt .z { stroke: var(--text-2); stroke-width: 1; }
svg.bt .gr { stroke: var(--hair-2); stroke-width: 1; }
.br.axis { padding-top: 0; }
.br.axis .bl { color: var(--text-3); font-size: 11.5px; }
.br.axis text { fill: var(--text-3); font-size: 10.5px; }
.bars.dots svg.bt .gr { stroke: var(--hair); }
.bars.dots .pt { fill: var(--panel); stroke: var(--text); stroke-width: 2; }
.bars.dots .pt.at { fill: var(--text); }
/* a basket said in full: its companies, what kind they are, and the fund closest to it */
dl.bk { margin: 8px 0 0; font-size: 12.5px; }
dl.bk > div { display: grid; grid-template-columns: minmax(6em, max-content) minmax(0, 1fr); gap: 2px 10px; padding: 3px 0; border-top: 1px solid var(--hair-2); }
dl.bk dt { font-weight: 600; } dl.bk dd { margin: 0; color: var(--text); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 4px 24px; }
.pair .group > .fsub:first-child { margin-top: 0; }
.br .bl small { display: block; color: var(--text-2); font-size: 11px; }
.bars.drift svg.track { height: 12px; }
.bars.drift .br { grid-template-columns: 5.5em minmax(60px, 1fr) minmax(9em, 40%); }
.bars.drift .br .bv { white-space: normal; font-weight: 500; font-size: 12.5px; }
.tag { border: 1px solid var(--hair); border-radius: 3px; padding: 0 4px; font-size: 11px; color: var(--text-2); }
.ranges { margin-top: 8px; }
/* a range: the track on its own line, then the low and its day, where the value sits, and the high and its day */
.rg { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "rl bar bar bar" ". lo rp hi"; gap: 2px 8px; align-items: center; padding: 3px 4px; border-radius: 3px; font-size: 12.5px; }
.rg .rl { grid-area: rl; } .rg svg.strip { grid-area: bar; }
.rg .lo { grid-area: lo; } .rg .hi { grid-area: hi; text-align: right; } .rg .rp { grid-area: rp; text-align: center; font-weight: 600; }
.rg .lo, .rg .hi { color: var(--text); white-space: nowrap; }
.rg .lo small, .rg .hi small { color: var(--text-2); font-size: 11px; }
svg.strip { display: block; overflow: visible; }
svg.strip .track { fill: var(--hair); }
svg.strip .edge { fill: var(--text-3); }
.rg small.why { grid-column: 1 / -1; margin-top: 0; }
svg.strip .at { fill: var(--text); }
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: end; }
.col { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 12px; min-width: 0; padding: 2px; border-radius: 3px; }
.col .cv { font-weight: 600; overflow-wrap: anywhere; }
.col .cq, .col .cd { color: var(--text-2); }
.col .cd b, .col .cd .fv { color: var(--text); font-weight: 600; }
.cols.dense { gap: 2px; } .cols.dense .col { font-size: 11px; padding: 1px; }
.cols.dense .cv, .cols.dense .cq, .cols.dense .cy { white-space: nowrap; }
.cols.dense .cy { display: block; min-height: 1.4em; color: var(--text); font-weight: 600; }
svg.cbar { display: block; } svg.cbar rect { fill: var(--c1); }
ol.tl { list-style: none; margin: 0; padding: 0; }
ol.tl li { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 8px; padding: 3px 4px; border-top: 1px solid var(--hair-2); border-radius: 3px; }
ol.tl li:first-child { border-top: 0; }
ol.tl .td { white-space: nowrap; font-weight: 500; }
ol.tl .tn { overflow-wrap: anywhere; }
ol.tl .tn small { display: inline; color: var(--text-2); margin-left: 6px; }
ol.tl .tn .rd.alt { display: block; }  /* another reading of the same release, on a line of its own */
ol.tl .tn .rd.alt .rk { margin-left: 0; padding: 0 4px; border: 1px solid var(--hair-2); border-radius: 3px; }
ol.tl li.watched .tn, ol.tl li.watched .td { font-weight: 600; }
ol.tl li.more { display: block; color: var(--text-2); font-size: 12px; }
table.holdings th[scope="row"] { font-size: 12.5px; white-space: normal; font-weight: 400; color: var(--text); }
table.holdings th[scope="row"] small { display: block; color: var(--text-2); font-size: 11.5px; }
table.holdings td.amount { min-width: 8em; }
svg.amt { display: block; margin-top: 3px; } svg.amt rect.level { fill: var(--c1); } svg.amt rect.down { fill: var(--fall); }

/* a value a rule marked: a bar of text ink and a glyph with the reason in words, the same in light, dark, and grey */
.hot { background: var(--raised); box-shadow: inset 3px 0 0 var(--text); }
tr.hot { background: var(--raised); }
tr.hot > :first-child { box-shadow: inset 3px 0 0 var(--text); padding-left: 7px; }
small.why { display: block; color: var(--text); font-size: 11.5px; font-weight: 600; margin-top: 1px; white-space: normal; }
td small.why { color: var(--text); }
.notable { display: flex; align-items: flex-start; gap: 6px 10px; flex-wrap: wrap; margin-top: 10px; }
.nl { font-size: 12px; font-weight: 600; color: var(--text-2); padding-top: 5px; white-space: nowrap; }
.notable ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.notable li { border: 1px solid var(--text); border-radius: 4px; padding: 5px 9px; min-width: 15em; max-width: 26em; flex: 1 1 15em; }
.notable li > a { text-decoration: none; display: block; }
.notable li > a b { font-weight: 500; }
.notable li small { display: block; font-size: 11.5px; font-weight: 600; }
/* in a card the strip's ends each take a line: the low, where the value sits, the high */
.notable .rg { grid-template-columns: 2.4em minmax(0, 1fr); grid-template-areas: "rl bar" ". lo" ". rp" ". hi"; gap: 1px 6px; padding: 2px 0 0; font-size: 11.5px; background: none; box-shadow: none; }
.notable .rg .lo, .notable .rg .hi, .notable .rg .rp { white-space: normal; text-align: left; }
.notable .rg small.why { display: none; }
.notable details.fold { flex-basis: 100%; }
.conf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.conf .lv b { color: var(--text); font-weight: 600; }
.conf .dots { color: var(--text); letter-spacing: 1px; font-size: 10px; vertical-align: 1px; }
.conf details.fold { flex-basis: 100%; margin-top: 2px; }

/* the frame at each width: a column of icons under 1100 pixels, a bar with a menu under 720 */
@media (max-width: 1280px) {
  .s2 { grid-column: span 4; }
}
@media (max-width: 1100px) {
  .shell { grid-template-columns: 60px minmax(0, 1fr); }
  .rail { padding: 12px 8px; align-items: center; }
  .brand { padding: 2px 0 12px; }
  .brand a { font-size: 0; }
  .brand a::before { content: "내"; font-size: 15px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--raised); color: var(--accent); }
  .rail .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rail li.gl { height: 1px; padding: 0; margin: 6px 8px; background: var(--hair-2); font-size: 0; }
  .rail a[href], button.theme { justify-content: center; padding: 8px; }
  .s3, .s4, .s5 { grid-column: span 6; } .s7, .s8, .s9 { grid-column: span 12; }
  .donut { grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .s4, .s5, .s6 { grid-column: span 12; }
}
@media (max-width: 720px) {
  .shell { display: block; }
  .rail { position: sticky; z-index: 5; height: auto; padding: 0 12px; border-right: 0; border-bottom: 1px solid var(--hair-2); background: var(--canvas); align-items: stretch; }
  .brand { padding: 8px 0; min-height: 48px; }
  .brand a { font-size: 15px; } .brand a::before { content: none; }
  button.menu { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--text-2); font: inherit; padding: 6px; margin-right: -6px; border-radius: 5px; cursor: pointer; }
  .js .drawer { display: none; }
  .rail[data-open] .drawer { display: flex; max-height: calc(100vh - 49px); overflow-y: auto; padding-bottom: 10px; }
  .rail .lbl { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .rail ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .rail li.gl { grid-column: 1 / -1; height: auto; margin: 0; background: none; font-size: var(--fs-small); padding: 8px 10px 2px; }
  .rail a[href], button.theme { justify-content: flex-start; padding: 8px 10px; }
  .foot { flex-direction: row; }
  .top { padding: 14px 16px 10px; }
  .asof { margin-left: 0; }
  .board { padding: 0 12px; gap: 10px; }
  .p { padding: 12px 14px 14px; }
  .s2, .s3, .s4, .s5, .s6, .s7, .s8, .s9 { grid-column: span 12; }
  .stats, .stats.two, .stats.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 14px 16px; }
  .stats.wide { grid-template-columns: 1fr; gap: 12px; }
  .donut { grid-template-columns: 1fr; justify-items: center; }
  .donut svg.ring { max-width: 170px; }
  .donut table.legend { width: 100%; }
  footer.site { padding: 16px 16px 20px; }
}
@media (max-width: 720px) {
  .chart .ax.mid { display: none; }
  ul.dated { grid-template-columns: minmax(0, 1fr) auto; }
  ul.dated .when { grid-column: 1 / -1; }
}
@media (max-width: 720px) { :root { --fs-stat: 20px; --fs-stat-sm: 16px; } }
table.indicators td.sp, table.indicators th.sp { width: 86px; padding-left: 10px; }
table.indicators td.sp svg.spark { width: 76px; }
table.indicators td:not(.num), table.indicators th:not(.num) { padding-right: 8px; }
ul.dated .what .pill { margin-top: 3px; }
ul.dated img.th { display: block; width: 64px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--raised); }
table.indicators th.nm small { display: block; color: var(--text-3); font-size: var(--fs-small); font-weight: 400; }
@media (min-width: 1021px) and (max-width: 1280px) { .part { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }  /* a part's figures get the room their tables need */
