:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #16191f;
  --ink-2: #4a5160;
  --ink-3: #8a909c;
  --line: #e6e8ec;
  --accent: #1f5eff;
  --accent-soft: #eaf0ff;
  --ok: #0f8a5f;
  --ok-soft: #e4f5ee;
  --warn: #b26a00;
  --warn-soft: #fff3df;
  --bad: #c2362f;
  --bad-soft: #fdecea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 17px; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 15px; margin: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* 상단바 */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 16px; }
.logo:hover { text-decoration: none; }
.logo .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
nav[hidden] { display: none; }
nav { display: flex; gap: 4px; align-items: center; }
nav a, button.link { padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; background: none; border: 0; cursor: pointer; font: inherit; }
nav a:hover, button.link:hover { background: var(--bg); text-decoration: none; }
nav a.on { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

main { max-width: 1240px; margin: 0 auto; padding: 28px; }
.loading { padding: 80px 0; text-align: center; color: var(--ink-3); }

/* 공통 요소 */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #f1f3f6; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #1a50db; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
input, textarea, select { font: inherit; font-size: 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; background: #fff; width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { resize: vertical; line-height: 1.6; }
label.f { display: block; }
label.f > span { display: block; font-size: 13px; color: var(--ink-2); font-weight: 600; margin-bottom: 5px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.check { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.no { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip.hot { background: var(--bad); color: #fff; border-color: transparent; }

/* 로그인 */
.login { max-width: 380px; margin: 12vh auto 0; }
.login h1 { margin-bottom: 6px; }
.login form { display: grid; gap: 12px; margin-top: 20px; }

/* 업체 목록 */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }
.page-head > .row { flex-wrap: nowrap; }
.search { max-width: 320px; }
.ctable { width: 100%; border-collapse: collapse; }
.ctable th { text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ctable td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ctable tr:last-child td { border-bottom: 0; }
.ctable tr.click:hover td { background: #fafbfc; cursor: pointer; }
.ctable .name { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.num.zero { color: var(--ink-3); font-weight: 500; }
.toptitle { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 13.5px; }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-2); }

/* 대시보드 */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.dash-head > .row { flex-wrap: nowrap; }
.dash-head .facts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.switcher { min-width: 220px; max-width: 280px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.stat:hover { border-color: #cfd4dc; }
.stat.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.stat .k { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.stat .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.stat .v small { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.stat.hot .v { color: var(--bad); }
.stat.okc .v { color: var(--ok); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px -4px 14px; padding: 0 4px; overflow-x: auto; }
.tabs button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-3); padding: 10px 12px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button .c { font-size: 12px; color: var(--ink-3); margin-left: 4px; font-weight: 500; }
.ann { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.ann:last-child { border-bottom: 0; }
.ann .rank { width: 28px; height: 28px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--ink-2); }
.ann .rank.first { background: var(--ink); color: #fff; }
.ann .t { font-weight: 650; color: var(--ink); line-height: 1.45; }
.ann .t:hover { color: var(--accent); }
.ann .meta { font-size: 13px; color: var(--ink-3); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.ann .why { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.ann .notes { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--warn); }
.ann .notes li::before { content: '· '; }
.ann .notes.bad { color: var(--bad); }
.ann .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dday { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.dday.hot { color: var(--bad); }
.fit { font-size: 12px; color: var(--ink-3); }
.ment { position: sticky; top: 76px; }
.ment textarea { min-height: 440px; font-size: 13.5px; background: #fbfbfc; }
.ment .row { margin-top: 10px; }
.check-inline { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check-inline input { width: auto; }
.kw { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.notice { padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 13.5px; margin-bottom: 14px; }
.notice.info { background: var(--accent-soft); color: var(--accent); }

/* 등록 폼 */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 800; font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
legend::before { content: ''; width: 4px; height: 15px; background: var(--accent); border-radius: 2px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.fields .wide { grid-column: 1 / -1; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg label { padding: 8px 16px; cursor: pointer; font-size: 14px; }
.seg input { display: none; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; }
.paste { position: sticky; top: 76px; }
.paste textarea { min-height: 300px; font-size: 13px; }
.form-actions { position: sticky; bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff 35%); padding: 18px 0 4px; display: flex; gap: 10px; justify-content: flex-end; }

/* 상태 */
.src { display: grid; grid-template-columns: 140px minmax(0,1fr) 120px 170px; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.src:last-child { border-bottom: 0; }
.err { color: var(--bad); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); z-index: 50; }

@media (max-width: 960px) {
  main { padding: 18px; }
  .top { padding: 10px 16px; }
  .grid2, .form-grid { grid-template-columns: minmax(0, 1fr); }
  nav a, button.link { padding: 6px 8px; font-size: 13px; white-space: nowrap; }
  .logo { font-size: 0; }
  .logo .dot { font-size: 0; }
  .ann { grid-template-columns: 28px minmax(0, 1fr); }
  .ann .side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; }
  .switcher { min-width: 0; flex: 1; }
  .ment, .paste { position: static; }
  .page-head > .row, .dash-head > .row { flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr; }
  .src { grid-template-columns: 1fr; gap: 4px; }
  .hide-m { display: none; }
}

/* 2차: 계정·컨설팅 */
nav .who { font-size: 13px; color: var(--ink-3); padding: 0 6px 0 12px; border-left: 1px solid var(--line); margin-left: 6px; }
.consent { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; font-size: 14px; }
.consent p { margin: 6px 0 10px; color: var(--ink-2); line-height: 1.6; }
fieldset:disabled { opacity: .45; }
.btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.result-stats .v { font-size: 22px; }
.rtable td { vertical-align: top; }
.rtable tr.dim td { opacity: .55; }
.rtable .notes { margin: 4px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--warn); }
.rtable .notes.bad { color: var(--bad); }
.ptable input { min-width: 110px; padding: 6px 8px; font-size: 13px; }
.ptable td:first-child input { min-width: 220px; }
.login input { margin-bottom: 0; }
@media (max-width: 960px) { nav .who { display: none; } }

/* ── 파트너사 테마 ── */
.logo img { height: 34px; width: auto; display: block; border-radius: 4px; }
body[data-theme="jh"] { --accent: #0b4a8f; --accent-soft: #e6eef8; --bg: #f4f7fb; }
body[data-theme="jh"] .top { border-bottom: 3px solid #0b4a8f; }
body[data-theme="jh"] .logo span { color: #0b4a8f; }
body[data-theme="jh"] .logo img { height: 36px; }
body[data-theme="jh"] .logo span::before { content: 'JH PARTNERS'; display: block; font-size: 11px; letter-spacing: .12em; color: #0b4a8f; opacity: .75; line-height: 1.1; }
body[data-theme="bs"] { --accent: #2b4d7a; --accent-soft: #e8edf4; --bg: #f3f4f6; }
body[data-theme="bs"] .top { background: #0a1e34; border-bottom: 1px solid #22344d; }
body[data-theme="bs"] .logo span { color: #d9dde3; letter-spacing: .02em; }
body[data-theme="bs"] nav a, body[data-theme="bs"] button.link, body[data-theme="bs"] nav .who { color: #c3c9d2; }
body[data-theme="bs"] nav a:hover, body[data-theme="bs"] button.link:hover { background: #16304f; }
body[data-theme="bs"] nav a.on { color: #fff; background: linear-gradient(135deg, #4a5a70, #8c96a3); }
body[data-theme="bs"] .btn.primary { background: linear-gradient(135deg, #0a1e34, #2b4d7a); border-color: #0a1e34; }

/* ── 견적서 출력 ── */
.print-head { display: none; }
@media print {
  .top, .noprint, .toast, #del { display: none !important; }
  body { background: #fff; }
  main { padding: 0 !important; max-width: none !important; }
  .print-head { display: block; margin-bottom: 18px; }
  .ph-top { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--accent); padding-bottom: 12px; margin-bottom: 12px; }
  .ph-top img { height: 64px; }
  .ph-title { font-size: 22px; font-weight: 700; }
  .ph-info { width: 100%; border-collapse: collapse; font-size: 13px; }
  .ph-info th, .ph-info td { border: 1px solid #d9dce1; padding: 6px 8px; text-align: left; }
  .ph-info th { background: #f4f5f7; width: 80px; }
  .panel, .stat { box-shadow: none !important; break-inside: avoid; }
}

/* ── 스펀지랩(관리자) 테마 ── */
body[data-theme="sl"] { --accent: #6246ea; --accent-soft: #efebff; --bg: #f7f7fb; }
body[data-theme="sl"] .btn.primary { background: #6246ea; border-color: #6246ea; }
.sl-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #6246ea; color: #fff; font-size: 15px; }
.sl-name { letter-spacing: .02em; font-weight: 800; }
.sl-sub { color: var(--ink-3); font-weight: 500; font-size: 13px; padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line); }
.xs { font-size: 12px; }
.btn.soft { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* 히어로 */
.hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; min-height: 176px; padding: 34px 38px; border-radius: 18px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(120% 140% at 85% 50%, #3a2a78 0%, #241a4f 45%, #19143a 100%); }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent 45%, #000 75%); pointer-events: none; }
.hero h1 { font-size: 40px; letter-spacing: -.03em; margin: 6px 0 8px; }
.hero p { margin: 0; color: rgba(255,255,255,.75); font-size: 14px; }
.hero .eyebrow { font-size: 11px; letter-spacing: .14em; font-weight: 700; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 8px; }
.hero .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #a594ff; box-shadow: 0 0 0 3px rgba(165,148,255,.25); }
.hero-txt { position: relative; z-index: 1; }
.hero-art { position: relative; width: 240px; height: 240px; margin: -40px -10px -40px 0; flex: none; }
.hero-art i { position: absolute; border-radius: 50%; border: 1px solid rgba(190,180,255,.28); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hero-art .r1 { width: 70px; height: 70px; } .hero-art .r2 { width: 150px; height: 150px; } .hero-art .r3 { width: 230px; height: 230px; }
.hero-art .sweep { width: 230px; height: 230px; border: 0; background: conic-gradient(from 0deg, rgba(165,148,255,.45), transparent 22%); animation: sweep 6s linear infinite; }
.hero-art .b1, .hero-art .b2, .hero-art .b3 { width: 7px; height: 7px; border: 0; background: #d6ceff; box-shadow: 0 0 10px #a594ff; }
.hero-art .b1 { left: 68%; top: 28%; } .hero-art .b2 { left: 30%; top: 64%; } .hero-art .b3 { left: 74%; top: 70%; width: 5px; height: 5px; }
@keyframes sweep { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .sweep { animation: none; } }

/* 업체 선택·키워드 */
.rd-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rd-pick { display: flex; align-items: center; gap: 12px; }
.rd-pick select { font: inherit; font-size: 18px; font-weight: 700; border: 0; background: transparent; padding: 0 22px 0 0; color: var(--ink); cursor: pointer; max-width: 70vw; }
.rd-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 18px; }
.rd-ico.sm { width: 34px; height: 34px; font-size: 15px; background: var(--accent-soft); border: 0; }
.rd-facts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.rd-kw { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 16px; }
.rd-kw > .muted { padding-top: 5px; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.tag-x { border: 0; background: none; color: inherit; opacity: .45; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 4px; }
.tag-x:hover { opacity: 1; }
.tag-add input { border: 1px dashed #c9c1f5; border-radius: 6px; padding: 4px 9px; font: inherit; font-size: 13px; width: 120px; background: #fff; }
.tag-add input:focus { outline: none; border-style: solid; border-color: var(--accent); width: 170px; }
.mini-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mini-tags span { font-size: 11.5px; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; }

/* 세그먼트·통계 */
.segs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.segs button { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); }
.segs button b { margin-left: 4px; }
.segs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.rd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.rd-stat { position: relative; text-align: left; font: inherit; color: inherit; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.rd-stat:hover { border-color: #c9c1f5; }
.rd-stat .k { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.rd-stat .v { font-size: 30px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.rd-stat .v small { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-left: 3px; }
.rd-stat .v.hot { color: var(--bad); }
.rd-stat .s { position: absolute; right: 18px; bottom: 18px; font-size: 12px; color: var(--ink-3); }
.rd-stat .ic { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; }
.rd-stat .ic.ok { background: var(--ok-soft); color: var(--ok); }
.rd-stat .ic.new { background: var(--accent-soft); color: var(--accent); }
.rd-stat .ic.hot { background: #fff1e6; color: #d9620c; }

/* 목록 */
.rd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.rd-side { display: grid; gap: 16px; position: sticky; top: 76px; }
.rd-side h3 { margin: 0; font-size: 16px; }
.eyebrow2 { font-size: 10.5px; letter-spacing: .14em; font-weight: 700; color: var(--ink-3); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; }
.rd-list { padding: 22px 22px 8px; }
.rtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 16px -22px 0; padding: 0 14px; overflow-x: auto; }
.rtabs button { font: inherit; font-size: 14px; border: 0; background: none; padding: 10px 10px; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.rtabs button span { margin-left: 5px; font-size: 12px; color: var(--ink-3); }
.rtabs button.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.rd-tools { display: flex; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rd-tools .search { flex: 1; }
.rd-tools select { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; background: #fff; }
.opp { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.opp:last-of-type { border-bottom: 0; }
.opp input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.opp.soon { background: linear-gradient(90deg, #fff7f0, transparent 60%); margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.opp-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.opp-tags .cat { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: #eef1f6; color: #3d4a60; }
.opp-tags .new { font-size: 10.5px; font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.opp-title { display: block; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.opp-title:hover { color: var(--accent); text-decoration: none; }
.opp-meta { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.opp-why { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.opp-why.bad { color: var(--bad); }
.opp-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.dbadge { font-size: 12.5px; font-weight: 800; padding: 3px 9px; border-radius: 6px; background: #eef0f4; color: #3d4350; }
.dbadge.hot { background: #ffe9dc; color: #c4500a; }
.btn.more { width: 100%; margin: 12px 0; }

/* 공유함·채널 */
.drop { border: 1px dashed #d6d0f5; border-radius: 10px; padding: 16px; text-align: center; font-size: 13px; color: var(--ink-2); margin: 12px 0 10px; background: #fbfaff; }
.picked { list-style: none; margin: 12px 0 10px; padding: 0; display: grid; gap: 6px; }
.picked li { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; background: #fbfaff; border: 1px solid #ece8ff; border-radius: 8px; padding: 6px 6px 6px 10px; }
.picked li span { flex: 1; }
.picked button { border: 0; background: none; cursor: pointer; color: var(--ink-3); }
.rd-side textarea { width: 100%; min-height: 220px; font: inherit; font-size: 13px; line-height: 1.6; border: 1px solid var(--line); border-radius: 10px; padding: 10px; resize: vertical; }
.ch { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.ch-b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; }

@media (max-width: 1000px) {
  .rd-grid { grid-template-columns: 1fr; }
  .rd-side { position: static; }
  .hero-art { display: none; }
  .rd-stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}
.rd-tools .search { flex: 1; width: auto; min-width: 0; max-width: none; }
.rd-tools select { flex: none; width: auto; }
.tags.folded .more-tag { display: none; }
.tag-more { border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; padding: 3px 4px; }
.ctable th { white-space: nowrap; }
.recb { font-size: 11.5px; font-weight: 800; color: #b45309; background: #fff4d6; padding: 2px 7px; border-radius: 5px; }
