:root {
  --brand-navy-900: #0b1b33;
  --brand-navy-700: #1e3a5f;
  --brand-orange-500: #f26b2b;
  --brand-orange-600: #d95a1e;
  --trust-teal-500: #0e9384;
  --warn-amber-500: #d97706;
  --danger-red-500: #dc2626;
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-600: #4b5563;
  --neutral-800: #1f2937;
  --radius: 12px;
  --surface: #f4f7fb;
  --stage-new: #1e3a5f;
  --stage-contact: #0e9384;
  --stage-interest: #f26b2b;
  --stage-proposed: #6d28d9;
  --stage-won: #15803d;
  --stage-lost: #dc2626;
  font-family: "Pretendard", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--brand-navy-900);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(242, 107, 43, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(14, 147, 132, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  min-height: 100vh;
}

a { color: var(--brand-navy-700); }
.tabular { font-variant-numeric: tabular-nums; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--brand-navy-900);
  color: #fff;
}
.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
a.brand:hover { color: #fff; }
.brand span { color: var(--brand-orange-500); }
.brand .brand-ko { color: var(--brand-navy-700); }
.topbar .brand .brand-ko {
  color: #94a3b8;
  opacity: 1;
}
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
}
.nav a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 16px;
  font-size: 14px;
}
.nav a:hover, .nav a.active { color: #fff; }
.nav-admin {
  position: relative;
  display: inline-block;
  margin-left: 16px;
}
.nav-admin > summary {
  list-style: none;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 14px;
  user-select: none;
}
.nav-admin > summary::-webkit-details-marker { display: none; }
.nav-admin > summary::after { content: " ▾"; font-size: 10px; opacity: 0.8; }
.nav-admin[open] > summary,
.nav-admin > summary:hover { color: #fff; }
.nav-admin-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--neutral-200, #e2e8f0);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  z-index: 50;
}
.nav-admin-menu a {
  display: block;
  margin: 0;
  padding: 8px 10px;
  color: var(--brand-navy-700) !important;
  border-radius: 6px;
  font-size: 13px;
}
.nav-admin-menu a:hover,
.nav-admin-menu a.active {
  background: #f1f5f9;
  color: var(--brand-navy-900) !important;
}
.seal-banner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.seal-banner a {
  color: var(--brand-orange-600, #c2410c);
  font-weight: 600;
}
.admin-demoted {
  opacity: 0.92;
  border-top: 1px dashed var(--neutral-200, #e2e8f0);
  padding-top: 8px;
}
.admin-demoted .seal-note {
  color: #9a3412;
  font-weight: 500;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 24px; }

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.btn-primary { background: var(--brand-orange-500); color: #fff; }
.btn-primary:hover { background: var(--brand-orange-600); }
.btn-secondary {
  background: transparent;
  color: var(--brand-navy-900);
  border: 1px solid var(--brand-navy-700);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.risk-banner {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}

.gauges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.gauge {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.gauge h3 { margin: 0 0 8px; font-size: 13px; color: var(--neutral-600); font-weight: 600; }
.gauge .num { font-size: 28px; font-weight: 700; }
.bar {
  height: 8px;
  background: var(--neutral-100);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.bar > i {
  display: block;
  height: 100%;
  background: var(--trust-teal-500);
}
.bar.warn > i { background: var(--warn-amber-500); }
.bar.danger > i { background: var(--danger-red-500); }

.filters-shell { margin-bottom: 8px; }
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 8px 10px;
}
.filters-bar .filters-summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-navy-900);
}
.filters-shell .filters[hidden] { display: none; }
.filters-primary {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 10px;
}
.filters-place { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.filters-primary label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--neutral-600);
  min-width: 0;
}
.filters-primary input,
.filters-primary select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  font-size: 14px;
  min-width: 0;
  max-width: 100%;
  background: #fff;
}
.filters-shell .filters {
  margin-top: 8px;
  margin-bottom: 0;
}
.col-vis { position: relative; }
.col-vis > summary {
  list-style: none;
  cursor: pointer;
}
.col-vis > summary::-webkit-details-marker { display: none; }
.col-vis-menu {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}
.col-vis-menu label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--brand-navy-900);
}
table.leads:not(.cols-show-brand) .col-brand { display: none; }
table.leads:not(.cols-show-rev) .col-rev { display: none; }
table.leads.cols-hide-phone .col-phone,
table.leads.cols-hide-email .col-email,
table.leads.cols-hide-quality .col-quality,
table.leads.cols-hide-source .col-source { display: none; }
.save-view-name { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.save-view-name[hidden] { display: none; }
.save-view-name input { width: 16em; max-width: 46vw; padding: 4px 8px; font-size: 13px; }
.saved-views { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.saved-views[hidden] { display: none; }
.saved-view-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; font-size: 12px; color: var(--neutral-600); }
.saved-view-chip .btn { padding: 4px 8px; font-size: 12px; max-width: 100%; }
.saved-view-chip.is-default .saved-view-apply { font-weight: 700; }
.saved-view-star, .saved-view-del {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 14px;
  line-height: 1;
  color: var(--neutral-600);
}
.saved-view-chip.is-default .saved-view-star { color: var(--brand-navy-900); }
.phone-policy { margin: 4px 0 6px; font-size: 12px; }
.today-queue { margin-bottom: 20px; }
.today-queue .dash-title { margin-bottom: 4px; }
.dash-subtitle { margin: 8px 0; font-size: 20px; font-weight: 700; }

body.page-leads .wrap { max-width: 1400px; padding: 8px 16px 12px; }
body.page-leads .risk-banner { padding: 6px 10px; margin-bottom: 6px; font-size: 12px; }
body.page-leads .risk-banner:empty { display: none; }
body.page-leads .gauges {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}
body.page-leads .gauge { padding: 6px 10px; }
body.page-leads .gauge h3 { margin: 0; font-size: 11px; }
body.page-leads .gauge .num { font-size: 16px; line-height: 1.2; }
body.page-leads .gauge .bar { height: 4px; margin-top: 4px; }
body.page-leads .kpis {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
body.page-leads .kpi {
  flex: 1 1 0;
  padding: 6px 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
body.page-leads .kpi .label { font-size: 12px; }
body.page-leads .kpi .value { font-size: 16px; margin-top: 0; }
body.page-leads .note { margin: 0 0 6px; }
body.page-leads .toolbar { margin: 4px 0; gap: 6px; }
body.page-leads .toolbar .btn { padding: 6px 10px; font-size: 13px; }
body.page-leads .filters-bar .btn { padding: 6px 10px; font-size: 13px; }
body.page-leads table.leads { font-size: 13px; }
body.page-leads table.leads th,
body.page-leads table.leads td {
  padding: 2px 8px;
  height: auto;
  line-height: 1.25;
  white-space: nowrap;
}
body.page-leads table.leads th .th-sort {
  min-height: 0;
  min-width: 0;
  padding: 2px 0;
}
body.page-leads table.leads td.clip .clip-text,
body.page-leads table.leads .clip-row { max-width: 180px; }
body.page-leads .pager { margin-top: 4px; }

.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--neutral-600); min-width: 0; max-width: 100%; }
.filters input, .filters select {
  padding: 8px 10px;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  font-size: 14px;
  min-width: 0;
  max-width: 100%;
}
.detail-combo { position: relative; min-width: 0; max-width: 100%; }
.detail-combo-bar { display: flex; gap: 6px; min-width: 0; }
.detail-combo-bar input { flex: 1 1 auto; width: 100%; }
.detail-combo-reset { flex: 0 0 auto; padding: 8px 10px; }
.detail-combo-meta { font-size: 12px; color: var(--neutral-600); min-height: 1em; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; max-width: 100%; }
.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-100, #f3f4f6);
  color: var(--neutral-800, #1f2937);
  font-size: 12px;
  cursor: pointer;
}
.detail-chip-label {
  display: block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-chip-x { flex: 0 0 auto; color: var(--neutral-600); }
.detail-combo-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% - 4px);
  width: 100%;
  max-width: 100%;
  max-height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.detail-opt, .detail-opt-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--neutral-800, #1f2937);
  box-sizing: border-box;
}
/* .filters > label is column (0,1,1) and wins over .detail-opt (0,1,0).
   Column + .detail-opt-label { width:0 } collapses the option text to 0×0. */
.filters label.detail-opt {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--neutral-800, #1f2937);
}
.detail-opt input { flex: 0 0 auto; width: auto; padding: 0; margin: 0; }
.detail-opt-label {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-opt-empty { color: var(--neutral-600); }
.size-grade-filter .size-grade-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 6px 0 2px;
}
.size-grade-filter .size-grade-opts label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--neutral-700);
}
.size-grade-filter .size-grade-opts input {
  padding: 0;
  margin: 0;
  width: auto;
  border: none;
}
.badge.size-grade-chip {
  font-weight: 600;
  letter-spacing: 0.02em;
  min-width: 1.6em;
  text-align: center;
}
.advanced { margin: 8px 0 16px; font-size: 13px; color: var(--neutral-600); }
.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.kpi {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--neutral-200);
  padding: 16px;
}
.kpi .label { font-size: 13px; color: var(--neutral-600); }
.kpi .value { font-size: 30px; font-weight: 700; margin-top: 4px; }
.kpi-sub { font-size: 12px; color: var(--neutral-600); margin-top: 8px; }
.kpi-delta { font-size: 14px; font-weight: 600; margin-top: 6px; }
.kpi-delta.up { color: var(--trust-teal-500); }
.kpi-delta.down { color: var(--danger-red-500); }
.dash-title { margin: 0 0 8px; font-size: 28px; font-weight: 700; }
.dash-kpis { grid-template-columns: repeat(4, 1fr); }
.dash-section { margin-top: 24px; }
.dash-section h2 { font-size: 18px; margin: 0 0 12px; }
.note { font-size: 13px; color: var(--neutral-600); margin: 0 0 16px; }
.dash-facets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dash-facet {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.dash-facet h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 650;
  color: var(--brand-navy-800, #0f2744);
}
.facet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.facet-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--neutral-100, #f1f3f5);
}
.facet-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.facet-label { color: var(--neutral-800, #1f2937); font-weight: 500; }
.facet-meta { color: var(--neutral-600); font-size: 13px; white-space: nowrap; }
.facet-other { margin: 12px 0 0; }
@media (max-width: 960px) {
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-facets { grid-template-columns: 1fr; }
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--neutral-200);
  background: #fff;
  margin-bottom: 4px;
}
.table-scroll table.leads {
  border: 0;
  border-radius: 0;
  margin: 0;
  min-width: 720px;
}
table.leads {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  font-size: 14px;
}
.step-tab.active {
  background: var(--brand-navy-700);
  color: #fff;
  border-color: var(--brand-navy-700);
}
.status-toast {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--neutral-600);
  margin-top: 16px;
}
.status-toast:empty,
.status-toast[hidden] {
  display: none;
}
.auth-back {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--neutral-600);
  text-align: center;
}
.mock-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}
table.leads th, table.leads td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--neutral-100);
  text-align: left;
  height: 44px;
  vertical-align: middle;
}
table.leads td.clip { max-width: 220px; }
table.leads .clip-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 220px;
  white-space: nowrap;
}
table.leads .clip-text {
  display: block;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
table.leads .clip-row .clip-text { flex: 1 1 auto; }
table.leads th { background: var(--brand-navy-700); color: #fff; font-size: 13px; }
table.leads th .th-sort {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 2px;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
table.leads th .th-sort:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}
table.leads th .sort-ind { font-size: 12px; opacity: 0.45; line-height: 1; }
table.leads th[aria-sort="ascending"] .sort-ind,
table.leads th[aria-sort="descending"] .sort-ind { opacity: 1; }
table.leads th .th-sort:disabled {
  cursor: default;
  opacity: 0.85;
}
table.leads tr { cursor: pointer; }
table.leads tr:hover td { background: #f8fafc; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge.teal { background: #ccfbf1; color: #0f766e; }
.badge.navy { background: #e2e8f0; color: var(--brand-navy-700); }
.badge.gray { background: var(--neutral-100); color: var(--neutral-600); }
.badge.amber { background: #fef3c7; color: #b45309; }
.badge.danger { background: #fee2e2; color: #b91c1c; }
.status-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  max-width: 280px;
}
.phone-suspect-chip {
  margin-left: 4px;
}
.confirm-badge {
  font-weight: 500;
}
.call-log-row td {
  background: #f8fafc;
  cursor: default;
}
.call-log-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 8px;
}
.call-log-form,
.stage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.call-log-form label,
.stage-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--neutral-600);
}
.call-log-form input,
.call-log-form select,
.stage-row select {
  font: inherit;
  font-size: 14px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  min-height: 36px;
}
.call-timeline {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}
.call-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 14px;
  border: 0;
  font-size: 13px;
}
.call-timeline li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: var(--neutral-200);
}
.call-timeline li:last-child::before { display: none; }
.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 3px;
  background: var(--neutral-200);
  position: relative;
  z-index: 1;
}
.tl-ok .tl-dot { background: var(--stage-won); }
.tl-miss .tl-dot { background: #9ca3af; }
.tl-warn .tl-dot { background: var(--warn-amber-500); }
.tl-bad .tl-dot { background: var(--stage-lost); }
.tl-stage .tl-dot { background: var(--stage-new); }
.tl-body { min-width: 0; }
.tl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tl-time { color: var(--neutral-600); font-size: 12px; }
.result-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--neutral-100);
  color: var(--neutral-800);
}
.tl-ok .result-chip { background: #dcfce7; color: #166534; }
.tl-miss .result-chip { background: var(--neutral-100); color: var(--neutral-600); }
.tl-warn .result-chip { background: #ffedd5; color: #c2410c; }
.tl-bad .result-chip { background: #fee2e2; color: #b91c1c; }
.tl-stage .result-chip { background: #e2e8f0; color: var(--brand-navy-700); }
.tl-memo {
  margin: 8px 0 0;
  padding: 8px 10px;
  background: var(--surface);
  border-left: 3px solid var(--neutral-200);
  border-radius: 0 8px 8px 0;
  color: var(--brand-navy-900);
}
.call-log-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--neutral-600);
}
.empty-dots {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px dashed #9ca3af;
  flex: 0 0 auto;
}
.next-call-card {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.next-call-card strong { font-size: 15px; }
button.badge {
  cursor: pointer;
  border: none;
  font: inherit;
  padding: 2px 8px;
  border-radius: 4px;
}
.modal {
  position: fixed;
  z-index: 60;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  width: min(420px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
}
.modal[hidden] { display: none !important; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
  background: var(--warn-amber-500); margin-right: 4px;
}

.drawer {
  position: fixed; top: 0; right: 0; width: min(620px, 100%); height: 100%;
  background: var(--surface); box-shadow: -8px 0 24px rgba(11,27,51,.12);
  transform: translateX(100%); transition: transform .25s ease;
  z-index: 40; padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  flex: 0 0 auto;
  padding: 16px 20px 14px;
  background: #fff;
}
.drawer-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.drawer-id { min-width: 0; flex: 1; }
.drawer-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  white-space: normal;
  overflow-wrap: anywhere;
}
.drawer-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--neutral-800);
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.drawer-head-side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.stage-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--stage-new);
}
.stage-badge[data-stage="신규"] { background: var(--stage-new); }
.stage-badge[data-stage="연락함"] { background: var(--stage-contact); }
.stage-badge[data-stage="관심"] { background: var(--stage-interest); }
.stage-badge[data-stage="제안"] { background: var(--stage-proposed); }
.stage-badge[data-stage="성사"] { background: var(--stage-won); }
.stage-badge[data-stage="실패"],
.stage-badge[data-stage="거절"] { background: var(--stage-lost); }
.stage-badge[data-stage="연락 불가"] { background: var(--neutral-600); }
.drawer-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-navy-900);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.drawer-close:hover,
.drawer-close:focus-visible { background: var(--neutral-100); }
.stage-stepper {
  display: flex;
  align-items: flex-start;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  width: 100%;
}
.stage-stepper li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.stage-stepper li::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 50%;
  left: -50%;
  height: 2px;
  background: var(--neutral-200);
}
.stage-stepper li:first-child::before { display: none; }
.stage-stepper li.is-done::before,
.stage-stepper li.is-current::before { background: var(--stage-contact); }
.stage-stepper li.is-fail.is-current::before { background: var(--stage-lost); }
.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--neutral-200);
  background: #fff;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.stage-stepper li.is-done .step-dot {
  background: var(--stage-contact);
  border-color: var(--stage-contact);
}
.stage-stepper li.is-current .step-dot {
  background: var(--stage-new);
  border-color: var(--stage-new);
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.16);
}
.stage-stepper[data-stage="연락함"] li.is-current .step-dot { background: var(--stage-contact); border-color: var(--stage-contact); box-shadow: 0 0 0 4px rgba(14, 147, 132, 0.18); }
.stage-stepper[data-stage="관심"] li.is-current .step-dot { background: var(--stage-interest); border-color: var(--stage-interest); box-shadow: 0 0 0 4px rgba(242, 107, 43, 0.2); }
.stage-stepper[data-stage="제안"] li.is-current .step-dot { background: var(--stage-proposed); border-color: var(--stage-proposed); box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.18); }
.stage-stepper[data-stage="성사"] li.is-current .step-dot { background: var(--stage-won); border-color: var(--stage-won); box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.18); }
.stage-stepper[data-stage="실패"] li.is-current .step-dot,
.stage-stepper[data-stage="거절"] li.is-current .step-dot { background: var(--stage-lost); border-color: var(--stage-lost); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16); }
.step-label { font-size: 11px; color: var(--neutral-600); line-height: 1.2; }
.stage-stepper li.is-current .step-label { color: var(--brand-navy-900); font-weight: 700; }
.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  min-width: 0;
  max-width: 100%;
}
.drawer-actions .btn-primary:hover { background: var(--brand-orange-600); }
.drawer-actions .btn-secondary:hover { background: var(--neutral-100); }
.drawer-scroll {
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px 20px 28px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 1px 2px rgba(11, 27, 51, 0.06);
}
.field-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8eef6;
  color: var(--brand-navy-700);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.field-text { min-width: 0; }
.field-cap {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--neutral-600);
  margin-bottom: 2px;
}
.field-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy-900);
  overflow-wrap: anywhere;
}
.tel-link { color: var(--brand-navy-900); font-weight: 700; text-decoration: none; }
.tel-link:hover { text-decoration: underline; }
.copy-btn {
  margin-left: 6px;
  border: 1px solid var(--neutral-200);
  background: #fff;
  border-radius: 8px;
  padding: 2px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-navy-700);
  cursor: pointer;
  vertical-align: 1px;
}
.copy-btn:hover { background: var(--neutral-100); }
.copy-btn:focus-visible { outline: 3px solid var(--brand-orange-500); outline-offset: 2px; }
.surface-card {
  margin-top: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 1px 2px rgba(11, 27, 51, 0.06);
}
.surface-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.mini-grid b { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.source-badge {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8eef6;
  color: var(--brand-navy-700);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.source-fields { display: grid; gap: 8px; }
.source-fields div { min-width: 0; }
.source-more { margin-top: 8px; }
.source-more summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-navy-700);
}
.copy-toast {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: var(--brand-navy-900);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  z-index: 2;
}
.copy-toast[hidden] { display: none; }
.drawer p { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .stage-stepper { display: none; }
  .field-grid, .mini-grid { grid-template-columns: minmax(0, 1fr); }
  .drawer-head h2 { font-size: 22px; }
}
.backdrop {
  position: fixed; inset: 0; background: rgba(11,27,51,.35);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30;
}
.backdrop.open { opacity: 1; pointer-events: auto; }

.auth-card {
  max-width: 420px; margin: 64px auto; background: #fff;
  border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--neutral-200);
  box-shadow: 0 12px 40px rgba(11,27,51,.06);
}
.auth-card h1 { margin: 0 0 8px; font-size: 28px; }
.auth-card p { color: var(--neutral-600); margin: 0 0 20px; }
.auth-card input {
  width: 100%; padding: 10px 12px; margin-bottom: 10px;
  border: 1px solid var(--neutral-200); border-radius: 8px; font-size: 14px;
}
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; }
.toolbar { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.wizard-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
#step2 > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) {
  #step2 > div { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .filters-primary { grid-template-columns: 1fr 1fr; }
  .filters-place { grid-column: 1 / -1; }
  .filters { grid-template-columns: 1fr 1fr; }
  .detail-chip-label, table.leads .clip-text, table.leads .clip-row, table.leads td.clip { max-width: 140px; }
  .gauges, .kpis { grid-template-columns: 1fr; }
  .topbar {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 10px;
  }
  .nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 6px 14px;
  }
  .nav a {
    margin-left: 0;
    font-size: 13px;
  }
  .nav-admin {
    margin-left: 0;
  }
  .nav-admin-menu {
    right: auto;
    left: 0;
  }
  .wrap { padding: 16px; overflow-x: clip; }
  .wizard-steps { flex-wrap: wrap; }
  .filters { overflow-x: clip; }
}
@media (max-width: 480px) {
  .filters-primary { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
}

.brand-ko {
  font-size: 0.85em;
  font-weight: 600;
  margin-left: 0.35rem;
  opacity: 0.85;
  letter-spacing: -0.02em;
}

/* —— Landing v2 (/) — T-landing-redesign —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.btn:focus-visible,
.lq-nav-links a:focus-visible,
.lq-faq summary:focus-visible,
.lq-preview select:focus-visible,
.lq-table-scroll:focus-visible {
  outline: 3px solid var(--brand-orange-500);
  outline-offset: 2px;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  display: inline-block;
  text-decoration: none;
  color: #fff;
}
.btn-nav-cta {
  margin-left: 12px !important;
  padding: 8px 14px;
  text-decoration: none;
  color: #fff !important;
  font-size: 13px !important;
}

.landing-v2 {
  /* overflow-x:hidden creates a scroll containment that truncates Playwright fullPage shots */
  overflow-x: clip;
  scroll-padding-top: 72px;
}
.landing-v2 .lq-section,
.landing-v2 .lq-hero,
.landing-v2 .lq-cta-band,
.landing-v2 .lq-footer,
.landing-v2 #faq,
.landing-v2 #diff,
.landing-v2 #product,
.landing-v2 #priceCompare,
.landing-v2 #new-openings,
.landing-v2 #icp,
.landing-v2 #evidence {
  scroll-margin-top: 72px;
}
.landing-v2 .lq-nav .brand .brand-ko {
  color: var(--brand-navy-700);
  opacity: 0.9;
}
.landing-v2 .lq-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(247, 249, 252, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}
.landing-v2 .lq-nav .brand {
  color: var(--brand-navy-900);
  text-decoration: none;
  font-size: 22px;
}
.lq-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lq-nav-links a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--brand-navy-700);
  font-size: 14px;
  font-weight: 500;
}
.lq-nav-links a:hover { color: var(--brand-navy-900); }
.lq-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.lq-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-navy-900);
  border-radius: 1px;
}
.lq-nav-drawer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 28px 20px;
  background: #fff;
  border-bottom: 1px solid var(--neutral-200);
}
/* Author `display:flex` otherwise overrides UA [hidden] { display:none } */
.lq-nav-drawer[hidden] {
  display: none !important;
}
.lq-nav-drawer a {
  text-decoration: none;
  color: var(--brand-navy-700);
  font-weight: 600;
}

.lq-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 28px 48px;
}
.lq-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}
.lq-eyebrow {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-navy-700);
  letter-spacing: -0.02em;
  animation: land-fade-up 0.6s ease both;
}
.lq-eyebrow span { color: var(--brand-orange-500); }
.lq-hero-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--brand-navy-900);
  animation: land-fade-up 0.65s ease 0.06s both;
}
.lq-hero-sub {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--neutral-600);
  max-width: 36em;
  animation: land-fade-up 0.65s ease 0.12s both;
}
.lq-preview {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  animation: land-fade-up 0.65s ease 0.18s both;
}
.lq-preview-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-600);
}
.lq-preview-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lq-preview-row select {
  flex: 1 1 120px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--brand-navy-900);
  background: #fff;
}
.lq-preview-result {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-navy-700);
}
.lq-hero-cta { animation: land-fade-up 0.65s ease 0.24s both; }
.lq-hero-art {
  animation: land-fade-up 0.8s ease 0.16s both;
}
.lq-hero-art img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--neutral-200);
  box-shadow: 0 16px 40px rgba(11, 27, 51, 0.08);
}

.lq-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}
.lq-chips-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.lq-chip {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 14px 16px;
}
.lq-chip-accent {
  border-color: rgba(242, 107, 43, 0.35);
  background: linear-gradient(180deg, #fff 0%, #fff7f2 100%);
}
.lq-chip-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-600);
  margin-bottom: 4px;
}
.lq-chip-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-navy-900);
  letter-spacing: -0.02em;
}

.lq-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 28px;
}
.lq-section h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--brand-navy-900);
}
.lq-lead {
  margin: 0 0 28px;
  color: var(--neutral-600);
  font-size: 15px;
  line-height: 1.55;
}

.lq-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.lq-trust-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 20px;
}
.lq-trust-card img { margin-bottom: 10px; }
.lq-trust-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--brand-navy-900);
}
.lq-trust-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--neutral-600);
}

.lq-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lq-diff-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 18px 16px;
  min-width: 0;
}
.lq-diff-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--brand-navy-900);
}
.lq-diff-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--neutral-600);
  overflow-wrap: anywhere;
}

.lq-shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lq-shot {
  margin: 0;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.lq-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.lq-shot figcaption {
  padding: 10px 12px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--neutral-600);
}

.lq-compare {
  margin: 0 0 28px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
}
.lq-compare > h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--brand-navy-900);
}
.lq-compare > p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--neutral-600);
}
.lq-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lq-compare-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--neutral-100);
}
.lq-compare-card.is-ours {
  border-color: var(--brand-orange-500);
  background: #fff;
}
.lq-compare-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--brand-navy-700);
}
.lq-compare-price {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-navy-900);
}
.lq-compare-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-600);
}
.lq-compare-card p:last-child {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--neutral-600);
}

.lq-corpus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lq-corpus-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lq-corpus-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.lq-corpus-card h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--brand-navy-700);
  font-weight: 700;
}
.lq-metric {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-navy-900);
}
.lq-metric.sm { font-size: 28px; margin-top: 16px; }
.lq-caption {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--neutral-600);
}
.lq-gauge {
  margin-top: 12px;
  height: 8px;
  background: var(--neutral-100);
  border-radius: 999px;
  overflow: hidden;
}
.lq-gauge-fill {
  height: 100%;
  background: var(--trust-teal-500);
  border-radius: 999px;
  transition: width 0.6s ease;
}
.est-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-navy-700);
  background: #e8eef6;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.lq-transparency {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0 0;
  padding: 14px 16px;
  background: #f0fdfa;
  border: 1.5px solid var(--trust-teal-500);
  border-radius: 12px;
}
.lq-transparency p {
  margin: 0;
  font-size: 14px;
  color: #0f766e;
  line-height: 1.55;
  font-weight: 600;
}
.lq-source-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.lq-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--neutral-200);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-navy-700);
}

.lq-preview-wide {
  max-width: 640px;
}
.lq-preview-meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--neutral-600);
  line-height: 1.45;
}

.lq-icp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.lq-icp-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 20px;
}
.lq-icp-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--brand-navy-900);
}
.lq-icp-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--neutral-600);
}

.lq-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.lq-step-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 20px;
}
.lq-step-icon { display: block; margin-bottom: 12px; }
.lq-step-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--brand-navy-900);
}
.lq-step-card > p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--neutral-600);
  line-height: 1.5;
}
.lq-mini-mock {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 10px;
  background: var(--neutral-50);
  border-radius: 8px;
  border: 1px dashed var(--neutral-200);
}
.mock-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e8eef6;
  color: var(--brand-navy-700);
}
.mock-result {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--trust-teal-500);
  font-variant-numeric: tabular-nums;
}
.mock-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8eef6, #0e9384);
}
.mock-chip-sm {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8eef6;
  color: var(--brand-navy-700);
}
.mock-chip-sm.teal {
  background: #ccfbf1;
  color: #0f766e;
}
.mock-send {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-navy-900);
}

.lq-preview-section {
  position: relative;
}
.lq-preview-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("/assets/pattern-grid.svg"),
    linear-gradient(180deg, rgba(11, 27, 51, 0.04), rgba(11, 27, 51, 0.02));
  pointer-events: none;
  z-index: 0;
}
.lq-preview-section > * { position: relative; z-index: 1; }
.lq-preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lq-example-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--brand-navy-700);
  padding: 4px 10px;
  border-radius: 6px;
}
.lq-product-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 16px;
  align-items: start;
}
.lq-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  max-width: 100%;
}
.lq-lead-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.lq-lead-table th,
.lq-lead-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--neutral-100);
  white-space: nowrap;
}
.lq-lead-table th {
  font-size: 12px;
  color: var(--neutral-600);
  background: #f8fafc;
  font-weight: 700;
}
.lq-lead-table tr.is-selected td {
  background: #f0f7ff;
}
.q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.q-badge.q-hi { background: var(--trust-teal-500); }
.q-badge.q-mid { background: var(--brand-navy-700); }

.lq-drawer-frame {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(11, 27, 51, 0.06);
}
.lq-drawer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-navy-900);
}
.lq-drawer-meta {
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--neutral-600);
}
.lq-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lq-drawer-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--neutral-100);
  font-size: 13px;
  color: var(--brand-navy-900);
}
.lq-drawer-list li span:first-child { color: var(--neutral-600); }
.lq-drawer-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--neutral-600);
}

.lq-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  padding-top: 14px; /* room for Pro popular banner */
  grid-auto-rows: 1fr;
}
.lq-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 22px 16px 20px;
}
.lq-price-card.is-popular {
  border-color: var(--brand-navy-900);
  background: linear-gradient(180deg, #0b1b33 0%, #1e3a5f 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 27, 51, 0.22);
  margin-top: 0;
  /* keep same vertical padding as siblings so 4-card heights align */
  padding-top: 22px;
}
.lq-popular-banner {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-orange-500);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  z-index: 1;
}
.lq-price-list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  color: var(--neutral-600);
  line-height: 1.55;
  flex: 1;
}
.lq-price-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--brand-navy-700);
}
.lq-price-card.is-popular h3 { color: #cbd5e1; }
.lq-price-num {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-navy-900);
  font-variant-numeric: tabular-nums;
}
.lq-price-card.is-popular .lq-price-num { color: #fff; }
.lq-price-num span {
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-600);
}
.lq-price-card.is-popular .lq-price-num span { color: #94a3b8; }
.lq-price-quota {
  margin: 8px 0 14px;
  font-size: 13px;
  color: var(--neutral-600);
}
.lq-price-card.is-popular .lq-price-quota { color: #cbd5e1; }
.lq-price-card.is-popular .lq-price-list { color: #e2e8f0; }
.lq-kspam-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--neutral-600);
  text-align: center;
}

.lq-faq details {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.lq-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-navy-900);
  list-style: none;
}
.lq-faq summary::-webkit-details-marker { display: none; }
.lq-faq summary::after {
  content: "+";
  float: right;
  color: var(--brand-navy-700);
  font-weight: 700;
}
.lq-faq details[open] summary::after { content: "–"; }
.lq-faq p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--neutral-600);
  line-height: 1.55;
}

.lq-cta-band {
  margin: 24px 0 0;
  padding: 64px 28px;
  text-align: center;
  background: linear-gradient(135deg, #0b1b33 0%, #1e3a5f 100%);
  color: #fff;
}
.lq-cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.5vw, 36px);
  letter-spacing: -0.03em;
  color: #fff;
}
.lq-cta-band p {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 15px;
}

.lq-footer {
  border-top: 1px solid var(--neutral-200);
  padding: 32px 28px 48px;
  text-align: center;
  background: rgba(255, 255, 255, 0.65);
}
.footer-brand {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}
.footer-brand span { color: var(--brand-orange-500); }
.footer-links a {
  margin: 0 10px;
  font-size: 13px;
  color: var(--brand-navy-700);
}
.footer-copy {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--neutral-600);
}

@keyframes land-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .lq-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .lq-hero-art { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
  /* Pivot: keep headline above the fold (copy before art) */
  .landing-pivot .lq-hero-art { order: 2; }
  .landing-pivot .lq-hero-copy { order: 1; }
  .lq-steps { grid-template-columns: 1fr; }
  .lq-trust-grid { grid-template-columns: 1fr; }
  .lq-diff-grid { grid-template-columns: 1fr 1fr; }
  .lq-shot-grid { grid-template-columns: 1fr; }
  .lq-compare-grid { grid-template-columns: 1fr; }
  .lq-icp-grid { grid-template-columns: 1fr 1fr; }
  .lq-corpus-grid-3 { grid-template-columns: 1fr; }
  .lq-chips-4 { grid-template-columns: 1fr 1fr; }
  .lq-product-stage { grid-template-columns: 1fr; }
  .lq-price-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 961px) {
  .lq-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .lq-hero-art { order: 0; max-width: none; }
  .lq-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lq-price-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .lq-nav-links { display: none; }
  .lq-nav-toggle { display: flex; }
  .lq-chips { grid-template-columns: 1fr; }
  .lq-chips-4 { grid-template-columns: 1fr; }
  .lq-corpus-grid { grid-template-columns: 1fr; }
  .lq-icp-grid { grid-template-columns: 1fr; }
  .lq-price-grid { grid-template-columns: 1fr; }
  .lq-diff-grid { grid-template-columns: 1fr; }
  .lq-compare { padding: 16px; }
  .lq-hero { padding: 24px 16px 32px; }
  .lq-section { padding: 48px 16px; }
}
@media (min-width: 721px) {
  .lq-nav-drawer { display: none !important; }
}

/* —— Outreach funnel (§4.5) —— */
.outreach-page .outreach-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.outreach-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--neutral-600);
}
.outreach-filter select {
  padding: 8px 10px;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  font-size: 14px;
  min-width: 200px;
  background: #fff;
}
.outreach-dry-banner[data-dry-run="1"] {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
  font-weight: 600;
}
.outreach-section {
  margin-top: 20px;
}
.outreach-section h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.outreach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.funnel-bar {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 120px;
  padding: 12px 8px 0;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.funnel-seg {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  position: relative;
  height: 100px;
}
.funnel-seg-fill {
  width: 100%;
  max-width: 64px;
  background: var(--brand-navy-700);
  border-radius: 8px 8px 0 0;
  transition: height 0.35s ease;
}
.funnel-seg.drop-hot .funnel-seg-fill {
  background: var(--danger-red-500);
}
.funnel-seg.live-zero .funnel-seg-fill {
  background: var(--neutral-200);
  min-height: 8px;
}
.funnel-seg-label {
  font-size: 12px;
  color: var(--neutral-600);
  margin-top: 6px;
}
.funnel-seg-n {
  font-size: 14px;
  font-weight: 700;
}
.funnel-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.funnel-card {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 14px 12px;
  position: relative;
}
.funnel-card.is-drop {
  border-color: #fca5a5;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.15);
}
.funnel-card.is-drop::before {
  content: "이탈";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--danger-red-500);
  background: #fef2f2;
  padding: 2px 6px;
  border-radius: 4px;
}
.funnel-card.is-live-zero {
  background: #f8fafc;
}
.funnel-drop {
  font-size: 12px;
  color: var(--danger-red-500);
  margin-top: 4px;
}
.funnel-live-hint {
  font-size: 11px;
  color: var(--neutral-600);
  margin-top: 6px;
  line-height: 1.35;
}
.spam-gauge {
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  padding: 16px;
}
.spam-gauge-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.spam-rate {
  font-size: 32px;
  font-weight: 700;
}
.spam-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--trust-teal-500);
}
.spam-status.danger { color: var(--danger-red-500); }
.spam-track {
  position: relative;
  height: 12px;
  background: var(--neutral-100);
  border-radius: 999px;
  overflow: visible;
}
.spam-track > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--trust-teal-500);
  max-width: 100%;
  transition: width 0.35s ease;
}
.spam-track.warn > i { background: var(--warn-amber-500); }
.spam-track.danger > i { background: var(--danger-red-500); }
.spam-threshold {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--danger-red-500);
  opacity: 0.85;
  transform: translateX(-1px);
}
.spam-threshold::after {
  content: "0.3%";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--danger-red-500);
  white-space: nowrap;
}
.supp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.supp-cards .kpi .value { font-size: 24px; }
.lq-net-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  background: var(--neutral-200);
}
.lq-net-progress[aria-busy="true"] { opacity: 1; }
.lq-net-progress[aria-busy="true"]::after {
  content: "";
  display: block;
  height: 100%;
  width: 35%;
  background: var(--brand-orange-500);
  animation: lq-net-slide 0.9s ease-in-out infinite;
}
@keyframes lq-net-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
@media (prefers-reduced-motion: reduce) {
  .lq-net-progress[aria-busy="true"]::after {
    animation: none;
    width: 100%;
  }
}

.empty-state {
  background: #fff;
  border: 1px dashed var(--neutral-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.empty-state p {
  margin: 0 0 16px;
  color: var(--neutral-600);
  font-size: 14px;
}
@media (max-width: 900px) {
  .funnel-stages { grid-template-columns: 1fr 1fr; }
  .outreach-grid { grid-template-columns: 1fr; }
  .supp-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .funnel-stages { grid-template-columns: 1fr; }
}

