/* ==========================================================================
   명당지도 — 팔레트: 먹빛 + 황동 (2026-11-07 전면 교체)
   --------------------------------------------------------------------------
   원칙
   1) 그라디언트 없음. 색은 전부 단색. (이전: 로고·카드·버튼·차트에 파랑→초록
      그라디언트가 6곳 — 브랜드 설계 없이 두 색을 붙인 흔적이었다)
   2) 포인트 색은 황동(--accent) 한 계열. 파랑 5종·초록 2종·주황 3종·빨강 4종을
      쓰던 것을 의미색(좋음/주의/나쁨) 3개 + 포인트 1개로 줄였다.
   3) 라이트 모드 기본값(#f8fafc, #fee2e2, #f3f4f6)이 다크 배경에 남아 흰 박스가
      튀던 문제를 전부 다크 토큰으로 통일.
   4) 배경 radial 광원·헤더 backdrop blur 제거. 정보가 주인공이 되게.
   ========================================================================== */

:root{
  /* 바탕 */
  --bg:#151410;          /* 먹빛 웜 차콜 */
  --panel:#1d1b15;       /* 카드 */
  --panel2:#232019;      /* 카드 내부 블록 */
  --input:#191712;       /* 입력 필드 */
  --line:#302c23;        /* 테두리 */
  --track:#100f0c;       /* 진행바 홈 */

  /* 글자 */
  --txt:#ece5d6;
  --sub:#9a9182;

  /* 포인트 — 황동 단일 계열 */
  --accent:#c8973f;
  --accent-ink:#1a1508;  /* 황동 위 글자 */
  --accent-soft:#e0b06a;
  --accent-a15:rgba(200,151,63,.15);
  --accent-a08:rgba(200,151,63,.07);

  /* 의미색 — 따뜻한 지구색 계열로 맞춰 이질감 제거 */
  --good:#7d9a6a;        /* 세이지 */
  --warn:#c2703a;        /* 구리 */
  --bad:#a84b3f;         /* 벽돌 */
  --accent2:var(--good); /* app.js 가 '양호' 색으로 참조하는 이름 */

  --radius:10px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--txt);
  /* 한글 단어 중간 줄바꿈(임대/료, 비/용) 방지 — 2026-11-09 지적 */
  word-break:keep-all; overflow-wrap:anywhere;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums;   /* 데이터 화면 — 숫자 폭 고정 */
}
.wrap{max-width:1180px;margin:0 auto;padding:0 18px}
h1,h2,h3,h4{margin:0 0 10px}
h1{font-size:20px;letter-spacing:-.4px;font-weight:800}
h2{font-size:16px}
h3{font-size:15px;display:flex;align-items:center;gap:8px}
h4{font-size:13px;color:var(--sub);margin-top:18px;font-weight:600}

/* header — 반투명·블러 없이 단색. 경계는 1px 선 하나로만 */
.top{border-bottom:1px solid var(--line);background:var(--bg);position:sticky;top:0;z-index:10}
.top-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px}
.brand{display:flex;align-items:center;gap:12px}
.logo{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:var(--accent);color:var(--accent-ink);font-size:20px;font-weight:800}
.tag{margin:2px 0 0;color:var(--sub);font-size:12px}
.badges{display:flex;gap:6px;flex-wrap:wrap}
.badge{font-size:11px;padding:4px 8px;border-radius:6px;border:1px solid var(--line);color:var(--sub)}
.badge.warn{color:var(--accent-soft);border-color:#4a3a1c;background:#241d10}

/* layout */
.layout{display:grid;grid-template-columns:340px 1fr;gap:18px;padding-top:20px;padding-bottom:40px;align-items:start}
@media (max-width:900px){ .layout{grid-template-columns:1fr} .top-inner{padding:10px 14px} }
/* 모바일 헤더: 버튼 글자가 '즐겨/찾기', '관/리/자' 로 쪼개지던 문제(2026-11-09 지적) */
@media (max-width:640px){
  .top-inner{gap:8px; flex-wrap:nowrap; padding:8px 12px}
  .brand .tag{display:none}
  .brand span.logo{width:32px;height:32px;font-size:17px}
  h1{font-size:17px; white-space:nowrap}
  /* 2026-11-13: .badges{display:none} 이 계정 메뉴(#auth-area)까지 숨겨
     390px 에서 즐겨찾기·로그아웃·탈퇴·관리자가 폭 0px 이 됐다. 설명 배지만 숨긴다. */
  .badges{gap:4px; flex-wrap:nowrap}
  .badges .badge{display:none}
  .auth-area{margin-left:0; gap:4px}
  .auth-area .user-name{display:none}   /* 좁은 화면에서는 버튼 자리 확보 */
  .btn-mini{white-space:nowrap; padding:6px 7px; font-size:11px}
}

.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:14px}
.card.muted{background:#181712;border-style:dashed}
/* A2(2026-11-09): 폼 카드를 통째로 sticky 로 두니 카드 높이(1,105px)가 뷰포트보다 커져
   '분석하기' 버튼이 화면 밖(y=1038)에 붙어 클릭이 안 됐다. 카드는 흐르게 두고 버튼만 하단 고정. */
.form-card{position:static}
/* 하단 고정은 입력칸을 덮었다(2026-11-09 재지적). 폼 카드가 더 이상 sticky 가 아니므로
   버튼도 일반 흐름에 두면 스크롤로 항상 도달할 수 있다 — 겹침 0. */
#run{width:100%;margin-top:12px}
@media (max-width:900px){ #run{position:sticky;bottom:8px} }

label{display:block;font-size:12px;color:var(--sub);margin:0 0 12px}
select,input{
  width:100%;margin-top:6px;padding:10px 11px;border-radius:7px;border:1px solid var(--line);
  background:var(--input);color:var(--txt);font-size:14px;outline:none;
  font-family:inherit;font-variant-numeric:tabular-nums;
}
select:focus,input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-a15)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* 실측 비용 입력 안내 — 다크 배경에 흰 박스(#f8fafc)가 남아 튀던 것을 교체 */
.hint-line{font-size:12px;line-height:1.6;color:var(--sub);background:#181712;border:1px solid var(--line);
  border-left:2px solid var(--warn);border-radius:6px;padding:10px 12px;margin:0 0 10px}
.hint-line b{color:var(--accent-soft)}
/* 라벨 없는 빈 입력 대신 순수 여백 셀 — 스크린리더·자동완성에 빈 필드가 잡히지 않게 */
.cell-spacer{display:block}
.band-cell{font-size:11px;color:#aab4c0;line-height:1.6;min-width:150px}
.diag-axes{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.diag-row{display:grid;grid-template-columns:88px 34px 1fr;gap:8px;align-items:baseline;
  padding:7px 9px;border:1px solid #232a33;border-radius:7px;background:#161b22}
.diag-row.na{opacity:.55}
.diag-row .dl{font-size:12px;font-weight:700;color:#c8d2de}
.diag-row .db{font-size:11px;font-weight:800;text-align:center;border-radius:5px;padding:1px 0}
.diag-row .db.상{background:#123326;color:#7fe0ae}.diag-row .db.중{background:#33290f;color:#e8c473}
.diag-row .db.하{background:#331a17;color:#eba79b}.diag-row .db.na{background:#20262e;color:#8b95a3}
.diag-row .dv{font-size:12px;color:#aab4c0}
.notice-sub{color:#c8d2de;font-weight:600}
.notice-warn{color:#e2c9a0}
.opt{display:inline-block;font-size:10px;font-weight:700;color:#9aa4b2;background:#1e242e;
  border:1px solid #2c343f;border-radius:4px;padding:0 5px;margin-left:4px;vertical-align:middle}
.field-hint{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:#8b95a3;font-weight:400}
.req{display:inline-block;font-size:10px;font-weight:700;color:var(--accent-soft);background:#3a2a1a;
  border-radius:4px;padding:1px 5px;margin-left:2px;vertical-align:middle}

button{font:inherit;cursor:pointer;border-radius:7px;border:1px solid transparent;transition:.15s}
button.primary{width:100%;padding:12px;background:var(--accent);color:var(--accent-ink);font-weight:800;letter-spacing:-.2px}
button.primary:hover{filter:brightness(1.09)}
button.primary.small{width:auto;padding:9px 14px;font-size:13px;margin-top:10px}
button.ghost{padding:9px 12px;background:transparent;border-color:var(--line);color:var(--sub);font-size:13px}
button.ghost:hover{border-color:var(--accent);color:var(--accent-soft)}
button.ghost.wide{width:100%;margin-top:10px}
.row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}

.hint{font-size:12px;color:var(--sub);margin:8px 0 0}
.hidden{display:none}

/* grade */
.grade-card{padding:18px}
.grade-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.label{font-size:18px;font-weight:800;margin:0;letter-spacing:-.4px}
.sub{font-size:12.5px;color:var(--sub);margin:4px 0 0}
.grade-wrap{display:flex;flex-direction:column;align-items:center;gap:2px}
/* 표시광고법 대응 — 등급이 '수익 보장'으로 읽히지 않도록 상시 노출 */
.grade-caveat{margin:0;font-size:10px;font-weight:600;color:var(--sub);letter-spacing:.02em;
  background:#181712;border:1px solid var(--line);border-radius:999px;padding:1px 7px;white-space:nowrap}
.grade{min-width:72px;height:72px;border-radius:12px;display:grid;place-items:center;font-size:34px;font-weight:800;color:var(--accent-ink);background:#4a4438}
.grade.A{background:var(--good);color:#0f1409}
.grade.B{background:var(--accent);color:var(--accent-ink)}
.grade.C{background:var(--warn);color:#1a0e05}
.grade.D{background:var(--bad);color:#160706}
.grade.blocked{background:#241f18;color:var(--sub);font-size:15px;line-height:1.2;text-align:center;border:1px dashed #4a4438}
.is-muted{opacity:.42;filter:grayscale(.75)}
.is-muted .v{color:#8a8375;text-decoration:line-through;text-decoration-color:#4a4438}
.scorebar{height:7px;border-radius:99px;background:var(--track);margin:14px 0 6px;overflow:hidden}
.scorebar-fill{height:100%;width:0;background:var(--accent);transition:width .5s}

/* kpi */
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
@media (max-width:700px){ .kpis{grid-template-columns:1fr 1fr} }
.kpi{background:var(--panel2);border:1px solid var(--line);border-radius:8px;padding:12px}
.kpi .k{font-size:11.5px;color:var(--sub);margin:0}
.kpi .v{font-size:19px;font-weight:800;margin:5px 0 0;letter-spacing:-.4px}
.kpi .d{font-size:11px;color:var(--sub);margin:4px 0 0}
.pos{color:var(--good)}.neg{color:var(--bad)}

/* risk */
.pill{font-size:12px;padding:3px 9px;border-radius:999px;background:var(--track);border:1px solid var(--line);color:var(--sub);font-weight:600}
.riskbars{display:grid;gap:8px}
.rb{display:grid;grid-template-columns:92px 1fr 46px;align-items:center;gap:10px;font-size:12.5px}
.rb .track{height:8px;border-radius:99px;background:var(--track);overflow:hidden}
.rb .fill{height:100%;border-radius:99px}
.reasons{margin:0;padding-left:0;list-style:none}
.reasons li{border-left:3px solid var(--warn);padding:2px 0 2px 10px;margin:8px 0;font-size:13px;color:var(--txt)}
.reasons li b{display:block;font-size:12px;color:var(--accent-soft);margin-bottom:2px}

/* waterfall */
.waterfall{display:grid;gap:6px}
.wf{display:grid;grid-template-columns:110px 1fr 100px;align-items:center;gap:10px;font-size:12.5px}
.wf .track{height:10px;background:var(--track);border-radius:4px;overflow:hidden}
.wf .fill{height:100%;background:var(--accent)}
.wf .val{text-align:right;font-variant-numeric:tabular-nums}

/* table */
.tbl{width:100%;border-collapse:collapse;font-size:12.5px;margin-top:8px}
.tbl th,.tbl td{padding:7px 6px;text-align:right;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
.tbl th:first-child,.tbl td:first-child{text-align:left}
.tbl th{color:var(--sub);font-weight:600;font-size:11.5px}
.tbl tr.base{background:var(--accent-a08)}

/* hour chart — 파랑→초록 그라디언트 제거, 단색 막대 */
.hourchart{display:flex;align-items:flex-end;gap:2px;height:110px;margin-top:6px}
.hourchart .bar{flex:1;background:var(--accent);opacity:.85;border-radius:2px 2px 0 0;min-height:1px;position:relative}
.hourchart .bar span{position:absolute;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);font-size:9px;color:var(--sub);white-space:nowrap}
.axis{display:flex;justify-content:space-between;font-size:10px;color:var(--sub);margin-top:4px}

/* lists */
.recs,.assumptions,.cmp-list{margin:0;padding-left:18px;font-size:13px}
.recs li,.cmp-list li{margin:7px 0}
.assumptions li{color:var(--sub);font-size:12px;margin:4px 0}
.cmp-list:empty::after{content:"비교할 후보지가 없습니다";color:var(--sub);font-size:12px}
.cmp-group{margin-top:12px}
.cmp-group h4{margin:0 0 4px}

/* map */
.map{height:300px;border-radius:8px;border:1px solid var(--line);background:var(--input);overflow:hidden}
@media (max-width:700px){ .map{height:230px} }

/* notice */
.notice{
  margin-top:14px;padding:10px 14px;border-radius:8px;font-size:12.5px;line-height:1.55;
  background:#241d10;border:1px solid #4a3a1c;border-left:3px solid var(--accent);color:#e2c48a
}
.notice strong{color:#f0d8a8}
.alert{margin:0 0 14px}
.alert-info{background:#0f1d26;border-color:#1f4a5c;border-left-color:#3ea6c8;color:#b9dbe6}
.alert-info strong{color:#d5eef7}
.alert-bad{background:#2e1512;border-color:#6b2a24;border-left-color:var(--bad);color:#e8b3a9}
.alert-bad strong{color:#f2c6bd}
.warnline{color:#e8b3a9}
.sources{margin:6px 0 0;padding-left:18px;font-size:11.5px;color:var(--sub)}
.sources li{margin:3px 0}
.src{font-size:11px;color:#8a8375;margin-top:6px;line-height:1.6}

/* footnote */
.foot{border-top:1px solid var(--line);padding:16px 18px 30px;color:var(--sub);font-size:11.5px}

/* ---------- 회원 (무료): 헤더 영역 · 모달 ---------- */
.auth-area { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; }
.auth-area .user-name { font-size: 13px; color: var(--txt); }
.btn-mini {
  border: 1px solid var(--line); background: var(--panel2); color: var(--txt);
  border-radius: 6px; padding: 5px 10px; font-size: 12px; cursor: pointer;
}
.btn-mini:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn-mini.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn-mini.solid:hover { filter: brightness(1.09); color: var(--accent-ink); }

/* 로그인 게이트 — 로그아웃 상태에서 분석 버튼을 막고 이유를 화면에 적는다 */
.notice.gate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.notice.gate .gate-actions { display: inline-flex; gap: 6px; margin-left: auto; }
/* ⚠️ .hidden{display:none} 은 클래스 1개라 .notice.gate(2개)에 밀린다.
   이 한 줄이 없으면 로그인해도 게이트가 계속 보인다(2026-11-05 실제 발생). */
.notice.gate.hidden { display: none; }
button.primary:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.3); }

.modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8, 7, 4, .78);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal.hidden { display: none; }
.modal-card {
  position: relative; width: 100%; max-width: 380px;
  background: #1a1813; border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 20px 18px;
}
.modal-card h2 { margin: 0 0 4px; font-size: 18px; }
.modal-sub { margin: 0 0 14px; font-size: 12.5px; color: var(--sub); line-height: 1.5; }
.modal-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0; color: var(--sub); font-size: 16px; cursor: pointer;
}
.modal-card .tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.modal-card .tab {
  flex: 1; padding: 8px 0; border-radius: 7px; cursor: pointer;
  background: var(--input); border: 1px solid var(--line); color: var(--sub); font-size: 13px;
}
.modal-card .tab.active { background: #3a2f18; border-color: var(--accent); color: var(--txt); }
.modal-card form { display: flex; flex-direction: column; gap: 11px; }
.modal-card label { display: block; font-size: 12px; color: var(--sub); }
.modal-card input {
  width: 100%; margin-top: 5px; padding: 10px 11px; box-sizing: border-box;
  background: var(--input); border: 1px solid var(--line); border-radius: 7px;
  color: var(--txt); font-size: 14px; font-family: inherit;
}
.modal-card input:focus { outline: none; border-color: var(--accent); }
.modal-card .btn.primary { margin-top: 4px; width: 100%; padding: 11px; }
.auth-error {
  margin: 0; padding: 8px 10px; border-radius: 6px; font-size: 12.5px;
  background: #2e1512; border: 1px solid #6b2a24; color: #e8b3a9;
}
.auth-error.hidden { display: none; }
.privacy-note { margin: 12px 0 0; font-size: 11.5px; color: var(--sub); line-height: 1.5; }
.privacy-note a, .modal-card label.agree a { color: var(--accent-soft); text-decoration: none; }
.privacy-note a:hover, .modal-card label.agree a:hover { text-decoration: underline; }

/* 회원가입 동의 체크 — 체크박스와 문장을 한 줄에 두되 줄바꿈은 문장 쪽에서 되게 */
.modal-card label.agree {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: var(--sub); line-height: 1.55; cursor: pointer;
}
.modal-card label.agree input[type="checkbox"] {
  width: 16px; height: 16px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--accent);
}
.modal-card label.agree.hidden { display: none; }

/* 파괴적 동작(계정 삭제)은 색으로 구분한다 */
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger:hover { filter: brightness(1.1); }
.btn.danger:disabled { opacity: .6; cursor: default; }
.btn-mini.danger { color: #d99a8e; border-color: #6b2a24; }
.btn-mini.danger:hover { background: #2e1512; border-color: var(--bad); }
.foot a { color: var(--accent-soft); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.fav-btn { margin-left: 8px; }

/* ---------- 결과 상단 고정 배너 (산출 보류, P3) ---------- */
html { scroll-behavior: smooth; }
.card { scroll-margin-top: 122px; }   /* sticky 헤더 + 빠른이동 바 높이만큼 띄운다 */

.gate-banner {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 8px;
  background: #2e1512;
  border: 1px solid #6b2a24; border-left: 3px solid var(--bad); color: #e8b3a9;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.gate-banner.hidden { display: none; }
.gate-banner .gb-title { font-weight: 800; color: #f2c6bd; font-size: 14.5px; }
.gate-banner .gb-body { flex: 1 1 320px; font-size: 12.5px; line-height: 1.55; }
.gate-banner a.gb-jump {
  border: 1px solid #6b2a24; background: #3a1a16; color: #f2c6bd;
  padding: 6px 11px; border-radius: 6px; font-size: 12px; text-decoration: none; white-space: nowrap;
}
.gate-banner a.gb-jump:hover { background: #4a211c; }

/* ---------- 모바일 빠른 이동 (P2) ---------- */
.quicknav { display: none; }

@media (max-width: 900px) {
  .quicknav {
    display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    position: sticky; top: 57px; z-index: 9; margin: 0 0 12px;
    padding: 6px 2px; background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .quicknav button {
    flex: 0 0 auto; font-size: 12.5px; padding: 7px 12px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--panel2); color: var(--sub);
  }
  .quicknav button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
  .card { scroll-margin-top: 96px; }
}

/* ---------- 모바일 헤더 정리 + 빠른이동 오프셋 (P2 보정) ----------
   헤더가 배지 때문에 2~3줄로 늘어나 390px에서 120px, 360px에서 163px까지 커졌다.
   그러면 sticky 빠른이동 바가 헤더에 가려진다(top:57px 고정값은 틀린 값이었다).
   → ① 작은 화면에서는 설명 배지를 숨기고 ② 실제 헤더 높이를 CSS 변수로 내려 계산한다. */
@media (max-width: 640px) {
  .badges .badge { display: none; }        /* 설명 배지만 숨김(auth-area 는 .badge 아님) */
  .tag { display: none; }
}

/* 2026-11-13: 계정 버튼 4개(즐겨찾기·로그아웃·탈퇴·관리자)를 390px 에서도 유지한다.
   헤더가 한 줄에 안 들어가면 가로 스크롤이 생기므로 ①간격·패딩을 줄이고
   ②그래도 넘치면 배지 줄을 다음 줄로 내린다(--stick-top 은 JS 가 실측해 맞춘다). */
@media (max-width: 430px) {
  .top-inner { padding: 8px 10px; gap: 6px; }
  .brand { gap: 8px; }
  h1 { font-size: 16px; }
  .btn-mini { padding: 5px 6px; font-size: 11px; }
  .auth-area { gap: 3px; }
}
@media (max-width: 380px) {
  .top-inner { flex-wrap: wrap; }
  .badges { width: 100%; justify-content: flex-end; }
}

@media (max-width: 900px) {
  .quicknav { top: var(--stick-top, 57px); }
  .card { scroll-margin-top: calc(var(--stick-top, 57px) + 56px); }
}

/* 상권 비교 (공개) */
#compare-card { margin-top: 14px; }
.cmp-row { display: grid; grid-template-columns: 26px 1fr 84px 150px; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line, #2a2823); }
.cmp-row:first-child { border-top: 0; }
.cmp-rank { font-variant-numeric: tabular-nums; font-weight: 700; opacity: .6; text-align: center; }
.cmp-name b { display: block; font-size: 14px; }
.cmp-name span { display: block; font-size: 11px; opacity: .6; }
.cmp-bar { height: 6px; border-radius: 3px; background: var(--bar-bg, rgba(255,255,255,.08)); overflow: hidden; }
.cmp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent, #d9a14a); }
.cmp-val { text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 600; }
.cmp-val span { display: block; font-size: 11px; font-weight: 400; opacity: .7; }
.cmp-val span.up { color: #6fbf73; }
.cmp-val span.down { color: #cf7b6a; }
.cmp-empty { font-size: 13px; opacity: .75; padding: 10px 0; }
@media (max-width: 640px) {
  .cmp-row { grid-template-columns: 22px 1fr 120px; }
  .cmp-bar { display: none; }
}

/* 가정값 자동 채움 */
input.auto { border-color: rgba(200,151,63,.55); background: rgba(200,151,63,.07); }
.auto-note { margin: 2px 0 10px; padding: 8px 10px; border-left: 2px solid var(--accent, #c8973f);
  background: rgba(200,151,63,.05); border-radius: 4px; line-height: 1.5; }
.auto-note b { color: var(--accent, #c8973f); }

/* 판정 · 대안 */
.cmp-verdict { margin: 4px 0 12px; padding: 12px 14px; border-radius: 8px;
  background: rgba(255,255,255,.035); border-left: 3px solid var(--accent, #c8973f);
  font-size: 13px; line-height: 1.6; }
.cmp-verdict.good { background: rgba(111,191,115,.08); border-left-color: #6fbf73; }
.cmp-alt-title { display: block; margin-top: 10px; font-size: 12px; opacity: .65; }
.cmp-alt { display: grid; grid-template-columns: 34px 84px 84px 56px 1fr; align-items: center;
  gap: 8px; padding: 7px 0; border-top: 1px dashed var(--line, #2a2823); font-size: 13px; }
.cmp-alt .r { opacity: .55; font-variant-numeric: tabular-nums; }
.cmp-alt .m { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.cmp-alt .d { text-align: right; font-variant-numeric: tabular-nums; }
.cmp-alt .d.up { color: #6fbf73; }
.cmp-alt .s { font-size: 11px; opacity: .55; }
.cmp-row.is-me { background: rgba(200,151,63,.07); border-radius: 6px; }
@media (max-width: 640px) {
  .cmp-alt { grid-template-columns: 30px 1fr 80px 52px; }
  .cmp-alt .s { display: none; }
}
