/**
 * nurimap app — 공유 컴포넌트 스타일 (v4 디자인 톤)
 * 01-landing-v4.html 의 "ENVI 톤 — mint + cool grid B2B SaaS" 디자인을
 * 앱(app.nurimap.com) 화면 공용으로 추출. 단독 적용 — tokens.css 불필요.
 *   <link rel="stylesheet" href="../app.css">
 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --bg:            #F7FAFB;
  --bg-sub:        #F0F6F4;
  --bg-deeper:     #E8F0EE;
  --card:          #FFFFFF;
  /* Mint primary (ENVI 결) */
  --mint:          #10B981;
  --mint-600:      #059669;
  --mint-700:      #047857;
  --mint-100:      #D1FAE5;
  --mint-50:       #ECFDF5;
  /* Cool secondary */
  --teal:          #14B8A6;
  --sea:           #0EA5E9;
  --indigo:        #6366F1;
  --amber:         #F59E0B;
  --rose:          #F43F5E;
  /* Text */
  --ink:           #0F172A;
  --ink-700:       #1F2937;
  --slate:         #475569;
  --slate-500:     #64748B;
  --slate-400:     #94A3B8;
  --slate-300:     #CBD5E1;
  --slate-200:     #E2E8F0;
  --slate-100:     #F1F5F9;
  /* Lines */
  --grid:          rgba(15, 118, 110, 0.06);
  --line:          #E2E8F0;
  --line-strong:   #CBD5E1;
  /* Shadow */
  --shadow-sm:     0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:     0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg:     0 12px 36px rgba(15, 23, 42, 0.08);
}

/* ===== reset / base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'Pretendard', system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "ss02";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ===== auth 레이아웃 — 좌 브랜드(ink+mint grid) / 우 폼 ===== */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-brand {
  position: relative; overflow: hidden;
  padding: 56px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--ink);
  color: #fff;
}
.auth-brand::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(16,185,129,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,.10) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 28% 36%, #000, transparent 78%);
}
.auth-brand::after {
  content: ""; position: absolute;
  width: 420px; height: 420px; right: -120px; bottom: -160px;
  background: radial-gradient(circle, rgba(16,185,129,.32), transparent 68%);
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 28px; background: var(--bg);
}
.auth-card { width: 100%; max-width: 396px; }
.auth-card.wide { max-width: 560px; }

/* ===== 브랜드 ===== */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.015em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; position: relative; flex: none;
  background: radial-gradient(circle at 30% 30%, var(--mint), var(--mint-700) 70%);
}
.brand-mark::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--mint);
}
.auth-brand .brand-mark::after { background: var(--ink); }
.brand-name { color: inherit; }

.brand-pitch h2 { font-size: 30px; line-height: 1.28; font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.brand-pitch p { color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.6; }
.brand-stats { display: flex; gap: 32px; margin-top: 32px; }
.brand-stat .n { font-size: 24px; font-weight: 700; color: var(--mint); }
.brand-stat .l { color: rgba(255,255,255,.5); font-size: 12.5px; margin-top: 2px; }
.brand-quote { border-left: 2px solid var(--mint); padding-left: 16px; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.55; }
.brand-quote cite { display: block; margin-top: 8px; color: rgba(255,255,255,.45); font-style: normal; font-size: 12.5px; }
.brand-list { margin-top: 28px; }
.brand-list li { color: rgba(255,255,255,.74); font-size: 13.5px; padding: 5px 0; }
.brand-list li::before { content: "✓"; color: var(--mint); font-weight: 700; margin-right: 10px; }

/* ===== 헤딩 ===== */
.h-title { font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.h-sub { margin-top: 8px; color: var(--slate); font-size: 14px; line-height: 1.55; }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  border: 1px solid transparent; transition: all 140ms;
}
.btn-block { width: 100%; }
.btn-lg { height: 46px; font-size: 15px; }
.btn-primary {
  background: var(--mint); color: #fff;
  box-shadow: 0 1px 0 var(--mint-700) inset, 0 1px 2px rgba(16,185,129,.3);
}
.btn-primary:hover { background: var(--mint-600); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-700); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--card); border-color: var(--mint); }
.btn-link { color: var(--ink-700); font-size: 14px; font-weight: 500; padding: 0; height: auto; }
.btn-link:hover { color: var(--mint-700); }
.btn-oauth { background: var(--card); color: var(--ink-700); border-color: var(--line-strong); }
.btn-oauth:hover { background: var(--bg-sub); border-color: var(--mint); }
.btn-kakao { background: #FEE500; color: #191600; border-color: #FEE500; }
.btn-kakao:hover { background: #F2D900; transform: translateY(-1px); }
.btn .logo { width: 18px; height: 18px; display: grid; place-items: center; }

/* ===== 폼 ===== */
.field { margin-bottom: 16px; }
.label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.label .opt { color: var(--slate-400); font-weight: 400; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 13px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 14px; transition: border-color 120ms, box-shadow 120ms;
}
.textarea { height: auto; min-height: 84px; padding: 9px 13px; resize: vertical; }
.input::placeholder { color: var(--slate-400); }
.input:hover, .select:hover { border-color: var(--slate-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}
.input-affix { position: relative; }
.input-affix .input { padding-right: 42px; }
.input-affix .affix {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; color: var(--slate-400); padding: 6px;
}
.hint { margin-top: 6px; font-size: 11.5px; color: var(--slate-400); }
.error-text { margin-top: 6px; font-size: 11.5px; color: var(--rose); }
.field-row { display: flex; gap: 12px; }
.field-row > * { flex: 1; }

.check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--slate); }
.check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--mint); flex: none; }

/* ===== 구분선 (or) ===== */
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--slate-400); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ===== 카드 ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-sm); }

/* 선택 카드 (온보딩) */
.choice {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card);
  cursor: pointer; transition: border-color 120ms, background 120ms, box-shadow 120ms;
}
.choice:hover { border-color: var(--mint); box-shadow: var(--shadow-sm); }
.choice.selected { border-color: var(--mint); background: var(--mint-50); }
.choice-ico {
  width: 38px; height: 38px; flex: none; border-radius: 9px;
  display: grid; place-items: center; font-size: 19px;
  background: var(--mint-50); color: var(--mint-700);
}
.choice.selected .choice-ico { background: var(--mint); color: #fff; }
.choice-t { font-size: 14px; font-weight: 600; color: var(--ink); }
.choice-d { margin-top: 2px; font-size: 12.5px; color: var(--slate); }
.choice-grid { display: grid; gap: 10px; }
.choice-grid.cols-2 { grid-template-columns: 1fr 1fr; }

/* 칩 */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 100px;
  background: var(--card); font-size: 13px; color: var(--slate);
  cursor: pointer; transition: all 120ms;
}
.chip:hover { border-color: var(--mint); }
.chip.selected { border-color: var(--mint); background: var(--mint-50); color: var(--mint-700); font-weight: 600; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 9px; }

/* ===== pill ===== */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500; color: var(--mint-700);
  padding: 6px 14px; background: var(--mint-50);
  border: 1px solid var(--mint-100); border-radius: 100px;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(16,185,129,.18); }

/* ===== 배지 ===== */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 600; }
.badge-mint { background: var(--mint-50); color: var(--mint-700); }
.badge-amber { background: #FEF3C7; color: #B45309; }

/* ===== 콜아웃 ===== */
.callout { display: flex; gap: 11px; padding: 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.callout-info { background: #EFF6FF; color: var(--ink-700); }
.callout-tip  { background: var(--mint-50); color: var(--ink-700); }
.callout-ico { flex: none; font-size: 15px; }

/* ===== 스텝 인디케이터 ===== */
.steps { display: flex; align-items: center; gap: 10px; }
.step { display: flex; align-items: center; gap: 9px; }
.step-dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: var(--slate-100); color: var(--slate-400);
}
.step.done .step-dot { background: var(--mint); color: #fff; }
.step.active .step-dot { background: var(--ink); color: #fff; }
.step-label { font-size: 12.5px; color: var(--slate-400); }
.step.active .step-label { color: var(--ink); font-weight: 600; }
.step.done .step-label { color: var(--slate); }
.step-bar { width: 26px; height: 1px; background: var(--line-strong); }

/* ===== 유틸 ===== */
.stack-3 > * + * { margin-top: 8px; }
.stack-4 > * + * { margin-top: 12px; }
.center { text-align: center; }
.muted { color: var(--slate); }
.small { font-size: 13px; }
.foot-link { font-size: 13px; color: var(--slate); }
.foot-link a { color: var(--mint-700); font-weight: 600; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

/* 테마/장식용 토글 (정적 목업) */
.theme-toggle { display: none; }

/* =====================================================================
   앱 셸 — 사이드바 + 토프바 + 콘텐츠 (인증 후 모든 앱 화면 공용)
   ===================================================================== */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

.sidebar {
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column; padding: 18px 12px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { color: #fff; padding: 4px 10px 18px; }
.sidebar .brand-mark::after { background: var(--ink); }
.nav-sec { font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,.32); padding: 14px 12px 6px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 8px;
  color: rgba(255,255,255,.62); font-size: 14px; font-weight: 500;
  transition: background 120ms, color 120ms;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--mint); color: #fff; box-shadow: 0 1px 0 var(--mint-700) inset; }
.nav-item .ico { width: 18px; text-align: center; flex: none; font-size: 15px; }
.nav-item .tag { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.12);
  padding: 1px 7px; border-radius: 100px; }
.sidebar-foot { margin-top: auto; padding-top: 14px; }
.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 9px; background: rgba(255,255,255,.05);
}
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--mint), var(--sea));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px;
}
.user-name { font-size: 13px; font-weight: 600; color: #fff; }
.user-role { font-size: 11.5px; color: rgba(255,255,255,.45); }

.app-main { display: flex; flex-direction: column; }
.topbar {
  height: 60px; flex: none; background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px;
}
.topbar-search {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px; width: 320px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  color: var(--slate-400); font-size: 13px;
}
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  color: var(--slate); font-size: 16px;
}
.icon-btn:hover { background: var(--bg-sub); color: var(--ink); }
.app-body { padding: 26px; overflow-y: auto; }

/* 페이지 헤더 */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.page-desc { margin-top: 4px; font-size: 13.5px; color: var(--slate); }

/* KPI 카드 */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; box-shadow: var(--shadow-sm); }
.kpi-label { font-size: 12.5px; color: var(--slate-500); display: flex; align-items: center; gap: 6px; }
.kpi-num { font-size: 28px; font-weight: 700; color: var(--ink); margin-top: 6px; letter-spacing: -.02em; }
.kpi-num .unit { font-size: 14px; font-weight: 600; color: var(--slate-400); }
.kpi-delta { font-size: 11.5px; font-weight: 600; margin-top: 4px; }
.kpi-delta.up { color: var(--mint-700); }
.kpi-delta.flat { color: var(--slate-400); }

/* 콘텐츠 카드 / 그리드 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; border-bottom: 1px solid var(--line); }
.panel-title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.panel-body { padding: 18px; }

/* 막대 차트 (CSS) */
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 5px 0; }
.bar-row .bl { width: 92px; color: var(--slate); flex: none; }
.bar-track { flex: 1; height: 8px; background: var(--slate-100); border-radius: 100px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--mint), var(--teal)); }
.bar-row .bv { width: 56px; text-align: right; color: var(--ink-700); font-weight: 600; flex: none; }

/* 활동 리스트 */
.feed-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: none; }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; margin-top: 6px;
  background: var(--mint); box-shadow: 0 0 0 3px var(--mint-50); }
.feed-t { font-size: 13.5px; color: var(--ink-700); }
.feed-t b { font-weight: 600; color: var(--ink); }
.feed-time { font-size: 11.5px; color: var(--slate-400); margin-top: 2px; }

/* 테이블 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--slate-500);
  padding: 9px 12px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .03em; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--ink-700); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--bg-sub); }

/* 빈 상태 */
.empty { text-align: center; padding: 40px 20px; color: var(--slate-400); }
.empty .ei { font-size: 32px; }
.empty .et { margin-top: 10px; font-size: 14px; color: var(--slate); font-weight: 600; }
.empty .ed { margin-top: 4px; font-size: 12.5px; }

/* =====================================================================
   지도 콘솔
   ===================================================================== */
.console { display: grid; grid-template-columns: 1fr 372px; flex: 1; min-height: 0; }
.map-canvas {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 420px at 60% 40%, rgba(16,185,129,.10), transparent 60%),
    #E2EAE7;
}
.map-canvas::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,118,110,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,118,110,.10) 1px, transparent 1px);
  background-size: 48px 48px;
}
.map-aoi {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%);
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(16,185,129,.14); border: 2px dashed var(--mint-600);
}
.map-pin {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%,-100%);
  font-size: 26px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25));
}
.map-tools {
  position: absolute; top: 16px; left: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.map-tool {
  width: 38px; height: 38px; border-radius: 9px; background: var(--card);
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 16px; box-shadow: var(--shadow-sm); color: var(--ink-700);
}
.map-tool:hover { border-color: var(--mint); color: var(--mint-700); }
.map-scale {
  position: absolute; bottom: 14px; left: 16px;
  background: rgba(255,255,255,.85); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 10px; font-size: 11px; color: var(--slate);
}
.console-panel { background: var(--card); border-left: 1px solid var(--line); overflow-y: auto; }
.cpanel-sec { padding: 18px; border-bottom: 1px solid var(--line); }
.cpanel-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }

/* 세그먼트 컨트롤 (AOI 탭) */
.seg { display: flex; background: var(--bg-sub); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button {
  flex: 1; height: 32px; border-radius: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--slate); transition: all 120ms;
}
.seg button.on { background: var(--card); color: var(--mint-700); box-shadow: var(--shadow-sm); }

/* 슬라이더 행 */
.slider-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.slider-row input[type=range] { flex: 1; accent-color: var(--mint); }
.slider-val { font-size: 13px; font-weight: 700; color: var(--ink); width: 64px; text-align: right; }

/* 레이어 리스트 */
.layer-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; }
.layer-row input { width: 16px; height: 16px; accent-color: var(--mint); }
.layer-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.layer-row .lc { margin-left: auto; font-size: 11.5px; color: var(--slate-400); font-weight: 600; }

/* =====================================================================
   필터바 · 탭
   ===================================================================== */
.filterbar { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filterbar .input, .filterbar .select { height: 36px; width: auto; }
.filterbar .grow { flex: 1; min-width: 180px; }

.tab-row { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab {
  padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--slate);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--mint-700); border-bottom-color: var(--mint); }

/* 리포트 타입 카드 그리드 */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.type-card {
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 11px;
  padding: 16px; cursor: pointer; transition: all 120ms;
}
.type-card:hover { border-color: var(--mint); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.type-ico { font-size: 22px; }
.type-t { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.type-d { margin-top: 4px; font-size: 12px; color: var(--slate); line-height: 1.5; }

/* =====================================================================
   리포트 결과
   ===================================================================== */
.report-layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; }
.report-toc { position: sticky; top: 26px; align-self: start; }
.toc-item {
  display: flex; gap: 9px; padding: 7px 10px; border-radius: 7px;
  font-size: 13px; color: var(--slate); cursor: pointer;
}
.toc-item:hover { background: var(--bg-sub); color: var(--ink); }
.toc-item.on { background: var(--mint-50); color: var(--mint-700); font-weight: 600; }
.toc-num { width: 18px; height: 18px; border-radius: 5px; background: var(--slate-100);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.toc-item.on .toc-num { background: var(--mint); color: #fff; }

.section-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.section-card h3 { font-size: 16px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 9px; }
.section-card .sn { width: 24px; height: 24px; border-radius: 6px; background: var(--mint-50);
  color: var(--mint-700); display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* 점수 / 심각도 */
.score-big { font-size: 40px; font-weight: 700; letter-spacing: -.03em; }
.sev-low   { color: var(--mint-700); }
.sev-med   { color: var(--amber); }
.sev-high  { color: var(--rose); }
.sev-pill { display: inline-flex; padding: 3px 11px; border-radius: 100px; font-size: 11.5px; font-weight: 700; }
.sev-pill.low  { background: var(--mint-50); color: var(--mint-700); }
.sev-pill.med  { background: #FEF3C7; color: #B45309; }
.sev-pill.high { background: #FEE2E2; color: #B91C1C; }

/* 반응형 */
@media (max-width: 880px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3-1 { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .report-layout { grid-template-columns: 1fr; }
  .report-toc { position: static; }
}
