/* 진단 도구 · 사이트 관리 화면 전용. 색·글꼴·상단바·푸터는 brand.css */
.muted { color: var(--muted); }
main { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; position: relative; }

/* 히어로 */
.hero { text-align: center; padding: 48px 0 56px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--muted); box-shadow: var(--shadow);
}
.pill b { padding: 2px 10px; border-radius: 999px; color: #fff; font-size: 12px; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); }
.pill-sm { padding: 5px 14px; }
.pill .dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--grad-a) 20%, transparent); }
.hero h1 { font-size: clamp(32px, 6vw, 60px); font-weight: 650; letter-spacing: -.045em; margin: 22px 0 18px; line-height: 1.15; }
.lead { color: var(--muted); font-size: clamp(15px, 2vw, 17px); margin: 0 0 32px; }
.search-box {
  position: relative; display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-lg);
}
.search-box:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: var(--shadow-lg), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.search-ic { width: 20px; height: 20px; color: var(--muted); margin-left: 14px; flex: none; }
#url { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; padding: 10px 4px; }
#submit {
  border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 700; color: #fff; white-space: nowrap;
  background: var(--ink);
  transition: transform .15s, background .15s;
}
#submit:hover { transform: translateY(-1px); background: #2a2d36; }
#submit:disabled { opacity: .6; cursor: wait; transform: none; }
.error { color: var(--fail); margin-top: 16px; font-weight: 600; }
.loading { color: var(--muted); margin-top: 16px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--track); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 공통 */
.card { background: var(--card-grad); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.block { padding-top: 88px; }
.sec-intro { text-align: center; margin-bottom: 36px; }
.sec-intro h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 650; letter-spacing: -.04em; margin: 18px 0 12px; }
.sec-intro p { color: var(--muted); margin: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 48px 0 14px; }
.sec-head h2 { font-size: 22px; font-weight: 800; }
.cat-ic {
  width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); box-shadow: 0 6px 14px -6px var(--grad-a);
}
.cat-ic svg { width: 17px; height: 17px; }
.cat-ic.lg { width: 44px; height: 44px; border-radius: 14px; }
.cat-ic.lg svg { width: 21px; height: 21px; }

/* 결과: 브라우저 창 프레임 */
.browser {
  border-radius: 22px; padding: 6px; background: linear-gradient(135deg, color-mix(in srgb, var(--grad-a) 55%, transparent), color-mix(in srgb, var(--grad-b) 30%, transparent));
  box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 8px 12px 12px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.addr {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--muted); font-size: 13px; text-decoration: none;
}
.addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr svg { width: 13px; height: 13px; flex: none; }
.addr:hover { color: var(--text); }
.browser-body { background: var(--surface); border-radius: 17px; padding: 26px; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.report-title { min-width: 0; }
.report-title h2 { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.report-title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; }
.btn:hover { background: var(--surface-2); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.stat-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.stat-ic svg { width: 18px; height: 18px; }
.stat-ic.s-accent { color: #fff; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); }
.stat-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.report-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; margin-top: 12px; }
.panel { padding: 20px 22px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.panel h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.gauge { position: relative; max-width: 300px; margin: 6px auto 0; }
.gauge svg { width: 100%; display: block; overflow: visible; }
.gauge-track, .gauge-value { fill: none; stroke-width: 16; stroke-linecap: round; }
.gauge-track { stroke: var(--track); }
.gauge-value { transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--grad-a) 45%, transparent)); }
.gauge-ticks line { stroke: var(--muted); stroke-width: 1.4; opacity: .35; }
.gauge-label { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.gauge-score { font-size: 54px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge-max { color: var(--muted); font-size: 13px; margin-top: 2px; }
.grade-line { text-align: center; margin-top: 14px; }
.grade { display: inline-block; font-weight: 800; font-size: 17px; padding: 6px 18px; border-radius: 999px; }
.grade-desc { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0 0; }

.cat-list { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.cat-row { display: flex; align-items: center; gap: 14px; }
.cat-main { flex: 1; min-width: 0; }
.cat-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; font-weight: 600; font-size: 14px; }
.cat-top b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cat-top small { font-size: 13px; color: var(--muted); font-weight: 600; }
.bar { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; }

.notes { margin-top: 12px; padding: 16px 20px; border-radius: 16px; background: var(--warn-bg); }
.notes strong { color: var(--warn); }
.notes ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.notes li { overflow-wrap: anywhere; }

/* 감점 항목 */
.priority { padding: 4px 0; overflow: hidden; }
.priority-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; padding: 16px 22px; align-items: start; }
.priority-row > * { min-width: 0; }
.priority-row + .priority-row { border-top: 1px solid var(--border); }
.rank {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.priority-name { font-weight: 700; }
.priority-detail { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.priority-advice { font-size: 14px; margin-top: 6px; white-space: pre-line; }
.lost { font-weight: 800; color: var(--fail); white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* 전체 결과 */
.groups { display: flex; flex-direction: column; gap: 12px; }
.group { overflow: hidden; }
.group-head { display: flex; align-items: center; gap: 12px; padding: 14px 22px; font-weight: 800; border-bottom: 1px solid var(--border); }
.group-head .cat-ic { width: 30px; height: 30px; }
.group-head .cat-ic svg { width: 15px; height: 15px; }
.group-score { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
details.item + details.item { border-top: 1px solid var(--border); }
details.item summary {
  list-style: none; display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center;
  padding: 13px 22px; cursor: pointer;
}
details.item summary > * { min-width: 0; }
details.item summary::-webkit-details-marker { display: none; }
details.item summary:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.item-name { font-weight: 600; }
.item-detail { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.item-score { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.item-score small { color: var(--muted); font-weight: 500; }
.item-body { padding: 0 22px 16px 96px; font-size: 14px; }
.item-body p { margin: 0 0 8px; }
.item-body .label { font-weight: 700; margin-right: 6px; }
.item-body .advice { white-space: pre-line; }
.item-body ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); overflow-wrap: anywhere; }

.badge { display: inline-block; text-align: center; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
details.item .badge { width: 52px; padding: 3px 0; }
.s-pass { color: var(--pass); background: var(--pass-bg); }
.s-warn { color: var(--warn); background: var(--warn-bg); }
.s-fail { color: var(--fail); background: var(--fail-bg); }

/* 등급 색 */
.g-S { --g: var(--g-S); } .g-A { --g: var(--g-A); } .g-B { --g: var(--g-B); }
.g-C { --g: var(--g-C); } .g-D { --g: var(--g-D); } .g-F { --g: var(--g-F); }
.grade[class*="g-"], .badge[class*="g-"] { color: var(--g); background: color-mix(in srgb, var(--g) 13%, transparent); }

/* 등급표 */
.grades { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; }
.grade-card {
  position: relative; padding: 18px 16px 20px; border-radius: 20px; min-width: 0;
  background: var(--card-grad); border: 1px solid var(--border); box-shadow: var(--shadow);
}
/* 직급이 높을수록 카드가 높아지는 계단 */
.grade-card:nth-child(1) { min-height: 250px; }
.grade-card:nth-child(2) { min-height: 232px; }
.grade-card:nth-child(3) { min-height: 214px; }
.grade-card:nth-child(4) { min-height: 196px; }
.grade-card:nth-child(5) { min-height: 178px; }
.grade-card:nth-child(6) { min-height: 160px; }
.grade-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 70px; border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--g) 16%, transparent), transparent); pointer-events: none;
}
.grade-card.current { border-color: var(--g); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g) 22%, transparent), var(--shadow-lg); transform: translateY(-6px); }
.grade-top { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.grade-step { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--g); }
.here { font-size: 11px; font-weight: 800; color: #fff; background: var(--g); padding: 2px 9px; border-radius: 999px; }
.grade-name { position: relative; font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--g); }
.grade-range { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 2px 0 8px; }
.grade-card-desc { font-size: 13px; color: var(--muted); line-height: 1.5; word-break: keep-all; }

/* 분석 항목 */
.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.item-cat { padding: 6px 0 6px; min-width: 0; overflow: hidden; }
.item-cat-head { display: flex; align-items: center; gap: 14px; padding: 16px 22px 14px; }
.item-cat-head h3 { font-size: 18px; font-weight: 800; }
.item-cat-head span { color: var(--muted); font-size: 13px; font-weight: 600; }
.item-cat ul { list-style: none; margin: 0 12px 6px; padding: 4px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.item-cat li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; }
.item-cat li + li { border-top: 1px solid var(--border); }
.item-cat li b { font-size: 14px; }
.item-cat li p { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.item-cat li > span { font-size: 12px; font-weight: 800; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 2px 9px; border-radius: 999px; align-self: flex-start; }

/* ── SEO / GEO 전환 ── */
.grad-text { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mode-tabs {
  display: inline-flex; gap: 4px; padding: 5px; margin: 0 auto 16px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.mode-tab {
  display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 140px; padding: 9px 20px; border: 0; border-radius: 14px;
  background: transparent; color: var(--muted); font-weight: 800; font-size: 15px;
}
.mode-tab small { font-size: 11.5px; font-weight: 600; opacity: .8; }
.mode-tab:hover { color: var(--text); }
.mode-tab.active { color: #fff; background: var(--ink); }
.kind-badge { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; margin-bottom: 6px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.kind-badge.kind-geo { color: var(--g-B); background: color-mix(in srgb, var(--g-B) 13%, transparent); }
.s-na { color: var(--muted); background: var(--surface-2); }
.raw-score { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); text-align: right; }

/* GEO: 페이지 유형 */
.types-panel { margin-top: 12px; }
.types-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.types-head p { margin: 2px 0 0; font-size: 13px; }
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.type-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--muted); user-select: none;
}
.type-chip input { display: none; }
.type-chip.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.type-chip i { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px; color: #fff; background: var(--accent); }
.priority-items { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.priority-items li { overflow-wrap: anywhere; }

/* GEO: 감지된 엔티티 */
.entities { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.entity { padding: 16px 18px; min-width: 0; }
.entity.off { opacity: .72; }
.entity-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.entity-head > div { min-width: 0; overflow-wrap: anywhere; }
.entity-head b { font-size: 15px; }
.entity-head .muted { font-size: 12.5px; }
.entity-count { font-weight: 800; font-size: 13px; color: var(--accent); white-space: nowrap; }
.entity-tags { display: flex; gap: 6px; margin: 8px 0 12px; }
.tag-on { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: transparent; }
.tag-rich { color: var(--g-B); background: color-mix(in srgb, var(--g-B) 12%, transparent); border-color: transparent; }
.entity-bars { display: flex; flex-direction: column; gap: 7px; }
.entity-bars > div { display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.entity-bars b { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.entity-miss { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 12.5px; }
.entity-miss .label { font-weight: 700; color: var(--fail); margin-right: 2px; }
.entity-miss.soft .label { color: var(--muted); }
.miss { padding: 2px 8px; border-radius: 7px; background: var(--fail-bg); color: var(--fail); font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.entity-miss.soft .miss { background: var(--surface-2); color: var(--muted); }
.miss b { font-family: inherit; }
.undefined-types { margin-top: 12px; padding: 16px 20px; font-size: 14px; }
.undefined-types > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.raw { margin-top: 12px; overflow: hidden; }
.raw summary { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; }
.raw summary::-webkit-details-marker { display: none; }
.raw summary .muted { font-size: 13px; }
.raw pre {
  margin: 0; padding: 16px 20px; max-height: 480px; overflow: auto; border-top: 1px solid var(--border);
  background: var(--surface-2); font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.5; white-space: pre;
}

/* 버튼 변형 */
.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-primary { color: #fff; border-color: transparent; background: var(--ink); }
.btn-primary:hover { background: #2a2d36; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-ghost.danger:hover { color: var(--fail); background: var(--fail-bg); }
.btn-done { color: var(--pass); background: var(--pass-bg); border-color: transparent; }
.btn-grad {
  border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 700; color: #fff; white-space: nowrap;
  background: var(--ink);
}
.btn-grad:disabled { opacity: .6; cursor: wait; }
.spinner.sm { width: 12px; height: 12px; border-color: rgba(255, 255, 255, .4); border-top-color: #fff; }

/* ── 사이트 관리 페이지 ── */
.page-hero { text-align: center; padding: 28px 0 36px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 650; letter-spacing: -.04em; margin: 18px 0 10px; }
.page-hero .lead { margin: 0; }
.overview .stat { background: var(--card-grad); box-shadow: var(--shadow); padding: 18px; border-radius: 18px; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.stat-ic.s-pass, .stat-ic.s-warn, .stat-ic.s-fail { background: var(--pass-bg); }
.stat-ic.s-warn { background: var(--warn-bg); }
.stat-ic.s-fail { background: var(--fail-bg); }

.register { margin-top: 16px; padding: 24px; scroll-margin-top: 20px; }
.register-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.register-head h2 { font-size: 20px; font-weight: 800; }
.register-head p { margin: 2px 0 0; font-size: 14px; }
.site-form { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 12px; }
.site-form label, .dialog label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; min-width: 0; }
.site-form label em { color: var(--fail); font-style: normal; }
.site-form input, .dialog input, .dialog textarea, .toolbar input, .toolbar select {
  font: inherit; font-size: 15px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; min-width: 0; width: 100%; font-weight: 400;
}
.site-form input:focus, .dialog input:focus, .dialog textarea:focus, .toolbar input:focus, .toolbar select:focus {
  outline: 0; border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.f-memo { grid-column: 1 / 3; }
.f-submit { display: flex; align-items: flex-end; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 600 !important; color: var(--muted); cursor: pointer; padding-bottom: 12px; }
.check input { width: 16px !important; height: 16px; accent-color: var(--accent); }
.form-msg, .bulk-msg { margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.form-msg.ok, .bulk-msg.ok { color: var(--pass); }
.form-msg.err, .bulk-msg.err { color: var(--fail); }
.bulk-msg { margin: 0 0 12px; padding: 10px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); }

.block-sm { padding-top: 48px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.count { font-size: 13px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 2px 10px; border-radius: 999px; }
.count:empty { display: none; }
.toolbar-right { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar input { width: 220px; padding: 8px 14px; font-size: 14px; border-radius: 999px; }
.toolbar select { width: auto; padding: 8px 12px; font-size: 14px; border-radius: 999px; }
.toolbar .btn { padding: 8px 16px; }

.site-list { display: flex; flex-direction: column; gap: 12px; }
.site-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.site-row { display: grid; grid-template-columns: 184px 1fr 170px 210px; gap: 20px; align-items: center; padding: 18px 20px; }
.site-row > * { min-width: 0; }
.site-score {
  min-height: 96px; padding: 8px 4px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--g); background: color-mix(in srgb, var(--g) 11%, transparent);
}
a.site-score { text-decoration: none; transition: transform .15s; }
a.site-score:hover { transform: translateY(-2px); }
.site-score em { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; opacity: .75; }
.site-score span .delta { font-size: 11px; margin-left: 2px; }
.site-score b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.site-score span { font-size: 12.5px; font-weight: 800; }
.site-score.none { --g: var(--muted); }
.site-info h3 { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.site-domain { font-size: 13.5px; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.site-domain:hover { text-decoration: underline; }
.site-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.site-tags:empty { display: none; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.tag-warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.site-memo { margin: 6px 0 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.spark { width: 100%; height: 40px; display: block; overflow: visible; }
.spark .l-geo { stroke: var(--g-B) !important; }
.spark circle.l-geo { fill: var(--g-B); }
.legend { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; }
.legend i { width: 10px; height: 3px; border-radius: 2px; background: var(--accent); margin-left: 4px; }
.legend i.l-geo { background: var(--g-B); }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .spark-area { fill: color-mix(in srgb, var(--accent) 12%, transparent); }
.spark circle { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.spark-empty { height: 40px; display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--muted); border: 1px dashed var(--border); border-radius: 10px; }
.site-trend-meta { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 12px; white-space: nowrap; }
.delta { font-weight: 800; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--pass); }
.delta.down { color: var(--fail); }
.delta.flat { color: var(--muted); font-weight: 600; }
.site-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.empty-big { padding: 48px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-big h3 { margin-top: 10px; font-size: 18px; }
.empty-big p { margin: 0; }

/* 진단 결과 끝 상담 유도 */
.report-cta {
  position: relative; margin-top: 28px; padding: 30px 32px; border-radius: 24px; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--soft); border: 0;
}
.report-cta-k { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--acc); }
.report-cta h3 { font-size: 22px; font-weight: 800; margin: 6px 0 6px; }
.report-cta p { margin: 0; color: var(--ink2); font-size: 14.5px; max-width: 560px; }
.report-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.lead-list { display: flex; flex-direction: column; gap: 10px; }
.lead-row { display: flex; justify-content: space-between; gap: 18px; padding: 18px 20px; }
.lead-main { min-width: 0; }
.lead-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lead-top b { font-size: 16px; }
.lead-top a { color: var(--accent); }
.lead-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; flex: none; font-size: 13px; }
a.tag { text-decoration: none; color: var(--accent); }
@media (max-width: 640px) { .lead-row { flex-direction: column; } .lead-side { align-items: flex-start; } }

.dialog { border: 1px solid var(--border); border-radius: 22px; padding: 26px; width: min(460px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(15, 17, 21, .3); backdrop-filter: blur(3px); }
.dialog form { display: flex; flex-direction: column; gap: 14px; }
.dialog h2 { font-size: 20px; font-weight: 800; }
.dialog .muted { margin: -8px 0 0; font-size: 14px; }
.dialog textarea { resize: vertical; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

@media (max-width: 960px) {
  .site-row { grid-template-columns: 172px 1fr 150px; }
  .site-actions { grid-column: 1 / -1; justify-content: flex-start; }
}


@media (max-width: 960px) {
  .grades { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .grade-card { min-height: 0 !important; }
}
@media (max-width: 760px) {
  .hero { padding: 28px 0 40px; }
  .br-pc { display: none; }
  .search-box { flex-wrap: wrap; border-radius: 22px; padding: 8px; }
  .search-ic { display: none; }
  #url { padding: 10px 12px; }
  #submit { width: 100%; }
  .browser-body { padding: 18px 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: 1fr; }
  .grades { grid-template-columns: repeat(2, 1fr); }
  .items { grid-template-columns: 1fr; }
  .block { padding-top: 64px; }
  details.item summary { grid-template-columns: 56px 1fr; padding: 12px 16px; }
  .item-score { grid-column: 2; }
  .item-body { padding: 0 16px 14px; }
  .priority-row { padding: 14px 16px; grid-template-columns: 28px 1fr; }
  .lost { grid-column: 2; }
  .mode-tab { min-width: 0; padding: 8px 16px; }
  .entities { grid-template-columns: 1fr; }
  .site-form { grid-template-columns: 1fr; }
  .f-memo { grid-column: auto; }
  .f-submit { justify-content: space-between; }
  .register { padding: 18px 16px; }
  .toolbar-right, .toolbar input { width: 100%; }
  .toolbar input { flex: 1 1 100%; }
  .site-row { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .site-scores { max-width: 260px; }
  .site-score b { font-size: 26px; }
  .site-trend { grid-column: 1 / -1; }
}

@media print {
  .hero, #items-sec, .actions { display: none !important; }
  body { background: #fff; }
  .block { padding-top: 32px; }
  .card, .browser, .grade-card { box-shadow: none; break-inside: avoid; }
  .grade-card.current { transform: none; }
}
