/* 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;
  /* the marks of an alert, each its own quiet colour (CEO 2026-11-23 18:40 KST; Theme.kt the same) */
  --prog: #F5A25D; --progd: rgba(245, 162, 93, .12); --first: #B4A1FF; --firstd: rgba(180, 161, 255, .13);
  --fil: #63C7E6; --fild: rgba(99, 199, 230, .12); --news: #D6D8DE; --newsd: rgba(255, 255, 255, .085);
  --m1: #FFD866; --m1d: rgba(255, 216, 102, .15); --m2: #CDD3DD; --m2d: rgba(205, 211, 221, .13); --m3: #E8A877; --m3d: rgba(232, 168, 119, .14);
  --mark: #FF9F1C; --markt: #1C1200;    /* 도움말's marks and their numbers (Help.kt MARK, MARK_ON) */
  /* 주말 피버타임 A안 (CEO 2026-11-28 22:11 KST): the flame colours of the time card while it runs (Theme.kt fever*) */
  --fv: #FFB54D; --fv2: #FF8A1C; --fvbg: #2A1608; --fvbg2: #151007; --fvtx: #E8C9A0; --fvdim: #8C7E6E; --fvt: #2A1300; --fvglow: rgba(255, 159, 28, .55);
  --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%; }
/* 글자 크기 「크게」 (CEO order 426 「웹에서 글자 크기 보통,크게 두개 다 똑같은데?」): every size is in px times --fz, so the whole page grows */
:root { --fz: 1; }
html.big { --fz: 1.14; }
body {
  margin: 0; background: var(--bg); color: var(--tx); min-height: 100vh;
  font: calc(14px * var(--fz))/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 */
}
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: calc(12.5px * var(--fz)); } .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: calc(14.5px * var(--fz)); font-weight: 600; padding: 14px 18px 10px; }
.tag { display: inline-block; font-size: calc(11.5px * var(--fz)); 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); }
/* (CEO 2026-12-03 order 301) a KR stock that hit its day's limit: a small filled tag beside the move */
.tag.limit { margin-left: 6px; font-size: calc(11px * var(--fz)); line-height: 17px; padding: 0 6px; font-weight: 700; vertical-align: 1px; }
.tag.limit.up { background: var(--up); color: #fff; }
.tag.limit.dn { background: var(--dn); color: #fff; }
/* 투자주의 (amber outline) · 투자경고·투자위험 (amber fill): the exchange's 시장경보 on a Korean stock's screen (orders 329 and 336) */
.tag.mwarn { margin-left: 6px; font-size: calc(11px * var(--fz)); line-height: 15px; padding: 0 6px; font-weight: 700; vertical-align: 1px; color: #F5B14C; border: 1px solid #F5B14C; background: transparent; }
.tag.mwarn.strong { background: #F5B14C; color: #1a1205; }
html.light .tag.mwarn { color: #A8620A; border-color: #A8620A; } html.light .tag.mwarn.strong { background: #C77A12; color: #fff; border-color: #C77A12; }
.tag.dim { background: var(--sf2); color: var(--tx3); }
.tag.prog { background: var(--progd); color: var(--prog); }
.tag.first { background: var(--firstd); color: var(--first); }
.tag.fil { background: var(--fild); color: var(--fil); }
.tag.news { background: var(--newsd); color: var(--news); }
/* 나라·거래소 (CEO 2026-11-30 01:18 KST): the flag in the phone's own emoji, or on a Windows PC (no flag pictures there) the flags-only font */
@font-face { font-family: "MR Flags"; src: url(/web/fonts/twemoji-flags.woff2) format("woff2"); unicode-range: U+1F1E6-1F1FF; font-display: swap; }
.tag.place { display: inline-flex; align-items: center; gap: 4px; background: var(--sf2); color: var(--tx2); }
/* 종목 테마 beside 나라·거래소 in the same tag (CEO 2026-12-04 00:12 KST 「옆에 테마 뜨게 이쁘게」): the accent's words after a thin bar.
   (지시 451 「줄밀리는거 … 자연스럽게」) The place and the 테마 are two whole pieces: side by side when they fit, else the 테마 under the place,
   whole; never one folded in the middle of a word beside the other. Each piece has its bar before it, and the row is pulled 7 px to the left
   inside a clip, so the bar of whatever starts a line (the place, or a 테마 that went under it) is out of sight: a bar only between two pieces. */
.tag.place .pl-clip { display: block; min-width: 0; max-width: 100%; overflow: hidden; }
.tag.place .pl-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: 5px; row-gap: 1px; margin-left: -7px; }
/* (the bar sits in each piece's own 7 px on its left, so a piece folded at a space starts its second line where its first began) */
.tag.place .pl-row > span { display: block; position: relative; min-width: 0; padding-left: 7px; }
.tag.place .pl-row > span::before { content: ''; position: absolute; left: 0; top: 3px; top: calc((1lh - 10px) / 2); width: 1px; height: 10px; background: var(--ln2); }
/* (the flag a piece of its own in the line: where 「🇲🇾 말레이시아」 has no room the country goes under the flag whole, not cut after 「말레이」) */
.tag.place .pl-at .flag { display: inline-block; margin-right: 4px; }
.tag.place .th { color: var(--acc); font-weight: 700; }
/* 회사 한 줄 (지시 439): the 종목 화면's tag with a 테마 takes a press; the line opens under the tags */
.tag.place.co-press { cursor: pointer; }
.tag.place.co-press .th::after { content: ' ›'; font-weight: 400; }
.tag.place.co-press[aria-expanded="true"] { background: var(--accd); }
.tag.place.co-press:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.co-line { margin-top: 8px; padding: 9px 12px; border-radius: 10px; background: var(--sf2); color: var(--tx); font-size: calc(13px * var(--fz)); line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; }
.co-line .muted { color: var(--tx2); }
.flag { font-family: "Apple Color Emoji", "Noto Color Emoji", "MR Flags", sans-serif; font-size: calc(13px * var(--fz)); line-height: 1; }
.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: calc(15px * var(--fz)); 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: calc(14.5px * var(--fz)); font-weight: 500; }
.btn.ghost:hover:not(:disabled) { background: var(--sf2); }
.btn.small { height: 44px; width: auto; min-width: 96px; font-size: calc(14px * var(--fz)); }
/* 광고 보고 시간 받기 on the time card: the button and today's count beside it (under it when the card is narrow) */
.adwatch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.adwatch .btn { flex: none; }
/* on the time card, as in the app: the whole width of the card, today's count under it */
.timecard .adwatch .btn { flex: 1 1 100%; width: 100%; height: 48px; font-size: calc(15px * var(--fz)); font-weight: 700; }
/* today's count at the right under the button (CEO 2026-11-29 00:53 KST 「오늘0/48 이걸 오른쪽으로」) */
.adwatch .ad-count { text-align: right; }
.adwatch .ad-quick { color: var(--acc); white-space: nowrap; align-self: flex-start; }
/* the right of the line under the button: today's count, then 「프리미엄 보기」 and 「광고 제거」 on the time card (the app's the same) */
/* it takes the room left of the line and wraps inside it, right-aligned: on a narrow phone the links go under today's count, and
   「연속 시청 가능」 and today's count stay on one line; the links never go out of the card */
.adwatch .ad-right { align-self: flex-start; margin-left: auto; flex: 1 1 0; min-width: min-content; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px; white-space: nowrap; }
.adwatch .ad-right .ad-count { margin-right: 6px; }
.adwatch .ad-right:empty { display: none; }
/* the buttons' padding is for the finger; it does not make the line taller than 「연속 시청 가능」's */
.pass-links { display: inline-flex; gap: 2px; margin: -5px -4px -5px 0; }
.timecard .adwatch { column-gap: 8px; }
.linkbtn { background: none; border: 0; padding: 4px 4px; border-radius: 6px; font: inherit; font-size: calc(12.5px * var(--fz)); font-weight: 500; cursor: pointer; color: var(--acc); }
@media (max-width: 420px) { .linkbtn { font-size: calc(12px * var(--fz)); } }
.linkbtn.muted { color: var(--tx3); font-weight: 400; }
.linkbtn:hover { background: var(--accd, rgba(62, 207, 160, .12)); }
.linkbtn:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
/* the first line of the pay screens: alerts are free for everyone */
.buypanel .free-line, .buycard .free-line { color: var(--acc); }
/* 주말 피버타임: its own line over the button */
.adwatch .weekend { flex: 0 0 100%; color: var(--acc); }
/* 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: calc(12.5px * var(--fz)); font-weight: 500; padding: 0 13px; white-space: nowrap; }
.pill.on { background: var(--accd); border-color: rgba(62, 207, 170, .32); color: var(--acc); }
/* the chart's candle length as a list that opens downward (CEO 2026-11-26 19:40 KST 「토스처럼」): 「1분 ⌄」, pressed: 10초 … 1시간 one under another */
.steppick-wrap { position: relative; flex: none; }
.steppick { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 6px 0 10px; border-radius: 8px; color: var(--tx); font-size: calc(13.5px * var(--fz)); font-weight: 700; white-space: nowrap; }
.steppick:hover, .steppick[aria-expanded="true"] { background: var(--sf2); }
.steppick .chev { width: 6px; height: 6px; margin: 0 3px 3px 2px; border-right: 1.6px solid var(--tx2); border-bottom: 1.6px solid var(--tx2); border-radius: 0 0 1px 0; transform: rotate(45deg); }
.steppick .chev.up { margin: 3px 3px 0 2px; transform: rotate(225deg); }
.stepmenu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 108px; padding: 5px; display: flex; flex-direction: column; gap: 1px;
  /* a little see-through, the chart faint behind it (CEO 2026-11-26 19:41 KST 「저걸 살짝 불투명하게」) */
  background: rgba(25, 27, 31, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--ln2); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.stepopt { display: block; width: 100%; text-align: left; min-height: 36px; padding: 0 12px; border-radius: 8px; color: var(--tx2); font-size: calc(14px * var(--fz)); white-space: nowrap; }
.stepopt:hover { background: rgba(255, 255, 255, .07); color: var(--tx); }
.stepopt.on { background: rgba(255, 255, 255, .1); color: var(--tx); font-weight: 700; }
/* A안 (CEO 2026-11-29 08:48 KST): 시간 | 틱 side by side, as tall as the one list was; never wider or taller than the screen (app.js stepRoom) */
.stepmenu.two { flex-direction: row; gap: 0; padding: 4px; min-width: 0; max-width: calc(100vw - 16px); overflow: auto; overscroll-behavior: contain; }
.stepcol { display: flex; flex-direction: column; gap: 1px; min-width: 64px; }
.stepcol + .stepcol { border-left: 1px solid var(--ln2); margin-left: 3px; padding-left: 3px; }
.stepch { padding: 5px 12px 3px; font-size: calc(11px * var(--fz)); font-weight: 700; letter-spacing: .04em; color: var(--tx3); white-space: nowrap; }
.stepmenu.two .stepopt { min-height: 34px; }
/* 지표 (CEO 2026-11-30 20:19 / 20:35 KST): 「● ● 지표 2」 beside the candle length; pressed: the four lines with a switch each, under the button on a
   PC, from the bottom on a phone (app.js indPick). The colours are the chart's own lines' (logic.js IND_COLORS) */
.indpick-wrap { position: relative; flex: none; }
.indpick { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border-radius: 8px; color: var(--tx); font-size: calc(13.5px * var(--fz)); font-weight: 700; white-space: nowrap; }
.indpick:hover, .indpick[aria-expanded="true"] { background: var(--sf2); }
.indpick .dots { display: inline-flex; gap: 3px; }
.indpick .n { color: var(--tx2); font-weight: 600; }
.inddot { display: block; width: 7px; height: 7px; border-radius: 50%; }
.inddot.vwap { background: #FFB020; } .inddot.e9 { background: #C084FC; } .inddot.e20 { background: #67E8F9; } .inddot.bb { background: #D4D4D8; }
html.light .inddot.vwap { background: #B45309; } html.light .inddot.e9 { background: #9333EA; } html.light .inddot.e20 { background: #0E8AA6; } html.light .inddot.bb { background: #6B6F78; }
.indmenu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; width: 340px; max-width: calc(100vw - 16px); padding: 14px 16px 12px; background: var(--sf); border: 1px solid var(--ln2); border-radius: 14px; box-shadow: 0 16px 44px rgba(0, 0, 0, .45); overflow: auto; overscroll-behavior: contain; }
.indmenu.pop { position: fixed; right: auto; z-index: 55; }
.indhead { display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; }
.indtitle { font-size: calc(16px * var(--fz)); font-weight: 800; color: var(--tx); }
.indsub { font-size: calc(12px * var(--fz)); color: var(--tx3); line-height: 1.45; word-break: keep-all; }
.indrow { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--ln2); }
.indrow .grow { min-width: 0; }
.indrow .k { font-size: calc(14px * var(--fz)); font-weight: 700; color: var(--tx); }
.indrow .d { font-size: calc(11.5px * var(--fz)); color: var(--tx3); line-height: 1.45; word-break: keep-all; }
.indsw { flex: none; width: 22px; height: 3px; border-radius: 2px; }
.indsw.vwap { background: #FFB020; } .indsw.e9 { background: #C084FC; } .indsw.e20 { background: #67E8F9; }
.indsw.bb { height: 12px; border-radius: 3px; border: 1.5px solid #D4D4D8; background: rgba(212, 212, 216, .08); }
html.light .indsw.vwap { background: #B45309; } html.light .indsw.e9 { background: #9333EA; } html.light .indsw.e20 { background: #0E8AA6; }
html.light .indsw.bb { border-color: #6B6F78; background: rgba(107, 111, 120, .08); }
.indfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--ln2); }
.indreset { min-height: 36px; padding: 0 4px; color: var(--tx2); font-size: calc(13px * var(--fz)); white-space: nowrap; }
/* a phone: the dots say how many are on (more room for the words beside them) */
@media (max-width: 420px) { .indpick { gap: 5px; padding: 0 8px; } .indpick .n { display: none; } }
.indreset:disabled { color: var(--tx3); opacity: .6; }
.indclose { width: auto; flex: none; height: 40px; padding: 0 22px; background: var(--sf2); color: var(--tx); }
.indback .indmenu { position: static; width: 100%; max-width: 420px; box-shadow: none; }
@media (max-width: 640px) {
  .indback { align-items: flex-end; padding: 0; }
  .indback .indmenu { max-width: none; border-radius: 20px 20px 0 0; border-bottom: 0; padding: 18px 18px calc(14px + env(safe-area-inset-bottom)); max-height: 85dvh; }
}
.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: calc(13px * var(--fz)); 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; }
/* 주간's weekdays, 월 ~ 금 (CEO 2026-11-27 07:18 KST): the weekday over its date; one not begun yet is dim and cannot be pressed; one
   with nothing rung (a US holiday) is dimmer */
.seg.wdays { margin-bottom: 10px; }
.seg.wdays button.wday { height: auto; min-height: 44px; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.15; }
.seg.wdays .wd { font-size: calc(14px * var(--fz)); font-weight: 600; color: var(--tx); }
.seg.wdays .wdt { font-size: calc(11px * var(--fz)); color: var(--tx3); }
.seg.wdays button[aria-selected="true"] .wd { color: var(--acc); }
.seg.wdays button.wday.none .wd { color: var(--tx3); }
.seg.wdays button.wday:disabled { opacity: .38; cursor: default; }
.seg.small button { flex: 0 0 auto; height: 30px; font-size: calc(12.5px * var(--fz)); 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: calc(14px * var(--fz)); }
.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: calc(12.5px * var(--fz)); padding: 5px 4px 0; }
.err { color: var(--up); font-size: calc(13.5px * var(--fz)); font-weight: 500; text-align: center; margin-top: 12px; }
.note { color: var(--acc); font-size: calc(13.5px * var(--fz)); 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: calc(13.5px * var(--fz)); }
.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: calc(12px * var(--fz)); font-weight: 700; }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); animation: blink 1.2s infinite; box-shadow: 0 0 0 0 rgba(240, 97, 109, .6); }
.badge-live.sm { padding: 2px 8px 2px 7px; font-size: calc(11.5px * var(--fz)); gap: 5px; }
.badge-live.sm::before { animation: blink 1.2s infinite, ping 1.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(240, 97, 109, .55); } 80%, 100% { box-shadow: 0 0 0 5px rgba(240, 97, 109, 0); } }
.idx-when { gap: 7px; flex: none; }
/* 랭킹 「오늘」's red dot while its day runs (CEO 2026-12-03 22:23 KST 「오늘 왼쪽에 빨간점 깜빡깜빡하게」; the app's LiveDot) */
.livedot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--up); margin-right: 5px; vertical-align: 1px; flex: none; animation: blink 1.2s infinite, ping 1.2s infinite; }
.rank-chips .badge-live { align-self: center; }
@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);
  /* (its own width, up to max-width: at left 50% a box is given only the right half of the screen, and short words broke into three lines) */
  width: max-content; box-sizing: border-box; word-break: keep-all; overflow-wrap: anywhere;
  background: var(--sf3); color: var(--tx); border: 1px solid var(--ln2); border-radius: 12px; padding: 11px 16px; font-size: calc(13.5px * var(--fz)); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
@media (prefers-reduced-motion: reduce) { .tag.time, .badge-live::before, .badge-live.sm::before, .livedot, .tc-state.on i, .tc-flow i { animation: none; transition: 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: calc(34px * var(--fz)); font-weight: 700; letter-spacing: -1.5px; margin-top: 18px; }
.brand span { color: var(--acc); }
.slogan { color: var(--tx2); font-size: calc(16px * var(--fz)); line-height: 25px; margin: 12px 0 48px; }
.start .topback { padding-top: 8px; margin-bottom: 12px; margin-left: -10px; }
.start h1 { font-size: calc(26px * var(--fz)); margin: 0; }
.start .sub { color: var(--tx2); font-size: calc(14px * var(--fz)); 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: calc(12.5px * var(--fz)); margin-top: 18px; }
.start .col.center .soft { margin: 14px 0 26px; line-height: 1.6; }
.start .col.center h1 { font-size: calc(22px * var(--fz)); }
.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: calc(15px * var(--fz)); 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: calc(14px * var(--fz)); 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: calc(13px * var(--fz)); color: var(--tx2); text-align: center; }
.gway-note .textlink { font-size: calc(13px * var(--fz)); padding: 4px 6px; color: var(--acc); }
.switchline { text-align: center; color: var(--tx3); font-size: calc(13.5px * var(--fz)); margin-top: 22px; }
.switchline button { color: var(--acc); font-weight: 600; padding: 8px; }
.textlink { color: var(--tx2); font-size: calc(13.5px * var(--fz)); 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: calc(16.5px * var(--fz)); font-weight: 700; }
.topbar .mk { font-size: calc(12px * var(--fz)); color: var(--tx2); gap: 5px; }
.topbar .mk .mk-now, .topbar .mk .mk-sep { white-space: nowrap; flex: none; }
.topbar .mk .mk-next { min-width: 0; }
/* 알림 찾기 (CEO 2026-11-24 14:23 KST): the box where the 돋보기 is, as in the app. A phone: a row right under the top bar's own row,
   in the top bar (it stays on the screen). A wide screen: in the top bar's row beside the 돋보기 (app.js placeFind). */
.topbar > .find { max-width: 1240px; margin: 0 auto; padding: 0 16px 12px; }
/* (the box gives way first when the row is short: the title's wait beside it stays whole, 지시 561) */
.topbar .in > .find { flex: 0 8 320px; min-width: 200px; }
.topbar .in > .find .input { padding: 10px 12px; }
.topnav { display: none; gap: 4px; margin-left: 18px; }
.topnav a { color: var(--tx3); text-decoration: none; font-size: calc(14px * var(--fz)); 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: calc(11px * var(--fz)); font-weight: 500; }
.bottomnav a[aria-current="page"] { color: var(--tx); }
.bottomnav .ic { width: 21px; height: 21px; }
/* 새 공지·패치노트의 빨간 점 (CEO 2026-11-27 11:02 KST): 설정 in the menus, the 공지사항 row, its tab and the item (app.js markNotices) */
.newdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); margin-left: 6px; vertical-align: 2px; flex: none; }
.topnav a.has-new::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--up); margin-left: 5px; vertical-align: 2px; }
.bottomnav a { position: relative; }
.bottomnav a.has-new::after { content: ''; position: absolute; top: 8px; left: calc(50% + 7px); width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 2px var(--nav); }
.main { max-width: 1240px; margin: 0 auto; padding: 14px 16px calc(84px + var(--bad, 0px) + env(safe-area-inset-bottom)); }
.cols { display: block; }
/* 웹 배너 광고: one Google banner above the lists, of a banner's size for the screen's width (no data-ad-format: Google keeps to it; a
   responsive unit came on a phone as a big empty square, CEO 2026-11-23 22:05 KST): 234×60 on a folding phone's outer screen, 320×50 on a
   phone, 468×60, then 728×90 (support.google.com/adsense/answer/9183363) */
.banner { margin: 0 auto 12px; max-width: 728px; overflow: hidden; text-align: center; }
.banner ins.adsbygoogle { display: inline-block; width: 234px; height: 60px; vertical-align: top; }
@media (min-width: 352px) { .banner ins.adsbygoogle { width: 320px; height: 50px; } }
@media (min-width: 500px) { .banner ins.adsbygoogle { width: 468px; height: 60px; } }
@media (min-width: 760px) { .banner ins.adsbygoogle { width: 728px; height: 90px; } }
/* Google had no ad for it (data-ad-status="unfilled", e.g. while the AdSense site is still under review): no empty space above the lists */
.banner ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.banner:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
/* 웹 목록 중간 광고: a line of the alerts list of its own (after the 5th and the 25th alert), marked 광고 and set apart from the rows around
   it, so it is never taken for an alert; at most a leaderboard wide and never wider than the list (Google picks the ad that fits) */
.feed-ad { border-top: 1px solid var(--ln); padding: 10px 18px 12px; background: var(--sf2); text-align: center; }
/* 알림 · 랭킹's rows in pieces of five with an ad between (CEO 지시 457, adRows): the pieces take no room of their own */
.adrows, .adrows-c { display: contents; }
.feed-ad-label { font-size: calc(11px * var(--fz)); line-height: 1; color: var(--tx3); margin-bottom: 8px; text-align: left; }
/* a banner's size for the list's width, as the banner above (the list's frame and its sides counted) */
.feed-ad ins.adsbygoogle { display: inline-block; width: 234px; height: 60px; vertical-align: top; }
@container (min-width: 358px) { .feed-ad ins.adsbygoogle { width: 320px; height: 50px; } }
@container (min-width: 506px) { .feed-ad ins.adsbygoogle { width: 468px; height: 60px; } }
@container (min-width: 766px) { .feed-ad ins.adsbygoogle { width: 728px; height: 90px; } }
/* (a folding phone's outer screen: the narrow list's sides below give way, or the ad would stick out of the list) */
@container (max-width: 272px) { .feed-rows .feed-ad { padding-left: 5px; padding-right: 5px; } .feed-rows .feed-ad-label { padding-left: 9px; } }
/* Google had no ad for it: nothing of it is left in the list, not even its mark */
.feed-ad ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.feed-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
/* a tester, 2026-11-25 (PC, Chrome): a white box larger than the ad's place lay over the alert under it, and one over the stock's page.
   So an ad's place shows only once Google says it has an ad in it (data-ad-status="filled"; before that, or with none, nothing at all),
   and whatever Google puts in it never reaches past its own place. Before Google answers the place is folded to no height, not taken
   out of the page (display: none): Google measures the ad's width when it is asked, and a place of no width gets no ad. */
.banner:not(.gam):not(:has(ins.adsbygoogle[data-ad-status="filled"])), .feed-ad:not(.gam):not(:has(ins.adsbygoogle[data-ad-status="filled"])) { height: 0; min-height: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
.banner, .feed-ad { overflow: hidden; contain: paint; }
.banner { max-height: 96px; }
.feed-ad { max-height: 140px; }
.banner ins.adsbygoogle, .feed-ad ins.adsbygoogle { max-width: 100%; overflow: hidden; }
/* Google Ad Manager (CEO 2026-12-02 17:02 / 19:52 KST, 276-③; the AdSense banner's places when Ad Manager is on): its place is the ad's own fixed size (320x50,
   728x90 on a wide screen), never wider than the screen or the list; Google's 「no ad」 (slotRenderEnded isEmpty) folds the place away, mark and all */
.banner.gam, .feed-ad.gam { min-height: 50px; }
.banner.gam .gam-slot, .feed-ad.gam .gam-slot { margin: 0 auto; max-width: 100%; overflow: hidden; text-align: center; }
.banner.gam.ad-none, .feed-ad.gam.ad-none { display: none; }
/* Adsterra (CEO 2026-12-03 19:36 KST): its banner in a frame of its own at the unit's size, in the same places */
/* 하단 배너 (CEO 2026-12-04 00:27 KST 「웹,모바일웹 하단에도 배너 광고 뜨게해놔」; app.js bottomBanner): held at the bottom of the screen, above the
   phone's menu bar (65px: its 6 + 52 + 6 and its line); at the very bottom on a PC. --bad: the room the page keeps clear of it below. */
.banner.banner-bottom { position: fixed; left: 0; right: 0; bottom: calc(65px + env(safe-area-inset-bottom)); z-index: 29; margin: 0; max-width: none; max-height: none; padding: 3px 0; background: var(--bg); border-top: 1px solid var(--ln); }
body.has-bottom-ad { --bad: 57px; }
@media (min-width: 640px) and (min-height: 600px) {
  .banner.banner-bottom { bottom: 0; padding-bottom: calc(3px + env(safe-area-inset-bottom)); }
  body.has-bottom-ad { --bad: 97px; }
}
/* 종목 화면 호가 아래 배너 (CEO 지시 538; app.js detailAd): a card of its own under the 호가 card, marked 광고, a banner's size for its width;
   no room at all until it is seen on the screen and asked for (505 ②), and none left when no ad came */
.feed-ad.detail-ad { container-type: inline-size; border: 1px solid var(--ln); border-radius: var(--r); }
.detail > .feed-ad.detail-ad.wait { height: 0; min-height: 0; margin-top: 0; padding: 0; border-width: 0; }
.banner.gam iframe.ad-frame, .feed-ad.gam iframe.ad-frame { display: block; margin: 0 auto; border: 0; max-width: 100%; overflow: hidden; background: transparent; color-scheme: light; }
/* (color-scheme light: the frame's page has none, and a frame whose scheme differs from its page's is painted white over the dark page) */
.side-empty { display: none; }
.list-col > * + * { margin-top: 12px; }
.title { font-size: calc(21px * var(--fz)); font-weight: 700; margin: 20px 0 0; }
.subtitle { color: var(--tx3); font-size: calc(13px * var(--fz)); margin-bottom: 12px; }
.subtitle.warn { color: var(--up); }
.title + .seg { margin-top: 12px; }
.sec-head { font-size: calc(14px * var(--fz)); 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: calc(28px * var(--fz)); font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; }
.timecard .left.paused { color: var(--tx2); }
/* livelier (CEO 2026-11-23 18:40 KST): a soft mint glow while the time runs, the numbers big and the words small, the seconds in mint */
.timecard.live { background: radial-gradient(120% 140% at 100% 0%, rgba(62, 207, 170, .09), transparent 55%), var(--sf); border-color: rgba(62, 207, 170, .18); }
.timecard .tc-head { gap: 8px; flex-wrap: wrap; row-gap: 6px; }
.timecard .tc-label { display: flex; align-items: center; gap: 6px; color: var(--tx2); font-size: calc(13px * var(--fz)); font-weight: 600; white-space: nowrap; }
.timecard .tc-label .ic { color: var(--acc); }
.timecard .tc-state { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12px * var(--fz)); font-weight: 600; color: var(--tx2); padding: 3px 10px 3px 8px; border-radius: 99px; background: var(--sf2); white-space: nowrap; flex: none; }
.timecard .tc-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--tx3); }
.timecard .tc-state.on { color: var(--acc); background: var(--accd); }
.timecard .tc-state.on i { background: var(--acc); animation: blink 1.6s infinite; }
.timecard .left .lp { margin-right: 7px; white-space: nowrap; }
.timecard .left .lp:last-child { margin-right: 0; }
.timecard .left small { font-size: calc(15px * var(--fz)); font-weight: 600; color: var(--tx2); margin-left: 2px; }
.timecard .left .sec .num { color: var(--acc); }
.timecard .left.paused .sec .num { color: var(--tx2); }
/* from one hour down the whole time is red, numbers and words, running or not (CEO 2026-11-23 23:16, 23:27 KST) */
.timecard .left.low, .timecard .left.low.paused, .timecard .left.low small, .timecard .left.low .sec .num, .timecard .left.low.paused .sec .num { color: var(--up); }
/* the bar of the time left: whole when the time last grew, its mint part ending further left as the time runs out (app.js drawFlow) */
.timecard .tc-flow { height: 5px; border-radius: 5px; background: var(--sf3); overflow: hidden; margin: 8px 0 10px; }
.timecard .tc-flow i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, rgba(62, 207, 170, .35), var(--acc)); transition: transform 1s linear; }
.timecard .tc-flow.still i { background: rgba(62, 207, 170, .3); }
.timecard .tc-note { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.timecard .tc-chip { font-size: calc(11.5px * var(--fz)); line-height: 20px; padding: 0 9px; border-radius: 99px; background: var(--sf2); color: var(--tx2); }
.timecard .tc-app { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--accd); border: 1px solid rgba(62, 207, 170, .22); color: var(--tx2); font-size: calc(12.5px * var(--fz)); line-height: 1.5; }
.timecard .tc-app b { color: var(--acc); font-weight: 700; }
/* 광고 제거 이용 중: a short card with its days and nothing of the time left (CEO 2026-11-24 01:27 KST 「남은알림시간 칸을 줄이고 광고제거
   이용중 이라고해서 언제부터 언제까지 라고만」) */
.timecard.pass { padding: 12px 18px; }
.timecard .pass-label { color: var(--acc); font-size: calc(14.5px * var(--fz)); font-weight: 700; }
.timecard .pass-span { margin-top: 5px; font-size: calc(15px * var(--fz)); font-weight: 600; color: var(--tx); font-variant-numeric: tabular-nums; }
/* 접기 · 펼치기 (CEO 2026-11-29 09:00 KST): the button at the head's end (a chevron, up while open); folded, one line of the blinking dot,
   the time left, today's ad count at the right and the button, with the bar under it */
/* the open head keeps 「남은 알림 시간」 on one line: the button sits at the top right, and on a narrow phone the 「알림 받는 중」 chip goes
   to a second line instead of breaking the words */
.timecard .tc-head.withfold { position: relative; padding-right: 34px; }
.timecard .tc-foldbtn { width: 32px; height: 32px; }
.timecard .tc-head.withfold .tc-foldbtn { position: absolute; top: -6px; right: -8px; }
.timecard .tc-foldbtn .ic { transition: transform .15s; }
.timecard .tc-foldbtn.open .ic { transform: rotate(180deg); }
.timecard.folded { padding: 10px 14px 10px 16px; }
.timecard .tc-fold { gap: 4px; align-items: center; min-width: 0; }
.timecard .tc-foldmain { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; }
.timecard .tc-foldtime { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.timecard .tc-fold .left { font-size: calc(18px * var(--fz)); margin-top: 0; white-space: nowrap; }
.timecard .tc-fold .left small { font-size: calc(12px * var(--fz)); }
.timecard .tc-fold .left .lp { margin-right: 5px; }
.timecard .tc-fold .ad-count { white-space: nowrap; flex: none; margin-left: auto; }
.timecard .tc-fold .tc-foldbtn { margin: -6px -6px -6px 0; }
.timecard .tc-state.dotonly { padding: 0; background: none; width: 7px; height: 7px; }
.timecard.folded .tc-flow { margin: 8px 0 2px; }
@media (prefers-reduced-motion: reduce) { .timecard .tc-foldbtn .ic { transition: none; } }
/* (the 프리미엄 보기 · 광고 제거 links reach 5 px below their line: the words under them in the stopped card keep clear of them; layout_check
   2026-12-03, at every width) */
.timecard.ended > .adwatch { margin-bottom: 8px; }
.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; }
/* an alert of the list: its row (a button that opens the alert) and, under it, 「토스증권 열기」 and 「TSLA 복사」 (CEO 2026-11-23 23:49
   KST), in one piece that carries the line above, the mark of a new alert and the picked one's colour */
.alert-item { border-top: 1px solid var(--ln); }
.alert-item:hover { background: var(--sf2); }
.alert-item.new { background: linear-gradient(90deg, rgba(62, 207, 170, .075), transparent 55%); }
.alert-item.sel { background: var(--accd); }
.alert-row { display: block; width: 100%; text-align: left; padding: 12px 18px 0; }
.alert-item > .alert-row:last-child { padding-bottom: 12px; }
/* the two buttons: small and at the left under a row; over the whole width, side by side, on the alert's own page. The second goes
   under the first, whole, where the two do not fit on one line */
.acts { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 9px 18px 12px; }
.act { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 4px 10px; border-radius: 8px; font-size: calc(12px * var(--fz)); font-weight: 500; line-height: 1.3; color: var(--tx2); background: var(--sf2); white-space: nowrap; text-decoration: none; cursor: pointer; }
.act .ic { width: 13px; height: 13px; }
.act.toss { color: var(--acc); background: var(--accd); font-weight: 600; }
.act:hover { filter: brightness(1.18); }
.alert-item:hover .act.copy, .alert-item.sel .act.copy { background: var(--sf3); }
.acts.wide { padding: 0; gap: 8px; }
.acts.wide .act { flex: 1 1 132px; min-height: 46px; padding: 4px 12px; border-radius: 12px; font-size: calc(14px * var(--fz)); gap: 7px; border: 1px solid var(--ln2); }
.acts.wide .act .ic { width: 16px; height: 16px; }
.acts.wide .act.toss { border-color: rgba(62, 207, 170, .32); }
/* 유사투자자문업 no. 2 (CEO 2026-11-26 18:38 KST): one grey line right under 「토스증권 열기」 and 「복사」 */
.act-note { flex: 1 1 100%; margin: 0; font-size: calc(11.5px * var(--fz)); line-height: 1.45; color: var(--tx3); white-space: normal; }
.acts.wide .act-note { margin-top: -2px; }
/* 유사투자자문업 no. 3 · no. 5 (CEO 2026-11-26 18:38 KST) */
.subtitle.rank-note { color: var(--tx3); margin-top: -4px; }
.notadvice-box { margin: 12px 0 2px; padding: 10px 12px; border: 1px solid var(--ln2); border-radius: 10px; background: var(--sf2); }
.notadvice-box .askcard-note { margin: 0; }
.notadvice-box .askcard-note + .askcard-note { margin-top: 4px; }
.all-same { margin-top: 3px; }
/* 종목 로고 (CEO 2026-12-01 20:52 KST 「로고를 불러와서 진짜 이상하지않게 자연스럽게 티커 옆에 붙이고 싶거든 … 못불러올경우 티커 앞글자로 보이게」):
   a small circle before the ticker (app.js symLogo). Until a picture comes it is the ticker's first letter (data-ch, drawn here so the
   ticker's own text stays the ticker) on one of ten colours; with a picture (.has) the ground the picture needs (--slg-bg: white, dark
   for a white mark, or the picture's own corner colour) and a hair of a rim, so a white circle shows on a white panel too. A picture
   filled to its corners (.full) sits larger: its corners are the ground's colour, so no square shows. */
.hasslg { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.block.hasslg { display: flex; }
/* (a ticker with its circle never shrinks below its own letters: on a 280 to 412 wide phone the row gave its room to the name and the
   ticker lay over it, 「VGRP」 on 「가상 그래핀…」; layout_check 2026-12-03. The name beside it is the one cut short. A Korean stock's
   name in the ticker's place may be long and shrinks as before.) */
.hasslg:not(.kr-name) { flex-shrink: 0; }
/* (the ticker's letters keep the line's baseline, so a name beside the ticker stands where it stood; the circle is centred on them) */
.hasslg > .slg { align-self: center; }
.slg { --slg-bg: #FFFFFF; position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: calc(11px * var(--fz)); font-weight: 800; line-height: 1; letter-spacing: 0; }
.slg::before { content: attr(data-ch); }
.slg.has { background: var(--slg-bg); box-shadow: inset 0 0 0 1px rgba(128, 132, 140, .32); }
.slg.has::before { content: none; }
.slg-img { position: absolute; left: 13%; top: 13%; width: 74%; height: 74%; object-fit: contain; opacity: 0; pointer-events: none; }
.slg.has .slg-img { opacity: 1; }
.slg.full .slg-img { left: 5%; top: 5%; width: 90%; height: 90%; }
.slg-l { width: 34px; height: 34px; font-size: calc(16px * var(--fz)); }
.hasslg:has(> .slg-l) { gap: 10px; }
.slg-c0 { background: #2563EB; } .slg-c1 { background: #059669; } .slg-c2 { background: #B45309; } .slg-c3 { background: #7C3AED; } .slg-c4 { background: #DB2777; }
.slg-c5 { background: #0D9488; } .slg-c6 { background: #C2410C; } .slg-c7 { background: #4F46E5; } .slg-c8 { background: #0E7490; } .slg-c9 { background: #4D7C0F; }
/* 종목 찾기 (CEO 2026-12-01 22:07 KST; the look approved 22:22 KST): the list under a ticker box (app.js symPick). A row: the logo, the
   ticker and the Korean name on one line (what was typed marked in the accent), the country and exchange under them, and on 관심종목's
   box 「추가」 (or 추가됨) at the right. */
.sympick { margin-top: 8px; border: 1px solid var(--ln2); border-radius: 12px; background: var(--sf); overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.sympick .sp-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border-top: 1px solid var(--ln); min-height: 48px; }
.sympick .sp-row:first-child { border-top: 0; }
.sympick .sp-row:hover:not(:disabled), .sympick .sp-row:focus-visible { background: var(--accd); }
.sympick .sp-row:disabled { cursor: default; }
.sympick .sp-sym { font-weight: 700; font-size: calc(15px * var(--fz)); flex: none; }
.sympick .sp-who { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.sympick .sp-l1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sympick .sp-nm { color: var(--tx2); font-size: calc(13px * var(--fz)); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sympick .sp-nm b, .sympick .sp-sym b { color: var(--acc); font-weight: 800; }
.sympick .tag.place { font-size: calc(10.5px * var(--fz)); padding: 1px 6px; align-self: flex-start; }
.sympick .sp-add { flex: none; font-size: calc(13px * var(--fz)); font-weight: 700; color: var(--acc); border: 1px solid var(--acc); border-radius: 999px; padding: 5px 12px; }
.sympick .sp-had { flex: none; font-size: calc(12.5px * var(--fz)); color: var(--tx3); padding: 5px 4px; }
.sympick .sp-none { padding: 14px 12px; color: var(--tx2); font-size: calc(13.5px * var(--fz)); }
.sympick .sp-foot { padding: 7px 12px; border-top: 1px solid var(--ln); color: var(--tx3); font-size: calc(12px * var(--fz)); }
/* 모든 종목 (CEO 2026-12-02 00:42 KST, the 시안 mockups/allstock_20261202): the search's card above the alerts found (app.js allSymsBox) */
.as-box:empty { display: none; }
.sympick.allsyms { box-shadow: none; margin: 4px 0 14px; }
.allsyms .as-head { display: flex; align-items: baseline; gap: 6px; padding: 12px 12px 10px; }
.allsyms .as-head .strong { font-size: calc(15px * var(--fz)); }
.allsyms .as-hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.allsyms .as-n { flex: none; font-size: calc(12px * var(--fz)); color: var(--tx3); white-space: nowrap; }
.allsyms .as-n.has { color: var(--acc); background: var(--accd); font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.allsyms .as-more { width: 100%; min-height: 42px; border-top: 1px solid var(--ln); font-size: calc(12.5px * var(--fz)); font-weight: 700; color: var(--tx2); }
.allsyms .as-more:hover, .allsyms .as-more:focus-visible { background: var(--accd); }
/* 최근 검색 (order 406): the words searched before, in the same card, each with its ✕ */
.allsyms.hist .as-head { align-items: center; padding-bottom: 6px; }
.allsyms .hs-clear { font-size: calc(12px * var(--fz)); color: var(--tx3); padding: 4px 6px; border-radius: 6px; }
.allsyms .hs-clear:hover, .allsyms .hs-clear:focus-visible { color: var(--tx); background: var(--accd); }
.allsyms .hs-row { display: flex; align-items: center; border-top: 1px solid var(--ln); }
.allsyms .hs-word { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; text-align: left; font-size: calc(14px * var(--fz)); color: var(--tx); }
.allsyms .hs-word .ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.allsyms .hs-word svg { flex: none; color: var(--tx3); }
.allsyms .hs-del { flex: none; width: 44px; height: 44px; display: grid; place-items: center; color: var(--tx3); }
.allsyms .hs-word:hover, .allsyms .hs-word:focus-visible, .allsyms .hs-del:hover, .allsyms .hs-del:focus-visible { background: var(--accd); }
.alert-row .sym { font-size: calc(15px * var(--fz)); font-weight: 700; flex: none; white-space: nowrap; }
.alert-row .nm { font-size: calc(12.5px * var(--fz)); color: var(--tx2); font-weight: 500; margin-left: 8px; }
/* the right of a row: two columns lined up from row to row (CEO 2026-11-22 01:49 KST 「정렬이 안맞거든」), as in the app — the tags as
   wide as each other with their words in the middle, then the change and the price in one width that holds +119.09% */
.alert-row .l1 { gap: 10px; }
.alert-row .tag { min-width: 72px; text-align: center; flex: none; }
.alert-row .chg { font-size: calc(14px * var(--fz)); font-weight: 600; min-width: 80px; flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.alert-row .tm { font-size: calc(12px * var(--fz)); color: var(--tx2); font-variant-numeric: tabular-nums; }
.alert-row.new .when-t { color: var(--acc); }
/* when it rang: the clock (its date and weekday before it on another day) and how long ago, in the alert's own light yellow */
/* where they still do not fit on one line, 「N분 전」 goes under the clock, whole, and never over the mark beside it */
.when { gap: 5px; min-width: 0; white-space: nowrap; flex-wrap: wrap; row-gap: 2px; }
.when .ic { color: var(--tx3); width: 12px; height: 12px; }
.when .when-d { color: var(--tx); font-weight: 600; }
.when .when-t { font-variant-numeric: tabular-nums; }
/* one width for 「5분 전」 「22분 전」 「1시간 전」 「23시간 전」, so the 나라 tag beside it starts at the same place on every card
   (layout_check 2026-11-30: the tags went zigzag down the list after they moved beside the clock, CEO order 148) */
.when .ago { color: var(--hl); font-weight: 600; font-size: calc(11.5px * var(--fz)); padding: 0 6px; line-height: 17px; border-radius: 4px; background: var(--hld); min-width: 5.8em; text-align: center; box-sizing: border-box; }
/* the price when it rang, easy to find (CEO 2026-11-23 18:40 KST 「알림 떳을때 금액도 잘보이게 색상도좀넣고」) */
.alert-row .px { font-size: calc(13px * var(--fz)); font-weight: 600; color: var(--hl); min-width: 80px; flex: none; text-align: right; font-variant-numeric: tabular-nums; }
/* the won under the dollars, small (CEO 2026-11-24 01:12 KST 「왜 이번 웹,앱 에서는 원화가 안보여?」); the clock and the mark stay on the
   dollars' line */
.alert-row .px .usd, .alert-row .px .won { display: block; white-space: nowrap; }
.alert-row .px .won { font-size: calc(11.5px * var(--fz)); font-weight: 500; color: var(--tx2); line-height: 15px; margin-top: 1px; }
.alert-row .l2 { align-items: flex-start; }
.alert-row .l2 > .when, .alert-row .l2 > .tag { margin-top: 0; }
.alert-row .res { margin-top: 7px; font-size: calc(12px * var(--fz)); 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: 10px; }
/* after the alert: 「최고 …」 in one width, so 「1시간 뒤 …」 starts at one place from row to row; each part whole on one line */
.alert-row .res .hi { min-width: 84px; }
.alert-row .res > span { white-space: nowrap; flex: none; }
/* a narrow list (320 and a folding phone's outer screen, 280): the two columns take less room, so the ticker keeps its place in the
   row, and the line after the alert keeps to one line (a shorter picture of the price, none at 280) */
.feed-rows { container-type: inline-size; }
@container (max-width: 340px) {
  .alert-row, .feed-ad, .alert-item > .acts { padding-left: 14px; padding-right: 14px; }
  .alert-row .l1, .alert-row .l2 { gap: 8px; }
  .alert-row .tag { min-width: 62px; padding: 0 6px; }
  .alert-row .chg { min-width: 72px; font-size: calc(13.5px * var(--fz)); }
  .alert-row .px { min-width: 72px; }
  .alert-row canvas.spark { width: 30px; }
  /* 「방금 들어온 알림」 on one line, 「새 알림이 위에 쌓입니다」 under it */
  .feedhead { flex-wrap: wrap; row-gap: 2px; }
  .feedhead > .grow { white-space: nowrap; }
  .feedhead > .muted { flex-basis: 100%; }
  /* when it rang (date, clock, N분 전) does not fit beside the mark and the price: it takes its own line, the mark and the price the
     line under it (the price still under the change) */
  .alert-row .l2 { flex-wrap: wrap; row-gap: 4px; }
  .alert-row .l2 > .when { flex-basis: 100%; }
  /* the second mark stands right under the first (beside the price as the first is beside the change) */
  .alert-row .l2 > .tag, .alert-row .l2 > .px { margin-left: auto; }
  .alert-row .l2 > .tag + .px { margin-left: 0; }
}
/* a phone's list: the 나라·거래소 tag on its own line under the clock, on every card (a short one 「미국 · 나스닥」 sat beside the clock and a long
   one 「이스라엘 · 뉴욕증권거래소」 went under it, so the tags zigzagged down the list; layout_check 2026-12-03 at 320 and 412) */
@container (max-width: 420px) {
  .alert-row .when.tm::after { content: ''; order: 2; flex-basis: 100%; height: 0; }
  .alert-row .when.tm > .tag.place { order: 3; }
}
@container (max-width: 300px) {
  /* 오늘 첫 알림 · 급락 N회 on a line of their own, 「오늘 기준 상승률」 and the change under them at the right (they lay over each other) */
  .alert-row .l3 { flex-wrap: wrap; row-gap: 4px; }
  .alert-row .l3 > .marks { flex-basis: 100%; }
  .alert-row .l3 > .marks:empty { display: none; }
  .alert-row .l3 > .lb { margin-left: auto; }
  /* the five names of the day's flow a little smaller, so that each stays in its own fifth instead of running into the next */
  .alert-row .flow .fn { font-size: calc(10px * var(--fz)); letter-spacing: -.03em; }
  /* (still wider than a fifth at 280: 「급등 초기급등 진행」 ran together; each name then takes two short lines, 「급등」 over 「초기」) */
  .alert-row .flow .fn .fnm { white-space: normal; word-break: keep-all; text-align: center; line-height: 12px; }
  .alert-row canvas.spark { display: none; }
  .alert-row .res { gap: 5px; flex-wrap: wrap; row-gap: 2px; }
  .alert-row .res .hi { min-width: 72px; }
  /* 「알림 가격」 over the price, not beside it: the ticker's row keeps the room for its 메모 and 가격 알림 marks (at 280 the 가격 알림 mark
     stuck out of its row into the price; layout_check 2026-12-03) */
  .alert-row .l1 > .px { flex-direction: column; align-items: flex-end; gap: 0; }
  .alert-row .l1 > .px .lb { line-height: 13px; }
}
.rank-row .nm, .watch-row .nm { margin-left: 8px; }
.feed > * + * { margin-top: 12px; }
.feed > :empty { display: none; }
/* a card's place held till what it shows has been asked (order 508: the first screen no longer shakes) */
.feed > .holding:empty { display: block; }
/* 오늘 거래일 요약 and 지수 흐름, a place for each market (order 409): the one shown with its gap, none when neither is (JS hides the box) */
.brief-box > :not(:empty) ~ :not(:empty), .idx-box > :not(:empty) ~ :not(:empty) { margin-top: 12px; }
.brief-head { padding: 12px 14px 0 18px; gap: 8px; }
.brief-sum { padding: 0 18px 12px; }
/* 오늘 거래일 요약 (CEO 2026-11-23 18:40 KST 「이쁘게 색상도넣고 정리좀해봐」): since when and the two counts as chips, then the three with
   medal colours */
.brief .brief-title { font-size: calc(14.5px * var(--fz)); }
.brief-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 18px 4px; }
.brief-chips .chip { display: inline-block; font-size: calc(12.5px * var(--fz)); line-height: 24px; padding: 0 10px; border-radius: 99px; background: var(--sf2); color: var(--tx2); white-space: nowrap; }
.brief-chips .chip b { color: var(--tx); font-weight: 700; }
.brief-chips .chip.since { background: var(--accd); color: var(--acc); font-weight: 600; }
.brief-chips .chip .ic { display: inline-block; width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; }
.brief-note { display: flex; align-items: center; gap: 8px; padding: 8px 18px 10px; color: var(--tx3); font-size: calc(12px * var(--fz)); }
.brief-note > span:first-child { min-width: 0; }
.brief-note .top { flex: none; white-space: nowrap; margin-left: auto; color: var(--m1); background: var(--m1d); font-weight: 700; font-size: calc(10.5px * var(--fz)); letter-spacing: .04em; padding: 0 7px; line-height: 17px; border-radius: 4px; }
.brief-row .medal { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: calc(11.5px * var(--fz)); font-weight: 800; flex: none; }
.brief-row .medal.m1 { color: var(--m1); background: var(--m1d); }
.brief-row .medal.m2 { color: var(--m2); background: var(--m2d); }
.brief-row .medal.m3 { color: var(--m3); background: var(--m3d); }
.brief-row .b-px { color: var(--hl); font-weight: 600; }
/* the won under the alert's price and time, small (CEO 2026-11-24 01:18 KST 「원화 빠지는곳없이 잘넣어라」) */
.brief-row .b-at { min-width: 0; }
.brief-row .b-won { font-size: calc(11px * var(--fz)); line-height: 14px; }
.after .stats .stat-won { font-size: calc(11.5px * var(--fz)); line-height: 15px; margin-top: 1px; white-space: nowrap; }
.memo { padding: 0 18px 16px; }
.big-sym { font-size: calc(18px * var(--fz)); }
.empty { color: var(--tx3); font-size: calc(13px * var(--fz)); padding: 18px; border-top: 1px solid var(--ln); }
/* 「더보기」 under the alerts list's newest thirty (CEO 2026-11-24 11:45 KST 「더보기를 만들어서(버튼이쁘게) 30개씩 나오게해」): a wide
   mint button with how many alerts are left under it; the app's the same (Feed.kt MoreButton) */
.feed-more { border-top: 1px solid var(--ln); padding: 14px 18px 14px; text-align: center; }
.feed-more button { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid rgba(62, 207, 170, .28); background: var(--accd); color: var(--acc); font-size: calc(14.5px * var(--fz)); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 5px; transition: background .15s, border-color .15s; }
.feed-more button:hover { background: rgba(62, 207, 170, .16); border-color: rgba(62, 207, 170, .45); }
.feed-more button:active { background: rgba(62, 207, 170, .22); }
.feed-more button .ic { width: 17px; height: 17px; }
.feed-more .left { margin-top: 9px; font-size: calc(12px * var(--fz)); line-height: 1.3; color: var(--tx3); }

/* 알림: the alerts one to a line (CEO 2026-11-25 12:49 KST, home_final ②③④; the app's Alerts.kt the same) */
.alist { container-type: inline-size; }
.alist > * + * { margin-top: 10px; }
.astrip { display: flex; align-items: center; gap: 6px; padding: 9px 12px 9px 14px; font-size: calc(12px * var(--fz)); min-height: 50px; flex-wrap: wrap; row-gap: 8px; }
.astrip > span { white-space: nowrap; }
.astrip .astrip-left { font-size: calc(14.5px * var(--fz)); font-weight: 800; }
.astrip .tc-state { display: inline-flex; align-items: center; gap: 5px; font-size: calc(12px * var(--fz)); font-weight: 700; color: var(--tx2); white-space: nowrap; }
.astrip .tc-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--tx3); flex: none; }
.astrip .tc-state.on { color: var(--acc); }
.astrip .tc-state.on i { background: var(--acc); animation: blink 1.6s infinite; }
.astrip .grow { flex: 1 1 auto; min-width: 0; }
.astrip .astrip-ad { height: 30px; min-width: 0; width: auto; padding: 0 9px; font-size: calc(12px * var(--fz)); border-radius: 8px; flex: none; }
/* (CEO 2026-11-30 13:25 KST 「이거 알림메뉴인데 왜 짤리냐?」: on the PC's list column the chips ran off the right edge, 관심종목 cut and
   뉴스 out of sight; they go on to a second line as the app's do) */
.achips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0; }
.achips::-webkit-scrollbar { display: none; }
.achip { flex: none; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--sf2); color: var(--tx2); font-size: calc(13px * var(--fz)); font-weight: 600; white-space: nowrap; }
.achip.on { background: var(--tx); color: var(--bg); }
.asort { display: flex; align-items: center; gap: 2px; font-size: calc(12.5px * var(--fz)); color: var(--tx3); padding: 0 2px; }
.asort .grow { flex: 1 0 auto; max-width: 100%; margin-right: 8px; }
/* CEO 2026-11-30 13:25 「왜 짤리냐? … 싹 고쳐」: on a narrow phone the count (오늘 알림 13건 · 9종목) stays whole and the sort buttons drop to
   their own line on the right, instead of the count being cut with … */
.asort { flex-wrap: wrap; }
.asort-bs { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; flex: none; white-space: nowrap; }
.asort-b { color: var(--tx3); font-size: calc(12.5px * var(--fz)); padding: 6px 2px; white-space: nowrap; }
.asort-b.on { color: var(--tx); font-weight: 700; }
.alines { padding: 0; overflow: hidden; }
.al-head, .aline { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 76px; column-gap: 10px; align-items: center; padding: 0 14px; }
.al-head { font-size: calc(11px * var(--fz)); color: var(--tx3); padding-top: 9px; padding-bottom: 7px; }
.al-head span:nth-child(n+3) { text-align: right; }
.aline { width: 100%; text-align: left; min-height: 60px; padding-top: 9px; padding-bottom: 9px; border-top: 1px solid var(--ln); transition: background .12s; }
.aline:hover { background: rgba(255, 255, 255, .025); }
.aline.sel { background: var(--accd); box-shadow: inset 3px 0 0 var(--acc); }
.aline.dim { opacity: .55; }
.al-tm { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.al-tm b { font-size: calc(13.5px * var(--fz)); font-weight: 800; white-space: nowrap; }
.al-tm span { font-size: calc(11px * var(--fz)); color: var(--hl); font-weight: 600; white-space: nowrap; }
.al-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.al-a { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
/* the country and exchange go under the ticker when the line has no room beside it (CEO 2026-11-30 01:18 KST) */
.al-a:has(.tag.place) { flex-wrap: wrap; row-gap: 3px; }
.alert-row .when:has(.tag.place) { flex-wrap: wrap; row-gap: 3px; }
.alert-row .when .tag.place { flex: 0 1 auto; font-size: calc(10.5px * var(--fz)); padding: 1px 6px; margin-left: 2px; }
/* (the tag stays beside the clock, under it only where the line has no room, at every width: CEO 2026-11-30 11:02 KST 「지금처럼 시계 옆에
   두기」, though its place then moves a little with 「방금」·「12분 전」 from row to row; layout_check reports that column, as decided) */
.al-a .tag.place { flex: 0 1 auto; font-size: calc(10.5px * var(--fz)); padding: 1px 6px; order: 2; }
/* in the one-line list the tag always stands on its own line under the ticker, as it does on a wide screen: beside the stage in some
   rows and under it in others (by the ticker's width) it was not one column on a phone (2026-12-01, layout_check at 320 px) */
.al-a:has(.tag.place)::after { content: ''; order: 1; flex: 0 0 100%; height: 0; margin-bottom: -3px; }
/* a narrow column: the place's words end in 「…」 inside the tag, never cut in the middle of a word by the column's edge (title: the whole) */
.tag.place { max-width: 100%; min-width: 0; overflow: hidden; }
/* (never cut with …: where the room is short the words fold at a space, 「캐나다 · NYSE」 / 「아메리칸」; CEO 2026-11-30 13:25 KST 「왜 짤리냐」;
   but a piece first goes whole to the next line (break-word, not anywhere: anywhere let it shrink and fold beside the other, 지시 451) */
.tag.place .pl-w, .tag.place .th { min-width: 0; white-space: normal; word-break: keep-all; overflow-wrap: break-word; }
.al-a .star { color: var(--hl); display: inline-flex; }
/* the stage in the kind's tag (CEO 2026-11-29 「3번도 괜찮고」): 급등 초기 → 급등 진행 → 상승 지속 lit up to this one under the name; 「↻」 before 재가속·새 파동 */
/* (CEO 2026-11-29 19:40 KST 「백그라운드 색상 빼고 텍스트랑 아래 - - - 이 칸 색상만」: in the list the kind is its coloured words and marks, no box) */
.aline .ak:not(.rang) { background: none; padding-left: 0; padding-right: 0; }
.ak.staged { position: relative; padding-bottom: 7px; }
.ak .al-stage { position: absolute; left: 6px; right: 6px; bottom: 2px; display: flex; gap: 2px; }
.aline .ak .al-stage { left: 0; right: 0; }
.ak .al-stage i { flex: 1; height: 3px; border-radius: 2px; background: currentColor; opacity: .25; }
.ak .al-stage i.on { opacity: 1; }
.ak .al-stage i.on.k0 { background: var(--acc); } .ak .al-stage i.on.k1 { background: var(--prog); } .ak .al-stage i.on.k4 { background: var(--first); }
.ak.again::before { content: '↻ '; }
.al-sym { font-size: calc(15.5px * var(--fz)); font-weight: 900; white-space: nowrap; }
.ak { flex: none; font-size: calc(10.5px * var(--fz)); font-weight: 800; padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.ak.k0 { color: var(--acc); background: var(--accd); } .ak.k1 { color: var(--prog); background: var(--progd); } .ak.k2 { color: var(--up); background: var(--upd); }
.ak.k3 { color: var(--fil); background: var(--fild); } .ak.k4 { color: var(--first); background: var(--firstd); }
/* 많이 울린순: how many times the stock rang, after its kind (a ring, not a fill: it is a count, not a kind) */
/* (「2번 울림」 is a tag of the name's line, not a number of the price's column: its figures set as a number's, without the class .num that
   made the layout check line it up with the price under it at 280 wide; 지시 561 검수) */
.ak.rang { color: var(--tx2); background: none; box-shadow: inset 0 0 0 1px var(--ln2); padding: 1px 5px; margin-right: 2px; font-variant-numeric: tabular-nums; }
/* the Korean name keeps its room before the memo mark: the name ends in … only when the line has no more (CEO 2026-11-25 02:14 KST) */
.al-nl { display: flex; align-items: center; gap: 3px; min-width: 0; }
.al-nm { font-size: calc(11.5px * var(--fz)); color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* the memo mark bigger, white with no memo and mint with one (CEO 2026-11-27 22:39 KST 「메모 아이콘 조금 크게, 메모 없음 흰색, 있음 민트」) */
.al-memo, .al-bell { display: inline-flex; flex: none; color: var(--tx); border-radius: 6px; }
.al-memo.has, .al-bell.has { color: var(--acc); background: var(--accd); }
.al-memo .ic, .al-bell .ic { width: 15px; height: 15px; }
/* the bell right against the memo mark (CEO 2026-12-01 23:10 KST 「메모아이콘이랑 종모양 너무 떨어트리지말고」); on a phone of 370 px or less
   the two a little smaller and 「2명」 closer, so that the name keeps its room beside them (360 px: 29 px of it left, 「가 …」) */
.al-nl .al-memo + .al-bell { margin-left: -2px; }
@media (max-width: 370px) {
  .al-nl .al-memo, .al-nl .al-bell { padding: 1px; }
  .al-nl .al-memo .ic, .al-nl .al-bell .ic { width: 14px; height: 14px; }
  .aline .al-nl .tag.watch.al-watch { margin-left: 2px; padding-left: 10px; }
  .aline .al-nl .tag.watch.al-watch::before { left: 1px; }
}
.al-px { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.3; white-space: nowrap; }
.al-px b { font-size: calc(14px * var(--fz)); font-weight: 800; }
.al-px span { font-size: calc(11.5px * var(--fz)); font-weight: 700; }
.al-af { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.al-af b { font-size: calc(13.5px * var(--fz)); font-weight: 900; padding: 3px 7px; border-radius: 8px; color: var(--tx2); background: var(--sf2); }
.al-af b.u { color: var(--up); background: var(--upd); } .al-af b.d { color: var(--dn); background: var(--dnd); }
.al-af b.wait { font-size: calc(11.5px * var(--fz)); font-weight: 600; color: var(--tx3); background: none; padding: 3px 0; }
.al-af span { font-size: calc(10.5px * var(--fz)); color: var(--tx3); margin-top: 2px; }
/* order 440: 「알림 가격」 small over the price; under 알림 뒤 two small buttons, 토스증권 and the ticker's copy (their marks only) */
.aline { cursor: pointer; }
.aline:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.al-px .al-pl { font-size: calc(10px * var(--fz)); font-weight: 600; color: var(--tx3); }
.al-af .al-acts { display: flex; gap: 4px; margin-top: 5px; }
.al-act { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 24px; border-radius: 7px; background: var(--sf2); color: var(--tx2); }
.al-act .ic { width: 13px; height: 13px; }
.al-act.toss { color: var(--acc); background: var(--accd); }
.al-act:hover { filter: brightness(1.18); }
.alines .empty { border-top: 1px solid var(--ln); }
/* 관심종목 묶음 보기 (CEO 2026-11-30 12:39 KST; app.js watchBlocks, the app's Watch.kt): a head for each stock, its alerts under it */
.wgh { display: flex; align-items: center; gap: 10px; padding: 12px 10px 10px 14px; background: var(--sf2); border-top: 1px solid var(--ln); cursor: pointer; }
.wgh.gap { border-top: 8px solid var(--bg); }
.alines.grouped > .wgh:first-child { border-top: 0; }
.wgh-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wgh-a { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; row-gap: 3px; min-width: 0; }
.wgh-a .star { color: var(--hl); display: inline-flex; }
.wgh-a .tag.place { font-size: calc(10.5px * var(--fz)); padding: 1px 6px; }
/* 나라·거래소 on a line of its own under a stock's ticker and name: 오늘 거래일 요약, 랭킹, 관심종목 (CEO 2026-11-30 13:18 KST, the look
   approved 13:53); beside the ticker on a price line */
.pl-line { display: flex; margin: 3px 0 2px; min-width: 0; }
.pl-line .tag.place, .watch-row .row .tag.place { font-size: calc(11px * var(--fz)); padding: 1px 7px; }
.watch-row .open .row.gap6 { flex-wrap: wrap; row-gap: 3px; }
.wgh-sym { font-size: calc(17px * var(--fz)); font-weight: 900; white-space: nowrap; }
.wgh-nl { display: flex; align-items: center; gap: 4px; min-width: 0; }
.wgh-nm { font-size: calc(12px * var(--fz)); color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* (at most about half the head: on a narrow phone its last line folds in whole pieces and the ticker keeps its room; 280~320 px 2026-11-30) */
.wgh-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 1 auto; min-width: 0; max-width: 48%; }
.wgh-last { text-align: right; }
/* a phone of 360 px or less (a folding phone's outer screen): the ticker and its 나라·거래소 take the head's whole width, the count and
   the last alert on a line of their own under them, at the right (280 px 2026-11-30: the tag folded into four lines beside them) */
@media (max-width: 360px) {
  .wgh { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 6px; }
  .wgh-l { grid-column: 1; grid-row: 1; }
  .wgh-fold { grid-column: 2; grid-row: 1; align-self: start; margin: -6px -4px 0 0; }
  .wgh-r { grid-column: 1 / -1; grid-row: 2; max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 8px; }
}
.wgh-n { white-space: nowrap; font-size: calc(11.5px * var(--fz)); font-weight: 800; color: var(--acc); background: var(--accd); padding: 2px 8px; border-radius: 99px; }
.wgh-last { font-size: calc(11.5px * var(--fz)); font-weight: 700; color: var(--tx2); }
.wgh-fold { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -6px -4px -6px -2px; border-radius: 8px; color: var(--tx3); }
.wgh-fold .ic { transform: rotate(180deg); transition: transform .15s; }
.wgh-fold.shut .ic { transform: none; }
.wg-more { width: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; border-top: 1px solid var(--ln); font-size: calc(12.5px * var(--fz)); font-weight: 700; color: var(--tx2); }
/* under a head: the time, the kind, the price and after (the ticker, star, place and name are in the head) */
.alines.grouped .aline .al-sym, .alines.grouped .aline .al-a .star, .alines.grouped .aline .al-a .tag.place, .alines.grouped .aline .al-nl { display: none; }
.alines.grouped .aline { min-height: 50px; }
/* 국장 시험판 (시안 2판; the app's Alerts.kt KrLine the same): 전체 · 미국 · 국내 over the list for a member who turned the Korean alerts on;
   a Korean stock's line with its Korean name first (ending in … only where the column is short), its kind under the name, the code under
   the place, and the day's 외국인 · 기관 under them, an amount bought red and one sold blue */
.amkt .seg button { height: 38px; font-size: calc(13.5px * var(--fz)); font-weight: 700; }
.amkt .seg button .flag { margin-right: 2px; }
/* 랭킹's 미국 · 국내 (국장 랭킹, order 278): above 오늘 · 주간, a little room under it */
.rank-mkt { margin-bottom: 8px; }
.home-mkt { margin: 2px 0 10px; }
/* 처음 한 번: 받을 시장 고르기 (CEO 2026-12-02 15:37 KST; the app's MarketPick the same): three big rows, the note under them */
.mktpick-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mktpick-row { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; border: 1px solid var(--ln2); border-radius: 14px; background: var(--sf2); color: var(--tx); font-size: calc(16px * var(--fz)); font-weight: 700; text-align: left; }
.mktpick-row:hover, .mktpick-row:focus-visible { border-color: var(--acc); }
.mktpick-row .flag { font-size: calc(20px * var(--fz)); }
.mktpick-row .grow { flex: 1; min-width: 0; }
.mktpick-row .mp-sub { display: block; font-size: calc(12.5px * var(--fz)); font-weight: 500; color: var(--tx3); margin-top: 2px; }
.mktpick-note { color: var(--tx3); font-size: calc(13px * var(--fz)); text-align: center; margin-top: 4px; }
.aline.kr .al-a { flex-wrap: wrap; row-gap: 3px; }
.aline.kr .al-krnm { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.aline.kr .al-a .ak { order: 1; }
.aline.kr .al-a > .al-krnm { flex-basis: 100%; }
.aline.kr .al-code { color: var(--tx3); }
/* the 외국인 · 기관 line under the name and the price together (whole on a phone of 360 px), the time and 알림 뒤 beside both lines */
.aline.kr .al-tm { grid-column: 1; grid-row: 1 / span 2; }
.aline.kr .al-who { grid-column: 2; grid-row: 1; }
.aline.kr .al-px { grid-column: 3; grid-row: 1; }
.aline.kr .al-af { grid-column: 4; grid-row: 1 / span 2; }
.aline.kr .al-inv { grid-column: 2 / 4; grid-row: 2; margin-top: 3px; }
/* (three investors on a phone go on to a second line, never cut: 「외국인 −2.1억 · 기관 +5.4억 · 개인 −3.3억」; the app's InvLine the same) */
.al-inv, .alert-row .krinvline { font-size: calc(11.5px * var(--fz)); color: var(--tx3); white-space: normal; min-width: 0; }
.al-inv b, .alert-row .krinvline b { font-weight: 800; }
.alert-row .krinvline { font-size: calc(12px * var(--fz)); margin-top: 2px; }
.alert-row.kr .krnm { min-width: 0; overflow: hidden; white-space: nowrap; }
/* (the name's own words end in …, the letter mark before them kept whole) */
.krnm-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a narrow phone (the list under 360 wide): the columns close up, the time shorter */
@container (max-width: 359px) {
  .al-head, .aline { grid-template-columns: 44px minmax(0, 1fr) auto 64px; column-gap: 7px; padding-left: 10px; padding-right: 10px; }
  .al-sym { font-size: calc(14.5px * var(--fz)); }
  .al-px b { font-size: calc(13px * var(--fz)); }
  .al-af b { font-size: calc(12.5px * var(--fz)); padding: 3px 5px; }
}
/* a folding phone's outer screen (the list under 320 wide): the time over the line, the price under the name, 알림 뒤 on the right */
@container (max-width: 319px) {
  .al-head { display: none; }
  .aline { grid-template-columns: minmax(0, 1fr) 62px; grid-template-areas: "tm af" "who af" "px af"; row-gap: 3px; }
  /* (each of the two lines spread to the column's edges, so 몇 분 전 and 오늘 +% stand at one right edge from row to row) */
  .al-tm { grid-area: tm; flex-direction: row; gap: 6px; align-items: baseline; justify-content: space-between; }
  .al-tm b { font-size: calc(12px * var(--fz)); }
  .al-who { grid-area: who; }
  .al-px { grid-area: px; flex-direction: row; flex-wrap: wrap; column-gap: 6px; row-gap: 1px; align-items: baseline; justify-content: flex-start; }
  /* (오늘 +% whole at the right edge; where 알림 가격 · price · 오늘 +% do not fit on one line, 오늘 +% goes whole under them, still at the right edge) */
  .al-px > :last-child { margin-left: auto; }
  .al-af { grid-area: af; }
  /* (a Korean stock's line: its 외국인 · 기관 under the price) */
  .aline.kr { grid-template-areas: "tm af" "who af" "px af" "inv af"; }
  .aline.kr .al-tm { grid-area: tm; } .aline.kr .al-who { grid-area: who; } .aline.kr .al-px { grid-area: px; } .aline.kr .al-af { grid-area: af; } .aline.kr .al-inv { grid-area: inv; margin-top: 0; }
}

/* 메모 (CEO 2026-11-25 「메모는 그대로 진행」, memo_final; the app's Memo.kt the same): the mark after a Korean name, green while there is a
   memo, gray when there is none (colour only); the window with a new memo on top and the memos before, newest first */
.memo-mark, .bell-mark { display: inline-flex; flex: none; color: var(--tx); cursor: pointer; padding: 3px; margin-left: 1px; border-radius: 7px; }
.memo-mark.has, .bell-mark.has { color: var(--acc); background: var(--accd); }
.memo-mark .ic, .bell-mark .ic { width: 16px; height: 16px; }
/* the bell right after the memo mark (CEO 2026-12-01 23:10 KST 「메모아이콘이랑 종모양 너무 떨어트리지말고」): the two marks' own padding apart, no more */
.memo-mark + .bell-mark { margin-left: 0; }
.al-memo, .al-bell { cursor: pointer; padding: 2px; }
.newsback.memoback { z-index: 61; }
.newscard.memocard { position: relative; max-width: 560px; gap: 12px; }
.memo-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.memo-sym { font-size: calc(17px * var(--fz)); font-weight: 800; white-space: nowrap; }
.memo-top .memo-mark, .memo-top .bell-mark { cursor: default; }
.memo-top .memo-mark .ic, .memo-top .bell-mark .ic { width: 18px; height: 18px; }
.memo-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.memo-newbox { border: 1px solid var(--ln2); border-radius: 12px; background: var(--sf2); }
.memo-newbox .input { border: 0; background: transparent; resize: vertical; min-height: 84px; }
.memo-foot { display: flex; align-items: center; gap: 8px; padding: 4px 6px 6px 12px; min-width: 0; }
.memo-foot .grow { min-width: 0; }
.memo-lh { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.memo-item { border: 1px solid var(--ln); background: var(--sf2); border-radius: 12px; padding: 11px 12px 6px; min-width: 0; }
.memo-item + .memo-item { margin-top: 8px; }
.memo-item.editing { border-color: rgba(62, 207, 170, .55); padding-bottom: 8px; }
.memo-item.editing .memo-foot { padding-left: 2px; padding-right: 0; }
.memo-ih { display: flex; gap: 8px; font-size: calc(11.5px * var(--fz)); color: var(--tx3); font-weight: 600; min-width: 0; }
.memo-ih > .grow { color: var(--tx2); }
.memo-t { margin: 6px 0 2px; font-size: calc(14px * var(--fz)); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.memo-t.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.memo-acts { display: flex; align-items: center; gap: 14px; }
.memo-acts button { padding: 7px 2px; font-size: calc(12.5px * var(--fz)); font-weight: 600; background: none; }
.memo-acts .soft { color: var(--tx2); }
.memo-acts .up { color: var(--up); }
.memo-acts .grow { text-align: left; color: var(--acc); }
.memo-edit { margin-top: 6px; min-height: 110px; resize: vertical; }
.memo-none { padding: 4px 2px; }
/* the bell's window (CEO 2026-12-01 23:10 KST 「종 누르면 가격알림만」): the stock screen's price boxes and 지표 알림, without the panel's
   own edges (the card has them) */
.memo-price { display: flex; flex-direction: column; min-width: 0; width: 100%; max-width: 560px; margin: 0 auto; }
.memo-price > .line { padding: 0 2px 8px; font-size: calc(13.5px * var(--fz)); overflow-wrap: anywhere; }
.memo-price .priceform { padding: 2px 0 6px; }
/* 지표 알림 VWAP (CEO 2026-11-30, the look approved 22:09): under the price boxes, a line apart; the VWAP's colour is the chart's (IND_COLORS) */
.vwap-pane { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ln2); }
.vwap-head { display: flex; align-items: center; gap: 8px; font-size: calc(16px * var(--fz)); }
.vwap-new { font-size: calc(12px * var(--fz)); font-weight: 700; color: var(--acc); border: 1.5px solid var(--acc); border-radius: 999px; padding: 1px 8px; }
.vwap-now { background: var(--sf2); border-radius: 12px; padding: 10px 12px; font-size: calc(13.5px * var(--fz)); overflow-wrap: anywhere; }
.vwap-v { color: #FFB020; } html.light .vwap-v { color: #B45309; }
.vwap-row { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.vwap-row.off { opacity: .5; }
.vwap-name { font-size: calc(15px * var(--fz)); }
.vwap-mark { flex: none; width: 18px; height: 4px; border-radius: 2px; background: #FFB020; }
html.light .vwap-mark { background: #B45309; }
.vwap-row.off .vwap-mark { opacity: .6; }
.switch:disabled { cursor: not-allowed; }
.memo-price .pad-x { padding: 6px 0 2px; }
/* 관심종목 가격 알림's 수정·추가: the 지표 알림 under the boxes (CEO 2026-12-01 09:45 KST) */
.pf-vwap { padding: 0 18px 16px; }
.pf-vwap > .muted { padding-top: 12px; border-top: 1px solid var(--ln2); }
.pricebox .vwap-pane { margin-top: 4px; }
/* the stock's 내 메모 panel (CEO 2026-11-27 07:50 KST 「글씨랑 버튼이 다 붙어있는데 … 왼쪽에서 떨어지게 하고 메모쓰기 버튼도 글씨랑 좀 떨어져야지」):
   its words, its memo and its button stand in from the panel's edge as the title does, the button apart from what is over it */
.detail-memo { padding-bottom: 16px; }
/* 내 메모 without premium: the row with its premium tag, pressed for the premium card (Detail.kt) */
.memo-lock > .setrow { width: 100%; text-align: left; padding: 14px 14px 14px 18px; border-radius: inherit; }
.memo-lock > .setrow:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.detail-memo > .soft { padding: 0 18px; line-height: 1.6; }
.detail-memo > .memo-item { margin: 0 18px; padding-bottom: 10px; }
.detail-memo > .pad-x { padding: 14px 18px 0; }
.memo-ask { position: fixed; inset: 0; z-index: 63; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.memo-askcard { width: 100%; max-width: 340px; background: var(--sf); border: 1px solid var(--ln2); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.memo-askprev { background: var(--sf2); border-radius: 10px; padding: 10px 12px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.memo-askcard .row .btn { min-width: 0; }
.pc-only { display: none; }
/* Monetag's corner ad at the bottom left on a PC (CEO 2026-12-03 「좌측하단에 떳으면 좋겠는데(PC웹기준)」; app.js cornerWatch marks it) */
@media (min-width: 900px) {
  [data-mr-corner] { top: auto !important; right: auto !important; bottom: 16px !important; left: 16px !important; }
}
@media (min-width: 900px) {
  .newscard.memocard { max-width: 880px; }
  .newscard.memocard.alarmcard { max-width: 560px; }
  .memo-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .memo-write .pc-only { display: block; padding: 0; margin: 0 0 8px; }
  .memo-newbox .input { min-height: 300px; }
  .memo-list { max-height: 62vh; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
}
@media (max-width: 640px) {
  .newsback.memoback { align-items: flex-end; padding: 0; }
  .newscard.memocard { border-radius: 18px 18px 0 0; max-height: 88vh; border-bottom: 0; }
}
/* 내 메모 모음 (관심종목) */
.mbook-row { display: block; width: 100%; text-align: left; padding: 12px 14px; border-top: 1px solid var(--ln); }
.mbook-row:first-child { border-top: 0; }
.mbook-row .r1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mbook-row .r1 .nm { font-size: calc(12px * var(--fz)); color: var(--tx3); min-width: 0; }
.mbook-row .px { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; flex: none; padding-left: 8px; }
.mbook-row .px b { font-size: calc(13.5px * var(--fz)); }
.mbook-row .px span { font-size: calc(11px * var(--fz)); font-weight: 700; }
.mbook-row .t { margin: 6px 0 3px; font-size: calc(13.5px * var(--fz)); line-height: 1.5; color: var(--tx); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mbook-row .w { font-size: calc(11.5px * var(--fz)); color: var(--tx3); }
.brief-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 2px; width: 100%; text-align: left; padding: 10px 18px; border-top: 1px solid var(--ln); }
.brief-row:hover { background: var(--sf2); }
/* the ticker, its Korean name under it (CEO 2026-11-24 21:41 KST 「이것도 티커 아래에 한글이름 나오게」), then the alert's price and time
   under them, as the app has it; 「오늘 +66.40%」 stays on one line at the right */
.brief-row > .w18 { grid-row: 1; grid-column: 1; }
.brief-row .b-sym { grid-row: 1; grid-column: 2; min-width: 0; }
.brief-row > :last-child { grid-row: 1; grid-column: 3; justify-self: end; }
.brief-row > .b-at { grid-row: 2; grid-column: 2 / -1; }
.brief-row .b-nm { font-size: calc(12px * var(--fz)); line-height: 16px; margin-top: 1px; }
.brief-row > :last-child { flex: none; white-space: nowrap; }
.brief-box { container-type: inline-size; }
@container (max-width: 340px) {
  /* folded: 「지난 12시간 요약」 and 펼치기 over 「알림 14건 · 8종목」 */
  .brief-box .brief-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; }
  .brief-box .brief-bar > .strong { grid-row: 1; grid-column: 1; white-space: nowrap; }
  .brief-box .brief-bar > .accent { grid-row: 1; grid-column: 2; }
  .brief-box .brief-bar > .muted { grid-row: 2; grid-column: 1 / -1; }
}
/* a very narrow phone (280): the TOP 3's ticker and Korean name take the whole width (a long name was cut with …), the alert's price
   and time under them, 「최고 +35.6%」 last */
@container (max-width: 300px) {
  .brief-row .b-sym { grid-column: 2 / -1; }
  .brief-row > :last-child { grid-row: 3; grid-column: 2 / -1; justify-self: start; }
}
.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: calc(14px * var(--fz)); }
.idx-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
/* 국내 지수: the two take half the width each (CEO 2026-12-02 15:37 KST) */
.idx-cells.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.idx-cell { display: flex; flex-direction: column; min-width: 0; }
.idx-name { font-size: calc(12px * var(--fz)); color: var(--tx3); }
.idx-pct { font-size: calc(15px * var(--fz)); font-weight: 700; margin-top: 2px; white-space: nowrap; }
.idx-line { display: block; width: 100%; height: 22px; margin-top: 5px; }
.idx-foot { font-size: calc(11.5px * var(--fz)); margin-top: 9px; }
/* 지수 띠 · 지속 급등 TOP 4 (CEO 지시 433·434·442): the indexes running along the top, the board in the old 지수 흐름 card's place */
.band { padding: 9px 0; overflow: hidden; white-space: nowrap; }
.band-run { display: inline-flex; animation: band-run var(--band-s, 24s) linear infinite; will-change: transform; }
.band:hover .band-run { animation-play-state: paused; }
@keyframes band-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .band { overflow-x: auto; } .band-run { animation: none; } }
.band-i { display: inline-flex; align-items: baseline; gap: 6px; padding: 0 14px; font-size: calc(13px * var(--fz)); border-right: 1px solid var(--ln); }
.band-i b { font-weight: 700; }
.band-i .muted { font-size: calc(11.5px * var(--fz)); }
.surge { padding: 13px 14px 11px; }
.sg-head { gap: 8px; margin-bottom: 10px; align-items: baseline; }
.sg-title { font-size: calc(14px * var(--fz)); }
.sg-top { font-size: calc(12px * var(--fz)); color: var(--tx3); font-weight: 700; }
.sg-board { position: relative; height: 260px; }
.sg-tile { position: absolute; box-sizing: border-box; border: 2px solid var(--sf); border-radius: 14px; overflow: hidden; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0; cursor: pointer; font: inherit; }
.sg-tile:focus-visible { outline: 2px solid var(--acc); outline-offset: -4px; }
.sg-no { position: absolute; left: 8px; top: 5px; font-size: 11px; opacity: .75; }
.sg-in { display: flex; flex-direction: column; align-items: center; line-height: 1.2; white-space: nowrap; min-width: 0; max-width: 100%; }
.sg-in b { line-height: 1.05; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sg-nm { opacity: .95; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sg-px { opacity: .9; }
.sg-pc { font-weight: 800; }
.sg-dots { display: flex; gap: 3px; margin-top: 4px; }
.sg-dots i { width: 5px; height: 9px; border-radius: 2px; background: #ffd0d2; }
.sg-dots i.d { background: #9dc0ff; }
.sg-foot { font-size: calc(11.5px * var(--fz)); margin-top: 9px; }
@media (max-width: 480px) { .sg-board { height: 230px; } }
.rank-row { position: relative; display: block; width: 100%; min-height: 58px; text-align: left; border-top: 1px solid var(--ln); }
.rank-row:first-child { border-top: 0; }
/* (in pieces of five, CEO 지시 457: only the list's very first row has no line over it) */
.adrows-c .rank-row:first-child { border-top: 1px solid var(--ln); }
.adrows > .adrows-c:first-child > .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; min-height: 58px; display: flex; align-items: center; padding: 8px 18px; gap: 10px; }
.nw { white-space: nowrap; }
/* (flex: none: a long line under the ticker squeezed the rank's column, and the tickers stood a few px apart from row to row) */
.rank-row .no { flex: none; 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: calc(15px * var(--fz)); font-weight: 700; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-row .grow { min-width: 0; }
/* CEO 2026-11-29 01:04 KST: the value with a few words under it (「43분 뒤」), the head of a list as chips */
.rank-row .valbox { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.rank-row .valbox .under { white-space: nowrap; font-size: calc(11.5px * var(--fz)); display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; }
/* the ticker keeps its width; the name after it is cut with 「…」 (a long ticker went under the name: VGRP가상, 0.6.69 검수) */
.rank-row .row > .tk { flex: none; }
.rank-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.rank-chips .tag { font-size: calc(12px * var(--fz)); line-height: 22px; padding: 0 9px; }

/* 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: calc(24px * var(--fz)); font-weight: 700; cursor: copy; }
.detail .nm { font-size: calc(14px * var(--fz)); color: var(--tx2); padding-bottom: 3px; min-width: 0; }
.detail .d-memo { padding: 3px 4px; margin-left: -4px; align-self: center; }
.detail .d-memo .ic { width: 20px; height: 20px; }
.detail .d-bell { padding: 3px 4px; margin-left: -5px; align-self: center; }
.detail .d-bell .ic { width: 20px; height: 20px; }
.detail .price { font-size: calc(36px * var(--fz)); 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; }
/* (touch-action none: a finger up or down on the small chart moves its prices, as the mouse does; the page is scrolled beside the chart.
   CEO 2026-12-01 15:30 KST 「전체화면말고 그냥 보고있는 차트화면에서 … 위아래가 안되거든? … 웹 처럼 맞춰」. It was pan-y: the page scrolled.) */
.chartpanel canvas { display: block; width: 100%; height: 236px; touch-action: none; }
/* a PC's chart a little taller (order 440, CEO 2026-12-05 12:14 KST 「PC 웹 차트 화면 조금 크게(앱·모바일웹은 괜찮음)」): the two-column page only */
@media (min-width: 640px) and (min-height: 600px) { .chartpanel canvas { height: 300px; } }
/* the chart the member moves: 「처음 화면」 shows once it was moved */
.chartbox { position: relative; }
/* (in the head row beside the candle length, never over the candles or the held candle's numbers) */
.chartreset { flex: none; white-space: nowrap; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--ln2); background: rgba(25,27,31,0.92); color: var(--tx2); font: inherit; font-size: calc(12px * var(--fz)); cursor: pointer; }
.chartreset:hover { color: var(--tx); }
.chartreset[hidden] { display: none; }
/* 「실시간 연결 중」 until the stock's socket opens; 「실시간 멈춤 · 다시 연결」 once the page stopped trying */
.live-note { position: absolute; left: 10px; top: 2px; font-size: calc(11.5px * var(--fz)); color: var(--tx3); white-space: nowrap; }
.live-note[hidden] { display: none; }
.live-note button { font: inherit; color: var(--acc); background: none; border: 0; padding: 2px 0; cursor: pointer; }
.charthint { font-size: calc(11.5px * var(--fz)); color: var(--tx3); padding: 4px 8px 0 0; }
.chartpanel .legend { display: flex; align-items: center; padding: 0 6px 4px 14px; gap: 5px; font-size: calc(11.5px * var(--fz)); 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: calc(12.5px * var(--fz)); padding: 13px 18px; }/* Labels on one row and numbers on the next, so a label that goes on to two lines on a narrow phone never pushes its number below
   the others (CEO 2026-11-22 01:49 KST 「정렬」) */
.after .stats { display: grid; grid-template-columns: repeat(3, minmax(min-content, 1fr)); grid-template-rows: auto auto auto; column-gap: 8px; padding: 0 18px; }
.after .stats > div { display: contents; }
/* each stat in its own column, its name, number and won on rows 1-3 (the won under 알림 때 had pushed the other two one cell over: CEO 2026-11-28 03:33 「비율 안맞거나 깨지거나」) */
.after .stats > div:nth-child(1) > * { grid-column: 1; }
.after .stats > div:nth-child(2) > * { grid-column: 2; }
.after .stats > div:nth-child(3) > * { grid-column: 3; }
.after .stats .k { grid-row: 1; }
.after .stats .v { grid-row: 2; }
.after .stats .stat-won { grid-row: 3; }
.after .stats .k { font-size: calc(12px * var(--fz)); color: var(--tx3); align-self: end; }
.after .stats .v { font-size: calc(17px * var(--fz)); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.after canvas { display: block; width: calc(100% - 36px); height: 22px; margin: 14px 18px 0; }
.after .foot { display: flex; padding: 4px 18px 14px; font-size: calc(11.5px * var(--fz)); 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: calc(15px * var(--fz)); line-height: 1.4; }
.alert-row .newsline { margin-top: 5px; gap: 6px; font-size: calc(12.5px * var(--fz)); color: var(--tx2); }
/* 합친 카드 (CEO 2026-11-24 22:06 KST): 「알림 가격」 big and mint at the top right, the won under it, today's change named on the marks'
   line, and 「오늘 이 종목 알림 흐름」 (the five kinds, those rung today with their time and price, this alert's kind lit) */
.alert-row .px { display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 5px; color: var(--acc); }
.alert-row .px .lb { font-size: calc(11px * var(--fz)); font-weight: 500; color: var(--tx3); white-space: nowrap; }
.alert-row .px .usd { display: inline; font-size: calc(18px * var(--fz)); font-weight: 800; color: var(--acc); }
.alert-row .l2 { align-items: center; }
.alert-row .l2 > .won { flex: none; font-size: calc(11.5px * var(--fz)); color: var(--tx3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.alert-row .l3 { margin-top: 6px; gap: 6px; align-items: center; }
.alert-row .l3 .marks { display: flex; flex-wrap: wrap; gap: 4px 5px; min-width: 0; }
.alert-row .l3 .marks .tag { min-width: 0; }
.alert-row .l3 > .lb { flex: none; font-size: calc(11px * var(--fz)); color: var(--tx3); white-space: nowrap; }
/* CEO 2026-11-25 09:05 KST 「오늘 기준 상승률 문구가 왜 왼쪽으로 띄워져있어? 위에 알림가격처럼 붙어있어야지」: the change takes its own width (no
   80 px box with the number at its right end), so the name sits right beside it as 「알림 가격」 does; a longer number moves both left */
.alert-row .l3 > .chg { min-width: 0; margin-left: -1px; white-space: nowrap; }
.flow { position: relative; display: flex; margin-top: 9px; }
.flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 6px; height: 2px; background: var(--ln2); }
.flow .fn { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; font-size: calc(11px * var(--fz)); line-height: 15px; color: var(--tx3); }
.flow .fn i { display: block; width: 7px; height: 7px; margin: 3px 0 5px; border-radius: 50%; background: var(--ln2); }
.flow .fn.on { color: var(--tx2); }
.flow .fn.on i { width: 8px; height: 8px; margin: 2px 0 5px; background: var(--acc); }
.flow .fn.now { color: var(--acc); font-weight: 700; }
.flow .fn.now i { width: 10px; height: 10px; margin: 1px 0 4px; background: var(--acc); box-shadow: 0 0 0 3px rgba(62, 207, 170, .25); }
.flow .fn .fnm, .flow .fn .fv { white-space: nowrap; }
.flow .fn .fv { color: var(--tx2); font-weight: 400; font-variant-numeric: tabular-nums; }
.alert-row .newsline .ic { color: var(--acc); }
/* each mark where it belongs (CEO 2026-11-24 22:23 KST 「너무 아래로 몰아넣은거 아니야? 좀 적절하게 배치하고」): 알림 꺼짐 by the name;
   공시 and 뉴스 on the headline's line, the headline (premium) after them in what is left of the line */
.alert-row .l1 .tag.dim { flex: none; margin-left: 6px; }
.alert-row .newsline { margin-top: 7px; align-items: center; min-width: 0; flex-wrap: wrap; gap: 5px; }
.alert-row .newsline > .tag { flex: none; }
/* the headline under the marks on its own line, up to two lines (CEO 2026-12-01 07:24 KST 「뉴스 내용이 뒤에가 잘리는데 다음칸으로」) */
.alert-row .headline { margin-top: 5px; font-size: calc(12.5px * var(--fz)); line-height: 1.45; color: var(--tx2); text-align: left;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* 「알림 가격」 beside the price on every width, a phone's too (CEO 2026-11-25 12:37 KST 「알림가격은 B안으로 진행」; until then a list
   under 368 wide put it beside the won). The name gives way (it ends in …). The app's Feed.kt the same. */
.alert-row .l2 > .lb2 { display: none; }
/* (the phone's own bars: the window stays between them, the browser's address bar and the home bar too, CEO 2026-12-04 order 406
   「도움말 모바일웹이랑 앱에서 위아래 핸드폰바에 잘림」: 100vh is taller than the screen seen while the address bar shows, so the card's top and
   bottom were under the bars; --ow is the room kept around it) */
.newsback { --ow: 16px; position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center;
  padding: max(var(--ow), env(safe-area-inset-top)) max(var(--ow), env(safe-area-inset-right)) max(var(--ow), env(safe-area-inset-bottom)) max(var(--ow), env(safe-area-inset-left)); }
.newscard { width: 100%; max-width: 520px; max-height: calc(100vh - 2 * var(--ow, 16px)); max-height: calc(100dvh - max(var(--ow, 16px), env(safe-area-inset-top)) - max(var(--ow, 16px), env(safe-area-inset-bottom))); overflow-y: auto; overscroll-behavior: contain; 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: calc(12.5px * var(--fz)); color: var(--tx2); overflow-wrap: anywhere; word-break: normal; }
.newscard > p { margin: 0; }
/* the news card (CEO 2026-11-27 07:47 KST 「닫기버튼 왜저래?」): the news scrolls between the title and the foot; 닫기 stays at the foot, full width */
.newscard.split { overflow: hidden; padding-bottom: 14px; }
.newscard.split > .newsbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; }
.newscard.split > .newsbody > p { margin: 0; }
.newscard.split > .newsfoot { flex: none; padding-top: 12px; border-top: 1px solid var(--ln); }
.newscard.split > .newsfoot .btn { width: 100%; }
.warnbar { padding: 12px 16px; border-radius: 12px; background: var(--upd); border: 1px solid rgba(240, 97, 109, .22); font-size: calc(13px * var(--fz)); }
.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: calc(18px * var(--fz)); font-weight: 700; }
.state .word { display: flex; align-items: center; gap: 8px; color: var(--tx2); font-size: calc(13px * var(--fz)); 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: calc(12px * var(--fz)); color: var(--tx3); }
.tile .v { font-size: calc(16px * var(--fz)); font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 3px; }
.tile .n { font-size: calc(11.5px * var(--fz)); color: var(--tx3); font-variant-numeric: tabular-nums; }
.share { margin-top: 14px; }
.share + .share { margin-top: 10px; }
.share .k { display: flex; font-size: calc(12.5px * var(--fz)); color: var(--tx2); }
.share .k b { font-size: calc(13.5px * var(--fz)); 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; }
/* 큰 체결 기록 (CEO 2026-11-25, facts only; Big.kt): bars of each minute in one quiet colour (no side, no up/down colour), the alert's minute brighter */
.tag.big { background: var(--m3d); color: var(--m3); }
.bigrec { padding: 14px 16px 12px; }
.bigrec .head { gap: 11px; margin-bottom: 12px; }
.bigrec .head .stripe { width: 3px; height: 18px; border-radius: 2px; background: var(--m3); flex: none; }
.bigrec .head .muted { white-space: nowrap; }
/* on a narrow phone a label and its number never squeeze each other: the label stays on one line, the number goes under it, at the right */
.bigrec .head, .bigrec .line { flex-wrap: wrap; }
.bigrec .head .grow, .bigrec .line .grow { white-space: nowrap; }
.bigrec .head .muted, .bigrec .line .num { margin-left: auto; }
.bigbars { display: flex; align-items: flex-end; gap: 4px; height: 62px; }
.bigbars .col { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; height: 100%; }
.bigbars .bar { display: block; width: 100%; border-radius: 3px 3px 0 0; background: rgba(232, 168, 119, .38); }
.bigbars .bar.now { background: var(--m3); }
.bigrec .axis { margin: 5px 0 6px; gap: 6px; }
.bigrec .axis .mid { white-space: nowrap; color: var(--m3); }
.bigrec .axis .right { text-align: right; }
.bigrec .line { gap: 10px; padding: 9px 0; border-top: 1px solid var(--ln); font-size: calc(13px * var(--fz)); }
.bigrec .line .num { text-align: right; flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.big-note { margin: 8px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.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: calc(13px * var(--fz)); }
.same-row:hover { background: var(--sf2); }
.same-row.cur { background: var(--accd); }
/* the time, with its date before it when the alert is not today's (a weekend, a holiday): never cut, never on two lines */
.same-row .t { min-width: 48px; flex: none; white-space: nowrap; 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 + var(--bad, 0px) + env(safe-area-inset-bottom)); padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.disclaimer { color: var(--tx3); font-size: calc(12px * var(--fz)); }

/* 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: calc(12.5px * var(--fz)); 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: calc(13px * var(--fz)); }
.acct .inrow { display: flex; gap: 8px; align-items: center; padding: 8px 18px 14px; }
.acct .inrow .input { flex: 1; min-width: 0; }
/* a question with two answers (askYesNo): 옮기기 / 아니요 */
.newsback.askback { z-index: 62; }
.askcard { width: 100%; max-width: 420px; background: var(--sf); border: 1px solid var(--ln2); border-radius: 18px; padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.askcard-title { font-size: calc(18px * var(--fz)); font-weight: 700; color: var(--tx); margin-bottom: 2px; }
.askcard p { margin: 0; line-height: 1.55; }
.askcard-line { color: var(--tx2); font-size: calc(14.5px * var(--fz)); }
.bundle-points { margin: 0; padding: 10px 12px 10px 28px; border-radius: 10px; background: var(--sf2); line-height: 1.55; }
.bundle-points li + li { margin-top: 4px; }
.askcard-note { color: var(--up); font-size: calc(13.5px * var(--fz)); font-weight: 600; }
.askcard-btns { display: flex; gap: 10px; margin-top: 8px; }
.askcard-btns .btn { flex: 1; }
/* 광고 보고 시간 받기, the second ad (order 333, app.js boxAd): Adsterra's 300x250 in the middle of the card, never a white box on the dark page */
.adbox-slot { display: flex; justify-content: center; align-items: center; min-height: 250px; border-radius: 10px; background: var(--sf2); overflow: hidden; }
.adbox-slot iframe.ad-frame { display: block; border: 0; max-width: 100%; overflow: hidden; background: transparent; color-scheme: light; }
/* 광고 보고 시간 받기 · 준비 중 (CEO 2026-11-25 17:29 KST) */
.adsoon-card { max-width: 360px; align-items: center; text-align: center; gap: 6px; padding: 30px 22px 18px; background: radial-gradient(120% 70% at 50% 0%, rgba(62, 207, 170, .16), transparent 62%), var(--sf); }
.adsoon-badge { width: 64px; height: 64px; border-radius: 32px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; background: linear-gradient(var(--pri1), var(--pri2)); color: var(--prit); box-shadow: 0 0 0 7px var(--accd), 0 10px 26px rgba(62, 207, 170, .30); }
.adsoon-badge .ic { width: 30px; height: 30px; }
.adsoon-label { font-size: calc(12.5px * var(--fz)); font-weight: 700; color: var(--acc); }
.adsoon-card .adsoon-title { font-size: calc(21px * var(--fz)); margin: 0; }
.adsoon-card .adsoon-note { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--sf2); color: var(--tx3); font-size: calc(12.5px * var(--fz)); line-height: 1.6; word-break: keep-all; }
.adsoon-card .askcard-btns { width: 100%; margin-top: 16px; }
/* 「프리미엄이란?」: the button stands out as the app's (a red-tinted outline), and its card scrolls on a short screen */
.btn.premium-what { width: 100%; border: 1px solid var(--up); color: var(--up); background: transparent; font-size: calc(14.5px * var(--fz)); font-weight: 600;
  white-space: normal; word-break: keep-all; height: auto; min-height: 50px; padding: 10px 16px; line-height: 1.3; text-align: center; }
.btn.premium-what:hover { background: var(--sf2); }
.premium-what-card { max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.premium-what-card > * { flex-shrink: 0; } /* (the card scrolls; nothing in it is squeezed, the table least of all) */
.pw-table { display: flex; flex-direction: column; border: 1px solid var(--ln2); border-radius: 10px; overflow: hidden; }
.pw-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: calc(13.5px * var(--fz)); color: var(--tx2); }
.pw-row + .pw-row { border-top: 1px solid var(--ln2); }
.pw-head { background: var(--sf2); font-weight: 600; color: var(--tx); }
.pw-mark { flex: 0 0 56px; text-align: center; }
/* 「프리미엄이란?」 with its pictures (order 406): a wider card on a PC, a card for each feature with its real screen, the buttons kept in
   sight at the bottom while it scrolls */
.premium-what-card { max-width: 560px; gap: 14px; padding-bottom: 0; }
.pw-hero { display: flex; flex-direction: column; gap: 6px; }
.pw-lead { font-size: calc(19px * var(--fz)); font-weight: 700; line-height: 1.4; color: var(--acc); word-break: keep-all; text-wrap: balance; }
.pw-feats { display: flex; flex-direction: column; gap: 12px; }
.pw-feat { display: flex; flex-direction: column; gap: 12px; background: var(--sf2); border: 1px solid var(--ln); border-radius: 14px; padding: 14px; }
.pw-pic { position: relative; margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--ln2); background: var(--bg); }
.pw-pic img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: cover; object-position: top; }
.pw-pic.cut::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(0, 0, 0, 0), var(--sf2)); pointer-events: none; }
.pw-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pw-title { display: flex; align-items: baseline; gap: 8px; font-size: calc(16px * var(--fz)); font-weight: 700; color: var(--tx); word-break: keep-all; }
.pw-num { font-size: calc(12px * var(--fz)); font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.askcard p.pw-why { color: var(--acc); font-size: calc(14px * var(--fz)); font-weight: 600; line-height: 1.5; word-break: keep-all; }
.askcard p.pw-what { color: var(--tx2); font-size: calc(13.5px * var(--fz)); line-height: 1.6; word-break: keep-all; }
.pw-sec { margin-top: 6px; font-size: calc(15px * var(--fz)); font-weight: 700; color: var(--tx); }
.premium-what-card .pw-btns { position: sticky; bottom: 0; margin: 4px -20px 0; padding: 12px 20px 18px; background: var(--sf); border-top: 1px solid var(--ln2); }
@media (min-width: 760px) {
  .premium-what-card { max-width: 720px; }
  /* (on a PC: the screen on the left, its words beside it) */
  .pw-feat.has-pic { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: start; gap: 18px; }
}
.spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--ln2); border-top-color: var(--acc); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.setrow { display: flex; align-items: center; padding: 6px 11px 6px 18px; gap: 8px; }.setrow .k { font-size: calc(14px * var(--fz)); font-weight: 500; }
.setrow .d { font-size: calc(12px * var(--fz)); color: var(--tx3); }
/* 받을 종목과 조건 · 받을 시간대 · 목소리 (CEO 2026-11-22 01:36 KST: the app's settings on the web too) */
.setrow.off .k, .setcol.off .k { color: var(--tx3); }
.setcol { padding: 10px 18px 12px; }
.setcol .k { font-size: calc(14px * var(--fz)); font-weight: 500; }
.setcol .d { font-size: calc(12px * var(--fz)); color: var(--tx3); margin-bottom: 8px; }
.setcol .seg button:disabled, .sess:disabled { cursor: default; }
/* the app's own words (「소리 없이 목록에만」) go onto two lines on a narrow phone rather than past their button */
.setcol .seg button { white-space: normal; height: auto; min-height: 36px; line-height: 1.25; padding: 5px 4px; word-break: keep-all; }
/* choices of unlike length (주가: 전부 · $0.5 이하 · $0.5 이상 · $1 이상 · $5 이상): each as wide as its name, what is left over shared
   out, so the long ones stay on one line on a 360 px phone (with equal widths 「$0.5 이하」 went onto two) */
.setcol .seg.fit button { flex: 1 1 auto; }
/* (a one-word choice, 「전부」, never broken into one letter a line beside the long won choices: 국내 주식 조건 at 375 px, order 312) */
.setcol .seg.fit button { min-width: 3.2em; }
.condnote { margin: 2px 18px 10px; padding: 10px 14px; border-radius: 10px; background: var(--accd); border: 1px solid rgba(62, 207, 170, .3); }
.condnote .strong { color: var(--acc); font-size: calc(13.5px * var(--fz)); }
.sess-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 18px 14px; }
.sess { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ln2); color: var(--tx3); }
.sess .k { font-size: calc(13.5px * var(--fz)); font-weight: 600; }
.sess .d { font-size: calc(12px * var(--fz)); font-variant-numeric: tabular-nums; }
/* 울릴 알림 종류: inside its row (which has its own sides), three across as the app's once there is room for the names whole */
.setcol .sess-grid { padding: 0; }
@media (min-width: 360px) { #kinds .sess-grid { grid-template-columns: repeat(3, 1fr); } }
.sess[aria-pressed="true"] { background: var(--accd); border-color: rgba(62, 207, 170, .32); color: var(--acc); }
/* 안 받을 나라 · 거래소 (CEO 2026-11-30 07:38 KST): chips that wrap; one turned off is grey, dashed and crossed through, with 「안 받음」
   (not red: red is a rise here) */
.place-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.placechip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--ln2); background: var(--sf2); color: var(--tx); font-size: calc(13px * var(--fz)); font-weight: 600; }
.placechip .flag { font-size: calc(14px * var(--fz)); }
.placechip.off { background: transparent; color: var(--tx3); border-style: dashed; }
.placechip.off > span:not(.flag):not(.x) { text-decoration: line-through; }
.placechip .x { font-size: calc(11px * var(--fz)); font-weight: 600; color: var(--tx2); }
.timerow { display: flex; gap: 8px; padding: 0 18px 14px; }
.timerow label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: calc(12px * var(--fz)); color: var(--tx3); }
.timerow .input { padding: 9px 12px; color-scheme: dark; }
.condreset { display: block; margin: 4px auto 12px; color: var(--tx2); font-size: calc(13px * var(--fz)); font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.condreset:hover { background: var(--sf2); }
.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: calc(12px * var(--fz)); color: var(--tx3); }
/* 광고 제거 · 프리미엄 (CEO 2026-11-22 01:36 KST: the buying screens, payment off) and what premium is not (02:31 / 02:37 KST) */
.buyrow { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--ln); }
.buypanel .sec-title + .buyrow { border-top: 0; }
.buyrow .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.buyrow .btn { flex: none; }
/* 광고 제거+프리미엄 (CEO 2026-11-24 15:54 KST): marked 함께 사면 할인, as the app's sheet */
/* on a narrow phone its 구매하기 goes under the words, so that 「광고 제거+프리미엄 30일」 stays on one line */
@media (max-width: 359px) { .buyrow.bundle { flex-wrap: wrap; } .buyrow.bundle .grow { flex: 1 1 100%; } .buyrow.bundle .strong { white-space: nowrap; } }
.buyrow .chip-deal { display: inline-block; margin: 2px 0; padding: 1px 7px; border-radius: 6px; font-size: calc(11.5px * var(--fz)); font-weight: 600; color: var(--up); background: color-mix(in srgb, var(--up) 14%, transparent); border: 1px solid color-mix(in srgb, var(--up) 45%, transparent); vertical-align: 1px; white-space: nowrap; }
.buyrow .buyprice { font-weight: 600; }
/* the pay sheet as the app's (order 314, AdFree.kt PassSheet): the three to pick, the one picked with the accent ring and a filled dot */
.pass-sheet { max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.pass-sheet > * { flex-shrink: 0; }
.pass-body { display: flex; flex-direction: column; gap: 10px; }
.pass-choices { display: flex; flex-direction: column; gap: 8px; }
.pass-choice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--tx); cursor: pointer;
  padding: 11px 14px; border-radius: 12px; background: var(--sf2); border: 1px solid var(--ln2); }
.pass-choice.on { background: var(--accd); border: 1.5px solid var(--acc); padding: 10.5px 13.5px; }
.pass-choice:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.pass-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--tx3); display: grid; place-items: center; }
.pass-choice.on .pass-dot { border-color: var(--acc); }
.pass-choice.on .pass-dot i { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); }
.pass-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pass-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: calc(14.5px * var(--fz)); }
.pass-name b { font-weight: 600; white-space: nowrap; }
.pass-choice .chip-deal { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: calc(11px * var(--fz)); font-weight: 600; color: var(--up); background: color-mix(in srgb, var(--up) 14%, transparent); border: 1px solid color-mix(in srgb, var(--up) 45%, transparent); white-space: nowrap; }
.pass-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.pass-price b { font-size: calc(14px * var(--fz)); font-weight: 700; }
.pass-what { padding: 10px 12px; border-radius: 10px; background: var(--sf2); }
/* ② 결제 방법 (지시 474 시안 A안): 한 번 결제 · 매달 자동결제, two big cards the same size side by side */
.pass-step { font-size: calc(13px * var(--fz)); font-weight: 600; color: var(--tx2); margin-top: 2px; }
.pay-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; text-align: left; font: inherit; color: var(--tx); cursor: pointer;
  padding: 12px 13px; border-radius: 12px; background: var(--sf2); border: 1px solid var(--ln2); }
.pay-kind.on { background: var(--accd); border: 1.5px solid var(--acc); padding: 11.5px 12.5px; }
.pay-kind:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.pay-kind-top { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 6px; font-size: calc(14.5px * var(--fz)); }
.pay-kind-top b { font-weight: 700; }
.pay-kind-check { color: var(--acc); font-weight: 700; }
.pay-kind-price { font-size: calc(17px * var(--fz)); font-weight: 700; }
.pay-kind-under { font-size: calc(13px * var(--fz)); }
.pass-what .bundle-points { padding: 6px 0 0 18px; background: none; }
.pass-body > .btn.wide, .pass-sheet .askcard-btns .btn { width: 100%; }
.pass-body .notadvice-box { margin: 2px 0 0; }
.notadvice { display: flex; flex-direction: column; gap: 2px; }
.buycard .askcard-note { color: var(--tx3); font-size: calc(12.5px * var(--fz)); font-weight: 400; }
.buycard .askcard-note.soon { color: var(--tx); font-size: calc(13.5px * var(--fz)); font-weight: 600; margin-top: 4px; }
.buycard .btn:disabled { opacity: .55; cursor: default; }
/* 이벤트·혜택 알림 on the sign-up page: a choice of its own, off until turned on (CEO 2026-11-22 02:37 KST) */
.joinpromo { width: 100%; margin-top: 16px; padding: 12px 10px 12px 14px; border: 1px solid var(--ln); border-radius: 12px; background: var(--sf); text-align: left; }
.joinpromo .d { line-height: 1.45; margin-top: 2px; }
/* 약관 동의 (order 406): the documents' whole text in boxes of their own, each with its tick; 전체 동의 over them */
.agree { width: 100%; margin-top: 20px; padding: 6px 14px 14px; text-align: left; }
.agree-check { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 2px 8px; font-size: calc(14.5px * var(--fz)); font-weight: 600; color: var(--tx); text-align: left; }
.agree-check.all { font-size: calc(16px * var(--fz)); font-weight: 700; padding-top: 10px; }
.agree-mark { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--ln2); display: inline-flex; align-items: center; justify-content: center; color: transparent; background: var(--sf2); }
.agree-mark .ic { width: 14px; height: 14px; }
.agree-check.on .agree-mark { background: var(--acc); border-color: var(--acc); color: var(--prit); }
.agree-check:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 8px; }
.agree-note { padding: 0 0 4px 32px; line-height: 1.45; }
.agree-line { height: 1px; background: var(--ln); margin: 8px 0 2px; }
.agree-doc { max-height: 190px; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px; margin: 0 0 4px 32px; border: 1px solid var(--ln); border-radius: 10px; background: var(--sf2); font-size: calc(12.5px * var(--fz)); line-height: 1.55; color: var(--tx2); }
.agree-doc h1 { font-size: calc(14px * var(--fz)); margin: 0 0 4px; color: var(--tx); }
.agree-doc h2 { font-size: calc(13px * var(--fz)); margin: 12px 0 4px; color: var(--tx); }
.agree-doc p, .agree-doc ul, .agree-doc ol { margin: 4px 0; }
.agree-doc ul, .agree-doc ol { padding-left: 18px; }
.agree-doc .date { color: var(--tx3); font-size: calc(11.5px * var(--fz)); }
.agree-doc table { border-collapse: collapse; width: 100%; margin: 6px 0; font-size: calc(11.5px * var(--fz)); }
.agree-doc th, .agree-doc td { border: 1px solid var(--ln2); padding: 4px 6px; text-align: left; vertical-align: top; }
.agree-doc div { overflow-x: auto; }
.agree + .err, .agree ~ .btn.primary { margin-top: 14px; }
.btn.dim { opacity: .5; }
.agreed-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.agreed-line .ic { width: 14px; height: 14px; color: var(--acc); }
.agreed-line .textlink { color: var(--acc); }
/* the same over the whole page for a member who has not agreed to the versions now */
.agree-gate { position: fixed; inset: 0; z-index: 950; overflow-y: auto; background: var(--bg); padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.agree-col { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.agree-col .mascot.small { width: 96px; height: 96px; align-self: center; margin: 8px 0 12px; }
.agree-col > .textlink { align-self: center; margin-top: 14px; color: var(--tx3); }
body.gated { overflow: hidden; }
.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: 640px) and (min-height: 600px) {
  .topnav { display: flex; }
  .bottomnav { display: none; }
  .main { padding-bottom: calc(32px + var(--bad, 0px)); }
  .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 - var(--bad, 0px)); 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); }
  /* the wheel pressed on the empty page right of the list turns the stock's side (app.js: side-auto while it does) */
  .side-auto, .side-auto * { cursor: ns-resize !important; }
  .side-empty { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 420px; color: var(--tx3); font-size: calc(13.5px * var(--fz)); }
  .detail .bar .back { display: none; }
  .actions { position: static; background: none; padding: 4px 0 0; }
}
@media not all and (min-width: 640px) and (min-height: 600px) {
  .cols.has-side .list-col { display: none; }
  .cols:not(.has-side) .side { display: none; }
}
@media (max-width: 380px) {
  .detail .price { font-size: calc(30px * var(--fz)); }
  .seg button { font-size: calc(12px * var(--fz)); }
}

/* 관심종목 가격 알림 (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: calc(13px * var(--fz)); }
.pricebox .pad-x { padding: 0 18px 14px; }
.priceform { display: flex; flex-direction: column; gap: 8px; padding: 4px 18px 14px; }
/* right under the line that parts it from the list above, the first box keeps its room (CEO 2026-12-01 19:52 KST 「이거 붙어있는거 때야한다」:
   on 관심종목 the ticker box sat 4 px under that line) */
.divider + .priceform { padding-top: 16px; }
/* (수정's 「취소」 the same: it stood 6 px under that line, found by tools/stuck_audit.js) */
.divider + .pf-head { padding-top: 12px; }
.priceform .pf-row { display: flex; align-items: center; gap: 10px; }
.priceform .pf-row .input { flex: 1; min-width: 0; padding: 10px 12px; }
.priceform .pf-label { font-size: calc(13px * var(--fz)); font-weight: 600; margin-top: 4px; }
.priceform .quick { display: flex; flex-wrap: wrap; gap: 6px; }
.priceform .quick .pill { min-height: 30px; padding: 0 11px; }
.priceform .pf-save { display: flex; justify-content: flex-end; }

/* 미국 지수 흐름, folded (CEO 2026-11-21 07:35 KST), with every name and change whole on every width (CEO 2026-11-22 01:49 KST: on a PC
   the four ran under 「펼치기」, and on a folding phone's outer screen there was no room beside the title). As the app's: when the bar
   itself is wide, one line — 미국 지수 · the four · 펼치기; else 미국 지수 and 펼치기 over the four in two columns, each change at its
   column's right */
.idx-box { container-type: inline-size; }
.idx-fold { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; width: 100%; text-align: left; padding: 12px 16px; line-height: 1.3; }
.idx-fold:hover { border-color: var(--ln2); }
.idx-fold .idx-title { white-space: nowrap; grid-column: 1; grid-row: 1; }
.idx-fold .idx-more { white-space: nowrap; grid-column: 2; grid-row: 1; }
.idx-fold .idx-mini { grid-column: 1 / -1; grid-row: 2; }
.idx-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; min-width: 0; font-size: calc(12.5px * var(--fz)); }
.idx-m { display: flex; justify-content: space-between; gap: 6px; min-width: 0; white-space: nowrap; }
.idx-m .muted { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.idx-m .num { flex: none; }
/* open on a narrow phone: when the prices are of goes under the title, and the four are two and two */
@container (max-width: 340px) {
  .idx-head { flex-wrap: wrap; row-gap: 2px; }
  .idx-head > .muted { order: 3; flex-basis: 100%; }
  .idx-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
}
/* a folding phone's outer screen: a little less room around the four, so that each name and change stays whole in its column */
@container (max-width: 300px) {
  .idx-fold { padding: 12px 12px; }
  .idx-mini { column-gap: 10px; font-size: calc(12px * var(--fz)); }
  .idx-m { gap: 4px; }
}
@container (min-width: 660px) {
  .idx-fold { grid-template-columns: auto minmax(0, 1fr) auto; }
  .idx-fold .idx-mini { grid-column: 2; grid-row: 1; grid-template-columns: repeat(4, auto); justify-content: start; column-gap: 16px; }
  .idx-fold .idx-more { grid-column: 3; }
  .idx-m { justify-content: start; }
}
.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: calc(13.5px * var(--fz)); 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: calc(14px * var(--fz)); 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: calc(13px * var(--fz)); 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 */
/* (overscroll-behavior: at the window's end a finger or a wheel does not go on to the page behind it, CEO 2026-12-01 22:47 KST; the same on
   every box that scrolls inside a window over the page: .newscard, .memo-list, .premium-what-card) */
.reader { width: 100%; max-width: 720px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; 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: calc(13.5px * var(--fz)); 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: calc(19px * var(--fz)); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.reader-label { margin: 18px 0 8px; font-size: calc(12.5px * var(--fz)); 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: calc(15px * var(--fz)); 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: calc(15.5px * var(--fz)); line-height: 1.75; color: var(--tx2); overflow-wrap: anywhere; word-break: normal; }
.reader-body > h3 { margin: 22px 0 10px; font-size: calc(15.5px * var(--fz)); 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: calc(22px * var(--fz)); }
.reader.big .reader-ko p { font-size: calc(17.5px * var(--fz)); }
.reader.big .reader-body > p, .reader.big .reader-body > h3 { font-size: calc(18px * var(--fz)); }
/* 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; }
/* 친구 초대 */
.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: calc(24px * var(--fz)); 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: calc(17px * var(--fz)); font-weight: 700; margin-top: 2px; overflow-wrap: anywhere; }
.ref-tile .v.small-v { font-size: calc(13px * var(--fz)); 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: calc(13px * var(--fz)); color: var(--tx2); line-height: 1.6; }
.ref-how li + li { margin-top: 3px; }
/* 회원가입 first (CEO 2026-11-22 15:26 KST): a Google account that has not signed up, pressed on 로그인 */
.panel.unjoined { padding: 16px; margin-top: 14px; border-color: rgba(62, 207, 170, .32); }
.panel.unjoined .soft { margin: 0 0 12px; line-height: 1.6; }
.panel.unjoined .btn { width: 100%; }
/* 홈 화면에 추가 (CEO 2026-11-21 20:28 KST: 아이폰 웹을 홈 화면에) */
.homehint { padding: 14px 16px; border: 1px solid rgba(62, 207, 170, .32); background: var(--accd); }
.homehint .soft { margin-top: 4px; line-height: 1.55; }
.homehint .home-steps { margin: 10px 0 0; }
.homepanel .home-steps { margin-top: 2px; }
/* 앱으로 받기 (CEO 2026-11-24 01:37 KST): on an Android phone, over the alerts and in 내 계정 */
.apphint { padding: 14px 16px; border: 1px solid rgba(62, 207, 170, .32); background: var(--accd); }
.apphint > .soft { margin-top: 4px; line-height: 1.55; }
.apphint .app-in { margin-top: 8px; }
.apppanel .app-in { padding: 0 18px 16px; }
.app-in .app-lead { line-height: 1.55; }
.app-in .app-steps { margin: 10px 0 0; }
.app-in .app-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.app-in .app-btns .app-btn { flex: 1 1 200px; }
.app-in .app-note { margin-top: 10px; line-height: 1.5; }
.app-in .inrow.app-ask { display: flex; gap: 8px; align-items: center; padding: 12px 0 0; }
.app-in .inrow.app-ask .input { flex: 1; min-width: 0; }
.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: calc(21px * var(--fz)); 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); }
.dilrow .k .tag { flex: none; }
.dil-title { font-size: calc(14px * var(--fz)); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
/* 만두봇 분석 (CEO 2026-11-22 09:02 KST): the line, the key facts, a caution, and what it is and is not */
.insight { padding-bottom: 12px; }
.insight-t { margin: 0 18px; font-size: calc(15.5px * var(--fz)); font-weight: 600; line-height: 1.6; color: var(--tx); word-break: keep-all; overflow-wrap: anywhere; }
.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: calc(14px * var(--fz)); 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: calc(13.5px * var(--fz)); line-height: 1.6; color: var(--tx); word-break: keep-all; overflow-wrap: anywhere; }
.insight-note .tag { flex: none; margin-top: 2px; }
.insight-about { margin: 10px 18px 0; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
/* beside the numbers after an alert: what they are (MR.AFTER_NOTE) */
.after-note { margin: 10px 0 0; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.panel.after .after-note { margin: 0 18px 14px; }
/* 관련 공시·뉴스 (CEO 2026-11-22 02:37 KST): time, kind and title, one under another in time order */
.related { padding-bottom: 6px; }
.related .lead { padding: 0 18px 10px; }
.rel-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 8px; align-items: baseline; padding: 9px 18px; border-top: 1px solid var(--ln); }
.rel-row .rel-t { white-space: nowrap; }
.rel-row .tag { justify-self: start; white-space: nowrap; }
.rel-title { font-size: calc(13.5px * var(--fz)); line-height: 1.5; color: var(--tx); word-break: keep-all; overflow-wrap: anywhere; }
/* 최근 뉴스 2주, each row opens the item (CEO 2026-11-28 21:08 KST 「이전뉴스도 누르면 볼수있게」) */
button.rel-row.link { width: 100%; margin: 0; border: 0; border-top: 1px solid var(--ln); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.rel-row.link:hover .rel-title { color: var(--acc); }
button.rel-row.link:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.orig-inline { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--sf2); }
.orig-inline > p { margin: 0 0 10px; font-size: calc(13.5px * var(--fz)); line-height: 1.7; color: var(--tx2); overflow-wrap: anywhere; }
.orig-inline > h4 { margin: 12px 0 6px; font-size: calc(13.5px * var(--fz)); color: var(--tx); overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .rel-row { grid-template-columns: auto minmax(0, 1fr); row-gap: 3px; }
  .rel-title { grid-column: 1 / -1; }
}
/* 피드백 남기기 (CEO 2026-11-22 12:48 KST): the form as the invitation's picture shows it — a title, the box, 「사진 붙이기」, 「보내기」 */
.fbcard { gap: 10px; }
.fbcard .row.base { align-items: flex-start; }
.fb-title { font-size: calc(19px * var(--fz)); font-weight: 750; margin-bottom: 3px; }
.fbcard textarea.input { min-height: 150px; resize: vertical; font: inherit; line-height: 1.55; }
.fbcard .row .muted.small.grow { padding-right: 10px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
/* 도움말 (CEO 2026-11-24 01:33 KST; openHelp): the subjects in their groups as the app lists them, and a subject's pictures with the
   marks' orange numbers beside their words (the marks on the pictures are the same orange: Help.kt MARK) */
.helpcard { gap: 14px; max-width: 560px; }
.help-head { align-items: flex-start; }
.help-head .fb-title { line-height: 1.3; }
.help-gt { font-size: calc(12.5px * var(--fz)); font-weight: 650; color: var(--tx3); margin: 0 2px 6px; }
.help-pic { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.help-pic img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--ln2); background: var(--bg); }
.help-note { margin: 0 2px; }
.help-zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; }
/* as wide as a PC (MR.HELP_PC_MEDIA): the PC's pictures (drawn at twice their pixels, 「2x」) at their own size where they fit, made
   smaller where not; the card wider so that they are not made too small */
@media (min-width: 640px) and (min-height: 600px) {
  .helpcard { max-width: 760px; }
  .help-pic img { width: auto; max-width: 100%; margin: 0 auto; }
}
.help-zoomable:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
/* one picture large (CEO 2026-11-26 16:49 KST 「이미지도마찬가지」): at its own size, twice the phone's, scrolled about where the screen is smaller */
.help-zoom { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .92); overflow: auto; display: flex; padding: 56px 12px 24px; cursor: zoom-out; overscroll-behavior: contain; }
.help-zoom img { display: block; margin: auto; width: 750px; max-width: none; height: auto; border-radius: 12px; }
.help-zoom img.pc { width: auto; }
.help-zoom-x { position: fixed; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: calc(20px * var(--fz)); cursor: pointer; }
.help-pts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.help-pts li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; overflow-wrap: anywhere; }
.help-n { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--mark); color: var(--markt); font-size: calc(12.5px * var(--fz)); font-weight: 750; line-height: 22px; text-align: center; }
.help-tips { margin: 0; padding: 12px 14px 12px 30px; border-radius: 12px; background: var(--sf2); color: var(--tx2); display: flex; flex-direction: column; gap: 6px; line-height: 1.55; }
.title-row { align-items: center; gap: 10px; }
.title-row .help-pill { margin-top: 20px; flex: none; }
.btn.soft { background: var(--sf3); color: var(--tx); }
.btn.soft:hover:not(:disabled) { filter: brightness(1.12); }
.btn.soft:disabled { color: var(--tx3); }
.fb-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fb-shot { display: flex; align-items: flex-end; gap: 10px; }
.fb-shot img { display: block; max-width: 140px; max-height: 200px; border-radius: 10px; border: 1px solid var(--ln2); background: var(--sf2); }
.fb-mine { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.fb-mine:empty { display: none; }
.fb-item { padding: 9px 0; border-top: 1px solid var(--ln); }
.fb-said { margin-top: 3px; font-size: calc(13.5px * var(--fz)); line-height: 1.55; color: var(--tx2); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.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); }
/* (the question's words stood right under that line, 0 px: .acct .line has no room at its top. Found by tools/stuck_audit.js, 2026-12-01,
   CEO 19:52 KST 「붙어있는거 … 나머지 부분도 다 체크해서 확인해」) */
.acct .ask-item { padding-top: 12px; }
.ask-notice p { margin: 6px 0 4px; font-size: calc(13.5px * var(--fz)); line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.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); }
/* 공지·이벤트 | 패치노트 (CEO 2026-11-26, 시안 OK 17:02 KST): never in one list; a patch note is its version, day and one change a line */
.patch-item { border-top: 1px solid var(--ln); }
/* CEO 2026-11-27 11:02 KST: a title sat right on the line above it (「카드 위쪽이랑 너무 붙어있어 살짝내리고」) */
.noticepanel .patch-item, .noticepanel .notice-item { padding-top: 12px; }
.patch-more { display: inline-flex; align-items: center; min-height: 32px; padding: 0 2px; margin-top: 2px; background: none; border: 0; color: var(--tx3); font: inherit; font-size: calc(12.5px * var(--fz)); cursor: pointer; }
.patch-more:hover { color: var(--tx2); }
.notice-tabs + .patch-item, .noticepanel .line:has(.notice-tabs) + .notice-item, .noticepanel .line:has(.notice-tabs) + .patch-item { border-top: 0; }
.patch-lines { margin: 8px 0 2px; padding-left: 18px; font-size: calc(13.5px * var(--fz)); line-height: 1.7; color: var(--tx2); }
.patch-lines li { overflow-wrap: anywhere; }
.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: calc(13.5px * var(--fz)); 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: calc(13.5px * var(--fz)); 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: calc(11.5px * var(--fz)); padding: 0 2px; letter-spacing: -0.3px; }
  .bottomnav a { min-width: 0; font-size: calc(10px * var(--fz)); }
  .actions .btn { min-width: 0; padding: 0 8px; font-size: calc(13.5px * var(--fz)); }
  .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 { --ow: 8px; }
  .newscard { padding: 14px 12px 12px; min-width: 0; }
  .newscard > .row { flex-wrap: wrap; row-gap: 2px; }
}
/* The top bar of a phone up to 400 wide: the title and the market state on line 1, the wait on line 2 (it had been so up to 340 only; from
   the 작은 창 button on (지시 436) 「데이장까지 4시간…」 was cut at 360 and 「주말 휴장」 ran over at 320: the layout check of 지시 561) */
@media (max-width: 400px) {
  /* Title and market state on line 1, the wait on line 2 (no …) */
  .topbar .grow { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 5px; align-items: center; line-height: 1.3; }
  .topbar .grow > .name { margin-right: 3px; }
  .topbar .mk { display: contents; font-size: calc(11.5px * var(--fz)); }
  .topbar .mk .mk-now { white-space: nowrap; }
  .topbar .mk .mk-sep { display: none; }
  .topbar .mk .mk-next { grid-column: 1 / -1; }
}
/* A folding phone's outer screen (under 300 wide): 「만두레이더」 alone on line 1, the market state on line 2, the wait on line 3 (the three
   fit in the bar's 60 px; on one line with the title, 「주말 휴장」 ran under the 작은 창 button at 280: the layout check of 지시 561) */
@media (max-width: 300px) {
  .topbar .grow { grid-template-columns: auto minmax(0, 1fr); line-height: 1.22; }
  .topbar .grow > .name { grid-column: 1 / -1; font-size: calc(15.5px * var(--fz)); }
}
/* Every number and short label whole and on one line on the narrowest phones (CEO 2026-11-22 01:49 KST 「깨짐」): the time left, the
   stock's other alerts, the after-alert foot and the chart's legend and head, a filing's title, the sign-in buttons, the watch list */
@media (max-width: 340px) {
  .timecard .left { font-size: calc(24px * var(--fz)); white-space: nowrap; }
  /* (the top bar on the narrowest phones: the 작은 창 and 돋보기 buttons narrower and the gaps closer, so that the wait under the title is
     whole, 「데이장까지 12시간 34분」 at 280 wide; 지시 561 검수) */
  .topbar .in { gap: 6px; padding-left: 12px; }
  .topbar .in > .iconbtn { width: 36px; }
  /* The stock's other alerts: the kind whole, the alert's price under it (no 「급등 초…」) */
  .same-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 8px; row-gap: 1px; padding: 10px 14px; font-size: calc(12.5px * var(--fz)); }
  .same-row .t { min-width: 40px; }
  .same-row > span:nth-child(3) { grid-column: 2; grid-row: 2; color: var(--tx2); }
  /* there, under the kind: the won beside the price, or under it when they do not fit */
  .same-row > .same-px { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 5px; }
  .after .stats .v { font-size: calc(15.5px * var(--fz)); }
  .after .stats { padding: 0 14px; column-gap: 6px; }
  .after .stats .stat-won { font-size: calc(10.5px * var(--fz)); }
  .chartpanel .head { flex-wrap: wrap; row-gap: 4px; }
  .chartpanel .head > .muted { white-space: nowrap; }
  .dilrow .k { flex-wrap: wrap; row-gap: 3px; }
  .way { padding: 0 12px; gap: 8px; font-size: calc(14px * var(--fz)); }
}
.same-row > .num { white-space: nowrap; flex: none; }
/* 그 뒤 최고 (CEO 2026-12-02 22:33 KST): under the hour's 최고 in the stock's other alerts, and its own line under 알림 뒤 1시간 */
.same-res { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; flex: none; white-space: nowrap; }
.same-res .same-dayhi { font-size: calc(11px * var(--fz)); }
.after .dayhi { display: flex; align-items: baseline; gap: 8px; padding: 10px 18px 14px; border-top: 1px solid var(--ln); font-size: calc(13px * var(--fz)); }
/* the price over its won (원화, CEO 2026-11-24 01:18 KST), so the kind beside them is never cut short */
.same-px { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.same-px .won { font-size: calc(11px * var(--fz)); color: var(--tx3); }
.after .foot { flex-wrap: wrap; column-gap: 10px; row-gap: 2px; }
.after .foot > span { white-space: nowrap; }
/* the space between the legend's parts is the row's own gap, so a part that goes on to the next line starts at the same edge as the
   first (2026-11-27 check at 360: 「매수·매도 구분은…」 stood in by 7px) */
.chartpanel .legend { flex-wrap: wrap; row-gap: 2px; column-gap: 12px; }
.legend .lg { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend .lg .band { margin-left: 0; }
/* 차트의 큰 체결 (CEO 2026-11-26 「D」): red up for the buying side, blue down for the selling side */
.legend .bigside { width: 8px; height: 12px; border-radius: 1px; background: linear-gradient(var(--up, #F0616D) 0 50%, var(--dn, #5B93EE) 50% 100%); }
/* the volume's 매수 (red) / 매도 (blue) colours, as the bars draw them (CEO 2026-11-26 시안1); the expand button at the line's right end */
.legend .sw { width: 8px; height: 8px; border-radius: 2px; }
.legend .sw.buy { background: rgba(240, 97, 109, .6); }
.legend .sw.sell { background: rgba(91, 147, 238, .6); margin-left: 3px; }
.chartpanel .legend > .iconbtn { margin-left: auto; }
/* 10초 / 30초 picked with no ten-second candles: why one-minute candles show (CEO 2026-11-26 23:33 KST) */
.chart-note { padding: 7px 10px; border-radius: 8px; background: rgba(62, 207, 170, .08); color: var(--tx2); line-height: 1.45; word-break: keep-all; }
.chartpanel .chart-note { margin: 4px 12px 0 14px; }
.bigchart .chart-note { margin: 4px 0; flex: none; }
.watch-row .open .row.gap8 { flex-wrap: wrap; row-gap: 2px; }
.watch-row .open .num { white-space: nowrap; }
/* (the words in place of a price, 「휴장 중 · 가격은 장이 열리고 첫 체결 때 나옵니다」, wrap at a space inside their box, never under 수정) */
.watch-row .open .num.now-w { white-space: normal; word-break: keep-all; overflow-wrap: break-word; }
/* the count, the last alert and its price with the won: on to the next line at a 「·」 or before the won, never past the edge */
.watch-row .open .watch-last { white-space: normal; min-width: 0; }
/* a price line's two prices (CEO 2026-11-27 07:50 KST 「글씨랑 수정 버튼이랑 겹치는데」): each kept whole, on to the next line at the 「·」,
   never running under 수정 and the ✕ */
.watch-row .open .plw { white-space: normal; min-width: 0; flex: 1 1 100%; }
/* each price whole on its line; on the narrowest phones (280 / 320 px: the layout check's new rules 2026-11-27) a price too long for
   the line goes on before its won, never under 수정 */
.watch-row .open .plw > span { display: inline-block; max-width: 100%; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.watch-row .pill, .watch-row .iconbtn { flex: none; }
/* the big chart's numbers: on to a second line, not cut at the screen's edge in a row that scrolls (the layout check 2026-11-27) */
.bigchart .stats { flex-wrap: wrap; row-gap: 2px; overflow: visible; white-space: normal; padding-right: 10px; }
.bigchart .stats > span { white-space: nowrap; }
@media (max-width: 340px) {
  /* the two buttons under a stock: the words kept off the button's sides, on two lines when they must */
  .actions .btn { padding: 0 10px; white-space: normal; word-break: keep-all; line-height: 1.2; }
}
@media (max-width: 300px) {
  .after .stats { column-gap: 4px; }
  .after .stats .v { font-size: calc(14px * var(--fz)); }
  .after .stats .stat-won { font-size: calc(10px * var(--fz)); }
  .ref-tiles, .tiles { grid-template-columns: 1fr; }
  .ref-tiles .ref-tile:last-child, .tiles .tile:last-child:nth-child(odd) { grid-column: auto; }
  .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: calc(18px * var(--fz)); }
}

/* ---------- 글꼴 (CEO 2026-11-24 05:13 KST 「글꼴파일 받아서 진행해」): the app's four (Fonts.kt), one for both (both.font) ----------
   From this site (public/web/fonts, font-src 'self'); a browser loads only a face in use, so nothing more comes until one is chosen. */
@font-face { font-family: "MR Pretendard"; src: url(/web/fonts/pretendard-regular.woff2) format("woff2"); font-weight: 100 600; font-display: swap; }
@font-face { font-family: "MR Pretendard"; src: url(/web/fonts/pretendard-bold.woff2) format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "MR Nanum"; src: url(/web/fonts/nanumgothic-regular.ttf) format("truetype"); font-weight: 100 600; font-display: swap; }
@font-face { font-family: "MR Nanum"; src: url(/web/fonts/nanumgothic-bold.ttf) format("truetype"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "MR Plex"; src: url(/web/fonts/ibmplexsanskr-regular.ttf) format("truetype"); font-weight: 100 600; font-display: swap; }
@font-face { font-family: "MR Plex"; src: url(/web/fonts/ibmplexsanskr-bold.ttf) format("truetype"); font-weight: 700 900; font-display: swap; }
html[data-font="1"] body { font-family: "MR Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
html[data-font="2"] body { font-family: "MR Nanum", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
html[data-font="3"] body { font-family: "MR Plex", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
/* each choice on the 글꼴 page in its own face, whichever is chosen */
.ff0 { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", "Noto Sans KR", Roboto, sans-serif; }
.ff1 { font-family: "MR Pretendard", sans-serif; } .ff2 { font-family: "MR Nanum", sans-serif; } .ff3 { font-family: "MR Plex", sans-serif; }

/* ---------- 설정 (CEO 2026-11-25 11:00 KST 「설정 목업은 v2 로 진행」) ----------
   A phone: the card, the amber card and the rows under their group names (the app's 설정); a row opens its own screen in place of the
   list, with ‹ back. A PC: the list on the left, the open row's screen on the right. */
.acct-list > * + *, .acct-page > * + *, .acct-g > * + * { margin-top: 12px; }
.acct:not(.sub) .acct-main { display: none; }
.acct.sub > .title-row, .acct.sub .acct-menu { display: none; }
.acct-rows .navrow .tx { font-size: calc(15px * var(--fz)); font-weight: 700; }
.acct-rows .navrow .d { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-rows .navrow .grow { min-width: 0; }
.acct-ph { display: flex; align-items: center; gap: 4px; padding: 6px 0 2px; }
.acct-pt { font-size: calc(22px * var(--fz)); font-weight: 900; }
.acct-card > .muted, .navrow > .muted { font-size: calc(18px * var(--fz)); }
.acct-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left; color: var(--tx); }
.acct-card:hover { background: var(--sf2); }
.acct-av { width: 46px; height: 46px; flex: none; border-radius: 50%; background: linear-gradient(#5BE3BF, #2FB592); color: #06231B; font-weight: 900; font-size: calc(19px * var(--fz)); display: flex; align-items: center; justify-content: center; }
.acct-who { display: flex; flex-direction: column; min-width: 0; }
.acct-who .n { font-size: calc(16px * var(--fz)); font-weight: 700; }
.acct-who .s { font-size: calc(13px * var(--fz)); color: var(--tx2); margin-top: 1px; }
.acct-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
/* a chip may take two lines on the narrowest phones (280 px) rather than stick out of the card */
.acct-chip { font-size: calc(12px * var(--fz)); font-weight: 700; line-height: 20px; padding: 0 9px; border-radius: 11px; background: var(--accd); color: var(--acc); max-width: 100%; }
.acct-chip.off { background: #22262C; color: var(--tx2); }
.acct-g { margin-top: 22px; }
.acct-list { padding-top: 12px; }
.acct-gt { display: flex; align-items: center; gap: 8px; font-size: calc(18px * var(--fz)); font-weight: 800; margin: 0 2px; }
.acct-gt::before { content: ""; width: 4px; height: 18px; flex: none; border-radius: 2px; background: var(--acc); }
.acct-gt.sub { font-size: calc(16px * var(--fz)); margin-top: 22px; }
.acct-gt.sub::before { height: 16px; }
.sec-title.withic { display: flex; align-items: center; gap: 10px; }
.sec-ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(62, 207, 170, .15); color: var(--acc); }
.sec-ic.amber { background: rgba(245, 177, 76, .16); color: #F5B14C; }
.sec-ic.blue { background: rgba(91, 141, 239, .16); color: #5B8DEF; }
.sec-ic.purple { background: rgba(155, 123, 240, .16); color: #9B7BF0; }
.sec-ic.gray { background: rgba(255, 255, 255, .07); color: var(--tx2); }
.navrow .sec-ic { width: 30px; height: 30px; }
/* the amber card: 이벤트·혜택 알림 받기 */
.promo-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 44px 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 177, 76, .16), rgba(240, 97, 109, .10)); border: 1px solid rgba(245, 177, 76, .45); }
.promo-card .n { font-size: calc(16px * var(--fz)); font-weight: 800; }
.promo-card .s { font-size: calc(13px * var(--fz)); color: #E7D9C2; margin-top: 3px; }
.promo-card .go { flex: none; background: #F5B14C; color: #2A1A00; font-weight: 800; font-size: calc(14px * var(--fz)); border-radius: 10px; padding: 9px 16px; }
.promo-card .go:hover { background: #F8C06A; }
.promo-card .x { position: absolute; top: 4px; right: 4px; }
/* 글꼴 · 글자 크기: one choice of a few */
.radio-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px 12px 18px; text-align: left; border-top: 1px solid var(--ln); color: var(--tx); }
.radio-row:first-child { border-top: 0; }
.radio-row:hover { background: var(--sf2); }
.radio-row .k { font-size: calc(15px * var(--fz)); font-weight: 700; }
.radio-row .ex { font-size: calc(13.5px * var(--fz)); color: var(--tx2); margin-top: 2px; }
.radio-row .ex.ex-norm { font-size: 13.5px; } .radio-row .ex.ex-big { font-size: 15.5px; }
/* a font's sample line as a picture (public/web/fonts/sample-N.webp, 13.5 px text drawn at twice the size): its own height, narrower on the smallest phones */
.radio-row .ex-pic { display: block; height: 22px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; margin-top: 1px; }
.radio-row .d { font-size: calc(12px * var(--fz)); color: var(--tx3); margin-top: 1px; }
.radio-row .mark { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--ln2); display: flex; align-items: center; justify-content: center; }
.radio-row[aria-checked="true"] .mark { border-color: var(--acc); }
.radio-row[aria-checked="true"] .mark::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--acc); }
.radio-list { border-top: 1px solid var(--ln); }
@media (min-width: 640px) and (min-height: 600px) {
  .cols.one { grid-template-columns: minmax(0, 1040px); }
  .acct-cols { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 14px; }
  .acct-list { padding-top: 0; }
  .acct:not(.sub) .acct-main, .acct.sub .acct-menu { display: block; }
  .acct.sub > .title-row { display: flex; }
  .acct-back { display: none; }
  .acct-ph { padding: 2px 2px 0; }
  .acct-rows .navrow[aria-current="true"], .acct-card[aria-current="true"] { background: var(--accd); }
  .acct-rows .navrow[aria-current="true"] .tx { color: var(--acc); }
}
/* 시간이 없는 회원 (CEO 2026-11-26 17:18 KST): the screen as with time, blurred under a see-through cover (app.js covered; Covered.kt) */
.covered { position: relative; }
.cover-under { filter: blur(5px); opacity: .9; pointer-events: none; user-select: none; }
.cover { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding: 28px 16px 0; background: rgba(10, 11, 13, .22); border-radius: var(--r); }
.covered.short .cover { align-items: center; padding-top: 0; }
.cover-card { width: 100%; max-width: 360px; background: rgba(18, 19, 22, .94); border: 1px solid rgba(240, 97, 109, .35); border-radius: 14px; padding: 16px 18px; text-align: center; }
.cover-t { color: var(--up); font-size: calc(15px * var(--fz)); font-weight: 700; }
.cover-w { color: var(--tx2); font-size: calc(13px * var(--fz)); margin-top: 6px; line-height: 1.5; }
.cover-card .adwatch .btn { width: 100%; }

/* ---------- 호가 card under the chart (CEO 2026-11-27 18:23 KST; the 시안 taken: 2D 석기시대 전쟁터 · 일반). Left: 매도 (blue), right: 매수 (red). ---------- */
.hoga .head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px 14px; font-size: calc(12px * var(--fz)); color: var(--tx3); }
.hoga .head .t { color: var(--tx); font-weight: 700; font-size: calc(14px * var(--fz)); }
.hoga .hg-sw { display: inline-flex; background: var(--sf2); border: 1px solid var(--ln2); border-radius: 99px; padding: 2px; }
.hoga .hg-sw button { font: inherit; font-size: calc(11.5px * var(--fz)); color: var(--tx3); background: none; border: 0; border-radius: 99px; padding: 2px 10px; cursor: pointer; min-height: 24px; }
.hoga .hg-sw button[aria-pressed="true"] { color: #1a1306; background: #f5b942; font-weight: 700; }
.hoga .hg-fresh { font-size: calc(11px * var(--fz)); color: var(--tx3); white-space: nowrap; }
.hoga .hg-fresh b { color: #38d39f; font-weight: 500; }

.hoga .hg-fold { font: inherit; font-size: calc(12px * var(--fz)); color: var(--tx3); background: none; border: 0; cursor: pointer; padding: 2px 4px; }
.hoga [hidden] { display: none !important; }
.hoga .hg-wait { margin: 0 14px 6px; color: var(--tx3); }
.hoga .hg-war { display: block; width: 100%; height: 346px; }
@media (max-width: 559.98px) { .hoga .hg-war { height: 282px; } }
/* the halt's countdown over the field (CEO 2026-11-28 00:17 KST 「유튜브 OBS 킷 남은시간처럼」); a narrow card puts it in one strip at the bottom */
.hoga .hg-stage { position: relative; }
.hoga .hg-kit { position: absolute; top: 58px; right: 8px; background: rgba(12,10,6,.88); border: 2px solid #f5b942; border-radius: 14px; padding: 6px 12px 8px; min-width: 140px; display: flex; flex-direction: column; gap: 2px; color: #fff; pointer-events: none; }
.hoga .hg-kit .kt { font-size: calc(12px * var(--fz)); font-weight: 900; color: #f5b942; }
.hoga .hg-kit .big { font-family: ui-monospace, Consolas, monospace; font-size: calc(30px * var(--fz)); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hoga .hg-kit .sub { font-size: calc(11.5px * var(--fz)); color: #D9CFB8; font-variant-numeric: tabular-nums; }
.hoga .hg-kit .ext { align-self: flex-start; font-size: calc(11px * var(--fz)); font-weight: 900; color: #1A1200; background: #FF9F43; border-radius: 6px; padding: 0 6px; }
.hoga .hg-stage.small .hg-kit { left: 8px; right: 8px; top: auto; bottom: 1px; min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 0; padding: 3px 10px; border-width: 1.5px; border-radius: 10px; }
.hoga .hg-stage.small .hg-kit .big { font-size: calc(19px * var(--fz)); } .hoga .hg-stage.small .hg-kit .sub.a { display: none; }
/* 전황 기록 under the 2D field (the 시안, CEO 2026-11-27 21:17 KST) */
.hoga .hg-feed { list-style: none; margin: 0; padding: 6px 12px 9px; display: grid; gap: 2px; border-top: 1px solid var(--ln2); font-size: calc(13px * var(--fz)); min-height: 101px; }
/* the 전황 기록 keeps its full height (four lines, three on a narrow card) from the start and each line stays one line, so what is under
   the card never moves when a line comes (the page moved under a member's pointer and reading eye as lines came in) */
.hoga .hg-feed.small { min-height: 79px; }
.hoga .hg-feed li { display: flex; gap: 8px; align-items: baseline; line-height: 20px; height: 20px; white-space: nowrap; overflow: hidden; color: var(--tx2); font-variant-numeric: tabular-nums; animation: hgin .5s ease; }
.hoga .hg-feed li > span:nth-of-type(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hoga .hg-feed li.hint { color: var(--tx3); white-space: normal; height: auto; }
.hoga .hg-feed time { font-family: ui-monospace, Consolas, monospace; color: var(--tx3); font-size: calc(12.5px * var(--fz)); }
.hoga .hg-feed .b { color: #ff8e98; } .hoga .hg-feed .s { color: #8fb6ff; } .hoga .hg-feed .w, .hoga .hg-feed .k { color: #f5b942; } .hoga .hg-feed .m { color: #3ECFAA; }
.hoga .hg-feed .amt { margin-left: auto; color: var(--tx); }
@keyframes hgin { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

.hoga .meter { flex: 1; min-width: 24px; height: 6px; border-radius: 99px; background: var(--up); overflow: hidden; }
.hoga .meter i { display: block; height: 100%; background: var(--dn); transform-origin: left center; transform: scaleX(.5); transition: transform 1.2s ease; will-change: transform; }
/* 일반: tug bar, mirrored 5-row ladder (sells left, buys right), sparks, the minute's split */
.hoga .pv { display: grid; gap: 10px; padding: 4px 12px 12px; }
.hoga .sides { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: calc(13.5px * var(--fz)); }
.hoga .sides .s { color: #8fb6ff; } .hoga .sides .b { color: #ff8e98; }
.hoga .sides strong { font-size: calc(17px * var(--fz)); font-weight: 700; margin-left: 4px; }
.hoga .spread { font-size: calc(12.5px * var(--fz)); color: var(--tx3); }
/* the price now, the last trade's (CEO 2026-11-27 22:48 KST 「일반호가도 마찬가지고」), over the gap; red a moment when it went up, blue when down */
.hoga .pmid { display: grid; justify-items: center; gap: 1px; }
.hoga .pnow { font-size: calc(15px * var(--fz)); font-weight: 800; color: var(--tx); transition: color .25s ease; }
.hoga .pnow.up { color: #ff8e98; } .hoga .pnow.dn { color: #8fb6ff; }
.hoga .tugwrap { position: relative; padding: 5px 0; overflow: hidden; }
.hoga .tug { position: relative; height: 14px; border-radius: 99px; background: var(--up); overflow: hidden; }
.hoga .tug i { position: absolute; inset: 0; background: linear-gradient(90deg, #2c5fc0, var(--dn)); transform-origin: left center; transform: scaleX(.5); transition: transform .32s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.hoga .frontw { position: absolute; inset: 0; transform: translateX(50%); transition: transform .32s cubic-bezier(.2,.8,.2,1); will-change: transform; pointer-events: none; }
.hoga .frontw b { position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; border-radius: 3px; background: #fff; box-shadow: 0 0 10px 2px rgba(255,255,255,.55); }
.hoga .verdict { text-align: center; font-size: calc(13px * var(--fz)); font-weight: 700; min-height: 1.4em; }
.hoga .verdict.b { color: #ff8e98; } .hoga .verdict.s { color: #8fb6ff; } .hoga .verdict.e { color: var(--tx2); }
/* the scene's line under the verdict (MR.warPlainLine; order 414) */
.hoga .scene-line { text-align: center; color: var(--tx2); font-weight: 600; margin: 2px 0 4px; }
.hoga .lad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 6px; position: relative; }
.hoga .col { display: grid; gap: 3px; align-content: start; }
.hoga .colh { font-size: calc(12px * var(--fz)); color: var(--tx3); display: flex; justify-content: space-between; padding: 0 6px 2px; }
.hoga .row { position: relative; height: 27px; display: flex; align-items: center; justify-content: space-between; font-size: calc(13.5px * var(--fz)); border-radius: 6px; overflow: hidden; }
.hoga .row .lv { position: absolute; top: 0; bottom: 0; width: 100%; box-sizing: border-box; transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.hoga .col.s .row .lv { right: 0; transform-origin: right center; background: var(--dnd); border-right: 2px solid rgba(91,147,238,.6); }
.hoga .col.b .row .lv { left: 0; transform-origin: left center; background: var(--upd); border-left: 2px solid rgba(240,97,109,.6); }

.hoga .row .fx { position: absolute; inset: 0; background: rgba(255,255,255,.2); opacity: 0; pointer-events: none; }
.hoga .row .q, .hoga .row .p { position: relative; z-index: 1; white-space: nowrap; }
.hoga .col.s .row { padding: 0 8px 0 6px; } .hoga .col.b .row { padding: 0 6px 0 8px; }
.hoga .col.s .row .p { color: #8fb6ff; font-weight: 700; } .hoga .col.b .row .p { color: #ff8e98; font-weight: 700; }
.hoga .row .q { color: var(--tx); }
.hoga .spark { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; pointer-events: none; z-index: 3; opacity: 0; will-change: transform, opacity; }
.hoga .spark.b { background: var(--up); box-shadow: 0 0 8px 2px rgba(240,97,109,.7); }
.hoga .spark.s { background: var(--dn); box-shadow: 0 0 8px 2px rgba(91,147,238,.7); }
.hoga .hg-flow { display: grid; gap: 6px; }
.hoga .flowh { display: flex; justify-content: space-between; font-size: calc(13.5px * var(--fz)); color: var(--tx3); }
.hoga .flowh b { font-weight: 700; } .hoga .flowh .s { color: #8fb6ff; } .hoga .flowh .b { color: #ff8e98; }
.hoga .flowbar { height: 6px; border-radius: 99px; background: var(--up); position: relative; overflow: hidden; }
.hoga .flowbar i { position: absolute; inset: 0; background: var(--dn); transform-origin: left center; transform: scaleX(.5); transition: transform .4s ease; will-change: transform; }
.hoga .pnote { font-size: calc(11px * var(--fz)); color: var(--tx3); line-height: 1.5; margin: 0; }
.hoga.folded .lad, .hoga.folded .hg-flow, .hoga.folded .pnote { display: none; }
/* 휴전 (CEO 2026-11-28 09:08 KST): while the market is shut 일반 shows two friendly lines instead of an empty ladder (MR.restPlain) */
.hoga .hg-rest:not([hidden]) { display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 14px; background: var(--sf2); border: 1px solid var(--ln2); }
.hoga .hg-rest .moon { flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset -7px -3px 0 0 #f5d27a; transform: rotate(-20deg); }
.hoga .hg-rest .tx { display: grid; gap: 3px; min-width: 0; }
.hoga .hg-rest .hd { color: var(--tx); font-size: calc(14.5px * var(--fz)); font-weight: 700; }
.hoga .hg-rest .sub { color: var(--tx3); font-size: calc(12.5px * var(--fz)); }
.hoga.resting .pv > :not(.hg-rest), .hoga.resting .hg-fold { display: none; }
/* a halt (US 킷, Korean VI: order 412) over the plain book: amber, the time left beside it */
.hoga .hg-halt:not([hidden]) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(245, 166, 35, .14); border: 1px solid rgba(245, 166, 35, .45); }
.hoga .hg-halt .hd { color: var(--tx); font-size: calc(14px * var(--fz)); font-weight: 800; }
.hoga .hg-halt .sub { color: var(--tx2); font-size: calc(12.5px * var(--fz)); }
/* which way it stopped (order 426): 상킷 / 상승 VI red, 하킷 / 하락 VI blue; the expected price on a line of its own, and its row in the book */
.hoga .hg-halt.up:not([hidden]) { background: var(--upd); border-color: color-mix(in srgb, var(--up) 45%, transparent); } .hoga .hg-halt.up .hd { color: var(--up); }
.hoga .hg-halt.dn:not([hidden]) { background: var(--dnd); border-color: color-mix(in srgb, var(--dn) 45%, transparent); } .hoga .hg-halt.dn .hd { color: var(--dn); }
.hoga .hg-halt .xp { flex-basis: 100%; color: var(--tx); font-size: calc(15px * var(--fz)); font-weight: 800; }
.hoga .hg-halt .xp[hidden], .hoga .hg-halt .sub[hidden] { display: none; }
.hoga .lad .row.xp { outline: 2px solid #f5b942; outline-offset: -2px; border-radius: 4px; }
.hoga .lad .row.xp .p::after { content: ' 예상'; font-size: calc(10.5px * var(--fz)); font-weight: 800; color: #c98a10; }
.hoga .hg-kit.up { border-color: #F0616D; } .hoga .hg-kit.up .kt { color: #FF8A94; }
.hoga .hg-kit.dn { border-color: #5B93EE; } .hoga .hg-kit.dn .kt { color: #8DB6F5; }
.hoga .hg-kit .xp { font-size: calc(13px * var(--fz)); font-weight: 800; color: #FFE08A; font-variant-numeric: tabular-nums; }
.hoga .hg-kit .xp[hidden], .hoga .hg-kit .sub[hidden] { display: none; }
@media (max-width: 380px) { .hoga .head { flex-wrap: wrap; row-gap: 4px; } .hoga .row { font-size: calc(12.5px * var(--fz)); } }
@media (prefers-reduced-motion: reduce) { .hoga .tug i, .hoga .frontw, .hoga .row .lv, .hoga .flowbar i, .hoga .meter i { transition: none; } .hoga .spark { display: none; } .hoga .hg-feed li { animation: none; } }
/* 메모 한 줄 (CEO 2026-11-27 22:39 KST; 23:25 KST the A안): at the foot of an alert's card, the newest memo, cut with …; pencil and bin */
.memo-line { display: flex; align-items: center; gap: 2px; margin: 0 12px 10px; padding-top: 7px; border-top: 1px dashed var(--ln2); min-width: 0; }
.memo-line .ml-t { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: calc(13.5px * var(--fz)); color: var(--tx); padding: 4px 2px; }
.memo-line .ml-t b { color: var(--acc); font-weight: 800; }
.memo-line .iconbtn { flex: none; width: 32px; height: 32px; color: var(--tx2); }
.memo-line .iconbtn:first-of-type { color: var(--acc); }
.memo-line .iconbtn .ic { width: 17px; height: 17px; }

/* 어려운 단어 말풍선 (CEO 2026-11-27 22:39 KST 「주린이용 말풍선」; 23:25 KST the A안): a mint dotted line under the word, the bubble under it */
.gloss { display: inline; padding: 0; margin: 0; font: inherit; color: inherit; cursor: help; text-decoration: underline dotted var(--acc); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gloss:hover { color: var(--acc); }
.gloss-tip { position: fixed; z-index: 95; background: var(--sf3); color: var(--tx); border: 1px solid var(--acc); border-radius: 12px; padding: 11px 13px; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 5px; }
.gloss-tip .gt-t { font-size: calc(14px * var(--fz)); font-weight: 800; color: var(--acc); }
.gloss-tip .gt-s { font-size: calc(13.5px * var(--fz)); line-height: 1.6; }

/* 라이트 (설정 「화면 밝기」, CEO 2026-11-27 22:39 KST 「다크/라이트 모드(기본 다크)」; 23:18 KST 「라이트모드 가시성좀 있게」): near-black
   words, colours a step darker so they read on white, white cards on a light gray page with a line and a soft shadow. The 2D 호가 field
   is a picture of its own and stays as it is. */
html.light {
  --bg: #E9ECF0; --nav: #F6F7F9; --sf: #FFFFFF; --sf2: #EEF0F3; --sf3: #D9DDE4;
  --ln: rgba(15, 23, 42, .10); --ln2: rgba(15, 23, 42, .17);
  --tx: #0B0D10; --tx2: #30343B; --tx3: #555A63;
  --acc: #0A7F63; --accd: rgba(10, 127, 99, .12); --pri1: #0F9474; --pri2: #0A7F63; --prit: #FFFFFF;
  --up: #C81E2F; --upd: rgba(200, 30, 47, .10); --dn: #1C58C7; --dnd: rgba(28, 88, 199, .10); --ok: #2E7D5B;
  --hl: #7A5C00; --hld: rgba(201, 160, 0, .16); --tag: rgba(15, 23, 42, .06); --knob: #FFFFFF;
  --prog: #A34A06; --progd: rgba(163, 74, 6, .12); --first: #5B3FCC; --firstd: rgba(91, 63, 204, .11);
  --fil: #0A6F93; --fild: rgba(10, 111, 147, .11); --news: #30343B; --newsd: rgba(15, 23, 42, .07);
  --m1: #8A6500; --m1d: rgba(201, 160, 0, .16); --m2: #4B5563; --m2d: rgba(75, 85, 99, .12); --m3: #9A4A1E; --m3d: rgba(154, 74, 30, .12);
  --fv: #B45309; --fv2: #EA7A0C; --fvbg: #FFF1E0; --fvbg2: #FFFFFF; --fvtx: #6B3A0A; --fvdim: #9C7A5A; --fvt: #FFFFFF; --fvglow: rgba(234, 122, 12, .55);
  color-scheme: light;
}
html.light .panel, html.light .alert-item, html.light .newscard, html.light .askcard { box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .05); }
html.light { scrollbar-color: #B8BEC8 transparent; }
html.light ::-webkit-scrollbar-thumb { background: #B8BEC8; }
html.light .aline:hover { background: rgba(15, 23, 42, .035); }
html.light .stepopt { background: rgba(255, 255, 255, .92); }
html.light .stepopt:hover, html.light .stepopt.on { background: rgba(15, 23, 42, .07); }
html.light b.em { color: var(--tx); background: linear-gradient(transparent 62%, rgba(10, 127, 99, .22) 0); }
html.light .warn, html.light .tag.warn { color: #9A5B00; }
html.light .acct-chip.off { background: #E3E6EB; }
html.light .sec-ic.amber { color: #A8620A; } html.light .sec-ic.blue { color: #1C58C7; } html.light .sec-ic.purple { color: #5B3FCC; }
html.light .promo-card .s { color: #5A4320; }
html.light .gloss-tip { background: #FFFFFF; box-shadow: 0 10px 28px rgba(15, 23, 42, .18); }
/* the 일반 호가: red and blue a step darker on white */
html.light .hoga .hg-feed .b, html.light .hoga .sides .b, html.light .hoga .pnow.up, html.light .hoga .verdict.b, html.light .hoga .col.b .row .p, html.light .hoga .flowh .b { color: #C81E2F; }
html.light .hoga .hg-feed .s, html.light .hoga .sides .s, html.light .hoga .pnow.dn, html.light .hoga .verdict.s, html.light .hoga .col.s .row .p, html.light .hoga .flowh .s { color: #1C58C7; }
html.light .hoga .hg-feed .w, html.light .hoga .hg-feed .k { color: #9A5B00; } html.light .hoga .hg-feed .m { color: #0A7F63; } html.light .hoga .hg-fresh b { color: #0A7F63; }
html.light .hoga .row .fx { background: rgba(15, 23, 42, .12); }
/* the bars and cards that had a dark see-through ground of their own (found on the real screen, 2026-11-28 00:20 KST: the top bar stayed dark) */
html.light .topbar { background: rgba(246, 247, 249, .94); }
html.light .stepmenu { background: rgba(255, 255, 255, .92); box-shadow: 0 12px 32px rgba(15, 23, 42, .18); }
html.light .way:disabled { background: rgba(238, 240, 243, .7); }
html.light .cover { background: rgba(233, 236, 240, .3); }
html.light .cover-card { background: rgba(255, 255, 255, .96); }
/* the chart's 「처음 화면」 chip had its dark ground in light mode, the words on it unreadable (CEO 2026-11-28 03:33 KST, the picture) */
html.light .chartreset { background: rgba(255, 255, 255, .96); color: var(--tx2); }
/* 주말 피버타임 A안 (CEO 2026-11-28 22:11 KST): while it runs the time card is flame coloured with a soft glow on its edge, and over its ad
   button says what one ad pays now against before (1시간 → 2시간). In the card's own box, nothing around it moves; never with ad removal. */
.timecard.fever:not(.ended) { background: linear-gradient(160deg, var(--fvbg) 0%, var(--fvbg2) 60%, var(--sf) 100%); border-color: var(--fvglow); animation: fvglow 2.4s ease-in-out infinite; }
@keyframes fvglow { 0%, 100% { box-shadow: 0 0 0 1px var(--fvglow), 0 0 14px rgba(255, 120, 40, .16); } 50% { box-shadow: 0 0 0 1px var(--fv), 0 0 22px rgba(255, 120, 40, .32); } }
@media (prefers-reduced-motion: reduce) { .timecard.fever:not(.ended) { animation: none; box-shadow: 0 0 0 1px var(--fvglow); } }
.timecard.fever:not(.ended) .tc-label .ic, .timecard.fever:not(.ended) .left .sec .num { color: var(--fv); }
.timecard.fever:not(.ended) .tc-flow i { background: linear-gradient(90deg, rgba(255, 138, 28, .35), var(--fv)); }
.fever-box { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(160deg, var(--fvbg) 0%, var(--fvbg2) 100%); border: 1px solid var(--fvglow); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fever-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--fv); font-size: calc(13.5px * var(--fz)); }
.fever-head b { font-weight: 800; }
.fever-head .fever-until { margin-left: auto; font-size: calc(12px * var(--fz)); color: var(--fvtx); white-space: nowrap; }
.fever-big { color: var(--fvtx); font-size: calc(14px * var(--fz)); }
.fever-big b { color: var(--fv); font-size: calc(30px * var(--fz)); font-weight: 900; line-height: 1; margin: 0 2px; }
.fever-was { display: flex; align-items: center; gap: 6px; font-size: calc(13px * var(--fz)); color: var(--fvtx); }
.fever-was s { color: var(--fvdim); }
.fever-was b { color: var(--fv); font-weight: 800; }
.fever-arrow { color: var(--fv); }
.btn.primary.fever-btn { background: linear-gradient(90deg, var(--fv2), var(--fv)); color: var(--fvt); }
/* 뉴스·공시 한 칸 (CEO 2026-11-28 22:11 KST, A안 + C안 as the pictures): A안's head and 뉴스 | 공시 tabs, C안's line under each tab, and the
   list by day on a rail with a dot each (mint near the alert); three first, 더보기 for the rest. Kept in its panel at every width. */
.nfpanel { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nfpanel .nf-head { display: flex; align-items: center; gap: 8px; }
.nfpanel .nf-head .ic { color: var(--news); }
.nfpanel .nf-head .sec-title { margin: 0; padding: 0; }
/* 만두봇 분석 of a stock without its alert's: its head as the alert's own (14px above, 10px below) — it sat on the card's top line
   (CEO 2026-12-03 02:39 KST 「만두봇 분석 위에 카드랑 붙어있는데?」) */
.stock-note > .nf-head { display: flex; align-items: baseline; gap: 8px; padding: 14px 18px 10px; }
.stock-note > .nf-head .sec-title { margin: 0; padding: 0; }
.nf-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--sf2); }
.nf-tab { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 6px; border-radius: 9px; color: var(--tx2); min-width: 0; }
.nf-tab .nf-tab-n { font-size: calc(14px * var(--fz)); }
.nf-tab .nf-tab-n b { font-weight: 700; }
.nf-tab .nf-tab-sub { color: var(--tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: calc(11.5px * var(--fz)); }
.nf-tab.on { background: var(--sf3); color: var(--tx); }
.nf-tab.on .nf-tab-n { font-weight: 700; }
.nf-tab.on .nf-tab-n b, .nf-tab.on .nf-tab-sub:not(.muted) { color: var(--acc); }
.nf-list { display: flex; flex-direction: column; min-width: 0; }
.nf-day { font-weight: 700; color: var(--tx2); padding: 8px 0 4px; }
.nf-day.accent { color: var(--acc); }
.nf-item { display: flex; gap: 10px; text-align: left; width: 100%; min-width: 0; padding: 2px 0 8px; border-radius: 10px; }
.nf-item.link:hover .nf-title { color: var(--acc); }
.nf-item.link:focus-visible { outline-offset: 0; }
.nf-rail { flex: none; width: 12px; display: flex; flex-direction: column; align-items: center; }
.nf-rail i { width: 9px; height: 9px; border-radius: 50%; background: var(--tx3); margin-top: 5px; }
.nf-rail i.on { background: var(--acc); box-shadow: 0 0 0 3px var(--accd); }
.nf-rail::after { content: ""; flex: 1; width: 2px; background: var(--sf3); margin-top: 4px; border-radius: 2px; }
.nf-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nf-when { display: flex; align-items: center; gap: 6px; }
.nf-chip { white-space: nowrap; flex: none; font-size: calc(11px * var(--fz)); font-weight: 700; line-height: 18px; padding: 0 7px; border-radius: 99px; background: var(--acc); color: var(--prit); }
.nf-title { font-size: calc(14px * var(--fz)); line-height: 1.45; }
.nf-sub { line-height: 1.5; }
.nf-item.filing .dilrow { border: 0; padding: 0; margin: 0; }
.nf-none { padding: 6px 0; }
.nf-more { width: 100%; height: 40px; }
.nf-about { line-height: 1.5; }
/* ATM·오퍼링 진행 중 (CEO 2026-11-30 23:11 KST): above the tabs, the filings' own words */
.nf-deal { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--sf2); line-height: 1.5; }
.nf-deal-sum { margin: 0; color: var(--tx); }
/* 설정 list as a broker app's (CEO 2026-11-29 01:04 KST 「설정쪽 메뉴 깔끔하고 시안성좋고 … AI 티안나게」): small grey group names, plain
   rows of one line (a plain icon, the name, what is set now in grey at the right, ›) */
.acct-list .acct-g { margin-top: 20px; }
.acct-list .acct-g > * + * { margin-top: 8px; }
.acct-list .acct-gt { font-size: calc(13px * var(--fz)); font-weight: 600; color: var(--tx3); margin: 0 6px; letter-spacing: .02em; }
.acct-list .acct-gt::before { content: none; }
.navrow.mrow { gap: 12px; min-height: 54px; padding: 0 16px; }
.navrow.mrow .tx { font-size: calc(15px * var(--fz)); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navrow.mrow .sec-ic { width: 22px; height: 22px; background: none; color: var(--tx2); border-radius: 0; }
.navrow.mrow .mv { flex: none; display: inline-flex; align-items: center; gap: 12px; max-width: 100%; min-width: 0; margin-left: auto; }
.navrow.mrow .val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13.5px * var(--fz)); color: var(--tx3); }
.navrow.mrow .chev { font-size: calc(18px * var(--fz)); margin-left: -4px; }
/* a row whose name and value do not fit side by side (a narrow phone) puts the value on a line of its own, never cut with …
   (seen in the trading day at 280~360: 내 이용권·쿠폰 with 11시간 59분 52초, 메일로 문의하기, 알림 받는 시간; 0.6.65 review 2026-11-30) */
.navrow.mrow { flex-wrap: wrap; row-gap: 0; padding-top: 8px; padding-bottom: 8px; }
.acct-rows .navrow.mrow[aria-current="true"] .sec-ic { color: var(--acc); }
/* 새 기능 (CEO 2026-11-29 18:38 KST 「새기능은 좋다 적절하게 배치 잘하고 잘넣어」) */
/* 같이 보는 사람 수: quiet words with a small live dot, no box */
.tag.watch { position: relative; background: none; color: var(--tx2); padding: 0 2px 0 12px; }
.tag.watch::before { content: ''; position: absolute; left: 2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 2px rgba(62, 207, 170, .22); }
.tag.watch[hidden] { display: none; }
.al-nl .tag.watch.al-watch { flex: none; font-size: calc(10.5px * var(--fz)); line-height: 1.3; margin-left: 4px; white-space: nowrap; }
/* 공유 카드: the picture fills the card's width */
.share-card .share-img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 12px; border: 1px solid var(--ln2); background: #0A0B0D; }
/* 공유하기 (CEO 2026-11-30 01:29 KST): a title with ✕, the picture, round buttons under it; from the bottom on a phone */
.share-top { display: flex; align-items: center; justify-content: space-between; }
.share-top .askcard-title { margin: 0; }
/* (each button one width, so the round icons stand evenly apart whatever their words: 이미지 복사 is longer than 글 복사 was) */
.share-acts { display: flex; justify-content: space-evenly; gap: 8px; margin-top: 8px; }
.share-act { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 0 0 86px; min-width: 0; white-space: nowrap; padding: 4px 6px; background: none; border: 0; color: var(--tx2); font: inherit; font-size: calc(12.5px * var(--fz)); font-weight: 500; text-decoration: none; cursor: pointer; border-radius: 12px; }
.share-ic { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sf2); color: var(--tx); }
.share-ic svg { width: 24px; height: 24px; }
/* (lead, not main: .main is the page's own frame, which gave 공유 its margins) */
.share-act.lead .share-ic { background: var(--acc); color: var(--bg); }
.share-act:hover .share-ic { filter: brightness(1.08); }
/* 관리자 이미지 저장 (the CEO's account only) */
.share-admin { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ln2); background: var(--sf2); color: var(--tx); font: inherit; font-weight: 700; cursor: pointer; }
.share-admin svg { width: 18px; height: 18px; }
.share-admin:hover { filter: brightness(1.06); }
@media (max-width: 640px) {
  .share-back { align-items: flex-end; padding: 0; }
  .share-back .share-card { max-width: none; border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .share-back .share-img { max-height: calc(100dvh - 260px); width: auto; max-width: 100%; margin: 0 auto; }
}

/* 알림 카드 칩 요약 창 (CEO 2026-12-02 00:23 KST, 00:53 KST 「알림카드 그대로 진행」; the 시안 mockups/chips_20261202): the mark a press opens,
   the page dimmed under the small card, the mark ringed; the card under the mark with its arrow at it (over it: .up; neither: .free) */
.cp-chip { cursor: pointer; }
@media (hover: hover) { .cp-chip:hover { filter: brightness(1.18); } }
.cp-dim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .5); }
html.light .cp-dim { background: rgba(15, 23, 42, .22); }
.tag.cp-on { position: relative; z-index: 71; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px currentColor; }
.cpop { position: fixed; z-index: 72; width: min(340px, calc(100vw - 24px));
  background: var(--sf); color: var(--tx); border: 1px solid var(--ln2); border-radius: 16px; box-shadow: 0 18px 48px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .25);
  padding: 14px 14px 10px; font-size: calc(13.5px * var(--fz)); line-height: 1.55; text-align: left; }
html.light .cpop { box-shadow: 0 18px 44px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .08); }
.cpop::before { content: ''; position: absolute; top: -7px; left: var(--ax, 40px); width: 12px; height: 12px; background: var(--sf); border-left: 1px solid var(--ln2); border-top: 1px solid var(--ln2); transform: rotate(45deg); }
.cpop.up::before { top: auto; bottom: -7px; transform: rotate(225deg); }
.cpop.free::before { display: none; }
.cp-in { max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
/* a chip's foot button opens the alert's page at 뉴스·공시 or 큰 체결 기록: clear of the top bar */
.panel.nfpanel, .panel.bigrec { scroll-margin-top: 76px; }
.cp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cp-head .tag { font-weight: 700; font-size: calc(12px * var(--fz)); flex: none; }
.cp-sym { color: var(--tx3); font-size: calc(12.5px * var(--fz)); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-x { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--tx2); background: var(--sf2); border: 0; cursor: pointer; padding: 0; }
.cp-x .ic { width: 15px; height: 15px; }
.cp-sum { margin: 0; color: var(--tx); }
.cp-sum.soft { color: var(--tx2); }
.cp-sum b, .cp-li .d b, .cp-easy b.em { color: var(--acc); font-weight: 700; }
.cp-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 2px 0 8px; }
.cp-big b { font-size: calc(26px * var(--fz)); font-weight: 800; letter-spacing: -.02em; color: var(--tx); }
.cp-big span { color: var(--tx2); font-size: calc(13px * var(--fz)); }
.cp-li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 2px; padding: 9px 0; border-top: 1px solid var(--ln); }
.cp-head + .cp-li { border-top: 0; padding-top: 2px; }
.cp-li .k { font-weight: 700; font-size: calc(13px * var(--fz)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-li .k.wrap { white-space: normal; overflow: visible; }
.cp-li .t { color: var(--tx3); font-size: calc(12px * var(--fz)); text-align: right; white-space: nowrap; }
.cp-li .d { grid-column: 1 / -1; color: var(--tx2); font-size: calc(12.5px * var(--fz)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-li .d.one { -webkit-line-clamp: 3; }
.cp-easy { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--sf2); color: var(--tx2); font-size: calc(12.5px * var(--fz)); }
.cp-easy > b:first-child { color: var(--tx); }
.cp-bars { margin: 6px 0 2px; }
.cp-bar { display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 8px; font-size: calc(12.5px * var(--fz)); color: var(--tx2); padding: 3px 0; }
.cp-bar i { display: block; height: 8px; border-radius: 4px; background: var(--sf3); position: relative; overflow: hidden; }
.cp-bar i s { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--tx3); }
.cp-bar i s.up { background: var(--up); } .cp-bar i s.dn { background: var(--dn); }
.cp-bar b { text-align: right; color: var(--tx); font-weight: 600; }
.cp-kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--ln); font-size: calc(13px * var(--fz)); }
.cp-kv span { color: var(--tx2); } .cp-kv b { font-weight: 600; text-align: right; }
.cp-note { margin: 8px 0 0; color: var(--tx3); font-size: calc(11.5px * var(--fz)); line-height: 1.5; }
.cp-more { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 42px; margin-top: 10px; border-radius: 11px; border: 0;
  background: var(--accd); color: var(--acc); font: inherit; font-weight: 700; font-size: calc(13.5px * var(--fz)); cursor: pointer; }
.cp-more:hover { filter: brightness(1.12); }
.cp-lock { display: flex; gap: 10px; align-items: flex-start; }
.cp-lock .cp-lk { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accd); color: var(--acc); display: grid; place-items: center; }
.cp-lock .cp-lk svg { width: 17px; height: 17px; }
.cp-lock .cp-sum b { color: var(--tx); }
/* ---------- 국장 시험판 (CEO 2026-12-02 08:45 KST 「그 국장 시험판 모든 유저한테 보이게해」; 시안 2판 mockups/kr_test_20261202) ---------- */
/* 모든 종목: a Korean row's name first (cut short with …), its code after it whole */
.sympick .sp-l1.kr .sp-sym { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sympick .sp-l1.kr .sp-nm { flex: none; }
/* a Korean stock's screen: its Korean name where the ticker is, its code a tag that copies it */
.detail .sym.kr-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.detail .tag.code { cursor: pointer; border: 0; font: inherit; font-size: calc(12px * var(--fz)); color: var(--tx2); }
.detail .tag.code:hover { color: var(--tx); }
/* 상한가까지 · 투자자별 매매: cards with the page's own inner gutter (the title's 18px) */
.panel.krroom, .panel.krinv { padding: 0 18px 16px; }
.krroom > .sec-title, .krinv > .sec-title { padding-left: 0; padding-right: 0; }
.krroom .kr-room-big { font-size: calc(18px * var(--fz)); margin: 2px 0 12px; }
.kr-room-bar { position: relative; height: 8px; border-radius: 4px; background: var(--tag); }
.kr-room-bar .fillb { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--dn), var(--up)); opacity: .45; transform-origin: left center; }
.kr-room-bar .now { position: absolute; top: -4px; width: 3px; height: 16px; margin-left: -1.5px; border-radius: 2px; background: var(--tx); }
.kr-room-ends { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.kr-note { margin: 10px 0 0; line-height: 1.5; }
/* 투자자별 매매 (시안 2판 c3_investors · m_investors_360): the newest day's three as bars from a middle line (right 산 쪽 red, left 판 쪽
   blue), the money alone on the right; 「← 판 쪽이 많음 · 산 쪽이 많음 →」 under the bars (a narrow phone: from the bar's left end to the
   row's right end, one line each side); then 「최근 5일 (확정)」 as a table */
.panel.krinv { container-type: inline-size; }
.kr-inv-sub { margin: -6px 0 4px; line-height: 1.45; }
.kr-inv-bars { display: grid; }
.kr-inv-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 74px; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ln); }
.kr-inv-row:last-child { border-bottom: 0; }
.kr-inv-row .who { color: var(--tx2); font-size: calc(14px * var(--fz)); }
.kr-inv-row .kbar { position: relative; height: 10px; border-radius: 5px; background: var(--tag); }
.kr-inv-row .kbar::after { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--tx3); }
.kr-inv-row .kbar i { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; border-radius: 5px; transform-origin: left center; background: var(--tx3); }
.kr-inv-row .kbar i.up { background: var(--up); }
.kr-inv-row .kbar i.dn { left: auto; right: 50%; transform-origin: right center; background: var(--dn); }
.kr-inv-row .v { text-align: right; white-space: nowrap; font-size: calc(14.5px * var(--fz)); }
.kr-inv-row .v.small { font-size: calc(12.5px * var(--fz)); }
.kr-inv-legend { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0 0 58px; font-size: calc(12px * var(--fz)); white-space: nowrap; }
@container (min-width: 320px) { .kr-inv-legend { margin-right: 86px; } }
.kr-inv-past > .sub-title { margin: 16px 0 2px; font-size: calc(14px * var(--fz)); font-weight: 700; color: var(--tx2); }
.kr-inv-tbl .tr { display: grid; grid-template-columns: 44px repeat(3, minmax(0, 1fr)); gap: 6px; padding: 9px 0; border-bottom: 1px solid var(--ln); font-size: calc(13.5px * var(--fz)); }
.kr-inv-tbl .tr:last-child { border-bottom: 0; }
.kr-inv-tbl .tr > span:not(:first-child) { text-align: right; }
.kr-inv-tbl .th { padding: 7px 0; font-size: calc(12.5px * var(--fz)); }
/* the two markets' time (국내 주식 알림 on; 시안 t_morning_390): a chip each, the flag, the session bold, its time plain (a market shut: its
   name grey); on a phone a row of its own under the logo's row, on a wide screen under the title. A press shows the long lines. Never two
   lines: 「남음」 goes first (.sf hidden), then the chips shrink (.tight) */
.mk-col { position: relative; min-width: 0; }
.mk-two { display: flex; gap: 6px; min-width: 0; max-width: 100%; overflow: hidden; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.mk-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--tag); font-size: calc(12.5px * var(--fz)); line-height: 1.35; white-space: nowrap; }
.mk-chip .flag { font-size: calc(14px * var(--fz)); line-height: 1; }
.mk-chip .nm { font-weight: 700; color: var(--tx); }
.mk-chip .t, .mk-chip .sf { color: var(--tx2); }
.mk-chip.shut .nm { color: var(--tx2); }
.mk-two.tight .mk-chip { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar .mk .mk-two .mk-chip { font-size: calc(12px * var(--fz)); padding: 1px 9px 1px 7px; }
.mk-bar { position: relative; max-width: 1240px; margin: -4px auto 0; padding: 0 16px 10px; }
.mk-long { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; display: grid; padding: 4px 14px; border-radius: 12px; background: var(--sf2); border: 1px solid var(--ln2); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); font-size: calc(13.5px * var(--fz)); white-space: nowrap; }
.mk-bar > .mk-long { top: calc(100% - 4px); left: 12px; right: 12px; white-space: normal; }
.mk-long > div { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; padding: 9px 0; }
.mk-long > div + div { border-top: 1px solid var(--ln); }
.mk-long > div > b { font-weight: 700; color: var(--tx); }
.mk-long > div > .num { color: var(--tx2); }
.marketpanel .k .flag { font-size: calc(16px * var(--fz)); }
/* each market a card (order 311): its line and 「설정 ›」 under its name */
.marketpanel .mkline { margin-top: 2px; }
.marketpanel .mkgo { margin-top: 8px; font-size: calc(13px * var(--fz)); padding: 4px 12px; }
/* 가입 축하 보상 (지시 497·499) */
.gift-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 4px 0 2px; }
.gift-tile { background: var(--sf2); border: 1px solid var(--ln); border-radius: 12px; padding: 12px 10px; text-align: center; min-width: 0; }
.gift-tile b { display: block; font-size: calc(22px * var(--fz)); font-weight: 800; color: var(--acc); }
.gift-tile span { display: block; margin-top: 2px; font-size: calc(13px * var(--fz)); color: var(--tx2); }
.gift-card .askcard-line.small b { color: var(--tx); }
/* 친구 초대 달성 보너스 (지시 499) */
.ref-goals { display: flex; flex-direction: column; gap: 8px; }
.ref-goals .track { display: block; position: relative; height: 6px; border-radius: 3px; background: var(--sf3); overflow: hidden; }
.ref-goals .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--acc); }
.ref-goal-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ref-goal { border: 1px solid var(--ln); border-radius: 10px; padding: 8px; text-align: center; min-width: 0; color: var(--tx2); }
.ref-goal b { display: block; font-size: calc(14px * var(--fz)); color: var(--tx); }
.ref-goal.got { border-color: var(--acc); }
.ref-goal span { display: block; }
.ref-goal.got b { color: var(--acc); }/* 출석 체크 (지시 478·496·499) */
.attend-slot.now { background: var(--sf2); border-radius: 10px; }
.attend-slot .row { align-items: center; min-height: 34px; }

/* 내 이용권·쿠폰 (지시 490·474): 지금 내 이용권 · 결제 · 쿠폰 on the left, 받은 내역 · 구매 내역 on the right on a PC; one column on a phone */
.passcols, .passstack { display: grid; gap: 12px; min-width: 0; }
.passcol { min-width: 0; }
@media (min-width: 640px) and (min-height: 600px) { .passcols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.paypanel .pay-item { display: grid; gap: 4px; border-top: 1px solid var(--ln); }
.paypanel .btnrow { display: flex; gap: 8px; margin-top: 6px; }
.paypanel .pay-cancel { color: var(--up); }
.passhist .ph-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 18px 10px; }
.passhist .ph-chip { font: inherit; font-size: calc(12.5px * var(--fz)); line-height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--ln); background: transparent; color: var(--tx2); cursor: pointer; }
.passhist .ph-chip.on { background: var(--accd); border-color: transparent; color: var(--acc); font-weight: 600; }
.passhist .ph-day { padding: 12px 18px 4px; font-size: calc(12px * var(--fz)); color: var(--tx3); }
.passhist .ph-row { padding: 9px 18px; border-top: 1px solid var(--ln); }
.passhist .ph-top { display: flex; gap: 10px; align-items: baseline; }
.passhist .ph-title { flex: 1; min-width: 0; font-size: calc(13.5px * var(--fz)); color: var(--tx); overflow-wrap: anywhere; }
.passhist .ph-amt { flex: none; font-size: calc(13.5px * var(--fz)); font-weight: 600; }
.passhist .ph-amt.plus { color: var(--acc); }
.passhist .ph-amt.minus { color: var(--up); }
.passhist .ph-note { margin-top: 2px; font-size: calc(12px * var(--fz)); color: var(--tx3); }
.passhist .ph-more { width: 100%; }
/* 사람 확인 (Turnstile): its box shows only when Cloudflare wants a press, at the bottom over the sign-up page */
.human { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; background: var(--sf); color: var(--tx); border: 1px solid var(--ln2); border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 30px rgba(0,0,0,.35); text-align: center; }
.human[hidden] { display: none; }
.human p { margin: 0 0 8px; font-size: 14px; }

/* 점검 안내 (지시 491 A안): one gray line, no color band */
.maint-line { margin: 0 0 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--sf2); border: 1px solid var(--ln); color: var(--tx); font-size: calc(13.5px * var(--fz)); }
.maint-row { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.maint-lead { font-weight: 700; white-space: nowrap; }
.maint-line.now .maint-lead { color: var(--prog); }
.maint-words { flex: 1; min-width: 0; line-height: 1.45; cursor: pointer; }
.maint-when { color: var(--tx2); }
@media (max-width: 520px) { .maint-btn { display: none; } }
.maint-btn, .maint-x { background: none; border: 0; color: var(--tx2); font: inherit; cursor: pointer; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.maint-x { font-size: calc(18px * var(--fz)); line-height: 1; color: var(--tx3); }
.maint-btn:hover, .maint-x:hover { background: var(--tag); color: var(--tx); }
.maint-more { display: none; padding: 4px 6px 6px 0; color: var(--tx2); }
.maint-more b { display: block; color: var(--tx); font-weight: 600; margin-bottom: 2px; }
.maint-more p { margin: 0; white-space: pre-line; line-height: 1.5; }
.maint-line.open .maint-more { display: block; }
/* 운영 알림 (지시 492 B안): its window once */
.ops-from { color: var(--tx3); font-size: calc(12.5px * var(--fz)); }
.ops-body { white-space: pre-line; line-height: 1.55; max-height: 50vh; overflow: auto; }
/* (last in the file: over the PC blocks above) a folding phone opened, a tablet (CEO 2026-12-06 지시 486, A안 「위 메뉴 · 두 칸」): the PC layout from 640 px wide and 600 px tall (a phone
   on its side stays the phone's); narrower than a PC the list and the stock share the width, the stock a little more */
@media (min-width: 640px) and (max-width: 959.98px) and (min-height: 600px) {
  .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 14px; }
  .acct-cols { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px; }
}

/* ===== 작은 창 (지시 436·531·532·537; 최종 시안 reports/sian_436_final) =====
   The Picture-in-Picture window, the small browser window (/?mini=1) and an Android phone's small screen: one look, the page's own colours.
   Every class is mn- so nothing of the page's own rules reaches it. */
body.mini-body { min-height: 0; background: var(--bg); }
.mini { position: relative; min-height: 100vh; background: var(--bg); color: var(--tx); font-size: calc(13px * var(--fz)); line-height: 1.35; }
.mini button { font: inherit; color: inherit; cursor: pointer; }
.mini .mn-svg { width: 16px; height: 16px; flex: none; }
.mn-sp { flex: 1; min-width: 0; }
.mn-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px; border-bottom: 1px solid var(--ln); }
.mn-live { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex: none; }
.mn-today { font-size: calc(14px * var(--fz)); color: var(--tx2); white-space: nowrap; }
.mn-today b { color: var(--tx); font-size: calc(15px * var(--fz)); margin-left: 4px; }
.mn-chips { display: flex; background: var(--sf2); border-radius: 8px; padding: 2px; flex: none; }
.mn-chips button { border: 0; background: none; font-size: calc(12px * var(--fz)); padding: 4px 9px; border-radius: 6px; color: var(--tx2); }
.mn-chips button[aria-pressed="true"] { background: var(--sf3); color: var(--tx); font-weight: 700; }
.mn-ico { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--tx2); background: none; border: 0; border-radius: 7px; flex: none; padding: 0; }
.mn-ico:hover { background: var(--sf2); color: var(--tx); }
.mn-ico[aria-pressed="false"] { color: var(--tx3); }
.mn-row { display: block; width: 100%; text-align: left; border-bottom: 1px solid var(--ln); padding: 11px 12px; cursor: pointer; outline: none; }
.mn-row:hover, .mn-row:focus-visible { background: var(--sf); }
.mn-l1, .mn-l2 { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mn-l2 { margin-top: 7px; }
.mn-tk { flex: none; font-weight: 800; font-size: calc(15px * var(--fz)); letter-spacing: .2px; }
.mn-nm { font-size: calc(13px * var(--fz)); color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); flex: none; }
.mn-pct { font-weight: 800; font-size: calc(14px * var(--fz)); font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.mn-pct.up, .mn-aft.up { color: var(--up); } .mn-pct.dn, .mn-aft.dn { color: var(--dn); }
.mn-badge { font-size: calc(12px * var(--fz)); font-weight: 700; padding: 2px 7px; border-radius: 5px; white-space: nowrap; flex: none; color: var(--prog); background: var(--progd); }
.mn-badge.early { color: var(--acc); background: var(--accd); }
.mn-tm { font-size: calc(12px * var(--fz)); color: var(--tx3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mn-ago { font-size: calc(12px * var(--fz)); font-weight: 700; color: var(--tx2); background: var(--sf2); padding: 2px 6px; border-radius: 5px; white-space: nowrap; flex: none; }
.mn-ago.now { color: var(--hl); background: var(--hld); }
.mn-price { font-weight: 800; font-size: calc(14px * var(--fz)); color: var(--hl); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mn-copy { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--ln); background: var(--sf2); color: var(--tx2); font-size: calc(12px * var(--fz)); font-weight: 700; padding: 2px 7px; border-radius: 6px; line-height: 18px; }
.mn-copy .mn-svg { width: 13px; height: 13px; }
.mn-copy:hover { color: var(--tx); }
.mn-copy.done { color: var(--acc); border-color: var(--acc); }
.mn-empty { padding: 28px 12px; text-align: center; color: var(--tx2); }
/* one stock */
.mn-shead { display: flex; align-items: center; gap: 7px; padding: 10px 10px 4px 12px; min-width: 0; }
.mn-back { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; color: var(--tx2); font-size: calc(13px * var(--fz)); padding: 4px 4px 4px 0; }
.mn-follow { display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--fz)); font-weight: 700; color: var(--acc); border: 1px solid var(--acc); border-radius: 16px; padding: 3px 9px; background: none; white-space: nowrap; flex: none; }
.mn-follow .mn-svg { width: 13px; height: 13px; }
.mn-follow[aria-pressed="true"] { background: var(--acc); color: var(--prit); }
.mn-pr { display: flex; align-items: baseline; gap: 8px; padding: 2px 12px 0; }
.mn-pr b { font-size: calc(26px * var(--fz)); font-weight: 800; font-variant-numeric: tabular-nums; }
.mn-pr .mn-pct { font-size: calc(15px * var(--fz)); }
.mn-chart { position: relative; height: 150px; margin: 6px 10px 0; }
.mn-cv { display: block; width: 100%; height: 100%; }
.mn-aline { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--tx3); pointer-events: none; }
.mn-alab { position: absolute; left: 0; transform: translateY(-100%); font-size: calc(11px * var(--fz)); font-weight: 700; color: var(--hl); background: var(--hld); padding: 1px 5px; border-radius: 4px; pointer-events: none; }
.mn-hoga { margin: 8px 10px 0; border: 1px solid var(--ln); border-radius: 9px; overflow: hidden; background: var(--sf); }
.mn-hh { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 9px; font-size: calc(12px * var(--fz)); color: var(--tx2); border-bottom: 1px solid var(--ln); white-space: nowrap; }
.mn-hh b { color: var(--tx); } .mn-hh b.dn { color: var(--dn); } .mn-hh b.up { color: var(--up); }
.mn-hrt { color: var(--tx3); font-weight: 700; } .mn-hrt.on { color: var(--acc); }
.mn-hg { display: grid; grid-template-columns: 1fr 1fr; }
.mn-hc { padding: 3px 0; min-width: 0; }
.mn-hc:first-child { border-right: 1px solid var(--ln); }
.mn-hl { display: flex; justify-content: space-between; align-items: center; font-size: calc(12px * var(--fz)); padding: 2px 8px; position: relative; font-variant-numeric: tabular-nums; min-height: 22px; }
.mn-hl i { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; width: 0; }
.mn-hl.ask i { right: 0; background: var(--dnd); } .mn-hl.bid i { left: 0; background: var(--upd); }
.mn-hl b, .mn-hl span { position: relative; }
.mn-hl.ask b { color: var(--dn); } .mn-hl.bid b { color: var(--up); }
.mn-hl.top { font-weight: 800; }
.mn-plock { margin: 8px 10px 0; height: 262px; border: 1px solid var(--ln); border-radius: 9px; background: var(--sf); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 0 16px; }
.mn-lic, .mn-oic { border-radius: 50%; background: var(--sf2); display: flex; align-items: center; justify-content: center; color: var(--hl); }
.mn-lic { width: 38px; height: 38px; } .mn-lic .mn-svg { width: 19px; height: 19px; }
.mn-plock b { font-size: calc(14px * var(--fz)); }
.mn-plock p { margin: 0; font-size: calc(12.5px * var(--fz)); color: var(--tx2); line-height: 1.5; }
.mn-go { margin-top: 6px; border: 0; border-radius: 9px; padding: 8px 14px; font-weight: 800; font-size: calc(13px * var(--fz)); background: var(--acc); color: var(--prit) !important; }
.mn-foot { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin-top: 8px; border-top: 1px solid var(--ln); font-size: calc(13px * var(--fz)); }
.mn-aft { font-weight: 800; white-space: nowrap; }
.mn-next { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 0; border-top: 1px solid var(--ln); font-size: calc(13px * var(--fz)); width: 100%; background: var(--sf); text-align: left; }
/* 시간 끝남 (지시 532): the window holds nothing else */
.mn-over { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 10px; }
.mn-oic { width: 44px; height: 44px; } .mn-oic .mn-svg { width: 22px; height: 22px; }
.mn-over h3 { margin: 0; font-size: calc(17px * var(--fz)); }
.mn-over p { margin: 0; font-size: calc(13px * var(--fz)); color: var(--tx2); line-height: 1.55; }
.mn-over > .mn-ico { position: absolute; top: 8px; right: 8px; }
.mn-over .mn-go { padding: 10px 16px; font-size: calc(14px * var(--fz)); border-radius: 10px; }
.mn-toast { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); background: var(--sf3); color: var(--tx); font-size: calc(13px * var(--fz)); font-weight: 700; padding: 7px 12px; border-radius: 9px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); white-space: nowrap; z-index: 4; }

/* 테스트 공간 (지시 540): the test server's page wears a small fixed mark (member_web/app.js start) */
.test-space-tag { position: fixed; left: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 2147483000; pointer-events: none; padding: 3px 8px; border-radius: 6px; background: #f5b400; color: #1d2430; font-size: 11px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
