/* GODGOD 디자인 리뉴얼 v2 — 디자인 전문 AI 시안 적용. 기존 클래스명 유지(무파괴 재스킨). */
:root {
  --bg: #eef1f6; --surface: #ffffff; --surface2: #f7f9fc; --elev: #ffffff;
  --text: #141b26; --text2: #5b6675; --text3: #93a0b0;
  --line: #e7ebef; --hair: #f1f3f6;
  --up: #e5484d; --down: #2d6be6; --primary: #2d5bff; --good: #11a36b; --amber: #e5a33b;
  --primary-weak: #e9f0fe; --up-weak: #fdeceb; --down-weak: #e9f0fe; --amber-weak: #fef2df; --good-weak: #e6f7ef;
  --down-bg: #e9f0fe; --good-bg: #e6f7ef; --danger-bg: #fdeceb;
  --r: 22px; --r-sm: 14px;
  --shadow: 0 6px 22px rgba(17, 24, 39, .06); --shadow-lg: 0 18px 44px rgba(17, 24, 39, .13);
  --btn-shadow: 0 8px 20px rgba(31, 95, 219, .28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d11; --surface: #15191f; --surface2: #1b2028; --elev: #191e25;
    --text: #eef2f6; --text2: #a7b2bf; --text3: #6c7885;
    --line: #262c35; --hair: #1d222a;
    --up: #ff5a51; --down: #5d8cf0; --primary: #5d8cf0; --good: #2bd47e; --amber: #ffb454;
    --primary-weak: #16263f; --up-weak: #2b1513; --down-weak: #13213b; --amber-weak: #2a2010; --good-weak: #0f2a1d;
    --down-bg: #13213b; --good-bg: #0f2a1d; --danger-bg: #2b1513;
    --shadow: 0 6px 22px rgba(0, 0, 0, .4); --shadow-lg: 0 18px 44px rgba(0, 0, 0, .5);
    --btn-shadow: 0 8px 20px rgba(0, 0, 0, .4);
  }
}
[data-theme="dark"] {
  --bg: #0b0d11; --surface: #15191f; --surface2: #1b2028; --elev: #191e25;
  --text: #eef2f6; --text2: #a7b2bf; --text3: #6c7885;
  --line: #262c35; --hair: #1d222a;
  --up: #ff5a51; --down: #5d8cf0; --primary: #5d8cf0; --good: #2bd47e; --amber: #ffb454;
  --primary-weak: #16263f; --up-weak: #2b1513; --down-weak: #13213b; --amber-weak: #2a2010; --good-weak: #0f2a1d;
  --down-bg: #13213b; --good-bg: #0f2a1d; --danger-bg: #2b1513;
  --shadow: 0 6px 22px rgba(0, 0, 0, .4); --shadow-lg: 0 18px 44px rgba(0, 0, 0, .5);
  --btn-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-variant-numeric: tabular-nums; line-height: 1.55;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.wrap { max-width: 460px; margin: 0 auto; padding: 0 16px; }
.appbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(18px); padding: max(16px, env(safe-area-inset-top)) 0 8px; }
.appbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.appbar h1 { margin: 0; font-size: 26px; letter-spacing: -.035em; font-weight: 800; }
.appbar p { margin: 5px 0 0; color: var(--text3); font-size: 12.5px; font-weight: 600; }
main.wrap { display: grid; gap: 12px; padding-top: 12px; animation: fadeIn .3s; }
[hidden] { display: none !important; }
.notice-wrap { padding-top: 12px; }
.notice-wrap[hidden] { display: none; }

/* 카드 */
.card, .menu-group, .account-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.card { padding: 18px; }
.card h2 { margin: 0 0 12px; font-size: 14px; font-weight: 800; }
.menu-brief { display: grid; gap: 7px; }
.menu-brief h2 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; }
.menu-brief p { margin: 0; color: var(--text2); font-size: 13px; word-break: keep-all; }
.brief-label { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.brief-label.warn { color: var(--amber); }

/* 히어로(공개) */
.hero { min-height: 100svh; display: grid; align-content: center; gap: 16px; padding: 24px 0 80px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.mark { width: 42px; height: 42px; border-radius: 14px; display: inline-grid; place-items: center; background: url("/godgod-symbol-128.png") center/contain no-repeat; }
.mark::after { content: none; }
.hero h1 { margin: 0; font-size: clamp(30px, 8vw, 40px); line-height: 1.22; letter-spacing: -.035em; font-weight: 800; }
.hero p { margin: 0; color: var(--text2); font-size: 15px; line-height: 1.6; word-break: keep-all; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 버튼 */
.btn {
  border: 0; border-radius: 15px; min-height: 50px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 800; font-size: 15px;
  cursor: pointer; box-shadow: var(--btn-shadow); transition: transform .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.985); }
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: var(--up-weak); color: var(--up); box-shadow: none; }
.btn.full { width: 100%; }
.btn.mini { min-height: 36px; border-radius: 11px; padding: 0 12px; font-size: 12.5px; box-shadow: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* 입력 */
.input, select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface2); color: var(--text);
  border-radius: 14px; padding: 14px 15px; min-height: 50px; outline: none; font-size: 15px;
}
.input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { min-height: auto; resize: vertical; }
label { display: grid; gap: 7px; color: var(--text2); font-size: 12.5px; font-weight: 700; }
.form { display: grid; gap: 13px; }
.fine { color: var(--text3); font-size: 12px; line-height: 1.6; }

/* 가이드(접이식 카드용) */
.guide-card { display: grid; gap: 8px; }
.guide-card > h2 { margin: 0; font-size: 14px; }
.guide-card p { margin: 0; color: var(--text2); font-size: 13px; word-break: keep-all; }
.step-list { display: grid; gap: 2px; }
.step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 11px; align-items: start; padding: 11px 0; border-top: 1px solid var(--hair); }
.step:first-child { border-top: 0; }
.step > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); color: var(--primary); font-size: 12px; font-weight: 800; }
.step p { margin: 1px 0 0; color: var(--text2); font-size: 13px; line-height: 1.5; }

/* 선정사유(접이식) */
.reason-summary { margin: 12px 0; color: var(--text2); font-size: 12.5px; font-weight: 600; line-height: 1.55; word-break: keep-all; }
.reason-inline { margin-top: 2px; color: var(--text3) !important; font-size: 12px; }
.reason-detail { margin: 12px 0 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface2); overflow: hidden; }
.reason-detail summary { list-style: none; cursor: pointer; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reason-detail summary::-webkit-details-marker { display: none; }
.reason-detail summary span { color: var(--text3); font-size: 12px; font-weight: 800; }
.reason-detail summary b { color: var(--text); font-size: 13.5px; }
.reason-detail[open] summary { border-bottom: 1px solid var(--line); }
.reason-body { display: grid; gap: 9px; padding: 13px 14px; }
.reason-body p { margin: 0; color: var(--text2); font-size: 12.5px; line-height: 1.55; word-break: keep-all; }
.reason-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.reason-list li { border-top: 1px solid var(--hair); padding: 12px 0; }
.reason-list li:first-child { border-top: 0; }
.reason-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.reason-head b { font-size: 13.5px; font-weight: 800; }
.reason-head span { flex: none; color: var(--primary); font-size: 12.5px; font-weight: 800; text-align: right; }
.reason-list p { margin: 5px 0 0; color: var(--text2); font-size: 12.5px; line-height: 1.5; word-break: keep-all; }

/* 고지 박스 */
.notice { display: flex; gap: 10px; background: var(--down-weak); color: var(--text2); border-radius: var(--r-sm); padding: 13px 15px; font-size: 12.5px; line-height: 1.55; font-weight: 600; }
.notice b { color: var(--text); }
.danger-note { background: var(--up-weak); color: var(--up); border-radius: 12px; padding: 11px 13px; font-weight: 700; }
.danger-note:empty, .good:empty { display: none; }

/* 지표 그리드 */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { background: var(--surface2); border-radius: var(--r-sm); padding: 14px; min-width: 0; }
.metric span { display: block; color: var(--text3); font-size: 11.5px; font-weight: 600; }
.metric b { display: block; margin-top: 4px; font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.next-action { margin: 12px 0; padding: 13px 15px; border-radius: var(--r-sm); background: var(--good-weak); color: var(--text2); display: grid; gap: 3px; }
.next-action b { color: var(--good); font-size: 13px; font-weight: 800; }
.next-action span { font-size: 12.5px; word-break: keep-all; }

/* 행/리스트 */
.row, .stock-row, .menu-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--hair); }
.row:first-child, .stock-row:first-child, .menu-card:first-child { border-top: 0; }
.stock-row { text-decoration: none; }
.rich-row { flex-wrap: wrap; }
.rich-row .stock-main { color: inherit; text-decoration: none; flex: 1 1 180px; }
.stock-main { min-width: 0; }
.stock-main b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-main span { display: block; color: var(--text3); font-size: 12px; }
.stock-side { text-align: right; flex: none; }
.row-actions { width: 100%; display: flex; justify-content: flex-end; gap: 7px; }
.score { display: inline-flex; align-items: center; border-radius: 999px; background: var(--primary-weak); color: var(--primary); padding: 5px 11px; font-size: 12.5px; font-weight: 800; }
.up { color: var(--up); } .down { color: var(--down); } .good { color: var(--good); } .muted { color: var(--text3); }
.spark { width: 100%; height: 140px; display: block; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.chart-head h2 { margin: 0; }
.chart-range { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; padding: 3px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); flex: none; max-width: 240px; }
.range-btn { min-width: 42px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--text3); font-size: 11.5px; font-weight: 800; cursor: pointer; }
.range-btn.active { background: var(--surface); color: var(--primary); box-shadow: 0 3px 10px rgba(17, 24, 39, .08); }
.price-chart, .supply-chart { width: 100%; border-radius: var(--r-sm); overflow: hidden; position: relative; }
.price-chart { height: 210px; }
.supply-chart { height: 160px; background: var(--surface2); }
.chart-tooltip { position: absolute; z-index: 3; pointer-events: none; min-width: 142px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: var(--shadow); padding: 9px 10px; font-size: 11.5px; color: var(--text2); transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; }
.chart-tooltip b { display: block; color: var(--text); font-size: 12px; margin-bottom: 4px; }
.chart-tooltip span { display: block; font-weight: 800; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text2); }
.chart-legend .lg::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--primary); }
.chart-legend .lg-avg::before { background: var(--good); }
.chart-legend .lg-foreign::before { background: var(--up); }
.chart-legend .lg-inst::before { background: var(--down); }
.range-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.range-stat { min-width: 0; display: grid; gap: 3px; padding: 10px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.range-stat.active { border-color: color-mix(in srgb, var(--primary) 36%, var(--line)); background: var(--primary-weak); }
.range-stat span { color: var(--text3); font-size: 10.5px; font-weight: 800; line-height: 1.25; }
.range-stat small { display: block; margin-top: 2px; color: var(--amber); font-size: 10px; }
.range-stat b { font-size: 15px; font-weight: 900; }
.range-stat em { color: var(--text2); font-size: 10.5px; font-style: normal; font-weight: 750; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 390px) {
  .chart-head { align-items: flex-start; }
  .chart-range { max-width: 200px; }
  .range-stats { grid-template-columns: 1fr; }
}

/* 하단 탭바 */
.tabbar {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(398px, calc(100vw - 32px)); height: 64px;
  display: flex; gap: 0; padding: 6px; background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid rgba(20, 27, 38, .07); border-radius: 22px; box-shadow: 0 10px 34px -10px rgba(15,23,34,.30); backdrop-filter: blur(20px) saturate(1.1); z-index: 50;
}
.tab-indicator { position: absolute; top: 6px; bottom: 6px; left: calc(6px + ((100% - 12px) / 5) * var(--active-index) + 3px); width: calc(((100% - 12px) / 5) - 6px); border-radius: 16px; background: rgba(45, 91, 255, .10); transition: left .34s cubic-bezier(.34,1.4,.5,1); pointer-events: none; }
.tab { position: relative; z-index: 1; flex: 1; min-width: 0; border-radius: 16px; display: grid; place-items: center; align-content: center; gap: 3px; padding: 7px 0; color: var(--text3); text-decoration: none; font-size: 9.5px; font-weight: 700; white-space: nowrap; transition: color .18s ease, transform .18s ease; }
.tab svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--primary); background: transparent; font-weight: 900; transform: translateY(-1px); }
.tab.active svg { transform: scale(1.08); stroke-width: 2.2; }

/* 계정/메뉴 */
.account-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; }
.account-card .avatar { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-weak); color: var(--primary); font-weight: 800; font-size: 18px; }
.account-card b { display: block; font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-card span { display: block; color: var(--text3); font-size: 12px; }
.menu-group { overflow: hidden; }
.menu-card { min-height: 64px; padding: 15px 16px; color: inherit; text-decoration: none; border-top: 1px solid var(--hair); }
.menu-card:first-child { border-top: 0; }
.menu-card b { display: block; font-size: 14.5px; font-weight: 700; }
.menu-card span { display: block; color: var(--text3); font-size: 11.5px; margin-top: 1px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 999px; background: var(--good-weak); color: var(--good); font-size: 11.5px; font-weight: 800; }

/* 포지션/거래/빈상태 */
.position-card { border-top: 1px solid var(--hair); padding: 14px 0; }
.position-card:first-child { border-top: 0; padding-top: 0; }
.empty-state { border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 22px 16px; background: var(--surface2); text-align: center; }
.empty-state b { display: block; font-size: 15px; font-weight: 800; }
.empty-state p { margin: 6px 0 0; color: var(--text3); font-size: 13px; word-break: keep-all; }
.trade-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; border-top: 1px solid var(--hair); }
.trade-row:first-child { border-top: 0; }
.trade-row span { min-width: 0; }
.trade-row b { font-size: 13px; text-align: right; font-weight: 800; }
.trade-row small { display: block; color: var(--text3); font-size: 12px; }
.horizon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.horizon { background: var(--surface2); border-radius: 12px; padding: 11px 7px; display: grid; gap: 2px; text-align: center; }
.horizon span, .horizon small { color: var(--text3); font-size: 10.5px; }
.horizon b { font-size: 13px; font-weight: 800; }
.toggle-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid var(--line); background: var(--surface2); border-radius: var(--r-sm); padding: 14px; color: var(--text); }
.toggle-row span { display: grid; gap: 2px; }
.toggle-row small { color: var(--text3); font-size: 12px; line-height: 1.45; }
.toggle-row input { width: 44px; height: 26px; accent-color: var(--primary); }
.legal { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; color: var(--text3); font-size: 12px; padding: 10px 0; }
.legal a { font-weight: 600; }
.hp-field { position: absolute; left: -9999px; opacity: 0; width: 1px; height: 1px; }

/* 스파이더맵 */
.spider-wrap { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 12px; align-items: center; margin: 12px 0 4px; }
.spider { width: 138px; height: 146px; display: block; overflow: visible; }
.spider .grid-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.spider .axis-line { stroke: var(--line); stroke-width: 1; }
.spider .shape { fill: var(--primary); fill-opacity: .14; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; }
.spider .dot { fill: var(--primary); }
.spider .axis-label { fill: var(--text3); font-size: 9px; font-weight: 700; }
.spider .center-num { fill: var(--text); font-size: 22px; font-weight: 800; }
.spider .center-cap { fill: var(--text3); font-size: 8px; font-weight: 700; }
.score-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.rich-row .score-pills { flex: 1 1 100%; margin-top: 8px; }
.pill { display: inline-flex; align-items: baseline; gap: 4px; border-radius: 999px; background: var(--surface2); padding: 5px 10px; font-size: 11.5px; font-weight: 700; color: var(--text2); }
.pill b { font-size: 12px; color: var(--text); font-weight: 800; }
.pill.hot { background: var(--primary-weak); color: var(--primary); }
.pill.hot b { color: var(--primary); }
.rank-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: var(--good-weak); color: var(--good); padding: 4px 10px; font-size: 11px; font-weight: 800; }

/* 종목정보 */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-grid .metric b { font-size: 15px; }
.rationale { margin-top: 10px; padding: 12px 14px; border-radius: 12px; display: grid; gap: 3px; background: var(--surface2); }
.rationale b { font-size: 13px; font-weight: 800; }
.rationale.저평가-구간 { background: var(--good-weak); } .rationale.저평가-구간 b { color: var(--good); }
.rationale.고평가-주의 { background: var(--up-weak); } .rationale.고평가-주의 b { color: var(--up); }
.rationale span { color: var(--text2); font-size: 12px; }

/* 매매추천 안함(앰버) */
.warn-banner { border: 0; background: var(--amber-weak); border-radius: var(--r-sm); display: grid; gap: 8px; padding: 15px; box-shadow: none; }
.warn-banner h2 { margin: 0; font-size: 16px; font-weight: 800; }
.warn-banner p { margin: 0; color: var(--text2); font-size: 12.5px; line-height: 1.55; word-break: keep-all; }
.warn-banner .brief-label.warn { color: var(--amber); }

/* 내평단 수익률 막대 */
.hbars { display: grid; gap: 14px; margin-top: 4px; }
.hbar { display: grid; grid-template-columns: 70px 1fr 56px; gap: 10px; align-items: center; }
.hbar .nm { font-size: 12.5px; font-weight: 700; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { position: relative; height: 22px; border-radius: 6px; background: var(--surface2); }
.hbar .track::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.hbar .fill { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; }
.hbar .fill.up { background: var(--up); } .hbar .fill.down { background: var(--down); }
.hbar .val { font-size: 12.5px; font-weight: 800; text-align: right; }

/* 평단 바텀시트 */
.sheet { border: 0; border-radius: 26px 26px 0 0; padding: 0; background: var(--surface); color: var(--text); width: 100%; max-width: 480px; margin: auto auto 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); }
.sheet::backdrop { background: rgba(8, 12, 18, .42); }
.sheet[open] { animation: sheetUp .28s cubic-bezier(.2, .8, .2, 1); }
.sheet-inner { padding: 10px 22px max(26px, env(safe-area-inset-bottom)); display: grid; gap: 13px; }
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 10px; }
.sheet-head { display: flex; align-items: center; gap: 8px; }
.sheet-head b { font-size: 18px; font-weight: 800; }
.sheet-head span { color: var(--text3); font-size: 12px; font-weight: 600; }
.sheet .close-x { margin-left: auto; border: 0; background: var(--surface2); color: var(--text2); width: 34px; height: 34px; border-radius: 11px; font-size: 16px; cursor: pointer; }
.holding-entry-summary { display: grid; gap: 8px; margin-bottom: 12px; }

/* 공통 상단 공지 배너(notice.js) */
.gg-notice {
  display: flex; align-items: flex-start; gap: 10px; background: var(--amber-weak);
  border: 1px solid color-mix(in srgb, var(--amber) 32%, var(--line));
  border-radius: 13px; padding: 13px 14px; font-size: 12.8px; font-weight: 650;
  color: color-mix(in srgb, var(--amber) 62%, var(--text)); line-height: 1.62;
  word-break: keep-all; white-space: pre-line; box-shadow: 0 6px 18px rgba(239, 139, 9, .08);
}
.gg-notice .t { flex: 1; min-width: 0; }
.gg-notice .x { flex: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: -10px -10px -10px 0; display: grid; place-items: center; border: 0; background: none; color: currentColor; cursor: pointer; padding: 10px; opacity: .68; }
.gg-notice .x svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.1; stroke-linecap: round; }
.gg-toast { position: fixed; left: 50%; bottom: calc(98px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(8px); z-index: 9999; background: #12161c; color: #fff; font-size: 13px; font-weight: 700; padding: 12px 18px; border-radius: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.gg-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 슈퍼관리자 공지관리 — 코루업식 메뉴별 상단 공지 슬롯 */
.notice-admin { display: grid; gap: 14px; }
.notice-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.notice-admin-head h2 { margin: 0 0 4px; }
.notice-admin-head p { margin: 0; color: var(--text3); font-size: 12px; line-height: 1.5; word-break: keep-all; }
.notice-slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.notice-slot { border: 1px solid var(--line); border-radius: 16px; padding: 13px; background: var(--surface2); }
.notice-slot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.notice-slot-head b { font-size: 14px; font-weight: 850; color: var(--text); }
.notice-slot-state { flex: none; border-radius: 7px; padding: 2px 8px; background: var(--surface); color: var(--text3); font-size: 11px; font-weight: 800; }
.notice-slot-state.on { color: var(--good); background: var(--good-weak); }
.notice-slot textarea { width: 100%; min-height: 76px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); padding: 10px; font-size: 13px; line-height: 1.55; }
.notice-slot-foot { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 9px; }
.notice-slot-foot label { display: inline-flex; align-items: center; gap: 5px; color: var(--text2); font-size: 12.5px; font-weight: 700; }
.notice-slot-foot input { width: 16px; height: 16px; }
.notice-slot-msg { color: var(--text3); font-size: 12px; font-weight: 700; }
.notice-admin-list { display: grid; gap: 8px; }
.notice-admin-list-title { margin: 2px 0 -2px; color: var(--text3); font-size: 12px; font-weight: 800; }
@media (max-width: 420px) { .notice-slot-grid { grid-template-columns: 1fr; } }

/* 접이식 12 종목 카드 (기본 접힘: 헤더 + 스파이더 + 현재가/6개월) */
.candidate-card { padding: 0; overflow: hidden; }
.cand-head { display: grid; grid-template-columns: 30px minmax(0, 1fr) 38px auto 44px; align-items: center; gap: 10px; padding: 16px 18px; cursor: pointer; user-select: none; }
.cand-head:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: var(--r); }
.cand-rank { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-weak); color: var(--primary); font-size: 13px; font-weight: 800; }
.cand-fav { width: 38px; height: 38px; border: 0; padding: 0; background: none; display: grid; place-items: center; border-radius: 11px; color: var(--text3); cursor: pointer; transition: color .15s, background .15s, transform .12s; }
.cand-fav:hover { background: var(--surface2); }
.cand-fav:active { transform: scale(.88); }
.cand-fav:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.cand-fav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.cand-fav.on { color: var(--amber); }
.cand-fav.on svg { fill: var(--amber); stroke: var(--amber); }
.cand-fav.on:hover { background: var(--amber-weak); }
.cand-id { min-width: 0; }
.cand-id b { display: block; font-size: 15.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand-id span { display: block; color: var(--text3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand-score-num { font-size: 20px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.cand-score-num small { font-size: 11px; font-weight: 700; color: var(--text3); margin-left: 1px; }
.cand-caret { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border: 0; background: none; padding: 10px; display: grid; place-items: center; color: var(--text3); cursor: pointer; border-radius: 12px; }
.cand-caret:hover { background: var(--surface2); }
.cand-caret:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.cand-caret svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .22s ease; }
.candidate-card.open .cand-caret svg { transform: rotate(180deg); }
.cand-collapsed { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 18px; align-items: center; padding: 2px 18px 16px; }
.cand-collapsed .spider { width: 122px; height: 130px; }
.cand-prices { display: grid; gap: 8px; }
.pricebox { background: var(--surface2); border-radius: var(--r-sm); padding: 12px 14px; }
.pricebox span { display: block; color: var(--text3); font-size: 11.5px; font-weight: 600; }
.pricebox b { display: block; margin-top: 3px; font-size: 17px; font-weight: 800; }
.cand-body { display: none; padding: 2px 18px 18px; border-top: 1px solid var(--hair); }
.candidate-card.open .cand-body { display: block; animation: fadeIn .25s; }
.cand-body .score-pills { margin: 14px 0 4px; }
.cand-body .actions { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cand-body .actions .span2 { grid-column: 1 / -1; }
.my-avg { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface2); border-radius: var(--r-sm); padding: 11px 14px; }
.my-avg > span { color: var(--text2); font-size: 12.5px; font-weight: 700; }
.my-avg > b { font-size: 15px; font-weight: 800; }
/* 초소형 화면: 고정 컬럼·간격을 줄여 종목명 폭 확보 */
@media (max-width: 360px) {
  .cand-head { grid-template-columns: 28px minmax(0, 1fr) 34px auto 44px; gap: 7px; padding: 15px 13px; }
  .cand-rank { width: 28px; height: 28px; }
  .cand-fav { width: 34px; }
  .cand-score-num { font-size: 18px; }
}

/* /app Claude Design v2: 데이터 레이더 관측실 */
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
@keyframes gg-fadeup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gg-gauge { from { stroke-dashoffset: 125.66; } to { stroke-dashoffset: var(--gauge-offset); } }
@keyframes gg-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gg-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes gg-sweep { to { transform: rotate(360deg); } }
@keyframes gg-scanline { 0% { transform: translateY(-22%); opacity: 0; } 30% { opacity: .58; } 100% { transform: translateY(142%); opacity: 0; } }
@keyframes gg-pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.55); opacity: .25; } }
@keyframes gg-blip { 0%, 100% { opacity: .28; } 50% { opacity: 1; } }
@keyframes gg-shimmer { from { background-position: -360px 0; } to { background-position: 360px 0; } }
@keyframes gg-radar-pop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes gg-pop { 0% { transform: scale(1); } 42% { transform: scale(1.18); } 100% { transform: scale(1); } }
.app-screen {
  --app-bg: #eef1f6;
  --app-ink: #141b26;
  --app-muted: #5b6675;
  --app-soft: #93a0b0;
  --app-brand: #2d5bff;
  --app-radar: #4fd6c9;
  --app-foreign: #e5484d;
  --app-inst: #2d6be6;
  --app-warn: #e5a33b;
  background: linear-gradient(180deg, #f3f6fb 0%, #e9eef5 100%);
}
.app-screen .appbar {
  background: color-mix(in srgb, #f4f7fb 82%, transparent);
  border-bottom: 1px solid rgba(20, 27, 38, .06);
  padding-bottom: 10px;
}
.app-screen .appbar h1 { display: flex; align-items: center; gap: 9px; font-size: 22px; letter-spacing: -.03em; color: var(--app-ink); }
.app-screen .appbar h1::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--app-brand); box-shadow: 0 0 0 5px rgba(45, 91, 255, .08); animation: gg-pulse 2.2s ease-in-out infinite; }
.app-screen .chip { background: rgba(45, 91, 255, .09); border: 1px solid rgba(45, 91, 255, .16); color: var(--app-brand); }
.appbar-actions { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.theme-switch { width: 72px; height: 36px; border: 1px solid rgba(20, 27, 38, .08); border-radius: 999px; padding: 3px; background: #fff; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; cursor: pointer; box-shadow: 0 10px 22px -18px rgba(15, 23, 34, .35); }
.theme-icon { min-width: 0; border-radius: 999px; display: grid; place-items: center; color: #98a4b4; transition: background .18s ease, color .18s ease, transform .18s ease; }
.theme-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-switch[data-mode="light"] .sun, .theme-switch[data-mode="dark"] .moon { background: var(--primary); color: #fff; transform: scale(1.02); }
.theme-switch[data-mode="dark"] { background: #111923; border-color: #263247; }
.app-screen main.wrap { max-width: 430px; gap: 12px; padding-top: 6px; }
.detect-panel {
  position: relative;
  min-height: 171px;
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(120% 140% at 80% -10%, #16314f 0%, #0d1726 55%, #0a111c 100%);
  box-shadow: 0 18px 40px -22px rgba(10, 20, 40, .7);
  animation: gg-fadeup .42s cubic-bezier(.22,.61,.36,1) both;
}
.radar-grid { position: absolute; inset: 0; opacity: .52; background-image: linear-gradient(rgba(45, 91, 255, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 91, 255, .1) 1px, transparent 1px); background-size: 34px 34px; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 42px; background: linear-gradient(180deg, rgba(79, 214, 201, .32), transparent); animation: gg-scanline 4.6s cubic-bezier(.4,0,.2,1) infinite; }
.detect-copy { position: relative; min-height: 171px; padding: 18px; display: grid; align-content: center; gap: 12px; padding-right: 124px; }
.detect-status { display: flex; align-items: center; gap: 7px; min-width: 0; }
.radar-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--app-radar); box-shadow: 0 0 9px rgba(79, 214, 201, .75); animation: gg-blip 1.4s ease-in-out infinite; }
.detect-status b { border-radius: 6px; padding: 3px 8px; background: rgba(79, 214, 201, .14); border: 1px solid rgba(79, 214, 201, .26); color: #79e8db; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.detect-status em { min-width: 0; color: #7d93b0; font-size: 10.5px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detect-count { display: flex; align-items: baseline; gap: 7px; }
.detect-count strong { color: #fff; font-size: 46px; line-height: .9; letter-spacing: -.03em; font-weight: 900; }
.detect-count span { color: #aab8cc; font-size: 15px; font-weight: 800; }
.detect-stats { display: flex; flex-wrap: wrap; gap: 7px; }
.detect-stats span { min-width: 64px; display: grid; gap: 2px; padding: 7px 11px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.detect-stats small { color: #7d93b0; font-size: 10px; }
.detect-stats b { color: #fff; font-size: 15px; font-weight: 900; white-space: nowrap; }
.detect-stats .warn { background: rgba(229, 163, 59, .12); border-color: rgba(229, 163, 59, .24); }
.detect-stats .warn b { color: #e7b66a; }
.radar-dial { position: absolute; right: 18px; top: 34px; width: 104px; height: 104px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 17px, rgba(45,91,255,.14) 18px 18.5px), linear-gradient(90deg, transparent 49.5%, rgba(45,91,255,.11) 50%, transparent 50.5%), linear-gradient(0deg, transparent 49.5%, rgba(45,91,255,.11) 50%, transparent 50.5%); }
.radar-dial i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(79,214,201,.42) 0deg, rgba(79,214,201,.05) 42deg, transparent 60deg); animation: gg-sweep 4s linear infinite; }
.radar-dial span { position: absolute; border-radius: 50%; box-shadow: 0 0 8px currentColor; animation: gg-blip 2.4s ease-in-out infinite; }
.radar-dial .b1 { left: 30px; top: 34px; width: 6px; height: 6px; color: var(--app-radar); background: var(--app-radar); }
.radar-dial .b2 { left: 66px; top: 58px; width: 5px; height: 5px; color: #fff; background: #fff; animation-delay: .4s; }
.radar-dial .b3 { left: 54px; top: 24px; width: 4px; height: 4px; color: var(--app-brand); background: var(--app-brand); animation-delay: .8s; }
.trust-strip { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 11px; background: rgba(20, 27, 38, .04); border: 1px solid rgba(20, 27, 38, .06); animation: gg-fadeup .42s cubic-bezier(.22,.61,.36,1) .12s both; }
.trust-strip svg { flex: none; width: 14px; height: 14px; margin-top: 2px; stroke: var(--app-soft); fill: none; stroke-width: 2; stroke-linecap: round; }
.trust-strip span { color: #6b7888; font-size: 11.5px; line-height: 1.45; }
.trust-strip b { color: #3c4858; }
.app-section-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0; }
.app-section-head b { color: var(--app-ink); font-size: 13px; font-weight: 900; }
.app-section-head span, .app-date-note, .app-data-note, .app-price-note { color: #7b8898; font-size: 11px; font-weight: 700; }
.app-date-note { margin: -8px 4px 0; }
.app-data-note { margin: -8px 4px 0; color: #9a7833; }
.app-price-note { margin: -9px 4px 0; color: var(--app-brand); }
.app-screen .candidate-card.signal-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(20, 27, 38, .07);
  box-shadow: 0 1px 2px rgba(15, 23, 34, .04), 0 14px 30px -22px rgba(15, 23, 34, .22);
  animation: gg-fadeup .42s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: var(--delay);
}
.app-screen .candidate-card.signal-card.has-holding {
  border: 4px solid rgba(45, 91, 255, .72);
  box-shadow: 0 1px 2px rgba(15,23,34,.04), 0 18px 36px -20px rgba(45,91,255,.38);
}
.app-screen .candidate-card.signal-card.open { border-color: rgba(45, 91, 255, .22); box-shadow: 0 1px 2px rgba(15,23,34,.04), 0 18px 36px -22px rgba(45,91,255,.32); }
.app-screen .candidate-card.signal-card.has-holding.open { border-color: rgba(45, 91, 255, .82); }
.app-screen .cand-head { display: flex; align-items: center; gap: 11px; padding: 14px 15px 11px; cursor: pointer; }
.cand-rank-wrap { width: 30px; flex: none; display: grid; justify-items: center; gap: 6px; }
.app-screen .cand-rank { width: auto; height: auto; border-radius: 0; background: transparent; color: var(--app-ink); font-size: 15px; font-weight: 900; }
.strength-bars { height: 18px; display: flex; align-items: flex-end; gap: 2px; }
.strength-bars i { width: 3px; border-radius: 2px; background: rgba(20, 27, 38, .12); }
.strength-bars i.on { background: var(--app-brand); }
.app-screen .cand-id { flex: 1; min-width: 0; }
.app-screen .cand-id b { color: var(--app-ink); font-size: 16px; letter-spacing: -.02em; }
.app-screen .cand-id span { color: var(--app-soft); font-size: 11px; }
.cand-price { flex: none; text-align: right; }
.holding-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 20px;
  margin: 0 0 4px auto;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(45, 91, 255, .22);
  background: rgba(45, 91, 255, .10);
  color: var(--app-brand);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.cand-price b { display: block; color: var(--app-ink); font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.cand-price em { margin-top: 2px; display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 6px; font-size: 11.5px; font-style: normal; font-weight: 800; }
.cand-price em.up { color: var(--app-foreign); background: rgba(229, 72, 77, .1); }
.cand-price em.down { color: var(--app-inst); background: rgba(45, 107, 230, .1); }
.cand-price small { display: block; margin-top: 3px; color: var(--app-soft); font-size: 9.5px; font-weight: 800; white-space: nowrap; }
.cand-signal { display: flex; align-items: center; gap: 12px; padding: 0 15px 12px; }
.score-gauge { position: relative; flex: none; width: 60px; height: 60px; display: grid; place-items: center; }
.score-gauge svg { position: absolute; inset: 0; width: 60px; height: 60px; transform: rotate(-90deg); }
.score-gauge circle { fill: none; stroke-width: 6; }
.score-gauge .track { stroke: rgba(20, 27, 38, .08); }
.score-gauge .bar { stroke: var(--app-brand); stroke-linecap: round; stroke-dasharray: 125.66; stroke-dashoffset: var(--gauge-offset); animation: gg-gauge 1.1s cubic-bezier(.22,.61,.36,1) both; animation-delay: calc(var(--delay) + 180ms); }
.score-gauge.mid .bar { stroke: var(--app-inst); }
.score-gauge.muted .bar { stroke: #5b6675; }
.score-gauge span { position: relative; z-index: 1; color: var(--app-ink); font-size: 17px; line-height: 1; font-weight: 900; text-align: center; }
.score-gauge small { display: block; margin-top: 2px; color: var(--app-soft); font-size: 8px; font-weight: 800; }
.flow-stack { flex: 1; min-width: 0; display: grid; gap: 6px; }
.flow-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 50px; align-items: center; gap: 7px; }
.flow-row span { font-size: 10px; font-weight: 900; }
.flow-row i { height: 6px; overflow: hidden; border-radius: 4px; background: rgba(20, 27, 38, .06); }
.flow-row i b { display: block; height: 100%; border-radius: inherit; transform-origin: left; animation: gg-bar .7s cubic-bezier(.22,.61,.36,1) both; animation-delay: calc(var(--delay) + 220ms); }
.flow-row em { color: inherit; font-size: 10.5px; font-style: normal; font-weight: 900; text-align: right; white-space: nowrap; }
.flow-row.foreign { color: var(--app-foreign); }
.flow-row.foreign i { background: rgba(229, 72, 77, .1); }
.flow-row.foreign i b { background: linear-gradient(90deg, #f08a8d, var(--app-foreign)); }
.flow-row.inst { color: var(--app-inst); }
.flow-row.inst i { background: rgba(45, 107, 230, .1); }
.flow-row.inst i b { background: linear-gradient(90deg, #7aa3f0, var(--app-inst)); animation-delay: calc(var(--delay) + 300ms); }
.mini-spider-box { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, rgba(45, 91, 255, .08), rgba(79, 214, 201, .08)); border: 1px solid rgba(45, 91, 255, .12); }
.mini-spider { width: 60px; height: 60px; display: block; overflow: visible; }
.mini-spider-ring { fill: none; stroke: rgba(20, 27, 38, .12); stroke-width: .8; }
.mini-spider-ring.inner { stroke: rgba(20, 27, 38, .07); }
.mini-spider-axis line { stroke: rgba(20, 27, 38, .1); stroke-width: .75; }
.mini-spider-shape { fill: rgba(45, 91, 255, .16); stroke: var(--app-brand); stroke-width: 1.7; stroke-linejoin: round; transform-origin: 30px 30px; animation: gg-radar-pop .78s cubic-bezier(.22,.61,.36,1) both; animation-delay: calc(var(--delay) + 180ms); }
.mini-spider text { fill: #7b8898; font-size: 6px; font-weight: 900; }
.mini-spider .mini-spider-score { fill: var(--app-brand); font-weight: 950; }
.expanded-spider-box { min-height: 148px; margin: 0 auto 12px; padding: 12px 0 10px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg, rgba(45, 91, 255, .075), rgba(79, 214, 201, .075)); border: 1px solid rgba(45, 91, 255, .12); }
.expanded-spider-box .mini-spider { width: 130px; height: 130px; }
.expanded-spider-box .mini-spider-ring { stroke-width: .7; }
.expanded-spider-box .mini-spider-shape { stroke-width: 1.45; }
.expanded-spider-box .mini-spider text { font-size: 5.4px; }
.reason-line { margin: 0 15px; padding: 10px 12px; border-radius: 12px; background: rgba(45, 91, 255, .045); border: 1px solid rgba(45, 91, 255, .10); display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.reason-line svg { flex: none; width: 14px; height: 14px; margin-top: 1px; stroke: var(--app-brand); fill: none; stroke-width: 2; stroke-linecap: round; }
.reason-line span { color: #3c4858; font-size: 12px; font-weight: 600; line-height: 1.45; word-break: keep-all; }
.reason-toggle { width: calc(100% - 30px); margin: 10px 15px 0; padding: 8px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--app-muted); font-weight: 900; font-size: 11.5px; }
.reason-toggle svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.app-screen .candidate-card.open .reason-toggle svg { transform: rotate(180deg); }
.app-screen .candidate-card .cand-body { display: block; max-height: 0; opacity: 0; overflow: hidden; padding: 0 15px; border-top: 0; transition: max-height .4s cubic-bezier(.22,.61,.36,1), opacity .3s ease, padding .3s ease; }
.app-screen .candidate-card.open .cand-body { max-height: 980px; opacity: 1; padding: 6px 15px 14px; animation: none; }
.app-screen .candidate-card.open .cand-signal .mini-spider-box { display: none; }
.signal-details { display: grid; gap: 10px; }
.signal-detail > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.signal-detail b { color: var(--app-ink); font-size: 11px; font-weight: 900; }
.signal-detail span { color: var(--app-brand); font-size: 11px; font-weight: 900; }
.signal-detail i { display: block; height: 5px; overflow: hidden; border-radius: 3px; background: rgba(20, 27, 38, .06); }
.signal-detail i b { display: block; height: 100%; border-radius: inherit; background: var(--app-brand); }
.signal-detail p { margin: 4px 0 0; color: #7b8898; font-size: 10.5px; line-height: 1.4; word-break: keep-all; }
.risk-line { margin-top: 11px; padding: 7px 10px; border-radius: 9px; background: rgba(229, 163, 59, .07); display: flex; align-items: center; gap: 6px; }
.risk-line svg { flex: none; width: 12px; height: 12px; stroke: #c98a2a; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.risk-line span { color: #9a7833; font-size: 10px; line-height: 1.35; }
.foreign-month-card { margin-top: 10px; padding: 10px 10px 9px; border-radius: 13px; border: 1px solid rgba(20, 27, 38, .08); background: #f7f9fc; }
.foreign-month-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.foreign-month-head-secondary { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(20, 27, 38, .07); }
.foreign-month-head b { display: block; color: var(--app-ink); font-size: 11.5px; font-weight: 950; letter-spacing: -.01em; }
.foreign-month-head span { display: block; margin-top: 2px; color: #7b8898; font-size: 9.5px; font-weight: 750; }
.foreign-month-head em { flex: none; color: var(--app-foreign); font-size: 11px; font-style: normal; font-weight: 950; white-space: nowrap; }
.foreign-flow-plot { min-height: 136px; position: relative; display: block; overflow: hidden; border-radius: 11px; background: #fff; border: 1px solid rgba(20, 27, 38, .055); padding: 8px 8px 6px; }
.foreign-flow-chart-canvas { position: relative; width: 100%; height: 104px; }
.foreign-flow-label { position: absolute; left: 14px; z-index: 2; pointer-events: none; font-size: 9px; font-weight: 950; }
.foreign-flow-label.buy { top: 10px; color: var(--app-foreign); }
.foreign-flow-label.sell { bottom: 28px; color: var(--app-inst); }
.foreign-flow-svg { width: 100%; height: 104px; display: block; overflow: visible; }
.foreign-flow-axis { stroke: rgba(20, 27, 38, .18); stroke-width: 1.2; stroke-linecap: round; }
.foreign-flow-axis-label { fill: #9aa6b4; font-size: 9px; font-weight: 900; }
.foreign-flow-axis-label.buy { fill: var(--app-foreign); }
.foreign-flow-axis-label.sell { fill: var(--app-inst); }
.foreign-flow-bar { animation: gg-bar .55s cubic-bezier(.22,.61,.36,1) both; transform-box: fill-box; transform-origin: center bottom; }
.foreign-flow-bar.buy { fill: var(--app-foreign); }
.foreign-flow-bar.sell { fill: var(--app-inst); transform-origin: center top; }
.foreign-flow-foot { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 2px; color: #7b8898; font-size: 9.5px; font-weight: 800; }
.foreign-flow-loading, .foreign-flow-empty { color: #93a0b0; font-size: 10.5px; font-weight: 800; text-align: center; }
.foreign-flow-tooltip { top: 0; left: 0; min-width: 112px; padding: 7px 8px; font-size: 10.5px; border-radius: 10px; }
.app-screen .candidate-card .my-avg { margin-top: 10px; border: 1px solid rgba(20, 27, 38, .08); background: #f7f9fc; }
.app-screen .candidate-card .actions { margin-top: 11px; display: flex; gap: 8px; padding: 0; }
.action-btn { flex: 1; min-height: 40px; border-radius: 11px; border: 1px solid rgba(20, 27, 38, .10); background: #fff; color: #3c4858; display: inline-flex; align-items: center; justify-content: center; gap: 5px; text-decoration: none; font: 800 11.5px/1 Pretendard, system-ui; cursor: pointer; transition: transform .16s ease, background .2s ease, border-color .2s ease; }
.action-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.action-btn:active { transform: scale(.98); }
.action-btn.primary { border-color: #141b26; background: #141b26; color: #fff; }
.action-fav.active { border-color: rgba(229, 163, 59, .3); background: rgba(229, 163, 59, .1); color: #c98a2a; }
.action-fav.active svg { fill: var(--app-warn); stroke: var(--app-warn); }
.action-fav.just-faved { animation: gg-pop .45s cubic-bezier(.34,1.5,.5,1); }
.list-end { color: #a6b1be; text-align: center; font-size: 11px; padding: 6px 0 8px; }
.loading-panel { display: grid; place-items: center; }
.loading-center { position: relative; z-index: 1; display: grid; justify-items: center; gap: 9px; color: #9fc7d8; }
.loading-center b { font-size: 13px; letter-spacing: .04em; }
.loading-dots { display: flex; gap: 5px; }
.loading-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); animation: gg-blip 1.2s ease-in-out infinite; }
.loading-dots i:nth-child(2) { animation-delay: .2s; } .loading-dots i:nth-child(3) { animation-delay: .4s; }
.candidate-skeleton { padding: 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(20,27,38,.06); }
.sk-row, .sk-signal { display: flex; gap: 12px; align-items: center; }
.sk-row span, .sk-signal span { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.sk-row strong { width: 58px; height: 30px; border-radius: 7px; }
.sk-row p, .sk-signal p { flex: 1; display: grid; gap: 7px; margin: 0; }
.sk-row i, .sk-signal i, .sk-row span, .sk-row strong, .sk-signal span, .sk-reason { display: block; background: linear-gradient(90deg, #e6ebf2 25%, #f4f7fb 37%, #e6ebf2 63%); background-size: 720px 100%; animation: gg-shimmer 1.4s linear infinite; }
.sk-row i:first-child { width: 48%; height: 14px; border-radius: 5px; }
.sk-row i:last-child { width: 30%; height: 11px; border-radius: 5px; }
.sk-signal { margin-top: 16px; }
.sk-signal span { width: 60px; height: 60px; border-radius: 50%; }
.sk-signal i { height: 8px; border-radius: 5px; }
.sk-reason { margin-top: 16px; height: 38px; border-radius: 11px; }
.muted-skeleton { opacity: .65; }
.empty-radar { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 28px 24px 34px; border-radius: 22px; background: color-mix(in srgb, #fff 74%, transparent); border: 1px solid rgba(20,27,38,.06); }
.empty-radar-art { position: relative; width: 128px; height: 128px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 19px, rgba(45,91,255,.14) 20px 20.5px), linear-gradient(90deg, transparent 49.5%, rgba(45,91,255,.08) 50%, transparent 50.5%), linear-gradient(0deg, transparent 49.5%, rgba(45,91,255,.08) 50%, transparent 50.5%); }
.empty-radar-art i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(45,91,255,.18) 0deg, rgba(45,91,255,.02) 50deg, transparent 70deg); animation: gg-sweep 5s linear infinite; }
.empty-radar b { color: var(--app-ink); font-size: 17px; font-weight: 900; }
.empty-radar p { margin: 0; color: #6b7888; font-size: 13px; line-height: 1.55; word-break: keep-all; }

[data-theme="dark"] .app-screen:not(.sub-screen) {
  --app-bg: #0b0d11;
  --app-ink: #eef2f6;
  --app-muted: #a7b2bf;
  --app-soft: #778391;
  --app-brand: #6f9cff;
  --app-radar: #5be0d2;
  --app-foreign: #ff6b68;
  --app-inst: #7da7ff;
  background: linear-gradient(180deg, #0d1117 0%, #080b10 100%);
}
[data-theme="dark"] .app-screen:not(.sub-screen) .appbar {
  background: color-mix(in srgb, #0d1117 86%, transparent);
  border-bottom-color: rgba(255, 255, 255, .07);
}
[data-theme="dark"] .app-screen:not(.sub-screen) .theme-switch { background: #111923; border-color: #263247; box-shadow: none; }
[data-theme="dark"] .app-screen:not(.sub-screen) .chip { background: rgba(111, 156, 255, .14); border-color: rgba(111, 156, 255, .22); color: #8fb0ff; }
[data-theme="dark"] .app-screen:not(.sub-screen) .trust-strip,
[data-theme="dark"] .app-screen:not(.sub-screen) .reason-line,
[data-theme="dark"] .app-screen:not(.sub-screen) .empty-radar {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .08);
}
[data-theme="dark"] .app-screen:not(.sub-screen) .trust-strip span,
[data-theme="dark"] .app-screen:not(.sub-screen) .app-section-head span,
[data-theme="dark"] .app-screen:not(.sub-screen) .app-date-note,
[data-theme="dark"] .app-screen:not(.sub-screen) .app-data-note,
[data-theme="dark"] .app-screen:not(.sub-screen) .reason-line span,
[data-theme="dark"] .app-screen:not(.sub-screen) .signal-detail p,
[data-theme="dark"] .app-screen:not(.sub-screen) .empty-radar p { color: #98a6b8; }
[data-theme="dark"] .app-screen:not(.sub-screen) .trust-strip b { color: #dbe4ef; }
[data-theme="dark"] .app-screen:not(.sub-screen) .candidate-card.signal-card,
[data-theme="dark"] .app-screen:not(.sub-screen) .candidate-skeleton {
  background: #15191f;
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 34px -24px rgba(0, 0, 0, .8);
}
[data-theme="dark"] .app-screen:not(.sub-screen) .candidate-card.signal-card.has-holding {
  border-color: rgba(111, 156, 255, .82);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 36px -20px rgba(93, 140, 240, .38);
}
[data-theme="dark"] .app-screen:not(.sub-screen) .candidate-card.signal-card.open { border-color: rgba(111, 156, 255, .28); }
[data-theme="dark"] .app-screen:not(.sub-screen) .candidate-card.signal-card.has-holding.open { border-color: rgba(111, 156, 255, .86); }
[data-theme="dark"] .app-screen:not(.sub-screen) .strength-bars i,
[data-theme="dark"] .app-screen:not(.sub-screen) .score-gauge .track,
[data-theme="dark"] .app-screen:not(.sub-screen) .flow-row i,
[data-theme="dark"] .app-screen:not(.sub-screen) .signal-detail i { background: rgba(255, 255, 255, .08); }
[data-theme="dark"] .app-screen:not(.sub-screen) .mini-spider-box {
  background: linear-gradient(145deg, rgba(111, 156, 255, .16), rgba(91, 224, 210, .10));
  border-color: rgba(111, 156, 255, .24);
}
[data-theme="dark"] .app-screen:not(.sub-screen) .expanded-spider-box {
  background: linear-gradient(145deg, rgba(111, 156, 255, .14), rgba(91, 224, 210, .09));
  border-color: rgba(111, 156, 255, .22);
}
[data-theme="dark"] .app-screen:not(.sub-screen) .mini-spider-ring { stroke: rgba(255, 255, 255, .16); }
[data-theme="dark"] .app-screen:not(.sub-screen) .mini-spider-ring.inner,
[data-theme="dark"] .app-screen:not(.sub-screen) .mini-spider-axis line { stroke: rgba(255, 255, 255, .09); }
[data-theme="dark"] .app-screen:not(.sub-screen) .mini-spider text { fill: #98a6b8; }
[data-theme="dark"] .app-screen:not(.sub-screen) .candidate-card .my-avg,
[data-theme="dark"] .app-screen:not(.sub-screen) .foreign-month-card,
[data-theme="dark"] .app-screen:not(.sub-screen) .action-btn {
  background: #111923;
  border-color: rgba(255, 255, 255, .09);
  color: #dbe4ef;
}
[data-theme="dark"] .app-screen:not(.sub-screen) .foreign-flow-plot { background: #0d131c; border-color: rgba(255, 255, 255, .07); }
[data-theme="dark"] .app-screen:not(.sub-screen) .foreign-month-head-secondary { border-top-color: rgba(255, 255, 255, .08); }
[data-theme="dark"] .app-screen:not(.sub-screen) .foreign-month-head span,
[data-theme="dark"] .app-screen:not(.sub-screen) .foreign-flow-foot,
[data-theme="dark"] .app-screen:not(.sub-screen) .foreign-flow-loading,
[data-theme="dark"] .app-screen:not(.sub-screen) .foreign-flow-empty { color: #98a6b8; }
[data-theme="dark"] .app-screen:not(.sub-screen) .foreign-flow-axis { stroke: rgba(255, 255, 255, .2); }
[data-theme="dark"] .app-screen:not(.sub-screen) .foreign-flow-axis-label { fill: #98a6b8; }
[data-theme="dark"] .app-screen:not(.sub-screen) .foreign-flow-axis-label.buy { fill: var(--app-foreign); }
[data-theme="dark"] .app-screen:not(.sub-screen) .foreign-flow-axis-label.sell { fill: var(--app-inst); }
[data-theme="dark"] .app-screen:not(.sub-screen) .stock-list-card {
  background: #15191f;
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 34px -24px rgba(0, 0, 0, .8);
}
[data-theme="dark"] .stock-list-card.has-holding {
  border-color: rgba(111, 156, 255, .82);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 36px -20px rgba(93, 140, 240, .34);
}
[data-theme="dark"] .app-screen:not(.sub-screen) .holding-badge {
  border-color: rgba(111, 156, 255, .28);
  background: rgba(111, 156, 255, .16);
  color: #9bb8ff;
}
[data-theme="dark"] .app-screen:not(.sub-screen) .stock-list-main b,
[data-theme="dark"] .app-screen:not(.sub-screen) .stock-list-side strong { color: #eef2f6; }
[data-theme="dark"] .app-screen:not(.sub-screen) .stock-list-main span,
[data-theme="dark"] .app-screen:not(.sub-screen) .stock-list-side small,
[data-theme="dark"] .app-screen:not(.sub-screen) .stock-list-reason { color: #98a6b8; }
[data-theme="dark"] .app-screen:not(.sub-screen) .stock-list-actions .action-btn { background: #111923; border-color: rgba(255, 255, 255, .09); color: #dbe4ef; }
[data-theme="dark"] .app-screen:not(.sub-screen) .action-btn.primary { background: #eef2f6; border-color: #eef2f6; color: #111827; }
[data-theme="dark"] .app-screen:not(.sub-screen) .risk-line { background: rgba(255, 180, 84, .12); }
[data-theme="dark"] .app-screen:not(.sub-screen) .risk-line span { color: #e6c17d; }
[data-theme="dark"] .app-screen:not(.sub-screen) .sk-row i,
[data-theme="dark"] .app-screen:not(.sub-screen) .sk-signal i,
[data-theme="dark"] .app-screen:not(.sub-screen) .sk-row span,
[data-theme="dark"] .app-screen:not(.sub-screen) .sk-row strong,
[data-theme="dark"] .app-screen:not(.sub-screen) .sk-signal span,
[data-theme="dark"] .app-screen:not(.sub-screen) .sk-reason {
  background: linear-gradient(90deg, #171d26 25%, #222a35 37%, #171d26 63%);
  background-size: 720px 100%;
}

/* 다크 모드 — .sub-screen(/stocks, /portfolio, /favorites, /settings, /stock) 하드코딩 라이트 컬러 보정.
   위 .app-screen:not(.sub-screen) 다크 오버라이드를 .sub-screen 컨텍스트로 미러링한다. */
[data-theme="dark"] .sub-screen {
  --app-bg: #0b0d11;
  --app-ink: #eef2f6;
  --app-muted: #a7b2bf;
  --app-soft: #778391;
  --app-brand: #6f9cff;
  --app-radar: #5be0d2;
  --app-foreign: #ff6b68;
  --app-inst: #7da7ff;
  background: linear-gradient(180deg, #0d1117 0%, #080b10 100%);
}
[data-theme="dark"] .sub-screen .appbar {
  background: color-mix(in srgb, #0d1117 84%, transparent);
  border-bottom-color: rgba(255, 255, 255, .07);
}
[data-theme="dark"] .sub-screen .appbar h1 { color: var(--text); }
[data-theme="dark"] .sub-screen .appbar p { color: var(--text3); }
[data-theme="dark"] .sub-screen .card,
[data-theme="dark"] .sub-screen .menu-group,
[data-theme="dark"] .sub-screen .account-card {
  border-color: var(--line);
}
[data-theme="dark"] .sub-screen .brief-label { color: var(--primary); }
[data-theme="dark"] .sub-screen .menu-brief h2 { color: var(--text); }
[data-theme="dark"] .sub-screen .menu-brief p { color: var(--text2); }
[data-theme="dark"] .sub-screen .search-field {
  background: var(--surface2);
  border-color: var(--line);
  color: var(--text3);
}
[data-theme="dark"] .sub-screen .search-field input { color: var(--text); }
[data-theme="dark"] .sub-screen .search-field input::placeholder { color: var(--text3); }
[data-theme="dark"] .sub-screen .search-panel select {
  background: var(--surface2);
  border-color: var(--line);
  color: var(--text2);
}
[data-theme="dark"] .sub-screen .stock-list-card,
[data-theme="dark"] .sub-screen .position-card {
  background: var(--surface);
  border-color: var(--line);
}
[data-theme="dark"] .sub-screen .stock-list-main b,
[data-theme="dark"] .sub-screen .position-head b { color: var(--text); }
[data-theme="dark"] .sub-screen .stock-list-main span,
[data-theme="dark"] .sub-screen .position-head small { color: var(--text3); }
[data-theme="dark"] .sub-screen .score-badge { background: rgba(255, 255, 255, .08); color: var(--text2); }
[data-theme="dark"] .sub-screen .score-badge.strong { background: rgba(111, 156, 255, .16); color: #8fb0ff; }
[data-theme="dark"] .sub-screen .score-badge.mid { background: rgba(111, 156, 255, .12); color: #8fb0ff; }
[data-theme="dark"] .sub-screen .score-badge.soft { background: rgba(255, 255, 255, .08); color: var(--text2); }
[data-theme="dark"] .sub-screen .stock-list-side small { color: var(--text3); }
[data-theme="dark"] .sub-screen .stock-list-reason { color: var(--text2); }
[data-theme="dark"] .sub-screen .metric-chip { background: rgba(255, 255, 255, .06); }
[data-theme="dark"] .sub-screen .metric-chip small { color: var(--text2); }
[data-theme="dark"] .sub-screen .metric-chip b { color: var(--text); }
[data-theme="dark"] .sub-screen .metric-chip.hot { background: rgba(111, 156, 255, .14); }
[data-theme="dark"] .sub-screen .metric-chip.hot small,
[data-theme="dark"] .sub-screen .metric-chip.hot b { color: #8fb0ff; }
[data-theme="dark"] .sub-screen .stock-list-actions .action-btn,
[data-theme="dark"] .sub-screen .position-card .action-btn { background: #111923; border-color: rgba(255, 255, 255, .09); color: #dbe4ef; }
[data-theme="dark"] .sub-screen .action-btn { background: #111923; border-color: rgba(255, 255, 255, .09); color: #dbe4ef; }
[data-theme="dark"] .sub-screen .stock-list-actions .action-btn.primary,
[data-theme="dark"] .sub-screen .action-btn.primary { background: #eef2f6; border-color: #eef2f6; color: #111827; }
[data-theme="dark"] .sub-screen .portfolio-summary .metric { background: var(--surface2); }
[data-theme="dark"] .sub-screen .portfolio-summary .metric b { color: var(--text); }
[data-theme="dark"] .sub-screen .portfolio-chart h2 { color: var(--text); }
[data-theme="dark"] .sub-screen .hbar .nm { color: var(--text2); }
[data-theme="dark"] .sub-screen .hbar .track { background: rgba(255, 255, 255, .08); }
[data-theme="dark"] .sub-screen .holding-list .position-card:first-child { border-top-color: var(--line); }
[data-theme="dark"] .sub-screen .position-card .metric { background: var(--surface2); }
[data-theme="dark"] .sub-screen .position-card .metric span { color: var(--text3); }
[data-theme="dark"] .sub-screen .position-card .metric b { color: var(--text); }
[data-theme="dark"] .sub-screen .position-card .fine { color: var(--text3); }
[data-theme="dark"] .sub-screen .account-card b { color: var(--text); }
[data-theme="dark"] .sub-screen .account-card span { color: var(--text3); }
[data-theme="dark"] .sub-screen .account-card .avatar { background: var(--primary-weak); color: var(--primary); }
[data-theme="dark"] .sub-screen .brief-label,
[data-theme="dark"] .sub-screen .more-info-banner b { color: var(--primary); }
[data-theme="dark"] .sub-screen .menu-card b { color: var(--text); }
[data-theme="dark"] .sub-screen .menu-card span span { color: var(--text3); }
[data-theme="dark"] .sub-screen .toggle-row { background: var(--surface2); border-color: var(--line); }
[data-theme="dark"] .sub-screen .more-info-banner span { color: var(--text2); }
/* .sub-screen에서도 노출되는 공유 컴포넌트(특히 /stock 상세) 다크 보정 */
[data-theme="dark"] .sub-screen .foreign-month-card {
  background: var(--surface2);
  border-color: rgba(255, 255, 255, .08);
}
[data-theme="dark"] .sub-screen .foreign-flow-plot { background: #0d131c; border-color: rgba(255, 255, 255, .07); }
[data-theme="dark"] .sub-screen .foreign-month-head span,
[data-theme="dark"] .sub-screen .foreign-flow-foot,
[data-theme="dark"] .sub-screen .foreign-flow-loading,
[data-theme="dark"] .sub-screen .foreign-flow-empty { color: var(--text3); }
[data-theme="dark"] .sub-screen .foreign-month-head-secondary { border-top-color: rgba(255, 255, 255, .08); }
[data-theme="dark"] .sub-screen .foreign-flow-axis { stroke: rgba(255, 255, 255, .2); }
[data-theme="dark"] .sub-screen .foreign-flow-axis-label { fill: var(--text3); }
[data-theme="dark"] .sub-screen .app-screen .candidate-card .my-avg,
[data-theme="dark"] .sub-screen .candidate-card .my-avg { background: var(--surface2); border-color: rgba(255, 255, 255, .08); }
[data-theme="dark"] .sub-screen .candidate-skeleton { background: var(--surface); border-color: rgba(255, 255, 255, .07); }
[data-theme="dark"] .sub-screen .score-gauge .track { stroke: rgba(255, 255, 255, .08); }
[data-theme="dark"] .sub-screen .empty-radar { background: color-mix(in srgb, var(--surface) 74%, transparent); border-color: rgba(255, 255, 255, .07); }
[data-theme="dark"] .sub-screen .empty-radar p { color: var(--text2); }
[data-theme="dark"] .sub-screen .risk-line span { color: #e6c17d; }

/* /stocks, /portfolio, /favorites, /settings Claude Design v2 */
.sub-screen {
  background: linear-gradient(180deg, #f3f6fb 0%, #e9eef5 100%);
}
.sub-screen .appbar {
  background: color-mix(in srgb, #f4f7fb 84%, transparent);
  border-bottom: 1px solid rgba(20, 27, 38, .06);
  padding-bottom: 10px;
}
.sub-screen .appbar h1 {
  display: block;
  color: #141b26;
  font-size: 21px;
  letter-spacing: -.03em;
}
.sub-screen .appbar h1::before { content: none; }
.sub-screen .appbar p { color: #7b8898; font-size: 12.5px; }
.sub-screen main.wrap { max-width: 430px; gap: 12px; padding-top: 6px; }
.sub-screen .card,
.sub-screen .menu-group,
.sub-screen .account-card {
  border-color: rgba(20, 27, 38, .06);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 34, .04), 0 12px 26px -24px rgba(15, 23, 34, .22);
}
.sub-screen .menu-brief { padding: 14px 16px; gap: 5px; }
.sub-screen .brief-label { color: #2d5bff; font-size: 11px; letter-spacing: 0; }
.sub-screen .menu-brief h2 { color: #141b26; font-size: 14.5px; letter-spacing: -.01em; }
.sub-screen .menu-brief p { color: #6b7888; font-size: 11.5px; line-height: 1.5; }
.search-panel { display: grid; gap: 9px; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 8px; }
.search-field {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid rgba(20, 27, 38, .08);
  color: #9aa6b4;
}
.search-field svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #141b26;
  font-size: 13px;
  font-weight: 650;
}
.search-field input::placeholder { color: #9aa6b4; }
.search-submit {
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 24px -16px rgba(45, 91, 255, .7);
}
.search-submit:disabled { opacity: .55; cursor: wait; box-shadow: none; }
.search-panel select {
  min-height: 44px;
  padding: 0 15px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(20, 27, 38, .08);
  color: #3c4858;
  font-size: 12.5px;
  font-weight: 750;
}
.stock-list,
.holding-list {
  display: grid;
  gap: 11px;
}
.stock-list-card,
.position-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(20, 27, 38, .07);
  box-shadow: 0 1px 2px rgba(15, 23, 34, .04), 0 12px 26px -22px rgba(15, 23, 34, .2);
  padding: 17px 15px 15px;
  animation: gg-fadeup .42s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: var(--delay, 0ms);
}
.stock-list-card.has-holding {
  border: 4px solid rgba(45, 91, 255, .72);
  box-shadow: 0 1px 2px rgba(15, 23, 34, .04), 0 18px 36px -20px rgba(45, 91, 255, .34);
}
.stock-list-top,
.position-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.stock-list-main {
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.stock-list-main b,
.position-head b {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #141b26;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.stock-list-main span,
.position-head small {
  display: block;
  margin-top: 3px;
  color: #93a0b0;
  font-size: 11px;
  font-weight: 650;
}
.fav-mark { width: 14px; height: 14px; flex: none; color: #e5a33b; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.stock-list-side { flex: none; min-width: 72px; text-align: right; display: grid; justify-items: end; gap: 3px; }
.score-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 9px;
  background: rgba(91, 102, 117, .1);
  color: #5b6675;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}
.score-badge.strong { background: rgba(45, 91, 255, .12); color: #2d5bff; }
.score-badge.mid { background: rgba(45, 107, 230, .1); color: #2d6be6; }
.score-badge.soft { background: rgba(91, 102, 117, .1); color: #5b6675; }
.stock-list-side strong {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}
.stock-list-side small { color: #a6b1be; font-size: 9.5px; font-weight: 750; }
.stock-list-reason {
  margin: 8px 0 0;
  color: #7b8898;
  font-size: 10.5px;
  line-height: 1.4;
  word-break: keep-all;
}
.metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}
.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #f1f4f9;
}
.metric-chip small { color: #7b8898; font-size: 10.5px; font-weight: 700; }
.metric-chip b { color: #141b26; font-size: 10.5px; font-weight: 900; }
.metric-chip.hot { background: rgba(45, 91, 255, .1); }
.metric-chip.hot small,
.metric-chip.hot b { color: #2d5bff; }
.stock-list-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.stock-list-actions .action-btn,
.position-card .action-btn {
  flex: 0 1 auto;
  min-height: 44px;
  padding: 0 14px;
}
.stock-list-actions .action-btn.primary {
  border-color: #141b26;
  background: #141b26;
  color: #fff;
}
.action-btn.danger {
  border-color: rgba(229, 72, 77, .2);
  background: rgba(229, 72, 77, .06);
  color: #e5484d;
}
.portfolio-summary { padding: 14px; }
.portfolio-summary .metric {
  border-radius: 12px;
  background: #f7f9fc;
  padding: 11px 13px;
}
.portfolio-summary .metric b { color: #141b26; font-size: 17px; }
.portfolio-summary .metric b.up { color: #e5484d; }
.portfolio-summary .metric b.down { color: #2d6be6; }
.portfolio-chart { padding: 15px 16px; }
.portfolio-chart h2 { color: #141b26; font-size: 13px; }
.sub-screen .hbars { gap: 11px; }
.sub-screen .hbar { grid-template-columns: 64px minmax(0, 1fr) 58px; gap: 10px; }
.sub-screen .hbar .nm { color: #3c4858; font-size: 11.5px; font-weight: 800; }
.sub-screen .hbar .track {
  height: 8px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(20, 27, 38, .05);
}
.sub-screen .hbar .track::before { content: none; }
.sub-screen .hbar .fill { position: static; height: 100%; border-radius: inherit; }
.position-card {
  display: grid;
  gap: 13px;
}
.holding-list .position-card:first-child {
  border-top: 1px solid rgba(20, 27, 38, .07);
  padding-top: 17px;
}
.position-card .position-head {
  align-items: center;
  min-height: 37px;
}
.position-head em { flex: none; margin-top: 0; }
.position-card .grid2 { gap: 10px; }
.position-card .metric {
  border-radius: 11px;
  background: #f7f9fc;
  padding: 11px 12px 12px;
}
.position-card .metric span { color: #93a0b0; font-size: 10px; }
.position-card .metric b { color: #141b26; font-size: 15px; }
.position-card .metric b.up { color: #e5484d; }
.position-card .metric b.down { color: #2d6be6; }
.position-card .fine { margin: 0; color: #93a0b0; font-size: 10.5px; line-height: 1.4; }
.position-card .actions { display: flex; gap: 8px; margin-top: 1px; }
.position-card .actions .action-btn { flex: 1; }
.more-info-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 13px;
  background: rgba(45, 91, 255, .06);
  border: 1px solid rgba(45, 91, 255, .12);
}
.more-info-banner b {
  flex: none;
  color: #2d5bff;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}
.more-info-banner span {
  color: #5b6675;
  font-size: 11px;
  line-height: 1.4;
}
#moreGuide[hidden] { display: none; }
.sub-screen .account-card { border-radius: 16px; padding: 14px 16px; grid-template-columns: 40px minmax(0, 1fr) auto; }
.sub-screen .account-card .avatar { width: 40px; height: 40px; border-radius: 12px; background: rgba(45, 91, 255, .1); color: #2d5bff; }
.sub-screen .account-card b { color: #141b26; font-size: 13.5px; }
.sub-screen .account-card span { color: #93a0b0; font-size: 11px; }
.sub-screen .chip { background: rgba(17, 163, 107, .1); color: #11a36b; }
.sub-screen .menu-card { min-height: 56px; padding: 14px 16px; }
.sub-screen .menu-card b { color: #141b26; font-size: 13px; font-weight: 850; }
.sub-screen .menu-card span span { color: #93a0b0; font-size: 10.5px; }
.sub-screen .toggle-row {
  border-color: rgba(20, 27, 38, .06);
  background: #fff;
  border-radius: 16px;
}
.sub-screen .donate-card {
  border-radius: 16px;
  padding: 15px 16px;
  padding-top: 18px;
}
.sub-screen .donate-accent { left: 0; right: 0; height: 3px; }
.sub-screen .donate-logo { width: 34px; height: 34px; border-radius: 10px; }
.sub-screen .donate-title b { font-size: 14px; }
.sub-screen .donate-title span { font-size: 11px; }
.sub-screen .donate-tier {
  min-height: 58px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 13px;
}
.sub-screen .donate-tier-icon { width: 38px; height: 38px; border-radius: 12px; }
.sub-screen .donate-tier-copy b { font-size: 13px; }
.sub-screen .donate-tier-copy small { font-size: 10.5px; }
.sub-screen .donate-tier strong { font-size: 14px; }
.sub-screen .donate-pay { min-height: 46px; border-radius: 13px; }
@media (prefers-reduced-motion: reduce) {
  .app-screen *, .app-screen *::before, .app-screen *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (max-width: 380px) {
  .detect-copy { padding-right: 96px; }
  .radar-dial { width: 82px; height: 82px; right: 14px; top: 46px; }
  .detect-count strong { font-size: 40px; }
  .mini-spider-box { width: 56px; height: 56px; }
  .mini-spider { width: 54px; height: 54px; }
  .flow-row { grid-template-columns: 34px minmax(0, 1fr) 44px; }
  .app-screen .candidate-card .actions { gap: 6px; }
}

/* 관리자 진입 선택 */
.entry-screen { min-height: 100svh; padding: 28px 18px; display: grid; place-items: center; background: #0d1117; color: #eef2f6; }
.entry-wrap { width: min(100%, 390px); display: grid; gap: 13px; text-align: center; }
.entry-logo { width: 58px; height: 58px; margin: 0 auto 8px; border-radius: 19px; display: grid; place-items: center; background: #0c1422 url("/godgod-symbol-128.png") center/68% auto no-repeat; box-shadow: 0 16px 34px rgba(0, 0, 0, .35); }
.entry-logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.entry-wrap h1 { margin: 0; font-size: 25px; font-weight: 900; letter-spacing: -.04em; }
.entry-sub { margin: -2px 0 4px; color: #8995a4; font-size: 13px; font-weight: 700; }
.entry-card { width: 100%; min-height: 68px; border-radius: 14px; border: 1px solid #2b3340; background: #171d26; color: #eef2f6; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }
.entry-link { cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.entry-link:hover { border-color: #3c4b60; background: #1a222d; }
.entry-link:active { transform: scale(.985); }
.entry-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #66d8cf; background: rgba(17, 163, 111, .14); }
.entry-icon.trend, .entry-icon.shield { color: #6d9bff; background: rgba(45, 91, 255, .18); }
.entry-icon svg, .entry-arrow { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.entry-card span small { display: block; color: #95a1b0; font-size: 11px; font-weight: 800; }
.entry-card span b { display: block; margin-top: 2px; color: #fff; font-size: 15px; font-weight: 900; letter-spacing: -.01em; overflow-wrap: anywhere; }
.entry-account em { justify-self: end; padding: 6px 10px; border-radius: 999px; background: rgba(45, 91, 255, .22); color: #7ea4ff; font-size: 11px; font-style: normal; font-weight: 900; }
.entry-arrow { color: #7d8a9b; }
.entry-logout { min-height: 46px; margin-top: 4px; border-radius: 13px; border: 1px solid #2b3340; background: #171d26; color: #ff5a51; font-size: 13px; font-weight: 900; cursor: pointer; }
.entry-note { margin: 5px 0 0; color: #eef2f6; font-size: 12px; line-height: 1.7; font-weight: 700; word-break: keep-all; }

/* 관리자 콘솔 — Claude 디자인 산출물 적용, /super 내부 스코프 */
.super-screen { min-height: 100svh; padding-bottom: 0; background: #eef1f6; color: #19212f; overflow-x: hidden; }
.super-root { min-height: 100svh; }
.super-loading { min-height: 100svh; display: grid; place-items: center; color: #697587; font-size: 13px; font-weight: 800; }
.super-console {
  --s-bg: #eef1f6; --s-surface: #fff; --s-surface-2: #f7f9fc; --s-line: #e2e7f0; --s-line-strong: #d4dbe7;
  --s-ink: #19212f; --s-ink-2: #3f4a5c; --s-muted: #697587; --s-faint: #9aa5b5;
  --s-primary: #2f63ff; --s-primary-ink: #1f49cc; --s-primary-wash: #eaf0ff;
  --s-good: #16a34a; --s-good-wash: #e7f6ec; --s-warn: #d97706; --s-warn-wash: #fcf1e0; --s-danger: #dc2626; --s-danger-wash: #fdecec;
  --s-shadow-sm: 0 1px 2px rgba(20, 30, 50, .06), 0 1px 1px rgba(20, 30, 50, .04);
  --s-shadow-md: 0 4px 14px rgba(20, 30, 50, .08), 0 1px 3px rgba(20, 30, 50, .05);
  --s-shadow-pop: 0 12px 34px rgba(20, 30, 50, .16);
  --s-r-sm: 9px; --s-r: 13px; --s-r-lg: 16px; --s-ease: cubic-bezier(.22, .61, .36, 1); --s-spring: cubic-bezier(.34, 1.4, .5, 1);
  min-height: 100svh; background: var(--s-bg); color: var(--s-ink); font-size: 14px; line-height: 1.45; letter-spacing: 0;
}
html[data-theme="dark"] .super-console {
  --s-bg: #0c1018; --s-surface: #151c29; --s-surface-2: #1b2433; --s-line: #26313f; --s-line-strong: #33404f;
  --s-ink: #e8edf6; --s-ink-2: #c2ccda; --s-muted: #8d99ab; --s-faint: #5f6b7c;
  --s-primary: #5b8bff; --s-primary-ink: #9bb6ff; --s-primary-wash: #1a2740;
  --s-good: #36c46b; --s-good-wash: #143124; --s-warn: #efa53a; --s-warn-wash: #3a2c14; --s-danger: #f06464; --s-danger-wash: #3a1d1f;
  --s-shadow-sm: 0 1px 2px rgba(0, 0, 0, .5); --s-shadow-md: 0 6px 18px rgba(0, 0, 0, .5); --s-shadow-pop: 0 16px 40px rgba(0, 0, 0, .6);
}
.super-console * { box-sizing: border-box; }
.super-console button, .super-console textarea { font: inherit; color: inherit; }
.super-console button { border: 0; background: none; cursor: pointer; letter-spacing: 0; }
.super-console svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.super-console .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.super-console .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100svh; background: var(--s-bg); }
.super-console .side { position: sticky; top: 0; height: 100svh; background: var(--s-surface); border-right: 1px solid var(--s-line); display: flex; flex-direction: column; animation: superSlide .28s .05s var(--s-ease) both; z-index: 20; }
.super-console .side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; border-bottom: 1px solid var(--s-line); min-height: 66px; }
.super-console .mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: url("/godgod-symbol-128.png") center/contain no-repeat; color: transparent; font-size: 0; letter-spacing: 0; }
html[data-theme="dark"] .super-console .mark { background: url("/godgod-symbol-128.png") center/contain no-repeat; color: transparent; }
.super-console .side-brand b { min-width: 0; color: var(--s-ink); font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.super-console .role { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--s-primary-ink); background: var(--s-primary-wash); padding: 3px 7px; border-radius: 6px; }
.super-console .side-close { display: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 10px; border-radius: 12px; color: var(--s-muted); place-items: center; margin-left: auto; }
.super-console .side-close:hover { background: var(--s-surface-2); }
.super-console .nav { position: relative; padding: 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.super-console .nav-cap { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--s-faint); text-transform: uppercase; padding: 12px 12px 6px; }
.super-console .nav-indicator { position: absolute; left: 12px; right: 12px; height: 40px; background: var(--s-primary-wash); border-radius: 10px; transition: transform .26s var(--s-ease), height .26s var(--s-ease), opacity .16s; z-index: 0; pointer-events: none; }
.super-console .nav-item { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; height: 40px; border-radius: 10px; padding: 0 12px; color: var(--s-ink-2); font-size: 13.5px; font-weight: 600; transition: color .15s, background .15s, transform .15s; }
.super-console .nav-item:hover { background: var(--s-surface-2); }
.super-console .nav-item.active { color: var(--s-primary-ink); }
.super-console .nav-item.active svg { color: var(--s-primary); }
.super-console .side-foot { padding: 12px; border-top: 1px solid var(--s-line); color: var(--s-muted); font-size: 11px; line-height: 1.5; }
.super-console .side-links { display: flex; gap: 8px; margin-top: 9px; }
.super-console .side-links a { color: var(--s-primary-ink); font-weight: 800; text-decoration: none; }
.super-console .main { min-width: 0; display: flex; flex-direction: column; }
.super-console .mbar { display: none; }
.super-console .backdrop { display: none; }
.super-console .cmd { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 16px; padding: 16px 26px; background: color-mix(in srgb, var(--s-bg) 78%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--s-line); animation: superFade .3s .12s var(--s-ease) both; }
.super-console .cmd-h h1 { margin: 0; color: var(--s-ink); font-size: 19px; line-height: 1.2; font-weight: 800; letter-spacing: 0; }
.super-console .cmd-h p { margin: 2px 0 0; color: var(--s-muted); font-size: 12.5px; font-weight: 600; word-break: keep-all; }
.super-console .cmd-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.super-console .clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.super-console .clock .t { font-size: 15px; font-weight: 700; }
.super-console .clock .d { color: var(--s-muted); font-size: 11px; }
.super-console .theme-switch { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--s-line); background: var(--s-surface); box-shadow: var(--s-shadow-sm); }
.super-console .theme-switch:hover { background: var(--s-surface-2); border-color: var(--s-line-strong); transform: translateY(-1px); }
.super-console .refresh-btn, .super-console .menu-btn { min-height: 38px; border-radius: 10px; border: 1px solid var(--s-line); background: var(--s-surface); color: var(--s-ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; font-size: 13px; font-weight: 700; transition: background .15s, border-color .15s, transform .15s; }
.super-console .refresh-btn:hover, .super-console .menu-btn:hover { background: var(--s-surface-2); border-color: var(--s-line-strong); }
.super-console .refresh-btn:active, .super-console .menu-btn:active, .super-console .flow-card:active, .super-console .jump:active, .super-console .btn:active { transform: translateY(1px); }
.super-console .content { width: 100%; max-width: 1480px; padding: 22px 26px 60px; display: grid; gap: 18px; }
.super-console .super-view { min-width: 0; display: grid; gap: 18px; }
.super-console .super-view[hidden] { display: none !important; }
.super-console .panel-enter { animation: superPanel .26s .06s var(--s-ease) both; }
.super-console .panel, .super-console .opscard, .super-console .flow-card, .super-console .kpi, .super-console .slot { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-r); box-shadow: var(--s-shadow-sm); }
.super-console .panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--s-line); }
.super-console .panel-head h2 { margin: 0; color: var(--s-ink); font-size: 14.5px; font-weight: 800; letter-spacing: 0; }
.super-console .panel-head .sub { color: var(--s-muted); font-size: 11.5px; }
.super-console .panel-head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.super-console .panel-body { padding: 16px 18px; }
.super-console .sec-title { margin: 8px 2px -7px; color: var(--s-faint); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.super-console .opsbar { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.super-console .opscard { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; animation: superRise .36s var(--s-ease) both; }
.super-console .opscard.lead { background: linear-gradient(180deg, var(--s-surface), var(--s-surface-2)); }
.super-console .ops-k, .super-console .kpi .k { color: var(--s-muted); font-size: 11.5px; font-weight: 700; }
.super-console .ops-v { display: flex; align-items: center; gap: 10px; color: var(--s-ink); font-size: 18px; font-weight: 800; }
.super-console .ops-v.ok { color: var(--s-good); }
.super-console .ops-v.warn { color: var(--s-warn); }
.super-console .ops-sub, .super-console .flow-foot, .super-console .kpi .delta { color: var(--s-muted); font-size: 12px; }
.super-console .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.super-console .dot.live { background: var(--s-good); animation: superPulseGood 2s infinite; }
.super-console .dot.amber { background: var(--s-warn); animation: superPulseWarn 1.6s infinite; }
.super-console .flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.super-console .flow-card { min-height: 132px; text-align: left; padding: 15px 16px; display: flex; flex-direction: column; gap: 10px; transition: transform .14s var(--s-ease), box-shadow .14s, border-color .14s; }
.super-console .flow-card:hover, .super-console .kpi:hover { transform: translateY(-2px); box-shadow: var(--s-shadow-md); border-color: var(--s-line-strong); }
.super-console .flow-top { display: flex; align-items: center; gap: 9px; }
.super-console .flow-top b { color: var(--s-ink); font-size: 13.5px; font-weight: 700; }
.super-console .flow-top .dot { margin-left: auto; }
.super-console .flow-ic, .super-console .attn-ic, .super-console .principle .ic, .super-console .don-status .ic, .super-console .empty .ei { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.super-console .fi-blue { background: var(--s-primary-wash); color: var(--s-primary-ink); }
.super-console .fi-green { background: var(--s-good-wash); color: var(--s-good); }
.super-console .fi-amber { background: var(--s-warn-wash); color: var(--s-warn); }
.super-console .flow-stat .n { color: var(--s-ink); font-size: 20px; font-weight: 800; }
.super-console .kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.super-console .kpi { min-height: 96px; padding: 15px 16px; animation: superRise .4s var(--s-ease) both; transition: transform .14s var(--s-ease), box-shadow .14s, border-color .14s; }
.super-console .kpi.warn { border-color: color-mix(in srgb, var(--s-warn) 28%, var(--s-line)); background: color-mix(in srgb, var(--s-warn-wash) 45%, var(--s-surface)); }
.super-console .kpi .v { margin-top: 9px; color: var(--s-ink); font-size: 24px; line-height: 1.1; font-weight: 800; overflow-wrap: anywhere; }
.super-console .kpi .delta { margin-top: 5px; }
.super-console .grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; align-items: start; }
.super-console .attn { display: flex; flex-direction: column; }
.super-console .attn-row { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--s-line); text-align: left; background: transparent; }
.super-console .attn-row:last-child { border-bottom: 0; }
.super-console .attn-row:hover, .super-console .ev:hover, .super-console .run-row:hover, .super-console .nrow:hover { background: var(--s-surface-2); }
.super-console .attn-row .body { min-width: 0; flex: 1; }
.super-console .attn-row .body b { display: block; color: var(--s-ink); font-size: 13px; font-weight: 700; }
.super-console .attn-row .body span { color: var(--s-muted); font-size: 11.5px; }
.super-console .attn-row .cnt { margin-left: auto; font-size: 18px; font-weight: 800; }
.super-console .jump-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.super-console .jump { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: var(--s-r-sm); border: 1px solid var(--s-line); background: var(--s-surface-2); color: var(--s-ink); font-size: 13px; font-weight: 700; transition: transform .12s, border-color .15s, background .15s; }
.super-console .jump:hover { transform: translateY(-1px); border-color: var(--s-primary); background: var(--s-primary-wash); color: var(--s-primary-ink); }
.super-console .jump .arr { margin-left: auto; color: var(--s-faint); }
.super-console .events, .super-console .run-list { display: flex; flex-direction: column; }
.super-console .ev, .super-console .run-row, .super-console .nrow { display: flex; gap: 13px; padding: 13px 18px; border-bottom: 1px solid var(--s-line); transition: background .12s; }
.super-console .ev:last-child, .super-console .run-row:last-child, .super-console .nrow:last-child { border-bottom: 0; }
.super-console .ev-time { width: 88px; flex: none; color: var(--s-muted); font-size: 11.5px; }
.super-console .ev-body { min-width: 0; flex: 1; }
.super-console .ev-body b { color: var(--s-ink); font-size: 13px; font-weight: 700; }
.super-console .ev-body p { margin: 2px 0 0; color: var(--s-muted); font-size: 11.5px; }
.super-console .badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.super-console .badge .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.super-console .b-blue { background: var(--s-primary-wash); color: var(--s-primary-ink); }
.super-console .b-green { background: var(--s-good-wash); color: var(--s-good); }
.super-console .b-amber { background: var(--s-warn-wash); color: var(--s-warn); }
.super-console .b-gray { background: var(--s-surface-2); color: var(--s-muted); }
.super-console .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.super-console .tbl { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; }
.super-console .tbl th { padding: 11px 16px; border-bottom: 1px solid var(--s-line); background: var(--s-surface-2); color: var(--s-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.super-console .tbl td { padding: 13px 16px; border-bottom: 1px solid var(--s-line); color: var(--s-ink); font-size: 13px; vertical-align: middle; }
.super-console .tbl tr:last-child td { border-bottom: 0; }
.super-console .avatar-sm { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--s-line); background: var(--s-surface-2); color: var(--s-ink-2); display: inline-grid; place-items: center; margin-right: 9px; font-size: 11px; font-weight: 700; vertical-align: middle; }
.super-console .tbl .em { font-weight: 600; word-break: break-all; }
.super-console .meta-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--s-line); border-radius: var(--s-r); overflow: hidden; }
.super-console .meta-cell { padding: 14px 16px; border-bottom: 1px solid var(--s-line); border-right: 1px solid var(--s-line); }
.super-console .meta-cell:nth-child(2n) { border-right: 0; }
.super-console .meta-cell.span-all { grid-column: 1 / -1; border-right: 0; }
.super-console .meta-cell .k { color: var(--s-muted); font-size: 11px; font-weight: 600; }
.super-console .meta-cell .v { margin-top: 5px; color: var(--s-ink); font-size: 14px; font-weight: 700; word-break: break-word; }
.super-console .meta-cell .v.muted { color: var(--s-ink-2); font-size: 13px; font-weight: 500; line-height: 1.55; }
.super-console .data-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.super-console .run-row { display: grid; grid-template-columns: 132px 1fr auto; align-items: center; }
.super-console .run-wk { color: var(--s-ink); font-size: 14px; font-weight: 800; }
.super-console .run-wk small { display: block; color: var(--s-muted); font-size: 11px; font-weight: 600; }
.super-console .run-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.super-console .run-pill { padding: 3px 9px; border: 1px solid var(--s-line); border-radius: 7px; background: var(--s-surface-2); color: var(--s-ink-2); font-size: 11.5px; }
.super-console .run-cand { color: var(--s-ink); font-size: 18px; font-weight: 800; text-align: right; }
.super-console .run-cand small { display: block; color: var(--s-muted); font-size: 10.5px; font-weight: 600; }
.super-console .super-panel-note { border-top: 1px solid var(--s-line); display: flex; align-items: center; gap: 10px; color: var(--s-muted); font-size: 12px; }
.super-console .don-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; align-items: start; }
.super-console .principle { display: flex; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--s-line); }
.super-console .principle:last-child { border-bottom: 0; }
.super-console .principle .ic, .super-console .don-status .ic { background: var(--s-good-wash); color: var(--s-good); }
.super-console .principle b, .super-console .don-status b { color: var(--s-ink); font-size: 13.5px; font-weight: 700; }
.super-console .principle p, .super-console .don-status span, .super-console .charity, .super-console .don-note { margin: 3px 0 0; color: var(--s-muted); font-size: 12px; line-height: 1.55; }
.super-console .don-cta { padding: 20px 18px; display: flex; flex-direction: column; gap: 13px; }
.super-console .don-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--s-line); border-radius: var(--s-r-sm); background: var(--s-surface-2); }
.super-console .charity { padding: 13px 14px; border: 1px dashed var(--s-line-strong); border-radius: var(--s-r-sm); }
.super-console .charity b { color: var(--s-good); }
.super-console .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 11px; font-weight: 700; text-decoration: none; transition: transform .12s, background .15s; }
.super-console .btn-primary { background: var(--s-primary); color: #fff; box-shadow: 0 2px 8px color-mix(in srgb, var(--s-primary) 35%, transparent); }
html[data-theme="dark"] .super-console .btn-primary { color: #0c1018; }
.super-console .slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.super-console .slot { overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.super-console .slot.flash { animation: superFlash .6s var(--s-ease); }
.super-console .slot-head { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--s-line); }
.super-console .slot-head b { color: var(--s-ink); font-size: 13.5px; font-weight: 800; }
.super-console .slot-head .mkey { color: var(--s-faint); font-size: 11px; font-weight: 600; }
.super-console .slot-head .right { margin-left: auto; }
.super-console .slot-body-wrap { padding: 13px 15px; display: flex; flex-direction: column; gap: 11px; }
.super-console .slot textarea { width: 100%; min-height: 78px; resize: vertical; border: 1px solid var(--s-line); border-radius: 10px; background: var(--s-surface-2); color: var(--s-ink); padding: 11px 12px; font-size: 13px; line-height: 1.55; }
.super-console .slot textarea:focus { outline: 0; border-color: var(--s-primary); background: var(--s-surface); }
.super-console .slot-foot { display: flex; align-items: center; gap: 12px; }
.super-console .chk { display: inline-flex; align-items: center; gap: 8px; color: var(--s-ink-2); font-size: 12.5px; font-weight: 600; cursor: pointer; user-select: none; }
.super-console .chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.super-console .chk .box { width: 19px; height: 19px; border-radius: 6px; border: 1.6px solid var(--s-line-strong); display: grid; place-items: center; color: #fff; transition: background .15s, border-color .15s; }
.super-console .chk .box svg { width: 13px; height: 13px; opacity: 0; transform: scale(.6); transition: .15s; }
.super-console .chk input:checked + .box { background: var(--s-good); border-color: var(--s-good); }
.super-console .chk input:checked + .box svg { opacity: 1; transform: scale(1); }
.super-console .slot-foot .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.super-console .slot-msg { color: var(--s-muted); font-size: 11.5px; font-weight: 700; }
.super-console .slot-msg.ok { color: var(--s-good); }
.super-console .slot-msg.err { color: var(--s-danger); }
.super-console .btn-save { position: relative; overflow: hidden; height: 36px; padding: 0 16px; border-radius: 9px; background: var(--s-primary); color: #fff; font-size: 13px; font-weight: 700; }
.super-console .btn-save.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%); transform: translateX(-100%); animation: superShimmer 1s infinite; }
.super-console .nrow { align-items: flex-start; }
.super-console .nrow.off { opacity: .62; }
.super-console .ntext { min-width: 0; flex: 1; }
.super-console .ntext .ct { color: var(--s-ink); font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.super-console .ntext .mt { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.super-console .notice-at { color: var(--s-faint); font-size: 11px; }
.super-console .nact { display: flex; gap: 6px; flex: none; }
.super-console .mini { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--s-line); background: var(--s-surface); color: var(--s-ink-2); font-size: 12px; font-weight: 700; transition: background .13s, border-color .13s, color .13s; }
.super-console .mini:hover { background: var(--s-surface-2); border-color: var(--s-line-strong); }
.super-console .mini.on { color: var(--s-good); border-color: transparent; background: var(--s-good-wash); }
.super-console .mini.off { color: var(--s-muted); }
.super-console .mini.del:hover { color: var(--s-danger); border-color: var(--s-danger); background: var(--s-danger-wash); }
.super-console .mini svg { width: 13px; height: 13px; }
.super-console .empty { padding: 46px 24px; text-align: center; color: var(--s-muted); }
.super-console .empty.compact { padding: 24px; }
.super-console .empty .ei { margin: 0 auto 14px; background: var(--s-surface-2); color: var(--s-faint); }
.super-console .empty b { display: block; margin-bottom: 4px; color: var(--s-ink-2); font-size: 14px; font-weight: 700; }
.super-console .empty p { margin: 0; font-size: 12.5px; }
@keyframes superRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes superFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes superSlide { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes superPanel { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes superShimmer { to { transform: translateX(100%); } }
@keyframes superFlash { 0% { box-shadow: 0 0 0 0 var(--s-good); border-color: var(--s-good); } 40% { box-shadow: 0 0 0 4px var(--s-good-wash); } 100% { box-shadow: var(--s-shadow-sm); border-color: var(--s-line); } }
@keyframes superPulseGood { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--s-good) 45%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes superPulseWarn { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--s-warn) 50%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 1120px) {
  .super-console .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .super-console .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .super-console .opsbar { grid-template-columns: 1fr 1fr; }
  .super-console .opscard.lead { grid-column: 1 / -1; }
  .super-console .grid-2, .super-console .don-grid { grid-template-columns: 1fr; }
  .super-console .data-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .super-console .shell { display: block; padding-top: 65px; }
  .super-console .side { position: fixed; inset: 0 auto 0 0; width: min(84vw, 280px); transform: translateX(-100%); transition: transform .3s var(--s-spring); box-shadow: var(--s-shadow-pop); z-index: 80; animation: none; }
  .super-console .shell.drawer .side { transform: translateX(0); }
  .super-console .side-close { display: grid; }
  .super-console .role { display: none; }
  .super-console .backdrop { position: fixed; inset: 0; background: rgba(10,14,22,.5); z-index: 70; opacity: 0; visibility: hidden; transition: opacity .25s; }
  .super-console .shell.drawer .backdrop { display: block; opacity: 1; visibility: visible; }
  .super-console .mbar { position: fixed; inset: 0 0 auto; z-index: 40; height: 65px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--s-line); background: var(--s-surface); animation: superFade .3s .12s both; }
  .super-console .mbar .menu-btn { width: 40px; height: 40px; padding: 0; }
  .super-console .mbar .mtitle { min-width: 0; color: var(--s-ink); font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .super-console .mbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .super-console .cmd { display: none; }
  .super-console .content { padding: 16px 14px 56px; }
  .super-console .kpi-grid, .super-console .data-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .super-console .slot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .super-console .kpi-grid, .super-console .data-kpis, .super-console .flow-grid, .super-console .jump-grid, .super-console .opsbar { grid-template-columns: 1fr; }
  .super-console .run-row { grid-template-columns: 1fr; gap: 10px; }
  .super-console .run-cand { text-align: left; }
  .super-console .meta-grid { grid-template-columns: 1fr; }
  .super-console .meta-cell { border-right: 0; }
  .super-console .nrow { flex-direction: column; }
  .super-console .nact { width: 100%; }
  .super-console .mini { flex: 1; justify-content: center; min-height: 40px; }
}

/* 접이식 가이드(이번 주 확인 순서 · 기본 접힘) */
.guide-collapse { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.guide-collapse > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; font-size: 14px; font-weight: 800; }
.guide-collapse > summary::-webkit-details-marker { display: none; }
.guide-collapse > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2.2px solid var(--text3); border-bottom: 2.2px solid var(--text3); transform: rotate(45deg); transition: transform .22s; margin-right: 3px; }
.guide-collapse[open] > summary::after { transform: rotate(-135deg); }
.guide-collapse[open] > summary { border-bottom: 1px solid var(--hair); }
.guide-inner { padding: 8px 18px 16px; }
.guide-inner > p { margin: 6px 0 2px; color: var(--text2); font-size: 13px; word-break: keep-all; }

/* 이니시스 기부(더보기) */
.donate-card { position: relative; overflow: hidden; display: grid; gap: 14px; padding-top: 22px; }
.donate-accent { position: absolute; top: 0; left: 16px; right: 16px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--good)); }
.donate-head { display: flex; align-items: center; gap: 12px; }
.donate-logo { width: 40px; height: 40px; border-radius: 14px; background: var(--good-weak); color: var(--good); display: grid; place-items: center; flex: none; }
.donate-logo svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.donate-title { min-width: 0; flex: 1; display: grid; gap: 2px; }
.donate-title b { font-size: 16px; font-weight: 800; }
.donate-title span { color: var(--text2); font-size: 12.5px; line-height: 1.35; word-break: keep-all; }
.donate-status { flex: none; min-height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line)); border-radius: 10px; padding: 0 9px; color: var(--primary); background: var(--primary-weak); font-size: 11px; font-weight: 800; }
.donate-tiers { display: grid; gap: 10px; }
.donate-tier { width: 100%; min-height: 70px; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 12px 14px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.donate-tier:active { transform: scale(.99); }
.donate-tier:disabled { cursor: wait; opacity: .72; transform: none; }
.donate-tier-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.donate-tier-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.donate-tier-icon.amber { color: var(--amber); background: var(--amber-weak); }
.donate-tier-icon.blue { color: var(--primary); background: var(--primary-weak); }
.donate-tier-icon.green { color: var(--good); background: var(--good-weak); }
.donate-tier-copy { min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.donate-tier-copy b { min-width: 0; font-size: 14px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.donate-tier-copy em { width: max-content; border-radius: 999px; padding: 2px 7px; background: var(--primary-weak); color: var(--primary); font-size: 10px; font-style: normal; font-weight: 800; }
.donate-tier-copy small { grid-column: 1 / -1; color: var(--text3); font-size: 12px; line-height: 1.35; }
.donate-tier strong { color: var(--primary); font-size: 16px; font-weight: 900; white-space: nowrap; }
.donate-tier.selected { border-color: color-mix(in srgb, var(--primary) 48%, var(--line)); background: var(--primary-weak); }
.donate-selection { margin: 0; font-weight: 700; }
.donate-pay { margin-top: 2px; }
.donate-pay.loading { cursor: wait; opacity: .82; }
.donate-copy { margin: 0; color: var(--text2); font-size: 12.5px; line-height: 1.55; word-break: keep-all; }
.donate-note { margin: -2px 0 0; color: var(--up); text-align: center; font-size: 12px; font-weight: 700; }

@media (min-width: 720px) {
  .wide { max-width: 880px; }
  .wide main.wrap, main.wrap.wide { max-width: 880px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .wide .span2, main.wrap.wide .span2 { grid-column: 1 / -1; }
}
