/*
 * HashLoop — Coinbase 디자인 시스템 적용 (docs/DESIGN.md · HashLoop 색 치환 규칙 우선, 2026-07-15)
 * Inter + Pretendard · canvas #f7f7f7 / 흰 카드 + hairline #dcdfe4 · 버튼=pill · 프라이머리 #3b82f6(불변) · 사이드바 #0a0b0d
 * 변수명은 계약(파일 전체가 참조) — 값만 교체. --ink-1/--ink-soft는 기존 참조 누락분을 정의해 채움.
 */
:root {
  --bg: #f7f7f7;        /* Coinbase surface-soft — 카드가 뜨는 앱 캔버스 */
  --card: #ffffff;      /* surface-card */
  --line: #dcdfe4;      /* hairline */
  --ink: #0a0b0d;       /* Coinbase ink */
  --ink-1: #0a0b0d;
  --ink-2: #5b616e;     /* body */
  --ink-3: #7c828a;     /* muted */
  --ink-soft: #5b616e;
  --pri: #3b82f6;       /* 해시스크래퍼 블루 — 절대 변경 금지 */
  --pri-deep: #1d4ed8;
  --side-bg: #0a0b0d;   /* Coinbase surface-dark */
  --side-ink: #c8cdd5;
  --side-muted: #8a919e;
  --good-bg: #dcfce7;  --good-tx: #15803d;
  --warn-bg: #fef9c3;  --warn-tx: #a16207;
  --crit-bg: #fee2e2;  --crit-tx: #b91c1c;
  --info-bg: #eff6ff;  --info-tx: #1d4ed8;
  --ai-bg: #f5f3ff;    --ai-tx: #6d28d9;
  --gray-bg: #eef0f3;  --gray-tx: #5b616e;   /* surface-strong */
  --sans: Inter, "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--pri-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ── 사이드바 ── */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 230px; background: var(--side-bg);
  color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 14px;
  overflow-y: auto; z-index: 10;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 2px 6px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--pri); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none;
}
.brand b { font-size: 14px; color: #f1f5f9; display: block; line-height: 1.25; }
.brand small { font-size: 9.5px; letter-spacing: .14em; color: var(--side-muted); font-weight: 600; }
.side-nav { margin-top: 14px; display: grid; gap: 2px; }
.nav-group { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--side-muted); padding: 14px 8px 5px; }
.nav-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
  color: var(--side-ink); font-size: 13px; font-weight: 600;
}
.nav-item:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.nav-item.active { background: rgba(59,130,246,.18); color: #bfdbfe; }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: #05b169; flex: none; }
.nav-count { margin-left: auto; font-size: 10.5px; font-weight: 700; background: var(--pri); color: #fff; border-radius: 999px; padding: 1px 7px; }
/* 알림 미읽음 배지 — 사이드바 nav + 모바일 상단바 공용 (알림함을 열면 사라진다) */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
  background: #cf202f; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1;
}
.side-conn { margin-top: auto; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; }
.conn-title { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--side-muted); margin-bottom: 8px; }
.conn-row { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 3px 0; color: #e2e8f0; white-space: nowrap; }
.conn-row .conn-name { overflow: hidden; text-overflow: ellipsis; }
.conn-row i { width: 6px; height: 6px; border-radius: 50%; background: #05b169; flex: none; }
.conn-row small { margin-left: auto; font-weight: 500; color: var(--side-muted); font-size: 10.5px; white-space: nowrap; flex: none; }
.conn-note { margin-top: 9px; padding-top: 9px; border-top: 1px dashed rgba(255,255,255,.12); font-size: 11px; color: var(--side-muted); line-height: 1.7; }
.conn-note b { color: var(--side-ink); }
.side-user { padding: 14px 6px 2px; font-size: 12px; }
.side-user b { color: #e2e8f0; display: block; }
.side-user small { color: var(--side-muted); }

/* ── 메인 ── */
.main { margin-left: 230px; padding: 26px 30px 48px; max-width: 1240px; }

.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 21px; font-weight: 650; letter-spacing: -0.5px; display: flex; gap: 10px; align-items: center; }
.page-head h1 .lamp { width: 10px; height: 10px; border-radius: 50%; background: #05b169; }
.head-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  background: var(--warn-bg); color: var(--warn-tx); border-radius: 999px; padding: 4px 11px;
}
.head-chip.ai { background: var(--ai-bg); color: var(--ai-tx); } /* AI 산출·전용 화면 표시 */

/* ── 레이아웃 유틸 (디자인 시스템) — 인라인 style 대신 사용 ── */
.table-scroll { overflow-x: auto; } /* 넓은 테이블 래퍼 — 헤더 툴팁은 thead .tip 규칙이 아래로 열어줌 */
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.g10 { gap: 10px; }
.row.g12 { gap: 12px; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: 4px !important; }
.mt-6 { margin-top: 6px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-14 { margin-top: 14px !important; }
.mt-16 { margin-top: 16px !important; }
.ml-6 { margin-left: 6px !important; }
.tx-ai { color: var(--ai-tx) !important; }   /* AI 산출 헤딩·텍스트 */
.tx-2 { color: var(--ink-2) !important; }    /* 보조 텍스트 */
.bg-ai { background: var(--ai-bg) !important; } /* AI 틴트 카드 */
.inline-form { display: inline-flex; margin: 0; } /* 헤더 안 button_to 폼 */
.step-row { display: flex; gap: 12px; align-items: flex-start; } /* 가이드 스텝 리스트 행 */
.step-row .pill { flex: none; height: fit-content; }
.demo-chip { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #b91c1c; border: 1px solid currentColor; border-radius: 4px; padding: 1px 6px; }
.page-head .sp { flex: 1; }
.btn {
  /* 태그(‹a›·‹button›) 무관 동일 높이 — ‹button›은 line-height:normal, ‹a›는 상속 line-height라
     통일하지 않으면 나란히 둘 때 높이가 어긋난다(실측 31.5 vs 36.1px). */
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; line-height: 1.2; font-family: inherit; vertical-align: middle;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 700;
  white-space: nowrap;
}
.page-head form, .dr-act form { margin: 0; display: inline-flex; }
/* ── 실험 카드 (표 → 카드 전환: 긴 go 기준·가설 텍스트의 가로 스크롤 해소) ── */
.exp-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #f7f7f7; }
.exp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.exp-head .exp-name { font-size: 14px; letter-spacing: -.01em; }
.exp-head .sp { flex: 1; }
.exp-verdict { position: relative; }
.exp-verdict summary { list-style: none; cursor: pointer; }
.exp-verdict summary::-webkit-details-marker { display: none; }
.exp-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.exp-meta label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 1px; }
.exp-meta small { color: var(--ink-3); }
.exp-line { margin-top: 9px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.exp-line b { color: var(--ink); font-size: 11.5px; }
.exp-line.dim { color: var(--ink-3); }

/* ⚙ 목표 설정으로 진입 시(#monthly-goal 앵커) — 자동 스크롤 + 필드 하이라이트 펄스 */
#monthly-goal { scroll-margin-top: 90px; border-radius: 12px; }
#monthly-goal:target { animation: goal-flash 1.2s ease-in-out 2; }
#monthly-goal:target input { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.25); }
@keyframes goal-flash {
  0% { background: transparent; box-shadow: none; }
  35% { background: #fde047; box-shadow: 0 0 0 6px #fde047; }
  100% { background: transparent; box-shadow: none; }
}

/* 스탯 타일의 목표 설정 바로가기 — 평소엔 숨고 타일 호버 시 슬라이드 인(레이아웃 점프 없음) */
.stat .goal-set {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--pri-deep);
  opacity: 0; transform: translateY(3px);
  transition: opacity .18s ease, transform .18s ease;
}
.stat:hover .goal-set, .stat .goal-set:focus-visible { opacity: 1; transform: translateY(0); }
.stat .goal-set:hover { text-decoration: underline; }

/* 용어 툴팁 — 점선 밑줄이 "설명 있음" 신호 (초보자 편의) */
.term { text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; }

/* 실험 판정 패널 — 분석 + 전략 옵션 라디오 */
.verdict-panel { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ai-bg); }
.verdict-option { padding: 8px 10px; border-radius: 8px; background: var(--card); }
.verdict-option:has(input:checked) { outline: 2px solid var(--pri); }

/* 정제안 후보 그룹 제거 — 섹션 제목 옆, 은은하다가 호버 시 선명 */
.advice-remove { flex: none; }
/* 정제안 그룹 헤더의 작은 칩(전체 선택·그룹 제거) — 형태 통일 */
.advice-chip, .advice-remove button {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-3);
  border-radius: 999px; padding: 2px 9px; line-height: 1.4; font-size: 11px; font-weight: 700;
}
.advice-chip input { margin: 0; accent-color: var(--pri); }
.advice-chip:hover { color: var(--ink-1); border-color: #c9cdd3; background: var(--gray-bg); }
.advice-remove button:hover { color: var(--crit-tx); border-color: #f3caca; background: var(--crit-bg); }

/* 승인 시 자동 집행 예고 — 무엇이 실행되는지 모른 채 승인하지 않게 하는 안전 표식 */
.exec-note { font-size: 12.5px; color: var(--ink-2); background: var(--warn-bg, #fef3c7);
             border-radius: 8px; padding: 6px 10px; margin: 8px 0 2px; display: inline-block; }
.exec-note b { color: var(--ink); }
.btn:hover { border-color: #c9cdd3; }
.btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.pri:hover { background: #2563eb; }
.btn.sm { padding: 5px 13px; font-size: 12px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-3); }
.page-sub { color: var(--ink-2); font-size: 13px; margin-top: 6px; }
.page-sub b { color: var(--ink); }
.page-sub .ai-b { color: var(--ai-tx); font-weight: 700; }

/* ── 스탯 카드 ── */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.stat .l { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.stat .v { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-top: 3px; }
.stat .d { font-size: 11.5px; margin-top: 3px; color: var(--ink-3); font-weight: 600; }
.stat .d .good { color: #05b169; }
.stat .d .warn { color: var(--warn-tx); }

/* ── 카드 & 섹션 ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.card-h { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; }
.card-h h2 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.card-h .sub { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.card-h .r { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.section-gap { margin-top: 16px; }

/* ── 배지 ── */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good-tx); }
.pill.warn { background: var(--warn-bg); color: var(--warn-tx); }
.pill.critical { background: var(--crit-bg); color: var(--crit-tx); }
.pill.info { background: var(--info-bg); color: var(--info-tx); }
.pill.neutral { background: var(--gray-bg); color: var(--gray-tx); }
.pill.ai { background: var(--ai-bg); color: var(--ai-tx); }

/* ── AI 액션 큐 ── */
.queue { display: grid; gap: 12px; }
.proposal { border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; background: #f7f7f7; }
.proposal .kicker { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ai-tx); margin-bottom: 4px; }
.proposal h3 { font-size: 15px; font-weight: 750; letter-spacing: -.01em; line-height: 1.4; }
.proposal .why { font-size: 13px; color: var(--ink-2); margin-top: 6px; line-height: 1.65; }
.proposal .why b { color: var(--ink); }
.proposal .ev { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.proposal .ev span { font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--gray-bg); border-radius: 5px; padding: 2px 8px; }
.proposal .act { display: flex; gap: 8px; margin-top: 13px; flex-wrap: wrap; align-items: center; }
.proposal .gov { margin-left: auto; font-size: 11px; color: var(--ink-3); }

/* AI 전략 카드 — 요약 카드 그리드(클릭 → 상세에서 검토·수정 후 개별 시작) */
.draft-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.draft-facts .fact { font-size: 12px; font-weight: 600; color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); border-radius: 9999px; padding: 3px 11px; }
.strategy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
@media (max-width: 1180px) { .strategy-grid { grid-template-columns: 1fr; } }
.strategy-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; background: var(--ai-bg); text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, transform .15s ease; }
.strategy-card:hover { border-color: #b7bdc6; text-decoration: none; transform: translateY(-1px); }
.strategy-card:hover .sc-cta { color: var(--pri-deep); }
.strategy-card .sc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.strategy-card h3 { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.45; }
.strategy-card .sc-why { font-size: 12.5px; color: var(--ink-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.strategy-card .sc-cta { margin-top: auto; padding-top: 6px; font-size: 12.5px; font-weight: 650; color: var(--pri); }
.exp-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.exp-link:hover { border-color: #b7bdc6; text-decoration: none; }
.exp-link .sc-cta { font-size: 12.5px; font-weight: 650; color: var(--pri); }
.exp-link:hover .sc-cta { color: var(--pri-deep); }

/* 실험 상세 — 스탯 타일 + 진행 게이지 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat .stat-label { font-size: 11px; font-weight: 650; color: var(--ink-3); letter-spacing: .02em; }
.stat .stat-value { font-size: 22px; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; }
.stat .stat-sub { font-size: 11.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }
.meter { height: 4px; border-radius: 9999px; background: var(--gray-bg); margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 9999px; background: var(--pri); }
.meter i.hot { background: var(--crit-tx, #b91c1c); }
.spec { margin-top: 14px; }
.spec:first-of-type { margin-top: 0; }
.spec-label { font-size: 11px; font-weight: 650; color: var(--ink-3); letter-spacing: .02em; margin-bottom: 5px; }
.spec-body { font-size: 13px; line-height: 1.7; color: var(--ink); }
.spec-body.dim { color: var(--ink-2); }
.spec.hi .spec-body { background: var(--gray-bg); border-radius: 8px; padding: 10px 13px; font-weight: 600; }
.queue-empty { border: 1px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center; color: var(--ink-3); font-size: 13px; }
.queue-empty b { color: var(--ink-2); }

/* ── 타임라인 ── */
.tl { display: grid; }
.tl-r { display: grid; grid-template-columns: 46px 14px 1fr; gap: 10px; align-items: start; padding: 7px 0; }
.tl-r time { font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-align: right; padding-top: 1px; }
.tl-r .nd { display: grid; justify-items: center; height: 100%; }
.tl-r .nd i { width: 8px; height: 8px; border-radius: 50%; background: #c9cdd3; margin-top: 5px; }
.tl-r .nd.hot i { background: var(--pri); }
.tl-r .nd::after { content: ""; width: 1px; flex: 1; background: var(--line); margin-top: 3px; min-height: 8px; }
.tl-r:last-child .nd::after { display: none; }
.tl-r p { font-size: 12.5px; color: var(--ink-2); }
.tl-r p b { color: var(--ink); }

/* ── 테이블 ── */
table.perf { width: 100%; border-collapse: collapse; font-size: 13px; }
table.perf th { font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.perf th:first-child { text-align: left; }
table.perf td { padding: 10px 8px; text-align: right; border-bottom: 1px solid #eef0f3; white-space: nowrap; }
table.perf td:first-child { text-align: left; font-weight: 650; }
table.perf tr:last-child td { border-bottom: 0; }
table.perf tr:hover td { background: #f7f7f7; }
.chart-box { margin-top: 12px; }
.chart-box svg { width: 100%; height: auto; display: block; }

/* ── 경쟁사 워치 ── */
.cw { display: grid; }
.cw-r { display: grid; grid-template-columns: 36px 1fr; gap: 11px; padding: 10px 6px; border-radius: 8px; align-items: start; }
.cw-r:hover { background: #f7f7f7; }
.cw-r + .cw-r { border-top: 1px solid #eef0f3; }
.cw-av { width: 36px; height: 36px; border-radius: 999px; background: var(--gray-bg); border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.cw-r h5 { font-size: 13px; font-weight: 700; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.cw-r h5 small { font-weight: 500; color: var(--ink-3); font-size: 11px; }
.cw-r p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.6; }
.cw-r p b { color: var(--ink); }

/* ── SEO 스코어 ── */
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.score { background: #f7f7f7; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.score .n { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); }
.score .v { font-size: 22px; font-weight: 700; margin-top: 2px; }
.score .g { height: 5px; border-radius: 3px; background: var(--gray-bg); margin-top: 8px; overflow: hidden; position: relative; }
.score .g b { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.score.good .g b { background: #05b169; }
.score.warn .g b { background: #eab308; }
.score.serious .g b { background: #f97316; }
.issues { display: grid; gap: 7px; }
.issues li { list-style: none; display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-2); align-items: baseline; }
.issues li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #eab308; flex: none; transform: translateY(-1px); }
.issues li.ok::before { background: #05b169; }
.issues li span { flex: 1; min-width: 0; line-height: 1.6; }
.issues li b { color: var(--ink); }

/* ── 랜딩 CRO ── */
.cro-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.ring { width: 62px; height: 62px; flex: none; border-radius: 50%; background: conic-gradient(var(--pri) 0 71%, var(--gray-bg) 71% 100%); display: grid; place-items: center; }
.ring i { width: 46px; height: 46px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-style: normal; font-size: 15px; font-weight: 700; }
.cro-top .m { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.cro-top .m b { color: var(--ink); }
.fixes { display: grid; gap: 7px; }
.fixes li { list-style: none; display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-2); align-items: baseline; }
.fixes li::before { content: "↳"; color: var(--pri); font-weight: 800; flex: none; }
.fixes li span { flex: 1; min-width: 0; line-height: 1.6; }
.fixes li b { color: var(--ink); }
.skill-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11px; font-weight: 600; color: var(--ai-tx); background: var(--ai-bg); border-radius: 999px; padding: 3px 10px; }

/* ── 리포트 ── */
.rep-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rep-head h2 { font-size: 15px; font-weight: 700; }
.rep-head .sub { font-size: 12px; color: var(--ink-3); }
.views { display: flex; gap: 6px; margin-left: auto; }
.vw { font-size: 12px; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px; color: var(--ink-2); background: var(--card); }
.vw.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rep-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rep { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: inherit; text-decoration: none; }
.rep:hover { border-color: #c7d2fe; box-shadow: 0 4px 12px rgba(10, 11, 13, .05); }
.rep .t { font-size: 13px; font-weight: 750; }
.rep .d { font-size: 11.5px; color: var(--ink-2); line-height: 1.6; margin-top: 5px; }
.rep .s { font-size: 11px; font-weight: 600; color: var(--ink-2); display: flex; gap: 6px; align-items: center; margin-top: 9px; }
.rep .s i { width: 6px; height: 6px; border-radius: 50%; background: #05b169; }

/* ── 주간 브리핑 ── */
.brief-line { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 14px; font-weight: 650; line-height: 1.65; margin-top: 18px; }
.brief-list { list-style: none; display: flex; flex-direction: column; }
.brief-list li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #eef0f3; font-size: 13px; }
.brief-list li:last-child { border-bottom: 0; }
.brief-list .t { font-weight: 650; }
.brief-list .t a { color: var(--ink); text-decoration: none; }
.brief-list .t a:hover { color: var(--pri); }
.brief-snippet { flex: 1; min-width: 0; color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brief-focus { list-style: none; counter-reset: focus; display: flex; flex-direction: column; }
.brief-focus li { counter-increment: focus; display: flex; gap: 10px; padding: 9px 2px; font-size: 13px; line-height: 1.6; border-bottom: 1px solid #eef0f3; }
.brief-focus li:last-child { border-bottom: 0; }
.brief-focus li::before { content: counter(focus); flex: 0 0 20px; height: 20px; border-radius: 999px; background: var(--ai-bg); color: var(--ai-tx); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }

/* ── 시작하기 체크리스트 ── */
.setup-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 18px; }
.setup-list li { display: flex; align-items: baseline; gap: 8px; padding: 6px 2px; font-size: 13px; }
.setup-list li i { flex: 0 0 17px; height: 17px; border-radius: 50%; border: 1.5px solid #c9cdd3; font-style: normal; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; align-self: center; color: #fff; }
.setup-list li.done i { background: #05b169; border-color: #05b169; }
.setup-list li a { color: var(--ink); font-weight: 650; text-decoration: none; }
.setup-list li a:hover { color: var(--pri); }
.setup-list li.done a { color: var(--ink-3); text-decoration: line-through; font-weight: 500; }
.setup-list li small { color: var(--ink-3); font-size: 11.5px; }
.setup-list li.done small { display: none; }

.foot-note { margin-top: 22px; font-size: 11px; color: var(--ink-3); }

/* ── 데이터 연동 가이드 (공개 페이지) ── */
.gd { display: flex; flex-direction: column; gap: 16px; }
.gd-head h1 { font-size: 22px; font-weight: 650; letter-spacing: -0.5px; margin-top: 10px; }
.gd-head p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin-top: 8px; }
.gd-note { background: #f6fcf8; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 13px; }
.gd-note ul { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 5px; color: var(--ink-2); line-height: 1.65; }
.gd-mail { background: #0a0b0d; border-radius: 12px; padding: 16px 18px; }
.gd-mail .l { font-size: 11.5px; font-weight: 700; color: #8a919e; }
.gd-mail .row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.gd-mail code { font-size: 14.5px; font-weight: 700; color: #fff; word-break: break-all; }
.gd-mail .row.wait code { color: #cbd5e1; font-weight: 600; }
.gd-step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.gd-step h2 { font-size: 15px; font-weight: 700; display: flex; align-items: center; }
.gd-step h2 i { font-style: normal; width: 22px; height: 22px; border-radius: 999px; background: var(--ai-bg); color: var(--ai-tx); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; flex: 0 0 22px; }
.gd-step ol { margin: 10px 0 0 18px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.gd-step code { background: var(--gray-bg); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.gd-tip { margin-top: 10px; font-size: 12px; color: var(--ink-3); background: var(--gray-bg); border-radius: 8px; padding: 8px 12px; line-height: 1.6; }
.gd-faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.gd-faq h2 { font-size: 15px; font-weight: 700; }
.gd-faq details { border-bottom: 1px solid #eef0f3; padding: 9px 2px; }
.gd-faq details:last-child { border-bottom: 0; }
.gd-faq summary { font-size: 13px; font-weight: 650; cursor: pointer; }
.gd-faq details p { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin-top: 7px; }
.gd-foot { font-size: 11.5px; color: var(--ink-3); text-align: center; padding: 8px 0 20px; }

/* ── 순수 CSS 툴팁 (data-tip) ── */
.tip { position: relative; cursor: help; }
.tip:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); right: 0; z-index: 30;
  width: 320px; background: #0a0b0d; color: #f1f5f9; font-size: 11.5px; font-weight: 500;
  line-height: 1.65; padding: 9px 12px; border-radius: 8px; white-space: normal; text-align: left;
  box-shadow: 0 8px 24px rgba(10, 11, 13, .3);
}
.tip:hover::before {
  content: ""; position: absolute; bottom: calc(100% + 3px); right: 14px; z-index: 30;
  border: 5px solid transparent; border-top-color: #0a0b0d;
}
/* 왼쪽 정렬 변형 — 화면 왼편 요소(KPI 타일 라벨 등)용 */
.tip.tip-left:hover::after { right: auto; left: 0; }
.tip.tip-left:hover::before { right: auto; left: 14px; }
/* 아래로 여는 변형 — 페이지 상단 요소는 위로 열면 뷰포트 밖으로 잘린다 */
.tip.tip-down:hover::after { bottom: auto; top: calc(100% + 8px); }
.tip.tip-down:hover::before { bottom: auto; top: calc(100% + 3px); border-top-color: transparent; border-bottom-color: #0a0b0d; }
/* 테이블 헤더 툴팁은 항상 아래로 — 래퍼의 overflow-x:auto가 위쪽을 클리핑한다(2026-07-15 전략 상태 보드 실측) */
thead .tip:hover::after { bottom: auto; top: calc(100% + 8px); }
thead .tip:hover::before { bottom: auto; top: calc(100% + 3px); border-top-color: transparent; border-bottom-color: #0a0b0d; }

/* ── 온보딩 ── */
.ob-body { background: var(--bg); }
.ob-shell { max-width: 760px; margin: 0 auto; padding: 30px 20px 60px; }
.ob-top { display: flex; gap: 10px; align-items: center; padding-bottom: 18px; }
.ob-top b { font-size: 15px; display: block; line-height: 1.2; }
.ob-top small { font-size: 10px; letter-spacing: .12em; color: var(--ink-3); font-weight: 700; }
.flash { border-radius: 12px; padding: 11px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.flash.alert { background: var(--crit-bg); color: var(--crit-tx); }
.flash.notice { background: var(--good-bg); color: var(--good-tx); }
.ob-hero { text-align: center; padding: 46px 0 26px; }
.ob-hero h1 { font-size: 26px; font-weight: 650; letter-spacing: -0.6px; }
.ob-hero p { color: var(--ink-2); margin-top: 10px; line-height: 1.7; }
.ob-url-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.ob-url-input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 15px; font-family: inherit; background: var(--card); }
.ob-url-input:focus { outline: 2px solid var(--pri); border-color: var(--pri); }
.ob-url-btn { padding: 12px 24px; font-size: 14px; border-radius: 999px; }
.ob-steps { display: flex; gap: 10px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.ob-step { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.ob-step b { color: var(--pri-deep); margin-right: 4px; }
.ob-manual { text-align: center; margin-top: 26px; font-size: 12.5px; color: var(--ink-3); }
.ob-form-head { padding: 8px 0 16px; }
.ob-form-head h1 { font-size: 22px; font-weight: 650; letter-spacing: -0.5px; }
.ai-note { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ai-tx); background: var(--ai-bg); border-radius: 8px; padding: 9px 13px; }
.ob-form { display: grid; gap: 14px; }
.ob-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.sec-t { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.sec-d { font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
/* ── 폼 컨트롤 전역 (디자인 시스템) — .field 밖 인라인 셀렉트·인풋도 같은 모습 ── */
input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="time"], input[type="number"], input[type="search"], input[type="url"],
select, textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px;
  font-size: 13.5px; font-family: inherit; font-weight: 500; color: var(--ink); background-color: #fff;
}
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
  outline: 2px solid rgba(59, 130, 246, .5); border-color: var(--pri);
}
textarea { resize: vertical; line-height: 1.6; }
select { /* 네이티브 화살표 → 헤어라인 톤 쉐브론 */
  appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b616e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 12px;
}

.field { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 11px; }
.field .hint { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="date"],
.field input[type="time"], .field input[type="number"], .field select, .field textarea {
  display: block; width: 100%; margin-top: 5px;
}
.field-grid { display: grid; gap: 0 12px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.field-grid.three { grid-template-columns: 1fr 1fr 1.4fr; }
.field-grid.four { grid-template-columns: 1.4fr .8fr 1fr .5fr; }
.field-grid.tight { grid-column: span 1; }
.radio-field { text-align: center; }
.radio-field input { margin-top: 12px; width: 17px; height: 17px; accent-color: var(--pri); }
.check-list { display: grid; gap: 6px; margin-bottom: 12px; }
.check-row { display: flex; gap: 9px; align-items: center; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; cursor: pointer; }
.check-row:hover { background: #f7f7f7; }
.check-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--pri); }
.check-row b { font-weight: 700; }
.check-row .mono { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guardrail-preview {
  display: flex; gap: 20px; flex-wrap: wrap; background: var(--info-bg); border-radius: 9px;
  padding: 11px 14px; font-size: 12.5px; color: var(--ink-2); margin: 2px 0 13px;
}
.guardrail-preview b { color: var(--pri-deep); font-weight: 800; margin-left: 5px; }
.ob-submit { display: flex; gap: 10px; align-items: center; padding: 6px 0 30px; }
.ob-submit-btn { padding: 11px 28px; font-size: 14px; border-radius: 999px; }
.hint { font-size: 11.5px; color: var(--ink-3); }

/* ── 인증 화면 ── */
.auth-hero { padding: 40px 0 20px; }
.auth-card { max-width: 420px; margin: 0 auto; }
.auth-btn { width: 100%; margin-top: 4px; }
.auth-links { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.otp-input { font-size: 22px !important; letter-spacing: .4em; text-align: center; font-weight: 800; }
.dev-hint { margin-top: 14px; font-size: 12px; color: var(--warn-tx); background: var(--warn-bg); border-radius: 8px; padding: 8px 12px; text-align: center; }
.side-user { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.logout-btn {
  background: none; border: 1px solid rgba(255,255,255,.15); color: var(--side-muted);
  border-radius: 8px; width: 30px; height: 30px; padding: 0; flex: none;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.logout-btn svg { width: 15px; height: 15px; }
.logout-btn:hover { color: #e2e8f0; border-color: rgba(255,255,255,.3); }
.conn-row i.wait { background: #fbbf24; }

/* ── 데이터 연동 (온보딩) ── */
.conn-modes { display: grid; gap: 10px; margin-top: 4px; }
.conn-mode { display: grid; grid-template-columns: 20px 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 500; }
.conn-mode:hover { background: #f7f7f7; }
.conn-mode input[type="radio"] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--pri); }
.conn-mode b { font-size: 13px; font-weight: 750; }
.conn-mode p { font-size: 12px; color: var(--ink-2); margin-top: 3px; line-height: 1.6; }
.conn-mode .collector-mail { display: block; margin-top: 7px; font-size: 11.5px; background: var(--gray-bg); border-radius: 6px; padding: 6px 9px; color: var(--ink); word-break: break-all; }
.conn-mode input[type="text"] { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 13px; font-family: inherit; }
/* 시스템 설정 — 라디오 옵션 한 줄 배치(제목·설명·입력 필드) */
.conn-mode .mode-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.conn-mode .mode-desc { font-size: 12px; color: var(--ink-2); }
.conn-mode .mode-field { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.collector-account { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 스타일가이드(디자인 시스템 카탈로그) */
.sg-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sg-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sg-swatch i { display: block; height: 34px; border-radius: 8px; border: 1px solid var(--line); }
.sg-swatch b { display: block; font-size: 11px; margin-top: 5px; }
.sg-swatch small { font-size: 10.5px; color: var(--ink-3); }

/* ── 데이터 탐색 · 수집 적재 ── */
.filter-bar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 6px; }
.filter-bar .field { margin-bottom: 0; min-width: 130px; }
/* 컨트롤 높이 통일(38px) — select·날짜·버튼·프리셋이 제각각이던 정렬 보정 */
.filter-bar .field select { height: 38px; }
.filter-bar input[type="date"] {
  /* display:flex — Safari date 입력이 height만 주면 글자를 위로 붙이는 문제의 표준 해법 */
  display: flex; align-items: center; width: 100%; height: 38px; margin-top: 5px;
  border: 1px solid var(--line); border-radius: 10px; padding: 0 11px;
  font-size: 13.5px; font-family: inherit; font-weight: 500; color: var(--ink);
}
.filter-bar .btn { height: 38px; }
.presets { display: flex; gap: 6px; align-items: center; }
.presets a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 15px;
  font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2);
}
.presets a:hover { border-color: var(--pri); color: var(--pri-deep); text-decoration: none; }
/* 차트 포인트 — 평소엔 숨김, 호버 시 점 표시 (title 툴팁과 함께) */
.chart-box svg { cursor: crosshair; }

/* ── 차트 크로스헤어 툴팁 (chart_hover 컨트롤러) ── */
.chart-hover { position: relative; }
.ch-guide { stroke: #8a919e; stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.ch-dot { fill: #fff; stroke-width: 2; pointer-events: none; }
.ch-tip {
  position: absolute; z-index: 30; pointer-events: none;
  background: #0a0b0d; color: #f8fafc; border-radius: 9px;
  padding: 7px 11px; font-size: 12px; line-height: 1.55; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(10, 11, 13, .22);
}
.ch-tip .ch-date { display: block; font-size: 11px; color: #cbd5e1; font-weight: 750; margin-bottom: 2px; }
.ch-tip .ch-row { display: flex; align-items: center; gap: 6px; }
.ch-tip .ch-row b { margin-left: auto; padding-left: 10px; font-variant-numeric: tabular-nums; }
.ch-tip .ch-row i { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.legend-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.legend-item i { display: inline-block; width: 13px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.empty-note { color: var(--ink-3); font-size: 13px; padding: 28px 0; text-align: center; }
.mono-area { font-family: ui-monospace, "SF Mono", Menlo, monospace !important; font-size: 12px !important; line-height: 1.7; white-space: pre; }
.import-help { margin-top: 14px; font-size: 12px; color: var(--ink-2); background: var(--gray-bg); border-radius: 9px; padding: 11px 14px; line-height: 1.8; }
.import-help code { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 11px; }
.result-line { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── 멤버십 · 역할 ── */
.role-pill {
  font-size: 9.5px; font-weight: 800; letter-spacing: .02em; color: #bfdbfe;
  background: rgba(59,130,246,.22); border-radius: 999px; padding: 1px 7px;
  white-space: nowrap; flex: none;
}
.role-form { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.role-form select {
  border: 1px solid var(--line); border-radius: 10px; padding: 5px 9px;
  font-size: 12.5px; font-family: inherit; font-weight: 500; color: var(--ink); background: #fff;
}
.role-form select:focus { outline: 2px solid rgba(59,130,246,.5); border-color: var(--pri); }
.members-tbl td { vertical-align: middle; }

/* ── 반응형 ── */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .rep-grid { grid-template-columns: repeat(2, 1fr); }
}
/* 모바일 네비 부품 — 데스크톱에선 전부 숨김 */
.mnav-check, .m-topbar, .m-scrim { display: none; }

@media (max-width: 800px) {
  /* 상단바 + 햄버거 */
  .m-topbar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30;
    background: var(--side-bg); color: #f1f5f9; padding: 12px 16px; font-size: 15px;
  }
  .m-topbar .m-sub { font-size: 9.5px; letter-spacing: .14em; color: var(--side-muted); font-weight: 700; }
  .m-burger { font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; }
  .m-bell { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--side-ink); padding: 2px 4px; }
  .m-bell:hover { text-decoration: none; }

  /* 사이드바 → 왼쪽 드로어 (토글 시 슬라이드 인) */
  .sidebar {
    transform: translateX(-100%); transition: transform .22s ease;
    z-index: 40; box-shadow: 24px 0 60px rgba(0,0,0,.35);
  }
  .mnav-check:checked ~ .sidebar { transform: translateX(0); }
  .m-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(10,11,13,.5); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
  .mnav-check:checked ~ .m-scrim { display: block; opacity: 1; pointer-events: auto; }

  .main { margin-left: 0; padding: 18px 14px 40px; overflow-x: hidden; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  /* 가로 넘침 방어 — 넓은 표는 카드 안에서만 스크롤, 폼 요소는 화면 폭 이내 */
  .card, .ob-card, .exp-card { overflow-x: auto; }
  input, select, textarea { max-width: 100%; }
  .tip:hover::after { width: min(320px, 82vw); }
  .page-head h1 { font-size: 18px; }
  .field-grid.two, .field-grid.three, .field-grid.four { grid-template-columns: 1fr; }
  .exp-meta { gap: 14px; }
  table.perf { font-size: 12.5px; }
}

/* ── 경쟁사 페이지 뷰어 (scrapi 마크다운 렌더) ── */
.md-body { max-width: 820px; font-size: 14px; line-height: 1.85; color: var(--ink); }
.md-body h2, .md-body h3, .md-body h4, .md-body h5 { margin: 22px 0 8px; line-height: 1.4; color: var(--ink); }
.md-body h2 { font-size: 17px; } .md-body h3 { font-size: 15.5px; } .md-body h4, .md-body h5 { font-size: 14px; }
.md-body p { margin: 0 0 12px; }
.md-body ul, .md-body ol { margin: 0 0 12px; padding-left: 22px; }
.md-body li { margin-bottom: 4px; }
.md-body img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); margin: 6px 0; }
.md-body a { color: var(--pri); text-decoration: none; }
.md-body a:hover { text-decoration: underline; }
.md-body blockquote { margin: 0 0 12px; padding: 9px 14px; color: var(--ink-soft); background: var(--gray-bg); border-radius: 8px; }
.md-body hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.md-body code { background: var(--gray-bg); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; }
.md-table { overflow-x: auto; margin: 0 0 12px; }
.md-table table { border-collapse: collapse; font-size: 13px; min-width: 50%; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.md-table th { background: var(--gray-bg); font-weight: 700; }

/* ── busy 버튼 (긴 동기 요청 제출 피드백) ── */
.busy-spin {
  display: inline-block; width: 13px; height: 13px; margin-right: 7px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
  animation: busy-rotate .7s linear infinite;
}
.btn:not(.pri) .busy-spin { border-color: #c9cdd3; border-top-color: #5b616e; }
.btn.is-busy { opacity: .75; cursor: progress; pointer-events: none; }
@keyframes busy-rotate { to { transform: rotate(360deg); } }

/* ── 데이터 탐색 미리보기 그리드 ── */
.ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ov-card { display: block; color: inherit; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
.ov-card:hover { border-color: #c7d2fe; box-shadow: 0 4px 14px rgba(10, 11, 13, .06); }
.ov-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.ov-head span { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.ov-head b { font-size: 17px; font-weight: 700; color: var(--ink); }
@media (max-width: 1100px) { .ov-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .ov-grid { grid-template-columns: 1fr; } }

/* ── KPI 타일 링크화 (클릭 → 근거 페이지) ── */
a.stat { display: block; color: inherit; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
a.stat:hover { border-color: #c7d2fe; box-shadow: 0 4px 14px rgba(10, 11, 13, .06); }

/* ── 축별 세부 점검 체크리스트 ── */
.axis-checks { display: grid; gap: 10px; }
.axis-check { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.axis-check.fail { border-color: #fecaca; background: #fff8f8; }
.ac-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ac-head .r { margin-left: auto; color: var(--ink-3); font-weight: 700; }
.ac-detail { font-size: 12px; color: var(--ink-2); margin-top: 5px; }
.ac-fix { font-size: 12px; color: #b45309; margin-top: 4px; font-weight: 600; }
a.score { display: block; color: inherit; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
a.score:hover { border-color: #c7d2fe; box-shadow: 0 4px 12px rgba(10, 11, 13, .06); }
.score-more { font-size: 10px; font-weight: 700; color: var(--pri); float: right; }

/* ── 사이드바 접이식 서브메뉴 (details/summary — JS 불필요) ── */
.nav-fold summary { list-style: none; cursor: pointer; user-select: none; }
.nav-fold summary::-webkit-details-marker { display: none; }
.nav-caret {
  margin-left: auto; width: 7px; height: 7px; flex: none;
  border-right: 1.5px solid var(--side-muted); border-bottom: 1.5px solid var(--side-muted);
  transform: rotate(-45deg); transition: transform .15s;
}
.nav-fold[open] .nav-caret { transform: rotate(45deg); }
.nav-fold.closing .nav-caret { transform: rotate(-45deg); } /* 닫힘 애니메이션 중 캐럿 먼저 복귀 */
.nav-subitems { margin: 2px 0 4px; }
.nav-item.sub { padding: 6px 10px 6px 24px; font-size: 12.5px; font-weight: 550; color: var(--side-muted); }
.nav-item.sub:hover { color: var(--side-ink); }
.nav-item.sub.active { color: #bfdbfe; }

/* ── 테이블 헤더 정렬 (table_sort 컨트롤러) ── */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
th.sortable::after { content: "↕"; margin-left: 4px; font-size: 9px; color: var(--ink-3); opacity: .55; }
th.sortable.sort-desc::after { content: "▼"; color: var(--pri); opacity: 1; }
th.sortable.sort-asc::after { content: "▲"; color: var(--pri); opacity: 1; }

/* ── 데일리 전략 리포트 ── */
.stats.four { grid-template-columns: repeat(4, 1fr); }
.dr-recent { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.dr-recent .lbl { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); }
.dr-recent a { font-size: 11.5px; font-weight: 650; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; color: var(--ink-2); }
.dr-recent a:hover { border-color: var(--pri); color: var(--pri-deep); text-decoration: none; }
.dr-recent a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dr-cmt td { padding: 0 8px 11px; }
.dr-cmt .c { font-size: 12px; color: var(--ink-2); line-height: 1.6; background: #f7f7f7; border-radius: 6px; padding: 7px 11px; }
.dr-cmt .c b { color: var(--ink); }
.dr-props { display: grid; gap: 14px; }
.dr-prop { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; }
/* 상태 구분은 kicker 뱃지로 — 좌보더 액센트는 디자인 금지 규칙(2026-07-14) */
.dr-prop .kicker { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ai-tx); margin-bottom: 4px; }
.dr-prop h3 { font-size: 15px; font-weight: 750; line-height: 1.4; letter-spacing: -.01em; }
.dr-ev { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dr-ev span { font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--gray-bg); border-radius: 5px; padding: 2px 8px; }
.dr-rows { display: grid; gap: 9px; margin-top: 13px; }
.dr-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: 12.5px; line-height: 1.62; align-items: start; }
.dr-row .k { font-weight: 700; color: var(--ink-3); font-size: 10.5px; letter-spacing: .05em; padding-top: 2px; }
.dr-row .v { color: var(--ink-2); }
.dr-row .v b { color: var(--ink); }
.dr-act { display: flex; gap: 8px; margin-top: 14px; align-items: center; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid #eef0f3; }
.dr-act .gov { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.dr-strategy { background: #fbfaff; border: 1px solid #ede9fe; border-radius: 12px; padding: 16px 18px; }
.dr-strategy h3 { font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.dr-strategy .hyp { font-size: 13px; color: var(--ink-2); margin-top: 6px; line-height: 1.65; }
.dr-exp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 20px; margin-top: 12px; font-size: 12.5px; }
.dr-exp .k { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: var(--ai-tx); }
.dr-exp .v { color: var(--ink); font-weight: 600; margin-top: 1px; }
.dr-act-list { display: grid; }
.dr-basis { background: #f7f7f7; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-top: 16px; font-size: 12px; color: var(--ink-2); line-height: 1.8; }
.dr-basis b { color: var(--ink); }
.dr-basis .h { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--ink-3); display: block; margin-bottom: 4px; }
.chart-stack { display: grid; gap: 14px; }
.chart-cap { font-size: 11.5px; font-weight: 700; color: var(--ink-3); margin-bottom: 2px; }
@media (max-width: 800px) { .stats.four { grid-template-columns: repeat(2, 1fr); } .dr-exp { grid-template-columns: 1fr; } }

/* ── 데일리 리포트: 진행 중 실험·전략 타임라인·캡 게이지 (위계는 배경 틴트·pill — 좌보더 액센트 금지) ── */
.dr-cap-note { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; white-space: normal; max-width: 240px; margin-left: auto; }
.dr-exp-list { display: grid; gap: 12px; }
.dr-exp-row { background: #fbfaff; border: 1px solid #ede9fe; border-radius: 12px; padding: 14px 16px; }
.dr-exp-row .t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dr-exp-row .t b { font-size: 13.5px; font-weight: 750; letter-spacing: -.01em; }
.dr-exp-row .t small { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.dr-exp-row .hyp { font-size: 12.5px; color: var(--ink-2); line-height: 1.62; margin-top: 6px; }
.cap-gauge { height: 6px; border-radius: 4px; background: #ede9fe; margin-top: 10px; overflow: hidden; }
.cap-gauge i { display: block; height: 100%; border-radius: 4px; background: var(--ai-tx); }
.cap-gauge i.hot { background: var(--crit-tx); }
.cap-lbl { font-size: 11.5px; color: var(--ink-2); margin-top: 5px; }
.cap-lbl b { color: var(--ink); }
.dr-exp-row .go { font-size: 12px; color: var(--ink-2); margin-top: 9px; line-height: 1.6; }
.dr-exp-row .go .k { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; color: var(--ai-tx); margin-right: 7px; }
.dr-tl { display: grid; }
.dr-tl-r { display: grid; grid-template-columns: 40px 62px 1fr; gap: 10px; align-items: start; padding: 9px 2px; border-bottom: 1px solid #eef0f3; }
.dr-tl-r:last-child { border-bottom: none; }
.dr-tl-r time { font-size: 11.5px; color: var(--ink-3); font-weight: 700; text-align: right; padding-top: 2px; }
.dr-tl-r .pill { justify-self: start; margin-top: 1px; }
.dr-tl-r .bd b { font-size: 12.5px; font-weight: 700; }
.dr-tl-r .bd small { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.dr-tl-r .bd p { font-size: 12px; color: var(--ink-2); line-height: 1.6; margin-top: 2px; }

/* 인쇄/PDF — 과한 배경 없이 컨설팅 리포트로 (배경색 최소).
   버튼·폼만 숨기고 제안의 상태 pill·각주는 남긴다 — PDF에서도 승인/보류 상태가 보이게.
   분할 방지는 "작은 단위"에만 건다 — 섹션·카드 전체에 걸면 반 페이지 공백이 생긴다. */
@media print {
  .sidebar { display: none; }
  .main { margin-left: 0; max-width: none; padding: 0 6px; }
  .page-head .btn, .page-head form, .dr-act .btn, .dr-act form, .dr-recent, .flash { display: none; }
  .stat, .dr-prop, .dr-strategy, .dr-basis, .dr-exp-row, .dr-tl-r, .cw-r, .tl-r,
  table.perf tr, .card-h, .chart-box { break-inside: avoid; }
  .card, section { box-shadow: none; }
  .brief-line, .dr-strategy, .dr-exp-row { background: #fff; }
  .cap-gauge, .cap-gauge i, .pill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  /* A4 폭에서 상태 보드 표가 잘리지 않게 — 셀 줄바꿈 허용 + 폰트 축소 (overflow-x는 인쇄에서 무력) */
  table.perf { font-size: 11px; }
  table.perf th, table.perf td { white-space: normal; padding: 6px 6px; }
  .dr-board td:first-child { word-break: break-all; }   /* 캠페인명(언더스코어 연결) 강제 개행 */
  .dr-cap-note { max-width: none; }
}

/* ── 온보딩 사업 모델 카드 ── */
.bm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bm-card { display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 13px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.bm-card:hover { border-color: #c7d2fe; }
.bm-card:has(input:checked) { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.bm-card input { position: absolute; opacity: 0; pointer-events: none; }
.bm-body b { display: block; font-size: 13.5px; font-weight: 750; margin-bottom: 4px; }
.bm-body small { display: block; font-size: 11.5px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 900px) { .bm-grid { grid-template-columns: 1fr; } }

/* 제안 카드 상태 pill — 좌보더 대신 의미 색상 전달 */
.dr-prop .kicker .pill { margin-left: 7px; font-size: 10.5px; padding: 1px 8px; vertical-align: 1px; }

/* ── 전략 로그 페이지 ── */
.sl-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.sl-filters .pill { text-decoration: none; padding: 3px 10px; font-size: 11.5px; }
.sl-src { display: block; margin-top: 3px; color: var(--ink-3); font-size: 11px; }

/* ── 캠페인 설정 조회 (campaigns#settings — Google Ads 실시간, 5분 캐시) ── */
.ads-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; }
.ads-kv .k { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: var(--ink-3); }
.ads-kv .v { font-size: 15px; font-weight: 750; color: var(--ink); margin-top: 3px; }
.ads-net { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef0f3; }
.ads-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef0f3; }
.ads-block h4 { font-size: 12px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.ads-desc-list { list-style: none; display: grid; gap: 5px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 900px) { .ads-kv { grid-template-columns: 1fr 1fr; } }

/* ── 알림함 (/notifications) — 미읽음은 배경 틴트로 구분 (좌측 보더 액센트 금지 원칙) ── */
.notif-list { display: flex; flex-direction: column; gap: 4px; }
.notif-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px;
  border-radius: 10px; color: inherit;
}
.notif-row:hover { background: var(--gray-bg); text-decoration: none; }
.notif-row.unread { background: var(--info-bg); }
.notif-row.unread:hover { background: #e3effd; }
.notif-row .pill { flex: none; margin-top: 1px; }
.notif-main { flex: 1; min-width: 0; }
.notif-main b { font-size: 13.5px; color: var(--ink); }
.notif-main p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.notif-time { flex: none; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; }

/* Turbo 페이지 전환 진행 바 — 로딩 중임이 확실히 보이게 */
.turbo-progress-bar { height: 3px; background: var(--pri); box-shadow: 0 0 8px rgba(37, 99, 235, .55); }


/* 🎓 설명 다이얼로그 + 트리거 */
.explain-trigger {
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 11px; line-height: 1;
  padding: 3px 9px; border-radius: 9999px; vertical-align: baseline; font-weight: 650; color: var(--ai-tx);
}
.explain-trigger::after { content: " 설명"; } /* 🎓 단독 이모지는 발견성이 낮다 — 전 트리거 일괄 라벨 */
.explain-trigger:hover { background: var(--ai-bg); border-color: var(--ai-tx); }
.explain-dialog {
  border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 32px));
  box-shadow: 0 24px 80px rgba(10, 11, 13, .3); margin: auto;
}
.explain-dialog::backdrop { background: rgba(10, 11, 13, .45); }
.explain-dialog .ed-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.explain-dialog .ed-close {
  border: 0; background: var(--gray-bg); cursor: pointer; border-radius: 8px;
  width: 26px; height: 26px; font-size: 12px; color: var(--ink-2);
}
.explain-dialog .ed-body {
  padding: 16px 18px; font-size: 13.2px; line-height: 1.8; color: var(--ink-1);
  max-height: 62vh; overflow-y: auto;
}
.explain-dialog .ed-body p { margin: 0 0 10px; }
.explain-dialog .ed-body p:last-child { margin-bottom: 0; }
.explain-dialog .ed-body ul, .explain-dialog .ed-body ol { margin: 0 0 10px 18px; }
.explain-dialog .ed-body li { margin: 3px 0; }
.explain-dialog .ed-body b { color: var(--ink-1); }
.explain-dialog .ed-body h3, .explain-dialog .ed-body h4, .explain-dialog .ed-body h5 {
  font-size: 13.5px; margin: 12px 0 6px;
}
.explain-dialog .ed-foot {
  padding: 10px 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.explain-dialog .ed-levels { display: inline-flex; gap: 4px; }
.explain-dialog .ed-level {
  border: 1px solid var(--line); background: #fff; border-radius: 9999px; padding: 4px 11px;
  font-size: 11px; font-weight: 650; color: var(--ink-2); cursor: pointer;
}
.explain-dialog .ed-level:hover { border-color: var(--ai-tx); }
.explain-dialog .ed-level.on { background: var(--ai-bg); color: var(--ai-tx); border-color: var(--ai-tx); }
.explain-dialog .ed-set { margin-left: auto; font-size: 11px; }

/* 컴퍼니 프로파일 문서 타이포 */
.md-doc { font-size: 13.5px; line-height: 1.85; color: var(--ink-1); }
.md-doc h1 { font-size: 19px; margin: 4px 0 14px; }
.md-doc h2 { font-size: 15px; margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.md-doc h3 { font-size: 13.5px; margin: 14px 0 6px; }
.md-doc p { margin: 8px 0; }
.md-doc ul, .md-doc ol { margin: 8px 0 8px 20px; }
.md-doc li { margin: 4px 0; }
.md-doc table { border-collapse: collapse; margin: 10px 0; font-size: 12.8px; }
.md-doc th, .md-doc td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.md-doc th { background: var(--gray-bg); }

/* 전환 목표 — 주 목표 선택 칩 + 선택 행 틴트 */
.goal-row { border-radius: 10px; padding: 10px 12px; margin: 0 -12px; }
.goal-row:has(.goal-primary input:checked) { background: var(--ai-bg); }
.goal-primary { cursor: pointer; }
.goal-primary .gp-slot { visibility: hidden; display: block; } /* 라벨 줄 자리만 차지 */
.goal-primary input { position: absolute; opacity: 0; pointer-events: none; }
.gp-chip {
  /* 다른 필드의 input과 같은 배치 규칙(margin-top 5px·높이 동일) — 입력창 라인에 정확히 정렬 */
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap;
  margin-top: 5px; box-sizing: border-box; height: 34px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-3);
  border-radius: 999px; padding: 0 16px; font-size: 12px; font-weight: 700; transition: all .15s ease;
}
.gp-chip::before { content: "○"; font-size: 11px; }
.goal-primary:hover .gp-chip { border-color: var(--pri); color: var(--pri); }
.goal-primary input:checked + .gp-chip {
  background: var(--pri); border-color: var(--pri); color: #fff;
}
.goal-primary input:checked + .gp-chip::before { content: "★"; }
.goal-primary input:focus-visible + .gp-chip { outline: 2px solid var(--pri); outline-offset: 2px; }

/* ── AI 전략 카드: 프리미엄 카드 팩 스킨 (대표 지시 2026-07-15 — 가끔 나오는 귀한 카드의 연출) ──
   전부 CSS: 다크 카드 + 그라디언트 프레임 + 홀로 시머 + 순차 등장. 이미지·JS 없음. */
.strategy-card {
  position: relative; overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(155deg, #101828 0%, #0b1220 55%, #111a2e 100%) padding-box,
    linear-gradient(135deg, #3b82f6 0%, #7c5cf6 45%, #22d3ee 100%) border-box;
  color: #e5eaf3;
  box-shadow: 0 10px 26px rgba(10, 18, 36, .28);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: card-reveal .55s cubic-bezier(.2, .7, .25, 1.1) backwards;
}
.strategy-card:nth-child(2) { animation-delay: .12s; }
.strategy-card:nth-child(3) { animation-delay: .24s; }
@keyframes card-reveal {
  from { opacity: 0; transform: perspective(700px) rotateY(14deg) translateY(14px); }
  to { opacity: 1; transform: perspective(700px) rotateY(0) translateY(0); }
}
/* 홀로 시머 — 등장 직후 1회 스윕, 호버 시 재생 */
.strategy-card::before {
  content: ""; position: absolute; inset: -60% auto -60% -40%; width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.13) 45%, rgba(120,180,255,.22) 50%, transparent 60%);
  transform: skewX(-18deg) translateX(-140%);
  animation: holo-sweep 1.1s ease-out .45s 1;
  pointer-events: none;
}
.strategy-card:hover::before { animation: holo-sweep .9s ease-out 1; }
@keyframes holo-sweep { to { transform: skewX(-18deg) translateX(560%); } }
.strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(37, 99, 235, .32), 0 0 0 1px rgba(124, 92, 246, .25);
  border-color: transparent;
}
/* 다크 카드 위 내부 요소 톤 */
.strategy-card .kicker {
  background: linear-gradient(90deg, #93c5fd, #c4b5fd); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 800; letter-spacing: .08em;
}
.strategy-card h3 { color: #f4f7fc; }
.strategy-card .sc-why { color: #aab6cc; }
.strategy-card .draft-facts .fact {
  background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); color: #cdd7e8;
}
.strategy-card .pill.warn { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.strategy-card .sc-cta { color: #7cb3ff; }
.strategy-card:hover .sc-cta { color: #a5cbff; }
/* 커서 추적 스포트라이트 — spotlight 컨트롤러가 --mx/--my만 갱신 */
.strategy-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              rgba(147, 197, 253, .16), rgba(124, 92, 246, .07) 45%, transparent 65%);
  opacity: 0; transition: opacity .25s ease;
}
.strategy-card:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .strategy-card, .strategy-card::before { animation: none; }
}

/* ── 리포트 발행물 히어로 — 데일리/주간의 최신 호 (전략 카드=홀로 팩, 리포트=프리미엄 지면) ── */
.pub-hero {
  position: relative; display: block; overflow: hidden; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px;
  background: linear-gradient(160deg, #f6f9ff 0%, #ffffff 46%, #f7f5ff 100%);
  box-shadow: 0 8px 26px rgba(15, 23, 42, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}
.pub-hero:hover { text-decoration: none; transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, .16); }
.pub-hero .ph-ribbon { height: 4px;
  background: linear-gradient(90deg, #3b82f6, #7c5cf6 55%, #22d3ee); }
.pub-hero.weekly .ph-ribbon { background: linear-gradient(90deg, #7c5cf6, #d946ef 60%, #3b82f6); }
.pub-hero .ph-body { padding: 20px 24px 18px; }
.pub-hero .ph-over { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; color: var(--pri); }
.pub-hero.weekly .ph-over { color: #7c5cf6; }
.pub-hero .ph-date { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-top: 7px; }
.pub-hero .ph-date span { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-left: 4px; }
.pub-hero .ph-headline {
  font-size: 14.5px; line-height: 1.7; color: var(--ink-1); margin-top: 9px; max-width: 860px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pub-hero .ph-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.pub-hero .ph-meta .fact { font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 9999px; padding: 3px 11px; }
.pub-hero .ph-cta { margin-left: auto; font-size: 13px; font-weight: 750; color: var(--pri); }
.pub-hero:hover .ph-cta { color: var(--pri-deep); }

/* 새 알림 토스트 — ActionCable 브로드캐스트가 우하단 스택에 append, 8초 후 자동 소멸 */
.notif-toasts {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.notif-toast {
  max-width: 360px; display: grid; gap: 3px; text-decoration: none;
  background: linear-gradient(160deg, #101828, #0b1220); color: #e5eaf3;
  border: 1px solid rgba(124, 92, 246, .45); border-radius: 12px; padding: 13px 16px;
  box-shadow: 0 16px 44px rgba(10, 18, 36, .4);
  transform: translateY(14px); opacity: 0; transition: transform .25s ease, opacity .25s ease;
}
.notif-toast.show { transform: translateY(0); opacity: 1; }
.notif-toast b { font-size: 13px; line-height: 1.5; }
.notif-toast span { font-size: 11.5px; color: #9aa8c2; }
.notif-toast:hover { text-decoration: none; border-color: rgba(147, 197, 253, .6); }
