:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f3f5f8; --text: #18202b; --muted: #5b6777; --line: #e4e7ec;
  --brand: #1f4e8c; --brand-ink: #ffffff; --brand-soft: #e3ecf8;
  --ok: #17663a; --ok-bg: #e2f4e8; --check: #8a5a00; --check-bg: #fdf1d8; --no: #a12a2a; --no-bg: #fbe5e5;
  --ad: #6b4fa0; --ad-bg: #f1ecfa; --mark: #fff1a8;
  --radius: 10px; --shadow: none;
  --tabbar: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121821; --surface: #121821; --surface-2: #1f2d42; --text: #e6ebf2; --muted: #9aa7b8; --line: #2b3a50;
    --brand: #6ea2e8; --brand-ink: #0f1724; --brand-soft: #1d3150;
    --ok: #7ad69b; --ok-bg: #173826; --check: #f0c46a; --check-bg: #3a2e12; --no: #f19a9a; --no-bg: #3d1d1d;
    --ad: #c4a8f5; --ad-bg: #2a2140; --mark: #5c5114;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121821; --surface: #121821; --surface-2: #1f2d42; --text: #e6ebf2; --muted: #9aa7b8; --line: #2b3a50;
  --brand: #6ea2e8; --brand-ink: #0f1724; --brand-soft: #1d3150;
  --ok: #7ad69b; --ok-bg: #173826; --check: #f0c46a; --check-bg: #3a2e12; --no: #f19a9a; --no-bg: #3d1d1d;
  --ad: #c4a8f5; --ad-bg: #2a2140; --mark: #5c5114;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }

.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { border-radius: 7px; }
.feed-status { color: var(--muted); font-size: 12px; text-align: right; }
.offline { background: var(--check-bg); color: var(--check); padding: 8px 16px; font-size: 13px; }

main { max-width: 760px; margin: 0 auto; padding: 16px; outline: none; }
h1 { font-size: 21px; margin: 4px 0 12px; line-height: 1.35; }
h2 { font-size: 17px; margin: 22px 0 10px; }
h3 { font-size: 15px; margin: 16px 0 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 12px; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.tabbar a[data-tab="home"] svg, .tabbar a[data-tab="profile"] svg, .tabbar a[data-tab="more"] svg, .tabbar a[data-tab="all"] svg { fill: currentColor; stroke: none; }
.tabbar a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.badge { position: absolute; top: 6px; left: 54%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--no); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.card.link { display: block; color: inherit; text-decoration: none; }
.card.link:active { background: var(--surface-2); }
.card-title { font-weight: 650; margin: 6px 0 4px; line-height: 1.4; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; border: 1px solid transparent; }
button.chip { cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); font-weight: 650; }

.verdict { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.verdict.ok { background: var(--ok-bg); color: var(--ok); }
.verdict.check { background: var(--check-bg); color: var(--check); }
.verdict.no { background: var(--no-bg); color: var(--no); }
.dday { font-weight: 700; color: var(--text); }
.dday.soon { color: var(--no); }

.reasons { list-style: none; padding: 0; margin: 8px 0 0; }
.reasons li { padding: 8px 10px; border-radius: 10px; margin-bottom: 6px; font-size: 14px; }
.reasons li.ok { background: var(--ok-bg); color: var(--ok); }
.reasons li.check { background: var(--check-bg); color: var(--check); }
.reasons li.neutral { background: var(--surface-2); color: var(--muted); }
.reasons li.no { background: var(--no-bg); color: var(--no); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.stat b { display: block; font-size: 22px; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.danger { color: var(--no); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.actions .wide { grid-column: 1 / -1; }

.rows { display: grid; grid-template-columns: 92px 1fr; gap: 8px 12px; font-size: 14px; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; }

label.field { display: block; margin-bottom: 14px; }
label.field > span, fieldset > legend { display: block; font-weight: 650; margin-bottom: 6px; font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
input[type="text"], input[type="search"], input[type="date"], input[type="number"], input[type="email"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
textarea { min-height: 84px; resize: vertical; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 14px; }
.seg input { accent-color: var(--brand); }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.toolbar { display: grid; gap: 8px; margin-bottom: 12px; }
.toolbar .row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.toolbar select { width: auto; min-width: 0; flex: 1; }

.ad { border: 1px dashed var(--ad); background: var(--ad-bg); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.ad .ad-label { display: inline-block; font-size: 11px; font-weight: 700; color: var(--ad); border: 1px solid var(--ad); border-radius: 6px; padding: 0 6px; margin-right: 6px; }
.ad a { color: inherit; text-decoration: none; }
.ad { position: relative; padding-top: 26px; }
.ad .ad-own { padding: 4px 0 0; text-align: left; }
.ad .ad-note { font-size: 11px; color: var(--muted); margin-top: 6px; }

.notice-box { background: var(--surface-2); border-radius: 12px; padding: 12px; font-size: 13px; color: var(--muted); margin: 12px 0; }
.warn { background: var(--check-bg); color: var(--check); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }

.doc-preview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.doc-h1 { font-size: 18px; margin: 0 0 8px; }
.doc-h2 { font-size: 15px; margin: 18px 0 8px; color: var(--brand); }
.doc-note { color: var(--muted); font-size: 13px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: 7px 9px; vertical-align: top; text-align: left; }
.doc-table th { width: 34%; background: var(--surface-2); font-weight: 650; }
.doc-list { padding-left: 18px; margin: 0; font-size: 14px; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 8px 0 12px; }
.progress > i { display: block; height: 100%; background: var(--brand); }

table.files { width: 100%; border-collapse: collapse; font-size: 13px; }
table.files th, table.files td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; vertical-align: top; }
.empty { text-align: center; color: var(--muted); padding: 32px 12px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 10; max-width: calc(100% - 32px); }
.steps { display: flex; gap: 6px; margin: 4px 0 14px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--brand); }

/* 데스크톱 웹: 바른 한글처럼 가운데 한 줄 본문 + 오른쪽 광고 칸 */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .topbar { padding: 12px max(24px, calc((100vw - 1120px) / 2)); border-bottom: 0; }
  .tabbar {
    position: sticky; top: 53px; bottom: auto; height: 46px; padding: 0 max(24px, calc((100vw - 1120px) / 2));
    display: flex; gap: 2px; border-top: 0; border-bottom: 1px solid var(--line); z-index: 4;
  }
  .tabbar a { flex-direction: row; gap: 6px; padding: 0 14px; font-size: 15px; border-bottom: 2px solid transparent; }
  .tabbar a[aria-current="page"] { border-bottom-color: var(--brand); }
  .tabbar svg { display: none; }
  .badge { position: static; margin-left: 2px; }
  .layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 40px; padding: 0 24px; }
  main { max-width: none; padding: 28px 0; }
  h1 { font-size: 26px; }
  .actions { grid-template-columns: repeat(4, auto); justify-content: start; }
  .actions .wide { grid-column: auto; }
  .toast { bottom: 24px; }
  .doc-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
  .doc-layout .doc-preview { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow: auto; }
}
@media (min-width: 1200px) {
  .layout { grid-template-columns: minmax(0, 760px) 300px; }
  .rail { display: block; padding-top: 28px; }
  .rail .ad-unit { position: sticky; top: 124px; }
}

/* 단순한 목록·검색창 */
.hero { text-align: center; padding: 28px 0 8px; }
.hero h1 { font-size: 24px; margin-bottom: 16px; }
.searchbox { display: flex; border: 2px solid var(--brand); border-radius: 12px; overflow: hidden; background: var(--surface); }
.searchbox input { flex: 1; border: 0; border-radius: 0; min-height: 54px; font-size: 17px; padding: 0 16px; background: transparent; outline: none; }
.searchbox button { border: 0; background: var(--brand); color: var(--brand-ink); padding: 0 22px; font-size: 16px; font-weight: 700; cursor: pointer; }
.summary { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.summary a { color: var(--text); text-decoration: none; }
.summary b { color: var(--brand); }
.list-grid { border-top: 1px solid var(--line); }
.list-grid .card.link { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 14px 2px; }
.list-grid .card.link:hover { background: var(--surface-2); }
@media (max-width: 1199px) { .rail { display: none; } }

/* 무료 탐색 중심의 웹·앱 화면 */
:root { --radius: 16px; }
:root:not([data-theme="dark"]) { --brand: #235de5; --brand-soft: #edf3ff; }
body { background: var(--surface-2); }
.topbar { gap: 16px; min-height: 64px; }
.header-partner { margin-left: auto; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.layout main { min-width: 0; width: 100%; }
.hero { text-align: left; padding: 30px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.eyebrow { display: block; color: var(--brand); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.hero h1 { font-size: clamp(25px, 3vw, 38px); line-height: 1.4; letter-spacing: -.055em; margin: 12px 0; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-copy { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.searchbox { border-width: 1px; box-shadow: 0 4px 14px #235de50a; }
.searchbox input { width: 0; font-size: 14px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; font-size: 13px; font-weight: 650; }
.hero-links a { text-decoration: none; }
.hero-links a:last-child { color: var(--muted); }
.summary { text-align: left; font-size: 12px; }
.free-strip { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.free-strip > span { background: var(--ok-bg); color: var(--ok); font-size: 10px; font-weight: 800; border-radius: 6px; padding: 7px; }
.free-strip p { flex: 1; margin: 0; font-size: 13px; }
.free-strip small { color: var(--muted); font-size: 11px; }
.free-strip a { font-size: 11px; text-decoration: none; white-space: nowrap; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: 30px; margin-bottom: 14px; }
.section-heading h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.04em; }
.section-heading > a { font-size: 12px; text-decoration: none; white-space: nowrap; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.category-grid a { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 17px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.category-grid a:hover { border-color: var(--brand); transform: translateY(-2px); }
.category-symbol { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; background: var(--brand-soft); color: var(--brand); font-size: 19px; border-radius: 11px; }
.category-grid b { font-size: 11px; font-weight: 650; }
.category-grid small { font-size: 10px; color: var(--muted); margin-top: 4px; }
.list-grid { display: grid; grid-template-columns: 1fr; gap: 10px; border: 0; }
.list-grid .card.link { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface); }
.list-grid .card.link:hover { border-color: var(--brand); background: var(--surface); }
.card-title { letter-spacing: -.025em; line-height: 1.6; }
.card { background: var(--surface); }
.start-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 24px; margin: 26px 0; border-radius: 16px; border: 1px solid var(--line); background: var(--brand-soft); }
.start-panel h2 { margin-top: 7px; }
.start-panel p { margin: 0; }
.ad-unit { margin: 28px 0; background: var(--surface); }
.ad-unit.ad-rail { min-height: 270px; border-style: dashed; }
.ad-own { padding: 36px 24px 24px; gap: 10px; }
.ad-own b { font-size: 17px; line-height: 1.6; }
.ad-own span { font-size: 13px; color: var(--muted); }
.ad-tag { top: 10px; left: 12px; }
.ad { position: relative; padding-top: 20px; }
.page-intro { padding: 25px 0; }
.page-intro h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.5; letter-spacing: -.045em; margin: 12px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.feature-grid .card { margin: 0; padding: 20px; }
.feature-grid h2 { margin: 10px 0; }
.partner-label { color: var(--ad); background: var(--ad-bg); border-radius: 4px; font-size: 10px; padding: 4px 7px; }
.partner-steps { padding-left: 24px; color: var(--muted); font-size: 14px; line-height: 2; }
.partner-cta { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--brand-soft); margin-top: 24px; }
.partner-cta h2 { margin-top: 0; }
.site-footer nav { flex-wrap: wrap; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (min-width: 900px) {
  .tabbar { top: 64px; }
  .layout { gap: 28px; }
  main { padding-top: 28px; }
  .hero { padding: 36px; }
  .list-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 599px) {
  .header-partner { display: none; }
  .hero { padding: 24px 18px; }
  .hero-copy { font-size: 12px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .category-grid a { padding: 14px 4px; }
  .feature-grid { grid-template-columns: 1fr; }
  .free-strip { gap: 8px; }
  .free-strip a { white-space: normal; max-width: 48px; }
  .start-panel { padding: 20px; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brand: #91b4ff; --brand-soft: #1d3150; } }

/* 하단 사업자 정보 */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 18px 16px 24px; color: var(--muted); font-size: 12px; text-align: center; }
.site-footer nav { display: flex; justify-content: center; gap: 14px; margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a b { color: var(--text); font-weight: 600; }
.site-footer p { margin: 2px 0; }

/* 광고 칸 */
.ad-unit { position: relative; margin: 16px 0; border: 1px solid var(--line); border-radius: 8px; min-height: 90px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--surface); }
.ad-unit.ad-rail { min-height: 600px; margin: 0; }
.ad-unit ins { width: 100%; }
.ad-tag { position: absolute; top: 4px; left: 6px; font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; background: var(--surface); }
.ad-empty a { color: var(--muted); font-size: 13px; text-decoration: none; }
.ad-own { display: grid; gap: 2px; padding: 16px; color: inherit; text-decoration: none; text-align: center; }
.ad-own small { color: var(--muted); }

@media (max-width: 380px) { .actions { grid-template-columns: 1fr; } .stats b { font-size: 19px; } .rows { grid-template-columns: 1fr; } .rows dt { margin-top: 6px; } }
@media print {
  .topbar, .tabbar, .no-print, .ad, .toast { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  main { max-width: none; padding: 0; }
  .doc-preview { border: 0; padding: 0; }
}

/* 검색엔진용 지역·주제 링크 (collector/build_seo.mjs가 index.html에 넣음) */
.seo-index { max-width: 1080px; margin: 24px auto 0; padding: 0 16px; font-size: 13px; color: var(--muted); }
.seo-index h2 { font-size: 14px; margin: 0 0 6px; color: var(--text); }
.seo-index a { color: var(--muted); text-decoration: none; }
.seo-index a:hover { text-decoration: underline; }

/* 0.11: 자가점검·결과 기록·달력 */
.sc-list { list-style: none; padding: 0; margin: 4px 0 10px; font-size: 13px; }
.sc-list li { padding: 3px 0; }
.sc-list li.ok { color: var(--ok); }
.sc-list li.todo { color: var(--muted, #667); }
.result { border-radius: 999px; padding: 1px 8px; font-size: 12px; background: var(--surface-2); }
.result.selected { background: var(--ok-bg); color: var(--ok); }
.result.rejected { background: var(--no-bg); color: var(--no); }
.result.pass1 { background: var(--check-bg); color: var(--check); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 12px; }
.stat-row div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; text-align: center; }
.stat-row b { display: block; font-size: 20px; }
.stat-row span { font-size: 12px; color: var(--muted, #667); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-head h1 { font-size: 20px; margin: 8px 0; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 8px 0 12px; }
.cal-w { text-align: center; font-size: 12px; color: var(--muted, #667); padding: 4px 0; }
.cal-d { min-height: 52px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; padding: 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font: inherit; }
.cal-d.today { border-color: var(--brand); font-weight: 700; }
.cal-d.sel { background: var(--brand-soft); }
.cal-d i { font-style: normal; display: flex; align-items: center; gap: 2px; }
.cal-d small { font-size: 11px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 3px 0 6px; vertical-align: middle; }
.cal-d .dot { margin: 0; }
.dot.saved { background: var(--brand); }
.dot.ok { background: var(--ok); }

/* 0.12: 사업 프로필 여러 개·보고서 */
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; font: inherit; cursor: pointer; }
.space-bar { margin: 8px 0 12px; }
.space-bar .actions { margin-top: 4px; }
@media print { .stat-row div { border-color: #ccc; } table.files { font-size: 11px; } }

/* 0.13: 계정·팀 */
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 8px 0 10px; }
.consent input { margin-top: 3px; }
.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; }
.team-item .card-title { margin-bottom: 8px; }
#teamBody .row { display: flex; gap: 8px; }
#teamBody .row input { flex: 1; min-width: 0; }

/* 0.14: 검색 우선 화면. NeoSkor 청록·세이지, 광고는 별도 표시 유지. */
:root:not([data-theme="dark"]), :root[data-theme="light"] {
  --bg: #f6f8f7; --surface: #ffffff; --surface-2: #eef3ef;
  --brand: #245b58; --brand-soft: #e8f0e8; --brand-ink: #ffffff;
  --text: #203139; --muted: #586b70; --line: #dce5df;
}
.hero { background: var(--brand-soft); border-radius: 18px; }
.searchbox { box-shadow: 0 4px 16px #20313908; border-radius: 10px; }
.quick-search { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 12px 0 16px; }
.quick-search span { font-size: 12px; color: var(--muted); margin-right: 2px; }
.quick-search button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.quick-search button:hover { border-color: var(--brand); color: var(--brand); }
.doc-preview > p { line-height: 1.85; }
.ad-unit, .ad { margin-top: 24px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #142025; --surface: #1b2b31; --surface-2: #24383d; --brand: #a3d4c5; --brand-soft: #263e3c; --brand-ink: #142025; --text: #e5efec; --muted: #b1c4c1; --line: #39514e; }
}
:root[data-theme="dark"] { --bg: #142025; --surface: #1b2b31; --surface-2: #24383d; --brand: #a3d4c5; --brand-soft: #263e3c; --brand-ink: #142025; --text: #e5efec; --muted: #b1c4c1; --line: #39514e; }
@media print { .ad-unit, .rail, .quick-search, .seo-index { display: none !important; } }

/* 0.14: 자체 SVG 아이콘 */
.ico { display: inline-block; vertical-align: -0.2em; flex: none; }
.category-symbol { width: 40px; height: 40px; border-radius: 12px; }
.category-symbol .ico { width: 22px; height: 22px; vertical-align: 0; }
.chip .chip-ico { margin-right: 4px; vertical-align: -3px; opacity: .85; }
.btn .ico { margin-right: 6px; vertical-align: -4px; }
.saved-mark { display: inline-flex; align-items: center; gap: 3px; color: var(--brand); }
.sc-list li { display: flex; gap: 6px; align-items: flex-start; }
.sc-list li .ico { margin-top: 2px; }
.sc-list li.ok .ico { color: var(--ok); }
