/* EverySearch — warm Land-book surface, plump Lenso-style controls,
   Perplexity-style evidence drawer. No emoji, no neon, no harsh borders. */

@font-face {
  font-family: "Pretendard Variable";
  src: url("/static/assets/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Variable";
  src: url("/static/assets/fonts/InterVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #f7f6f5;
  --surface: #ffffff;
  --surface-2: #f0efed;
  --surface-3: #e9e7e4;
  --ink: #1d1c1c;
  --body: #2b2a2a;
  --muted: #6e6d6b;
  --faint: #9a9895;
  --accent: #017c6e;
  --accent-hover: #01665a;
  --accent-soft: #e4f2ef;
  --accent-ring: rgba(1, 124, 110, 0.16);
  --strong: #017c6e;
  --strong-soft: #e3f2ee;
  --strong-ink: #01645a;
  --likely: #b45309;
  --likely-soft: #fbf0e1;
  --likely-ink: #96450a;
  --unlikely: #6e6d6b;
  --unlikely-soft: #efedeb;
  --ring: rgba(29, 28, 28, 0.07);
  --shadow-card: 0 1px 2px rgba(29, 28, 28, 0.04), 0 8px 24px rgba(29, 28, 28, 0.06);
  --shadow-lift: 0 2px 4px rgba(29, 28, 28, 0.05), 0 18px 44px rgba(29, 28, 28, 0.1);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --r-xl: 32px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 16px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 0.9, 0.28, 1);
  --font: "Pretendard Variable", "Inter Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 520px;
  background: radial-gradient(900px 420px at 50% -6%, rgba(1, 124, 110, 0.055), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(1, 124, 110, 0.18); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 246, 245, 0.82);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  transition: box-shadow 0.3s var(--ease);
}
.site-head.is-scrolled { box-shadow: 0 1px 0 rgba(29, 28, 28, 0.06), 0 10px 30px rgba(29, 28, 28, 0.05); }
.head-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 32px;
  height: 78px; display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, #039a89 0%, #017c6e 52%, #01665a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 16px rgba(1, 124, 110, 0.28);
  color: #fff;
}
.brand-mark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.brand-mark.small { width: 30px; height: 30px; border-radius: 11px; }
.brand-mark.small svg { width: 17px; height: 17px; }
.brand-text { display: flex; align-items: baseline; gap: 7px; }
.brand-text strong { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.brand-text span { font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: 0.01em; }
.head-nav { flex: 1; display: flex; justify-content: center; }
.head-right { display: flex; align-items: center; gap: 8px; flex: none; }

.tabs { display: flex; gap: 2px; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.tab {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 20px;
  border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
  transition: background 0.25s var(--ease), color 0.2s var(--ease), transform 0.35s var(--spring), box-shadow 0.25s var(--ease);
}
.tab .ic { width: 16px; height: 16px; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(29, 28, 28, 0.06), 0 4px 12px rgba(29, 28, 28, 0.06); }
.tab:active { transform: scale(0.97); }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px;
  border-radius: 999px; background: var(--surface); box-shadow: var(--specular), 0 0 0 1px var(--ring);
  font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.status-pill.is-busy .status-dot { background: var(--likely); box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.16); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform 0.35s var(--spring), box-shadow 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.965); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 20px rgba(1, 124, 110, 0.24);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px) scale(1.012); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 26px rgba(1, 124, 110, 0.28); }
.btn-ghost { background: var(--surface); color: var(--body); box-shadow: var(--specular), 0 0 0 1px var(--ring); height: 38px; padding: 0 15px; font-size: 13px; }
.btn-ghost:hover { transform: translateY(-1px); box-shadow: var(--specular), 0 0 0 1px rgba(29, 28, 28, 0.1), 0 6px 16px rgba(29, 28, 28, 0.06); }
.btn-quiet { color: var(--muted); background: transparent; }
.btn-quiet:hover { color: var(--ink); background: rgba(29, 28, 28, 0.05); }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ------------------------------------------------------------------ layout */
main { position: relative; z-index: 1; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.view { display: none; animation: viewIn 0.45s var(--ease); }
.view.is-active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero { padding: 58px 0 30px; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.hero h1 { font-size: 46px; line-height: 1.16; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.hero-sub { margin-top: 16px; font-size: 15.5px; line-height: 1.65; color: var(--muted); max-width: 580px; }

.card {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--specular), var(--shadow-card);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.card-head h2 .ic { width: 17px; height: 17px; color: var(--accent); }
.head-meta { display: flex; gap: 6px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px;
  border-radius: 999px; background: var(--surface-2); color: var(--muted);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}

/* ------------------------------------------------------------- upload card */
.upload-card {
  background: var(--surface); border-radius: var(--r-xl); padding: 12px;
  box-shadow: var(--specular), 0 1px 2px rgba(29, 28, 28, 0.04), 0 16px 48px rgba(29, 28, 28, 0.07);
}
.dropzone {
  position: relative; overflow: hidden; border-radius: 24px;
  border: 1.5px dashed rgba(29, 28, 28, 0.16);
  background: #fcfcfb;
  min-height: 274px; display: grid; place-items: center; text-align: center;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.3s var(--ease), transform 0.4s var(--spring);
}
.dropzone:hover { border-color: rgba(1, 124, 110, 0.4); background: #fbfdfc; }
.dropzone.is-drag { border-color: var(--accent); background: #f4fbf9; box-shadow: inset 0 0 0 4px rgba(1, 124, 110, 0.06); transform: scale(1.004); }
.dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(21, 20, 20, 0.1) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 46%, #000 18%, rgba(0, 0, 0, 0.55) 52%, transparent 82%);
  mask-image: radial-gradient(closest-side at 50% 46%, #000 18%, rgba(0, 0, 0, 0.55) 52%, transparent 82%);
  pointer-events: none;
}
.drop-inner { position: relative; padding: 30px 24px; display: flex; flex-direction: column; align-items: center; }
.drop-icon {
  width: 58px; height: 58px; border-radius: 21px; display: grid; place-items: center;
  background: var(--surface); color: var(--accent);
  box-shadow: var(--specular), 0 1px 2px rgba(29, 28, 28, 0.05), 0 10px 24px rgba(1, 124, 110, 0.12);
  margin-bottom: 16px;
}
.drop-icon .ic { width: 24px; height: 24px; }
.drop-inner h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.drop-inner p { margin-top: 7px; font-size: 13px; color: var(--muted); }
.drop-btn { margin-top: 18px; height: 42px; padding: 0 24px; font-size: 13.5px; }
.drop-hint { margin-top: 10px; font-size: 11.5px; color: var(--faint); }

.drop-busy { position: relative; width: min(420px, 86%); padding: 34px 8px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.busy-ring {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 0 rgba(1, 124, 110, 0.22); animation: ringPulse 2s infinite;
}
.busy-ring .ic { width: 26px; height: 26px; }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(1, 124, 110, 0.2); } 70% { box-shadow: 0 0 0 16px rgba(1, 124, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(1, 124, 110, 0); } }
.busy-copy { text-align: center; }
.busy-copy strong { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.busy-copy span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.busy-bar { width: 100%; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.busy-bar i { display: block; width: 38%; height: 100%; border-radius: 999px; background: var(--accent); animation: busySlide 1.15s var(--ease) infinite; }
@keyframes busySlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }

.upload-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 12px 8px; flex-wrap: wrap;
}
.mode-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--surface-2);
  transition: transform 0.35s var(--spring), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.chip .ic { width: 14px; height: 14px; }
.chip-active { background: var(--accent-soft); color: var(--strong-ink); box-shadow: inset 0 0 0 1px rgba(1, 124, 110, 0.12); }
.chip-action { background: var(--surface); color: var(--body); box-shadow: var(--specular), 0 0 0 1px var(--ring); }
.chip-action:hover { transform: translateY(-1px) scale(1.02); color: var(--accent); box-shadow: var(--specular), 0 0 0 1px var(--accent-ring), 0 6px 14px rgba(29, 28, 28, 0.06); }
.chip:active { transform: scale(0.96); }

.sample-block { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sample-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; flex: none; }
.sample-row { display: flex; gap: 6px; flex-wrap: wrap; }
.sample-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 5px;
  border-radius: 999px; background: var(--surface); color: var(--body);
  box-shadow: var(--specular), 0 0 0 1px var(--ring); font-size: 12px; font-weight: 600;
  transition: transform 0.35s var(--spring), box-shadow 0.25s var(--ease);
}
.sample-chip img { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.sample-chip:hover { transform: translateY(-1px) scale(1.02); box-shadow: var(--specular), 0 0 0 1px rgba(29, 28, 28, 0.1), 0 8px 18px rgba(29, 28, 28, 0.07); }
.sample-chip:active { transform: scale(0.96); }
.sample-chip.is-negative img { filter: saturate(0.65); }
.sample-skeleton { width: 118px; height: 34px; border-radius: 999px; background: var(--surface-2); animation: pulse 1.4s infinite; }

.notice-line {
  display: flex; align-items: center; gap: 9px; margin: 16px 6px 0;
  font-size: 12.5px; color: var(--muted);
}
.notice-line .ic { width: 16px; height: 16px; color: var(--accent); }
.notice-line p { flex: 1; }
.link-btn { font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ------------------------------------------------------------- query cards */
.search-output { margin-top: 30px; }
.query-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.query-card, .quality-card { padding: 22px; }
.query-stage {
  position: relative; margin-top: 16px; border-radius: 22px; overflow: hidden;
  background: var(--surface-2); min-height: 240px; max-height: 372px; padding: 8px;
  display: flex; align-items: center; justify-content: center;
}
.query-stage img { max-width: 100%; max-height: 356px; width: auto; height: auto; border-radius: 16px; }
.face-boxes { position: absolute; inset: 0; pointer-events: none; }
.face-box {
  position: absolute; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1.5px rgba(1, 124, 110, 0.85), 0 6px 16px rgba(1, 124, 110, 0.18);
  transition: opacity 0.2s var(--ease);
}
.face-box.is-muted { opacity: 0.35; }
.face-box span {
  position: absolute; left: -1.5px; top: -24px; height: 20px; padding: 0 8px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center;
}
.face-picker { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.face-pick-label { font-size: 11px; font-weight: 600; color: var(--faint); margin-right: 2px; }
.face-pick {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px;
  background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--muted);
  transition: transform 0.35s var(--spring), background 0.2s var(--ease), color 0.2s var(--ease);
}
.face-pick img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.face-pick.is-active { background: var(--accent-soft); color: var(--strong-ink); box-shadow: inset 0 0 0 1px rgba(1, 124, 110, 0.14); }
.face-pick:hover { transform: translateY(-1px) scale(1.02); }

.quality-top { display: flex; align-items: center; gap: 16px; margin: 18px 0 6px; }
.score-ring { position: relative; width: 76px; height: 76px; flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--surface-2); stroke-width: 7; }
.ring-value {
  fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 188.5; stroke-dashoffset: 188.5;
  transition: stroke-dashoffset 0.9s var(--ease), stroke 0.3s var(--ease);
}
.score-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 21px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.quality-copy strong { font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.quality-copy p { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.metric-list { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.metric { display: grid; grid-template-columns: 88px 1fr 54px; align-items: center; gap: 10px; }
.metric-label { font-size: 12px; color: var(--muted); }
.metric-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.metric-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.8s var(--ease); }
.metric-val { font-size: 11.5px; color: var(--body); text-align: right; font-variant-numeric: tabular-nums; }
.quality-note { margin-top: 14px; font-size: 10.5px; color: var(--faint); line-height: 1.55; padding-top: 12px; border-top: 1px solid rgba(29, 28, 28, 0.05); }
.quality-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(29, 28, 28, 0.05); display: flex; flex-direction: column; gap: 7px; }
.quality-foot div { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.quality-foot strong { color: var(--body); font-weight: 700; }
.qf-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.issue-list { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.issue-list li { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; color: var(--likely-ink); background: var(--likely-soft); padding: 8px 12px; border-radius: 12px; }
.issue-list li .ic { width: 14px; height: 14px; margin-top: 1px; }
.issue-list:empty { display: none; }

/* ---------------------------------------------------------------- results */
.results { margin-top: 38px; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.results-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.results-title h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.count-pill {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--specular), 0 0 0 1px var(--ring);
  font-size: 12px; font-weight: 700; color: var(--body); font-variant-numeric: tabular-nums;
}
.result-summary { font-size: 13px; color: var(--muted); }
.results-meta { display: flex; gap: 7px; align-items: center; }
.meta-chip { display: inline-flex; align-items: center; height: 27px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }

.legend { display: flex; gap: 8px; margin: 14px 0 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 12px;
  border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.01em;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.pill-strong { background: var(--strong-soft); color: var(--strong-ink); }
.pill-likely { background: var(--likely-soft); color: var(--likely-ink); }
.pill-unlikely { background: var(--unlikely-soft); color: #5b5a58; }
.pill-legend { background: var(--surface); box-shadow: var(--specular), 0 0 0 1px var(--ring); color: var(--muted); }

.result-list { display: flex; flex-direction: column; gap: 10px; }
.result-card {
  display: grid; grid-template-columns: 108px 156px minmax(0, 1fr) 96px; align-items: center; gap: 18px;
  padding: 16px 18px; border-radius: 24px; background: var(--surface);
  box-shadow: var(--specular), 0 1px 2px rgba(29, 28, 28, 0.03), 0 6px 18px rgba(29, 28, 28, 0.045);
  cursor: pointer; text-align: left; width: 100%;
  transition: transform 0.35s var(--spring), box-shadow 0.3s var(--ease);
}
.result-card:hover { transform: translateY(-2px); box-shadow: var(--specular), 0 2px 4px rgba(29, 28, 28, 0.05), 0 18px 40px rgba(29, 28, 28, 0.09); }
.result-card.is-dim { opacity: 0.82; }
.result-score { display: flex; flex-direction: column; gap: 6px; }
.result-pct { font-size: 26px; font-weight: 700; letter-spacing: -0.05em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.result-pct small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 1px; }
.score-bar { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.9s var(--ease); }
.result-card.v-likely .score-bar i { background: var(--likely); }
.result-card.v-unlikely .score-bar i { background: #b9b6b2; }
.result-card.v-unlikely .result-pct { color: var(--muted); }

.result-faces { display: flex; align-items: center; gap: 8px; }
.face-thumb {
  width: 58px; height: 58px; border-radius: 18px; object-fit: cover; background: var(--surface-2);
  box-shadow: 0 0 0 1px rgba(29, 28, 28, 0.05), 0 4px 10px rgba(29, 28, 28, 0.06);
}
.face-thumb.q { box-shadow: 0 0 0 1.5px rgba(1, 124, 110, 0.35), 0 4px 10px rgba(1, 124, 110, 0.1); }
.match-arrow { color: var(--faint); display: grid; place-items: center; }
.match-arrow .ic { width: 15px; height: 15px; }
.result-main { min-width: 0; }
.result-main h3 { font-size: 14.5px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-meta { display: flex; align-items: center; gap: 7px; margin-top: 5px; flex-wrap: wrap; }
.platform-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--body); font-size: 10.5px; font-weight: 700;
}
.result-domain { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.result-date { font-size: 11.5px; color: var(--faint); }
.result-snippet { margin-top: 6px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dup-tag { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px; border-radius: 999px; background: var(--likely-soft); color: var(--likely-ink); font-size: 10.5px; font-weight: 700; }
.result-open {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 36px; padding: 0 14px;
  border-radius: 999px; background: var(--surface-2); color: var(--body); font-size: 12px; font-weight: 700;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.3s var(--spring);
}
.result-open .ic { width: 13px; height: 13px; }
.result-card:hover .result-open { background: var(--accent-soft); color: var(--strong-ink); }
.result-open:active { transform: scale(0.95); }

.no-results {
  padding: 46px 24px; text-align: center; border-radius: 24px; background: var(--surface);
  box-shadow: var(--specular), var(--shadow-card);
}
.no-results strong { display: block; font-size: 15px; color: var(--ink); }
.no-results p { margin-top: 6px; font-size: 13px; color: var(--muted); }

.group-head { display: flex; align-items: center; gap: 10px; margin: 8px 2px 2px; }
.group-line { flex: 1; height: 1px; background: rgba(29, 28, 28, 0.07); }
.show-more {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.3s var(--spring);
}
.show-more .ic { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.show-more:hover { background: var(--surface-2); color: var(--ink); }
.show-more.is-open .ic { transform: rotate(-90deg); }
.show-more:active { transform: scale(0.96); }
.weak-group { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.weak-group .result-card { background: rgba(255, 255, 255, 0.72); }

/* --------------------------------------------------------------- skeleton */
.search-loading { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.skeleton-card { background: var(--surface); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--specular), var(--shadow-card); display: flex; flex-direction: column; gap: 10px; }
.sk { display: block; border-radius: 10px; background: linear-gradient(100deg, var(--surface-2) 20%, #f7f6f4 40%, var(--surface-2) 60%); background-size: 220% 100%; animation: shimmer 1.4s infinite linear; }
.sk-line { height: 12px; }
.sk-block { height: 96px; border-radius: 16px; }
.w30 { width: 30%; } .w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; }
@keyframes shimmer { to { background-position: -220% 0; } }

/* -------------------------------------------------------------- empty state */
.empty-state { padding: 56px 24px 40px; text-align: center; color: var(--muted); }
.empty-art { position: relative; width: 84px; height: 84px; margin: 0 auto 18px; display: grid; place-items: center; }
.empty-orbit { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(29, 28, 28, 0.08), inset 0 0 0 12px rgba(255, 255, 255, 0.6); }
.empty-face { width: 52px; height: 52px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); color: var(--accent); box-shadow: var(--specular), var(--shadow-card); }
.empty-face .ic { width: 24px; height: 24px; }
.empty-state h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.empty-state p { margin-top: 7px; font-size: 13px; line-height: 1.7; }

/* ------------------------------------------------------------------- index */
.index-head { padding: 50px 0 26px; }
.index-head h1 { font-size: 38px; letter-spacing: -0.04em; }
.index-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.index-note .ic { width: 15px; height: 15px; color: var(--accent); }
.tips { margin-top: auto; padding: 14px 16px; border-radius: 18px; background: #faf9f8; }
.tips strong { display: block; font-size: 11.5px; font-weight: 700; color: var(--body); margin-bottom: 6px; }
.tips ul { display: flex; flex-direction: column; gap: 4px; }
.tips li { position: relative; padding-left: 12px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.tips li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { padding: 20px; display: flex; flex-direction: column; gap: 4px; border-radius: 24px; }
.stat-label { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.stat-card strong { font-size: 30px; font-weight: 700; letter-spacing: -0.045em; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-card strong.stat-engine { font-size: 20px; letter-spacing: -0.03em; margin: 6px 0 0; }
.stat-foot { font-size: 10.5px; color: var(--faint); }
.index-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.index-card { padding: 24px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 12px; }
.card-sub { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.input-shell { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--surface-2); transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease); }
.input-shell:focus-within { background: var(--surface); box-shadow: 0 0 0 1.5px var(--accent-ring), var(--shadow-card); }
.input-ic { color: var(--muted); width: 16px; height: 16px; }
.input-shell input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 13.5px; color: var(--ink); outline: none; }
.input-shell input::placeholder { color: var(--faint); }
.form-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.select-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 15px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; color: var(--muted); font-weight: 600; }
.select-pill select { border: 0; background: none; font-size: 12.5px; font-weight: 700; color: var(--body); padding: 0 10px 0 4px; height: 32px; border-radius: 999px; outline: none; cursor: pointer; }
#urlForm .btn, #imgForm .btn { height: 40px; font-size: 13px; padding: 0 18px; }
.inline-status { font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 14px; padding: 12px 14px; line-height: 1.6; }
.inline-status.is-ok { background: var(--strong-soft); color: var(--strong-ink); }
.inline-status.is-bad { background: var(--likely-soft); color: var(--likely-ink); }
.inline-status .mini-list { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }

.mini-drop { position: relative; display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 12px 14px; border-radius: 20px; background: var(--surface-2); cursor: pointer; overflow: hidden; transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.mini-drop:hover, .mini-drop.is-drag { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent-ring); }
.mini-drop img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; background: var(--surface); }
.mini-drop-copy { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.mini-drop-copy .ic { width: 20px; height: 20px; color: var(--accent); }
.mini-drop-copy span { display: flex; flex-direction: column; }
.mini-drop-copy strong { font-size: 12.5px; font-weight: 700; color: var(--body); }
.mini-drop-copy small { font-size: 11px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field span { font-size: 11px; font-weight: 600; color: var(--muted); padding-left: 4px; }
.field input { height: 40px; border: 0; border-radius: 14px; background: var(--surface-2); padding: 0 14px; font-size: 12.5px; color: var(--ink); outline: none; min-width: 0; transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.field input:focus { background: var(--surface); box-shadow: 0 0 0 1.5px var(--accent-ring); }

.indexed { margin-top: 34px; padding-bottom: 20px; }
.item-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.item-card {
  position: relative; display: flex; gap: 11px; align-items: center; padding: 12px;
  border-radius: 20px; background: var(--surface); box-shadow: var(--specular), 0 1px 2px rgba(29, 28, 28, 0.03), 0 6px 16px rgba(29, 28, 28, 0.04);
  transition: transform 0.35s var(--spring), box-shadow 0.25s var(--ease);
  min-width: 0;
}
.item-card:hover { transform: translateY(-2px); box-shadow: var(--specular), var(--shadow-lift); }
.item-thumb { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; background: var(--surface-2); flex: none; }
.item-copy { min-width: 0; flex: 1; }
.item-copy strong { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-copy span { display: block; font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.item-person { display: inline-flex; align-items: center; height: 19px; padding: 0 8px; margin-top: 4px; border-radius: 999px; background: var(--accent-soft); color: var(--strong-ink); font-size: 9.5px; font-weight: 700; }
.item-del { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--faint); background: var(--surface); box-shadow: 0 1px 4px rgba(29, 28, 28, 0.12); opacity: 0; transition: opacity 0.2s var(--ease), color 0.2s var(--ease), transform 0.3s var(--spring); }
.item-del .ic { width: 13px; height: 13px; }
.item-card:hover .item-del, .item-del:focus-visible { opacity: 1; }
.item-del:hover { color: #a33; transform: scale(1.08); }

/* ------------------------------------------------------------------ drawer */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(29, 28, 28, 0.26); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.3s var(--ease); }
.backdrop.is-open { opacity: 1; }
.drawer {
  position: fixed; z-index: 70; top: 92px; right: 16px; bottom: 16px;
  width: min(500px, calc(100vw - 32px));
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: 0 24px 80px rgba(29, 28, 28, 0.24), var(--specular);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(24px) scale(0.985); opacity: 0; pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.drawer.is-open { transform: none; opacity: 1; pointer-events: auto; }
.drawer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 22px 14px; }
.drawer-heading { min-width: 0; }
.drawer-kicker { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }
.drawer-heading h2 { margin-top: 6px; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.35; }
.drawer-body { padding: 0 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.verdict-block { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 22px; background: var(--surface-2); }
.verdict-num { font-size: 34px; font-weight: 700; letter-spacing: -0.05em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.verdict-num small { font-size: 14px; color: var(--muted); margin-left: 2px; }
.verdict-copy { flex: 1; min-width: 0; }
.verdict-copy .pill { height: 24px; font-size: 10.5px; }
.verdict-copy p { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.verdict-bar { height: 6px; border-radius: 999px; background: rgba(29, 28, 28, 0.07); overflow: hidden; margin-top: 8px; }
.verdict-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

.drawer section { margin-top: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-head h3 { font-size: 12.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.section-head span { font-size: 10.5px; color: var(--faint); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare figure { position: relative; border-radius: 20px; overflow: hidden; background: var(--surface-2); }
.compare img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.compare figcaption { position: absolute; left: 8px; bottom: 8px; height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--body); font-size: 10px; font-weight: 700; }

.check-list { display: flex; flex-direction: column; gap: 4px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; }
.check-row:nth-child(odd) { background: #faf9f8; }
.check-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.check-ic .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.check-ic.pass { background: var(--strong-soft); color: var(--strong-ink); }
.check-ic.partial { background: var(--likely-soft); color: var(--likely-ink); }
.check-ic.warn { background: var(--unlikely-soft); color: #7c7a77; }
.check-main { flex: 1; min-width: 0; }
.check-main strong { display: block; font-size: 12px; font-weight: 600; color: var(--body); }
.check-main span { display: block; font-size: 10.5px; color: var(--muted); }
.check-detail { font-size: 10.5px; color: var(--faint); text-align: right; max-width: 150px; }

.reason-list { display: flex; flex-direction: column; gap: 6px; }
.reason-list li { position: relative; padding: 9px 12px 9px 26px; font-size: 12px; color: var(--body); background: var(--strong-soft); border-radius: 12px; line-height: 1.55; }
.reason-list li::before { content: ""; position: absolute; left: 11px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--strong); }
.reason-list.caveat li { background: var(--likely-soft); color: var(--likely-ink); }
.reason-list.caveat li::before { background: var(--likely); }
.reason-list:empty::after { content: "해당 없음"; font-size: 11.5px; color: var(--faint); }

.audit { border-radius: 18px; background: #faf9f8; padding: 4px 14px; }
.audit-row { display: flex; gap: 14px; padding: 9px 0; font-size: 11.5px; border-bottom: 1px solid rgba(29, 28, 28, 0.05); }
.audit-row:last-child { border-bottom: 0; }
.audit-row dt { width: 74px; flex: none; color: var(--faint); }
.audit-row dd { margin: 0; color: var(--body); min-width: 0; word-break: break-word; }
.audit-row dd a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.context-quote { margin-top: 10px; font-size: 11.5px; line-height: 1.65; color: var(--muted); background: #faf9f8; border-radius: 14px; padding: 12px 14px; }
.engine-note { margin-top: 10px; font-size: 10.5px; color: var(--faint); line-height: 1.6; }
.drawer-actions { display: flex; gap: 8px; margin-top: 20px; }
.drawer-actions .btn { flex: 1; height: 44px; font-size: 13px; }
.llm-note { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--strong-ink); font-size: 11.5px; line-height: 1.6; }

/* ------------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(29, 28, 28, 0.3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-card { width: min(640px, 100%); max-height: 86vh; overflow-y: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: 0 30px 90px rgba(29, 28, 28, 0.3); animation: modalIn 0.35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 26px 26px 8px; }
.modal-head h2 { margin-top: 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.modal-body { padding: 10px 26px 26px; }
.notice-list { display: flex; flex-direction: column; gap: 14px; }
.notice-list li { display: flex; gap: 12px; }
.notice-ic { width: 30px; height: 30px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.notice-ic .ic { width: 15px; height: 15px; }
.notice-ic.ok { background: var(--strong-soft); color: var(--strong-ink); }
.notice-ic.warn { background: var(--likely-soft); color: var(--likely-ink); }
.notice-ic.note { background: var(--surface-2); color: var(--muted); }
.notice-list strong { font-size: 13px; font-weight: 700; color: var(--ink); }
.notice-list p { margin-top: 3px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(29, 28, 28, 0.06); }
.modal-foot p { font-size: 11.5px; color: var(--faint); }

/* ------------------------------------------------------------------- toast */
.toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; box-shadow: 0 12px 34px rgba(29, 28, 28, 0.28); animation: toastIn 0.35s var(--spring); }
.toast.is-bad { background: #8f3a2e; }
.toast .ic { width: 15px; height: 15px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ footer */
.site-foot { margin-top: 60px; padding: 30px 0 42px; }
.foot-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(29, 28, 28, 0.06); }
.foot-brand { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; color: var(--ink); flex: none; }
.foot-note { flex: 1; min-width: 240px; font-size: 11px; color: var(--faint); line-height: 1.6; }
.foot-stack { display: flex; gap: 6px; flex-wrap: wrap; }
.foot-stack span { font-size: 10px; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 5px 10px; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero h1 { font-size: 40px; }
  .result-card { grid-template-columns: 96px 138px minmax(0, 1fr) 86px; gap: 14px; }
  .item-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .head-inner { gap: 14px; padding: 0 22px; }
  .brand-text span { display: none; }
  .head-nav { justify-content: flex-end; }
  .wrap { padding: 0 22px; }
  .query-grid { grid-template-columns: 1fr; }
  .query-stage { max-height: 300px; }
  .query-stage img { max-height: 300px; }
  .index-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .search-loading { grid-template-columns: 1fr; }
  .search-loading .skeleton-card:last-child { display: none; }
}

@media (max-width: 720px) {
  .head-inner { height: 68px; gap: 10px; }
  .status-pill { display: none; }
  #refreshBtn { display: none; }
  .btn-ghost span { display: inline; }
  .site-head .btn-ghost span { display: none; }
  .site-head .btn-ghost { width: 38px; padding: 0; }
  .tab { padding: 0 15px; height: 36px; font-size: 13px; }
  .hero { padding: 38px 0 24px; }
  .hero h1 { font-size: 31px; letter-spacing: -0.038em; }
  .hero-sub { font-size: 14px; }
  .upload-card { padding: 8px; border-radius: 26px; }
  .dropzone { min-height: 232px; border-radius: 20px; }
  .drop-inner { padding: 24px 16px; }
  .drop-inner h2 { font-size: 17px; }
  .drop-inner p { font-size: 12px; padding: 0 10px; }
  .drop-hint { display: none; }
  .upload-toolbar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 6px 6px; }
  .mode-chips { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
  .mode-chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .sample-block { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sample-row { flex-wrap: wrap; overflow: visible; width: 100%; padding-bottom: 0; }
  .sample-row::-webkit-scrollbar { display: none; }
  .sample-chip { flex: none; }
  .notice-line { align-items: flex-start; margin: 14px 4px 0; font-size: 11.5px; line-height: 1.6; }
  .notice-line p { flex: 1; }
  .notice-line .link-btn { flex: none; }
  .query-card, .quality-card { padding: 18px; border-radius: 24px; }
  .quality-top { gap: 12px; }
  .results { margin-top: 30px; }
  .results-title h2 { font-size: 18px; }
  .result-summary { width: 100%; font-size: 12px; }
  .results-meta { width: 100%; }
  .result-card { grid-template-columns: 1fr auto; grid-template-areas: "score open" "faces faces" "main main"; gap: 10px 12px; padding: 14px; border-radius: 22px; }
  .result-score { grid-area: score; flex-direction: row; align-items: center; gap: 10px; }
  .result-pct { font-size: 22px; }
  .score-bar { width: 76px; }
  .result-open { grid-area: open; height: 32px; }
  .result-faces { grid-area: faces; }
  .result-main { grid-area: main; }
  .result-main h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .result-snippet { display: none; }
  .face-thumb { width: 52px; height: 52px; border-radius: 16px; }
  .drawer { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: min(86vh, 720px); border-radius: 28px; transform: translateY(30px) scale(0.99); }
  .drawer.is-open { transform: none; }
  .modal { padding: 12px; }
  .modal-card { border-radius: 26px; }
  .index-head h1 { font-size: 30px; }
  .stat-grid { gap: 8px; }
  .stat-card { padding: 16px; border-radius: 20px; }
  .stat-card strong { font-size: 24px; }
  .index-card { padding: 18px; border-radius: 24px; }
  .field-grid { grid-template-columns: 1fr; }
  .item-grid { grid-template-columns: 1fr; }
  .item-del { opacity: 1; }
  .foot-inner { gap: 12px; }
  .foot-note { order: 3; }
}

@media (max-width: 390px) {
  .head-inner { padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .brand-text strong { font-size: 15.5px; }
  .tab { padding: 0 12px; }
  .hero h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
