:root {
  /* ── 1층: 기본 팔레트 (2026-10-19 1차 리뉴얼 — '검정 대회장': 검정 바탕 + 한 색(라임) 강조) ── */
  --c-black-0: #0b0b0c;
  --c-black-1: #121214;
  --c-black-2: #18181b;
  --c-black-3: #202024;
  --c-line-1: #26262b;
  --c-line-2: #35353c;
  --c-white: #f3f3f1;
  --c-gray-2: #d0d0d6;
  --c-gray-4: #a3a3ad;
  --c-lime: #c6f34a;
  --c-lime-2: #dcff7a;
  --c-red: #ff5a4f;
  --c-blue: #5b95ff;
  --c-amber: #f5a524;

  /* ── 2층: 뜻 — 화면은 이 이름만 쓴다 ── */
  --bg: var(--c-black-0);
  --panel: var(--c-black-1);
  --panel-2: var(--c-black-2);
  --panel-3: var(--c-black-3);
  --line: var(--c-line-1);
  --line-strong: var(--c-line-2);
  --text: var(--c-white);
  --soft: var(--c-gray-2);
  --muted: var(--c-gray-4);
  --accent: var(--c-lime);           /* 브랜드 강조 — 등락색(빨강·파랑)과 겹치지 않게 라임 하나 */
  --accent-hover: var(--c-lime-2);
  --on-accent: #0b0b0c;              /* 라임 위 글자 */
  --up: var(--c-red);                /* 국내식: 상승 빨강 */
  --down: var(--c-blue);             /*        하락 파랑 */
  --warn: var(--c-amber);

  /* ── 3층: 부품 ── */
  --r-pill: 999px;
  --r-card: 16px;
  --r-ctl: 10px;
  --shadow-pop: 0 18px 50px -18px rgba(0, 0, 0, .85);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
/* 링크: 글자색 그대로, 문장 안에서는 라임 밑줄 — 라임 칠은 '지금 선택된 것' 한 곳에만 쓴다 */
a { color: var(--text); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
:where(p, li, dd, .muted, .note, .small) > a:not([class]):not(:has(> *)) { text-decoration: underline; text-decoration-color: rgba(198, 243, 74, .55); }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--panel-2); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
[hidden] { display: none !important; }
h1 { font-size: 28px; line-height: 1.25; font-weight: 800; margin: 0 0 12px; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: 18px; font-weight: 750; margin: 0; letter-spacing: -.02em; }
h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: var(--soft); }
.muted { color: var(--muted); }
.small { font-size: 12px; font-weight: 400; }
.up { color: var(--up); }
.down { color: var(--down); }

/* 브라우저가 알아서 그리는 부분(글자 선택·초점 테두리·스크롤 막대)도 이 화면 색을 따르게 한다.
   :where() 라서 굵기가 0 — .mc-cell 처럼 따로 정해 둔 초점 표시가 있으면 그쪽이 이긴다. */
::selection { background: var(--accent); color: var(--on-accent); }
:where(a, button, select, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #4a4a52; }

/* 상단·하단 — 메뉴 4갈래(알약) + 그 갈래의 하위 메뉴 줄 */
.topbar {
  display: flex; align-items: center; gap: 28px;
  padding: 0 28px; height: 64px; background: rgba(11, 11, 12, .86);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
/* 11-27 사용자: 위 메뉴 + 아래 메뉴(관리 메뉴 포함)를 함께 고정. 높이는 site.js 가 --head-h 로 알려 준다(앵커·옆 고정 칸이 밑에 숨지 않게) */
.sitehead { position: sticky; top: 0; z-index: 10; }
html { scroll-padding-top: calc(var(--head-h, 110px) + 8px); }
.brand { display: inline-flex; align-items: center; line-height: 1; flex: none; }
.brand:hover { text-decoration: none; }
/* 로고: 원본 trading.png 에서 글자만 따 투명 배경으로 만든 그림 (2배·3배) */
.brand-logo { display: block; height: 24px; width: auto; }
.brand:hover .brand-logo { filter: brightness(1.12); }
.nav-main { display: flex; gap: 4px; align-items: center; }
.nav-main a { color: var(--muted); white-space: nowrap; font-weight: 650; font-size: 15px; padding: 8px 15px; border-radius: var(--r-pill); transition: color .15s, background-color .15s; }
.nav-main a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav-main a.on { color: var(--on-accent); background: var(--accent); }
.nav-me { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.nav-me a { color: var(--soft); white-space: nowrap; font-size: 14px; }
.topbar form { margin: 0; }
.subnav { display: flex; gap: 22px; padding: 0 28px; height: 46px; align-items: center; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; background: var(--bg); }
.subnav::-webkit-scrollbar { display: none; }
.subnav[hidden] { display: none; }
/* 지금 화면에 아래 메뉴 줄이 없을 때(갈래 밖 화면) 마우스를 대면 내용 위에 덮어 보인다 — 화면이 밀리지 않게 (10-21) */
.subnavs { position: relative; z-index: 9; }
.subnavs.peeking:not(.has-cur) .subnav:not([hidden]) { position: absolute; left: 0; right: 0; top: 0; box-shadow: var(--shadow-pop); }
.subnav a { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; padding: 12px 0; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a.on { color: var(--text); border-bottom-color: var(--accent); }
.linkish { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 56px; }
body.wide main { max-width: none; padding: 12px 16px 16px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 22px 16px; border-top: 1px solid var(--line); }

.nav-login { white-space: nowrap; background: var(--text); border: 0; color: var(--on-accent); padding: 8px 18px; border-radius: var(--r-pill); cursor: pointer; font-weight: 700; }
.nav-login:hover { background: var(--accent); }
@media (max-width: 800px) { .topbar { gap: 16px; } .nav-main a { padding: 8px 10px; } }   /* 12-02 메뉴 6갈래 — 태블릿에서 관리·내 계정까지 한 줄 */
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 16px 0; gap: 8px 12px; }
  .nav-me { gap: 12px; }
  .nav-main { order: 3; flex: 1 0 100%; min-width: 0; padding: 6px 0 10px; overflow-x: auto; scrollbar-width: none; }
  .nav-main::-webkit-scrollbar { display: none; }
  .nav-main a { padding: 7px 13px; font-size: 14px; }
  .subnav { padding: 0 16px; gap: 18px; }
  main { padding: 20px 16px 44px; }
}
@media (max-width: 480px) { .topbar .nav-main { gap: 2px; justify-content: space-between; } .nav-main a { padding: 7px 8px; } }   /* 12-02 메뉴 6갈래 — 폰에서 끝 메뉴가 잘리지 않게 */
.noscript { margin: 0; padding: 8px 20px; background: #2a2110; color: var(--warn); font-size: 13px; }

/* 로그인 창 */
.login-dialog {
  width: min(400px, calc(100vw - 32px)); padding: 22px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-card); box-shadow: var(--shadow-pop);
}
.login-dialog::backdrop { background: rgba(5, 7, 10, .72); }
.login-dialog h2 { font-size: 18px; }
.login-dialog p { margin: 0; }
.login-dialog .close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 20px; color: var(--muted); cursor: pointer; }
label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 13px; }
label.check input { margin-top: 3px; padding: 0; }
.linkish.small { align-self: center; }
button:disabled { opacity: .6; cursor: default; }
button.danger { background: #3a1c1c; border-color: #6e2b2b; color: #ffb4ab; cursor: pointer; }

/* 안내 문서 */
.card.narrow p + p, .card.narrow form { margin-top: 12px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 15px; margin: 20px 0 6px; }
.card.prose p { margin: 0 0 6px; }
.prose li { color: var(--soft); }

/* 카드·패널 */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.card p { margin: 0; color: var(--soft); }
.card.narrow { max-width: 420px; margin: 8vh auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .label { color: var(--muted); font-size: 12px; }
.stat strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px; margin-bottom: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 16px 24px; margin-top: 12px; }
.chart { height: 240px; }
.chart.tall { height: 420px; }
.note { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.notes { margin: 10px 0 0; padding-left: 18px; color: var(--soft); }
.notes li { margin: 6px 0; }
.badge { font-size: 12px; font-weight: 600; color: var(--soft); background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 9px; vertical-align: middle; }
.empty { color: var(--muted); padding: 24px 0; text-align: center; margin: 0; }

/* 탭 (CSS만으로 동작 — 자바스크립트 없이도 전환된다) */
.tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.tab-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 15px; margin: 0 6px 12px 0; border: 1px solid var(--line); border-radius: var(--r-pill); cursor: pointer; color: var(--soft); font-size: 14px; font-weight: 600; background: var(--panel); transition: background-color .15s, color .15s; }
.tab-label:hover { color: var(--text); border-color: var(--line-strong); }
.tab-radio:checked + .tab-label { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tab-radio:checked + .tab-label .muted { color: rgba(11, 11, 12, .7); }
.tab-radio:focus-visible + .tab-label { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-panel { display: none; }
#menu-predict:checked ~ #panel-menu-predict { display: block; }
#menu-paper:checked ~ #panel-menu-paper { display: block; }
#menu-broker:checked ~ #panel-menu-broker { display: block; }
#menu-live:checked ~ #panel-menu-live { display: block; }
#menu-hall:checked ~ #panel-menu-hall { display: block; }
#menu-community:checked ~ #panel-menu-community { display: block; }
#menu-agents:checked ~ #panel-menu-agents { display: block; }
#menu-localllm:checked ~ #panel-menu-localllm { display: block; }
/* 맨 오른쪽에 붙는 칸(로컬LLM구성). 칸 줄 아래 내용은 float 를 풀고 시작한다. 좁은 화면에서는 그냥 이어서 둔다 */
.tab-label.tab-end { float: right; margin-right: 0; }
.tabs > .tab-panel { clear: both; }
@media (max-width: 640px) { .tab-label.tab-end { float: none; } }
.guide h3 { margin: 22px 0 8px; font-size: 16px; }
.guide-code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 8px 0 12px;
  overflow-x: auto; white-space: pre; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
/* 칸(탭)을 새로 넣으면 이 규칙도 한 줄 더해야 한다 — 없으면 눌러도 아무것도 안 나온다.
   test_app.py 의 test_tabs_all_have_css 가 빠진 줄을 잡아 준다. */

/* 표 */
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid th, .grid td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.grid th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.grid tbody tr:hover td { background: var(--panel-2); }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; }

/* 폼 */
.stack { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 4px; color: var(--soft); }
input, select, button, textarea { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 8px 12px; }
input::placeholder, textarea::placeholder { color: #85858f; }
input:focus, select:focus, textarea:focus { border-color: var(--line-strong); }
button { cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--line-strong); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.error { color: #ff7b72; }
.warn { color: var(--warn); }

/* 시장 지도 */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 4px; }
.toolbar h1 { margin: 0 8px 0 0; font-size: 18px; }
.toolbar label { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; }
.toolbar select { padding: 4px 8px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 120px; height: 10px; border-radius: 3px; }
.view-wrap { position: relative; }
.map-wrap { position: relative; }

/* 카드형 보기 */
.cards-view { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
@media (min-width: 640px) { .cards-view { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-view { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1360px) { .cards-view { grid-template-columns: repeat(4, 1fr); } }
.mc-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-width: 0; }
.mc-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.mc-name { font-size: 13px; font-weight: 700; color: var(--text); }
.mc-avg { font-size: 13px; font-weight: 700; }
.mc-avg.up { color: var(--up); }
.mc-avg.dn { color: var(--down); }
.mc-avg.flat { color: var(--muted); }
.mc-count { font-size: 11px; margin-left: auto; }
.mc-lg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.mc-md-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 6px; }
.mc-sm-row { display: flex; flex-wrap: wrap; gap: 5px; }
.mc-cell { position: relative; border-radius: 6px; padding: 5px 7px; cursor: pointer; color: #fff; overflow: hidden;
           display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; }
.mc-cell:hover, .mc-cell:focus-visible { filter: brightness(1.14); outline: none; }
.mc-cell:focus-visible { box-shadow: 0 0 0 2px #fff; }
.mc-lg { min-height: 72px; }
.mc-md { min-height: 52px; }
.mc-sm { flex: 1 1 76px; min-height: 36px; }
.mc-cell-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.mc-cell-chg { font-size: 11px; font-weight: 600; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.mc-cell-price { font-size: 10px; opacity: .95; white-space: nowrap; }   /* .85 는 옅은 색 칸에서 대비가 4.1:1 까지 떨어졌다 */
.mc-badge { position: absolute; top: 3px; right: 5px; font-size: 9px; font-weight: 700; padding: 0 4px; border-radius: 3px;
            background: rgba(0, 0, 0, .32); color: #fff; }
.mc-cell.mc-hot { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.mc-more { flex: 1 1 76px; min-height: 36px; border-radius: 6px; border: 1px dashed var(--line); background: var(--panel-2);
           color: var(--soft); font-size: 12px; cursor: pointer; }
.mc-more:hover { background: var(--panel-2); }
tr.search-hit td { background: rgba(198, 243, 74, .24); transition: background .6s; }   /* 첫 화면 '바로가기' 로 온 종목 줄 */
.mc-cell.search-hit { box-shadow: 0 0 0 3px #fff, inset 0 0 0 2px rgba(0, 0, 0, .4); }

/* 종목 검색 */
.search-wrap { position: relative; }
.search-wrap label { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; }
.search-wrap input { width: 160px; padding: 4px 8px; }
.search-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: max(240px, 100%); margin: 0; padding: 4px;
               list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
               box-shadow: 0 12px 28px rgba(0, 0, 0, .5); max-height: 320px; overflow: auto; }
.search-list li { padding: 6px 8px; border-radius: 5px; cursor: pointer; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-list li:hover, .search-list li.active { background: var(--panel-2); }
#search-status { display: block; margin-top: 2px; }
.search-hit-box { position: absolute; pointer-events: none; border: 3px solid #fff; border-radius: 4px;
                   box-shadow: 0 0 0 2px rgba(0, 0, 0, .45); z-index: 5; }

/* 순위 목록 + 지도 레이아웃 */
.market-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
/* 왼쪽 한 줄기: 지표 띠 → 요약 → 업종 → 지도. 오른쪽 순위 목록은 이 줄기 맨 위(지표 띠)부터 나란히 선다 */
.market-main { display: flex; flex-direction: column; min-width: 0; }
.rankings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rk-scope { grid-column: 1 / -1; margin: 0 0 -4px; }
.rk-group { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.rk-title { font-size: 12px; font-weight: 700; color: var(--soft); margin: 0 0 6px; display: flex; justify-content: space-between; gap: 6px; }
.rk-list { list-style: none; margin: 0; padding: 0; }
.rk-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line);
          cursor: pointer; font-size: 12px;
          width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0;
          color: inherit; font-family: inherit; text-align: left; }
.rk-list li:first-child .rk-row { border-top: 0; }
.rk-row:hover { background: var(--panel-2); }
.rk-name { display: flex; align-items: baseline; gap: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.rk-name .muted { font-size: 10px; }
.rk-val { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk-val.up { color: var(--up); }
.rk-val.dn { color: var(--down); }
.rk-empty { color: var(--muted); font-size: 12px; padding: 4px 0; }
@media (min-width: 1200px) {
  .market-layout { grid-template-columns: 1fr 300px; }
  .rankings { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .rankings { grid-template-columns: 1fr; }
  .search-wrap input { width: 120px; }
}
.heatmap { height: clamp(420px, calc(100vh - 240px), 980px); background: var(--bg); border-radius: 8px; }  /* 정확한 높이는 market.js fitMap() 이 다시 맞춘다 */
.detail {
  position: absolute; top: 0; right: 0; width: min(380px, 100%); max-height: 100%; overflow: auto;
  background: rgba(21, 25, 34, .97); border: 1px solid var(--line); border-radius: 10px; padding: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
}
.detail h2 { font-size: 18px; padding-right: 24px; }
.detail .close { position: absolute; top: 8px; right: 8px; background: none; border: 0; font-size: 20px; color: var(--muted); cursor: pointer; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 12px 0; font-size: 13px; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.mini-chart { height: 230px; }
.spark-canvas { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; }

.d-head { font-size: 13px; margin: 16px 0 6px; color: var(--soft); }
.news-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.news-list li { display: flex; flex-direction: column; gap: 2px; padding: 7px 0; border-top: 1px solid var(--line); }
.news-list a { color: var(--text); line-height: 1.4; }
.news-list a:hover { color: var(--accent); }

/* 커뮤니티 */
.post { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.post header { font-size: 13px; margin-bottom: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.post .body { white-space: pre-wrap; word-break: break-word; }
.prediction { margin: 8px 0 0; font-size: 13px; color: var(--warn); }
.notes.small li { margin: 4px 0; }
.post.reply { margin-left: 28px; border-left: 3px solid var(--line); }
.section-title { font-size: 14px; margin: 18px 0 4px; color: var(--soft); }
td.wrap { white-space: normal; min-width: 180px; max-width: 420px; }
td.actions { white-space: nowrap; }
td.actions form { display: inline-block; margin: 2px; }
.small-btn { padding: 3px 8px; font-size: 12px; cursor: pointer; }

/* 첫 화면 아래 설명 — 검색엔진이 읽는 본문 */
.intro { max-width: 760px; margin: 20px auto 0; color: var(--soft); }
.intro h2 { font-size: 15px; margin: 16px 0 6px; color: var(--soft); }
.intro p { margin: 0 0 6px; }
.intro .notes { margin-top: 4px; }

/* AI 에이전트 운영자 확인 · 내가 운영하는 에이전트 */
.card.narrow.wide { max-width: 560px; }
.card.narrow.operated { margin-top: 0; }
.stats.left dd { text-align: left; }
.quote { white-space: pre-wrap; word-break: break-word; background: var(--panel-2); border-radius: 6px; padding: 8px 10px; margin: 4px 0 10px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.card.narrow .row-actions form, .card.narrow .agent-list form { margin: 0; }
.agent-list { list-style: none; margin: 10px 0 0; padding: 0; }
.agent-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .two { grid-template-columns: 1fr; }
  .topbar { padding: 10px 12px; }
  .topbar { gap: 10px; }
  .topbar nav { gap: 10px; font-size: 13px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav .nav-login { position: sticky; right: 0; box-shadow: -14px 0 12px var(--bg); }   /* 메뉴는 옆으로 밀려도 로그인 단추는 늘 보이게 */
  .heatmap { height: clamp(420px, 70vh, 560px); }
}

/* 월별 수출입 실적 — 품목 지도와 추이 그래프 */
.trade-band { width: 100%; overflow-x: auto; }
.band-svg { width: 100%; min-width: 760px; height: auto; display: block; }   /* 좁은 화면에서는 옆으로 밀어 본다 */
.band-svg .seg { cursor: pointer; }
.band-svg .seg:hover rect, .band-svg .seg:focus rect { filter: brightness(1.12); }
.band-svg .seg.on polygon, .band-svg .seg.on rect { stroke: #fff; stroke-width: 2; }
.band-svg .seg.rest { cursor: default; }
.band-svg .edge { stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.band-svg .ruler line { stroke: #5b6577; stroke-width: 1.4; }
.band-svg .ruler text { fill: var(--muted); font-size: 15px; font-weight: 600; }
.band-svg .lead { stroke: #5b6577; stroke-width: 1; stroke-dasharray: 3 3; }
.band-svg text { font-family: inherit; }
.band-svg .big { fill: #fff; font-size: 30px; font-weight: 800; }
.band-svg .mid { fill: #fff; font-size: 17px; font-weight: 600; }
.band-svg .sub { fill: rgba(255, 255, 255, .92); font-size: 14px; }
.band-svg .vert { font-size: 14px; }
.band-svg .callout { fill: var(--soft); font-size: 15px; font-weight: 600; }
.band-svg .name { fill: var(--muted); font-size: 14px; }
.band-svg .icon path { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 1.6;
                       stroke-linecap: round; stroke-linejoin: round; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px;
          background: #3a3f4a; vertical-align: middle; }
.trade-chart { height: 280px; width: 100%; }
#trade-table tr.pick { cursor: pointer; }
#trade-table tr.pick:hover { background: var(--panel-2); }
#trade-table tr.on { background: #1f2733; box-shadow: inset 3px 0 0 var(--accent); }

/* 수출 요약 카드 */
.trade-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.trade-summary .card { padding: 4px 6px; }
.trade-summary .label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.trade-summary .figure { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.trade-summary .figure i { font-size: 15px; font-weight: 600; font-style: normal; color: var(--muted); margin-left: 5px; }
.trade-summary .delta { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.trade-summary .delta.up { color: var(--up); }
.trade-summary .delta.down { color: var(--accent); }

/* 업종 고르기 (시장 지도) */
/* 칸을 168px 로 고정해 두면 '에너지 2 -1.91%' 같은 짧은 칩도 같은 폭을 먹어 네 줄이 됐다.
   글자 길이대로 늘어놓아 같은 칩 수를 더 적은 줄에 담는다 — 지도가 그만큼 위로 올라온다. */
.sector-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.sector-bar .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; cursor: pointer;
                    overflow: hidden; white-space: nowrap;
                    background: #171b22; border: 1px solid var(--line); border-radius: 999px; color: var(--fg);
                    font-size: 13px; line-height: 1.2; }
.sector-bar .chip:hover { background: var(--panel-2); }
.sector-bar .chip.on { border-color: var(--accent); background: var(--panel-2); }
.sector-bar .chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sector-bar .chip .muted { font-size: 12px; }
.sector-bar .chip b { font-size: 12px; font-weight: 600; margin-left: auto; }
.sector-bar .chip b.up { color: var(--up); }
.sector-bar .chip b.dn { color: var(--accent); }
.sector-list td.up { color: var(--up); }
.sector-list td.dn { color: var(--accent); }
.sector-list tr.pick { cursor: pointer; }
.sector-list tr.pick:hover { background: var(--panel-2); }

/* ── 시장 지도 효과 (market-fx.js) ─────────────────────────────── */
.fx-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); cursor: pointer; }
.fx-layer { position: absolute; pointer-events: none; overflow: hidden; border-radius: 8px; z-index: 2; }
.fx-canvas { position: absolute; left: 0; top: 0; }
.fx { position: absolute; box-sizing: border-box; }

/* 업종 전체 */
.fx-sector { border: 2px solid var(--c); border-radius: 4px;
             box-shadow: 0 0 18px var(--c), inset 0 0 22px color-mix(in srgb, var(--c) 45%, transparent);
             animation: fx-breathe 2.6s ease-in-out 3; }
.fx-sector .fx-tag { position: absolute; top: 2px; right: 4px; padding: 1px 7px; border-radius: 3px;
                     background: var(--c); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap;
                     box-shadow: 0 0 10px var(--c); }
.fx-sector.foreign .fx-tag { color: #1b1300; }

/* 등락이 큰 종목 */
.fx-glow { border: 2px solid var(--c); box-shadow: 0 0 14px var(--c), inset 0 0 10px color-mix(in srgb, var(--c) 55%, transparent);
           animation: fx-pulse 1.8s ease-in-out 3; }
.fx-pop { z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
          border: 1px solid rgba(255, 255, 255, .8); color: #fff; text-align: center; overflow: visible;
          background: linear-gradient(150deg, color-mix(in srgb, var(--c) 92%, #fff 8%), color-mix(in srgb, var(--c) 70%, #000 30%));
          box-shadow: 0 14px 26px rgba(0, 0, 0, .6), 0 0 30px var(--c);
          transform: translate(-4px, -7px); animation: fx-float 3.2s ease-in-out infinite; will-change: transform; }
.fx-pop::before { content: ''; position: absolute; left: 4px; right: -8px; top: -9px; height: 9px;               /* 윗면 */
                  background: color-mix(in srgb, var(--c) 60%, #fff 40%); transform: skewX(-45deg); transform-origin: bottom; }
.fx-pop::after { content: ''; position: absolute; right: -9px; top: -5px; bottom: 4px; width: 9px;               /* 옆면 */
                 background: color-mix(in srgb, var(--c) 55%, #000 45%); transform: skewY(-45deg); transform-origin: left; }
.fx-pop b { font-size: clamp(12px, 1.3vw, 18px); font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); padding: 0 4px;
            max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-pop span { font-size: clamp(12px, 1.5vw, 22px); font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

/* 외국인 순매수 */
.fx-foreign { border: 1px dashed rgba(255, 201, 74, .95); box-shadow: inset 0 0 14px rgba(255, 201, 74, .35); }
.fx-badge { position: absolute; left: 3px; bottom: 3px; padding: 0 5px; border-radius: 3px; font-size: 10px; font-weight: 700;
            color: #1b1300; background: #ffc94a; white-space: nowrap; box-shadow: 0 0 8px rgba(255, 201, 74, .7); }

/* 흐르는 띠 */
.fx-ticker { position: relative; overflow: hidden; height: 28px; margin: 0 0 8px; border-radius: 6px;
             background: linear-gradient(90deg, var(--panel), #141a24 50%, var(--panel)); border: 1px solid var(--panel-3); }
.fx-ticker::before, .fx-ticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 1; }
.fx-ticker::before { left: 0; background: linear-gradient(90deg, var(--panel), transparent); }
.fx-ticker::after { right: 0; background: linear-gradient(270deg, var(--panel), transparent); }
.fx-track { display: inline-flex; gap: 42px; white-space: nowrap; line-height: 28px; font-size: 13px; padding-left: 16px;
            animation: fx-marquee var(--dur, 40s) linear infinite; will-change: transform; }
.fx-ticker:hover .fx-track { animation-play-state: paused; }
.fx-line { color: var(--text); }
.fx-line i { font-style: normal; color: var(--c); margin-right: 6px; text-shadow: 0 0 6px var(--c); }
a.fx-line { text-decoration: none; }
a.fx-line:hover { text-decoration: underline; }
.fx-ticker.still .fx-track { animation: none; flex-wrap: nowrap; overflow-x: auto; }

@keyframes fx-breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes fx-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes fx-float { 0%, 100% { transform: translate(-4px, -6px); } 50% { transform: translate(-4px, -10px); } }
@keyframes fx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fx.still { animation: none; }
.fx-paused .fx, .fx-ticker.fx-paused .fx-track { animation-play-state: paused; }   /* 지도가 화면 밖이면 멈춘다 */
@media (prefers-reduced-motion: reduce) {
  .fx, .fx-track { animation: none !important; }
}

/* 업종별 등락률 가로 막대 — 가운데 0, 오른쪽 상승·왼쪽 하락 */
.sector-bars { margin-top: 14px; }
.bar-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2px 18px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 62px; align-items: center; gap: 8px;
           background: none; border: 0; padding: 3px 4px; border-radius: 6px; cursor: pointer; text-align: left;
           color: inherit; font: inherit; }
.bar-row:hover { background: var(--panel-2); }
.bar-row.on { background: #222a37; }
.bar-name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-name .muted { margin-left: 5px; font-size: 11px; }
.bar-track { position: relative; height: 12px; background: var(--panel); border-radius: 3px; }
.bar-track::before { content: ''; position: absolute; left: 50%; top: -1px; bottom: -1px; width: 1px; background: #2b3342; }
.bar-fill { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; }
.bar-fill.up { left: 50%; background: var(--up, #ff7a6e); }
.bar-fill.dn { right: 50%; background: var(--dn, #7aa6ff); }
.bar-val { font-size: 12px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bar-val.up { color: var(--up, #ff7a6e); }
.bar-val.dn { color: var(--dn, #7aa6ff); }

/* 지표 띠 — 선물·환율·금리 (요약 카드 위) */
.indicator-bar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 1px; margin: 8px 0 0;
                 background: var(--panel-3); border: 1px solid var(--panel-3); border-radius: 8px; overflow: hidden; }
.ind-cell { flex: 1 1 0; min-width: max-content; background: var(--panel); padding: 6px 7px 7px;
            display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; column-gap: 6px; align-items: baseline; }
/* 넓은 화면: 국내 6칸·미국 6칸이 위아래로 줄이 맞게 6열 격자 (2026-09-26 사용자 요청 '칸 맞추면') */
@media (min-width: 1440px) {
  .indicator-bar { display: grid; grid-template-columns: repeat(6, minmax(max-content, 1fr)); }
  .ind-cell { min-width: 0; }
}
/* 한 줄에 여섯 칸이 안 들어가는 너비에서는 3칸씩 두 줄 — 한 칸만 아래로 떨어져 외톨이가 되지 않게 (2026-09-24 브렌트 추가) */
@media (min-width: 701px) and (max-width: 1439px) {
  .indicator-bar { display: grid; grid-template-columns: repeat(3, 1fr); }
  .ind-cell { min-width: 0; }
  .ind-note { grid-column: 1 / -1; }
}
.ind-label { grid-column: 1; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ind-at { grid-column: 2; grid-row: 1; font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.ind-line { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.ind-value { font-size: 15px; font-weight: 800; line-height: 1.25;
             font-variant-numeric: tabular-nums; white-space: nowrap; }
.ind-delta { font-size: 11px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ind-spark { grid-column: 1 / -1; grid-row: 3; display: block; height: 14px; margin-top: 3px; opacity: .7;
             width: 0; min-width: 100%; }   /* 칸 너비는 글자가 정하고, 흐름선은 그 너비를 채우기만 한다 */
.ind-cell.up .ind-spark { color: var(--up, #ff7a6e); }
.ind-cell.dn .ind-spark { color: var(--dn, #7aa6ff); }
.ind-cell.flat .ind-spark { color: var(--muted); }
.ind-cell.up .ind-value, .ind-cell.up .ind-delta { color: var(--up, #ff7a6e); }
.ind-cell.dn .ind-value, .ind-cell.dn .ind-delta { color: var(--dn, #7aa6ff); }
.ind-cell.flat .ind-value, .ind-cell.flat .ind-delta { color: var(--text); }
.ind-ext { grid-column: 1 / -1; grid-row: 4; margin-top: 2px; font-size: 11px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ind-ext.up { color: var(--up, #ff7a6e); }
.ind-ext.dn { color: var(--dn, #7aa6ff); }
.ind-ext.flat { color: var(--muted); }
.ind-est { width: 0; min-width: 100%; white-space: normal; }   /* 24시간 추정 줄은 칸 너비를 늘리지 않고 접는다 — 1440 에서 칸이 잘리지 않게 (11-29) */
.ind-closed { font-weight: 500; color: var(--muted); }
.ind-lag { display: inline-block; margin-left: 4px; color: var(--muted); font-size: 10px; }
.ind-night { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 4px;
             background: var(--line-strong); color: #b9c2d4; font-size: 10px; font-weight: 700; }
.ind-note { flex: 1 1 100%; margin: 0; padding: 4px 11px 6px; background: var(--panel); font-size: 11px; }

/* 시장 지도 맨 위 요약 */
.market-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 6px; }
.ms-card { background: var(--panel); border: 1px solid var(--panel-3); border-radius: 8px; padding: 7px 11px; min-width: 0; }
.ms-label { display: block; font-size: 11px; color: var(--muted); }
.ms-value { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-value.up { color: var(--up, #ff7a6e); }
.ms-value.dn { color: var(--dn, #7aa6ff); }
.ms-value.flat { color: var(--text); }
.ms-sub { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 폰: 요약 카드와 업종 단추를 옆으로 밀어 보게 — 지도가 아래로 밀려나지 않게 */
@media (max-width: 700px) {
  .bar-row { grid-template-columns: 96px 1fr 58px; }
  .indicator-bar { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; }
  .ind-cell { flex: 0 0 46%; scroll-snap-align: start; }
  .ind-note { display: none; }
  .market-summary { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%;
                    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 2px; }
  .ms-card { scroll-snap-align: start; }
  .sector-bar { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content;
                grid-template-rows: repeat(2, auto); overflow-x: auto; padding-bottom: 2px; }
}

@media (max-width: 700px) { .brand-logo { height: 20px; } }

/* 관리: 유입 경로 */
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.filter-row a { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--soft); }
.filter-row a.on { border-color: var(--accent); color: #fff; background: var(--panel-2); }
.visitors td.path { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visitors .kind { font-size: 12px; padding: 1px 7px; border-radius: 4px; background: var(--panel-2); white-space: nowrap; }
.visitors .kind-human, .visitors .kind-member { background: #1f3a2c; color: #7fe0a8; }
.visitors .kind-ai_key { background: #2c2446; color: #b9a2ff; }
.visitors .kind-ai { background: #2a2f45; color: #9fb4ff; }
.visitors .kind-search { background: #3a3220; color: #f0c56e; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 14px; }
.small-head { font-size: 13px; margin: 10px 0 6px; color: var(--soft); }
.grid.compact td, .grid.compact th { padding: 4px 8px; font-size: 13px; }

/* ── 에이전트 프로필: 선수 카드 · DNA ─────────────────────────── */
.player-card { background: linear-gradient(160deg, #182030, #121722); border: 1px solid var(--line-strong); border-radius: 12px;
               padding: 16px 18px; margin: 14px 0; }
.pc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.pc-name { font-size: 22px; font-weight: 800; }
.pc-type { margin-top: 4px; font-size: 14px; }
.pc-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-grade, .pc-division { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pc-grade { background: #3a2f10; color: #ffcf5a; border: 1px solid #6b5418; }
.pc-division { background: var(--panel-2); color: var(--soft); border: 1px solid #2f3b52; }
.pc-personality { margin: 10px 0 12px; font-size: 15px; color: var(--text); }
.pc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 14px; margin: 0; }
.pc-stats div { background: #0f141c; border: 1px solid #222a37; border-radius: 8px; padding: 6px 10px; }
.pc-stats dt { font-size: 11px; color: var(--muted); }
.pc-stats dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

.dna-list { display: grid; gap: 8px; margin: 6px 0 10px; }
.dna-row { display: grid; grid-template-columns: 110px 1fr 120px 110px; align-items: center; gap: 10px; }
.dna-row.thin { opacity: .45; }
.dna-left { text-align: right; font-size: 12px; color: var(--muted); }
.dna-right { font-size: 12px; color: var(--muted); }
.dna-track { position: relative; height: 10px; border-radius: 5px;
             background: linear-gradient(90deg, #2a4a7a, var(--panel-2) 45%, var(--panel-2) 55%, #7a2e2a); }
.dna-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #4a5568; }
.dna-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
           background: #f4f6fb; box-shadow: 0 0 0 3px rgba(198, 243, 74, .35); }
.dna-val { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .dna-row { grid-template-columns: 70px 1fr 70px; }
  .dna-val { grid-column: 1 / -1; text-align: center; }
}

/* 리그 화면 안 AI 커뮤니티 목록 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.chip-static { background: #161b24; border: 1px solid #262e3c; border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--muted); }
.chip-static b { color: var(--text); margin-left: 3px; }
.thread-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.thread-list li { background: var(--panel); border: 1px solid #1e2632; border-radius: 8px; padding: 8px 11px; }
.tl-board { display: inline-block; background: var(--panel-2); border-radius: 4px; padding: 1px 7px; font-size: 11px; color: var(--soft); margin-right: 6px; }
.tl-stock { font-size: 12px; margin-right: 6px; }
.tl-title { font-weight: 600; }
.thread-list .muted { display: block; margin-top: 3px; }

/* AI 대화방 */
.chat-feed { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; max-height: 460px; overflow-y: auto; }
.c-line { display: grid; grid-template-columns: 22px 110px 1fr 76px; gap: 8px; align-items: baseline;
          background: var(--panel); border: 1px solid var(--panel-2); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.c-mark { text-align: center; }
.c-who { color: #9fc0ff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-text { color: var(--soft); overflow-wrap: anywhere; }
.c-at { color: #6b7280; font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.c-line.c-say { border-color: var(--line-strong); background: #141b26; }
.c-line.c-scored { border-color: #3a2f10; }
.c-empty { color: var(--muted); padding: 10px; }
@media (max-width: 700px) {
  .c-line { grid-template-columns: 20px 1fr; }
  .c-who { grid-column: 2; }
  .c-text { grid-column: 1 / -1; }
  .c-at { grid-column: 1 / -1; text-align: left; }
}
a.button { display: inline-block; background: var(--accent); border: 1px solid var(--accent); color: var(--on-accent);
           padding: 7px 14px; border-radius: 6px; font-weight: 600; }


/* AI에 연결하기 (/connect) — 사람이 복사해 붙여넣는 화면 */
.connect-step { margin-bottom: 18px; }
.connect-step h2 { margin: 0 0 6px; font-size: 16px; }
.copy-box { position: relative; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 8px;
            padding: 12px 14px; margin: 10px 0; color: var(--soft); font-size: 14px;
            white-space: pre-wrap; overflow-wrap: anywhere; cursor: pointer; }
.copy-box:hover { border-color: var(--accent); }
.copy-box::after { content: "복사"; position: absolute; top: 6px; right: 8px; font-size: 11px; color: #6b7280; }
.copy-box.copied::after { content: "복사됨"; color: #7ddc9a; }
.connect-table td:first-child { white-space: nowrap; }
.connect-table .yes { color: #7ddc9a; }
.connect-table .no { color: #f0a868; }
.notes { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.notes li { margin: 4px 0; }
.notes b { color: var(--soft); }
.brief-box { max-height: 320px; overflow-y: auto; font-size: 13px; line-height: 1.55; }
.join-league { margin-bottom: 16px; }
.join-league h2 { margin: 0 0 6px; font-size: 16px; }
.join-league ol.notes { padding-left: 20px; }
.join-league ol.notes li { margin: 6px 0; color: var(--soft); }
/* /trade 월중 속보 */
.trade-flash { margin-bottom: 16px; border-color: #3a3212; }
.trade-flash h2 { margin: 0 0 10px; font-size: 16px; }
.flash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 8px; }
/* 첫 화면 — 관심 있게 볼 종목 (조용한 매집) */
.watch { margin: 10px 0; padding: 12px 14px; }
.watch-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; }
.watch-head h2 { margin: 0; font-size: 15px; }
.watch-list { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.watch-list li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; background: var(--panel); border: 1px solid var(--panel-2); border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.watch-name { font-weight: 700; color: var(--text); }
.watch-vol { color: #f0c36b; font-variant-numeric: tabular-nums; }
.watch-tag { flex-basis: 100%; color: var(--muted); font-size: 11px; }
.watch-note { font-size: 12px; margin: 4px 0 0; }
/* 시장 지도 첫 방문 — 선택지를 펼친 버튼 (toolbar.js). 한 번 고르면 드롭다운으로 돌아간다 */
.toolbar select[hidden] { display: none !important; }
/* 고르지 않은 선택지도 눈에 띄게 연한 파랑 — 배경색과 같으면 버튼인 줄 모른다 (2026-09-21 사용자 지적).
   고른 것(진한 파랑·흰 글씨)이 여전히 가장 도드라져야 해서 연한 쪽은 옅은 바탕 + 밝은 파랑 글씨로 둔다. */
.toolbar .seg { display: inline-flex; flex-wrap: wrap; margin-left: 4px; vertical-align: middle; gap: 2px; padding: 2px;
                border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--panel); }
.toolbar .seg button { background: transparent; color: var(--soft); border: 0; border-radius: var(--r-pill);
                       padding: 4px 11px; font-size: 12.5px; cursor: pointer; line-height: 1.4; }
.toolbar .seg button:hover { background: var(--panel-3); color: var(--text); }
.toolbar .seg button.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.toolbar .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* 관심 종목 — 좌: 주식 신호 · 우: 트렌드 신호 (2026-09-22) */
.watch-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.watch-col { min-width: 0; }
.watch-col h3 { margin: 0 0 6px; font-size: 13px; color: #c9d1dd; }
.watch-col .watch-list { grid-template-columns: 1fr; }
.watch-empty { margin: 6px 0; }
@media (max-width: 760px) { .watch-cols { grid-template-columns: 1fr; } }
/* 트렌드 근거 배지 — 수출·검색·쇼핑. 여럿 겹칠수록 믿을 만하다 */
.watch-sig { font-size: 11px; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.watch-sig.sig-export { background: rgba(240, 195, 107, 0.18); color: #f0c36b; }
.watch-sig.sig-search { background: rgba(198, 243, 74, 0.2); color: #9ec5ff; }
.watch-sig.sig-shopping { background: rgba(125, 220, 154, 0.16); color: #7ddc9a; }
.watch-skip { font-size: 12px; margin: 4px 0; }
/* 관심 종목 카드 (2026-09-22 사용자 요청) — 박스로, 설명은 ⓘ 에 마우스를 올리면, 3개가 넘으면 왼쪽으로 흐른다 */
.watch-col-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.watch-col-head h3 { margin: 0; }
.watch-info { position: relative; display: inline-flex; }
.watch-info > button { border: 0; background: transparent; color: var(--muted); cursor: help; font-size: 14px; padding: 0 2px; line-height: 1; }
.watch-info > button:hover, .watch-info > button:focus-visible { color: var(--soft); }
.watch-pop { display: none; position: absolute; z-index: 30; top: calc(100% + 6px); left: -8px; width: min(380px, 86vw);
             background: #161b24; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px;
             font-size: 12px; line-height: 1.55; color: var(--soft); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
             flex-direction: column; gap: 6px; }
.watch-pop b { color: var(--text); }
.watch-pop-list { display: flex; flex-direction: column; }
.watch-info:hover .watch-pop, .watch-info:focus-within .watch-pop { display: flex; }

/* 카드 줄 — 한 번에 3장이 보이게. 폭은 칸 너비 기준(컨테이너 단위) */
.watch-track { overflow: hidden; container-type: inline-size; }
.watch-row { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.watch-card { flex: 0 0 calc((100cqw - 16px) / 3); min-width: 0; box-sizing: border-box;
              display: flex; flex-direction: column; gap: 4px; padding: 9px 11px;
              background: var(--panel); border: 1px solid var(--line-strong); border-radius: 8px; font-size: 12px; }
.watch-card:hover { border-color: rgba(198, 243, 74, 0.6); }
.watch-card .watch-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.watch-card .watch-tag { flex-basis: auto; color: #8f9ab0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-sig.sig-volume { background: rgba(240, 195, 107, 0.14); color: #f0c36b; }

/* 3장이 넘으면 — 목록을 한 번 더 이어 붙여 왼쪽으로 끊김 없이 흐른다. 마우스를 올리면 멈춘다 */
.watch-track.moving .watch-row { width: max-content; padding-right: 8px; animation: watch-scroll var(--dur, 20s) linear infinite; }
.watch-track.moving:hover .watch-row, .watch-track.moving:focus-within .watch-row { animation-play-state: paused; }
@keyframes watch-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* 움직임 줄이기를 켠 사람에게는 흐르지 않고 손으로 넘긴다 — 이어 붙인 두 번째 줄도 숨긴다 */
@media (prefers-reduced-motion: reduce) {
  .watch-track.moving { overflow-x: auto; }
  .watch-track.moving .watch-row { animation: none; }
  .watch-track.moving .watch-dup { display: none; }
}
@media (max-width: 760px) { .watch-card { flex-basis: calc((100cqw - 8px) / 2); } }
/* 흐르는 줄의 양 끝을 흐리게 — 카드가 가장자리에서 뚝 잘려 보이지 않게 */
.watch-track.moving { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
                      mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
@media (prefers-reduced-motion: reduce) { .watch-track.moving { -webkit-mask-image: none; mask-image: none; } }
/* 2026-09-22 사용자 요청 — 계속 흐르면 정신없다: 한 장씩 '촥' 넘기기(watch.js)로 바꾸고, 카드는 두 줄로 납작하게.
   이제 카드가 칸 끝에 딱 맞춰 멈추므로 양 끝 흐림은 뺀다 */
.watch-track.moving { -webkit-mask-image: none; mask-image: none; }
.watch-track.moving .watch-row { animation: none; padding-right: 0; will-change: transform; }
.watch-card { padding: 6px 9px; gap: 3px; cursor: pointer; }
.watch-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.watch-line { display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; }
.watch-card .watch-name { font-size: 13px; flex-shrink: 1; min-width: 0; }
.watch-line .watch-sig { flex-shrink: 0; }
.watch-line .up, .watch-line .down { font-size: 12px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.watch-why { font-size: 11px; color: var(--soft); background: rgba(255, 255, 255, 0.06); border-radius: 4px; padding: 1px 6px;
             overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.watch-status { margin: 6px 0 0; }
.watch-status:empty { display: none; }
/* 한쪽이 비면 빈 칸은 좁히고 다른 쪽 카드를 넓힌다 — 반반이면 1280 폭에서 카드가 151px 라 근거 문구가 잘렸다 */
.watch-cols.left-empty { grid-template-columns: minmax(170px, max-content) minmax(0, 1fr); }
.watch-cols.right-empty { grid-template-columns: minmax(0, 1fr) minmax(170px, max-content); }
@media (max-width: 760px) { .watch-cols.left-empty, .watch-cols.right-empty { grid-template-columns: 1fr; } }

/* 단체 대화방 (rooms) */
.room-new { display: grid; gap: 10px; margin-top: 12px; }
.room-new fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.room-list { list-style: none; margin: 8px 0 0; padding: 0; }
.room-list li { padding: 8px 0; border-top: 1px solid var(--line); word-break: keep-all; }
.room-list .muted { display: block; margin-top: 2px; }
.room-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.room-head h1 { margin: 0; word-break: keep-all; }
.room-invite { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 12px 0; }
.room-invite label { flex: 1 1 260px; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.room-invite details { flex-basis: 100%; }
.room-guide { white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; font-size: 12px; background: var(--panel); border-radius: 8px; padding: 10px; }
/* 대화 — 메신저 모양 (2026-09-28): 배경 있는 대화창, 말풍선, 날짜 구분선, 방장은 오른쪽 */
.room-feed { list-style: none; margin: 0 0 12px; padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 2px;
  max-height: min(68vh, 720px); overflow-y: auto; border-radius: 14px; border: 1px solid var(--panel-2);
  background: #0e1520 radial-gradient(circle at 1px 1px, rgba(255,255,255,.035) 1px, transparent 1.5px) 0 0 / 18px 18px; }
.rm-day { align-self: center; margin: 12px 0 8px; }
.rm-day span { display: inline-block; font-size: 12px; color: #aeb7c7; background: rgba(12,18,28,.85); border: 1px solid #243044;
  border-radius: 999px; padding: 3px 12px; }
.rm { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; margin-top: 10px; max-width: 100%; }
.rm-cont { margin-top: 3px; }
.rm-av { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  color: #fff; background: hsl(var(--h, 210) 45% 38%); }
.rm-cont .rm-av { visibility: hidden; height: 0; }
.rm-body { min-width: 0; }
.rm-head { font-size: 12.5px; margin: 0 0 3px 2px; }
.rm-cont .rm-head { display: none; }
.rm-who { color: #c9d4e6; font-weight: 600; }
.rm-tag { font-size: 10.5px; margin-left: 5px; padding: 1px 6px; border-radius: 6px; background: #1d2638; color: #b9c8e8; vertical-align: 1px; }
.rm-line { display: flex; align-items: flex-end; gap: 6px; }
.rm-text { max-width: min(560px, 82%); padding: 8px 12px; border-radius: 4px 16px 16px 16px; background: #1f2735; color: #e6e9f0;
  white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.55; font-size: 14px; }
.rm-cont .rm-text { border-radius: 16px; }
.rm-ai .rm-text { background: #1c2c47; }
.rm-at { flex: none; color: #7c8699; font-size: 11px; font-variant-numeric: tabular-nums; padding-bottom: 2px; }
/* 방장 = 오른쪽 말풍선, 얼굴·이름 없이 */
.rm-owner { grid-template-columns: minmax(0, 1fr); }
.rm-owner .rm-av, .rm-owner .rm-head { display: none; }
.rm-owner .rm-line { flex-direction: row-reverse; }
.rm-owner .rm-text { background: #3a6ee0; color: #fff; border-radius: 16px 4px 16px 16px; }
.rm-owner.rm-cont .rm-text { border-radius: 16px; }
.rm-empty { align-self: center; margin: 24px 0; }
.room-say { display: grid; gap: 8px; }
.room-say textarea { width: 100%; }

/* 대화방 첫 화면 (2026-09-23) — 로고의 초록·보라를 배경 빛으로만 쓴다. 글자에는 그라데이션을 쓰지 않는다. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rh {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center;
  padding: 56px 48px; border: 1px solid #242b3b; border-radius: 18px;
  background:
    radial-gradient(600px 340px at 8% 0%, rgba(62, 207, 142, .16), transparent 70%),
    radial-gradient(700px 420px at 100% 100%, rgba(139, 108, 255, .22), transparent 70%),
    linear-gradient(180deg, #121622, #0f121a);
}
.rh::after {                     /* 아주 옅은 점 격자 — 빈 배경이 평평해 보이지 않게 */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.rh h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 18px; word-break: keep-all; text-wrap: balance; }
.rh-lead { color: #c7cedd; font-size: 16px; line-height: 1.7; margin: 0 0 26px; max-width: 34em; word-break: keep-all; }
.rh-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.rh-cta {
  display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #6d9bff, #4f7dff); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 24px -8px rgba(79, 125, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s;
}
.rh-cta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(79, 125, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.rh-join { display: flex; flex: 1 1 260px; max-width: 360px; background: rgba(13, 16, 23, .7); border: 1px solid #2c3446; border-radius: 10px; padding: 4px; }
.rh-join input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 8px 10px; }
.rh-join input::placeholder { color: var(--muted); }
.rh-join button { border-radius: 7px; background: #242c3d; border-color: #33405a; cursor: pointer; }
.rh-note { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; }
.rh-copy .warn { margin: 12px 0 0; }

.rh-live {
  margin: 0; border-radius: 14px; overflow: hidden; background: rgba(12, 14, 20, .88);
  border: 1px solid #2b3244; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7), 0 2px 0 rgba(255, 255, 255, .03) inset;
}
.rh-live-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #222938; font-size: 13px; color: var(--soft); }
.rh-live-room { margin-left: auto; color: #9fb8ff; font-size: 12.5px; max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; }
@keyframes rh-pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 207, 142, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(62, 207, 142, 0); } }
.rh-live-feed { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 14px; min-height: 300px; align-content: end; }
.rh-msg { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.rh-msg b { font-size: 13px; color: #dfe5f2; }
.rh-msg p { margin: 3px 0 0; color: var(--soft); font-size: 13.5px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.rh-av { --h: 220; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
         color: #fff; background: hsl(var(--h) 55% 42%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.rh-in { animation: rh-in .6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rh-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.rh-live-foot { margin: 0; padding: 10px 16px; border-top: 1px solid #222938; color: var(--muted); font-size: 12px; }

.rh-how { display: grid; gap: 14px; margin: 22px 0 26px; }
.rh-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.rh-steps li { counter-increment: step; position: relative; padding: 4px 22px 4px 46px; word-break: keep-all; }
.rh-steps li + li { border-left: 1px solid var(--line); }
.rh-steps li::before { content: counter(step); position: absolute; left: 12px; top: 3px; width: 24px; height: 24px; border-radius: 50%;
                       display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--soft); background: #1f2a44; }
.rh-steps b { display: block; font-size: 15px; margin-bottom: 2px; }
.rh-steps span { color: var(--muted); font-size: 13px; }
.rh-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rh-perks li { font-size: 12.5px; color: #c9d3e8; padding: 5px 11px 5px 26px; border-radius: 999px; background: #161b26; border: 1px solid #252d3d; position: relative; }
.rh-perks li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 4px; margin-top: -3px;
                       border-left: 2px solid #3ecf8e; border-bottom: 2px solid #3ecf8e; transform: rotate(-45deg); }

.rooms-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.rooms-side { position: sticky; top: calc(var(--head-h, 0px) + 16px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 0 6px; max-height: calc(100vh - var(--head-h, 0px) - 32px); overflow-y: auto; }
.rooms-side h2 { padding: 0 16px 10px; }
.rooms-side > p { padding: 0 16px 10px; margin: 0; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: grid; gap: 3px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--text); }
.side-list a:hover { text-decoration: none; background: #1a2030; }
.side-list b { font-size: 14px; word-break: keep-all; }
.side-last { color: #aeb6c6; font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.side-last em { font-style: normal; color: #9fc0ff; margin-right: 4px; }
.side-meta { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.rooms-main { display: grid; gap: 16px; }
.room-new .hint { flex-basis: 100%; }

@media (max-width: 900px) {
  .rh { grid-template-columns: 1fr; padding: 36px 22px; gap: 28px; }
  .rh-live-feed { min-height: 0; }
  .rh-steps { grid-template-columns: 1fr; gap: 12px; }
  .rh-steps li + li { border-left: 0; }
  .rooms-grid { grid-template-columns: 1fr; }
  .rooms-side { position: static; max-height: none; order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .rh-in { animation: none; }
  .rh-cta { transition: none; }
}
.room-new fieldset label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; width: auto; cursor: pointer; }
.room-new fieldset input[type="radio"] { width: auto; margin: 0; padding: 0; accent-color: var(--accent); }
.rh-room { margin-left: 6px; color: #7f8aa3; font-size: 11.5px; }
@media (max-width: 600px) { .rh-room { display: block; margin: 1px 0 0; } }
.rh-quick { display: contents; }
.room-back { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.room-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; font-size: 13px; }
.room-tools-label { color: var(--muted); font-size: 12px; margin-right: 2px; }
.room-tools-label:not(:first-child) { margin-left: 10px; }
.room-tools a, .room-tools button { padding: 4px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--soft); cursor: pointer; font-size: 12.5px; }
.room-tools a:hover, .room-tools button:hover { text-decoration: none; border-color: #3a4560; color: #fff; }
.room-private-note { flex-basis: 100%; margin: 0; }
.room-agent-hint { flex-basis: 100%; margin: 0; }
.room-call { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; }
.room-call a[data-call-ai] { padding: 4px 12px; border-radius: 999px; background: #1d2638; border: 1px solid #2f3b57; color: #dbe5ff; cursor: pointer; font-size: 12.5px; }
.room-call a[data-call-ai]:hover { text-decoration: none; border-color: #4f7dff; color: #fff; }
.room-call p { flex-basis: 100%; margin: 2px 0 0; }
.room-call-prompt { flex-basis: 100%; width: 100%; font-size: 12px; background: var(--panel-2); color: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.room-server-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.room-calling { color: #3ecf8e; font-size: 12.5px; flex-basis: 100%; }

/* 종목 꼬리표 — 지수 소속·거래소 규모·관리/경고 (NH 종목 마스터, 2026-09-24) */
.stock-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 8px; }
.tag { font-size: 11.5px; line-height: 1; padding: 4px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.tag-index { color: #b9ccff; border-color: #2f4270; background: #172036; }
.tag-size { color: var(--soft); border-color: #343c4c; background: #1a1f2a; }
.tag-risk { color: #ffc27a; border-color: #6b4a1f; background: #2a1f12; font-weight: 700; }
.morning-report { white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; font-size: 13px; line-height: 1.65; background: var(--panel); border-radius: 8px; padding: 14px; }
.ind-date { font-size: 10.5px; font-weight: 600; color: var(--muted); margin-left: 1px; }
/* 미국 선행지표 줄 머리 (2026-09-26) — 넓은 화면·중간 화면 모두 여기서 줄을 끊는다, 폰은 한 줄로 밀어 보니 숨긴다 */
.ind-break { flex: 1 1 100%; grid-column: 1 / -1; margin: 0; padding: 3px 9px; background: #10141c;
             font-size: 11px; font-weight: 700; color: #aeb8cc; letter-spacing: .02em; }
.ind-break span { font-weight: 500; color: #7f889b; margin-left: 6px; }
@media (max-width: 700px) { .ind-break { display: none; } }
/* 미국 짝꿍 (2026-09-26) */
.us-pairs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.us-line { white-space: nowrap; }
.us-line b.up { color: var(--up, #ff7a6e); }
.us-line b.dn { color: var(--dn, #7aa6ff); }
/* 밤사이 미국 → 오늘 볼 종목 (2026-09-26) */
.on-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.on-card { cursor: pointer; }
.on-card .badge { margin-left: 6px; }
.on-pairs { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font-size: 12.5px; color: var(--soft); }
.on-pair b.up { color: var(--up, #ff7a6e); }
.on-pair b.dn { color: var(--dn, #7aa6ff); }

/* 시장 한눈에 (2026-09-26 해외 사이트 벤치마킹) */
.insights { word-break: keep-all; }
.in-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0; }
.in-tabs button { background: var(--panel-2); color: var(--soft); border: 1px solid #323a4d; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer;
  word-break: keep-all; transition: background-color .15s, border-color .15s, color .15s; }
.in-tabs button:hover { background: #262e42; border-color: #4a5570; color: #fff; }
.in-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.in-body h3 { font-size: 13px; margin: 0 0 6px; color: var(--soft); font-weight: 600; }
.in-body b.up, .in-table b.up { color: var(--up, #ff7a6e); }
.in-body b.dn, .in-table b.dn { color: var(--dn, #7aa6ff); }
.in-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 16px; }
.in-row { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 5px 8px; margin: 0 0 4px; cursor: pointer; font-size: 13px; }
.in-row .in-val { grid-column: 1 / -1; }
.in-temp { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.in-gauge { --v: 50; width: 120px; height: 120px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--panel, #151a24) 76%, transparent 77%),
    conic-gradient(from -90deg, #7aa6ff, var(--muted) 50%, #ff7a6e calc(var(--v) * 1%), var(--line) 0); }
.in-gauge b { font-size: 30px; line-height: 1; }
.in-gauge span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.in-parts { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 240px; max-width: 560px; display: grid; gap: 6px; }
.in-parts li { display: grid; grid-template-columns: 1fr 90px 28px; gap: 8px; align-items: center; font-size: 13px; }
.in-parts li b { text-align: right; }
.in-meter { display: inline-block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; vertical-align: middle; width: 90px; }
.in-meter i { display: block; height: 100%; background: #6f8fd8; border-radius: 3px; }
.in-breadth { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin: 12px 0 0; }
.in-breadth dt { font-size: 12px; color: var(--muted); }
.in-breadth dd { margin: 2px 0 0; font-size: 14px; }
.in-table td, .in-table th { white-space: nowrap; }
.in-market td { border-top: 1px solid var(--line); color: var(--muted); }
.in-me td { background: #1d2330; font-weight: 600; }
.in-phase { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.in-주도 { color: #ff9d8f; border-color: #6b2f28; }
.in-좋아짐 { color: #ffd27a; border-color: #6b561f; }
.in-약해짐 { color: #b9c3d6; }
.in-부진 { color: #7aa6ff; border-color: #2a3f6b; }
.in-cal { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.in-cal li { display: grid; grid-template-columns: 110px auto 1fr; gap: 10px; align-items: baseline; font-size: 13px; }
.score-bars { display: grid; gap: 5px; }
.score-row { display: grid; grid-template-columns: 56px 1fr 32px; gap: 8px; align-items: center; font-size: 13px; }
.score-row .in-meter { width: 100%; }
.score-row b { text-align: right; }
@media (max-width: 700px) {
  .in-cal li { grid-template-columns: 1fr; gap: 2px; }
  .in-gauge { width: 100px; height: 100px; }
}
/* 온도(왼쪽) · 밤사이 미국(오른쪽) 나란히 (2026-09-26 사용자 요청). 한쪽이 없으면 남은 쪽이 다 쓴다 */
.top-pair { display: flex; gap: 12px; align-items: stretch; margin: 10px 0; }
.top-pair > .panel { flex: 1 1 0; min-width: 0; margin-top: 0; margin-bottom: 0; }
.top-pair > .overnight .on-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 1099px) { .top-pair { flex-direction: column; } }
/* 자동매매 관리 (2026-09-27) */
.at-head { margin-bottom: 18px; }
.at-head h1 { word-break: keep-all; }
.at-msg { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.at-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 20px; margin: 12px 0; }
.at-status > div { display: flex; flex-direction: column; gap: 4px; }
.at-modes, .at-stop, .at-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.at-stop { margin-top: 8px; }
.at-cand { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); word-break: keep-all; }
.at-cand ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--soft); }
.at-cand-main { flex: 1 1 320px; min-width: 0; }
.at-actions form { display: flex; gap: 6px; flex-wrap: wrap; }
.at-passed, .at-expired { opacity: .6; }
.at-badge { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; align-self: flex-start; }
.at-approved .at-badge { color: #ff9d8f; border-color: #6b2f28; }
.at-ai { background: #1a2130; border-left: 3px solid #6f8fd8; padding: 8px 12px; border-radius: 4px; }

/* AI 리그 — 질문 아래 펼치는 답 (2026-09-29) */
.q-open[aria-expanded="true"] { font-weight: 700; }
.q-detail > td { background: #10151e; padding: 10px 14px 14px; }
.q-answers { margin-top: 6px; max-width: 520px; }
.q-bar { display: inline-block; width: 70px; height: 6px; margin-right: 8px; vertical-align: middle; border-radius: 3px;
  background: linear-gradient(90deg, #ff7a6e calc(var(--p) * 1%), #2a3140 0); }

/* 연결 지도 (2026-09-30) */
.in-graph { height: 520px; border-radius: 12px; border: 1px solid var(--line);
  background: #0e1520 radial-gradient(circle at 1px 1px, rgba(255,255,255,.03) 1px, transparent 1.5px) 0 0 / 20px 20px; }
@media (max-width: 700px) { .in-graph { height: 420px; } }
.top-pair.graph-open { flex-direction: column; }
.top-pair.graph-open .in-graph { height: 620px; }
.in-graph-keys { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.in-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.in-key i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.in-key[aria-pressed="true"] { color: var(--text, var(--text)); border-color: var(--c); }
.in-key[aria-pressed="false"] i { opacity: .3; }

/* AI 월드 — AI 리스트 탭 캔버스 배치도 (league_world.js, 2026-10-01) */
.ai-world { display: grid; gap: 10px; }
.aw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.aw-find { display: flex; gap: 6px; flex: 1 1 220px; max-width: 320px; }
.aw-find input { flex: 1; min-width: 0; }
.aw-find button, .aw-zoom button { cursor: pointer; }
.aw-zoom { display: flex; gap: 4px; }
.aw-zoom button { min-width: 36px; padding: 6px 10px; }
.aw-stat { margin: 0 0 0 auto; word-break: keep-all; font-variant-numeric: tabular-nums; }
.aw-stage { position: relative; height: clamp(320px, 62vh, 620px); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.aw-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.aw-stage canvas:active { cursor: grabbing; }
.aw-stage canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.aw-detail { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; word-break: keep-all; overflow-wrap: anywhere; }
.aw-detail h3 { margin: 0 0 4px; font-size: 16px; }
.aw-detail p { margin: 4px 0 0; }
.aw-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 2px; font-size: 13px; }
.aw-follow span { color: #16a34a; font-weight: 700; }
.aw-follow button { font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: inherit; cursor: pointer; }
.aw-follow button[data-act="replay"] { border-color: #10b981; color: #0f9f6e; }
.aw-feed-title { margin-top: 10px !important; font-weight: 700; }
.aw-feed { list-style: none; margin: 4px 0 0; padding: 0; max-height: 220px; overflow-y: auto; font-size: 13px; word-break: keep-all; overflow-wrap: anywhere; }
.aw-feed li { padding: 3px 0; border-top: 1px solid var(--line); }
.aw-feed time { color: var(--muted, #8a94a3); font-variant-numeric: tabular-nums; margin-right: 4px; }
@media (max-width: 640px) { .aw-stage { height: 56vh; } .aw-stat { margin-left: 0; flex-basis: 100%; } .aw-find { max-width: none; } }

/* 거꾸로 보기 (2026-10-02) */
.in-lead { font-size: 14.5px; line-height: 1.65; margin: 4px 0 12px; word-break: keep-all; }
.in-h { font-size: 14px; margin: 16px 0 8px; word-break: keep-all; }
.in-ind { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 6px; background: #151a25; }
.in-ind > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; cursor: pointer; font-size: 13.5px; word-break: keep-all; }
.in-ind > summary:hover { background: var(--panel-2); border-radius: 10px; }
.in-ind > summary .in-name { min-width: 110px; font-weight: 600; }
.in-ind[open] > summary { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.in-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 8px; padding: 8px; max-height: 340px; overflow-y: auto; }

/* 종목 상세 — 크게 오른 구간과 그때 보인 것 (2026-10-02) */
.d-episodes { list-style: none; margin: 0 0 6px; padding: 0; }
.d-episodes li { display: grid; grid-template-columns: 118px 64px 1fr; gap: 4px 10px; align-items: baseline; padding: 7px 0;
  border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; word-break: keep-all; }
.d-episodes li b { text-align: right; }
.d-episodes b.up { color: var(--up, #ff7a6e); }
@media (max-width: 560px) { .d-episodes li { grid-template-columns: 1fr auto; } .d-episodes li > span:last-child { grid-column: 1 / -1; } }
.in-why { color: var(--soft); word-break: keep-all; }

/* 로컬 LLM 체험 채팅 (AI 리그 '로컬LLM구성' 탭) */
.llm-chat { display: flex; flex-direction: column; gap: 12px; }
.llm-models { display: flex; flex-wrap: wrap; gap: 8px; }
.llm-chip { border-radius: 999px; padding: 7px 16px; cursor: pointer; color: var(--soft); font-weight: 600; }
.llm-chip:hover { border-color: var(--accent); }
.llm-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.llm-chip:focus-visible, .llm-try:focus-visible, .llm-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.llm-stage { min-height: 340px; max-height: 56vh; display: flex; flex-direction: column; }
.llm-hello { margin: auto; text-align: center; padding: 24px 8px; max-width: 34em; word-break: keep-all; }
.llm-title { font-size: clamp(20px, 3vw, 28px); letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }
.llm-tries { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.llm-try { border-radius: 999px; cursor: pointer; color: var(--soft); font-size: 13px; }
.llm-try:hover { border-color: var(--accent); color: var(--text); }
.llm-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px 2px; }
.llm-log:empty { display: none; }
.llm-msg { display: flex; flex-direction: column; gap: 4px; max-width: min(46em, 92%); }
.llm-user { align-self: flex-end; align-items: flex-end; }
.llm-who { font-size: 12px; color: var(--muted); }
.llm-text { white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.65; padding: 10px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.llm-user .llm-text { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.llm-wait { color: var(--muted); }
.llm-error { border-color: #6e2b2b; color: #ffb4ab; }
.llm-form { display: flex; gap: 8px; align-items: flex-end; }
.llm-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; line-height: 1.5; }
.llm-form button { min-height: 44px; padding: 0 18px; border-radius: 12px; }
.llm-hint:empty { display: none; }
.llm-chat > p { margin: 0; word-break: keep-all; }
.llm-guide > summary { cursor: pointer; padding: 10px 2px; color: var(--soft); }
.llm-guide[open] > summary { margin-bottom: 8px; }
@media (max-width: 640px) { .llm-stage { min-height: 280px; max-height: 60vh; } .llm-msg { max-width: 100%; } }
.llm-contact { margin: 4px 2px 16px; color: var(--soft); word-break: keep-all; }
.llm-contact a { white-space: nowrap; }

/* AI 오피스 (AI 리스트 탭 맨 위 — 건물 단면 그림) */
.ai-office canvas { display: block; width: 100%; border-radius: 10px; background: #101522; }
.ao-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ao-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.ao-nav button { padding: 4px 10px; font-size: 12px; border-radius: 999px; cursor: pointer; border-width: 1.5px; color: var(--soft); }
.ao-nav button:hover { color: var(--text); }
.ao-stat { margin: 0; }
.ao-more { margin-top: 10px; }
.ao-detail { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); word-break: keep-all; }
.ao-feed { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; overflow-wrap: anywhere; }

/* 사람 검수용 객관식 (/q.html) */
.review { max-width: 760px; margin-inline: auto; word-break: keep-all; }
.review progress { width: 100%; height: 6px; }
.review-q { font-weight: 600; margin: 12px 0 8px; }
.review-text { background: var(--panel-2); border-radius: 8px; padding: 14px 16px; line-height: 1.75; font-size: 1.05rem; overflow-wrap: anywhere; }
.review-choices { display: grid; gap: 8px; margin: 12px 0; }
.review-choices button { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 14px; min-height: 56px; cursor: pointer; }
.review-choices button.picked { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.review-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
#rv-tts { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
#rv-tts[hidden] { display: none; }
#rv-tts button { padding: 6px 12px; cursor: pointer; }
.review-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review-nav button { padding: 8px 12px; cursor: pointer; }

/* 대화방 태그(부르기) — 2026-10-07 */
.rm-mention { color: #8fb4ff; background: rgba(198, 243, 74, .14); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.rm-owner .rm-mention { color: #fff; background: rgba(255, 255, 255, .18); }
.room-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.room-tag { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid #323a4d; background: var(--panel-2); color: var(--soft); cursor: pointer; word-break: keep-all; }
.room-tag:hover { background: #262e42; border-color: #4a5570; color: #fff; }

/* 다른 나라 말 안내 한 장 (/start) — 맨 위 큰 문구(밤하늘 + 로고 빛깔), 단계 카드, 지금 숫자 */
.hero { position: relative; overflow: hidden; margin: 0 auto 18px; max-width: 1080px; padding: clamp(36px, 7vw, 84px) clamp(20px, 5vw, 64px) clamp(28px, 5vw, 56px);
  border: 1px solid var(--line); border-radius: 20px; text-align: center; word-break: keep-all; overflow-wrap: anywhere;
  background: radial-gradient(120% 90% at 50% -10%, #1b2550 0%, #10142a 45%, var(--bg) 100%); }
.hero-sky { position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image: radial-gradient(1.2px 1.2px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 68%, var(--soft) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 44% 14%, #ffe2b8 50%, transparent 51%), radial-gradient(1px 1px at 63% 78%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 76% 30%, #dfeaff 50%, transparent 51%), radial-gradient(1px 1px at 88% 60%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 84%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 94% 12%, #ffe2b8 50%, transparent 51%),
    radial-gradient(60% 50% at 80% 110%, rgba(124, 92, 255, .28), transparent 70%), radial-gradient(50% 45% at 15% 115%, rgba(47, 182, 160, .22), transparent 70%);
  animation: hero-twinkle 6s ease-in-out infinite alternate; }
@keyframes hero-twinkle { from { opacity: .65; } to { opacity: 1; } }
.hero > :not(.hero-sky) { position: relative; }
.hero-eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--muted); }
.hero-dot { display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: #35d39a; box-shadow: 0 0 0 0 rgba(53, 211, 154, .7); }
@keyframes hero-pulse { to { box-shadow: 0 0 0 10px rgba(53, 211, 154, 0); } }
.hero-title { margin: 0 auto; max-width: 16em; font-size: clamp(2rem, 6.4vw, 4.1rem); font-weight: 800; line-height: 1.18; letter-spacing: -.02em; text-wrap: balance;
  color: var(--text); }
.hero-sub { margin: 20px auto 0; max-width: 46em; font-size: clamp(1rem, 2.2vw, 1.15rem); line-height: 1.75; color: var(--soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 0; }
.hero-btn { padding: 12px 20px; border-radius: 999px; border: 1px solid #3a4466; background: rgba(255, 255, 255, .06); color: var(--text); font-weight: 600; transition: transform .15s ease, background .15s ease; }
.hero-btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .12); text-decoration: none; }
.hero-btn.primary { border-color: transparent; background: linear-gradient(100deg, #2fb6a0, var(--accent) 60%, #8b6fe8); color: #fff; box-shadow: 0 8px 26px rgba(198, 243, 74, .35); }
.hero-btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 760px; margin: 34px auto 0; padding: 0; list-style: none; }
.hero-stats li { padding: 12px 6px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(255, 255, 255, .04); }
.hero-stats b { display: block; font-size: clamp(1.25rem, 3.4vw, 1.9rem); font-variant-numeric: tabular-nums; color: #fff; }
.hero-stats span { font-size: 12px; color: var(--muted); }
.prize { display: flex; align-items: center; gap: 18px; max-width: 1080px; margin: 0 auto 18px; padding: 18px 22px; border-radius: 18px; color: var(--text);
  border: 1px solid rgba(255, 209, 102, .45); background: linear-gradient(100deg, rgba(255, 209, 102, .16), rgba(255, 160, 80, .08) 60%, rgba(21, 25, 34, .6));
  word-break: keep-all; overflow-wrap: anywhere; }
.prize:hover { text-decoration: none; border-color: rgba(255, 209, 102, .8); }
.prize-coin { flex: none; display: grid; place-items: center; min-width: 96px; padding: 10px 14px; border-radius: 14px; font-size: 1.5rem; font-weight: 800; line-height: 1.1;
  color: #2a1c00; background: linear-gradient(135deg, #ffe08a, #ffb347); box-shadow: 0 8px 24px rgba(255, 179, 71, .3); font-variant-numeric: tabular-nums; }
.prize-coin small { font-size: .7rem; letter-spacing: .12em; }
.prize-text b { display: block; font-size: clamp(1.05rem, 2.6vw, 1.35rem); line-height: 1.5; color: #ffe9b0; }
.prize { flex-wrap: wrap; }
.prize-path { flex: 1 1 100%; padding-top: 12px; border-top: 1px solid rgba(255, 209, 102, .25); font-size: .95rem; color: #ffe9b0; }
.prize-path span { display: block; margin-top: 2px; font-size: .85rem; color: var(--muted); }
.prize-text { flex: 1 1 260px; }
.prize-text span { display: block; margin-top: 4px; font-size: .92rem; color: var(--soft); }
@media (max-width: 520px) { .prize { flex-direction: column; text-align: center; } }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 1080px; margin: 0 auto 14px; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding: 18px 16px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow-wrap: anywhere; word-break: keep-all; }
.step p { margin: 10px 0 0; line-height: 1.65; color: var(--soft); }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-weight: 800; color: var(--bg); background: linear-gradient(135deg, #5ee6b0, #7fb4ff); }
.start-note { max-width: 1080px; margin: 0 auto 18px; padding: 0 6px; line-height: 1.7; text-align: center; overflow-wrap: anywhere; word-break: keep-all; }
.start-langs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 1080px; margin: 0 auto 18px; }
.start-langs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--soft); font-size: 14px; }
.start-langs a[aria-current="page"] { border-color: #5ee6b0; color: #fff; }
.start-en { max-width: 1080px; margin-inline: auto; overflow-wrap: anywhere; }
.start-en ul { line-height: 1.75; padding-inline-start: 1.2em; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } .hero-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hero-sky { animation: none; } .hero-btn { transition: none; } }

/* 명예의 전당 (/league/hall) — 네 단계를 모두 통과한 AI 만. 시즌 우승·메달(/league/seasons)과는 다른 화면 */
.hall-top { max-width: 900px; margin: 8px auto 16px; padding: 28px 22px; border: 1px solid rgba(255, 209, 102, .4); border-radius: 18px; text-align: center; word-break: keep-all;
  background: linear-gradient(120deg, rgba(255, 209, 102, .14), rgba(21, 25, 34, .5)); }
.hall-top h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
.hall-lead { margin: 0 auto; max-width: 52em; line-height: 1.7; color: var(--soft); }
.hall-prize { margin: 14px 0 0; font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: #ffe9b0; }
.hall-path { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 1080px; margin: 0 auto 16px; padding: 0; list-style: none; word-break: keep-all; }
.hall-path li { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.hall-path li.now { border-color: #5ee6b0; }
.hall-path li.coming_soon { opacity: .75; }
.hall-path p { margin: 8px 0 0; line-height: 1.6; }
.hall-n { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-inline-end: 6px; border-radius: 8px; font-weight: 800; color: var(--bg); background: linear-gradient(135deg, #ffe08a, #ffb347); }
@media (max-width: 860px) { .hall-path { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .hall-path { grid-template-columns: 1fr; } }
.hall-path li.top { border-color: rgba(255, 209, 102, .6); background: linear-gradient(160deg, rgba(255, 209, 102, .14), var(--panel)); opacity: 1; }
.hall-icon { font-size: 1.3rem; margin-inline-end: 4px; }
.hall-count { font-size: .9rem; color: var(--muted); }
.hall-count b { font-size: 1.4rem; color: var(--text); font-variant-numeric: tabular-nums; }
.lv { display: inline-block; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lv5 { border-color: rgba(255, 209, 102, .7); color: #ffe9b0; }
@media (max-width: 1000px) { .hall-path { grid-template-columns: 1fr 1fr; } }

/* 장중 중간 점수판 (리그 화면 위) — 숫자는 건수와 비율만, 가격은 없다 */
.live-board { border-color: rgba(224, 70, 58, .45); word-break: keep-all; }
.lb-head { margin: 6px 0 10px; font-size: clamp(1.05rem, 2.6vw, 1.35rem); font-weight: 700; }
.lb-bar { position: relative; height: 22px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.lb-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #2fb6a0, var(--accent)); transition: width .6s ease; }
.lb-pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-questions { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-q { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; color: var(--soft); }
.lb-q.up { border-color: rgba(224, 70, 58, .6); color: #ff9a90; }
.lb-q.dn { border-color: rgba(47, 111, 224, .7); color: #9dbcff; }
@media (prefers-reduced-motion: reduce) { .lb-bar i { transition: none; } }

/* 운영 현황 (관리자 /admin/ops) — 사내 서버·예약 작업·분배판 한 화면 */
.ops { word-break: keep-all; overflow-wrap: anywhere; }
.ops-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ops-top h1 { margin: 0; font-size: 1.4rem; }
.ops h2 { font-size: 1rem; margin: 0 0 10px; }
.ops h2:not(:first-child) { margin-top: 16px; }
.ops-now.bad { border-color: rgba(224, 70, 58, .55); }
.ops-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; line-height: 1.5; }
.ops-alert { color: #ff9a90; font-weight: 600; }
.ops-ok { border-color: rgba(47, 182, 160, .6); color: #7fe0cf; }
.ops-warn { border-color: rgba(255, 209, 102, .6); color: #ffe19a; }
.ops-bad { border-color: rgba(224, 70, 58, .7); color: #ff9a90; }
.ops-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0; }
.ops-nums div { background: var(--panel-2); border-radius: 8px; padding: 10px 12px; }
.ops-nums dt { font-size: 12px; color: var(--muted); }
.ops-nums dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ops-servers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }   /* 11-12 사용자: 82번 + 웹서버 = 12칸, 6개씩 2줄 (10-29 "10개 1줄" 에서 바꿈) */
.ops-server { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 6px; align-content: start; }
.ops-server.down { border-color: rgba(224, 70, 58, .7); }
.ops-server.idle { border-color: rgba(255, 209, 102, .5); }
.ops-server h3 { margin: 0; font-size: 1.05rem; }
.ops-server p { margin: 0; }
.ops-gpu { display: grid; grid-template-columns: 3.4em 1fr auto; align-items: center; gap: 5px; font-size: 11.5px; color: var(--soft); }
.ops-gpu meter { width: 100%; height: 10px; }
.ops-gpu b { text-align: end; white-space: nowrap; min-width: 2.4em; font-variant-numeric: tabular-nums; }
.ops-avg { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ops-avg b { color: var(--text); }
.ops-spark { width: 100%; height: 24px; }
.ops-spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ops-scroll { overflow-x: auto; }
.ops-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; }
.ops-right { min-width: 420px; }
.ops-table th, .ops-table td { text-align: start; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ops-table th { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ops-table td:nth-child(-n+3) { white-space: nowrap; }
.ops-right td:not(:first-child), .ops-right th:not(:first-child) { text-align: end; font-variant-numeric: tabular-nums; }
.ops-area { border-top: 1px solid var(--line); padding: 8px 0; }
.ops-area summary { cursor: pointer; font-weight: 600; }
.ops-board { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; line-height: 1.5; }
.ops-board p { margin: 2px 0 0; }
.ops-script { white-space: pre-wrap; font-size: 13px; line-height: 1.6; color: var(--soft); margin-top: 6px; }
/* 관리 메뉴는 .subnav 줄 그대로 (2026-10-19) — 오른쪽 '관리' 링크가 켜진다 */
.nav-me a.on { color: var(--on-accent); background: var(--accent); padding: 6px 13px; border-radius: var(--r-pill); font-weight: 650; }
.ops-log { margin: 0; padding: 10px 12px; background: var(--bg); border-radius: 8px; font-size: 12px; line-height: 1.55; overflow-x: auto; max-height: 420px; white-space: pre; }
.fw-ip { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0 0 6px; }
.fw-form { display: grid; gap: 10px; margin: 14px 0 8px; max-width: 520px; }
.fw-form input[name="address"] { font-size: 1.05rem; padding: 6px 10px; width: 12em; margin-inline-start: 6px; }
.fw-wide { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--soft); line-height: 1.5; }
.fw-wide input { flex: none; width: auto; margin-top: 3px; }
.fw-form button { justify-self: start; padding: 8px 18px; }
.ops-msg { border-color: var(--accent); }
.review-note { display: grid; gap: 6px; margin: 12px 0 0; font-weight: 600; }
.review-note span { font-weight: 400; }
.review-note textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 4.5em; resize: vertical; line-height: 1.6; }
.review-text { user-select: text; -webkit-user-select: text; }
/* 카드 종류별 색 — 막대·글자·범례가 같은 색 */
.ops-server { padding: 10px; min-width: 0; }
.ops-server h3 { font-size: 1rem; }
.ops-server p.muted { font-size: 11px; line-height: 1.4; }
.ops-gpu { --gpu: var(--accent); }
.ops-gpu span { color: var(--gpu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-gpu meter::-webkit-meter-bar { background: rgba(255, 255, 255, .08); border: 0; border-radius: 4px; }
.ops-gpu meter::-webkit-meter-optimum-value { background: var(--gpu); border-radius: 4px; }
.ops-gpu meter::-moz-meter-bar { background: var(--gpu); border-radius: 4px; }
.gpu-3060 { --gpu: #4ade80; }
.gpu-p104 { --gpu: #fbbf24; }
.gpu-p100 { --gpu: #60a5fa; }
.gpu-170hx { --gpu: #f472b6; }
.gpu-titanv { --gpu: #22d3ee; }   /* 10-25 79번 Titan V */
.gpu-4080super { --gpu: #f472b6; }   /* 10-29 90번 4080 SUPER — 이름이 길어 윗줄에 이름, 아랫줄에 막대 */
.ops-gpu.gpu-4080super { grid-template-columns: 1fr auto; }
.ops-gpu.gpu-4080super span { grid-column: 1 / -1; }
.gpu-other { --gpu: #a78bfa; }
.ops-gpu-key { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 10px; font-size: 12px; font-weight: 500; color: var(--gpu); }
.ops-gpu-key i { width: 10px; height: 10px; border-radius: 3px; background: var(--gpu); }
@media (max-width: 1000px) { .ops-servers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }   /* 12칸 = 4×3 */
@media (max-width: 640px) { .ops-servers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── 리그 첫 화면: 증거부터 (2026-10-19 1차 리뉴얼 '검정 대회장') ── */
.lg-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 40px; align-items: center; padding: 28px 0 26px; }
.lg-hero h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -.04em; font-weight: 850; margin: 0; }
.lg-hero h1 em { font-style: normal; color: var(--accent); }
.lg-lead { color: var(--soft); font-size: 17px; line-height: 1.65; margin: 18px 0 0; max-width: 34em; }
.lg-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.lg-btn { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--text); font-weight: 700; }
.lg-btn:hover { text-decoration: none; background: var(--panel-2); }
.lg-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lg-btn.primary:hover { background: var(--accent-hover); }
.lg-meta { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lg-lead-card { display: flex; flex-direction: column; gap: 4px; padding: 24px 26px; border-radius: 22px; color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); transition: transform .2s ease-out, border-color .2s; }
.lg-lead-card:hover { text-decoration: none; border-color: rgba(198, 243, 74, .5); transform: translateY(-2px); }
.lg-lc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lg-lc-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.lg-lc-big { font-size: 64px; line-height: 1; font-weight: 850; color: var(--accent); letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin: 12px 0 6px; }
.lg-lc-big small { font-size: .45em; margin-left: 2px; }
.lg-lc-sub { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lg-model { font-size: 12px; font-weight: 600; color: var(--muted); }
.lg-top { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lg-top a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); color: var(--text); transition: border-color .15s, background-color .15s; }
.lg-top a:hover { text-decoration: none; border-color: var(--line-strong); background: var(--panel-2); }
.lg-rank { grid-row: span 2; font-size: 26px; font-weight: 850; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.1em; }
.lg-top li:first-child .lg-rank { color: var(--accent); }
.lg-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-num { display: flex; flex-direction: column; gap: 1px; font-variant-numeric: tabular-nums; }
.lg-num b { font-size: 18px; }
.lg-num small { color: var(--muted); font-size: 12.5px; }
.lg-top-note { margin: 10px 0 30px; }
.lg-about-title { font-size: 20px; margin: 8px 0 8px; }
@media (max-width: 900px) {
  .lg-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 10px; }
  .lg-top { grid-template-columns: 1fr; }
  .lg-top a { grid-template-columns: auto 1fr auto; grid-template-rows: auto; }
  .lg-rank { grid-row: auto; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .lg-lead-card { transition: none; } .lg-lead-card:hover { transform: none; } }

/* ── 1차 리뉴얼(2026-10-19) 페이지별 정리: 예전 파랑·보라 빛과 그라데이션 글자를 새 세계(검정 + 라임)로 ── */
.hero { background: radial-gradient(90% 80% at 50% -10%, rgba(198, 243, 74, .10), transparent 60%), var(--panel); border-color: var(--line); }
.hero-sky { opacity: .55; background-image: radial-gradient(1.2px 1.2px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 68%, var(--soft) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 44% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 78%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 76% 30%, var(--soft) 50%, transparent 51%), radial-gradient(1px 1px at 88% 60%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 84%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 94% 12%, #fff 50%, transparent 51%); }
.hero-title { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); filter: none; letter-spacing: -.04em; font-weight: 850; }
.hero-dot { background: var(--accent); box-shadow: 0 0 0 0 rgba(198, 243, 74, .6); }
@keyframes hero-pulse { to { box-shadow: 0 0 0 10px rgba(198, 243, 74, 0); } }
.hero-btn { border-color: var(--line-strong); background: var(--panel-2); }
.hero-btn:hover { background: var(--panel-3); }
.hero-btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.hero-btn.primary:hover { background: var(--accent-hover); }
.rh { border-color: var(--line); background: radial-gradient(700px 400px at 100% 100%, rgba(198, 243, 74, .08), transparent 70%), var(--panel); }
.rh-lead { color: var(--soft); }
.rh-cta { background: var(--accent); color: var(--on-accent); box-shadow: none; border-radius: var(--r-pill); }
.rh-cta:hover { background: var(--accent-hover); box-shadow: none; }
.rh-join { background: var(--panel-2); border-color: var(--line); border-radius: var(--r-pill); }
.rh-join button { background: var(--panel-3); border-color: var(--line-strong); border-radius: var(--r-pill); }
.rm-who { color: var(--soft); }
.rm-tag { background: var(--panel-3); color: var(--soft); }
.rm-text { background: var(--panel-2); color: var(--text); }
.rm-ai .rm-text { background: var(--panel-3); }
.rm-owner .rm-text { background: var(--accent); color: var(--on-accent); }
.rm-at { color: var(--muted); }
.rm-day span { color: var(--soft); background: var(--panel-2); border-color: var(--line); }
.player-card { background: var(--panel-2); }
.tab-label .muted { font-size: 12px; font-weight: 500; }
.lg-standings { margin-top: 6px; }
.lg-more { margin-top: 12px; }
.lg-more summary { cursor: pointer; color: var(--soft); font-weight: 600; padding: 8px 0; }
.lg-more summary:hover { color: var(--text); }
.lg-more[open] summary { margin-bottom: 6px; }
@media (max-width: 1240px) and (min-width: 901px) {      /* 좁은 데스크톱: 상위 5위 칸에서 이름이 잘리지 않게 모델 줄임은 뺀다 */
  .lg-top .lg-name .lg-model { display: none; }
  .lg-top a { padding: 12px 12px; gap: 2px 10px; }
  .lg-num small { font-size: 11.5px; }
}
.lg-num small { white-space: nowrap; }

/* 리그 띠 — 리그 화면들 메뉴 아래 한 줄 (잠정 숫자, 건수·기준선 함께) */
.lband { display: flex; gap: 0; align-items: center; height: 40px; padding: 0 28px; border-bottom: 1px solid var(--line);
  background: var(--panel); overflow-x: auto; scrollbar-width: none; font-size: 13px; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lband::-webkit-scrollbar { display: none; }
.lband-item { display: inline-flex; align-items: baseline; gap: 6px; padding: 0 16px; border-left: 1px solid var(--line); }
.lband-item:first-child { padding-left: 0; border-left: 0; }
.lband b { color: var(--text); font-weight: 750; }
.lband small { color: var(--muted); font-size: 12px; }
.lband a { color: var(--text); }
.lband-top a { margin-left: 8px; }
.lband-top a b { color: var(--accent); margin-right: 2px; }
.lband-season { color: var(--text); font-weight: 650; }
.lband-note { color: var(--muted); }
@media (max-width: 720px) { .lband { padding: 0 16px; } }

/* AI 모델별 모양 표식 — 모양 + 색(색약도 구분), 등락색·강조색은 쓰지 않는다 */
.mk { display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: 1px; flex: none; }
.mk-q { background: #b58cff; transform: rotate(45deg) scale(.82); }                       /* ◆ 큐원 */
.mk-n { background: #35d0ba; border-radius: 50%; }                                        /* ● 플래시 */
.mk-g { background: #e9c46a; clip-path: polygon(50% 0, 100% 100%, 0 100%); }              /* ▲ 젬마 */
.mk-m { background: #e8e8ec; }                                                            /* ■ 미스트랄 */
.mk-r { border: 2px solid #e8e8ec; border-radius: 50%; }                                  /* ○ 트레이딩 AI */
.mk-o { border: 1.5px solid var(--muted); }                                               /* □ 그 밖 */
.mk-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; color: var(--muted); }
.mk-legend span { display: inline-flex; align-items: center; }

/* 메달 — 그림 글자 대신 그린 원 (금·은·동) */
.medal { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.medal-g { background: #e9c46a; }
.medal-s { background: #c9ccd3; }
.medal-b { background: #c98a5a; }
.ops-group { font-size: 20px; margin: 26px 0 12px; }
/* 소리 받아쓰기(/admin/stt) */
.stt-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.stt-out { min-height: 160px; max-height: 480px; overflow-y: auto; padding: 12px 14px; background: var(--bg); border-radius: 8px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.stt-out p { margin: 0 0 6px; }
/* 소리 받아쓰기 위쪽 무대 — 듣는 칸(파형·시간·조각 진행) + 쓰는 칸(글이 따라 써짐). 사용자 10-21 */
.stt-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; }
@media (max-width: 760px) { .stt-panes { grid-template-columns: minmax(0, 1fr); } }
.stt-pane { display: flex; flex-direction: column; gap: 10px; min-height: 200px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.stt-pane-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.stt-pane-head > :last-child { margin-left: auto; }
.stt-num { font-variant-numeric: tabular-nums; }
.stt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background .2s, box-shadow .2s; }
.stt-stage[data-state="live"] .stt-dot { background: var(--muted); }
.stt-stage[data-loud="1"] .stt-dot { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.stt-wave { display: block; flex: 1; width: 100%; min-height: 96px; }
.stt-chunk { display: flex; align-items: center; gap: 10px; }
.stt-chunk-track { flex: 1; height: 4px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.stt-chunk-track i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.stt-typing { flex: 1; max-height: 168px; overflow-y: auto; font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.stt-typing p { margin: 0 0 6px; color: var(--soft); }
.stt-typing p:last-child { color: var(--text); }
.stt-typing p.on::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: var(--accent); animation: stt-caret 1s steps(1) infinite; }
@keyframes stt-caret { 50% { opacity: 0; } }
.stt-pen { display: inline-flex; gap: 3px; }
.stt-pen i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.stt-stage[data-busy="1"] .stt-pen i { background: var(--accent); animation: stt-pen 1.2s ease-in-out infinite; }
.stt-stage[data-busy="1"] .stt-pen i:nth-child(2) { animation-delay: .15s; }
.stt-stage[data-busy="1"] .stt-pen i:nth-child(3) { animation-delay: .3s; }
@keyframes stt-pen { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stt-typing p.on::after, .stt-stage .stt-pen i { animation: none !important; } }
.stt-help { margin: 12px 0 0; }
.stt-bar label { flex-direction: row; align-items: center; gap: 6px; }   /* 폼 label 기본(세로)을 이 줄에서만 가로로 */

/* 리그 — 왜 이 리그인가 (2026-10-21, ESMA 근거 한 칸) */
.lg-why { border-left: 3px solid var(--accent); }
.lg-why h2 { margin: 0 0 8px; font-size: 18px; }
.lg-why p { margin: 0 0 8px; color: var(--soft); line-height: 1.7; word-break: keep-all; }
.lg-why .lg-why-src { margin: 4px 0 0; color: var(--muted); }

/* 관리 — 모의투자 현황판 /admin/paper (2026-10-22) */
.pp-warn { margin: 0 0 14px; padding: 12px 16px; border: 1px solid var(--warn); border-radius: var(--r-ctl); color: var(--warn); background: rgba(245, 165, 36, .08); font-weight: 600; }
.pp-unit { margin: 0 0 14px; color: var(--soft); font-size: 14px; }
.pp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.pp-card { margin: 0; }
.pp-card h2 { font-size: 15px; margin: 0 0 6px; }
.pp-big { font-size: 26px; font-weight: 750; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.pp-big small { font-size: 12px; font-weight: 500; }
.pp-one p { margin: 0 0 4px; }
.pp-dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 13px; }
.pp-dl dt { color: var(--muted); }
.pp-dl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.pp-stock { font-weight: 600; }
.pp-table td.num, .pp-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pp-table th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
.pp-table th[aria-sort="descending"]::after { content: " ▼"; color: var(--accent); }
.pp-table th[aria-sort="ascending"]::after { content: " ▲"; color: var(--accent); }
.pp-tall { max-height: 520px; overflow-y: auto; }
.pp-sub { font-size: 14px; margin: 14px 0 6px; }

/* 참여 안내 /join (2026-10-23 마케팅 1팀) */
.join { max-width: 880px; margin: 0 auto; }
.join-head { margin: 8px 0 22px; }
.join-head h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.02em; word-break: keep-all; }
.join-head h1 em { font-style: normal; color: var(--accent); }
.join-lead { font-size: 18px; color: var(--soft); margin: 0 0 6px; word-break: keep-all; }
.join h2 { font-size: 18px; margin: 0 0 10px; }
.join-why, .join-steps { margin: 0; padding-left: 20px; color: var(--soft); line-height: 1.75; word-break: keep-all; }
.join-why li, .join-steps li { margin: 4px 0; }
.join-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.join-way { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel-2); color: var(--text); word-break: keep-all; }
a.join-way:hover { border-color: var(--accent); text-decoration: none; }
.join-way span { color: var(--soft); font-size: 14px; line-height: 1.6; }
.join-way small { color: var(--muted); }
.join-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 24px; }

/* 모의투자 — 맨 위 현재 상황 한 줄 (2026-10-23): 숫자 둘 + 위로 흐르는 목록 셋 */
.pp-verdict { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; word-break: keep-all; }
.pp-verdict > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; min-width: 0; }
.pp-verdict h2 { font-size: 13px; margin: 0 0 6px; color: var(--soft); }
.pp-verdict p { margin: 0; }
.pp-v-main { border-color: var(--line-strong) !important; }
.pp-v-big { font-size: 34px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 2px 0 4px !important; }
.pp-v-num { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 2px 0 4px !important; }
.pp-v-line { grid-column: 1 / -1; font-size: 14px; padding: 2px 2px 0; }   /* 11-19 대조 AI 칸 둘은 관리 화면으로 — 칸 4→2 */
.pp-v-kospi { grid-column: span 2; }                 /* 11-29 '있는 그대로' — 큰 숫자 셋 나란히, 아랫줄은 코스피 대비(쪼개기)·스위치 */
.pp-verdict .pp-v-split { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.pp-sign { margin: 0 0 8px; word-break: keep-all; }
.pp .pp-now-note { display: block; margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 500; text-align: right; word-break: keep-all; }
.pp-card .pp-now-note { text-align: left; }
.pp-nb, .pp-legend b, .pp-now-stat p > .up, .pp-now-stat p > .down { white-space: nowrap; }   /* 360px 에서 '+0.35 / %'·'+145,857.3 / 만' 으로 끊기던 것 */
@media (max-width: 760px) { .pp-verdict { grid-template-columns: minmax(0, 1fr); } .pp-v-kospi { grid-column: auto; } }
.pp-now { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(150px, .8fr) repeat(3, minmax(170px, 1fr)); gap: 10px; margin: 0 0 14px; }
.pp-now > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; min-width: 0; }
.pp-now h2 { font-size: 13px; margin: 0 0 8px; color: var(--soft); }
.pp-now-stat p { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pp-now-stat p span:first-child { color: var(--muted); font-weight: 500; font-size: 13px; }
.pp-tick-win { height: 108px; overflow: hidden; position: relative; outline-offset: 2px;
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.pp-tick-list { list-style: none; margin: 0; padding: 0; }
.pp-tick-list li { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 3px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.pp-tick-list li small { grid-column: 1 / -1; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-tick-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-tick-pct { font-variant-numeric: tabular-nums; }
.pp-tick-win.roll .pp-tick-list { animation: pp-roll var(--roll, 30s) linear infinite; }
.pp-tick-win.roll:hover .pp-tick-list, .pp-tick-win.roll:focus .pp-tick-list { animation-play-state: paused; }
@keyframes pp-roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .pp-tick-win { overflow-y: auto; mask-image: none; -webkit-mask-image: none; } .pp-tick-win.roll .pp-tick-list { animation: none; } }
@media (max-width: 1100px) { .pp-now { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pp-tick { grid-column: span 2; } }

/* 관리 — 계좌·계좌 전체 (2026-10-25) */
.acc-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.acc-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--soft); }
.acc-form .acc-check { flex-direction: row; align-items: center; gap: 6px; }
.acc-key { display: inline-block; padding: 1px 7px; border-radius: var(--r-pill); border: 1px solid var(--line); margin: 1px 0; white-space: nowrap; }
.acc-key-ok { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.acc-key-stale { border-color: var(--warn); color: var(--warn); }
.acc-key-none { color: var(--muted); }
.acc-card { border: 1px solid var(--line); border-radius: var(--r-ctl); margin: 0 0 8px; background: var(--panel-2); }
.acc-card summary { cursor: pointer; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.acc-card .acc-sum { margin-left: auto; font-variant-numeric: tabular-nums; }
.acc-body { padding: 0 14px 12px; }

/* 관리 — 영상 올리기 (2026-10-25, 휴대폰 먼저) */
.up-btn { display: block; text-align: center; padding: 16px; border-radius: var(--r-card); background: var(--accent); color: var(--on-accent); font-weight: 750; font-size: 17px; cursor: pointer; }
.up-btn:hover { background: var(--accent-hover); }
.up-link { width: 100%; font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: inherit; }
.up-list { list-style: none; margin: 10px 0 0; padding: 0; }
.up-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.up-name { font-weight: 600; overflow-wrap: anywhere; }
.up-list progress { grid-column: 1 / -1; width: 100%; height: 8px; accent-color: var(--accent); }
.up-list .up-state { justify-self: start; grid-column: 1 / -1; }
.up-sent, .up-cleaned { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.up-failed { border-color: var(--warn); color: var(--warn); }
.up-err { grid-column: 1 / -1; overflow-wrap: anywhere; }
.pp-now-stat .pp-now-sum { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }   /* 10-24 누적 손익 줄 */
/* 공개 모의투자(10-28) — 우리 vs 시장 평균 두 줄. 우리 = 강조색 실선, 시장 평균 = 회색 점선 */
.pp-chart { width: 100%; height: auto; display: block; margin: 4px 0 8px; }
.pp-chart polyline { fill: none; stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* 11-07 줄 여섯 — 사용자 "제일 중요한 선만 실선, 나머지는 점선, 두께도 중요도대로".
   중요도: 현실 계좌(실선·가장 굵게) > 같은 종목 범위(기준선) > 트레이딩 AI 평균 > 스위치 적용 > 대조 AI > 코스피(참고) */
.pp-chart { --pp-acct: #b48cff; }
.pp-line-acct { stroke: var(--pp-acct); stroke-width: 2.4 !important; opacity: .85; }
.pp-line-univ { stroke: var(--soft); stroke-width: 2.2 !important; stroke-dasharray: 8 4; }
.pp-line-rule { stroke: var(--accent); stroke-width: 4.2 !important; opacity: 1; }   /* 11-10 사용자: 우리 것, 제일 굵고 진한 실선 */
.pp-line-rule_v2 { stroke: var(--accent); stroke-width: 4.2 !important; opacity: 1; }    /* 11-11 규칙 V2 — 칸이 생긴 날부터 맨 굵은 실선, V1 은 보관판 점선 */
.pp-chart:has(.pp-line-rule_v2) .pp-line-rule { stroke-width: 2.6 !important; stroke-dasharray: 7 4; opacity: .75; }
.pp-line-acct_sw { stroke: var(--pp-acct); stroke-width: 1.6 !important; stroke-dasharray: 2 3; }
.pp-line-ctrl { stroke: var(--warn); stroke-width: 1.3 !important; stroke-dasharray: 4 4; }
.pp-line-kospi { stroke: #fff; stroke-width: 3 !important; }   /* 11-29 사용자: 점선이 안 보임 → 흰색 굵은 실선(공개·관리 두 화면 같이), 우리 줄(4.2)보다는 얇게 */
.pp-grid { stroke: var(--line); stroke-width: 1; }
.pp-zero { stroke: var(--soft); stroke-width: 1; opacity: .6; }
.pp-axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.pp-chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.pp-chart-head h2 { margin: 0; }
.pp-switch { margin: 0; }
.pp-sw-on { color: var(--accent); }
.pp-sw-off { color: var(--warn); }
.pp-legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; }
.pp-legend li { display: flex; align-items: center; gap: 6px; word-break: keep-all; font-variant-numeric: tabular-nums; }
.pp-key { flex: none; display: inline-block; width: 22px; height: 0; border-top: 2px dashed var(--accent); }   /* 범례도 그래프와 같은 실선·점선·두께 */
.pp-key-acct { border-top: 2.5px solid #b48cff; opacity: .85; }
.pp-key-univ { border-top: 2.5px dashed var(--soft); }
.pp-key-rule { border-top: 4.5px solid var(--accent); }
.pp-key-rule_v2 { border-top: 4.5px solid var(--accent); }
.pp-legend:has(.pp-key-rule_v2) .pp-key-rule { border-top: 3px dashed var(--accent); opacity: .75; }
.pp-key-acct_sw { border-top: 2px dotted #b48cff; }
.pp-key-ctrl { border-top: 1.5px dashed var(--warn); }
.pp-key-kospi { border-top: 3px solid #fff; }
.pp-cash { margin: 0 0 6px; word-break: keep-all; }
@media (max-width: 600px) { .pp-chart { overflow: visible; } .pp-axis { font-size: 26px; } }   /* 폰에선 그림이 1/3 로 줄어 눈금 글자를 키움 */
.pp-now-stat h2 a { color: inherit; }

/* 공개 현황 — 목록 상자를 누르면 그래프 자리가 그 목록 전체로(10-28) */
.pp-tick[data-show] { cursor: pointer; transition: border-color .15s; }
.pp-tick[data-show]:hover, .pp-tick.on { border-color: var(--accent); }
.pp-tick h2 { display: flex; align-items: center; gap: 6px; }
.pp-all { margin-left: auto; font: inherit; font-size: 12px; color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.pp-all:hover { border-color: var(--accent); }
.pp-view-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pp-view-head h2 { margin: 0; }
.pp-full { columns: 5 170px; column-gap: 18px; list-style: none; margin: 0; padding: 0; }
.pp-full li { break-inside: avoid; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 5px 0; font-size: 13px; border-bottom: 1px solid var(--line); word-break: keep-all; }
.pp-full li small { grid-column: 1 / -1; font-size: 11px; }

/* 1등 AI 추천 /top-pick (11-03) — 매수할(빨강 띠)·익절할(파랑 띠) 두 상자 + 날짜별 표 */
.tp-crumb { margin: 0 0 2px; }
.tp-score { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 12px; }   /* 11-27 성적이 먼저 */
.tp-sc { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; word-break: keep-all; }
.tp-sc h2 { margin: 0 0 10px; font-size: 15px; }
.tp-sc h2 small { margin-left: 6px; font-weight: 500; }
.tp-sc dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin: 0; }
.tp-sc dt { font-size: 12px; color: var(--muted); }
.tp-sc dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tp-sc p { margin: 8px 0 0; }
.tp-sc-buy { border-top: 3px solid var(--up); }
.tp-sc-sell { border-top: 3px solid var(--down); }
.tp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 12px; }
.tp-today { display: grid; gap: 8px; align-content: start; }
.tp-today h2, .tp-today p { margin: 0; }
.tp-buy { border-top: 3px solid var(--up); }
.tp-sell { border-top: 3px solid var(--down); }
.tp-name { font-size: 1.5rem; font-weight: 700; word-break: keep-all; }
/* 11-07 사용자: '파는 때' 한 줄(맨 위) · 손절 미루기 경고(내릴 것으로 본 종목 머리 옆, 눈에 띄는 색·굵게) */
.tp-exit { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 6px; font-size: 14px; word-break: keep-all; overflow-wrap: anywhere; }
.tp-exit small { margin-left: 4px; }
.tp-split { margin: 0 0 12px; padding: 6px 12px; font-size: 13px; word-break: keep-all; overflow-wrap: anywhere; }
.tp-split summary { cursor: pointer; margin-top: 2px; }
.tp-split ul { margin: 4px 0 0; padding-left: 18px; }
.tp-today p.tp-sl { color: var(--warn); font-weight: 800; font-size: 14px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.tp-sl small { display: block; margin-top: 2px; font-weight: 500; font-size: 12.5px; color: var(--text); opacity: .8; }
.tp-more { justify-self: start; margin-left: 0; font-size: 13px; padding: 5px 12px; }
.tp-table { width: 100%; }   /* 칸 좁게·매수와 익절 사이 넓게, 남는 폭은 화면 끝까지 나눠 채움 (11-03 사용자) */
.tp-table th, .tp-table td { white-space: nowrap; padding: 7px 8px; }
.tp-table th.tp-g { text-align: start; font-size: 13px; font-weight: 700; color: var(--text); }
.tp-table .tp-g-buy { box-shadow: inset 0 3px 0 var(--up); }
.tp-table .tp-g-sell { box-shadow: inset 0 3px 0 var(--down); }
.tp-table .tp-g, .tp-table .tp-first { padding-left: 28px; }
.tp-table .tp-g-sell, .tp-table .tp-first ~ .tp-first { padding-left: 56px; border-left: 1px solid var(--line); }
.tp-table tr > :first-child { padding-right: 8px; }
.tp-table .tp-dim { opacity: .55; font-size: 12.5px; }   /* 덜 중요한 칸은 흐리게 (11-03 사용자) */
.tp-table .tp-ex { font-weight: 800; }   /* 시장 대비는 추천일보다 진하게 */
@media (max-width: 1500px) {   /* 1366 화면에서도 옆으로 안 밀리게 — 연도·종목 번호 숨기고 칸 사이 좁힘 */
  .tp-table { font-size: 13px; }
  .tp-table th, .tp-table td { padding: 6px 5px; }
  .tp-table .tp-g, .tp-table .tp-first { padding-left: 12px; }
  .tp-table .tp-g-sell, .tp-table .tp-first ~ .tp-first { padding-left: 22px; }
  .tp-table .tp-yr, .tp-table td.tp-first > .muted { display: none; }
  .tp-table .tp-dim { font-size: 12px; }
}
.tp-rets { display: flex; gap: 28px; margin: 0; }
.tp-rets dt { font-size: 12px; color: var(--muted); }
.tp-rets dd { margin: 2px 0 0; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.tp-all { margin: 6px 0 12px; padding-inline-start: 20px; display: grid; gap: 6px; }
.tp-apply { margin-top: 6px; background: var(--accent); color: var(--on-accent); border: 0; font: inherit; font-weight: 700; padding: 9px 20px; border-radius: var(--r-pill); cursor: pointer; }
/* 매일 아침 결과 메일 띠 (11-07) — 한 줄, 좁으면 버튼 아래로 설명 */
.tp-digest { padding: 12px 16px; }
.tp-digest p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; word-break: keep-all; }
.tp-digest .tp-apply { margin: 0; }
/* /top-pick 맨 윗줄 — 시장 국면·검증 (11-08) */
.tp-top { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 10px; font-size: 14px; word-break: keep-all; }
/* LLM 서버 셋팅 /llmset (11-09) */
.ls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; }
.ls-grid label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.ls-grid input { font: inherit; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text, inherit); }
.ls-job { border-bottom: 1px solid var(--line); padding: 8px 0; }
.ls-job summary { cursor: pointer; word-break: keep-all; }
.ls-log { max-height: 360px; overflow: auto; white-space: pre-wrap; word-break: break-all; font-size: 12px; margin: 8px 0 0; padding: 10px; border-radius: 8px; background: rgba(127,127,127,.08); }
.ls-done { color: var(--up, inherit); } .ls-failed { color: #e5534b; }
.pp-plain { margin: 6px 0 0; word-break: keep-all; }
.stt-faq ol { padding-left: 1.3em; word-break: keep-all; } .stt-faq details { border-bottom: 1px solid var(--line); padding: 8px 0; } .stt-faq summary { cursor: pointer; font-weight: 600; word-break: keep-all; } .stt-faq details p { margin: 6px 0 0; word-break: keep-all; }

/* AI 성향 맵(11-16 사용자) — 순위권 AI 를 흔들림(가로) × 평균 초과수익(세로) 으로 흩뜨린다. pp-chart 와 같은 방식(파이썬이 좌표, 여기선 색만). */
.lg-map-svg { width: 100%; height: auto; display: block; margin: 6px 0 8px; }
.lg-map-grid { stroke: var(--line); stroke-width: 1; }
.lg-map-zero { stroke: var(--soft); stroke-width: 1; stroke-dasharray: 6 4; opacity: .8; }
.lg-map-ax { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.lg-map-axname { font-size: 11px; opacity: .85; }
.lg-map-dot { fill: var(--soft); opacity: .5; }
.lg-map-dot.is-solid { fill: var(--accent); opacity: 1; }   /* 운으로 보기 어려운 AI 만 진하게 — 지금 순위권 524명 중 11명 */
.lg-map-dot:hover { fill: var(--accent); opacity: 1; }
.lg-map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; word-break: keep-all; }
.lg-map-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--soft); opacity: .5; margin-right: 4px; }
.lg-map-key.is-solid { background: var(--accent); opacity: 1; }
.lg-map { word-break: keep-all; }
.lg-map-side { margin-top: 6px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); word-break: keep-all; }   /* 11-16 장 방향 한 줄 */
.lg-map-chance { margin-top: 6px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); word-break: keep-all; }
.lg-map-chance.is-warn { border-color: var(--warn); color: var(--warn); }   /* 11-16 다중 검정 — 통과 수가 우연 기대치를 못 넘으면 경고색 */
/* 폰에선 그림이 줄어 눈금 글자를 키우고, 축 이름은 숨긴다 — 11-16 모바일 확인에서 눈금 숫자와 겹쳤다(위 설명 문장이 두 축을 이미 말한다) */
@media (max-width: 600px) { .lg-map-svg { overflow: visible; } .lg-map-ax { font-size: 20px; } .lg-map-axname { display: none; } }
/* overflow 를 열어 두는 까닭 — 폰에서 눈금 글자를 키우면 맨 왼쪽 "+14.1" 의 + 가 그림 밖으로 잘려 "-14.1" 로 읽혔다(부호가 뒤집혀 보임). pp-chart 와 같은 처리. */

/* 11-27 업종 비중 막대 (관리 모의투자·자동매매) */
.sec-bars { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 6px; }
.sec-bars li { display: grid; grid-template-columns: minmax(6em, 11em) 1fr auto; gap: 10px; align-items: center; word-break: keep-all; }
.sec-bar { height: 10px; background: var(--line, rgba(127,127,127,.2)); border-radius: 5px; overflow: hidden; }
.sec-bar i { display: block; height: 100%; background: var(--accent, #4b8bff); }
/* 검증 > 학습 곡선 (11-27) — 한 줄짜리라 범례 없이 제목이 이름, 기준선은 점선, 점에 올리면 값 */
.lc-sec { margin-bottom: 12px; word-break: keep-all; overflow-wrap: anywhere; }
.lc-sec h2 small { margin-left: 6px; font-weight: 500; }
.lc-big { margin: 4px 0 8px; } .lc-big b { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lc-wrap { position: relative; }
.lc-chart { display: block; width: 100%; height: 200px; overflow: visible; }   /* 폭은 늘고 높이는 그대로 — 선·점은 non-scaling */
.lc-chart * { vector-effect: non-scaling-stroke; }
.lc-base { stroke: var(--muted); stroke-dasharray: 4 4; stroke-width: 1; opacity: .7; }
.lc-base-t { position: absolute; right: 0; transform: translateY(-120%); padding: 0 4px; border-radius: 4px; background: var(--panel); color: var(--muted); font-size: 12px; pointer-events: none; }
.lc-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lc-dot { stroke: var(--accent); stroke-width: 8; stroke-linecap: round; }
.lc-hit { stroke: transparent; stroke-width: 24; stroke-linecap: round; }
.lc-pt:hover .lc-dot { stroke-width: 12; }
@media (max-width: 760px) { .lc-chart { height: 150px; } }
.lc-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 6px; }
.lc-pair dt { font-size: 12px; color: var(--muted); } .lc-pair dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lc-read { margin: 6px 0; font-weight: 600; }
.lc-tbl { margin-top: 8px; } .lc-tbl summary { cursor: pointer; font-size: 13px; }

/* 첫 화면 — 리그 중심 (11-27 사용자·88 개편 3단계). 인기 지도는 /popular */
.home-hero { padding: 28px 0 8px; max-width: 760px; }
.home-hero h1 { font-size: clamp(26px, 4.2vw, 40px); line-height: 1.22; margin-bottom: 14px; }
.home-em { color: var(--accent); }
.home-lead { color: var(--soft); font-size: 16px; margin: 0 0 18px; max-width: 640px; }
.home-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0; }
.home-cta a.button { padding: 10px 18px; border-radius: var(--r-ctl); }
.home-btn2 { display: inline-block; padding: 9px 17px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); font-weight: 600; }
.home-btn2:hover { border-color: var(--accent); text-decoration: none; }
.home-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 18px; }
.home-stats > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.home-stats dt { color: var(--muted); font-size: 13px; }
.home-stats dt small { display: block; font-size: 12px; }
.home-stats dd { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.home-tbl { min-width: 600px; }
.home-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.home-soon { margin: 0; padding-left: 18px; }
.home-soon li { margin: 4px 0; }
.home-soon b { margin-right: 6px; }
@media (max-width: 720px) {
  .home-hero { padding-top: 16px; }
  .home-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-stats dd { font-size: 22px; }
  .home-split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {   /* 채점표: 좁은 화면에서는 옆으로 밀지 않고 줄마다 카드로 */
  .home-tbl { min-width: 0; }
  .home-tbl thead { display: none; }
  .home-tbl tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .home-tbl td { border: 0; padding: 0; }
  .home-tbl td:first-child, .home-tbl td:last-child { grid-column: 1 / -1; }
  .home-tbl td:first-child { font-weight: 600; }
  .home-tbl td:last-child { color: var(--soft); font-size: 13px; }
  .home-tbl .num { text-align: start; white-space: normal; }
  .home-tbl .num::before { content: attr(data-l); display: block; color: var(--muted); font-size: 11px; }
}

/* 검증 > 시험 장부 (11-27 개편 4단계) */
.tr-state { font-size: 12px; color: var(--warn); border: 1px solid currentColor; border-radius: var(--r-pill); padding: 2px 10px; white-space: nowrap; }
.tr-state.done { color: var(--accent); }
.tr-ask { font-size: 16px; margin: 0 0 12px; }
.tr-dl .tr-small { font-size: 15px; font-weight: 600; }
.tr-list { margin: 0 0 8px; padding-left: 18px; color: var(--soft); }
.tr-list li { margin: 3px 0; }
.tr-good { border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; margin: 0 0 8px; }

/* 검증 > 검증 시리즈 (11-27 개편 6단계) */
.vs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vs-item { display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 6px 14px; margin: 0; padding: 14px 18px; }
.vs-day { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.vs-title { font-weight: 650; font-size: 16px; }
.vs-links { font-size: 13px; color: var(--muted); white-space: nowrap; }
.vs-links a { color: var(--soft); }
@media (max-width: 720px) {
  .vs-item { grid-template-columns: 1fr; padding: 12px 14px; }
  .vs-links { white-space: normal; }
}
.lc .ops-top > p:last-child, .tr .ops-top > p:last-child, .vs .ops-top > p:last-child { flex-basis: 100%; margin: 0; }   /* 검증 화면 머리 설명은 한 줄 전체로 */

/* 아침 보고 고르기 (11-27 개편 7단계, /top-pick 메일 칸) */
.tp-follow { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }
.tp-follow-ai { display: grid; gap: 4px; max-width: 520px; margin: 6px 0 10px; font-size: 14px; }
.tp-follow-ai input { background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); color: var(--text); padding: 8px 10px; font: inherit; }
.tp-follow-sec { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.tp-follow-sec legend { font-size: 14px; margin-bottom: 6px; padding: 0; }
.tp-follow-sec label { white-space: nowrap; align-items: center; }
.tp-follow-msg { color: var(--accent); margin: 4px 0; font-size: 14px; }

/* 사람 리그 (11-27 개편 9단계) */
.pl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pl-list .pl-q { margin: 0; }
.pl-qt { margin: 0 0 2px; font-weight: 650; font-size: 16px; }
.pl-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 0; }
.pl-steps { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pl-steps label { display: inline-flex; flex-direction: row; gap: 0; }
.pl-steps input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pl-steps span { display: inline-block; min-width: 44px; padding: 9px 0; text-align: center; border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  font-variant-numeric: tabular-nums; cursor: pointer; color: var(--soft); }
.pl-steps span::after { content: "%"; font-size: 11px; color: var(--muted); }
.pl-steps input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.pl-steps input:checked + span::after { color: var(--on-accent); }
.pl-steps input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pl-mine { margin: 8px 0 0; }
.pl-err { color: var(--warn); font-size: 14px; }
.pl-name { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 6px 0; }
.pl-name label { flex: 1 1 200px; }
.pl-name input { background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); color: var(--text); padding: 8px 10px; font: inherit; }
.pl .ops-top > p:last-child { flex-basis: 100%; margin: 0; }

/* 시장 > 거시 인과 사슬표 (11-27 개편 10단계) */
.mc .ops-top > p:last-child { flex-basis: 100%; margin: 0; }
.mc-note p { margin: 0 0 8px; }
.mc-groups { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mc-groups a { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--soft); white-space: nowrap; }
.mc-groups a:hover { border-color: var(--accent); text-decoration: none; }
.mc-gh { font-size: 18px; margin: 26px 0 10px; scroll-margin-top: calc(var(--head-h, 110px) + 12px); }
.mc-c { padding: 16px 18px; margin-bottom: 10px; }
.mc-chain { font-size: 16px; font-weight: 650; margin: 0 0 6px; line-height: 1.5; }
.mc-id { display: inline-block; font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 6px; margin-right: 4px; vertical-align: 2px; }
.mc-break { margin: 6px 0; font-size: 14px; color: var(--soft); }
.mc-break b { color: var(--warn); font-weight: 650; margin-right: 6px; }
.mc-cases summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-top: 4px; }
.mc-tbl { min-width: 620px; }
.mc-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-tbl .mc-main { background: var(--panel-2); font-weight: 700; }

/* 실전투자 /paper/broker (2026-12-02) — /paper 조각 그대로, 카드 넷씩·폰에서 매매 줄 접기만 더함 */
.br h3 { margin: 0 0 6px; color: var(--text); }
.br-h { margin: 18px 0 10px !important; }
.br-state { margin-bottom: 4px; color: var(--text); }
.br-note { margin: 0 0 14px; max-width: 72em; line-height: 1.6; }
.br .panel > .br-note { margin: 10px 0 0; }
.br-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.br-cards .pp-card { display: flex; flex-direction: column; }
.br-cards .pp-card p { margin: 0 0 10px; line-height: 1.55; }
.br-cards .pp-dl { margin-top: auto; }
.br-tbl td:nth-child(4) { white-space: nowrap; }
.br-tbl td:last-child { color: var(--soft); width: 99%; }
.br-ranks { min-width: 0; }
.br-ranks td:last-child { white-space: normal; }
.br-rk { display: inline-block; margin: 0 14px 2px 0; }
.br-path { max-width: none; }
.br-path .badge { white-space: nowrap; }
@media (max-width: 1000px) { .br-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .br-cards { grid-template-columns: minmax(0, 1fr); }
  .br-tbl { min-width: 0; }
  .br-tbl thead { display: none; }
  .br-tbl tr { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .br-tbl td { border: 0; padding: 0; }
  .br-tbl td:empty { display: none; }
  .br-tbl td:last-child { flex: 1 0 100%; width: auto; font-size: 13px; }
  .br-ranks thead { display: none; }
  .br-ranks tr, .br-ranks td { display: block; }
  .br-ranks td:first-child { border: 0; padding-bottom: 0; color: var(--muted); }
}

/* 라이브 방송 팝업(12-02) — 방송 시간에만, 하루 한 번 */
.live-pop { word-break: keep-all; display: none; }
.live-pop[open] { display: flex; flex-direction: column; gap: 12px; }
.live-pop-on { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #ff6b6b; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255, 59, 59, .6); animation: live-dot 1.6s ease-out infinite; }
@keyframes live-dot { 70% { box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-pop-go { display: block; padding: 13px 16px; border-radius: 12px; background: #ff3b3b; color: #fff; font-weight: 700; text-align: center; text-decoration: none; }
.live-pop-go:hover, .live-pop-go:focus-visible { background: #e02f2f; }
.live-pop-go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* 아이디어 목록 /admin/ideas (12-03) — 날마다 한 판, 한 줄 = 이름표 | 내용, 좁으면 위아래로 */
.idea-list { list-style: none; margin: 0; padding: 0; }
.idea { padding: 14px 0; border-top: 1px solid var(--line); }
.idea:first-child { border-top: 0; padding-top: 2px; }
.idea h3 { margin: 0 0 8px; font-size: 1.05rem; }
.idea-dl { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 14px; line-height: 1.55; }
.idea-dl dt { color: var(--muted); font-size: 12px; padding-top: 2px; }
.idea-dl dd { margin: 0; }
.idea-dl a { text-decoration: underline; text-decoration-color: var(--accent); }
.idea-links a + a { margin-left: 12px; }
@media (max-width: 560px) { .idea-dl { grid-template-columns: 4.6em minmax(0, 1fr); gap: 4px 10px; font-size: 13.5px; } }

/* AI 방송 대화 /livetalk (12-03) */
.lt { word-break: keep-all; }
.lt-rules, .lt-steps { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--soft); }
.lt-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lt-lines li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.lt-lines p { margin: 4px 0 0; overflow-wrap: anywhere; }
.lt-who { margin-left: 4px; }
.lt-code { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .04); overflow-x: auto; font-size: 13px; white-space: pre; }

/* 12-03 서버 임대 손님 화면 /rent */
.rent { word-break: keep-all; }
.rent-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.rent-server + .rent-server { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.rent-server h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 1rem; }
.rent-gpu td:first-child, .rent-gpu th:first-child { text-align: start; }
.rent-gpu .ops-gpu { grid-template-columns: minmax(60px, 1fr) auto; min-width: 120px; }
.rent-key { font-size: 1.05rem; word-break: break-all; }
.rent-contact { margin-top: 24px; text-align: center; }
/* 12-05 키 받기 전 안내 — /rent/guide·/rent 키 칸 */
.rent-brief { margin: 12px 0; padding: 12px 16px; border-radius: var(--r-ctl); background: var(--panel-2); }
.rent-brief p { margin: 0 0 6px; }
.rent-brief ol, .rent-rules { margin: 0; padding-left: 1.4em; }
.rent-brief li, .rent-rules li { margin: 4px 0; line-height: 1.6; }
.rent-keyform { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 12px 0 8px; }
.rent-keyform label.check { font-size: 14px; align-items: center; }
.rent-keyform label.check input { margin-top: 0; width: 18px; height: 18px; }
.rent-keyform button { min-height: 40px; padding: 0 18px; }
.rent-newkey { border-color: var(--accent); }
.rent-newkey h2 { margin-top: 0; }
.rent-key-full { display: block; padding: 10px 12px; user-select: all; overflow-wrap: anywhere; }
.rent-how { display: grid; gap: 10px; margin: 0 0 12px; }
.rent-how div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; }
.rent-how dt { color: var(--muted); }
.rent-how dd { margin: 0; overflow-wrap: anywhere; }
.rent-pre { margin: 6px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--panel-2); overflow-x: auto; font-size: 13px; }
.rent-pre code { background: none; padding: 0; }
.rent-guide h1 { margin-bottom: 4px; }
.rent-next { margin: 8px 0 0; }
@media (max-width: 640px) { .rent-how div { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 640px) {   /* 휴대폰: GPU 한 장씩 카드로 — 옆으로 밀지 않게 */
  .rent-gpu thead { display: none; }
  .rent-gpu, .rent-gpu tbody, .rent-gpu tr, .rent-gpu td { display: block; width: auto; min-width: 0; }
  .rent-gpu tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .rent-gpu td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: end; }
  .rent-gpu td:first-child { font-weight: 700; }
  .rent-gpu td[data-l]::before { content: attr(data-l); color: var(--muted); }
}

/* ── /llm-api 로컬 LLM API 사용 신청(12-05) — 어두운 띠 + 밝은 요금 띠, 라임 하나 ── */
.lx { display: grid; gap: 20px; }
.lx-band, .lx-hero, .lx-feed { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 48px); }
.lx-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.lx h2 { margin: 0 0 18px; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.25; letter-spacing: -.02em; max-width: 22em; }
.lx h3 { margin: 28px 0 12px; font-size: 18px; }
.lx h4 { margin: 0 0 8px; font-size: 17px; }
.lx-hero { background: radial-gradient(120% 90% at 85% 0%, rgba(198, 243, 74, .10), transparent 55%), var(--c-black-1); padding-block: clamp(40px, 7vw, 88px); }
.lx-hero h1 { margin: 0 0 16px; font-size: clamp(34px, 6vw, 64px); line-height: 1.12; letter-spacing: -.03em; }
.lx-sub { margin: 0 0 28px; font-size: clamp(16px, 2vw, 20px); color: var(--soft); line-height: 1.6; max-width: 34em; }
.lx-hero-stat { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin-bottom: 28px; max-width: 44em; }
.lx-big { margin: 0; font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--accent); }
.lx-big span { font-size: .42em; font-weight: 600; color: var(--soft); margin: 0 .25em; }
.lx-big-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.lx-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.lx-btn, .lx-btn2 { display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; border-radius: var(--r-pill); font-weight: 700; font-size: 16px; text-decoration: none; transition: background-color .15s, border-color .15s, transform .1s; }
.lx-btn { background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer; }
.lx-btn:hover { background: var(--accent-hover); text-decoration: none; }
.lx-btn2 { border: 1px solid var(--line-strong); color: var(--text); }
.lx-btn2:hover { border-color: var(--accent); text-decoration: none; }
.lx-btn:active, .lx-btn2:active { transform: scale(.98); }
.lx-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.lx-chips li { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: 13px; color: var(--soft); }
.lx-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 16px; }
.lx-nums div { background: var(--panel-2); border-radius: var(--r-card); padding: 18px; }
.lx-nums dt { font-size: 13px; color: var(--muted); }
.lx-nums dd { margin: 6px 0 0; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; font-variant-numeric: tabular-nums; }
.lx-bars { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.lx-bars li { display: grid; grid-template-columns: minmax(130px, 200px) 1fr minmax(170px, auto); gap: 14px; align-items: center; }
.lx-bar-name small, .lx-bar-val small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.lx-bar-track { height: 14px; background: var(--panel-3); border-radius: 4px; overflow: hidden; }
.lx-bar { display: block; height: 100%; background: var(--soft); border-radius: 0 4px 4px 0; }
.lx-bars li:first-child .lx-bar { background: var(--accent); }
.lx-bar-val { text-align: right; font-variant-numeric: tabular-nums; }
.lx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lx-table th, .lx-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.lx-table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.lx-table td:nth-child(n+3) { font-variant-numeric: tabular-nums; }
.lx-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.65; max-width: 60em; }
.lx-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.lx-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.lx-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; line-height: 1.65; }
.lx-card p { margin: 0 0 8px; }
.lx-card-on { border-color: var(--accent); }
.lx-tag { font-size: 12px; font-weight: 700; color: var(--muted); }
.lx-card-on .lx-tag { color: var(--accent); }
/* 밝은 요금 띠 */
.lx-light { background: var(--c-white); color: #16161a; border-color: transparent; }
.lx-light .lx-eyebrow { color: #4d6b00; }
.lx-light a { color: #3a5200; }
.lx-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.lx-plan { background: #fff; border: 1px solid #dcdcd6; border-radius: var(--r-card); padding: 22px; }
.lx-plan h3 { margin: 0 0 6px; }
.lx-plan h3 small { font-size: 13px; color: #5c5c66; font-weight: 500; margin-left: 4px; }
.lx-price { margin: 0 0 14px; color: #5c5c66; }
.lx-price b { font-size: 34px; color: #16161a; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lx-price span { font-weight: 600; color: #16161a; }
.lx-plan dl { margin: 0; display: grid; gap: 10px; }
.lx-plan dt { font-size: 12px; color: #5c5c66; }
.lx-plan dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.lx-plan small { color: #6b6b75; }
.lx-elec { margin: 14px 0 0; font-weight: 600; }
.lx-wins { margin: 0; padding-left: 1.3em; line-height: 1.8; }
.lx-steps { list-style: none; counter-reset: s; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.lx-steps li { counter-increment: s; background: var(--panel-2); border-radius: var(--r-card); padding: 18px; display: grid; gap: 6px; }
.lx-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; }
.lx-steps span { color: var(--soft); line-height: 1.6; }
.lx-term { background: #070708; border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.lx-term .c { color: var(--muted); }
.lx-rules { border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 16px 20px; }
.lx-rules p { margin: 0 0 6px; }
.lx-rules ol { margin: 0; padding-left: 1.3em; line-height: 1.75; color: var(--soft); }
.lx-faq { display: grid; gap: 8px; }
.lx-faq details { background: var(--panel-2); border-radius: 12px; padding: 0 18px; }
.lx-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.lx-faq p { margin: 0 0 16px; color: var(--soft); line-height: 1.7; }
.lx-form { display: grid; gap: 14px; max-width: 640px; }
.lx-form > label, .lx-form fieldset { display: grid; gap: 6px; font-weight: 600; }
.lx-form small { font-weight: 400; color: var(--muted); }
.lx-form input:not([type=checkbox]):not([type=radio]), .lx-form textarea { font: inherit; padding: 12px 14px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); min-height: 46px; }
.lx-form input:focus-visible, .lx-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lx-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lx-form legend { padding: 0; margin-bottom: 6px; width: 100%; }
.lx-form .check { font-weight: 500; display: inline-flex; gap: 8px; align-items: center; min-height: 32px; }
.lx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lx-consent { background: var(--panel-2); border-radius: var(--r-card); padding: 16px 18px; font-size: 14px; }
.lx-consent p { margin: 0 0 6px; }
.lx-consent ul { margin: 0 0 8px; padding-left: 1.2em; color: var(--soft); line-height: 1.7; }
.lx-consent-opt { margin-top: 14px !important; color: var(--soft); line-height: 1.6; }
.lx-ok { background: var(--panel-2); border-left: 3px solid var(--accent); padding: 16px 18px; border-radius: 8px; }
.lx-src { margin: 0; line-height: 1.7; }
/* 실시간 신청 현황 — 체결 목록처럼 위로 흐름(5줄 넘을 때), 움직임 줄이기 설정이면 멈춤 */
.lx-feed { padding: 20px 24px; }
.lx-feed-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.lx-feed-head h2 { margin: 0; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.lx-feed-head p { margin: 0; color: var(--soft); font-variant-numeric: tabular-nums; }
.lx-feed-head b { color: var(--accent); }
.lx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(198, 243, 74, .6); animation: lx-pulse 2s ease-out infinite; }
@keyframes lx-pulse { to { box-shadow: 0 0 0 8px rgba(198, 243, 74, 0); } }
.lx-feed-win { --row: 44px; overflow: hidden; }
.lx-roll { height: calc(var(--row) * 5); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.lx-feed-list { list-style: none; margin: 0; padding: 0; }
.lx-roll .lx-feed-list { animation: lx-up calc(var(--n) * 2.4s) linear infinite; }
.lx-roll:hover .lx-feed-list { animation-play-state: paused; }
@keyframes lx-up { to { transform: translateY(calc(var(--row) * var(--n) * -1)); } }
.lx-feed-list li { height: var(--row); display: grid; grid-template-columns: 1fr auto auto 64px; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.lx-feed-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-feed-want { color: var(--soft); font-size: 14px; }
.lx-feed-st { font-size: 12px; font-weight: 700; color: var(--on-accent); background: var(--accent); border-radius: var(--r-pill); padding: 2px 9px; }
.lx-feed-list time { text-align: right; color: var(--muted); font-size: 13px; }
.lx-feed-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .lx-roll .lx-feed-list, .lx-dot { animation: none; }
  .lx-roll { height: auto; mask-image: none; }
  .lx-roll .lx-feed-list li[aria-hidden] { display: none; }
}
@media (max-width: 640px) {
  .lx-bars li { grid-template-columns: 1fr; gap: 6px; }
  .lx-bar-val { text-align: left; }
  .lx-feed-list li { grid-template-columns: 1fr auto 56px; }
  .lx-feed-want { display: none; }
  .lx-band, .lx-hero, .lx-feed { border-radius: 18px; }
}
.lx-pick { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px !important; }
.lx-pick legend small { margin-left: 6px; }
.lx-opt { position: relative; display: block; cursor: pointer; }
.lx-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lx-opt-body { display: grid; gap: 4px; height: 100%; box-sizing: border-box; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--panel-2); font-weight: 400; transition: border-color .15s, background-color .15s; }
.lx-opt:hover .lx-opt-body { border-color: var(--soft); }
.lx-opt input:checked + .lx-opt-body { border: 2px solid var(--accent); padding: 15px; background: rgba(198, 243, 74, .06); }
.lx-opt input:focus-visible + .lx-opt-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.lx-opt-model { font-weight: 700; color: var(--accent); }
.lx-opt-won { font-variant-numeric: tabular-nums; color: var(--soft); font-size: 14px; }
.lx-opt-def { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; color: var(--on-accent); background: var(--accent); border-radius: var(--r-pill); padding: 2px 8px; }
.lx-setup { margin: 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 8px; font-size: 14px; color: var(--soft); }
.lx-cta form { display: contents; }
.lx-trial { border-color: var(--accent); }
.lx-paste { position: relative; margin: 14px 0; }
.lx-paste pre { margin: 0; background: #070708; border: 1px solid var(--line-strong); border-radius: 12px; padding: 56px 18px 18px; white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.65; max-height: 420px; overflow: auto; }
.lx-paste .lx-copy { position: absolute; top: 10px; right: 10px; min-height: 36px; padding: 0 16px; font-size: 14px; }
/* 12-05: LLM·음성·이미지·영상 먼저 고르기 — 고른 갈래의 카드만, 영상은 전화 문의(:has 없는 브라우저는 다 보임 + 서버가 막음) */
.lx-kinds { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.lx-kind { position: relative; cursor: pointer; }
.lx-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lx-kind span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-weight: 700; transition: background-color .15s, border-color .15s; }
.lx-kind input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.lx-kind input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lx-video-call { display: none; background: var(--panel-2); border: 1px solid var(--accent); border-radius: var(--r-card); padding: 18px; }
.lx-video-call p { margin: 0 0 12px; line-height: 1.6; }
.lx-form:has(input[name=kind][value=llm]:checked) .lx-opt:not([data-kind=llm]):not([data-kind=any]),
.lx-form:has(input[name=kind][value=voice]:checked) .lx-opt:not([data-kind=voice]):not([data-kind=any]),
.lx-form:has(input[name=kind][value=image]:checked) .lx-opt:not([data-kind=image]):not([data-kind=any]) { display: none; }
.lx-form:has(input[name=kind][value=video]:checked) .lx-video-call { display: block; }
.lx-form:has(input[name=kind][value=video]:checked) :is(.lx-pick, .lx-hide-video, .lx-consent, label:has(textarea)) { display: none !important; }
.lx .lx-light :is(h2, h3, b, p, li) { color: #16161a; }
.lx .lx-light .lx-plan h3 small, .lx .lx-light .lx-price { color: #5c5c66; }
.lx-paste pre { font-family: ui-monospace, "D2Coding", Consolas, var(--font); }
.lx { grid-template-columns: minmax(0, 1fr); }
.lx-big-lead { margin: 0 0 4px; font-size: 16px; color: var(--soft); }
.lx-big-lead b { color: var(--text); }


/* ── 12-05 /llm-api 3판: 디자인N과와 같은 구조(Pretendard·글 위치·영상 자리), 색만 진주황(#d24600 띠·#e04e00 글)·진노랑(#ffb800) ── */
body.lx-page { background: #fff; }
body.lx-page main { max-width: none; padding: 0; }
.lx {
  --o: #ffc400; --o-deep: #ffc400; --o-ink: #7a5200; --o-pale: #202020; --o-tint: #fff6d1; --y: #ffc400; --ink: #202020; --o-tx: #9a6400;
  --bg: #fff; --panel: #fff; --panel-2: #f7f7f7; --panel-3: #ececec; --line: #ececec; --line-strong: #d9d9d9;
  --text: var(--ink); --soft: #444; --muted: #666; --accent: var(--o); --accent-hover: #ffb000; --on-accent: #202020;
  color-scheme: light; color: var(--ink); gap: 0; background: #fff; font-family: var(--font);
}
.lx a { color: var(--o-ink); }
.lx-sec { padding: clamp(72px, 10vw, 140px) max(24px, calc((100% - 1200px) / 2)); background: #fff; border: 0 !important; border-radius: 0 !important; }
.lx-alt { background: #fffbeb; }
/* 가운데 머리: 작은 윗줄 + 큰 제목(굵게 한 곳 진주황) */
.lx-kick { text-align: center; margin: 0 0 18px; font-size: clamp(17px, 1.8vw, 24px); color: #333; letter-spacing: -.02em; }
.lx-kick b { color: var(--o); font-weight: 800; }
.lx .lx-title { text-align: center; margin: 0 auto 56px; max-width: none; font-size: clamp(32px, 4.4vw, 60px); font-weight: 800; line-height: 1.25; letter-spacing: -.045em; color: var(--ink); }
.lx .lx-title b { color: var(--o); }
.lx-lead { text-align: center; margin: 0 auto 36px; max-width: 46em; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.75; color: #444; }
.lx-lead b { color: var(--ink); }
.lx-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); line-height: 1.65; }
.lx-note-c { text-align: center; }
/* 단추 — 알약 */
.lx-btn, .lx-btn2 { display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 40px; border-radius: 999px; font-size: 19px; font-weight: 800; border: 0; cursor: pointer; text-decoration: none; transition: background-color .15s, transform .1s; }
.lx-btn { background: var(--o); color: var(--ink); box-shadow: 0 20px 40px -18px rgba(200, 150, 0, .55); }
.lx a.lx-btn, .lx a.lx-btn:hover { color: var(--ink); }
.lx-btn:hover { background: var(--accent-hover); text-decoration: none; }
.lx-btn2 { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.lx-btn2:hover { background: var(--ink); color: #fff; }
.lx-btn:active, .lx-btn2:active { transform: scale(.98); }
.lx-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lx-cta form { display: contents; }
.lx-cta-c { justify-content: center; }
/* ① 첫 화면 — 왼쪽 글, 오른쪽 영상(배경), 왼쪽은 흰 흐림 */
.lx-hero { position: relative; min-height: min(820px, calc(100vh - 64px)); display: flex; align-items: center; padding: 80px max(24px, calc((100% - 1200px) / 2)); overflow: hidden; background: #fff; }
.lx-hero-media { position: absolute; inset: 0 0 0 38%; }
.lx-hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lx-hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #fff 0, rgba(255, 255, 255, .85) 18%, rgba(255, 255, 255, 0) 55%); pointer-events: none; }
.lx-hero-art { background: radial-gradient(70% 70% at 60% 45%, #ffe680 0, #fff6d1 45%, #fff 75%); display: grid; place-content: center; gap: 22px; padding-left: 14%; }
.lx-art-card { position: relative; z-index: 2; background: #fff; border-radius: 30px; padding: 34px 40px; text-align: center; box-shadow: 0 40px 80px -40px rgba(170, 120, 0, .4); }
.lx-art-card p { margin: 0; color: #444; font-weight: 600; font-size: 17px; }
.lx-art-num { margin: 8px 0 !important; color: var(--o) !important; font-size: clamp(36px, 4vw, 56px) !important; font-weight: 900 !important; letter-spacing: -.045em; }
.lx-art-term { position: relative; z-index: 2; margin: 0; background: #1d1d20; color: #f0f0ee; border-radius: 18px; padding: 18px 22px; font: 14px/1.7 ui-monospace, Consolas, var(--font); white-space: pre-wrap; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .6); }
.lx-art-term span { color: var(--y); }
.lx-hero-text { position: relative; z-index: 2; max-width: 760px; }
.lx-pill { display: inline-block; margin: 0 0 26px; padding: 6px 16px; border-radius: 8px; background: var(--o); color: var(--ink); font-size: clamp(17px, 1.7vw, 22px); font-weight: 800; letter-spacing: -.02em; }
.lx-hero-kicker { margin: 0 0 26px; font-size: clamp(16px, 1.6vw, 22px); color: #333; letter-spacing: -.02em; }
.lx-hero h1 { margin: 0 0 34px; font-size: clamp(42px, 6vw, 86px); font-weight: 900; line-height: 1.24; letter-spacing: -.05em; color: var(--o); }
.lx-hero h1 > span { display: block; }
.lx-hero h1 b { font-weight: 900; color: var(--o); }
.lx-pale { color: var(--o-pale); }
.lx-sub { margin: 0 0 44px; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.7; color: #333; letter-spacing: -.02em; }
/* ② 진한 띠 */
.lx-deep { background: var(--o-deep); color: var(--ink); }
.lx-deep .lx-kick, .lx-deep .lx-kick b { color: var(--ink); }
.lx-kick b { font-weight: 800; }
.lx .lx-mixed { text-align: center; margin: 0 auto; max-width: none; font-size: clamp(28px, 4.2vw, 56px); font-weight: 300; line-height: 1.35; letter-spacing: -.045em; color: var(--ink); }
.lx-mixed b { font-weight: 800; }
.lx-capsule { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: 64px auto 72px; padding: 44px 16px; border-radius: 999px; background: rgba(255, 255, 255, .55); }
.lx-capsule div { text-align: center; border-left: 1px solid rgba(32, 32, 32, .18); }
.lx-capsule div:first-child { border-left: 0; }
.lx-capsule dt { font-size: 17px; font-weight: 700; color: var(--ink); }
.lx-capsule dd { margin: 6px 0 0; font-size: clamp(32px, 4.6vw, 64px); font-weight: 900; letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
/* 후기 카드 — 흰 카드, 위 작은 이름(진주황), 굵은 제목, 글, 아래 재생 단추·큰 글자 그림 */
.lx-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: start; }
.lx-rv { position: relative; min-height: 420px; padding: 44px 36px 120px; background: #fff; border-radius: 30px; color: var(--ink); overflow: hidden; }
.lx-rv-on { transform: translateY(-20px); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .4); }
.lx-rv-who { margin: 0 0 14px; font-size: 17px; font-weight: 600; color: var(--o) !important; }
.lx-rv h3 { margin: 0 0 18px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -.04em; color: var(--ink); }
.lx-rv h3 b { display: block; color: var(--o); }
.lx-rv p { margin: 0 0 8px; color: #444; font-size: 16px; line-height: 1.7; }
.lx-rv .lx-rv-small { font-size: 13px; color: #666; }
.lx-rv-play { position: absolute; left: 36px; bottom: 36px; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--o); color: var(--ink) !important; font-size: 22px; box-shadow: 0 12px 24px -10px rgba(210, 70, 0, .6); }
.lx-rv-play:hover { text-decoration: none; background: var(--accent-hover); }
.lx-rv-ico { position: absolute; right: -10px; bottom: -22px; font-size: 110px; font-weight: 900; letter-spacing: -.06em; color: var(--o-tint); line-height: 1; }
.lx-deep .lx-feed { max-width: 820px; margin: 40px auto 0; background: #fff; color: var(--ink); border: 0; border-radius: 30px; padding: 24px 28px; }
.lx-deep .lx-feed :is(h2, p, li, span, time) { color: inherit; }
.lx-feed-head h2 { font-size: 19px !important; letter-spacing: -.02em; }
.lx-feed-head b { color: var(--o); }
.lx-feed-want { color: #555 !important; }
.lx-feed-list time { color: #777 !important; }
.lx-feed-st { background: var(--y); color: #201500 !important; }
.lx-dot { background: var(--o); box-shadow: 0 0 0 0 rgba(255, 196, 0, .7); }
@keyframes lx-pulse { to { box-shadow: 0 0 0 8px rgba(255, 196, 0, 0); } }
/* ③ 말풍선 */
.lx-speech { position: relative; max-width: 560px; margin: 0 auto 56px; padding: 34px 30px; background: var(--o-tint); border-radius: 30px; text-align: center; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.5; letter-spacing: -.03em; }
.lx-speech::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 28px; height: 28px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 4px; }
.lx-speech span { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 700; color: var(--o-ink); }
.lx-speech b { color: var(--o); }
/* ④ 9가지 — 회색 카드, 작은 알약 */
.lx-proof { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lx-proof li { padding: 50px 24px; border-radius: 30px; background: #f7f7f7; text-align: center; font-size: clamp(17px, 1.7vw, 22px); color: #333; letter-spacing: -.03em; line-height: 1.45; }
.lx-proof span { display: inline-block; margin-bottom: 18px; padding: 3px 12px; border-radius: 999px; background: var(--o-tint); color: var(--o-ink); font-size: 15px; font-weight: 700; }
.lx-proof b { display: block; font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; color: var(--ink); }
/* ⑤ 두 판 — 진주황 큰 판 둘 */
.lx-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 40px; }
.lx-panel { padding: 54px 44px; border-radius: 0 0 60px 60px; background: #fff6d1; color: var(--ink); }
.lx-panel-on { background: var(--o-deep); color: var(--ink); }
.lx-panel-tag { margin: 0 0 14px; font-size: 15px; font-weight: 800; color: var(--o-ink); }
.lx-panel-on .lx-panel-tag, .lx-panel-on :is(h3, p, b, a) { color: var(--ink) !important; }
.lx-panel h3 { margin: 0 0 18px; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.04em; line-height: 1.3; }
.lx-panel h3 b { color: var(--o); }
.lx-panel p { margin: 0 0 10px; font-size: 16px; line-height: 1.75; }
.lx-panel .lx-panel-small { font-size: 13.5px; opacity: .85; }
.lx-sub-h { text-align: center; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.03em; margin: 64px 0 24px; }
.lx-bars { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.lx-bars li { display: grid; grid-template-columns: minmax(130px, 210px) 1fr minmax(180px, auto); gap: 14px; align-items: center; }
.lx-bar-name small, .lx-bar-val small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.lx-bar-track { height: 16px; background: #f0ece8; border-radius: 4px; overflow: hidden; }
.lx-bar { display: block; height: 100%; background: #c9c3bd; border-radius: 0 4px 4px 0; }
.lx-bars li:first-child .lx-bar { background: var(--o); }
.lx-bar-val { text-align: right; font-variant-numeric: tabular-nums; }
.lx-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.lx-table th, .lx-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.lx-table th { color: var(--muted); font-weight: 700; font-size: 14px; }
/* ⑥ 큰 숫자 띠 */
.lx-count { text-align: center; padding-block: clamp(64px, 8vw, 110px); }
.lx-count-tag { display: inline-block; margin: 0 0 44px; padding: 18px 48px; border-radius: 16px; background: #fff; color: var(--ink) !important; font-size: clamp(20px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.04em; }
.lx-count-row { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 4vw, 64px); margin: 0 0 30px; }
.lx-count-row dd { order: -1; margin: 0; font-size: clamp(48px, 7.6vw, 110px); font-weight: 900; line-height: 1; letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lx-count-row dd small { font-size: .3em; font-weight: 700; margin-left: 4px; letter-spacing: -.02em; }
.lx-count-row div { display: flex; flex-direction: column; gap: 14px; }
.lx-count-row dt { font-size: 17px; color: #3d3000; font-weight: 600; }
.lx-colon { font-size: clamp(40px, 6vw, 90px); font-weight: 900; line-height: 1; color: var(--ink); }
.lx-count-note { max-width: 46em; margin: 0 auto; color: #4a3c10; font-size: 14px; line-height: 1.7; }
/* ⑦ 불만 → 해결 */
.lx-bubbles { list-style: none; margin: 0 0 100px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lx-bubbles li { position: relative; padding: 34px 26px; border-radius: 30px; background: #f7f7f7; text-align: center; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.6; letter-spacing: -.03em; color: #333; }
.lx-bubbles li::after { content: ""; position: absolute; left: 50%; bottom: -13px; width: 26px; height: 26px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 4px; }
.lx-bubbles span { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 700; color: var(--o-ink); }
.lx-bubbles b { color: var(--ink); }
.lx .lx-solve { margin-bottom: 44px; }
.lx-solves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lx-solves li { padding: 40px 24px; border-radius: 30px; background: #fff; border: 1px solid var(--line); text-align: center; box-shadow: 0 30px 60px -44px rgba(0, 0, 0, .35); }
.lx-solves i { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--o-tint); color: var(--o); font-style: normal; font-size: 30px; font-weight: 900; }
.lx-solves span { display: block; margin-bottom: 6px; font-size: 15px; font-style: italic; color: var(--o-ink); font-weight: 700; }
.lx-solves b { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.04em; line-height: 1.35; }
/* ⑨ 약속 카드 */
.lx-promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lx-promise article { padding: 40px 32px; border-radius: 30px; background: #f7f7f7; }
.lx-promise h3 { margin: 0 0 12px; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.04em; }
.lx-promise p { margin: 0; color: #444; line-height: 1.7; }
/* ⑩ 비교표 */
.lx-vs { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-size: 16px; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 60px -44px rgba(0, 0, 0, .35); }
.lx-vs th, .lx-vs td { padding: 18px; border-bottom: 1px solid var(--line); text-align: center; }
.lx-vs thead th { font-size: 16px; font-weight: 800; color: #444; background: #f3f0ec; }
.lx-vs tbody th { text-align: left; font-weight: 700; color: var(--ink); white-space: nowrap; }
.lx-vs td { color: #555; }
.lx-vs .lx-vs-us { background: var(--o-tint); color: var(--ink); font-weight: 800; }
.lx-vs thead .lx-vs-us { background: var(--o); color: var(--ink); font-size: 17px; }
.lx-vs tr:last-child > * { border-bottom: 0; }
/* ⑪ 요금 카드 */
#price .lx-kick { margin-top: -36px; margin-bottom: 56px; }
.lx-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.lx-plan { display: flex; flex-direction: column; padding: 44px 34px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -44px rgba(0, 0, 0, .35); }
.lx-plan:first-child { border: 3px solid var(--o); }
.lx-plan h3 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.lx-plan-for { margin: 4px 0 20px; color: var(--muted); }
.lx-price { margin: 0; color: #444; font-weight: 700; }
.lx-price b { font-size: 56px; font-weight: 900; letter-spacing: -.05em; color: var(--o); font-variant-numeric: tabular-nums; }
.lx-price-elec { margin: 6px 0 22px; font-weight: 700; color: var(--ink); }
.lx-plan ul { margin: 0 0 26px; padding: 22px 0 0 1.1em; border-top: 1px solid var(--line); color: #444; line-height: 1.75; flex: 1; }
.lx-plan small { color: var(--muted); }
.lx-plan-go { align-self: stretch; }
.lx-elec { text-align: center; margin: 26px 0 0; font-weight: 700; }
.lx-honest { max-width: 900px; margin: 48px auto 0; padding: 36px; border-radius: 30px; background: #f7f7f7; line-height: 1.75; }
.lx-honest h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.03em; }
.lx-wins { margin: 0; padding-left: 1.3em; }
/* ⑫ 고민되신다구요 — 테스트 */
.lx-trial { background: #fff; }
.lx-trial .lx-title { margin-bottom: 20px; }
.lx-trial .lx-kick { margin-bottom: 30px; }
.lx-small { font-size: 14px !important; color: #666 !important; }
.lx-paste { position: relative; max-width: 900px; margin: 0 auto 18px; }
.lx-paste pre { margin: 0; background: #1d1d20; color: #f0f0ee; border-radius: 22px; padding: 64px 22px 22px; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.7 ui-monospace, "D2Coding", Consolas, var(--font); max-height: 440px; overflow: auto; }
.lx-paste .lx-copy { position: absolute; top: 12px; right: 12px; min-height: 42px; padding: 0 20px; font-size: 15px; }
/* ⑬ 진행 */
.lx-steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lx-steps li { display: grid; gap: 10px; align-content: start; padding: 36px 26px; border-radius: 30px; background: #fff; border: 1px solid var(--line); }
.lx-steps b { display: inline-block; justify-self: start; padding: 4px 14px; border-radius: 999px; background: var(--o); color: var(--ink); font-size: 16px; }
.lx-steps span { color: #444; line-height: 1.7; }
.lx-term { max-width: 900px; margin: 0 auto 20px; background: #1d1d20; color: #f0f0ee; border-radius: 22px; padding: 20px 24px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.lx-term .c { color: #9b9ba3; }
.lx-rules { max-width: 900px; margin: 0 auto; padding: 22px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.lx-rules p { margin: 0 0 6px; }
.lx-rules ol { margin: 0; padding-left: 1.3em; line-height: 1.75; color: #444; }
/* ⑭ FAQ — 왼쪽 제목, 오른쪽 접기 */
.lx-faq-wrap { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.lx .lx-faq-head h2 { margin: 0 0 18px; max-width: none; font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.045em; line-height: 1.25; }
.lx-faq-head p { margin: 0; font-size: clamp(17px, 1.6vw, 21px); color: #444; line-height: 1.6; }
.lx-faq { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.lx-faq details { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 4px; }
.lx-faq summary { list-style: none; position: relative; cursor: pointer; padding: 26px 44px 26px 0; font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; letter-spacing: -.02em; }
.lx-faq summary::-webkit-details-marker { display: none; }
.lx-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; color: #777; }
.lx-faq details[open] summary::after { content: "−"; color: var(--o); }
.lx-faq p { margin: 0 0 26px; padding: 20px 22px; border-radius: 16px; background: #f7f7f7; color: #444; line-height: 1.75; }
/* ⑮ 신청서 */
.lx-form { display: grid; gap: 16px; max-width: 720px; margin: 0 auto; padding: 44px; border-radius: 30px; background: #fff; box-shadow: 0 30px 60px -44px rgba(0, 0, 0, .35); }
.lx-form > label, .lx-form fieldset { display: grid; gap: 8px; font-weight: 700; }
.lx-form i { font-style: normal; color: var(--o); }
.lx-form small { font-weight: 400; color: var(--muted); }
.lx-form input:not([type=checkbox]):not([type=radio]), .lx-form textarea { font: inherit; padding: 14px 16px; background: #f7f7f7; color: var(--ink); border: 1px solid #e6e6e6; border-radius: 12px; min-height: 52px; }
.lx-form input:focus-visible, .lx-form textarea:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
.lx-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lx-form legend { padding: 0; margin-bottom: 8px; width: 100%; }
.lx-form .check { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; min-height: 32px; }
.lx-form > .lx-btn { width: 100%; }
.lx-kind span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; border: 1px solid #d9d9d9; border-radius: 999px; font-weight: 700; background: #fff; }
.lx-kind input:checked + span { background: var(--o); color: var(--ink); border-color: var(--o); }
.lx-kind input:focus-visible + span, .lx-opt input:focus-visible + .lx-opt-body { outline: 2px solid var(--o); outline-offset: 2px; }
.lx-opt-body { background: #fff; border-color: #e0e0e0; border-radius: 18px; }
.lx-opt input:checked + .lx-opt-body { border: 2px solid var(--o); background: var(--o-tint); }
.lx-opt-model { color: var(--o-ink); }
.lx-opt-won { color: #555; }
.lx-opt-def { background: var(--o); color: var(--ink); }
.lx-setup { border-left: 3px solid var(--o); background: #f7f7f7; color: #444; }
.lx-video-call { background: var(--o-tint); border: 1px solid var(--o); border-radius: 18px; }
.lx-consent { background: #f7f7f7; border-radius: 18px; padding: 18px 20px; font-size: 14px; }
.lx-consent ul { color: #555; }
.lx-ok { max-width: 720px; margin: 0 auto; padding: 22px 24px; border-radius: 18px; background: #fff; border-left: 4px solid var(--o); }
.lx-apply > .rent-contact { text-align: center; margin-top: 22px; }
.lx-src { padding-block: 26px; background: #fffbeb; font-size: 12.5px; line-height: 1.7; color: #666; }
/* 아래 사업자 정보 */
.lx-biz { padding-block: 60px 140px; background: #fff; border-top: 1px solid var(--line) !important; color: #555; font-size: 15px; line-height: 1.9; }
.lx-biz p { margin: 0; }
.lx-biz a { color: #333; }
.lx-biz b { color: var(--ink); }
.lx-biz-tel { margin-bottom: 14px !important; }
.lx-biz-tel a { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; letter-spacing: -.03em; color: var(--ink); }
.lx-biz-name { margin-top: 18px !important; font-weight: 800; color: #999; letter-spacing: .02em; }
/* 오른쪽 떠 있는 단추 셋 + 가운데 아래 신청 알약 */
.lx-float { position: fixed; right: 30px; bottom: 30px; z-index: 30; display: grid; gap: 12px; }
.lx-float a { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--o-deep); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.lx-float a:first-child { background: #fff6d1; color: var(--o-deep); }
.lx-float a:hover { text-decoration: none; transform: translateY(-2px); }
.lx-sticky { position: fixed; left: 50%; bottom: 30px; z-index: 29; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; min-height: 70px; width: min(400px, calc(100% - 140px)); border-radius: 999px; background: rgba(32, 32, 32, .82); color: #fff !important; font-weight: 800; font-size: 21px; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .6); backdrop-filter: blur(8px); }
.lx-sticky:hover { background: #000; text-decoration: none; }
/* 처리방침 쪽 */
.lx-policy { max-width: 820px; margin: 0 auto; padding-inline: 24px; line-height: 1.8; }
.lx-policy h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; margin: 0 0 18px; }
.lx-policy h2 { font-size: 20px; margin: 32px 0 8px; }
.lx-policy .lx-eyebrow { color: var(--o-ink); font-size: 15px; }
.lx-policy ul { padding-left: 1.2em; color: #444; }
@media (max-width: 1000px) {
  .lx-hero { min-height: 0; flex-direction: column; align-items: stretch; padding-top: 48px; }
  .lx-hero-media { position: relative; inset: auto; order: 2; margin-top: 32px; height: 420px; border-radius: 30px; overflow: hidden; }
  .lx-hero-media::before { display: none; }
  .lx-hero-art { padding: 24px; height: auto; }
  .lx-reviews, .lx-proof, .lx-bubbles, .lx-solves, .lx-promise { grid-template-columns: minmax(0, 1fr); }
  .lx-rv-on { transform: none; }
  .lx-panels, .lx-faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .lx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-capsule { grid-template-columns: minmax(0, 1fr); border-radius: 30px; gap: 16px; padding: 24px; }
  .lx-capsule div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 16px; }
  .lx-capsule div:first-child { border-top: 0; padding-top: 0; }
  .lx-count-row { flex-direction: column; align-items: center; }
  .lx-colon { display: none; }
}
@media (max-width: 640px) {
  .lx-hero-text br, .lx-sub br { display: none; }
  .lx-steps { grid-template-columns: minmax(0, 1fr); }
  .lx-bars li { grid-template-columns: 1fr; gap: 6px; }
  .lx-bar-val { text-align: left; }
  .lx-feed-list li { grid-template-columns: 1fr auto 56px; }
  .lx-feed-want { display: none; }
  .lx-form { padding: 24px 18px; }
  .lx-btn, .lx-btn2 { min-height: 56px; padding: 0 28px; font-size: 17px; }
  .lx-cta > * { flex: 1 1 100%; }
  .lx-rv { min-height: 0; padding: 34px 26px 110px; }
  .lx-float { right: 12px; bottom: 90px; }
  .lx-float a { width: 50px; height: 50px; }
  .lx-sticky { left: 16px; right: 16px; width: auto; transform: none; bottom: 16px; min-height: 58px; font-size: 18px; }
  .lx-hero-media { height: 360px; }
}
/* 12-05 쿠폰 등록 — 테스트 접속 오른쪽 단추 + 신청서 아래 작은 판 */
.lx-btn-coupon { border-color: var(--o); color: var(--ink) !important; }
.lx-btn-coupon:hover { background: var(--o); color: var(--ink) !important; }
.lx-coupon { max-width: 720px; margin: 64px auto 0; scroll-margin-top: 80px; }
.lx-coupon h3 { text-align: center; margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.04em; }
.lx-coupon-lead { text-align: center; margin: 0 0 22px; color: #444; font-size: 17px; }
.lx-coupon-lead b { color: var(--o); }
.lx-coupon .pp-warn { text-align: center; }
.lx-coupon-form { border: 2px dashed var(--o); box-shadow: none; }
.lx-coupon-form input[name=coupon] { font-size: 20px; letter-spacing: .12em; text-transform: uppercase; font-family: ui-monospace, Consolas, var(--font); }
.lx-coupon .check { font-weight: 500; line-height: 1.6; align-items: flex-start; }
.lx-coupon .check input { margin-top: 5px; }
.lx-hero { border: 0 !important; border-radius: 0 !important; }
.lx-float a { background: #ffc400; color: #202020; }
.lx-float a:first-child { background: #fff; color: #202020; border: 1px solid #f0dc8a; }
.lx-form > label { display: block; }
.lx-form > label > input, .lx-form > label > textarea { display: block; width: 100%; margin-top: 8px; }
.lx a, .lx-biz a { text-decoration-color: rgba(200, 150, 0, .6); }
.lx-pill { margin-bottom: 18px; }
.lx-hero-kicker { margin-bottom: 18px; }
.lx-hero h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1.2; margin-bottom: 26px; }
.lx-sub { margin-bottom: 34px; }
.lx-sticky { transition: opacity .2s ease, visibility .2s; }
.lx-sticky.lx-off { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 640px) {
  .lx-float { right: 10px; bottom: 86px; gap: 8px; }
  .lx-float a { width: 44px; height: 44px; }
  .lx-float a:nth-child(2) { display: none; }
}
/* 12-05 www.token.pe.kr 전용 머리 — 흰 바탕, 왼쪽 이름·가운데 메뉴·오른쪽 문의(디자인N과 꼴) */
.tk-head { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px; height: 80px; padding: 0 max(20px, calc((100% - 1400px) / 2)); background: rgba(255, 255, 255, .96); border-bottom: 1px solid #eee; backdrop-filter: blur(8px); }
.tk-brand { display: inline-flex; align-items: baseline; gap: 2px; color: #202020; text-decoration: none; }
.tk-brand b { font-size: 26px; font-weight: 900; letter-spacing: -.04em; color: #202020; box-shadow: inset 0 -.32em 0 #ffc400; }
.tk-brand small { font-size: 15px; font-weight: 700; color: #202020; }
.tk-nav { flex: 1; display: flex; justify-content: center; gap: clamp(16px, 4vw, 72px); }
.tk-nav a { color: #202020; font-size: 17px; font-weight: 500; text-decoration: none; }
.tk-nav a:hover { color: #7a5200; text-decoration: none; }
.tk-ask { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: #ffc400; color: #202020; font-weight: 800; text-decoration: none; }
.tk-ask:hover { background: #ffb000; color: #202020; text-decoration: none; }
body.lx-page:has(.tk-head) .lx-hero { min-height: min(820px, calc(100vh - 80px)); }
@media (max-width: 900px) {
  .tk-head { height: 64px; }
  .tk-nav { display: none; }
  .tk-brand { margin-right: auto; }
}

/* 12-05 4판 — 사용자 "노란색이 이뻐보여요": 주색 진노랑(#ffc400). 흰 바탕 위 노란 글자는 읽히지 않으므로(1.6:1)
   강조 글자는 검정 + 노란 형광펜 띠, 작은 강조 글자는 진한 호박색(--o-tx), 노란 바탕 위 글자는 검정 */
.lx-hero h1, .lx-hero h1 b { color: var(--ink); }
.lx-hero h1 b, .lx .lx-title b, .lx-art-num, .lx-price b, .lx-speech b, .lx-coupon-lead b { color: var(--ink) !important; background: linear-gradient(transparent 62%, var(--y) 62%, var(--y) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lx-kick b, .lx-rv-who, .lx-rv h3 b, .lx-feed-head b, .lx-panel h3 b, .lx-form i, .lx-solves i, .lx-faq details[open] summary::after { color: var(--o-tx) !important; }
.lx-deep .lx-kick b, .lx-panel-on h3 b { color: var(--ink) !important; background: #fff; padding: 0 .2em; border-radius: 6px; }
.lx-form input:focus-visible, .lx-form textarea:focus-visible, .lx-kind input:focus-visible + span, .lx-opt input:focus-visible + .lx-opt-body { outline-color: #9a6400; }
.lx-plan:first-child { border-color: var(--y); }
.lx-btn:hover { background: #ffb000; }
.lx-sticky { background: #ffc400 !important; color: #202020 !important; }
/* 12-05 접속 소리 단추 — 막히면 노랗게 눈에 띄게 */
.lx-sound { margin-top: 16px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid #d9d9d9; background: #fff; color: #202020; font: 700 16px/1 var(--font); cursor: pointer; }
.lx-sound:hover { border-color: #202020; }
.lx-sound.lx-sound-ask { background: #ffc400; border-color: #ffc400; }
.lx-sound:focus-visible { outline: 2px solid #9a6400; outline-offset: 2px; }
/* 12-05 진행 순서: 옛 판 동그라미 번호(01. 과 겹침) 끄기 · 검은 상자 안 code 의 밝은 바탕 끄기(글이 안 보였음) */
.lx .lx-steps li::before { content: none; }
.lx .lx-term code, .lx .lx-term span { background: none; color: inherit; padding: 0; border: 0; }
.lx .lx-term .c { color: #9b9ba3; }
/* 소리 단추는 첫 화면 오른쪽 위(모바일에서도 바로 보이게) */
.lx-hero .lx-sound { position: absolute; top: 24px; right: max(20px, calc((100% - 1200px) / 2)); z-index: 3; margin: 0; box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .35); }
@media (max-width: 900px) { .lx-hero .lx-sound { top: 12px; right: 16px; min-height: 40px; padding: 0 14px; font-size: 14px; } }
/* 12-05 token.pe.kr 따로 사이트 — 로그인·내 서버·안내 쪽 */
.lx .ops-top { position: relative; }
.tk-logout { position: absolute; top: 0; right: 0; }
.tk-logout .lx-btn2 { min-height: 44px; padding: 0 20px; font-size: 15px; }
.lx-login .lx-form { max-width: 520px; margin: 0 auto; }
.lx .rent, .lx .rent-guide { max-width: 960px; width: 100%; margin: 0 auto; }
@media (max-width: 640px) { .tk-logout { position: static; margin-top: 12px; } }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; padding: 10px 16px; background: #fff; color: #202020; border-radius: 8px; }
.skip:focus { left: 16px; }
.lx-login .lx-note-c { text-align: center; }
