/* 다시, 집으로 — 흰 카드와 옅은 회색 바탕, 노랑은 버튼과 강조에만 */
/* 글꼴 'Dasi Gothic'은 Pretendard(SIL OFL 1.1)를 줄인 파생본이고 이 사이트가 직접 보낸다(외부 글꼴 서버 접속 없음) */
@font-face { font-family: "Dasi Gothic"; src: url(/fonts/dasi-gothic-ksx.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #1b1c1e;
  --ink-2: #4a4d52;
  --muted: #6b7078;
  --line: #e5e7ea;
  --line-strong: #cfd3d8;
  --fill: #f1f2f4;
  --brand: #ffd43b;
  --brand-press: #f7c518;
  --brand-soft: #fff6d1;
  --ok: #0f7a4f;
  --ok-bg: #e4f5ec;
  --warn: #c92a2a;
  --warn-bg: #fdeceb;
  --lost: #c2410c;
  --paper: var(--bg);
  --font: "Dasi Gothic", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--bg); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.3; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic .dot { fill: currentColor; stroke: none; }

.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }
.wrap.mid { width: min(100% - 32px, 760px); }
.wrap.narrow { width: min(100% - 32px, 640px); }

/* 머리 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100% - 32px, 1080px); margin: 0 auto; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: url(/icon.png) center / cover; flex: none; }
.brand-tag { font-size: 12px; font-weight: 800; letter-spacing: 0; line-height: 1; padding: 4px 7px; border-radius: 7px; background: var(--brand-soft); color: var(--ink); }
.top-nav { display: flex; align-items: center; gap: 2px; }
.top-nav a:not(.btn) { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.top-nav a:not(.btn):hover { background: var(--fill); color: var(--ink); }
.top-nav a { flex: none; }
.top-nav a.nav-small { font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; margin-left: 6px; }
.top-nav .btn { margin-left: 8px; white-space: nowrap; }
body[data-page="board"] [data-nav="board"], body[data-page="post"] [data-nav="board"],
body[data-page="safety"] [data-nav="safety"], body[data-page="privacy"] [data-nav="safety"],
body[data-page="stats"] [data-nav="stats"], body[data-page="my"] [data-nav="my"], body[data-page="pet"] [data-nav="my"],
body[data-page="feedback"] .top-nav [data-nav="feedback"] { color: var(--ink); font-weight: 800; }

/* 꼬리 */
.foot { margin-top: 64px; padding: 26px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.7; }
.foot p { margin: 0 0 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; margin-bottom: 12px !important; }
.foot-links a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-links .policy { font-weight: 800; color: var(--ink); }

/* 휴대폰 아래 탭 */
.tabbar { display: none; }
@media (max-width: 719px) {
  .top-in { height: 54px; gap: 8px; }
  .top-nav a:not(.nav-keep) { display: none; }
  .top-nav a:not(.btn) { padding: 8px 8px; }
  .top-nav a.nav-small { padding: 5px 9px; margin-left: 0; }
  .top-nav .btn { margin-left: 6px; }
  .brand { gap: 8px; font-size: 17px; }
  .brand-mark { width: 28px; height: 28px; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 58px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
  .tabbar .ic { width: 24px; height: 24px; }
  .tabbar .tab-main .ic { width: 40px; padding: 0 8px; border-radius: 9px; background: var(--brand); color: var(--ink); stroke-width: 2.2; }
  .tabbar .tab-main { color: var(--ink); }
  body[data-page="home"] [data-tab="home"], body[data-page="board"] [data-tab="board"],
  body[data-page="my"] [data-tab="my"], body[data-page="pet"] [data-tab="my"] { color: var(--ink); font-weight: 800; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  body[data-page="register"] .tabbar, body[data-page="post"] .tabbar, body[data-page="admin"] .tabbar { display: none; }
  body[data-page="register"], body[data-page="admin"] { padding-bottom: 0; }
  body[data-page="post"] { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body[data-page="register"] .foot { display: none; }
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--ink); background: var(--card); text-decoration: none; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer;
}
.btn:hover { background: var(--fill); }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-press); border-color: var(--brand-press); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.big { min-height: 56px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14.5px; border-radius: 10px; }
.btn.block { width: 100%; margin-top: 18px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); text-decoration: underline; padding-inline: 8px; }
.btn.ghost:hover { background: transparent; color: var(--ink); }
.btn.danger { color: var(--warn); border-color: #efb8b8; }
.btn.danger:hover { background: var(--warn-bg); }
.btn.on { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.grow { flex: 1 1 0; min-width: 0; }
.linkbtn { font: inherit; font-size: 13.5px; background: none; border: 0; text-decoration: underline; cursor: pointer; color: var(--ink-2); padding: 4px 0; min-height: 32px; }

/* 딱지 */
.badge { display: inline-block; justify-self: start; font-size: 12.5px; font-weight: 800; line-height: 1.5; padding: 2px 9px; border-radius: 8px; background: var(--ink); color: #fff; }
.badge.lost { background: var(--lost); }
.badge.found { background: var(--ok); }
.badge.closed, .badge.hidden { background: var(--muted); }
.ai-tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 6px; background: var(--ink); color: #fff; }

/* 입력 */
.card { background: var(--card); border-radius: 16px; }
.card.pad { padding: 20px; margin-top: 16px; }
.card.pad h2 { font-size: 18px; margin: 0 0 4px; }
.card.pad p { margin: 0; color: var(--ink-2); }
.sheet { background: var(--card); border-radius: 16px; margin-top: 18px; }
.block { border: 0; margin: 0; padding: 22px 20px; border-top: 1px solid var(--line); min-width: 0; }
.block:first-child { border-top: 0; }
.block > legend { padding: 0; font-size: 18px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; float: left; width: 100%; }
.block > legend + * { clear: both; }
.label { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.label em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 4px; }
.field { display: block; min-width: 0; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 640px) { .row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.block > .field + .field, .block > .check + .field, .block > .row + .field { margin-top: 16px; }
input[type="text"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background-color: #fff;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; min-height: 50px;
}
select {
  -webkit-appearance: none; appearance: none; padding-right: 38px; background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7078' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
select:disabled { opacity: .5; }
textarea { resize: vertical; line-height: 1.6; }
::placeholder { color: #9aa0a8; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(255, 212, 59, .7); }
.inline-form { display: flex; gap: 8px; margin-top: 12px; }
.inline-form input { flex: 1; min-width: 0; }

.drop { position: relative; display: block; border: 1.5px dashed var(--line-strong); border-radius: 16px; padding: 20px; background: var(--fill); cursor: pointer; min-height: 180px; }
.drop:hover { border-color: var(--ink-2); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.drop-empty { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 22px 0; }
.drop-empty .ic { width: 34px; height: 34px; color: var(--ink-2); }
.drop-empty strong { font-size: 17px; }
.drop-empty span { color: var(--ink-2); font-size: 14.5px; }
.thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 132px; height: 132px; border-radius: 14px; overflow: hidden; background: #fff; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 6px; right: 6px; z-index: 2; border: 0; border-radius: 99px; width: 30px; height: 30px; background: rgba(27, 28, 30, .82); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.thumb-add { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 14px; border: 1.5px dashed var(--line-strong); color: var(--ink-2); font-size: 14px; font-weight: 600; background: #fff; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 12px 20px; min-width: 72px; text-align: center; font-weight: 700; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.seg.small span { padding: 10px 14px; min-width: 56px; font-size: 15px; }
.seg.pills { flex-wrap: nowrap; }
.seg.pills span { padding: 8px 14px; min-width: 0; font-size: 14.5px; border-radius: 99px; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: 15px; background: #fff; }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.chip input:disabled + span { opacity: .45; }
.sw { width: 14px; height: 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); flex: none; }
.sw.white { background: #fff; } .sw.black { background: #1d1d1d; } .sw.brown { background: #8a5a35; }
.sw.yellow { background: #f1c165; } .sw.gray { background: #9aa3a6; }
.sw.calico { background: conic-gradient(#fff 0 33%, #1d1d1d 0 66%, #f1a64b 0); }
.sw.tabby { background: repeating-linear-gradient(90deg, #7d7468 0 3px, #c9bfae 3px 6px); }
.sw.spotted { background: radial-gradient(circle at 35% 40%, #1d1d1d 0 3px, transparent 3.5px), radial-gradient(circle at 70% 65%, #1d1d1d 0 2.5px, transparent 3px), #fff; }

.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.form-error, .notice, .warn { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.fine { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin: 12px 0 0; }
.fine.center { text-align: center; }
.loading { margin: 40px 0; color: var(--muted); }
.empty { margin-top: 16px; padding: 22px 20px; border-radius: 16px; background: var(--card); color: var(--ink-2); }
#reg-turnstile:not(:empty), #tip-turnstile:not(:empty), #fb-turnstile:not(:empty) { margin-top: 14px; max-width: 100%; }

/* 화면 제목 */
.page-head { padding-top: 26px; }
.page-title { font-size: clamp(26px, 5.4vw, 34px); font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.lede { font-size: 16.5px; color: var(--ink-2); margin: 8px 0 0; max-width: 40em; }
.back { margin: 16px 0 0; font-size: 15px; }
.back a { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.back a:hover { color: var(--ink); }

/* 첫 화면 */
.hero { background: #fff; border-bottom: 1px solid var(--line); }
.hero-in { display: grid; gap: 28px; padding: 32px 0 36px; align-items: center; }
.hero h1 { font-size: clamp(30px, 7.6vw, 50px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.22; margin: 0; }
.hero-sub { font-size: clamp(16px, 2.2vw, 18.5px); line-height: 1.65; color: var(--ink-2); margin: 14px 0 0; max-width: 30em; }
.hero-live { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 7px 13px 7px 11px; border-radius: 99px; background: var(--fill); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero-live::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--ok); flex: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.filebtn:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.filebtn .ic { width: 22px; height: 22px; }
.filebtn.busy { opacity: .55; pointer-events: none; }
.hero .form-error { max-width: 30em; }
/* 사진 비교 예시 그림 */
.match-demo { background: var(--bg); border-radius: 24px; padding: 16px; display: grid; gap: 12px; }
.md-photos { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.md-photo { margin: 0; display: grid; gap: 6px; min-width: 0; }
.md-pic { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; }
.md-photo figcaption { font-size: 13px; font-weight: 700; color: var(--ink-2); text-align: center; }
.md-mark circle { fill: #1b1c1e; stroke: #fff; stroke-width: 2; }
.md-mark text { fill: #fff; font-size: 13px; font-weight: 800; text-anchor: middle; }
.md-link { display: grid; justify-items: center; gap: 2px; font-size: 12px; font-weight: 800; color: var(--ink-2); white-space: nowrap; padding-bottom: 22px; }
.md-link .ic { width: 24px; height: 24px; }
.md-result { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; }
.md-result .score { flex: none; }
.md-result strong { display: block; font-size: 15.5px; color: var(--ok); }
.md-points { list-style: none; counter-reset: p; display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 5px 0 0; padding: 0; font-size: 13.5px; color: var(--ink-2); }
.md-points li { counter-increment: p; display: flex; align-items: center; gap: 5px; }
.md-points li::before { content: counter(p); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; flex: none; }
.md-note { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
/* 우리 장점을 위에 크게(핵심 말에 얇은 형광펜), 그 아래 기존 방식은 작게 회색 줄 */
.swap-card { background: #fff; border-radius: 24px; padding: 28px 20px 12px; }
.swap-card h2 { font-size: clamp(21px, 3.4vw, 26px); font-weight: 800; margin: 0 0 6px; word-break: keep-all; }
.swap { list-style: none; margin: 0; padding: 0; }
.swap li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 16px 0; align-items: start; }
.swap-check { color: var(--ok); display: block; padding-top: 2px; }
.swap-check .ic { display: block; width: 24px; height: 24px; stroke-width: 2.6; }
.swap p { margin: 0; }
.swap-new { font-size: 19px; font-weight: 700; line-height: 1.45; color: var(--ink); word-break: keep-all; }
.hl { font-weight: 800; background: linear-gradient(transparent 60%, var(--brand) 60%, var(--brand) 96%, transparent 96%); }
.swap-was { margin-top: 6px; font-size: 14.5px; color: var(--muted); word-break: keep-all; }
.swap-old { text-decoration: line-through; text-decoration-color: var(--muted); text-decoration-thickness: 1px; }
@media (min-width: 760px) {
  .swap-card { padding: 36px 44px 20px; }
  .swap li { grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .swap-check { padding-top: 3px; }
  .swap-check .ic { width: 28px; height: 28px; }
  .swap-new { font-size: 23px; }
  .swap-was { font-size: 15px; }
}
@media (max-width: 480px) { .hero-cta .btn { flex: 1 1 100%; } }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.05fr .95fr; gap: 56px; padding: 64px 0 72px; }
  .match-demo { padding: 22px; gap: 14px; }
  .md-photos { gap: 12px; }
}
.sec { margin-top: 44px; }
@media (min-width: 720px) { .sec { margin-top: 64px; } }
.sec > h2, .sec-head h2 { font-size: clamp(21px, 3.4vw, 26px); font-weight: 800; margin: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 15px; flex-basis: 100%; }
.more-link { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.steps { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.steps li { counter-increment: s; position: relative; background: #fff; border-radius: 16px; padding: 20px 20px 22px; display: grid; gap: 6px; align-content: start; }
.steps li::after { content: counter(s); position: absolute; right: 20px; top: 18px; font-size: 15px; font-weight: 800; color: var(--muted); }
.step-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); margin-bottom: 6px; }
.step-ic .ic { width: 24px; height: 24px; }
.steps strong { font-size: 17px; }
.steps li > span:last-child { color: var(--ink-2); font-size: 15px; }
.trust { background: #fff; border-radius: 20px; padding: 26px 22px; display: grid; gap: 14px; }
.trust h2 { font-size: clamp(20px, 3.2vw, 24px); font-weight: 800; margin: 0; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-2); font-size: 15px; }
.trust-list li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }
.trust .btn { justify-self: start; }
@media (min-width: 760px) {
  .trust { grid-template-columns: 1fr auto; align-items: center; padding: 32px 36px; }
  .trust .btn { grid-column: 2; grid-row: 1 / span 2; }
}
.faq { background: #fff; border-radius: 16px; margin-top: 16px; overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 50px 18px 20px; font-weight: 700; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); }
.cta-band { background: var(--brand-soft); border-radius: 20px; padding: 32px 22px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.cta-band h2 { margin: 0; font-size: clamp(21px, 3.4vw, 26px); font-weight: 800; }
.cta-band p { margin: 0; color: var(--ink-2); max-width: 34em; }
.cta-band .btn { margin-top: 8px; }

/* 사진 카드 (게시판 글, 보호소 공고) */
.post-grid, .pgrid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .post-grid, .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .pgrid.scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x proximity; margin-right: -16px; padding: 0 16px 6px 0; scrollbar-width: none; }
  .pgrid.scroll::-webkit-scrollbar { display: none; }
  .pgrid.scroll > * { scroll-snap-align: start; }
}
.post-grid.loading { opacity: .55; }
.pcard { display: flex; flex-direction: column; min-width: 0; padding: 0; border: 0; font: inherit; color: inherit; text-align: left; text-decoration: none; background: #fff; border-radius: 16px; overflow: hidden; cursor: pointer; }
.pcard:hover .pc-title { text-decoration: underline; }
.pc-media { position: relative; display: block; aspect-ratio: 1; background: var(--fill); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-media .badge { position: absolute; left: 10px; top: 10px; }
.pc-ph { display: grid; place-items: center; width: 100%; height: 100%; color: #b4b9c0; }
.pc-ph .ic { width: 44px; height: 44px; }
.pc-body { display: grid; gap: 2px; padding: 12px 14px 14px; min-width: 0; }
.pc-title { font-size: 16px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-facts { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-where, .pc-date { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 13.5px; color: var(--muted); }
.pc-where .ic, .pc-date .ic { width: 15px; height: 15px; }
.pc-where span, .pc-date span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-top: 4px; }
.pcard.found .pc-media img { filter: grayscale(.6); opacity: .8; }

/* 보호소 공고 자세히 (작은 창) */
.modal { border: 0; padding: 0; border-radius: 20px; width: min(92vw, 440px); max-height: 88vh; overflow: auto; color: var(--ink); }
.modal::backdrop { background: rgba(27, 28, 30, .5); }
.modal-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--fill); }
.modal-body { padding: 18px 20px 20px; display: grid; gap: 12px; }
.modal-body h2 { margin: 0; font-size: 20px; }
.modal-body .fine { margin: 0; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 14.5px; }
.facts dt { color: var(--muted); white-space: nowrap; }
.facts dd { margin: 0; min-width: 0; }
.facts.big { font-size: 15.5px; gap: 8px 16px; }

/* 등록 단계 */
.register { padding-top: 12px; }
.wizard-top { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; }
.step-meter { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.step-bar { height: 100%; width: 25%; background: var(--ink); border-radius: 99px; transition: width .25s ease; }
.step-meter[data-step="2"] .step-bar { width: 50%; }
.step-meter[data-step="3"] .step-bar { width: 75%; }
.step-meter[data-step="4"] .step-bar { width: 100%; }
@media (prefers-reduced-motion: reduce) { .step-bar { transition: none; } }
.step-count { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wizard { background: #fff; border-radius: 20px; padding: 26px 20px 0; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step > legend { padding: 0; width: 100%; }
.step-title { font-size: clamp(23px, 5.6vw, 28px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; margin: 0; outline: none; }
.step-help { margin: 8px 0 20px; color: var(--ink-2); }
.step > .field, .step > .row, .step > .check, .step > .seg, .step > .drop { margin-top: 18px; }
.step > legend + .step-help + * { margin-top: 0; }
.step .consent-box { margin-top: 22px; padding: 16px; border-radius: 14px; background: var(--fill); display: grid; gap: 12px; }
.step .consent-box .check { margin-top: 0; }
.step-actions { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; margin: 28px -20px 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; }
@media (min-width: 640px) {
  .register { padding-top: 28px; }
  .wizard { padding: 36px 36px 0; }
  .step-actions { margin-inline: -36px; padding-inline: 36px; }
}

/* 내 등록 */
.my-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.my-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; background: #fff; text-decoration: none; }
.my-item:hover strong { text-decoration: underline; }
.my-item strong { display: block; font-size: 16.5px; }
.my-item span { color: var(--muted); font-size: 14px; }
.my-item .ic { color: var(--muted); }
.empty-card { margin-top: 18px; padding: 28px 20px; border-radius: 16px; background: #fff; text-align: center; display: grid; gap: 12px; justify-items: center; }
.empty-card p { margin: 0; color: var(--ink-2); }

/* 결과 화면 */
.profile { display: grid; gap: 18px; align-items: start; background: #fff; border-radius: 20px; padding: 20px; margin-top: 16px; }
@media (min-width: 760px) { .profile { grid-template-columns: 200px 1fr; gap: 24px; padding: 24px; } }
.photo-frame { margin: 0; border-radius: 16px; overflow: hidden; background: var(--fill); max-width: 220px; }
.photo-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.profile .page-title { font-size: clamp(22px, 4.6vw, 28px); }
.facts-line { margin: 8px 0 0; color: var(--ink-2); }
.ai-note { margin-top: 14px; padding: 14px 16px; background: var(--fill); border-radius: 14px; }
.ai-note p { margin: 8px 0 0; }
.ai-note ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.progress { margin-top: 16px; padding: 18px 20px; border-radius: 16px; background: var(--brand-soft); }
.progress ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.progress li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.progress li::before { content: ""; width: 14px; height: 14px; border-radius: 99px; border: 2px solid currentColor; flex: none; }
.progress li.active { color: var(--ink); }
.progress li.active::before { background: var(--brand); border-color: var(--ink); animation: beat 1.2s ease-in-out infinite; }
.progress li.done { color: var(--ink); }
.progress li.done::before { background: var(--ink); border-color: var(--ink); }
.progress p { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-2); }
@keyframes beat { 50% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .progress li.active::before { animation: none; } }
.panel { margin-top: 16px; padding: 20px; background: var(--card); border-radius: 16px; }
.panel h2 { font-size: 18px; margin: 0 0 6px; }
.panel p { margin: 0; color: var(--ink-2); }
.panel .fine { margin-top: 12px; color: var(--muted); }
.ntfy { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.ntfy summary { cursor: pointer; font-weight: 700; }
.ntfy p { margin-top: 8px; }
.topic { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; background: var(--fill); padding: 10px 12px; border-radius: 10px; color: var(--ink) !important; }
.keybox { margin-top: 24px; padding: 22px 20px; background: #fff; border-radius: 16px; }
.keybox h1 { font-size: 22px; margin: 0 0 6px; }
.keybox p { margin: 0; color: var(--ink-2); }
.results { margin-top: 36px; }
.results-head h2 { font-size: clamp(21px, 3.4vw, 26px); font-weight: 800; margin: 0; }
.results-head p { margin: 6px 0 0; color: var(--ink-2); }
.group { margin-top: 20px; }
.group:empty { display: none; }
.group > h3 { font-size: 17px; margin: 0 0 12px; }
.cards { display: grid; gap: 16px; }
@media (min-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
.match { background: var(--card); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.match.strong { box-shadow: 0 0 0 2px var(--ok); }
.match.ended { opacity: .72; }
.shots { position: relative; display: grid; grid-template-columns: 2fr 1fr; gap: 2px; background: var(--fill); aspect-ratio: 16 / 9; }
.shots.one { grid-template-columns: 1fr; }
.shots img { width: 100%; height: 100%; object-fit: cover; background: var(--fill); }
.shots .side { display: grid; gap: 2px; grid-template-rows: 1fr 1fr; min-height: 0; }
.shots .side img { min-height: 0; }
.shots .nophoto { display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.state-badge { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 8px; }
.m-body { padding: 16px 18px 4px; display: grid; gap: 10px; }
.verdict { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.score { display: inline-flex; align-items: baseline; gap: 1px; padding: 3px 10px; border-radius: 10px; background: var(--fill); font-size: 22px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
.score small { font-size: 13px; font-weight: 700; }
.strong .score { background: var(--ok-bg); color: var(--ok); }
.vlabel { font-weight: 700; }
.strong .vlabel { color: var(--ok); }
.m-title { font-size: 17px; margin: 0; }
.why { margin: 0; padding: 12px 14px; background: var(--fill); border-radius: 12px; font-size: 15px; }
.why .ai-tag { margin-right: 6px; }
.checks { margin: 4px 0 0; padding-left: 20px; font-size: 15px; }
.checks li + li { margin-top: 2px; }
.fb { display: flex; gap: 8px; flex-wrap: wrap; }
.fb .btn { min-height: 40px; padding: 0 14px; font-size: 14.5px; border-radius: 10px; }
.m-contact { margin-top: auto; padding: 14px 18px 18px; display: grid; gap: 8px; }
.m-contact .btn { width: 100%; }
.m-contact .none { color: var(--muted); font-size: 14.5px; }
.m-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13.5px; color: var(--muted); }
.m-meta .due { color: var(--warn); font-weight: 700; }
.queue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.queue-item { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; overflow: hidden; }
.queue-item img, .queue-item .ph { width: 84px; height: 84px; object-fit: cover; background: var(--fill); }
.queue-item div { padding: 8px 12px 8px 0; font-size: 14.5px; color: var(--ink-2); }
.queue-item strong { display: block; font-size: 15px; color: var(--ink); }
.queue-item a { font-weight: 700; }
.found-box { margin-top: 28px; background: var(--brand-soft); padding: 36px 24px; border-radius: 20px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.found-box p { font-size: 16.5px; margin: 0; color: var(--ink-2); max-width: 30em; }
.found-box .btn { margin-top: 10px; }
.board-panel.loud { box-shadow: 0 0 0 2px var(--brand); }
.bp-status { font-weight: 700; color: var(--ink) !important; }
.bp-form { display: grid; gap: 14px; margin-top: 14px; }
.bp-form .check { margin-top: 0; }

/* 찾아요 게시판 */
.filters { margin-top: 18px; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.filter-main { display: flex; gap: 8px; }
.filter-main input { border-radius: 14px; }
.filter-chips { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding: 2px 16px 2px 2px; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips > * { flex: none; }
/* 화면 낭독용 글자(.sr)가 가로 스크롤 줄 밖으로 삐져나가지 않게 기준을 잡아준다 */
.selchip, .field { position: relative; }
.selchip select { width: auto; min-height: 40px; padding: 6px 34px 6px 14px; border-radius: 99px; font-size: 14.5px; font-weight: 600; background-position: right 10px center; }
.more summary { cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--ink-2); padding: 6px 2px; }
.more .chips { margin-top: 10px; }
.search-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: stretch; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; min-height: 40px; }
.board-head p { margin: 0; font-weight: 700; }
.board-head .sort select { min-height: 40px; padding: 6px 34px 6px 12px; border-radius: 10px; font-size: 14.5px; }
#b-more { display: flex; margin: 20px auto 0; }
.scam { margin-top: 24px; }

/* 게시글 */
.post { display: grid; background: #fff; border-radius: 20px; overflow: hidden; margin-top: 12px; }
.post-photo { margin: 0; background: var(--fill); }
.post-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.post-info { padding: 22px 20px 24px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.post-info h1 { font-size: clamp(22px, 4.8vw, 28px); font-weight: 800; margin: 0; }
.post-info .ai-note { margin-top: 0; }
.post-body { margin: 0; white-space: pre-line; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-actions .spacer { flex: 1; }
@media (min-width: 820px) { .post { grid-template-columns: minmax(0, 400px) 1fr; } .post-info { padding: 28px 28px 30px; } }
.stickybar { display: none; }
@media (max-width: 719px) {
  .stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .post-actions .tip-link { display: none; }
}
.owner-box .actions { margin-top: 12px; }
.tip-sec, .comments { margin-top: 32px; }
.tip-sec h2, .comments h2 { font-size: 21px; font-weight: 800; margin: 0 0 12px; }
.tip-sheet { margin-top: 0; }
.tip-body { margin-top: 16px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.comment { background: var(--card); border-radius: 16px; padding: 14px 16px; }
.comment.by-owner { box-shadow: inset 4px 0 0 var(--brand); }
.comment.private { background: var(--brand-soft); }
.comment.is-hidden { opacity: .6; }
.c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c-head .tag { font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 6px; background: var(--ink); color: #fff; }
.c-head .tag.private { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.c-time { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.c-seen { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.c-body { margin: 6px 0 0; white-space: pre-line; }
.c-contact { margin: 8px 0 0; font-weight: 800; }
.c-photo { margin-top: 10px; max-width: 260px; border-radius: 12px; }
.c-acts { display: flex; gap: 14px; margin-top: 6px; }

/* 의견 보내기 */
.feedback .chips { margin-top: 4px; }
.fb-done { margin-top: 22px; padding: 28px 22px; background: var(--brand-soft); border-radius: 20px; }
.fb-done h2 { margin: 0; font-size: 22px; }
.fb-done p { color: var(--ink-2); }

/* 안심 안내, 처리방침 */
.safe-hero { background: #fff; border-radius: 20px; padding: 30px 22px 24px; margin-top: 16px; }
.safe-hero h1 { font-size: clamp(30px, 7.6vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.22; margin: 0; }
.safe-hero .lede { font-size: 17px; margin-top: 14px; max-width: 34em; }
.nots { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.nots h2 { font-size: 14.5px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px; }
.nots ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 20px; }
.nots li { font-size: clamp(21px, 5.2vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.4; text-decoration: line-through; text-decoration-color: var(--warn); text-decoration-thickness: .12em; }
@media (min-width: 720px) { .safe-hero { padding: 44px 40px 34px; } }
.safety .narrow-col { max-width: 640px; }
.safe-toc { margin-top: 24px; background: #fff; border-radius: 16px; overflow: hidden; }
.safe-toc ul { list-style: none; margin: 0; padding: 0; }
.safe-toc li + li { border-top: 1px solid var(--line); }
.safe-toc a { display: block; padding: 13px 18px; font-weight: 600; text-decoration: none; }
.safe-toc a:hover { background: var(--fill); }
.qa { margin-top: 44px; scroll-margin-top: 76px; }
.qa h2 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.qa .answer { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.qa p { color: var(--ink-2); }
.qa ul { padding-left: 20px; margin: 0; color: var(--ink-2); }
.qa li + li { margin-top: 6px; }
.watch { margin-top: 18px; padding: 16px 18px; background: var(--warn-bg); border-radius: 14px; }
.watch h3 { font-size: 16px; margin: 0 0 6px; color: var(--warn); }
.watch p { margin: 10px 0 0; }
.honest { padding: 20px; background: var(--card); border-radius: 16px; }
.table-wrap { overflow-x: auto; }
.keep { border-collapse: collapse; width: 100%; font-size: 15px; margin-top: 4px; }
.keep th, .keep td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.keep thead th { font-size: 13.5px; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line-strong); }
.keep tbody th { width: 36%; font-weight: 700; color: var(--ink); }
.keep td { color: var(--ink-2); }
.prose { padding-top: 8px; }
.prose h1 { font-size: clamp(26px, 5.4vw, 32px); font-weight: 800; letter-spacing: -0.03em; margin: 24px 0 8px; }
.prose h2 { font-size: 19px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.setup { margin-top: 48px; }

/* 관리 화면 */
.mod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mod-item { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mod-item .actions { margin-top: 0; }
.inbox { margin-top: 18px; padding: 16px; background: var(--card); border-radius: 16px; }
.inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inbox-head h2 { font-size: 18px; margin: 0; }
.inbox-head .check { margin: 0; }
.inbox-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.inbox-item { padding: 12px 14px; border-radius: 10px; background: var(--paper); }
.inbox-item.new { background: var(--brand-soft); box-shadow: inset 4px 0 0 var(--ink); }
.inbox-item p { margin: 6px 0 0; white-space: pre-line; }
.inbox-item .fine { margin-top: 4px; }
.inbox-item .actions { margin-top: 8px; }
.post-tool > .fine { margin: 8px 0 0; }
.pt-list { margin-top: 14px; }
.pt-list .mod-item > div:first-child { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.admin h1 { margin: 16px 0; }
.admin-grid { display: grid; gap: 14px; margin-top: 18px; }
.admin-grid section { background: var(--card); border-radius: 16px; padding: 16px; overflow-x: auto; }
.admin-grid h2 { font-size: 16px; margin: 0 0 8px; }
.admin table { border-collapse: collapse; font-size: 14px; width: 100%; }
.admin th, .admin td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin pre { margin: 0; font-size: 12.5px; white-space: pre-wrap; }

/* 관리 · 모니터링 — 차트 색은 색각 검증을 통과한 기본 팔레트 1·2번(주황은 대비 3:1 미만이라 값 표시와 표 보기를 함께 둔다) */
.viz {
  color-scheme: light;
  --series-1: #257de0; --series-1-hover: #1b64be; --series-2: #f47230;
  --grid: #e7e7e7; --axis: #c2c2c2; --ink-sec: #5a696d;
  --ok-fill: #257de0; --ok-track: #cce3fd; --warn-fill: #fbb315; --warn-track: #fdecbf; --crit-fill: #dc3c3d; --crit-track: #f6d2d2;
}
.admin, .stats { padding-top: 8px; }
.mon-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.mon-head h2, .ops h2 { margin: 0; font-size: 22px; }
.mon-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.range { font: inherit; font-size: 14px; font-weight: 700; padding: 6px 12px; min-height: 36px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.range[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.check.auto { margin: 0 0 0 8px; font-size: 14px; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 12px; }
.tile { background: #fff; border-radius: 16px; padding: 14px 16px; }
.t-label { font-size: 13.5px; color: var(--ink-sec); }
.t-value { font-size: 28px; font-weight: 700; line-height: 1.2; margin-top: 4px; }
.t-sub { font-size: 13px; color: var(--ink-sec); margin-top: 2px; }
.mon-grid { display: grid; gap: 14px; margin-top: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .mon-grid { grid-template-columns: 1fr 1fr; } .mon-card.wide { grid-column: 1 / -1; } }
.mon-card { background: #fff; border-radius: 16px; padding: 16px; min-width: 0; }
.mon-card h3 { margin: 0 0 10px; font-size: 16px; }
.mon.loading .tiles, .mon.loading .mon-grid { opacity: .55; transition: opacity .2s; }
.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.meter { display: grid; grid-template-columns: minmax(130px, 190px) 1fr minmax(210px, auto); gap: 4px 14px; align-items: center; font-size: 14px; }
@media (max-width: 620px) { .meter { grid-template-columns: 1fr auto; } .meter .m-bar { grid-column: 1 / -1; grid-row: 2; } }
.m-bar { height: 8px; border-radius: 99px; overflow: hidden; }
.m-fill { height: 100%; border-radius: 99px; }
.meter.ok .m-bar { background: var(--ok-track); } .meter.ok .m-fill { background: var(--ok-fill); }
.meter.warn .m-bar { background: var(--warn-track); } .meter.warn .m-fill { background: var(--warn-fill); }
.meter.crit .m-bar { background: var(--crit-track); } .meter.crit .m-fill { background: var(--crit-fill); }
.m-fig { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.m-state { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 12.5px; font-weight: 700; }
.m-state i { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.meter.ok .m-state i { background: var(--ok-fill); }
.meter.warn .m-state i { background: var(--warn-fill); border-radius: 1px; transform: rotate(45deg); }
.meter.crit .m-state i { background: var(--crit-fill); border-radius: 1px; }
.meters .fine { margin: 4px 0 0; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; }
.chart .base { stroke: var(--axis); stroke-width: 1; }
.chart text { font-size: 11.5px; fill: var(--ink-sec); font-variant-numeric: tabular-nums; }
.chart text.peak, .chart text.endlabel { fill: var(--ink); font-weight: 700; font-size: 12px; }
.chart .bar { fill: var(--series-1); }
.chart .bar.hover { fill: var(--series-1-hover); }
.chart .hit { fill: transparent; outline: none; }
.chart .hit:focus-visible { stroke: var(--ink); stroke-width: 1.5; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .l1 { stroke: var(--series-1); } .chart .l2 { stroke: var(--series-2); }
.chart .dot1 { fill: var(--series-1); stroke: #fff; stroke-width: 2; }
.chart .dot2 { fill: var(--series-2); stroke: #fff; stroke-width: 2; }
.chart .xhair { stroke: var(--axis); stroke-width: 1; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.legend i, .chart .tip .row i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; border-radius: 1px; }
.k1 { background: var(--series-1); } .k2 { background: var(--series-2); }
.chart .tip { position: absolute; pointer-events: none; line-height: 1.45; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 6px 16px -8px rgba(24, 38, 43, .35); padding: 8px 10px; font-size: 13px; min-width: 110px; z-index: 3; white-space: nowrap; }
.chart .tip .tv { font-weight: 800; font-size: 14px; color: var(--ink); }
.chart .tip .tl { color: var(--ink-sec); }
.chart .tip .row { display: flex; align-items: center; gap: 6px; }
.chart .tip .row i { margin-right: 0; }
.chart-tools { display: flex; justify-content: flex-end; margin-top: 2px; }
.linkbtn { font: inherit; font-size: 13px; background: none; border: 0; text-decoration: underline; cursor: pointer; color: var(--ink-2); padding: 4px 0; min-height: 32px; }
.table-wrap { overflow-x: auto; }
.viz td.num, .viz th.num { text-align: right; font-variant-numeric: tabular-nums; }
.viz tbody th { font-weight: 600; text-align: left; }
.viz tr.total td { font-weight: 800; border-top: 1.5px solid var(--ink); }
.viz table { border-collapse: collapse; font-size: 14px; width: 100%; }
.viz th, .viz td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stats .st-lede { font-size: 17px; max-width: 40em; margin: 12px 0 18px; color: var(--ink-2); }
.stats .st-h { font-size: 21px; margin: 34px 0 0; }
.stats .st-how { margin-top: 36px; max-width: 46em; }
.stats .mon-filters { margin-bottom: 4px; }
.stats.loading .tiles, .stats.loading .mon-grid { opacity: .55; transition: opacity .2s; }
.ops { margin-top: 40px; }


@media (max-width: 420px) {
  .block { padding: 20px 16px; }
  .seg span { padding: 11px 16px; min-width: 60px; }
}

/* 좁은 휴대폰: 위 줄에 이름, AI 매칭, 의견 보내기, 등록하기가 한 줄에 들어가게 */
@media (max-width: 379px) {
  .top-in { width: min(100% - 24px, 1080px); gap: 4px; }
  .brand { gap: 6px; font-size: 16px; }
  .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
  .brand-tag { font-size: 10.5px; padding: 3px 5px; }
  .top-nav a.nav-small { font-size: 12px; padding: 4px 6px; }
  .top-nav .btn.sm { font-size: 13px; padding: 0 8px; margin-left: 2px; min-height: 36px; }
}
