/* The member web page: the alert app's own colors (the beta page's :root, alert_app Theme.kt), a phone column on a phone and two
   columns (list + stock) on a wide screen. Nothing is loaded from elsewhere (no web font): the system's Korean font. */
:root {
  --bg: #0A0B0D; --nav: #0D0E11; --sf: #121316; --sf2: #191B1F; --sf3: #23252B;
  --ln: rgba(255, 255, 255, .067); --ln2: rgba(255, 255, 255, .114);
  --tx: #F4F4F5; --tx2: #A6A8B0; --tx3: #6D7079;
  --acc: #3ECFAA; --accd: rgba(62, 207, 170, .10); --pri1: #4BD8B4; --pri2: #2FB794; --prit: #03231B;
  --up: #F0616D; --upd: rgba(240, 97, 109, .10); --dn: #5B93EE; --dnd: rgba(91, 147, 238, .10); --ok: #7CC3A0;
  --hl: #FFE08A; --hld: rgba(255, 224, 138, .12); --tag: rgba(255, 255, 255, .055); --knob: #9A9CA4;
  --r: 14px; --top: 60px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }    /* hidden wins over a piece's own display */
html { -webkit-text-size-adjust: 100%; }
html.big { font-size: 115%; }
body {
  margin: 0; background: var(--bg); color: var(--tx); min-height: 100vh;
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", "Noto Sans KR", Roboto, sans-serif;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
  word-break: keep-all; overflow-wrap: break-word;    /* Korean breaks between words, not inside one */
}
html.big body { font-size: 16px; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
a { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.boot { color: var(--tx3); text-align: center; padding: 80px 16px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--tx3); } .soft { color: var(--tx2); } .accent { color: var(--acc); }
.up { color: var(--up); } .dn { color: var(--dn); } .flat { color: var(--tx2); }
.ic { width: 24px; height: 24px; flex: none; display: block; }
.ic.s { width: 20px; height: 20px; } .ic.xs { width: 14px; height: 14px; }
.grow { flex: 1 1 auto; min-width: 0; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; min-width: 0; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; }
.wrap { flex-wrap: wrap; }
.row.base { align-items: baseline; }
.strong { font-weight: 700; } .medium { font-weight: 500; } .small { font-size: 12.5px; } .tx { color: var(--tx); }
.block { display: block; } .fullw { width: 100%; } .center-text { text-align: center; }
.topgap { margin-top: 12px; } .topgap-s { margin-top: 5px; } .gap-l { margin-left: 8px; } .w18 { width: 18px; flex: none; }
body.noscroll { overflow: hidden; }
/* the page's own scroll bar (and a card's): thin and dark like the page, not the browser's light default */
html { scrollbar-width: thin; scrollbar-color: #2E3038 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2E3038; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3A3D46; }
.copybox { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }

/* ---------- pieces ---------- */
.panel { background: var(--sf); border: 1px solid var(--ln); border-radius: var(--r); overflow: hidden; }
.pad { padding: 14px 18px; }
.divider { height: 1px; background: var(--ln); }
.sec-title { font-size: 14.5px; font-weight: 600; padding: 14px 18px 10px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 500; line-height: 18px; padding: 0 8px; border-radius: 5px; background: var(--tag); color: var(--tx2); white-space: nowrap; }
.tag.acc { background: var(--accd); color: var(--acc); }
.tag.up { background: var(--upd); color: var(--up); }
.tag.dim { background: var(--sf2); color: var(--tx3); }
.tag.time { color: var(--hl); background: var(--hld); border: 1px solid rgba(255, 224, 138, .45); font-weight: 600; animation: glow 1.4s ease-in-out infinite alternate; }
@keyframes glow { from { background: rgba(255, 224, 138, .10); } to { background: rgba(255, 224, 138, .30); } }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dot.ok { color: var(--ok); background: rgba(124, 195, 160, .16); }
.dot.off { color: var(--tx3); background: rgba(109, 112, 121, .16); }
.dot.up { color: var(--up); background: rgba(240, 97, 109, .16); }
.btn { height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; padding: 0 16px; white-space: nowrap; width: 100%; }
.btn.primary { background: linear-gradient(var(--pri1), var(--pri2)); color: var(--prit); }
.btn.primary:disabled { background: var(--sf3); color: var(--tx3); }
.btn.ghost { border: 1px solid var(--ln2); color: var(--tx2); font-size: 14.5px; font-weight: 500; }
.btn.ghost:hover:not(:disabled) { background: var(--sf2); }
.btn.small { height: 44px; width: auto; min-width: 96px; font-size: 14px; }
/* a button that takes something away for good (deleting the account): red, grey until it may be pressed */
.btn.danger { background: var(--up); color: #fff; }
.btn.danger:disabled { background: var(--sf3); color: var(--tx3); }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--tx2); flex: none; }
.iconbtn:hover { background: var(--sf2); }
.iconbtn.on { color: var(--acc); }
.pill { min-height: 34px; border-radius: 99px; border: 1px solid var(--ln2); color: var(--tx2); font-size: 12.5px; font-weight: 500; padding: 0 13px; white-space: nowrap; }
.pill.on { background: var(--accd); border-color: rgba(62, 207, 170, .32); color: var(--acc); }
.seg { display: flex; gap: 2px; background: var(--sf2); border-radius: 9px; padding: 3px; }
.seg button { flex: 1 1 0; height: 36px; border-radius: 7px; color: var(--tx3); font-size: 13px; font-weight: 500; white-space: nowrap; min-width: 0; padding: 0 4px; }
.seg button[aria-selected="true"] { background: var(--sf3); color: var(--tx); }
/* a small row of buttons is as wide as its words (1분 · 5분 · 15분 · 1시간, 많이 오른 · 많이 내린 · 자주 울린), never squeezed into a
   fixed width (CEO 2026-11-20 14:51 KST: 「1시간」 ran out of its box) */
.seg.small { width: max-content; max-width: 100%; flex: none; }
.seg.small button { flex: 0 0 auto; height: 30px; font-size: 12.5px; padding: 0 10px; }
.input { width: 100%; background: var(--sf2); border: 1px solid var(--ln); border-radius: 10px; padding: 12px; outline: none; color: var(--tx); font-size: 14px; }
.input::placeholder { color: var(--tx3); }
.input:focus { border-color: rgba(62, 207, 170, .55); }
.input.bad { border-color: rgba(240, 97, 109, .7); }
textarea.input { resize: vertical; min-height: 84px; }
.problem { color: var(--up); font-size: 12.5px; padding: 5px 4px 0; }
.err { color: var(--up); font-size: 13.5px; font-weight: 500; text-align: center; margin-top: 12px; }
.note { color: var(--acc); font-size: 13.5px; font-weight: 500; text-align: center; margin-top: 12px; }
.switch { width: 56px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.switch i { width: 42px; height: 24px; border-radius: 12px; background: var(--sf3); position: relative; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--knob); transition: transform .15s, background .15s; }
.switch[aria-checked="true"] i { background: var(--acc); }
.switch[aria-checked="true"] i::after { transform: translateX(18px); background: var(--prit); }
.kv { display: flex; align-items: center; gap: 12px; padding: 11px 18px; font-size: 13.5px; }
.kv > :first-child { color: var(--tx3); flex: 1; }
.kv > :last-child { font-weight: 500; font-variant-numeric: tabular-nums; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--upd); border: 1px solid rgba(240, 97, 109, .25); color: var(--up); font-size: 12px; font-weight: 700; }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.toast { position: fixed; left: 50%; top: calc(var(--top) + 10px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 60; max-width: min(92vw, 440px);
  background: var(--sf3); color: var(--tx); border: 1px solid var(--ln2); border-radius: 12px; padding: 11px 16px; font-size: 13.5px; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
@media (prefers-reduced-motion: reduce) { .tag.time, .badge-live::before { animation: none; } }

/* ---------- the start screens ---------- */
.start { min-height: 100vh; background: var(--nav); position: relative; overflow: hidden; }
.start canvas.radar { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.start .col { position: relative; max-width: 440px; margin: 0 auto; padding: 0 24px 32px; min-height: 100vh; display: flex; flex-direction: column; }
.start .col.center { justify-content: center; align-items: center; text-align: center; }
.mascot { width: 190px; height: 190px; object-fit: contain; }
.brand { font-size: 34px; font-weight: 700; letter-spacing: -1.5px; margin-top: 18px; }
.brand span { color: var(--acc); }
.slogan { color: var(--tx2); font-size: 16px; line-height: 25px; margin: 12px 0 48px; }
.start .topback { padding-top: 8px; margin-bottom: 12px; margin-left: -10px; }
.start h1 { font-size: 26px; margin: 0; }
.start .sub { color: var(--tx2); font-size: 14px; margin-top: 6px; }
.stack > * + * { margin-top: 10px; }
.start .ways, .start .form { margin-top: 26px; }
.start .col.center > .stack { margin-top: 0; }
.start .col.center > .err { margin: 0 0 14px; }
.start .muted { font-size: 12.5px; margin-top: 18px; }
.start .col.center .soft { margin: 14px 0 26px; line-height: 1.6; }
.start .col.center h1 { font-size: 22px; }
.start .col.center .accent { margin-top: 6px; max-width: 100%; }
.center-row { display: flex; justify-content: center; margin-top: 10px; }
.way { height: 52px; border-radius: 12px; background: var(--sf); border: 1px solid var(--ln2); display: flex; align-items: center; gap: 12px; padding: 0 16px; width: 100%; font-size: 15px; font-weight: 600; text-align: left; }
.way:hover:not(:disabled) { background: var(--sf2); }
.way:disabled { background: rgba(18, 19, 22, .5); border-color: var(--ln); color: var(--tx3); }
.way:disabled .ic { opacity: .4; }
/* the Google row: Google's own button, drawn by Google's script, in the middle of a row as tall as the others. The button is a frame
   with a light page inside; on our dark page Chrome paints a white box behind a frame whose colour scheme is not its page's, so the
   row is light to the frame (seen on the live page 2026-11-20: a white band around the button). */
.gway.gbtn { height: 52px; overflow: hidden; display: flex; align-items: center; justify-content: center; color-scheme: light; }
/* Before Google's frame is up (and for good when a blocker or a slow line keeps its frame or its style sheet away) Google's script
   leaves a plain button here: a logo with no size of its own, which then fills the row as a page-wide G with its words twice (CEO
   2026-11-20: seen so). So that plain button is kept to a button's shape here. These rules weigh nothing (:where), so Google's own
   style sheet wins wherever it loads. */
:where(.gway.gbtn) :where([role="button"]) { display: flex; align-items: center; justify-content: center; gap: 10px; height: 40px; max-width: 100%; padding: 0 12px; border-radius: 4px; background: #131314; border: 1px solid #8e918f; color: #e3e3e3; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; cursor: pointer; }
:where(.gway.gbtn) :where([role="button"] > div) { display: flex; align-items: center; gap: 10px; min-width: 0; }
:where(.gway.gbtn) :where([role="button"] > div:empty) { display: none; }
:where(.gway.gbtn) :where(svg) { width: 18px; height: 18px; display: block; flex: none; }
:where(.gway.gbtn) :where(#button-label) { display: none; }
.gway-note { margin-top: 6px; font-size: 13px; color: var(--tx2); text-align: center; }
.gway-note .textlink { font-size: 13px; padding: 4px 6px; color: var(--acc); }
.switchline { text-align: center; color: var(--tx3); font-size: 13.5px; margin-top: 22px; }
.switchline button { color: var(--acc); font-weight: 600; padding: 8px; }
.textlink { color: var(--tx2); font-size: 13.5px; font-weight: 500; padding: 8px 10px; border-radius: 6px; align-self: center; }
a.textlink { text-decoration: none; }
.links { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; align-self: center; }
.pwrow { display: flex; gap: 6px; align-items: center; }
.pwrow .input { flex: 1; }
.verify-ic { width: 72px; height: 72px; border-radius: 36px; background: var(--accd); color: var(--acc); display: flex; align-items: center; justify-content: center; margin: 56px auto 18px; }
.verify-ic .ic { width: 34px; height: 34px; }
/* the page a mail's link opens (the address check, a new password) */
.verify-ic.bad { background: var(--upd); color: var(--up); }
.linkpage .mascot { width: 132px; height: 132px; margin: 36px auto 0; display: block; }
.linkpage .verify-ic { margin-top: 14px; }
.linkpage .card { background: var(--sf); border: 1px solid var(--ln); border-radius: 16px; padding: 20px; margin: 4px 0 22px; text-align: left; width: 100%; }
.linkpage .card .strong { margin-bottom: 6px; }
.linkpage .card p, .start .col.center .card .soft { margin: 0; line-height: 1.6; }

/* ---------- the main page ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(10, 11, 13, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ln); }
.topbar .in { max-width: 1240px; margin: 0 auto; height: var(--top); display: flex; align-items: center; gap: 10px; padding: 0 6px 0 16px; }
.logo { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.topbar .name { font-size: 16.5px; font-weight: 700; }
.topbar .mk { font-size: 12px; color: var(--tx2); gap: 5px; }
.topnav { display: none; gap: 4px; margin-left: 18px; }
.topnav a { color: var(--tx3); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.topnav a:hover { color: var(--tx2); background: var(--sf2); }
.topnav a[aria-current="page"] { color: var(--tx); background: var(--sf2); }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--nav); border-top: 1px solid var(--ln); display: flex; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.bottomnav a { flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--tx3); text-decoration: none; font-size: 11px; font-weight: 500; }
.bottomnav a[aria-current="page"] { color: var(--tx); }
.bottomnav .ic { width: 21px; height: 21px; }
.main { max-width: 1240px; margin: 0 auto; padding: 14px 16px calc(84px + env(safe-area-inset-bottom)); }
.cols { display: block; }
.side-empty { display: none; }
.list-col > * + * { margin-top: 12px; }
.title { font-size: 21px; font-weight: 700; margin: 20px 0 0; }
.subtitle { color: var(--tx3); font-size: 13px; margin-bottom: 12px; }
.subtitle.warn { color: var(--up); }
.title + .seg { margin-top: 12px; }
.sec-head { font-size: 14px; font-weight: 700; margin: 18px 0 8px; }

/* time card */
.timecard { padding: 16px 18px; }
.timecard.ended { background: var(--upd); border: 1px solid rgba(240, 97, 109, .3); border-radius: var(--r); }
.timecard .left { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; }
.timecard .left.paused { color: var(--tx2); }
.timecard .missed { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 4px; scrollbar-width: none; }
.timecard .missed .tag { color: var(--tx2); }

/* the feed */
.feedhead { display: flex; align-items: center; padding: 14px 18px 10px; }
.alert-row { display: block; width: 100%; text-align: left; padding: 12px 18px; border-top: 1px solid var(--ln); }
.alert-row:hover { background: var(--sf2); }
.alert-row.new { background: linear-gradient(90deg, rgba(62, 207, 170, .075), transparent 55%); }
.alert-row.sel { background: var(--accd); }
.alert-row .sym { font-size: 15px; font-weight: 700; flex: none; white-space: nowrap; }
.alert-row .nm { font-size: 12px; color: var(--tx3); margin-left: 8px; }
.alert-row .chg { font-size: 14px; font-weight: 600; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.alert-row .tm { font-size: 12px; color: var(--tx3); font-variant-numeric: tabular-nums; }
.alert-row.new .tm { color: var(--acc); }
.alert-row .px { font-size: 12.5px; color: var(--tx3); min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.alert-row .res { margin-top: 7px; font-size: 12px; gap: 6px; }
.alert-row canvas.spark { width: 46px; height: 16px; margin-right: 3px; }
.alert-row .star { color: var(--acc); margin-right: 5px; }
.alert-row .l2 { margin-top: 3px; gap: 8px; }
.rank-row .nm, .watch-row .nm { margin-left: 8px; }
.feed > * + * { margin-top: 12px; }
.feed > :empty { display: none; }
.brief-head { padding: 4px 4px 0 18px; }
.brief-sum { padding: 0 18px 12px; }
.memo { padding: 0 18px 16px; }
.big-sym { font-size: 18px; }
.empty { color: var(--tx3); font-size: 13px; padding: 18px; border-top: 1px solid var(--ln); }
.brief-row { display: flex; align-items: center; width: 100%; text-align: left; padding: 10px 18px; border-top: 1px solid var(--ln); gap: 8px; }
.brief-row:hover { background: var(--sf2); }
.brief-bar { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 13px 18px; }
.idxbar { padding: 13px 16px 11px; }
.idx-head { gap: 8px; margin-bottom: 10px; }
.idx-title { font-size: 14px; }
.idx-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.idx-cell { display: flex; flex-direction: column; min-width: 0; }
.idx-name { font-size: 12px; color: var(--tx3); }
.idx-pct { font-size: 15px; font-weight: 700; margin-top: 2px; white-space: nowrap; }
.idx-line { display: block; width: 100%; height: 22px; margin-top: 5px; }
.idx-foot { font-size: 11.5px; margin-top: 9px; }
.rank-row { position: relative; display: block; width: 100%; height: 58px; text-align: left; border-top: 1px solid var(--ln); }
.rank-row:first-child { border-top: 0; }
.rank-row:hover { background: var(--sf2); }
.rank-row .bar { position: absolute; left: 0; top: 0; bottom: 0; }
.rank-row .bar.up { background: rgba(240, 97, 109, .07); } .rank-row .bar.dn { background: rgba(91, 147, 238, .07); } .rank-row .bar.acc { background: rgba(62, 207, 170, .07); }
.rank-row .in { position: relative; height: 100%; display: flex; align-items: center; padding: 0 18px; gap: 10px; }
.rank-row .no { width: 22px; font-weight: 700; color: var(--tx3); font-variant-numeric: tabular-nums; }
.rank-row .no.top { color: var(--acc); }
.rank-row .val { flex: none; font-size: 15px; font-weight: 700; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-row .grow { min-width: 0; }

/* the stock */
.detail { padding-bottom: 8px; }
.detail .bar { display: flex; align-items: center; padding: 0 0 0 0; margin: -6px -10px 0; }
.detail .sym { font-size: 24px; font-weight: 700; cursor: copy; }
.detail .nm { font-size: 14px; color: var(--tx2); padding-bottom: 3px; }
.detail .price { font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.detail > * + * { margin-top: 12px; }
.detail .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chartpanel .head { display: flex; align-items: center; padding: 10px 12px 2px 14px; gap: 8px; }
.chartpanel canvas { display: block; width: 100%; height: 236px; touch-action: pan-y; }
/* the chart the member moves: 「처음 화면」 shows once it was moved */
.chartbox { position: relative; }
.chartreset { position: absolute; left: 8px; top: 28px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--ln2); background: rgba(25,27,31,0.92); color: var(--tx2); font: inherit; font-size: 12px; cursor: pointer; }
.chartreset:hover { color: var(--tx); }
.chartreset[hidden] { display: none; }
.charthint { font-size: 11.5px; color: var(--tx3); padding: 4px 8px 0 0; }
.chartpanel .legend { display: flex; align-items: center; padding: 0 6px 4px 14px; gap: 5px; font-size: 11.5px; color: var(--tx3); }
.legend .tri { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--acc); }
.legend .band { width: 8px; height: 12px; border-radius: 2px; background: rgba(62, 207, 170, .25); margin-left: 7px; }
.chartwait { color: var(--tx3); font-size: 12.5px; padding: 13px 18px; }
.after .stats { display: flex; padding: 0 18px; }
.after .stats > div { flex: 1; }
.after .stats .k { font-size: 12px; color: var(--tx3); }
.after .stats .v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.after canvas { display: block; width: calc(100% - 36px); height: 22px; margin: 14px 18px 0; }
.after .foot { display: flex; padding: 4px 18px 14px; font-size: 11.5px; color: var(--tx3); }
.newsbar { display: flex; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--accd); border: 1px solid rgba(62, 207, 170, .24); color: var(--acc); }
.newsbar.link { width: 100%; text-align: left; align-items: flex-start; }
.newsbar.link:hover { border-color: rgba(62, 207, 170, .5); }
.newsbar .newstitle { color: var(--tx); margin: 2px 0; }
.newstitle { font-size: 15px; line-height: 1.4; }
.alert-row .newsline { margin-top: 5px; gap: 6px; font-size: 12.5px; color: var(--tx2); }
.alert-row .newsline .ic { color: var(--acc); }
.newsback { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.newscard { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--sf); border: 1px solid var(--ln2); border-radius: 18px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.newscard > .row .ic { color: var(--acc); }
.newsitem { background: var(--sf2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.newsitem p { margin: 2px 0 0; }
.newsitem .orig { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--ln); font-size: 12.5px; color: var(--tx2); overflow-wrap: anywhere; word-break: normal; }
.newscard > p { margin: 0; }
.warnbar { padding: 12px 16px; border-radius: 12px; background: var(--upd); border: 1px solid rgba(240, 97, 109, .22); font-size: 13px; }
.state { padding: 14px 16px 16px; }
.state .head { display: flex; align-items: center; gap: 11px; }
.state .head .stripe { width: 3px; height: 34px; border-radius: 2px; background: var(--acc); }
.state .head .v { font-size: 18px; font-weight: 700; }
.state .word { display: flex; align-items: center; gap: 8px; color: var(--tx2); font-size: 13px; margin-top: 10px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tile { background: var(--sf2); border: 1px solid var(--ln); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.tile .k { font-size: 12px; color: var(--tx3); }
.tile .v { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 3px; }
.tile .n { font-size: 11.5px; color: var(--tx3); font-variant-numeric: tabular-nums; }
.share { margin-top: 14px; }
.share + .share { margin-top: 10px; }
.share .k { display: flex; font-size: 12.5px; color: var(--tx2); }
.share .k b { font-size: 13.5px; font-weight: 600; color: var(--tx); }
.share .k b.up { color: var(--up); }
.share .track { position: relative; height: 6px; border-radius: 3px; background: var(--sf3); margin-top: 6px; overflow: hidden; }
.share .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--tx3); }
.share .fill.up { background: rgba(240, 97, 109, .75); }
.share .half { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--bg); }
/* 증자공시경고: the filings (premium), or the bar that says there are some */
.dilpanel { padding-bottom: 6px; }
.dilpanel .lead { padding: 0 18px 10px; }
.dilrow { padding: 10px 18px; border-top: 1px solid var(--ln); }
.dilrow .k { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; min-width: 0; }
.dilrow .k .strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dilrow .k .num { white-space: nowrap; }
.dilbar .soft { margin-top: 2px; }
/* the first part of the panel starts at its top: a panel of tiles alone has no blank band above them */
.state > :first-child { margin-top: 0; }
.same-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 18px; border-top: 1px solid var(--ln); font-size: 13px; }
.same-row:hover { background: var(--sf2); }
.same-row.cur { background: var(--accd); }
.same-row .t { width: 48px; font-weight: 500; color: var(--tx2); font-variant-numeric: tabular-nums; }
.same-row.cur .t { color: var(--acc); }
.actions { display: flex; gap: 8px; position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.disclaimer { color: var(--tx3); font-size: 12px; }

/* the big chart */
.bigchart { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; padding: max(2px, env(safe-area-inset-top)) max(4px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.bigchart .head { display: flex; align-items: center; gap: 8px; min-height: 48px; }
/* on a phone the candle lengths go to a line of their own under the name, so that the close button stays on the screen */
@media (max-width: 520px) {
  .bigchart .head { flex-wrap: wrap; row-gap: 2px; padding-bottom: 4px; }
  .bigchart .head .steps { order: 9; flex-basis: 100%; }
}
.bigchart .stats { display: flex; gap: 12px; overflow-x: auto; font-size: 12.5px; color: var(--tx3); padding-right: 8px; white-space: nowrap; scrollbar-width: none; }
.bigchart .stats b { color: var(--tx); font-weight: 600; font-variant-numeric: tabular-nums; }
.bigchart .chartbox { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin-top: 4px; }
.bigchart canvas { flex: 1 1 auto; width: 100%; min-height: 0; touch-action: none; }

/* the account */
.acct > * + * { margin-top: 12px; }
.acct .line { padding: 0 18px 14px; font-size: 13px; }
.acct .inrow { display: flex; gap: 8px; align-items: center; padding: 8px 18px 14px; }
.acct .inrow .input { flex: 1; min-width: 0; }
.checkword { font-size: 26px; font-weight: 700; color: var(--acc); letter-spacing: 2px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.setrow { display: flex; align-items: center; padding: 6px 11px 6px 18px; gap: 8px; }
.setrow .k { font-size: 14px; font-weight: 500; }
.setrow .d { font-size: 12px; color: var(--tx3); }
.navrow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 13px 18px; border-top: 1px solid var(--ln); color: var(--tx); text-decoration: none; }
.navrow:first-child { border-top: 0; }
.navrow:hover { background: var(--sf2); }
.navrow .d { font-size: 12px; color: var(--tx3); }
.watch-row { display: flex; align-items: center; padding: 10px 4px 10px 18px; border-top: 1px solid var(--ln); gap: 6px; }
.watch-row:first-child { border-top: 0; }
.watch-row .open { flex: 1; min-width: 0; text-align: left; }
.watch-row .open:disabled { cursor: default; }

/* ---------- wide screens: the list and the stock side by side ---------- */
@media (min-width: 960px) {
  .topnav { display: flex; }
  .bottomnav { display: none; }
  .main { padding-bottom: 32px; }
  .cols { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 20px; align-items: start; }
  .cols.one { grid-template-columns: minmax(0, 640px); justify-content: center; }
  /* The stock's side scrolls by itself (wheel, touch, keys) with no scroll bar: the browser's plain bar looked out of place (CEO
     2026-11-20 13:21 KST). Its top and bottom edges fade while there is more that way (app.js sets more-up / more-down). */
  .side { position: sticky; top: calc(var(--top) + 14px); max-height: calc(100vh - var(--top) - 28px); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; }
  .side::-webkit-scrollbar { display: none; }
  .side.more-down { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); }
  .side.more-up { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px); mask-image: linear-gradient(to bottom, transparent, #000 28px); }
  .side.more-up.more-down { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 48px), transparent); }
  .side-empty { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 420px; color: var(--tx3); font-size: 13.5px; }
  .detail .bar .back { display: none; }
  .actions { position: static; background: none; padding: 4px 0 0; }
}
@media (max-width: 959.98px) {
  .cols.has-side .list-col { display: none; }
  .cols:not(.has-side) .side { display: none; }
}
@media (max-width: 380px) {
  .detail .price { font-size: 30px; }
  .seg button { font-size: 12px; }
}

/* 관심종목 가격 알림 (CEO 2026-11-20 14:51 KST): the price boxes of a stock, in the stock view and on 관심종목 */
.pricebox .line, #watchprices .line { padding: 0 18px 12px; font-size: 13px; }
.pricebox .pad-x { padding: 0 18px 14px; }
.priceform { display: flex; flex-direction: column; gap: 8px; padding: 4px 18px 14px; }
.priceform .pf-row { display: flex; align-items: center; gap: 10px; }
.priceform .pf-row .input { flex: 1; min-width: 0; padding: 10px 12px; }
.priceform .pf-k { flex: none; width: 44px; font-size: 13px; font-weight: 600; }
.priceform .quick { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 54px; }
.priceform .quick .pill { min-height: 30px; padding: 0 11px; }
.priceform .pf-save { display: flex; justify-content: flex-end; }

/* 미국 지수 흐름, folded: one line of the four changes (CEO 2026-11-21 07:35 KST) */
.idx-fold { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 16px; }
.idx-fold:hover { border-color: var(--ln2); }
.idx-fold .idx-title { white-space: nowrap; flex: none; }
.idx-fold > .accent { flex: none; white-space: nowrap; }
.idx-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; min-width: 0; font-size: 12.5px; }
@media (min-width: 640px) { .idx-mini { grid-template-columns: repeat(4, auto); justify-content: start; } }
.idx-m { white-space: nowrap; }
.idx-flip { min-height: 28px; padding: 0 11px; }
/* 증자 공시 and the news: what the filing / the article says, and the original */
.dil-sum { margin-top: 6px; padding: 9px 12px; border-radius: 10px; background: var(--sf2); }
.dil-sum p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--tx2); }
.news-detail { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--ln); }
.news-detail p { margin: 6px 0 0; font-size: 14px; line-height: 1.7; color: var(--tx); overflow-wrap: anywhere; word-break: keep-all; }
.orig-link { display: inline-block; margin-top: 6px; padding: 4px 0; color: var(--acc); text-decoration: none; font-weight: 500; background: none; border: 0; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.orig-link:hover { text-decoration: underline; }
/* 「원문 보기」 on our own screen (CEO 2026-11-21 12:48 KST) */
.newsback.over { z-index: 61; }
/* the reading page of an original (CEO 2026-11-21 14:55 KST 「원문 보기 … 보기불편」): a wide column, room between the lines, headings
   told apart, the bar with 「닫기」 always in sight; 글자 크게 makes every letter a step bigger */
.reader { width: 100%; max-width: 720px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--sf); border: 1px solid var(--ln2); border-radius: 18px; padding: 0 22px 20px; }
.reader-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0 -22px; padding: 12px 22px; background: var(--sf); border-bottom: 1px solid var(--ln); }
.reader-top .btn.sm { width: auto; height: 38px; padding: 0 14px; font-size: 13.5px; flex: none; border: 1px solid var(--ln2); color: var(--tx2); font-weight: 600; }
.reader-top .btn.sm.primary { border: 0; color: var(--prit); }
.reader-top .btn.sm[aria-pressed="true"] { background: var(--accd); border-color: rgba(62, 207, 170, .32); color: var(--acc); }
.reader-title { margin: 18px 0 6px; font-size: 19px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.reader-label { margin: 18px 0 8px; font-size: 12.5px; font-weight: 600; color: var(--acc); letter-spacing: .02em; }
.reader-ko { padding: 2px 16px 14px; border-radius: 12px; background: var(--sf2); }
.reader-ko p { margin: 0 0 8px; font-size: 15px; line-height: 1.75; color: var(--tx); word-break: keep-all; overflow-wrap: anywhere; }
.reader-ko p:last-child { margin-bottom: 0; }
.reader-body > p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.75; color: var(--tx2); overflow-wrap: anywhere; word-break: normal; }
.reader-body > h3 { margin: 22px 0 10px; font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--tx); overflow-wrap: anywhere; }
.reader-foot { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--ln); }
.reader.big .reader-title { font-size: 22px; }
.reader.big .reader-ko p { font-size: 17.5px; }
.reader.big .reader-body > p, .reader.big .reader-body > h3 { font-size: 18px; }
/* what matters most in 만두봇's words (**…**): brighter and bolder, never a colour of rise or fall */
b.em { font-weight: 700; color: #fff; background: linear-gradient(transparent 62%, rgba(62, 207, 170, .28) 0); border-radius: 2px; }
.insight-points { list-style: none; margin: 8px 18px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.insight-points li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.6; color: var(--tx2); word-break: keep-all; overflow-wrap: anywhere; }
.insight-points li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); }
.insight-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 18px 0; padding: 9px 12px; border-radius: 10px; background: rgba(232, 163, 61, .08); border: 1px solid rgba(232, 163, 61, .24); font-size: 13.5px; line-height: 1.6; color: var(--tx); word-break: keep-all; overflow-wrap: anywhere; }
.insight-note .tag { flex: none; margin-top: 2px; }
/* 친구 초대 */
.refask { padding: 14px 16px; border: 1px solid rgba(62, 207, 170, .32); background: var(--accd); }
.refask .row { gap: 8px; }
.refask .soft { margin-top: 4px; line-height: 1.55; }
.ref-claim .inrow { display: flex; gap: 8px; align-items: center; padding: 10px 0 0; }
.ref-claim .inrow .input { flex: 1; min-width: 0; letter-spacing: 2px; text-transform: uppercase; }
.ref-claim .inrow .input:placeholder-shown { letter-spacing: normal; }
.ref-claim .pad-x { padding: 8px 0 0; }
.refpanel .ref-code { margin: 0 18px 12px; padding: 12px 14px; border-radius: 12px; background: var(--accd); border: 1px dashed rgba(62, 207, 170, .45); }
.ref-code-v { font-size: 24px; font-weight: 700; letter-spacing: 4px; color: var(--acc); }
.ref-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 18px 12px; }
.ref-tile { background: var(--sf2); border: 1px solid var(--ln); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.ref-tile .v { font-size: 17px; font-weight: 700; margin-top: 2px; overflow-wrap: anywhere; }
.ref-tile .v.small-v { font-size: 13px; font-weight: 600; line-height: 1.45; }
.ref-how { margin: 0 18px 12px; padding: 10px 12px 10px 30px; border-radius: 10px; background: var(--sf2); font-size: 13px; color: var(--tx2); line-height: 1.6; }
.ref-how li + li { margin-top: 3px; }
.refpanel .line .strong.small { margin-bottom: 6px; }
.refpanel .line .kv { padding: 7px 0; border-top: 1px solid var(--ln); gap: 10px; }
.refpanel .line .kv > span:first-child { flex: 1; min-width: 0; }
.ref-friend { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.ref-friend .track { position: relative; height: 6px; border-radius: 3px; background: var(--sf3); overflow: hidden; min-width: 40px; }
.ref-friend .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--tx3); }
.ref-friend .fill.ok { background: var(--acc); }
@media (max-width: 420px) {
  .ref-tiles { grid-template-columns: 1fr 1fr; }
  .ref-tiles .ref-tile:last-child { grid-column: 1 / -1; }
  .ref-code-v { font-size: 21px; letter-spacing: 3px; }
}
/* AI 분석 · 공시 위험도 · 물어보기 (CEO 2026-11-21 09:05 KST) */
.warn { color: #E8A33D; }
.tag.warn { background: rgba(232, 163, 61, .12); color: #E8A33D; }
.warnbar.caution { background: rgba(232, 163, 61, .08); border-color: rgba(232, 163, 61, .28); }
.insight { padding-bottom: 12px; }
.insight-t { margin: 0 18px; font-size: 15.5px; font-weight: 600; line-height: 1.6; color: var(--tx); word-break: keep-all; overflow-wrap: anywhere; }
.insight.locked p { margin: 0 18px; }
.dilrow .k .tag { flex: none; }
.askpanel textarea.input { width: 100%; min-height: 64px; resize: vertical; font: inherit; line-height: 1.5; }
.askpanel .btn { flex: none; white-space: nowrap; }
.ask-item { border-top: 1px solid var(--ln); }
.ask-q { display: flex; gap: 4px; align-items: baseline; flex-wrap: wrap; word-break: keep-all; overflow-wrap: anywhere; }
/* 공지사항: a title row that opens the body, the body as the CEO wrote it */
.notice-item { border-top: 1px solid var(--ln); }
.noticepanel .sec-title + .notice-item { border-top: 0; }
.notice-head { width: 100%; text-align: left; min-height: 32px; flex-wrap: wrap; }
.notice-title { overflow-wrap: anywhere; }
.notice-body { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--sf2); font-size: 13.5px; line-height: 1.65; color: var(--tx2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-a { margin: 6px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--sf2); font-size: 13.5px; line-height: 1.65; color: var(--tx2); white-space: pre-wrap; overflow-wrap: anywhere; }
/* 친구 초대: the code, its copy button and 「친구에게 보내기」 fit a 360px phone (the button goes under the code when they do not) */
.refpanel .ref-code .row { flex-wrap: wrap; row-gap: 8px; }
.refpanel .ref-code .btn { flex: none; white-space: nowrap; }

/* The smallest phones (the full check 2026-11-21 10:00 KST): 320px, and 280px (a folding phone's outer screen). Nothing goes past the
   right edge: the filters, the tabs at the bottom, the two buttons under a stock, the big chart and the news card get smaller or wrap. */
@media (max-width: 340px) {
  .seg button { font-size: 11.5px; padding: 0 2px; letter-spacing: -0.3px; }
  .bottomnav a { min-width: 0; font-size: 10px; }
  .actions .btn { min-width: 0; padding: 0 8px; font-size: 13.5px; }
  .bigchart .head { min-width: 0; }
  .bigchart .head > * { min-width: 0; }
  .bigchart .head .muted.small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 0; }
  .bigchart .charthint { white-space: normal; }
  .newsback { padding: 8px; }
  .newscard { padding: 14px 12px 12px; min-width: 0; }
  .newscard > .row { flex-wrap: wrap; row-gap: 2px; }
}
@media (max-width: 300px) {
  .idx-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .seg button { white-space: normal; word-break: keep-all; line-height: 1.15; height: auto; min-height: 36px; padding: 2px; }
}
/* on a phone the reading page is the whole screen */
@media (max-width: 600px) {
  .newsback.over { padding: 0; align-items: stretch; }
  .reader { max-width: none; max-height: none; height: 100%; border: 0; border-radius: 0; padding: 0 16px 24px; }
  .reader-top { margin: 0 -16px; padding: 10px 16px; }
  .reader-title { font-size: 18px; }
}
