/**
 * EIBE Workspace ? ??? ??? (??? ??? ?????)
 */
:root {
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --bg: #f3f5f9;
  --card: #fff;
  --line: #e5e8f0;
  --line-soft: #eef1f6;
  --text: #1b2438;
  --muted: #545c6a;
  --muted-2: #8a93a3;
  --primary: #2eac39;
  --primary-hover: #239832;
  --primary-soft: #e8f7ea;
  --dark: #1e2640;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 10px rgba(15, 27, 51, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.is-muted { color: var(--muted-2); }

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar__brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brand-mark { font-weight: 800; letter-spacing: 0.04em; color: var(--dark); text-decoration: none; }
.brand-mark--link:hover { color: var(--primary); }
.topbar__crumb { font-size: 0.78rem; color: var(--muted-2); font-weight: 600; }
.topbar__crumb::after { content: "/"; margin-left: 8px; color: var(--line); }
.topbar__title { font-size: 0.95rem; font-weight: 700; }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; }
.user-chip__avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--dark); color: #fff; font-size: 0.75rem; font-weight: 700;
}
.user-chip__name { font-size: 0.84rem; font-weight: 650; color: var(--muted); }

.sync-chip {
  display: inline-flex; align-items: center; padding: 4px 9px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700; background: var(--line-soft); color: var(--muted);
}
.sync-chip--live { background: var(--primary-soft); color: var(--primary-hover); }
.sync-chip--wait { background: #fff4e8; color: #9a5a30; }
.sync-chip--local { background: var(--line-soft); color: var(--muted); }

.search-hero {
  background:
    linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.75) 100%),
    radial-gradient(ellipse at top, rgba(46,172,57,0.08), transparent 55%);
  border-bottom: 1px solid var(--line);
  padding: 22px 20px 18px;
}
.search-hero__inner { max-width: 920px; margin: 0 auto; }
.search-hero__eyebrow {
  margin: 0 0 10px; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.04em;
  color: var(--muted-2); text-transform: uppercase;
}
.search-bar {
  display: flex; gap: 8px; align-items: stretch;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; box-shadow: var(--shadow-sm);
}
.search-bar input {
  flex: 1; border: none; outline: none; font: inherit; font-size: 1rem;
  padding: 10px 12px; background: transparent; min-width: 0;
}
.recent-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-full);
  padding: 2px 4px 2px 10px;
  max-width: 100%;
}
.kw-chip__label {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
  padding: 3px 2px;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kw-chip__label:hover { color: var(--primary-hover); }
.kw-chip__x {
  border: none;
  background: transparent;
  color: var(--muted-2);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}
.kw-chip__x:hover {
  color: var(--text);
  background: var(--line-soft);
}
/* 하위 호환 — 예전 recent-chip 단독 스타일 */
.recent-chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: var(--radius-full); padding: 5px 10px; font: inherit; font-size: 0.76rem;
  font-weight: 650; cursor: pointer;
}
.recent-chip:hover { border-color: #c8d0de; color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: var(--radius-full); font: inherit; font-weight: 700; cursor: pointer;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 6px 11px; font-size: 0.78rem; }
.btn-ghost { background: var(--line-soft); color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: #e4e8f0; color: var(--text); }
.btn-primary { background: var(--primary); color: #fff; padding: 10px 18px; font-size: 0.9rem; white-space: nowrap; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }

.tabs {
  display: none;
}

.page-section {
  margin: 0 0 28px;
  padding: 20px 18px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 64px;
  animation: panel-in 0.4s var(--ease) both;
}
.page-section__head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.page-section__kicker {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-hover);
}
.page-section__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.panel-toolbar--flush {
  margin-top: -4px;
  justify-content: flex-end;
}

.alert-banner {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid #f0c9a0;
  background: linear-gradient(180deg, #fff8f0, #fff);
  color: #7a4a22;
}
.alert-banner--info {
  border-color: #c5d4e8;
  background: linear-gradient(180deg, #f5f8fc, #fff);
  color: #3a4a5c;
}
.alert-banner--info .alert-banner__hint { color: #5a6a7c; }
.alert-banner.hidden { display: none !important; }
.alert-banner__item { margin: 0 0 8px; font-size: 0.86rem; line-height: 1.5; }
.alert-banner__item:last-child { margin-bottom: 0; }
.alert-banner__detail { font-weight: 650; color: #9a5a30; }
.alert-banner__hint { display: inline-block; margin-top: 4px; font-size: 0.78rem; color: var(--muted); }

.main {
  flex: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 16px 20px 48px;
}

.empty-state {
  text-align: center; padding: 64px 20px; color: var(--muted);
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg);
}
.empty-state__sub { margin-top: 8px; font-size: 0.84rem; color: var(--muted-2); }

.kw-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.kw-head__title { margin: 0; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; }
.kw-head__sub { margin: 6px 0 0; font-size: 0.8rem; color: var(--muted-2); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.metric-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric--span { grid-column: 1 / -1; }
.ad-signal-grid {
  margin-top: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.period-bar {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.period-bar__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.period-bar__note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted-2);
  line-height: 1.45;
}

.analyze-overlay__card {
  width: min(100%, 360px);
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 48px rgba(9, 12, 20, 0.28);
  animation: panel-in 0.35s var(--ease) both;
  display: grid;
  place-items: center;
  text-align: center;
}
.analyze-overlay__card .auth-ring-loader-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.analyze-overlay__card .auth-ring-loader-block__label {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.analyze-overlay__card .auth-ring-loader-block__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 16rem;
}
.metric {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 14px 14px 12px; box-shadow: var(--shadow-sm);
}
.metric--accent { border-color: rgba(46,172,57,0.35); background: linear-gradient(180deg, #f3fbf4, #fff); }
.metric__label { margin: 0; font-size: 0.72rem; font-weight: 750; color: var(--muted-2); letter-spacing: 0.03em; }
.metric__value {
  margin: 6px 0 0; font-size: 1.55rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.metric__value--sm { font-size: 1.15rem; }
.metric__hint { margin: 6px 0 0; font-size: 0.72rem; color: var(--muted-2); }

.split-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px;
  align-items: start;
}
.intent-kv { margin-top: 14px; }
.intent-tip {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
}
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.info-card--insight { border-color: rgba(46,172,57,0.25); }
.info-card--muted { background: var(--line-soft); box-shadow: none; }
.info-card__title { margin: 0 0 10px; font-size: 0.92rem; font-weight: 800; }
.info-card__head-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px;
}
.info-card__head-row .info-card__title { margin: 0; }

.sat-main { margin: 0; font-size: 1.35rem; font-weight: 800; }
.sat-main b { margin-right: 8px; }
.sat-row { margin: 8px 0 0; font-size: 0.84rem; color: var(--muted); }
.sat-note { margin: 10px 0 0; font-size: 0.74rem; color: var(--muted-2); line-height: 1.45; }
.tone-good { color: var(--primary-hover); font-weight: 750; font-size: 0.84rem; }
.tone-mid { color: #9a5a30; font-weight: 750; font-size: 0.84rem; }
.tone-warn, .tone-bad { color: #b4234d; font-weight: 750; font-size: 0.84rem; }
.tone-muted { color: var(--muted-2); }

.kv { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 8px; font-size: 0.82rem; }
.kv dt { color: var(--muted-2); font-weight: 650; }
.kv dd { margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; }

.insight-text { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--text); }
.insight-note { margin: 10px 0 0; font-size: 0.74rem; color: var(--muted-2); }

.link-btn {
  border: none; background: transparent; color: var(--primary-hover); font: inherit;
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
}

.chart-stage { position: relative; min-height: 280px; }
.chart-stage--sm { min-height: 200px; }
.trend-svg { width: 100%; height: 100%; min-height: inherit; display: block; }
.trend-grid { stroke: var(--line-soft); stroke-width: 1; }
.trend-axis { fill: var(--muted-2); font-size: 11px; font-family: var(--font-sans); }
.trend-line { stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.trend-dot { pointer-events: none; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.legend__item b { color: var(--text); }
.legend__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--series, var(--primary)); }

.panel-toolbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.panel-toolbar__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.panel-title { margin: 0; font-size: 1.1rem; font-weight: 800; }
.panel-sub { margin: 4px 0 0; font-size: 0.78rem; color: var(--muted-2); }
.count-pill {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--radius-full);
  background: var(--line-soft); font-size: 0.75rem; font-weight: 750; color: var(--muted); margin-left: 6px;
}
.filter-input {
  border: 1px solid var(--line); border-radius: var(--radius-full); padding: 7px 12px;
  font: inherit; font-size: 0.8rem; min-width: 140px; background: #fff;
}

.seg {
  display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-full); background: #fff;
}
.seg__btn {
  border: none; background: transparent; padding: 6px 10px; font: inherit; font-size: 0.74rem;
  font-weight: 650; color: var(--muted); border-radius: var(--radius-full); cursor: pointer;
}
.seg__btn.is-active { background: var(--dark); color: #fff; }

.device-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip-btn {
  border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: var(--radius-full);
  padding: 6px 11px; font: inherit; font-size: 0.76rem; font-weight: 650; cursor: pointer;
}
.chip-btn.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }

.chart-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 16px; box-shadow: var(--shadow-sm); margin-bottom: 10px;
}
.chart-card__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-bottom: 6px;
}
.chart-card__sub { margin: 0; font-size: 0.78rem; color: var(--muted-2); }
.footnote { margin: 0 0 8px; font-size: 0.74rem; color: var(--muted-2); }

.compare-add {
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: #fafbfc;
}
.compare-add__label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.compare-add__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.compare-add__input {
  flex: 1 1 180px;
  min-width: 0;
}
.compare-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.compare-add .footnote { margin: 0; }
.compare-add .kw-chip {
  background: #fff;
}

.table-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: auto; box-shadow: var(--shadow-sm); max-height: min(62vh, 640px);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.data-table th, .data-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap;
}
.data-table th {
  position: sticky; top: 0; background: #fafbfc; font-size: 0.72rem; font-weight: 750;
  color: var(--muted-2); cursor: pointer; z-index: 1;
}
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.data-table th.num { text-align: right; }
.kw-link {
  border: none; background: transparent; color: var(--text); font: inherit; font-weight: 700;
  cursor: pointer; padding: 0;
}
.kw-link:hover { color: var(--primary-hover); text-decoration: underline; }
.kw-add {
  margin-left: 6px; border: 1px solid var(--line); background: #fff; border-radius: 6px;
  width: 22px; height: 22px; cursor: pointer; color: var(--muted); font-weight: 700;
}
.kw-add:hover { border-color: var(--primary); color: var(--primary-hover); }

.intent-badge {
  margin: 0; display: inline-flex; padding: 8px 12px; border-radius: var(--radius-full);
  background: var(--primary-soft); color: var(--primary-hover); font-weight: 800; font-size: 0.9rem;
}
.limit-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.84rem; line-height: 1.55; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 45;
  max-width: min(92vw, 440px); padding: 10px 16px; border-radius: var(--radius-full);
  background: var(--dark); color: #fff; font-size: 0.84rem; font-weight: 650;
  box-shadow: 0 8px 24px rgba(15, 27, 51, 0.2);
}

.space-launcher-stack {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.space-launcher {
  --space-launcher-accent: #3cb34a;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px 11px 15px;
  color: #f4f6f8;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%),
    rgba(16, 19, 26, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 10px 28px rgba(9, 12, 20, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  isolation: isolate;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  animation: space-launcher-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
.space-launcher-stack .space-launcher:nth-child(2) { animation-delay: 0.34s; }
.space-launcher::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: var(--space-launcher-accent);
  opacity: 0.72;
  transition: opacity 0.22s ease, top 0.22s ease, bottom 0.22s ease;
}
@keyframes space-launcher-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.space-launcher:hover {
  transform: translateY(-2px) scale(1);
  border-color: rgba(60, 179, 74, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 14px 32px rgba(9, 12, 20, 0.34);
}
.space-launcher:hover::before { opacity: 1; top: 8px; bottom: 8px; }
.space-launcher:focus-visible {
  outline: 2px solid var(--space-launcher-accent);
  outline-offset: 3px;
}
.space-launcher__body { display: flex; flex-direction: column; gap: 2px; line-height: 1.15; min-width: 0; }
.space-launcher__eyebrow {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 246, 248, 0.48);
}
.space-launcher__title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(244, 246, 248, 0.92);
}
.space-launcher__title b { font-weight: 750; color: #67c872; }
.space-launcher__arrow {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(103, 200, 114, 0.85);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.22s ease;
}
.space-launcher:hover .space-launcher__arrow { transform: translateX(3px); color: #7ad684; }

/* ?? Journey / overlay / cloud / age ?? */
.search-hero__brand {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
}
.search-hero__lead {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 36em;
}
.search-hero__quota {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 36em;
}
.search-hero__quota-count {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-weight: 750;
  font-size: 0.72rem;
}
.search-hero__quota-count.is-empty {
  background: #fde8e8;
  color: #a33;
}
/* search-hero는 일반 흐름 — sticky+높이축소(is-compact)는 스크롤 피드백 루프로 떨림 유발 */
.scope-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 750;
  background: #f0f2f6;
  color: var(--muted);
  white-space: nowrap;
}
.scope-pill--ok {
  background: var(--primary-soft);
  color: var(--primary-hover);
}
.scope-pill--lock {
  background: #f0f2f6;
  color: var(--muted-2);
}
.scope-line {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.page-section__period {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.page-section__period-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  text-transform: uppercase;
  flex-shrink: 0;
}
.page-section__period--inline {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.journey {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.journey__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.journey__step:hover { border-color: #c8d0de; color: var(--muted); }
.journey__num {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--line-soft); color: var(--muted);
  font-size: 0.7rem; font-weight: 800;
}
.journey__step.is-current {
  border-color: rgba(46, 172, 57, 0.45);
  background: var(--primary-soft);
  color: var(--primary-hover);
}
.journey__step.is-current .journey__num {
  background: var(--primary); color: #fff;
}
.journey__step.is-done {
  border-color: rgba(46, 172, 57, 0.28);
  color: var(--text);
}
.journey__step.is-done .journey__num {
  background: #cfeecf; color: var(--primary-hover);
}

.src-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.src-badge--ad { background: #e8eefc; color: #2f4ea8; }
.src-badge--lab { background: #e8f7ea; color: #1f7a2e; }
.src-badge--api { background: #f3eef8; color: #6b3d91; }

.source-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: 12px;
}
.src-legend__txt {
  font-size: 0.74rem;
  color: var(--muted);
  margin-right: 8px;
}
.view-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.page-section__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.page-section__title-row .page-section__title { margin: 0; }

.source-block {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fafbfc;
}
.source-block.is-filtered-out,
.info-card.is-filtered-out { display: none !important; }
.source-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin-bottom: 12px;
}
.source-block__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}
.source-block__meta {
  margin: 0;
  flex: 1 1 100%;
  font-size: 0.76rem;
  color: var(--muted-2);
}
.ad-signal-wrap { margin-top: 10px; }
.kv--signal {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.sat-card {
  margin-top: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.sat-card__label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.suggest-chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 18px;
}
.suggest-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s ease, color 0.2s ease;
}
.suggest-chip:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary-hover);
}

.kw-head__actions { display: flex; flex-wrap: wrap; gap: 6px; }

.next-journey {
  margin: 8px 0 4px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(46,172,57,0.06), transparent 50%),
    #fff;
  border: 1px solid var(--line);
  animation: panel-in 0.45s var(--ease) both;
}
.next-journey__label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.next-journey__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.next-card {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s ease, transform 0.22s var(--ease), box-shadow 0.22s ease;
}
.next-card:hover {
  border-color: rgba(46,172,57,0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.next-card__kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}
.next-card__title {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}
.next-card__desc {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted);
}

.info-card--cloud { animation: panel-in 0.4s var(--ease) both; }
.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  min-height: 72px;
  padding: 4px 0 2px;
}
.cloud-word {
  border: none;
  background: transparent;
  color: var(--dark);
  font: inherit;
  font-weight: 750;
  font-size: calc(var(--w, 1) * 1rem);
  line-height: 1.15;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.cloud-word:hover {
  opacity: 1;
  color: var(--primary-hover);
  transform: scale(1.04);
}

.age-bars { display: flex; flex-direction: column; gap: 10px; }
.age-bar {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  gap: 10px;
  align-items: center;
}
.age-bar__label { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.age-bar__track {
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--line-soft);
  overflow: hidden;
}
.age-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7bcf82, var(--primary));
  transition: width 0.55s var(--ease);
}
.age-bar__val {
  font-size: 0.78rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--muted);
}

.analyze-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 22, 38, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.analyze-overlay[hidden] { display: none !important; }
.analyze-overlay__card {
  width: min(100%, 360px);
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 48px rgba(9, 12, 20, 0.28);
  animation: panel-in 0.35s var(--ease) both;
  display: grid;
  place-items: center;
  text-align: center;
}
.analyze-overlay__card .auth-ring-loader-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.analyze-overlay__card .auth-ring-loader-block__label {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.analyze-overlay__card .auth-ring-loader-block__hint,
.analyze-overlay__card .auth-ring-loader-block__hint.muted {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 16rem;
}
body.is-analyzing { overflow: hidden; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel.is-active {
  animation: panel-in 0.35s var(--ease) both;
}

@media (max-width: 900px) {
  .metric-grid, .metric-grid--2, .metric-grid--3, .split-cards { grid-template-columns: 1fr 1fr; }
  .user-chip__name { display: none; }
  .next-journey__row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .metric-grid, .metric-grid--2, .metric-grid--3, .split-cards { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .kv { grid-template-columns: 1fr; }
  .main { padding: 12px 14px 32px; }
  .space-launcher-stack { right: 12px; bottom: 12px; gap: 6px; }
  .space-launcher { gap: 10px; padding: 10px 12px 10px 13px; }
  .space-launcher__title { font-size: 0.82rem; }
  .journey { gap: 6px; }
  .journey__label { display: none; }
  .age-bar { grid-template-columns: 52px 1fr 28px; }
}
