/* 증시한컷 — 토스 느낌의 깔끔한 카드 UI, 모바일/웹 반응형 */
:root {
  --bg: #f2f4f6;
  --card: #ffffff;
  --t1: #191f28;
  --t2: #4e5968;
  --t3: #8b95a1;
  --t4: #b0b8c1;
  --line: #e5e8eb;
  --fill: #f2f4f6;
  --fill-2: #e5e8eb;
  --blue: #3182f6;
  --blue-weak: #e8f3ff;
  --up: #f04452;          /* 상승·긍정 */
  --up-weak: #fff0f1;
  --down: #3182f6;        /* 하락·부정 */
  --down-weak: #e8f3ff;
  --gnb: rgba(255, 255, 255, .92);
  --r-lg: 20px;
  --r-md: 14px;
  --shadow: 0 1px 3px rgba(0, 27, 55, .05);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171c;
    --card: #202027;
    --t1: #ececef;
    --t2: #b0b0b8;
    --t3: #7e7e87;
    --t4: #5c5c66;
    --line: #2c2c35;
    --fill: #2c2c35;
    --fill-2: #3a3a44;
    --blue: #4d93f8;
    --blue-weak: #1c2b44;
    --up: #f8636f;
    --up-weak: #3a1f24;
    --down: #4d93f8;
    --down-weak: #1c2b44;
    --gnb: rgba(23, 23, 28, .92);
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--t1);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--t3); }
.muted { color: var(--t3); }
[hidden] { display: none !important; }

/* ── 상단 바 ── */
.gnb {
  position: sticky; top: 0; z-index: 20;
  background: var(--gnb); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.gnb-in {
  max-width: 1160px; margin: 0 auto; height: 58px; padding: 0 20px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.brand img { border-radius: 8px; }
.wordmark em { font-style: normal; color: var(--blue); }
.gnb-nav { display: none; gap: 4px; }
.gnb-nav a { padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--t3); }
.gnb-nav a:hover { background: var(--fill); }
.gnb-nav a.on { color: var(--t1); }
.gnb-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  color: var(--t3); border-radius: 12px; padding: 8px;
}
.gnb-search svg, .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gnb-search span { display: none; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 12px 16px calc(96px + env(safe-area-inset-bottom)); }
.mockbar {
  font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-weak);
  border-radius: 12px; padding: 9px 14px; margin-bottom: 12px; text-align: center;
}
.disclaimer { font-size: 12px; color: var(--t4); padding: 28px 4px 4px; line-height: 1.7; }

/* ── 하단 탭 (모바일) ── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; background: var(--gnb); backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--t4); padding: 4px 0; }
.tabbar a.on { color: var(--t1); }
.tabbar a.on svg { stroke-width: 2.4; }

/* ── 공통 패널 ── */
.panel { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 20px; }
.panel + .panel { margin-top: 12px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.panel-head h2 { font-size: 19px; font-weight: 700; }
.panel-head .sub { font-size: 13px; color: var(--t3); }
.panel-head a.link { font-size: 14px; font-weight: 600; color: var(--t3); }
.panel-head a.link:hover { color: var(--t2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 52px; padding: 0 22px; border-radius: 16px; font-size: 16px; font-weight: 700;
  background: var(--blue); color: #fff; transition: transform .08s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn:hover { filter: brightness(1.04); }
.btn.weak { background: var(--blue-weak); color: var(--blue); }
.btn.grey { background: var(--fill); color: var(--t2); }
.btn.block { width: 100%; }
.btn.sm { height: 40px; font-size: 14px; border-radius: 12px; padding: 0 16px; }

/* 세그먼트 탭 */
.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 6px; padding: 0 20px 2px; }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--t2); background: var(--fill);
}
.seg button.on { background: var(--t1); color: var(--card); }

/* 아바타 (로고 대신 첫 글자) */
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px; font-weight: 800; color: #fff;
  background: var(--c, #8b95a1);
}
.avatar.lg { width: 52px; height: 52px; font-size: 21px; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }

/* 목록 한 줄 */
.rows { display: flex; flex-direction: column; margin: 0 -10px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 14px;
  cursor: pointer; transition: background .12s;
}
.row:hover { background: var(--fill); }
.row:active { background: var(--fill-2); }
.row .rank { width: 20px; flex: none; text-align: center; font-weight: 700; color: var(--blue); font-size: 15px; }
.row-main { flex: 1; min-width: 0; }
.row-name { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 13px; color: var(--t3); display: flex; align-items: center; gap: 6px; margin-top: 1px; white-space: nowrap; overflow: hidden; }
.row-right { text-align: right; flex: none; }
.row-price { font-weight: 600; font-size: 15px; }
.row-chg { font-size: 13.5px; font-weight: 600; }

.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; line-height: 1.5; }
.pill.pos { background: var(--up-weak); color: var(--up); }
.pill.neg { background: var(--down-weak); color: var(--down); }
.pill.neu { background: var(--fill); color: var(--t3); }
.pill.hot { background: #fff4e6; color: #f76707; }
@media (prefers-color-scheme: dark) { .pill.hot { background: #3d2a14; color: #ffa94d; } }

/* 하트(관심) */
.heart { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--t4); }
.heart:hover { background: var(--fill-2); }
.heart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.heart.on { color: var(--up); }
.heart.on svg { fill: currentColor; }
.heart.pop svg { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.3); } }

.more { width: 100%; height: 44px; margin-top: 8px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--t2); background: var(--fill); }

/* ── 홈 대시보드 ── */
/* 모바일: 한 줄로 쌓되 관심종목을 인기 종목보다 위로 / PC: 왼쪽(지수·인기) + 오른쪽(관심·공시) */
.dash { display: flex; flex-direction: column; gap: 12px; }
.dash-col { display: contents; }
.a-brief { order: 1; }
.a-idx { order: 2; }
.a-watch { order: 3; }
.a-us { order: 4; }
.a-pop { order: 5; }
.a-kosdaq { order: 6; }
.a-krheat { order: 7; }
.a-disc { order: 8; }
.dash .panel + .panel { margin-top: 0; }

.indices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.index-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 18px; }
.index-card .label { font-size: 13px; font-weight: 600; color: var(--t3); }
.index-card .val { font-size: 21px; font-weight: 700; margin-top: 2px; }
.index-card .chg { font-size: 14px; font-weight: 600; }

.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cta h3 { font-size: 18px; font-weight: 700; }
.cta p { margin: 0 0 14px; color: var(--t2); font-size: 14.5px; }

/* ── 종목 고르기 ── */
.pick-head { padding: 12px 4px 18px; }
.pick-head h1 { font-size: 26px; font-weight: 800; line-height: 1.35; }
.pick-head p { margin: 6px 0 0; color: var(--t3); font-size: 15px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 8px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow);
  border: 2px solid transparent; transition: border-color .12s, background .12s, transform .08s;
}
.tile:active { transform: scale(.97); }
.tile .tile-name { font-weight: 600; font-size: 14px; text-align: center; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; max-width: 100%; }
.tile .tile-chg { font-size: 12.5px; font-weight: 600; }
.tile .check {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--fill-2); color: transparent;
}
.tile .check svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tile.on { border-color: var(--blue); background: var(--blue-weak); }
.tile.on .check { background: var(--blue); color: #fff; }
.sticky-cta {
  position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 5;
  padding: 14px 0 4px; background: linear-gradient(to bottom, transparent, var(--bg) 30%);
}
.skip { display: block; text-align: center; color: var(--t3); font-size: 14px; font-weight: 600; padding: 10px; }

/* ── 검색 ── */
.searchbox {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px;
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow); color: var(--t3);
}
.searchbox svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.searchbox input { flex: 1; height: 100%; border: 0; outline: 0; background: transparent; color: var(--t1); font: inherit; font-size: 17px; }
.searchbox input::placeholder { color: var(--t4); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; background: var(--fill); color: var(--t2); }
.chip:hover { background: var(--fill-2); }

/* ── 관심 (브리핑 카드) ── */
.cards { display: grid; gap: 12px; }
.bcard { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; cursor: pointer; transition: transform .08s; }
.bcard:active { transform: scale(.99); }
.bcard-top { display: flex; align-items: center; gap: 12px; }
.bcard-top .nm { flex: 1; min-width: 0; }
.bcard-top .nm b { display: block; font-size: 17px; font-weight: 700; }
.bcard-top .nm span { font-size: 13px; color: var(--t3); }
.bcard-top .px { text-align: right; }
.bcard-top .px b { display: block; font-size: 17px; font-weight: 700; }
.bcard-top .px span { font-size: 14px; font-weight: 600; }
.bcard .summary { margin: 14px 0 12px; font-size: 15px; color: var(--t2); line-height: 1.55; }
.bcard .tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* 뉴스 분위기 막대 */
.moodbar { margin-top: 16px; }
.moodbar .lab { display: flex; justify-content: space-between; font-size: 12px; color: var(--t3); margin-bottom: 7px; }
.moodbar .lab b { color: var(--t1); font-weight: 700; }
.track { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--down), var(--fill-2) 50%, var(--up)); }
.track i { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 4px solid var(--t1); transform: translate(-50%, -50%); }

/* ── 종목 상세 ── */
.back { display: inline-flex; align-items: center; gap: 2px; height: 36px; color: var(--t2); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.d-head { display: flex; align-items: flex-start; gap: 14px; padding: 6px 4px 20px; }
.d-head .info { flex: 1; min-width: 0; }
.d-head .name { font-size: 15px; font-weight: 600; color: var(--t2); }
.d-head .name span { color: var(--t3); font-weight: 500; margin-left: 4px; font-size: 13px; }
.d-head .price { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.d-head .chg { font-size: 15px; font-weight: 600; }
.d-head .asof { font-size: 12.5px; color: var(--t3); margin-top: 2px; }
.likebtn { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--t3); width: 52px; padding: 6px 0; border-radius: 12px; }
.likebtn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.likebtn.on { color: var(--up); }
.likebtn.on svg { fill: currentColor; }
.likebtn:hover { background: var(--fill-2); }

.d-grid { display: grid; gap: 12px; }
.d-col { display: grid; gap: 12px; align-content: start; }
.ai .tag { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.ai .one { font-size: 18px; font-weight: 700; line-height: 1.45; }
.ai ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ai li { position: relative; padding-left: 14px; color: var(--t2); font-size: 15px; }
.ai li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--t4); }

.signals { display: grid; gap: 12px; }
.sig h3 { font-size: 17px; font-weight: 700; }
.sig .desc { font-size: 13px; color: var(--t3); margin: 2px 0 14px; }
.gauge { display: flex; flex-direction: column; align-items: center; }
.gauge svg { width: 230px; max-width: 100%; height: auto; overflow: visible; }
.gauge .big { font-size: 22px; font-weight: 800; margin-top: -4px; }
.gauge .cnt { font-size: 13.5px; color: var(--t2); margin-top: 2px; }

.flowrow { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; }
.flowrow .who { font-size: 14px; font-weight: 600; color: var(--t2); }
.dots { display: flex; gap: 6px; }
.dots span { width: 24px; height: 24px; border-radius: 7px; background: var(--fill-2); }
.dots span.b { background: var(--up); }
.dots span.s { background: var(--down); }
.flowrow .amt { font-size: 14px; font-weight: 700; text-align: right; }
.daysaxis { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; font-size: 11px; color: var(--t4); }
.daysaxis div:nth-child(2) { display: flex; justify-content: space-between; width: 144px; }
.legend { font-size: 12.5px; color: var(--t3); margin-top: 6px; }

.volbar { position: relative; height: 12px; border-radius: 999px; background: var(--fill-2); margin: 30px 0 8px; }
.volbar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--blue); }
.volbar .avg { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--t1); }
.volbar .avg::after { content: "평소"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--t2); white-space: nowrap; }
.volscale { display: flex; justify-content: space-between; font-size: 11px; color: var(--t4); }
.volbig { font-size: 20px; font-weight: 800; margin-top: 10px; }
.volbig span { font-size: 13px; font-weight: 500; color: var(--t3); }

.items { display: flex; flex-direction: column; margin: 0 -10px; }
.item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 10px; border-radius: 12px; }
.item:hover { background: var(--fill); }
.item .t { font-size: 15px; font-weight: 500; line-height: 1.45; }
.item .m { font-size: 12.5px; color: var(--t3); margin-top: 3px; }
.item .pill { margin-top: 2px; flex: none; }
.empty-line { color: var(--t3); font-size: 14.5px; padding: 4px 0; }

table.hist { width: 100%; border-collapse: collapse; font-size: 14px; }
table.hist th { font-size: 12.5px; color: var(--t3); font-weight: 600; text-align: right; padding: 0 0 8px; }
table.hist th:first-child, table.hist td:first-child { text-align: left; }
table.hist td { padding: 9px 0; text-align: right; border-top: 1px solid var(--line); }
.mini { display: inline-block; width: 44px; height: 6px; border-radius: 999px; background: var(--fill-2); position: relative; vertical-align: middle; margin-right: 8px; }
.mini b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }

/* ── 기록 ── */
.stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat > div { background: var(--fill); border-radius: 16px; padding: 16px 10px; text-align: center; }
.stat .k { font-size: 13px; font-weight: 600; color: var(--t3); }
.stat .v { font-size: 26px; font-weight: 800; margin: 2px 0; }
.stat .n { font-size: 12px; color: var(--t3); }
.note { font-size: 14px; color: var(--t2); line-height: 1.65; margin: 14px 0 0; }

/* ── 상태 ── */
.empty { text-align: center; padding: 56px 16px; }
.empty .ico { font-size: 40px; }
.empty h3 { font-size: 19px; font-weight: 700; margin: 8px 0 6px; }
.empty p { color: var(--t3); font-size: 15px; margin: 0 0 20px; }
.err { padding: 48px 16px; text-align: center; color: var(--t2); }
.sk { background: linear-gradient(90deg, var(--fill) 25%, var(--fill-2) 50%, var(--fill) 75%); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.sk-row .a { width: 40px; height: 40px; border-radius: 50%; }
.sk-row .b { flex: 1; height: 16px; }
.sk-row .c { width: 70px; height: 16px; }

.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: rgba(25, 31, 40, .92); color: #fff; font-size: 14.5px; font-weight: 600;
  padding: 12px 18px; border-radius: 14px; white-space: nowrap; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-color-scheme: dark) { .toast { background: rgba(236, 236, 239, .95); color: #17171c; } }

/* ── 태블릿/PC ── */
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .signals { grid-template-columns: repeat(2, 1fr); }

}
@media (min-width: 900px) {
  .gnb-nav { display: flex; }
  .gnb-search { width: 260px; background: var(--fill); padding: 0 14px; height: 40px; }
  .gnb-search span { display: inline; font-size: 14px; }
  .tabbar { display: none; }
  .wrap { padding: 24px 20px 48px; }
  .toast { bottom: 40px; }
  .sticky-cta { bottom: 0; }
  .dash { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
  .dash-col { display: flex; flex-direction: column; gap: 12px; }
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pick-wrap { max-width: 860px; margin: 0 auto; }
  .search-wrap { max-width: 720px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .d-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .d-head .price { font-size: 34px; }
  .signals { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ v2: 로고 · 신호 · 히트맵 · 브리핑 · 이평선 ═══ */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 50%; }

.pill.sig-up { background: var(--up-weak); color: var(--up); }
.pill.sig-down { background: var(--down-weak); color: var(--down); }
.pill.sig-mid { background: var(--fill); color: var(--t2); }
.pill.trend { background: var(--fill); color: var(--t2); font-weight: 600; }

/* AI 3줄 브리핑 */
.brief { position: relative; overflow: hidden; background: linear-gradient(135deg, #3182f6, #6b5cff); color: #fff; }
.brief .panel-head h2 { color: #fff; }
.brief .panel-head .sub { color: rgba(255,255,255,.75); }
.brief ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: b; }
.brief li { counter-increment: b; display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 15.5px; line-height: 1.5; font-weight: 500; }
.brief li::before { content: counter(b); width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.brief .actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.brief .actions button { height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.18); color: #fff; }
.brief .actions button:hover { background: rgba(255,255,255,.28); }
.brief .actions button.kakao { background: #fee500; color: #191919; }
.brief .pending { opacity: .85; font-size: 15px; }
.brief .brief-more { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.85); text-decoration: none; }
.brief .brief-more:hover { color: #fff; }

/* 지수 칩 */
.idx-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.idx-chip { background: var(--fill); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.idx-chip .n { font-size: 12px; font-weight: 600; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idx-chip .v { font-size: 15px; font-weight: 700; }
.idx-chip .c { font-size: 13px; font-weight: 700; }

/* 히트맵 (트리맵) */
.heat { position: relative; width: 100%; height: 300px; border-radius: 14px; overflow: hidden; background: #262931; margin-top: 12px; }
.heat .tile { position: absolute; box-sizing: border-box; border: 1px solid #262931; color: #fff; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.15; padding: 2px; cursor: default; }
.heat .tile.link { cursor: pointer; }
.heat .tile.link:hover { filter: brightness(1.15); z-index: 2; outline: 2px solid #fff; }
.heat .tile b { font-size: 12px; font-weight: 700; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.heat .tile span { font-size: 11px; font-weight: 600; opacity: .95; }
.heat .tile.big b { font-size: 15px; }
.heat .tile.big span { font-size: 13px; }
.heat .tile { gap: 0; border-radius: 6px; }
.heat .tile b.xl { font-size: 22px; } .heat .tile span.xl { font-size: 18px; }
.heat .tile .lg.dark, .heat .tile .lg.dark img { background: #191f28; color: #fff; }
/* 마크만 있는 로고(미국 FMP)는 동그라미 안에 여백 — 가장자리 잘림 방지 */
.heat .tile .lg.mark img { inset: 18%; width: 64%; height: 64%; background: transparent; }
.heat .tile .lg.ok { color: transparent; }
.heat .tile .lg { box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.heat .tile .lg { position: relative; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #4e5968;
  font-style: normal; font-weight: 800; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.3); margin-bottom: 3px; }
.heat .tile .lg:only-child { margin: 0; }
.heat .tile .lg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.heat .sector { position: absolute; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.75); padding: 2px 4px; pointer-events: none; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.heat-legend { display: flex; justify-content: center; gap: 2px; margin-top: 8px; font-size: 10.5px; font-weight: 600; }
.heat-legend span { padding: 2px 6px; border-radius: 4px; color: #fff; }

/* 저평가 코스닥 */
.pick-row .row-sub { flex-wrap: wrap; white-space: normal; gap: 4px; margin-top: 4px; }
.wrap-row .row-sub { flex-wrap: wrap; white-space: normal; gap: 0 8px; }
.wrap-row .row-sub span { white-space: nowrap; }
.why { font-size: 12.5px; color: var(--t3); margin: -6px 0 10px; }

/* 상세: 신호 게이지 */
.sig-card .gauge .big.up { color: var(--up); }
.sig-card .gauge .big.down { color: var(--down); }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.reasons .pill { font-size: 12.5px; padding: 4px 9px; }
.honest { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--fill); font-size: 13px; color: var(--t2); line-height: 1.55; }
.honest b { color: var(--t1); }

/* 이평선 차트 */
.machart { width: 100%; height: 150px; display: block; margin: 6px 0 4px; }
.ma-legend { display: flex; gap: 14px; font-size: 12px; color: var(--t3); }
.ma-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.ma-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ma-facts div { background: var(--fill); border-radius: 12px; padding: 10px 12px; }
.ma-facts .k { font-size: 12px; color: var(--t3); font-weight: 600; }
.ma-facts .v { font-size: 15px; font-weight: 700; }
.ma-text { font-size: 14.5px; color: var(--t2); margin-top: 10px; line-height: 1.55; }

/* 가치 지표 */
.vals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vals div { background: var(--fill); border-radius: 12px; padding: 12px; }
.vals .k { font-size: 12px; color: var(--t3); font-weight: 600; }
.vals .v { font-size: 18px; font-weight: 800; }
.vals .h { font-size: 11.5px; color: var(--t3); }

.pending-line { display: flex; align-items: center; gap: 8px; color: var(--t3); font-size: 15px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--fill-2); border-top-color: var(--blue); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.bt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bt-grid > div { background: var(--fill); border-radius: 16px; padding: 14px 8px; text-align: center; }
.bt-grid .k { font-size: 12.5px; font-weight: 700; }
.bt-grid .v { font-size: 24px; font-weight: 800; margin: 2px 0; }
.bt-grid .n { font-size: 11.5px; color: var(--t3); }

@media (min-width: 900px) {
  .heat { height: 380px; }
  .idx-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .idx-strip.kr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vals { grid-template-columns: repeat(4, 1fr); }
}

/* ═══ v3: 수급 · 테마 ═══ */
.mflow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mflow-card { background: var(--fill); border-radius: 14px; padding: 12px 14px; }
.mflow-t { font-size: 13px; font-weight: 700; color: var(--t2); margin-bottom: 4px; }
.mflow-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 2px 0; }
.mflow-row span { color: var(--t3); font-weight: 600; }
.mflow-row b { font-weight: 700; }
.mflow-bars { display: flex; align-items: flex-end; gap: 4px; height: 36px; margin-top: 8px; }
.mflow-bars i, .fbars i { flex: 1; border-radius: 3px 3px 0 0; min-width: 3px; }
.mflow-bars i.b, .fbars i.b { background: var(--up); }
.mflow-bars i.s, .fbars i.s { background: var(--down); }
.mflow-cap { font-size: 11px; color: var(--t4); margin-top: 3px; }
.fbars-wrap { margin-top: 14px; }
.fbars-wrap .k { font-size: 12px; color: var(--t3); font-weight: 600; margin: 8px 0 4px; }
.fbars { display: flex; align-items: flex-end; gap: 3px; height: 42px; border-bottom: 1px solid var(--line); }

.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.theme-tile { border-radius: 12px; padding: 10px 10px 8px; color: #fff; display: flex; flex-direction: column; min-width: 0; }
.theme-tile b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-tile span { font-size: 16px; font-weight: 800; margin-top: 2px; }
.theme-tile small { font-size: 10.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.a-flow { order: 4; }
.a-us { order: 5; }
.a-theme { order: 6; }
.a-pop { order: 7; }
.a-kosdaq { order: 8; }
.a-krheat { order: 9; }
.a-disc { order: 10; }
@media (min-width: 640px) { .themes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .themes { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.flowrow .amt { white-space: nowrap; font-size: 13.5px; }
.flowrow .dots { gap: 4px; }
.flowrow .dots span { width: 20px; height: 20px; }
.signals { align-items: start; }
.bt-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .bt-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 기록: 사는데 빠진 종목 검증표 */
.bt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 12px; }
.bt-table th { white-space: nowrap; text-align: right; font-weight: 600; color: var(--t3, #8b95a1); font-size: 12px; padding: 6px 4px; border-bottom: 1px solid var(--line, #e5e8eb); }
.bt-table th:first-child, .bt-table td:first-child { text-align: left; }
.bt-table td { text-align: right; padding: 8px 4px; border-bottom: 1px solid var(--line, #f2f4f6); }
.bt-table td.up { color: var(--red, #f04452); font-weight: 600; } .bt-table td.down { color: var(--blue); font-weight: 600; }

/* 카톡 자동 발송 설정 */
.kk-switch { display: flex; align-items: center; gap: 10px; font-size: 15.5px; cursor: pointer; }
.kk-switch input, .kk-room input, .kk-time input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.kk-rooms { display: grid; gap: 8px; }
.kk-room { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--fill); cursor: pointer; }
.kk-room span { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kk-room i { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; flex: none; }
.kk-room i.ok { background: var(--blue-weak); color: var(--blue); }
.kk-room i.bad { background: var(--up-weak, #ffeeee); color: var(--up, #f04452); }
.kk-times { display: grid; gap: 8px; margin-bottom: 10px; }
.kk-time { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--fill); }
.kk-time input[type=time] { font: inherit; font-weight: 700; font-size: 16px; border: 0; background: var(--card); color: var(--t1); border-radius: 10px; padding: 6px 8px; }
.kk-time span { color: var(--t2); font-weight: 600; }
.kk-preview { display: grid; gap: 12px; margin: 12px 0; }
.kk-preview img { width: 100%; max-width: 420px; border-radius: 14px; background: var(--fill); aspect-ratio: 1; }
.kk-preview pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: 13.5px; line-height: 1.6; background: var(--fill); border-radius: 14px; padding: 14px; color: var(--t1); }
.kk-testrow { display: flex; gap: 8px; }
.kk-testrow select { flex: 1; min-width: 0; font: inherit; font-size: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--t1); padding: 0 10px; }
.kk-testrow .btn[disabled] { opacity: .45; }
.kk-log { display: grid; gap: 6px; font-size: 13px; }
.kk-log div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kk-log span { color: var(--t3); text-align: right; }
@media (min-width: 900px) { .kk-preview { grid-template-columns: 420px 1fr; align-items: start; } }

.mini-list { margin-top: 12px; display: grid; }
.row-mini { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.row-mini span:nth-child(2) { color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-mini .up { color: var(--up, #f04452); } .row-mini .down { color: var(--down, #3182f6); }

/* 방문자 통계 */
.st-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--t2); }
.st-live i { width: 8px; height: 8px; border-radius: 50%; background: #00b493; box-shadow: 0 0 0 3px rgba(0,180,147,.18); }
.st-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 10px; }
.st-kpi { background: var(--fill); border-radius: 14px; padding: 12px 14px; }
.st-kpi .l { font-size: 12.5px; color: var(--t3); font-weight: 600; }
.st-kpi .v { font-size: 22px; font-weight: 800; margin-top: 2px; color: var(--t1); }
.st-kpi .s { font-size: 11.5px; color: var(--t3); margin-top: 1px; }
.st-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: 150px; align-items: end; padding-top: 6px; }
.st-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: pointer; outline: none; position: relative; }
.st-col i { display: block; width: 100%; max-width: 18px; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 0; }
.st-col:hover i, .st-col:focus i { filter: brightness(.85); }
.st-col span { position: absolute; bottom: -18px; font-size: 10.5px; color: var(--t3); white-space: nowrap; }
.st-bars { margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.st-tip { position: fixed; z-index: 50; background: var(--t1); color: var(--card); font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; }
.st-grid { display: grid; gap: 12px; }
.st-list .st-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 14px; }
.st-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.st-row .bar { height: 8px; background: var(--fill); border-radius: 4px; overflow: hidden; }
.st-row .bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.st-row b { font-size: 13.5px; } .st-row small { color: var(--t3); font-weight: 600; }
@media (min-width: 900px) {
  .st-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 투자 캘린더 */
.cal-day { padding-top: 14px; padding-bottom: 8px; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--blue); }
.cal-date { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 6px; }
.cal-date em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.cal-today { background: var(--blue); color: #fff; } .cal-tmr { background: var(--blue-weak); color: var(--blue); }
.cal-ev { display: grid; grid-template-columns: 46px 22px 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cal-ev:first-of-type { border-top: 0; }
.cal-time { font-size: 13.5px; font-weight: 700; color: var(--t2); }
.cal-flag { font-size: 16px; }
.cal-title { min-width: 0; } .cal-title b { display: block; font-size: 15px; font-weight: 700; }
.cal-title small { display: block; font-size: 12px; color: var(--t3); margin-top: 1px; }
.cal-star { font-size: 11px; color: #f5a623; letter-spacing: -1px; white-space: nowrap; }
.cal-ev.k-휴장 .cal-title b { color: var(--t2); font-weight: 600; }

/* 목표가 · PER 범위 */
.tg-list { display: grid; margin-top: 6px; }
.tg-row { display: grid; grid-template-columns: 22px 34px minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "rk av nm tg" "rk av per per"; gap: 2px 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.tg-rank { grid-area: rk; font-size: 12.5px; font-weight: 700; color: var(--t3); }
.tg-row .avatar { grid-area: av; }
.tg-name { grid-area: nm; min-width: 0; } .tg-name b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-name small, .tg-tg small, .tg-per small { display: block; font-size: 12px; color: var(--t3); }
.tg-tg { grid-area: tg; text-align: right; } .tg-tg b { font-size: 14.5px; }
.tg-per { grid-area: per; display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; }
.pbar { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--fill); }
.pbar .rng { position: absolute; top: 0; bottom: 0; background: var(--fill-2, #d1d6db); border-radius: 4px; }
.pbar .dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--card); }
.pbar .dot.above { background: #f04452; } .pbar .dot.below { background: #00b493; }
.pb-none { font-size: 12px; color: var(--t4, #b0b8c1); }
.cons-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; text-align: center; }
.cons-top > div { background: var(--fill); border-radius: 12px; padding: 10px 6px; }
.cons-top .k { font-size: 12px; color: var(--t3); font-weight: 600; } .cons-top .v { font-size: 17px; font-weight: 800; margin-top: 2px; }
.cons-top small { font-size: 12px; color: var(--t3); font-weight: 600; }
.cons-per { margin-top: 6px; } .cons-per .pbar { height: 10px; margin: 6px 0 8px; }
.cons-per-t { font-size: 14px; } .cons-per-p { font-size: 12.5px; color: var(--t3); margin-top: 4px; line-height: 1.5; }

/* 시장 뉴스 */
.nw-list { display: grid; }
.nw { display: block; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.nw:first-child { border-top: 0; }
.nw b { display: block; font-size: 15px; line-height: 1.45; margin-top: 4px; }
.nw small { display: block; font-size: 12.5px; color: var(--t3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--t3); }
.nw-tag { font-style: normal; font-weight: 700; font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: var(--fill); color: var(--t2); }
.nw-tag.t-국내증시 { background: #ffeeee; color: #e42939; } .nw-tag.t-미국증시 { background: #e8f3ff; color: #1b64da; }
.nw-tag.t-종목 { background: #f3eefe; color: #7048e8; } .nw-tag.t-금리환율 { background: #e9f9f3; color: #00916e; }
.nw:hover b { color: var(--blue); }

/* ⓘ 용어 설명 */
.ti { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 2px; border-radius: 50%; font-size: 12px; line-height: 1; color: var(--t3); background: var(--fill); vertical-align: 2px; cursor: pointer; }
.ti:hover { color: var(--blue); }
.term-sheet { position: fixed; inset: 0; z-index: 100; }
.term-sheet .ts-bg { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.term-sheet .ts-box { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(560px, 100%); background: var(--card); border-radius: 22px 22px 0 0; padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.15); }
.term-sheet h3 { margin: 0 0 8px; font-size: 18px; } .term-sheet p { margin: 0 0 16px; font-size: 15px; line-height: 1.65; color: var(--t2); }
@media (min-width: 900px) { .term-sheet .ts-box { bottom: auto; top: 50%; transform: translate(-50%, -50%); border-radius: 20px; } }
/* 캔들 차트 */
.chart-box { margin-top: 10px; }
.ch-wrap { position: relative; padding-bottom: 20px; overflow: hidden; }
.ch-svg { width: 100%; height: 230px; display: block; touch-action: pan-y; }
.ch-hi, .ch-lo { position: absolute; right: 2px; font-size: 11px; color: var(--t3); background: var(--card); padding: 0 3px; border-radius: 4px; }
.ch-hi { top: 0; } .ch-lo { top: 150px; }
.ch-x { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; } .ch-x span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--t3); white-space: nowrap; }
.ch-x span:first-child { transform: none; } .ch-x span:last-child { transform: translateX(-100%); }
.ch-tip { position: absolute; top: 4px; z-index: 3; background: var(--t1); color: var(--card); font-size: 12px; line-height: 1.5; padding: 6px 9px; border-radius: 8px; pointer-events: none; white-space: nowrap; }
.ch-tip b { display: block; }
/* 큰손 지분 변동 */
.hd-list { display: grid; margin-top: 6px; }
.hd { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.hd-d { font-size: 12.5px; color: var(--t3); } .hd-w b { display: block; font-size: 14.5px; } .hd-w small { display: block; font-size: 12px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-r { text-align: right; font-weight: 700; } .hd-r small { display: block; font-size: 12px; font-weight: 600; color: var(--t3); }

/* 내 방 카드 만들기 */
.mk-name { display: grid; gap: 6px; margin: 6px 0 14px; } .mk-name span, .mk-label { font-size: 13px; font-weight: 700; color: var(--t2); }
.mk-name input { font: inherit; font-size: 17px; font-weight: 700; padding: 13px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--t1); outline: none; }
.mk-name input:focus { border-color: var(--blue); }
.mk-label { margin: 4px 0 8px; }
.mk-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.mk-opts button { padding: 11px 6px; border-radius: 14px; background: var(--fill); color: var(--t2); text-align: center; border: 2px solid transparent; }
.mk-opts button b { display: block; font-size: 14px; } .mk-opts button small { display: block; font-size: 11.5px; color: var(--t3); margin-top: 2px; }
.mk-opts button.on { border-color: var(--blue); background: var(--blue-weak); color: var(--blue); }
.mk-prev { position: relative; margin: 14px 0 12px; display: grid; place-items: center; background: var(--fill); border-radius: 16px; padding: 12px; min-height: 200px; }
.mk-prev img { width: 100%; max-width: 420px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.12); transition: opacity .2s; }
.mk-prev img.mk-story { max-width: 300px; }
.mk-load { position: absolute; font-size: 14px; font-weight: 700; color: var(--t2); background: var(--card); padding: 8px 14px; border-radius: 99px; }
.mk-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-act button { height: 50px; border-radius: 14px; font-size: 15px; font-weight: 800; background: linear-gradient(120deg, #3182f6, #6b5cff); color: #fff; }
.mk-act button.kakao { background: #fee500; color: #191919; }

/* 쇼츠 */
.sh-vid { display: block; width: 100%; max-width: 320px; margin: 12px auto; border-radius: 16px; background: #000; aspect-ratio: 9 / 16; }
.sh-dl { display: grid; place-items: center; height: 50px; border-radius: 14px; font-size: 15px; font-weight: 800; color: #fff; text-decoration: none; background: linear-gradient(120deg, #3182f6, #6b5cff); }
.sh-cap { margin-top: 12px; background: var(--fill); border-radius: 14px; padding: 12px 14px; font-size: 13px; }
.sh-cap pre { margin: 6px 0 0; white-space: pre-wrap; font: inherit; color: var(--t2); line-height: 1.55; }

.oc-join { display: block; margin-top: 12px; text-align: center; padding: 13px; border-radius: 14px; background: #fee500; color: #191919; font-weight: 800; font-size: 15px; text-decoration: none; }
