/* EdgeSignal AI - shared shell styles (core agent). Colors / type from Flutter lib/core/theme.dart.
   Mobile = max-width 640px. Modules add their own static/css/<module>.css. */

@font-face { font-family: 'Pretendard'; font-weight: 400; font-display: swap; src: url('/static/fonts/PretendardS-Regular.otf') format('opentype'); }
@font-face { font-family: 'Pretendard'; font-weight: 500; font-display: swap; src: url('/static/fonts/PretendardS-Regular.otf') format('opentype'); }
@font-face { font-family: 'Pretendard'; font-weight: 600; font-display: swap; src: url('/static/fonts/PretendardS-Bold.otf') format('opentype'); }
@font-face { font-family: 'Pretendard'; font-weight: 700; font-display: swap; src: url('/static/fonts/PretendardS-Bold.otf') format('opentype'); }
@font-face { font-family: 'Pretendard'; font-weight: 800; font-display: swap; src: url('/static/fonts/PretendardS-Bold.otf') format('opentype'); }

/* ===== Design system (FB-style): neutral #F0F2F5 canvas, white cards, hairline #E4E6EB, one dark primary (#1C2532),
   secondary = light grey #E4E6EB, brand red only for the logo + active indicator. Up = red, down = blue (muted).
   Radius 8 / 12. 8px spacing grid. ===== */
:root {
  --bg: #F0F2F5; --surface: #FFFFFF; --subtle: #F0F2F5; --btn2: #E4E6EB; --btn2-h: #D8DADF; --hover: #F2F2F2;
  --border: #E4E6EB; --divider: #EBEDF0;
  --ink: #1C2532; --ink-soft: #2E3A4A; --text: #050505; --sub: #65676B; --muted: #767A80;  /* muted: ≥4.3:1 on white for 12–13px helper text */
  --up: #E0474C; --up-soft: #FDEEEE; --down: #3870D8; --down-soft: #EBF1FC;
  --actual: var(--down); --actual-soft: var(--down-soft); --predict: var(--up); --predict-soft: var(--up-soft);
  --good: #1E8A5A; --good-soft: #E6F4ED; --brand-red: #ED1C24;
  --gold: #B8862B; --gold-soft: #FAF1DF; --gold-on-dark: #F0C774; --gold-icon: #F5C451;
  --max: 1200px; --r-sm: 8px; --radius: 12px; --radius-lg: 12px;
  --pad-x: 24px; --hd-h: 56px; --tabs-h: 56px;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Segoe UI', sans-serif;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .08); --shadow: 0 8px 28px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .04);
}
@media (max-width: 640px) { :root { --pad-x: 12px; --hd-h: 52px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.5; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-kerning: normal;
  min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }
input, select, textarea { font: inherit; letter-spacing: inherit; }
img, svg { display: inline-block; vertical-align: middle; }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--divider); margin: 8px 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ic { flex: none; }
.gold { color: var(--gold-on-dark); }
.num, .tnum { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* ---------- type */
.t-display { font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: -1px; }
.t-h2 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.3px; }
.t-h3 { font-size: 17px; line-height: 1.35; font-weight: 700; letter-spacing: -.2px; }
.t-body { font-size: 17px; line-height: 1.5; }
.t-sub { font-size: 17px; line-height: 1.5; color: var(--sub); }
.t-label { font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--sub); }
.t-cap { font-size: 13px; line-height: 1.4; color: var(--sub); }
.t-num { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-actual { color: var(--actual); } .c-predict { color: var(--predict); } .c-good { color: var(--good); } .c-sub { color: var(--sub); } .c-muted { color: var(--muted); }
.up { color: var(--up); } .down { color: var(--down); }

/* ---------- layout */
.wrap { width: 100%; max-width: calc(var(--max) + var(--pad-x) * 2); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.main { flex: 1 0 auto; }
.page { padding-top: 24px; padding-bottom: 64px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card-pad { padding: 16px; }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1 1 auto; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .page { padding-top: 8px; padding-bottom: 24px; }
  body { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); }
  body.no-tabs { padding-bottom: env(safe-area-inset-bottom); }
  .t-display { font-size: 28px; letter-spacing: -.6px; }
  .t-h2 { font-size: 19px; }
}

/* ---------- buttons: primary = dark filled, secondary = light grey (FB) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--r-sm); padding: 0 16px; height: 40px;
  font-size: 17px; font-weight: 600; white-space: nowrap; transition: background .12s, opacity .12s; -webkit-tap-highlight-color: transparent; }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: var(--ink-soft); }
.btn-line, .btn-subtle { background: var(--btn2); color: var(--text); border: 0; }
.btn-line:hover, .btn-subtle:hover { background: var(--btn2-h); }
.btn-gold { background: var(--ink); color: #fff; }
.btn-gold:hover { background: var(--ink-soft); }
.btn[disabled], .btn.is-busy { opacity: .5; pointer-events: none; }
.btn-36 { height: 36px; padding: 0 14px; font-size: 14px; } .btn-40 { height: 40px; } .btn-44 { height: 44px; } .btn-52 { height: 48px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-text { border: 0; background: transparent; color: var(--sub); font-size: 14px; font-weight: 600; padding: 0 8px; height: 36px; border-radius: var(--r-sm); }
.btn-text:hover { background: var(--hover); }
@media (max-width: 640px) { .btn { height: 44px; } .btn-36 { height: 36px; } .btn-52 { height: 48px; } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border: 0; background: transparent;
  color: var(--text); border-radius: 50%; padding: 0; list-style: none; -webkit-tap-highlight-color: transparent; }
.icon-btn:hover { background: var(--hover); }
.icon-btn.boxed { width: 40px; height: 40px; background: var(--btn2); margin-left: 8px; }
.icon-btn.boxed:hover { background: var(--btn2-h); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 0;
  background: transparent; color: var(--sub); font-size: 17px; font-weight: 600; white-space: nowrap; }
.pill:hover { background: var(--hover); color: var(--text); }
.pill.on { color: var(--text); }
.pill-dark, .pill-dark:hover, .pill-dark.on { background: var(--ink); color: #fff; padding: 0 14px; }
.pill-dark:hover { background: var(--ink-soft); }
.pill-dark .pill-ic { color: var(--gold-icon); }
.pill-line { background: var(--btn2); color: var(--text); margin-left: 8px; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--btn2); color: var(--text);
  font-size: 17px; font-weight: 600; border: 0; }
.chip:hover { background: var(--btn2-h); }
.chip.on { background: var(--ink); color: #fff; }

/* ---------- avatar (round photo, small flag at the bottom-left with a white ring) */
.av { position: relative; display: inline-flex; flex: none; width: var(--av); height: var(--av); border-radius: 50%; align-items: center; justify-content: center; }
.av > img:not(.av-f) { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av-i { color: #fff; font-weight: 700; font-size: calc(var(--av) * .42); line-height: 1; }
.av-flag { position: absolute; z-index: 1; left: -2px; bottom: -1px; display: inline-flex; border-radius: 3px; box-shadow: 0 0 0 2px #fff; background: #fff; line-height: 0; }
.av-flag img.flag { display: block; border-radius: 2px; box-shadow: none; }
img.flag { display: inline-block; vertical-align: -2px; border-radius: 2px; object-fit: cover; background: var(--subtle, #eee); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14); flex: none; }
.flag-txt { display: inline-block; line-height: 1; }
img.flag[src$="/np.svg"], img.flag[src$="/ch.svg"], img.flag[src$="/va.svg"] { object-fit: contain; background: transparent; box-shadow: none; }

/* ---------- header (PC) - 56px, white, text tabs with active underline (FB) */
.hd { position: sticky; top: 0; z-index: 50; background: var(--surface); box-shadow: 0 1px 0 var(--border); }
.hd-pc { height: 56px; }
.hd-in { height: 100%; max-width: calc(var(--max) + 48px); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; }
.hd-sp { flex: 1 1 auto; }
.logo { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.logo-t { font-size: 18px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap; }
.nav { display: flex; align-items: stretch; align-self: stretch; margin-left: 24px; min-width: 0; }
.nav-a { position: relative; display: flex; align-items: center; padding: 0 12px; font-size: 17px; font-weight: 600; color: var(--sub); white-space: nowrap; isolation: isolate; }
.nav-a::before { content: ''; position: absolute; inset: 8px 2px; border-radius: var(--r-sm); z-index: -1; }
.nav-a:hover::before { background: var(--hover); }
.nav-a.on { color: var(--text); }
.nav-a.on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand-red); }
.nav .more { align-self: center; margin-left: 4px; }
.money { display: flex; align-items: center; gap: 2px; }
.money .pill:not(.pill-dark) .pill-ic { display: none; }
.money .pill-dark { margin-left: 6px; }
.vdiv { display: none; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border: 0; background: var(--btn2); border-radius: 999px;
  margin-left: 8px; list-style: none; cursor: pointer; }
.user-chip:hover { background: var(--btn2-h); }
.user-chip::-webkit-details-marker, .more summary::-webkit-details-marker { display: none; }
.user-nick { font-size: 17px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-pc .js-login { margin-left: 8px; height: 36px; }
/* dropdowns (<details>) */
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; }
.dd-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; z-index: 60; }
.dd-right { left: auto; right: 0; }
.dd-a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 8px; border-radius: var(--r-sm); border: 0; background: transparent; text-align: left;
  font-size: 17px; font-weight: 600; color: var(--text); }
.dd-a .ic { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--btn2); color: var(--text); }
.dd-a:hover { background: var(--hover); }
.dd-a.on { color: var(--text); } .dd-a.on .ic { background: var(--ink); color: #fff; }
/* PC menu priority. The inline fit script in base.html (.hd-pc.fit) measures the real widths (any language, long
   nicknames, the optional install button) and hides items in order promote, free, help, eventpred, mine, nickname text,
   sub, events, ranking, predict, logo text — each hidden item is listed in [⋮]. Before the script runs (or without JS)
   the old fixed breakpoints apply (.hd-pc:not(.fit)). */
.more { display: none; }
.dd-a.mp1, .dd-a.mp2, .dd-a.mp3, .dd-a.mp4, .dd-a.mp5, .dd-a.mp6 { display: none; }
.dd-a.mm { display: none; }
@media (max-width: 1243px) {
  .hd-pc:not(.fit) .money { display: none; } .hd-pc:not(.fit) .more { display: block; } .hd-pc:not(.fit) .dd-a.mm { display: flex; }
  .hd-pc:not(.fit) .nav-a.p6 { display: none; } .hd-pc:not(.fit) .dd-a.mp6 { display: flex; }
}
@media (max-width: 1143px) { .hd-pc:not(.fit) .nav-a.p5 { display: none; } .hd-pc:not(.fit) .dd-a.mp5 { display: flex; } }
@media (max-width: 1023px) { .hd-pc:not(.fit) .nav-a.p4 { display: none; } .hd-pc:not(.fit) .dd-a.mp4 { display: flex; } }
@media (max-width: 903px) { .hd-pc:not(.fit) .nav-a.p1, .hd-pc:not(.fit) .nav-a.p2, .hd-pc:not(.fit) .nav-a.p3 { display: none; }
  .hd-pc:not(.fit) .dd-a.mp1, .hd-pc:not(.fit) .dd-a.mp2, .hd-pc:not(.fit) .dd-a.mp3 { display: flex; } }
@media (min-width: 1244px) { .hd-pc:not(.fit) .vdiv { display: block; width: 1px; height: 22px; margin: 0 12px 0 8px; background: var(--border); } }
/* fitted header: nothing shrinks except the spacer, so an overflow is measurable (and never drawn on top of a neighbour) */
.hd-pc .hd-in > * { flex-shrink: 0; }
.hd-pc .hd-in > .hd-sp { flex: 1 1 0; min-width: 0; }
.hd-pc.fit .nav { overflow: visible; }
.hd-pc.fit .ovf { display: none !important; }
.hd-pc:not(.fit) .nav-x { display: none; }   /* 무료 구독 · 홍보하고 돈벌기: shown in the PC header only when they fit */
.hd-pc.fit.has-ovf .more { display: block; }
.hd-pc.fit .dd-a.show { display: flex; }
.hd-pc.fit .vdiv { display: block; width: 1px; height: 22px; margin: 0 8px 0 8px; background: var(--border); }
.hd-pc.fit.no-money .money { display: none; }
.hd-pc.fit.nick-off .user-nick { display: none; }
.hd-pc.fit.nick-off .user-chip { padding: 0 4px; }
.hd-pc.fit.logo-off .logo-t { display: none; }
/* header controls: one 40px row (pills 36), even 8px gaps */
.hd-pc .hd-ins { margin-left: 8px; color: var(--text); }
.money { gap: 4px; }

/* ---------- header (mobile) - 52px */
.hd-m { display: none; height: 52px; padding: 0 4px 0 12px; align-items: center; gap: 2px; }
.hd-m .logo { gap: 8px; } .hd-m .logo-t { font-size: 17px; letter-spacing: -.2px; }
.hd-m .icon-btn { width: 40px; height: 40px; }
.share-pill { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700; margin: 0 4px; }
.flag-btn { min-width: 40px; }
.flag-big { line-height: 1; display: inline-flex; align-items: center; }
.flag-big img.flag { border-radius: 3px; }
@media (max-width: 640px) {
  .hd-pc, .ft { display: none; }
  .hd-m { display: flex; }
}
@media (max-width: 359px) { .hd-m .logo-t { display: none; } }

/* ---------- notice bar */
.notice-bar { background: var(--ink); color: #fff; }
.notice-in { display: flex; align-items: center; gap: 8px; padding-top: 4px; padding-bottom: 4px; min-height: 40px; }
.notice-t { flex: 1; font-size: 14px; font-weight: 600; }
.notice-x { color: rgba(255, 255, 255, .7); min-width: 32px; min-height: 32px; }
.notice-x:hover { background: rgba(255, 255, 255, .1); }

/* ---------- footer (PC only) */
.ft { background: var(--surface); border-top: 1px solid var(--border); margin-top: auto; }
.ft-in { padding-top: 32px; padding-bottom: 40px; }
.ft-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-bottom: 16px; }
.ft-links a { font-size: 14px; font-weight: 600; color: var(--sub); padding: 4px 0; }
.ft-links a:hover { color: var(--text); text-decoration: underline; }
.ft-brand { font-size: 17px; font-weight: 700; margin-right: 8px; }
.ft-cap { margin: 0 0 4px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.ft-disc { margin-top: 12px; }

/* ---------- mobile bottom (install banner + tabs, Instagram style) */
.m-bottom { display: none; }
@media (max-width: 640px) {
  .m-bottom { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; }
}
.tabs { display: flex; height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface);
  box-shadow: 0 -1px 0 var(--border); }
.tab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--sub); font-size: 12px; font-weight: 500;
  position: relative; min-width: 0; -webkit-tap-highlight-color: transparent; letter-spacing: 0; }
.tab > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tab .ic { width: 26px; height: 26px; }
.tab.on { color: var(--text); font-weight: 700; }
.tab.on .ic { stroke-width: 2.5; fill: currentColor; fill-opacity: .14; }
.tab-av { display: inline-flex; padding: 1px; border-radius: 50%; border: 2px solid transparent; height: 30px; width: 30px; align-items: center; justify-content: center; }
.tab.on .tab-av { border-color: var(--text); }
.inb { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; background: var(--surface); box-shadow: 0 -1px 0 var(--border);
  animation: inb-in .22s ease-out; }
.inb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inb-t b { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inb-t span { font-size: 13px; color: var(--sub); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inb .btn-text { height: 36px; }
@keyframes inb-in { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- drawer (menu) */
.drawer-bg { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .4); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: var(--bg); display: flex; flex-direction: column;
  animation: dr-in .22s cubic-bezier(.2, .8, .2, 1); padding-top: env(safe-area-inset-top); }
@keyframes dr-in { from { transform: translateX(100%); } to { transform: none; } }
.dr-top { display: flex; align-items: center; gap: 12px; margin: 12px 12px 8px; padding: 12px 4px 12px 12px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.dr-me { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dr-me b { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-me span { font-size: 13px; color: var(--sub); font-weight: 500; }
.dr-me .btn { margin-top: 8px; align-self: flex-start; }
.dr-list { flex: 1; overflow-y: auto; padding: 0 12px calc(16px + env(safe-area-inset-bottom)); }
.dr-row { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px; border-radius: var(--r-sm); font-size: 17px; font-weight: 600; }
.dr-row .ic { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--btn2); color: var(--text); }
.dr-row:hover { background: rgba(0, 0, 0, .04); }
.dr-row.on .ic { background: var(--ink); color: #fff; }
.dr-list hr { margin: 8px 8px; border-color: #DADDE1; }
.dr-small { display: flex; align-items: center; height: 44px; padding: 0 8px; font-size: 14px; color: var(--sub); font-weight: 500; border: 0; background: none; width: 100%; text-align: left; }

/* ---------- sheet / modal (SRR.sheet) */
.sheet-bg { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fade .15s ease-out; }
.sheet { position: relative; width: 100%; max-width: var(--sheet-w, 500px); max-height: min(88vh, 760px); background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2), 0 2px 4px rgba(0, 0, 0, .1); display: flex; flex-direction: column; overflow: hidden; }
.sheet-hd { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 8px 12px 8px 20px; border-bottom: 1px solid var(--divider); }
.sheet-hd h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.sheet-x { width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 50%; background: var(--btn2); color: var(--sub); }
.sheet-x:hover { background: var(--btn2-h); }
.sheet-bd { padding: 16px 20px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-grip { display: none; width: 36px; height: 4px; border-radius: 2px; background: #DADDE1; margin: 8px auto 0; }
@media (max-width: 640px) {
  .sheet-bg { align-items: flex-end; padding: 0; }
  .sheet { max-width: none; border-radius: 16px 16px 0 0; max-height: 90vh; animation: up .22s cubic-bezier(.2, .8, .2, 1);
    padding-bottom: env(safe-area-inset-bottom); }
  .sheet-grip { display: block; }
  .sheet-hd { min-height: 52px; padding: 4px 8px 4px 16px; }
  .sheet-hd h2 { font-size: 17px; }
  .sheet-bd { padding: 12px 16px 16px; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
body.modal-open { overflow: hidden; }

/* region sheet */
.rg-h { margin: 4px 0 8px; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.rg-h small { font-size: 13px; font-weight: 500; color: var(--sub); }
.rg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rg-chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--btn2); font-size: 14px; font-weight: 600; }
.rg-chip:hover { background: var(--btn2-h); }
.rg-chip.on { background: var(--ink); color: #fff; }
.rg-chip.more { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.rg-search { width: 100%; height: 40px; border: 0; border-radius: 999px; background: var(--subtle); padding: 0 16px; font: inherit; font-size: 17px; margin-bottom: 8px; outline: none; }
.rg-search:focus { box-shadow: 0 0 0 2px var(--ink) inset; }
.rg-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 4px 0 8px; scrollbar-width: none; border-bottom: 1px solid var(--divider); }
.rg-tab { position: relative; border: 0; background: none; padding: 8px 10px 10px; font-size: 14px; color: var(--sub); font-weight: 600; white-space: nowrap; }
.rg-tab.on { color: var(--text); font-weight: 700; }
.rg-tab.on::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand-red); }
.rg-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
.rg-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; border-radius: var(--r-sm); border: 0; background: none; text-align: left; font-size: 17px; min-width: 0; }
.rg-item:hover { background: var(--hover); }
.rg-item.on { background: var(--btn2); font-weight: 700; }
.rg-item .fl { line-height: 1; display: inline-flex; }
.rg-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* install guide */
.ig-step { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-size: 17px; }
.ig-step b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--btn2); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

/* ---------- toast */
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
@media (max-width: 640px) { .toasts { bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom)); } }
.toast { background: #242526; color: #fff; padding: 12px 16px; border-radius: var(--r-sm); font-size: 17px; font-weight: 600; box-shadow: var(--shadow);
  animation: toast-in .2s ease-out; pointer-events: auto; }
.toast.err { background: var(--predict); } .toast.ok { background: var(--good); }
.toast.out { opacity: 0; transition: opacity .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- in-app browser guide (iOS) */
#srr-inapp { position: fixed; inset: 0; z-index: 10000; background: var(--bg); overflow-y: auto; }
.ia-in { max-width: 420px; margin: 0 auto; padding: 56px 24px 24px; }
.ia-in h1 { font-size: 24px; line-height: 1.35; margin: 22px 0 8px; letter-spacing: -.5px; }
.ia-sub { font-size: 17px; line-height: 1.6; color: var(--sub); margin: 0 0 26px; }
.ia-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 6px; margin-bottom: 18px; }
.ia-step { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; font-size: 17px; }
.ia-step b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--subtle); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.ia-ok { text-align: center; font-size: 14px; color: var(--good); margin: 10px 0 0; }
#srr-stay { margin-top: 10px; height: 46px; color: var(--muted); font-size: 14px; }

/* ---------- misc shared */
.skel-box { background: var(--subtle); border-radius: var(--radius); }
.chart-box { position: relative; width: 100%; height: var(--chart-h, 320px); }
.err-page .err-box { max-width: 420px; margin: 18vh auto; text-align: center; padding: 0 24px; }
.err-page h1 { font-size: 48px; margin: 0 0 8px; }
.err-page p { color: var(--sub); margin: 0 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* one icon weight everywhere (FB/YouTube-like 1.75px outline) */
svg.ic { stroke-width: 1.75; }
.tab.on svg.ic { stroke-width: 2.25; }
/* pressed feedback (touch) */
@media (hover: none) {
  .btn:active, .es-btn:active, .chip:active, .es-tab:active, .icon-btn:active, .pill:active, .tab:active, .dd-a:active, .dr-row:active { transform: scale(.97); }
}
.btn, .es-btn, .chip, .es-tab, .icon-btn, .pill, .tab { transition: background .12s, transform .08s, opacity .12s; }
.btn:disabled, .es-btn:disabled, .chip:disabled { opacity: .45; cursor: not-allowed; }

/* 2026-11-21 회의: 랭킹·피드·예측 목록 아바타를 카카오톡 친구 목록 수준(52px)으로 크게 */
.rk-list .av { --av: 52px !important; }
.rk-pod .rk-pod-av .av { --av: 68px !important; }
.es-feed .es-av, .es-rank .es-av, .es-kings .es-av, .es-pr-h .es-av, .es-pr-u .es-av { --s: 52px !important; }
.es-feed .es-av img, .es-rank .es-av img, .es-pr-u .es-av img { width: 100%; height: 100%; }
.rk-list li > a, .es-rank li > a, .es-feed .es-lv { min-height: 64px; align-items: center; }
/* 피드 아바타: align.css의 40px 고정을 52px로, 국기 배지는 다른 아바타와 같은 크기 */
.es-lv .es-av { width: var(--s) !important; height: var(--s) !important; }
.es-feed .es-av-f img.flag, .es-rank .es-av-f img.flag, .es-pr-u .es-av-f img.flag { width: 18px !important; height: auto !important; }
.es-feed .es-av-f, .es-rank .es-av-f, .es-pr-u .es-av-f { width: auto !important; }

/* 2026-11-21 회의: 순위 숫자 = 아바타 왼쪽 위(10시 방향)에 겹친 작은 배지, 아바타는 왼쪽으로 붙임, 겹치는 곳은 흰 테두리로 정리 */
.es-rank a, .rk-list a { position: relative; }
.es-rank .es-rk, .rk-list .rk-n {
  position: absolute; z-index: 3; left: 2px; top: 4px; width: auto; min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 11px;
  background: #fff; color: #050505; font-size: 12px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,.22);
}
.rk-list a { padding-left: 10px; }
.es-rank li:nth-child(1) .es-rk { background: #F0C774; color: #3D2B00; }
.es-rank li:nth-child(2) .es-rk { background: #D9DDE3; color: #2B2F36; }
.es-rank li:nth-child(3) .es-rk { background: #E2B48C; color: #3B2310; }
.rk-list .rk-n.top { background: #F0C774; color: #3D2B00; }
.es-rank .es-rk, .rk-list .rk-n { background: #EEF0F3; color: #3A3F47; }
.es-rank li:nth-child(1) .es-rk, .rk-list .rk-n.top { background: #F0C774; color: #3D2B00; }
/* 2026-11-21 회의: 앱 설치 띠를 얇게 - 한 줄(아이콘 28px + 제목 + 나중에 + 설치), 설명 줄 숨김 */
.inb { gap: 10px; padding: 6px 8px 6px 12px; min-height: 48px; }
.inb > svg, .inb > .brand, .inb > img { width: 28px !important; height: 28px !important; flex: 0 0 auto; }
.inb-t span { display: none; }
.inb-t b { font-size: 15px; }
.inb .btn-text { height: 32px; font-size: 14px; }
.inb .btn-36 { height: 32px; min-height: 32px; padding: 0 14px; font-size: 14px; }

/* 2026-11-21 회의: 모바일 머리 크게 (카카오톡처럼) */
.hd.hd-m { height: 64px !important; min-height: 64px !important; }
.hd.hd-m .logo { gap: 10px; }
.hd.hd-m .brand-mark { width: 40px !important; height: 40px !important; }
.hd.hd-m .logo-t { font-size: 24px !important; font-weight: 800 !important; letter-spacing: -0.4px; }
.hd.hd-m .icon-btn.hd-me { width: 52px !important; height: 52px !important; }
.hd.hd-m .icon-btn.hd-me svg.ic { width: 34px !important; height: 34px !important; }
.hd.hd-m .hd-me-chip .av { --av: 48px !important; --s: 48px !important; width: 48px !important; height: 48px !important; }
.hd.hd-m .hd-me-chip .hd-me-n { font-size: 19px !important; font-weight: 700 !important; }

/* 2026-11-21 회의: 버튼·칩·입력칸은 거의 사각(모서리 4px)으로 통일, 여백 줄여 깔끔하게.
   아바타·국기·동그란 ＋/－ 같은 원형은 그대로 */
.es-btn, .btn, .btn-36, .btn-text, .es-chip, .chip, .es-seg, .es-seg button, .es-pill,
.es-in, input.es-in, .es-dc-q, .es-dcc, .es-card, .es-card-btn, .es-box, .es-tab:not(.es-tab-dot),
.es-pp-chip, .es-pp-card, .pf-menu a, .es-search, .search-box, select, textarea { border-radius: 4px !important; }
.es-btn { padding-left: 14px; padding-right: 14px; }

/* 2026-11-21 top install bar */
.tib{display:none}
@media (max-width:640px){.tib:not([hidden]){display:flex;align-items:center;gap:12px;min-height:48px;padding:0 4px 0 14px;background:var(--brand-red);color:#fff}}
.tib-t{flex:1;min-width:0;font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tib-go{background:none;border:0;color:#fff;font-size:16px;font-weight:700;text-decoration:underline;text-underline-offset:3px;padding:8px 4px;cursor:pointer}
.tib-x{background:none;border:0;color:#fff;font-size:26px;line-height:1;width:40px;height:44px;cursor:pointer}
.m-bottom .inb{display:none !important}

/* 2026-11-21 PC 머리 정리 (트레이딩뷰처럼): 로고 · 메뉴 · [⋮] | 검색 · 구독 · KO · 로그인/아바타.
   높이 52, 오른쪽 조작은 모두 32px, 모서리 4px, 얇은 테두리, 장식 없음 */
.hd.hd-pc { height: 52px; }
.hd.hd-pc .hd-in { gap: 0; }
.hd.hd-pc .logo .logo-t { font-size: 17px; }
.hd.hd-pc .nav { margin-left: 20px; }
.hd.hd-pc .nav-a { padding: 0 10px; font-size: 15px; font-weight: 600; }
.hd.hd-pc .nav-a::before { inset: 10px 2px; border-radius: 4px; }
.hd.hd-pc .nav-a.on::after { left: 10px; right: 10px; height: 2px; border-radius: 0; }
.hd.hd-pc .more { display: block !important; margin-left: 2px; }
.hd.hd-pc .more > summary.icon-btn { min-width: 32px; min-height: 32px; width: 32px; height: 32px; border-radius: 4px; color: var(--sub); }
.hd.hd-pc .vdiv { display: none !important; }
.hd.hd-pc .money { gap: 0; margin-left: 4px; }
.hd.hd-pc.fit.no-money .money { display: none; }
/* right-side controls */
.hd.hd-pc .hd-ib { min-width: 32px; min-height: 32px; width: 32px; height: 32px; border-radius: 4px; color: var(--sub); margin-left: 0; }
.hd.hd-pc .hd-ib:hover { background: var(--hover); color: var(--text); }
/* 2026-11-29 (owner, client-pc-final-layout.png): search right after the logo, the menu words follow it */
.hd.hd-pc .logo + .hd-ib { margin-left: 14px; color: var(--text); }
.hd.hd-pc .hd-ib + .nav { margin-left: 6px; }
.hd.hd-pc .hd-sub { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; background: var(--surface); }
.hd.hd-pc .hd-sub:hover, .hd.hd-pc .hd-sub.on { background: var(--hover); }
/* 2026-11-29 (owner): "공유 추천 하고 현금 보상" in the PC menu line, same box as 구독 */
.hd.hd-pc .hd-share { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; margin-left: 6px; border: 1px solid var(--border); border-radius: 4px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; background: var(--surface); cursor: pointer; }
.hd.hd-pc .hd-share:hover { background: var(--hover); }
.hd.hd-pc .hd-lang { display: inline-flex; align-items: center; justify-content: center; height: 32px; min-width: 32px; padding: 0 8px; margin-left: 4px;
  border: 0; border-radius: 4px; background: transparent; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .3px; color: var(--sub); cursor: pointer; white-space: nowrap; }
.hd.hd-pc .hd-lang:hover { background: var(--hover); color: var(--text); }
.hd.hd-pc .hd-login { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; margin-left: 4px; border-radius: 4px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.hd.hd-pc .hd-login:hover { background: var(--ink-soft); }
.hd.hd-pc .user-dd { margin-left: 4px; }
.hd.hd-pc .hd-av { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; list-style: none; cursor: pointer; }
.hd.hd-pc .hd-av::-webkit-details-marker { display: none; }
.hd.hd-pc .hd-av:hover { box-shadow: 0 0 0 2px var(--border); }
/* dropdowns: thin border, 4px, compact rows */
.hd.hd-pc .dd-menu { top: calc(100% + 6px); min-width: 200px; padding: 4px; border-radius: 4px !important; box-shadow: 0 0 0 1px var(--border), 0 4px 12px rgba(0, 0, 0, .08); }
.hd.hd-pc .dd-a { min-height: 36px; gap: 10px; padding: 0 8px; font-size: 14px; border-radius: 4px; }
.hd.hd-pc .dd-a .ic { width: 18px; height: 18px; padding: 0; border-radius: 0; background: none !important; color: var(--sub); }
.hd.hd-pc .dd-a.on .ic { color: var(--text); }
.hd.hd-pc .dd-a.on { background: var(--hover); }
.hd.hd-pc .dd-a[hidden] { display: none !important; }
.hd.hd-pc .dd-who { padding: 8px 8px 6px; font-size: 14px; border-bottom: 1px solid var(--border); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }

/* 2026-11-21 설치 안내: PC에는 띠·배너 없음, 설치된 앱(standalone) 안에서도 절대 안 보임 */
@media (min-width: 641px) { .tib, .m-bottom .inb { display: none !important; } }
@media (display-mode: standalone) { .tib, .m-bottom .inb, .js-install { display: none !important; } }

/* 2026-11-21 언어 목록 (트레이딩뷰처럼 자기 나라 말로, 지금 언어에 체크) */
.lgx-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.lgx-it { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 4px;
  background: none; font: inherit; font-size: 15px; color: var(--text); text-align: start; cursor: pointer; }
.lgx-it:hover { background: var(--hover); }
.lgx-it.on { font-weight: 700; background: var(--hover); }
.lgx-ck { flex: none; color: var(--text); }
.lgx-rg { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; margin-top: 10px; padding: 0 10px; border: 0; border-top: 1px solid var(--border);
  border-radius: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--sub); cursor: pointer; }
.lgx-rg:hover { color: var(--text); }
@media (max-width: 640px) { .lgx-list { grid-template-columns: 1fr; } .lgx-it { min-height: 46px; font-size: 16px; } }
/* footer: language name link */
.ft-links .ft-lang { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.ft-links .ft-lang .ic { width: 16px; height: 16px; }
/* phone, logged out (no profile menu): one quiet language line above the bottom tabs */
.m-lang { display: none; }
@media (max-width: 640px) {
  .m-lang { display: flex; justify-content: center; padding: 16px 0 20px; }
  .m-lang a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; font-size: 14px; font-weight: 600; color: var(--sub); }
  .m-lang .ic { width: 16px; height: 16px; }
}

/* 2026-11-22 ☰ 메뉴 (기획 "모바일 상단 우측 메뉴"): 모바일·PC 같은 패널, 오른쪽에서 밀려 나옴.
   PC [⋮] 삭제 · 탭 위 m-lang 줄 삭제. 줄 52px, 글자 16–17px, 얇은 구분선, 장식 없음 */
.hd-hmb { flex: none; color: var(--text); }
.hd.hd-m .hd-hmb { width: 48px !important; height: 48px !important; min-width: 48px; min-height: 48px; margin-left: 2px; border-radius: 4px; }
.hd.hd-m .hd-hmb svg.ic { width: 26px; height: 26px; }
.hd-m .hd-me-chip { max-width: 42vw; }
.hd.hd-pc .hd-hmb { width: 32px; height: 32px; min-width: 32px; min-height: 32px; margin-left: 6px; border-radius: 4px; color: var(--sub); }
.hd.hd-pc .hd-hmb:hover, .hd.hd-pc .hd-hmb[aria-expanded="true"] { background: var(--hover); color: var(--text); }
.hd.hd-pc .more { display: none !important; }
.m-lang { display: none !important; }

body.hmb-lock { overflow: hidden; overscroll-behavior: none; }
.hmb-bg { position: fixed; inset: 0; z-index: 94; background: rgba(0, 0, 0, .4); animation: fade .18s ease-out; }
.hmb-bg[hidden], .hmb[hidden] { display: none !important; }
.hmb { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(360px, 88vw); display: flex; flex-direction: column;
  background: var(--surface); color: var(--text); border-radius: 0; box-shadow: -1px 0 0 var(--border);
  padding-top: env(safe-area-inset-top); animation: hmb-in .2s cubic-bezier(.2, .8, .2, 1); outline: none; }
.hmb.out { animation: hmb-out .18s ease-in forwards; }
.hmb-bg.out { animation: hmb-fade-out .18s ease-in forwards; }
@keyframes hmb-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes hmb-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes hmb-fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hmb, .hmb.out, .hmb-bg, .hmb-bg.out { animation-duration: .01s; } }
.hmb-top { display: flex; align-items: center; gap: 8px; min-height: 72px; padding: 12px 8px 12px 16px; border-bottom: 1px solid var(--divider); }
.hmb-auth { flex: 1; min-width: 0; display: flex; gap: 8px; }
.hmb-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 12px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 16px; font-weight: 600; white-space: nowrap; }
.hmb-btn:hover { background: var(--hover); }
.hmb-btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.hmb-btn-dark:hover { background: var(--ink-soft); }
.hmb-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; color: var(--text); }
.hmb-me-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hmb-me-t b { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmb-me-t small { font-size: 14px; color: var(--sub); font-weight: 500; }
.hmb-x { flex: none; width: 44px; height: 44px; min-width: 44px; border-radius: 4px; color: var(--sub); }
.hmb-x:hover { color: var(--text); }
.hmb-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 calc(16px + env(safe-area-inset-bottom)); }
.hmb-grp { border-bottom: 1px solid var(--divider); padding: 4px 0; }
.hmb-grp:last-child { border-bottom: 0; }
.hmb-row { display: flex; align-items: center; gap: 8px; width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 0; background: none;
  font: inherit; font-size: 17px; font-weight: 600; color: var(--text); text-align: start; cursor: pointer; }
.hmb-row:hover { background: var(--hover); }
.hmb-row[hidden] { display: none !important; }
.hmb-row[aria-current="page"] { background: var(--hover); }
.hmb-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmb-v { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; color: var(--sub);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmb-v img.flag { width: 18px; height: auto; }
.hmb-chev { flex: none; font-style: normal; font-size: 20px; line-height: 1; color: var(--muted); }
.hmb-sm { font-size: 16px; font-weight: 500; color: var(--sub); }
/* PC: nav items the header fit script hid (html.hovf-<key>) are listed first. Phones have the bottom tabs. */
.hmb-ovfs, .hmb-ovf { display: none; }
@media (min-width: 641px) {
  html.hovf-mine .hmb-ovfs { display: block; }
  html.hovf-predict .hmb-ovf[data-ovf="predict"], html.hovf-ranking .hmb-ovf[data-ovf="ranking"],
  html.hovf-events .hmb-ovf[data-ovf="events"], html.hovf-ai .hmb-ovf[data-ovf="ai"], html.hovf-mine .hmb-ovf[data-ovf="mine"] { display: flex; }
}
[dir=rtl] .hmb { right: auto; left: 0; box-shadow: 1px 0 0 var(--border); animation-name: hmb-in-rtl; }
[dir=rtl] .hmb.out { animation-name: hmb-out-rtl; }
[dir=rtl] .hmb-chev { transform: scaleX(-1); }
@keyframes hmb-in-rtl { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes hmb-out-rtl { from { transform: none; } to { transform: translateX(-100%); } }

/* 2026-11-22: ☰ 삭제 — 사람 아이콘이 메뉴를 엶 */
.hd .hd-meb { border: 0; background: none; padding: 0; margin-left: 6px; color: var(--sub); cursor: pointer; }
.hd.hd-pc .hd-meb:hover, .hd.hd-pc .hd-meb[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--border); color: var(--text); }
.hd.hd-m button.hd-me { border: 0; background: none; padding: 0; cursor: pointer; color: var(--text); }
.hd.hd-m .icon-btn.hd-me.hd-me-chip { width: auto !important; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- 2026-12-04 business information (partials/bizline.html, services/bizinfo.py): one thin line at the bottom of every
   page + a box on the payment / terms / sign-up pages. The values are pictures (15px text, 2x); no big footer. */
.ft.bzl { display: block; margin-top: 24px; background: none; border-top: 1px solid var(--border); }
.bzl-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding-top: 10px; padding-bottom: 12px; }
.bzl-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.bzl-links a { font-size: 14px; font-weight: 600; line-height: 32px; color: var(--sub); }
.bzl-links a:hover { color: var(--text); text-decoration: underline; }
.bizimg, .bizimg img { display: block; max-width: 100%; height: auto; }
.bzbox { margin: 16px 4px 8px; padding: 14px 0 0; border-top: 1px solid var(--border); }
.bzbox-doc { margin: 24px 0 0; }
.biz-inl { display: inline-block; max-width: 100%; height: auto; }
@media (max-width: 640px) {
  .ft.bzl { margin-top: 16px; }
  .bzl-in { gap: 2px 16px; padding-top: 8px; padding-bottom: 10px; }
  .bzbox { margin-left: 16px; margin-right: 16px; }
}

/* 2026-12-04 요구사항 A-3: 닉네임 옆 유료 등급 왕관 (services/tiers.badge) */
.tb { display: inline-block; flex: none; width: 18px; height: 18px; margin-left: 4px; vertical-align: -3px; }
.pf-nm .tb { width: 24px; height: 24px; vertical-align: middle; }
.rk-pod-n .tb, .rk-nick .tb, .rk .mp-ell > .tb:first-child { margin: 0 4px 0 0; }

/* 2026-12-05 탭5: PC (mouse) - the write boxes (가운데 글쓰기 창, 이 종목 생각 칸, 댓글·답글 칸, 예측 이유 칸) grow by dragging the
   bottom-right corner. Phones keep their boxes as they were. JS: app.js (data-sized) */
@media (hover: hover) and (pointer: fine) {
  html .pc3-w textarea, html .es-preds .es-cm-top textarea, html .es-cm-form textarea, html .pc3-d-form textarea, html .es-pd-form textarea {
    resize: vertical !important; max-height: 70vh !important; }
  html .es-pd-row textarea { resize: none !important; }   /* the reason box beside the price fields fills its grid cell */
  html .pc3-w { height: auto; }                           /* 글쓰기 창: the window follows the box (it was a fixed 720px with a filling box) */
  html .pc3-w textarea { flex: 0 0 auto; height: min(420px, calc(100vh - 260px)); min-height: 160px; max-height: calc(100vh - 200px) !important; }
}
