/* ===========================================================
   단골 잇기 — paper-warm, hairline-bordered, no shadows
   =========================================================== */

:root {
  --bg:       #f8f4ea;
  --fg:       #1c1c1c;
  --sub:      #888;
  --line:     #e2dccc;
  --accent:   #2467a8;
  --paper:    #fffdf6;

  --meal:  #ec5f5f;
  --cafe:  #2aa876;
  --drink: #7957d5;
  --walk:  #e6a425;
  --misc:  #6f7d95;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: #ebe4cf;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  font-weight: 400;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum' 1;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.beta-badge {
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.08em;
  padding: 2px 6px; border: 1px solid var(--fg); border-radius: 3px;
  line-height: 1;
}
.dot-sep { color: var(--sub); margin: 0 2px; }

/* ===========================================================
   MARK LOGO — paper square w/ two dots + slash
   =========================================================== */
.mark {
  width: 22px; height: 22px;
  border: 1.2px solid var(--fg);
  background: var(--paper);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.mark::before, .mark::after {
  content: ''; position: absolute;
  background: var(--fg); border-radius: 999px;
}
.mark::before { width: 5px; height: 5px; left: 4.5px; top: 4.5px; }
.mark::after { width: 5px; height: 5px; right: 4.5px; bottom: 4.5px; }
.mark .slash {
  position: absolute;
  width: 13px; height: 1.4px;
  background: var(--fg);
  left: 4.5px; top: 11px;
  transform: rotate(33deg);
  transform-origin: left center;
  display: block;
}

/* ===========================================================
   MOBILE v3 — graph-first (codex-influenced, our spec)
   =========================================================== */
.mob-root {
  width: 375px; height: 812px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}

.mob-topbar {
  height: 52px; padding: 0 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  overflow: hidden;
}
.mob-topbar .brand {
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.brand-button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}
.brand-logo-img {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
.mob-topbar .brand-name {
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
}
.mob-topbar .hint {
  font-size: 10.5px; color: var(--sub);
  line-height: 1.3; text-align: center;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.mob-topbar .hint b { color: var(--fg); font-weight: 500; }
.mob-topbar .icon-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.icon-btn:disabled {
  opacity: 0.28;
  cursor: default;
}
.region-switch {
  justify-self: center;
  max-width: 100%;
  height: 32px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--sub);
  white-space: nowrap;
}
.region-switch b {
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
}
.region-switch .chev {
  transform: rotate(90deg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1;
}

/* full-bleed graph stage */
.mob-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.stage-graph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  touch-action: none;
  user-select: none;
}

/* === graph SVG visuals === */
.stage-graph .map-line {
  fill: none;
  stroke: #1c1c1c;
  stroke-width: 0.7;
  opacity: 0.065;
}
.stage-graph .edge {
  fill: none;
  stroke: #1c1c1c;
  stroke-linecap: round;
  transition: opacity 220ms ease, stroke 220ms ease, stroke-width 220ms ease;
}
.stage-graph .edge.course {
  stroke: var(--accent);
  stroke-width: 2;
}
.stage-graph .edge.active {
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-dasharray: 7 6;
  animation: roadFlow 1.4s linear infinite;
}
@keyframes roadFlow {
  to { stroke-dashoffset: -26; }
}

.stage-graph .node-halo {
  opacity: 0.16;
}
@keyframes breathe {
  0%, 100% { opacity: 0.14; transform: scale(1); }
  50%      { opacity: 0.24; transform: scale(1.12); }
}
.stage-graph .node-circle { stroke: #1c1c1c; stroke-width: 1; }
.stage-graph .node.is-mine .node-ring {
  stroke: var(--accent); stroke-width: 1.5; fill: none;
}
.stage-graph .node-pending-ring {
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-dasharray: 4 5;
  animation: selectedNodeDash 5s linear infinite;
  fill: none;
}
.stage-graph .node-select-ring {
  stroke: var(--fg);
  stroke-width: 1.1;
  stroke-dasharray: 3 4;
  animation: selectedNodeDash 1.15s linear infinite;
  fill: none;
}
@keyframes selectedNodeDash {
  to { stroke-dashoffset: -14; }
}
.stage-graph .node-hit {
  pointer-events: all;
}
.stage-graph .node-label {
  font: 500 11.5px Pretendard, system-ui;
  fill: #1c1c1c;
  paint-order: stroke;
  stroke: #f8f4ea;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.stage-graph .node-count-in {
  font: 500 10px Pretendard, system-ui;
  fill: #fff;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.stage-graph .node-sub {
  font: 400 9.5px Pretendard, system-ui;
  fill: #888;
  paint-order: stroke;
  stroke: #f8f4ea;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.stage-graph .edge-pill {
  fill: #f8f4ea;
  stroke: #1c1c1c;
  stroke-width: 0.8;
}
.stage-graph .edge-pill-text {
  font: 500 9.5px Pretendard, system-ui;
  fill: #1c1c1c;
}

/* slim ticker: one calm line over the graph */
.stage-ticker {
  position: absolute; top: 8px; left: 10px; right: 10px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 253, 246, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  z-index: 5;
  backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}
.stage-ticker .key {
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sub); font-weight: 500;
}
.stage-ticker .accent { color: var(--accent); font-weight: 500; }
.stage-ticker .dot-sep { color: var(--sub); }
.stage-ticker .ticker-pulse {
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--meal);
  margin-left: auto;
  flex-shrink: 0;
  animation: pulse 1.6s ease-in-out infinite;
}
.stage-ticker .ticker-news {
  font-size: 10.5px;
  color: var(--fg);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.4); }
}

.mode-toggle.train-toggle {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0;
  border: 1px solid var(--fg);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 253, 246, 0.9);
  z-index: 7;
  backdrop-filter: blur(6px);
}
.mode-toggle.train-toggle button {
  height: 28px;
  min-width: 50px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: 500 11.5px Pretendard, system-ui;
}
.mode-toggle.train-toggle button.active {
  background: var(--fg);
  color: var(--bg);
}
.mode-toggle.train-toggle.is-empty button[data-empty="true"] {
  color: var(--sub);
}

.help-btn {
  position: absolute;
  top: 198px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: var(--paper);
  border: 1px solid var(--fg);
  border-radius: 999px;
  font: 500 13px Pretendard, system-ui;
  color: var(--fg);
  z-index: 28;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(28, 28, 28, 0.06);
}
.help-btn.has-dot::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  background: var(--meal);
  border-radius: 999px;
}
.guide-card {
  position: absolute;
  top: 232px;
  right: 14px;
  width: 214px;
  background: rgba(255, 253, 246, 0.96);
  border: 1px solid var(--fg);
  border-radius: 7px;
  padding: 10px;
  z-index: 29;
  box-shadow: 0 10px 30px rgba(28, 28, 28, 0.12);
  backdrop-filter: blur(8px);
}
.guide-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--fg);
}
.guide-step + .guide-step { margin-top: 6px; }
.guide-step .num {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--paper);
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.guide-card button {
  width: 100%;
  height: 30px;
  margin-top: 10px;
  background: var(--fg);
  color: var(--paper);
  border-radius: 999px;
  font: 500 12px Pretendard, system-ui;
}

.onboard {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: rgba(248, 244, 234, 0.92);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 34px;
}
.onboard .ob-mini {
  width: 130px;
  height: 100px;
  margin-bottom: 22px;
}
.onboard h2 {
  margin: 0 0 12px;
  font: 500 21px Pretendard, system-ui;
  letter-spacing: -0.01em;
  line-height: 1.32;
}
.onboard p {
  margin: 0 0 26px;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.6;
}
.onboard button {
  height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: 500 14px Pretendard, system-ui;
}

.fit-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  background: rgba(255, 253, 246, 0.94);
  color: var(--fg);
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(28, 28, 28, 0.08);
  backdrop-filter: blur(8px);
}
.fit-btn:active {
  transform: scale(0.96);
}

/* === stage overlays === */
.stage-legend {
  position: absolute; top: 10px; left: 10px;
  display: flex; gap: 8px; align-items: center;
  background: rgba(255, 253, 246, 0.85);
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 10px;
  backdrop-filter: blur(6px);
  z-index: 5;
  white-space: nowrap;
}
.stage-legend .sw {
  width: 7px; height: 7px; border-radius: 999px; display: inline-block;
  flex-shrink: 0;
}
.stage-legend .item { display: inline-flex; align-items: center; gap: 4px; color: var(--fg); white-space: nowrap; }

.stage-meta {
  position: absolute; top: 10px; right: 10px;
  background: var(--paper);
  border: 1px solid var(--fg);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 6px;
  z-index: 5;
  white-space: nowrap;
}
.stage-meta .key {
  font-size: 9px; letter-spacing: 0.1em; color: var(--sub);
  text-transform: uppercase;
}
.stage-meta .accent { color: var(--accent); font-weight: 500; }

.stage-route {
  position: absolute; top: 50px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  width: 168px;
  z-index: 5;
}
.route-card {
  background: rgba(255, 253, 246, 0.88);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 9px 8px;
  font-size: 11px;
  line-height: 1.35;
  backdrop-filter: blur(6px);
}
.route-card .label {
  font-size: 9px;
  color: var(--sub);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3px;
  display: flex; align-items: center; gap: 5px;
}
.route-card .label .dot {
  width: 4px; height: 4px; border-radius: 999px;
  display: inline-block;
}
.route-card .body { font-weight: 500; }
.route-card .body .arrow { color: var(--accent); margin: 0 3px; }
.route-card .body .num {
  margin-top: 2px;
  font-size: 10px; color: var(--sub); font-weight: 400;
  display: block;
}

.stage-focus {
  position: absolute; bottom: 10px; left: 10px;
  width: 178px;
  background: var(--paper);
  border: 1px solid var(--fg);
  border-radius: 8px;
  padding: 9px 11px 10px;
  z-index: 6;
  font-size: 12px;
  line-height: 1.4;
}
.stage-focus .label {
  font-size: 9px;
  color: var(--sub);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.stage-focus .pair {
  font-weight: 500; font-size: 13.5px; letter-spacing: -0.012em;
  line-height: 1.25;
}
.stage-focus .pair .arrow { color: var(--accent); margin: 0 2px; }
.stage-focus .meta {
  margin-top: 4px;
  font-size: 10.5px; color: var(--sub);
  font-variant-numeric: tabular-nums;
}
.stage-focus .reason {
  margin-top: 7px;
  font-size: 11.5px;
  padding: 1px 0 1px 8px;
  border-left: 2px solid var(--fg);
  line-height: 1.45;
}
.focus-remove-btn {
  width: 100%;
  min-height: 30px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--sub);
  font-size: 11px;
  font-weight: 500;
}
.focus-remove-btn:active {
  background: rgba(28, 28, 28, 0.08);
  color: var(--fg);
}

.stage-empty-live {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 4;
  padding: 0 42px 68px;
}
.stage-empty-live .empty-ring {
  width: 58px;
  height: 58px;
  border: 1.5px dashed rgba(28, 28, 28, 0.45);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 500;
  color: rgba(28, 28, 28, 0.42);
  margin-bottom: 14px;
}
.stage-empty-live .empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 7px;
}
.stage-empty-live .empty-copy {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--sub);
}
.stage-empty-live.is-seed {
  justify-content: flex-end;
  padding-bottom: 92px;
}
.stage-empty-live.is-seed .empty-title {
  font-size: 15px;
}
.stage-empty-live.is-seed .empty-copy {
  font-size: 12px;
}

/* dark search bar at bottom */
.mob-searchbar {
  background: var(--fg);
  color: var(--bg);
  padding: 10px 14px 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}
.mob-searchbar .search-label {
  font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(248, 244, 234, 0.55);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.mob-searchbar .search-label .dot {
  width: 4px; height: 4px; background: var(--meal); border-radius: 999px;
  flex-shrink: 0;
}
.mob-searchbar .search-row {
  display: flex; gap: 0;
}
.mob-searchbar input {
  flex: 1; min-width: 0;
  background: var(--paper); color: var(--fg);
  border: 1px solid var(--paper);
  border-radius: 999px 0 0 999px;
  height: 42px;
  padding: 0 16px;
  font-size: 16px;
  outline: 0;
}
.mob-searchbar input::placeholder { color: var(--sub); }
.mob-searchbar .bloom-btn {
  height: 42px;
  background: var(--meal);
  color: var(--fg);
  border: 1px solid var(--meal);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  padding: 0 20px;
  font-size: 13.5px; font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
}
.mob-searchbar .bloom-btn:disabled {
  opacity: 0.58;
  cursor: wait;
}
.mob-searchbar.is-empty-hint .bloom-btn {
  animation: bloomPulse 1.7s ease-in-out infinite;
}
@keyframes bloomPulse {
  0%, 100% { background: var(--meal); }
  50% { background: #f07a7a; }
}

.candidate-panel {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 96px;
  max-height: 230px;
  overflow: auto;
  background: var(--paper);
  color: var(--fg);
  border: 1px solid var(--fg);
  border-radius: 10px;
  padding: 5px;
}
.candidate-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 7px;
  text-align: left;
}
.candidate-item + .candidate-item {
  border-top: 1px solid var(--line);
}
.candidate-item.is-picked {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}
.candidate-item.candidate-manual {
  background: rgba(36, 103, 168, 0.05);
}
.candidate-main {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
}
.candidate-sub {
  padding-left: 15px;
  font-size: 11.5px;
  color: var(--sub);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.candidate-badge {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  color: var(--accent);
}
.candidate-empty {
  padding: 12px 10px;
  font-size: 12px;
  color: var(--sub);
}

/* legacy mob classes (kept for working.jsx until ported) */

/* ===========================================================
   MOBILE artboard
   =========================================================== */
.mob-root {
  width: 375px; height: 812px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.mob-topbar {
  height: 44px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.icon-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}

.mob-copybar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 7px 14px;
  font-size: 12.5px; line-height: 1.35;
  display: flex; align-items: center; gap: 7px;
  letter-spacing: -0.005em;
}
.mob-copybar .copy-dot {
  width: 5px; height: 5px; background: var(--accent); border-radius: 999px; flex-shrink: 0;
}
.mob-copybar .sep { color: var(--sub); margin: 0 3px; }

.mob-graph {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.overlay { position: absolute; z-index: 5; }
.overlay.tl { top: 10px;  left: 10px; }
.overlay.tr { top: 10px;  right: 10px; }
.overlay.bl { bottom: 10px; left: 10px; }
.overlay.br { bottom: 10px; right: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }

.course-chip {
  background: var(--paper);
  border: 1px solid var(--fg);
  border-radius: 999px;
  padding: 5px 10px 5px 8px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px;
}
.course-chip .label {
  font-size: 9px; color: var(--sub); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding-right: 7px; border-right: 1px solid var(--line);
}
.course-chip .path { font-weight: 500; display: inline-flex; align-items: center; }
.course-chip .arrow { color: var(--accent); margin: 0 2px; font-weight: 500; }

.legend {
  background: rgba(255, 253, 246, 0.92);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 8px;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.legend-row { display: flex; align-items: center; gap: 6px; }

.round-btn {
  background: var(--paper);
  border: 1px solid var(--fg);
  border-radius: 999px;
  height: 32px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 11px; font-weight: 500;
}
.round-btn.sq {
  width: 32px; border-radius: 8px;
  font-size: 14px;
}
.round-btn.wide { padding: 0 11px; }

.zoom-stack {
  background: var(--paper);
  border: 1px solid var(--fg);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.zoom-stack .round-btn.sq { border: 0; border-radius: 0; }
.zoom-divider { height: 1px; background: var(--line); }

.mob-inputbar {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 8px 12px 14px;
  display: flex; gap: 8px; align-items: center;
}
.input-wrap {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 40px;
  padding: 0 14px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.input-wrap input {
  border: 0; outline: 0; background: transparent;
  flex: 1; font-size: 16px;
  min-width: 0;
}
.input-wrap input::placeholder { color: var(--sub); }

.primary-btn {
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  height: 40px;
  padding: 0 18px;
  font-size: 13.5px; font-weight: 500;
}
.primary-btn.fill { flex: 1; height: 44px; font-size: 14px; }
.primary-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* toast */
.toast {
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  background: var(--fg);
  color: var(--bg);
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 30;
  animation: toast 1.8s ease both;
}
@keyframes toast {
  0%   { opacity: 0; transform: translate(-50%, 8px); }
  10%  { opacity: 1; transform: translate(-50%, 0); }
  85%  { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -4px); }
}

/* ===========================================================
   BOTTOM SHEET
   =========================================================== */
.sheet-scrim {
  position: absolute; inset: 0;
  background: rgba(28, 28, 28, 0.18);
  z-index: 50;
}
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--fg);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  z-index: 51;
  padding: 10px 18px 24px;
}
.sheet-handle {
  width: 38px; height: 4px;
  background: var(--line); border-radius: 999px;
  margin: 0 auto 12px;
}
.sheet-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px;
}
.sheet-title {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 15px; font-weight: 500;
}
.sheet-node { display: inline-flex; align-items: center; gap: 6px; }
.sheet-arrow { color: var(--accent); font-weight: 500; }
.sheet-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sheet-meta {
  margin-top: 6px;
  font-size: 12px; color: var(--sub);
  display: flex; align-items: center; gap: 4px;
}
.sheet-section-label {
  margin-top: 18px; margin-bottom: 8px;
  font-size: 11px; color: var(--sub);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 500;
}
.reason-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.reason-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.reason-count {
  background: var(--fg); color: var(--bg);
  font-size: 10.5px; font-weight: 500;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px; text-align: center;
}
.quote-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
}
.quote-text {
  font-size: 13.5px; line-height: 1.55;
  margin-bottom: 10px;
}
.quote-meta {
  display: flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--sub);
}
.quote-author { font-weight: 500; color: var(--fg); }

.neighborhood-modal {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: var(--bg);
}
.neighborhood-modal .mob-root {
  width: 100%;
  height: 100%;
}

/* ===========================================================
   State screens (loading / empty / error)
   =========================================================== */
.state-wrap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.state-wrap svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.state-caption {
  position: relative;
  background: rgba(248, 244, 234, 0.92);
  padding: 14px 22px 18px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: 100%;
  z-index: 2;
}
.state-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sub); font-weight: 500;
}
.state-msg {
  margin-top: 6px;
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.012em;
}
.state-arrow {
  margin-top: 8px;
  font-size: 18px; color: var(--accent);
  animation: bounceDown 1.6s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}
.state-retry {
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--fg); color: var(--bg);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
}

/* ===========================================================
   Search dropdown
   =========================================================== */
.search-results {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  background: var(--paper);
  border: 1px solid var(--fg);
  border-radius: 12px;
  overflow: hidden;
  z-index: 6;
  max-height: 70%;
  display: flex; flex-direction: column;
}
.search-results-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px; color: var(--sub);
  display: flex; justify-content: space-between; align-items: baseline;
}
.search-count { font-weight: 500; }
.search-meta { font-size: 10px; }
.search-result {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2, #efeada);
  cursor: pointer;
}
.search-result:last-of-type { border-bottom: 0; }
.search-result .sw {
  width: 10px; height: 10px; border-radius: 999px;
}
.search-result .sr-name {
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.search-result .sr-badge {
  font-size: 10px; color: var(--accent);
  background: rgba(36, 103, 168, 0.08);
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 500;
}
.search-result .sr-meta {
  margin-top: 2px;
  font-size: 11px; color: var(--sub);
}
.search-result .sr-action {
  font-size: 11px; font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
}
.search-result.exists .sr-action {
  color: var(--accent);
}
.search-results-foot {
  padding: 8px 14px 10px;
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--sub);
  text-align: center;
}

/* ===========================================================
   Login moment
   =========================================================== */
.login-scrim {
  position: absolute; inset: 0;
  background: rgba(28, 28, 28, 0.22);
  z-index: 5;
}
.login-card {
  position: absolute;
  left: 14px; right: 14px;
  top: 50%;
  transform: translateY(-55%);
  background: var(--paper);
  border: 1px solid var(--fg);
  border-radius: 14px;
  padding: 22px 22px 18px;
  z-index: 6;
  text-align: center;
}
.login-eyebrow {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sub); font-weight: 500;
}
.login-title {
  margin-top: 8px;
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.3;
}
.login-sub {
  margin-top: 12px;
  font-size: 12px; color: var(--sub);
  line-height: 1.5;
}
.kakao-btn {
  margin-top: 22px;
  width: 100%;
  height: 48px;
  background: #fee500;
  color: #1c1c1c;
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.kakao-btn .k-mark {
  width: 20px; height: 20px;
  background: #1c1c1c; color: #fee500;
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500;
}
.login-skip {
  margin-top: 8px;
  width: 100%;
  height: 40px;
  background: transparent;
  font-size: 13px; font-weight: 500;
  color: var(--sub);
}
.login-fine {
  margin-top: 14px;
  font-size: 10.5px; color: var(--sub);
  line-height: 1.5;
}
.login-fine a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===========================================================
   Colorblind legend
   =========================================================== */
.cb-legend {
  position: absolute;
  left: 10px; bottom: 14px;
  background: rgba(255, 253, 246, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px;
  z-index: 5;
}
.cb-legend-row {
  display: flex; align-items: center; gap: 8px;
}
.cb-sw {
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500; color: #fff;
}

/* ===========================================================
   Root neighborhood board
   =========================================================== */
.itgi-home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background: #ebe4cf;
}
.home-root {
  width: min(100%, 430px);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.home-topbar {
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.home-topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-head {
  padding: 24px 22px 10px;
  flex-shrink: 0;
}
.home-kick {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.home-head h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.28;
  font-weight: 500;
  letter-spacing: 0;
}
.home-head p {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sub);
}
.home-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-section-label {
  margin: 8px 4px 2px;
  font-size: 10px;
  font-weight: 500;
  color: var(--sub);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home-nb {
  min-height: 78px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.home-nb.is-hot {
  border-color: var(--fg);
}
.home-rank {
  text-align: center;
  color: var(--sub);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.home-nb-body {
  min-width: 0;
}
.home-nb-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.home-nb-title b {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.home-nb-title em {
  font-style: normal;
  font-size: 11px;
  color: var(--sub);
  white-space: nowrap;
}
.home-nb-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}
.home-bar {
  position: relative;
  display: block;
  height: 4px;
  margin-top: 9px;
  background: var(--line);
  overflow: hidden;
}
.home-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--fg);
}
.home-spark {
  width: 54px;
  height: 30px;
}
.home-spark svg {
  width: 54px;
  height: 30px;
  display: block;
}
.home-spark polyline {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.home-nb.is-empty {
  border-style: dashed;
  border-color: var(--accent);
  background: transparent;
}
.home-nb.is-empty .home-nb-title b,
.home-pioneer {
  color: var(--accent);
}
.home-pioneer {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.home-cta {
  background: var(--accent);
  color: var(--paper);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.home-foot {
  padding: 13px 20px calc(13px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--sub);
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ===========================================================
   Neighborhood picker
   =========================================================== */
.np-meta {
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.np-meta-key {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sub); font-weight: 500;
}
.np-meta-val {
  margin-top: 4px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.012em;
}
.np-meta-right {
  display: flex; gap: 6px;
  font-size: 9.5px;
}
.np-coverage {
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  color: var(--sub);
}
.np-coverage.live { background: rgba(36,103,168,0.08); color: var(--accent); border-color: rgba(36,103,168,0.2); }
.np-coverage.seed { background: rgba(28,28,28,0.04); color: var(--fg); }
.np-coverage.coming { background: transparent; color: var(--sub); }

.np-list {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
}
.np-gu {
  border-bottom: 1px solid var(--line);
}
.np-gu-head {
  width: 100%;
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  background: transparent;
  text-align: left;
}
.np-gu-name {
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.012em;
}
.np-gu-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
}
.np-tag {
  padding: 2px 7px;
  font-size: 10px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.np-tag.live { color: var(--accent); background: rgba(36,103,168,0.08); }
.np-tag.seed { color: var(--sub); background: rgba(28,28,28,0.04); }
.np-tag.coming { color: var(--sub); border: 1px dashed var(--line); }
.np-chev {
  color: var(--sub);
  font-size: 16px;
  line-height: 1;
  transition: transform 180ms ease;
}
.np-gu-coming { opacity: 1; }

.np-neighborhoods {
  display: flex; flex-direction: column;
  padding: 0 0 8px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.np-n {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 22px 11px 32px;
  background: transparent;
  text-align: left;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line-2, #efeada);
}
.np-n:last-child { border-bottom: 0; }
.np-n.active {
  background: rgba(36,103,168,0.06);
}
.np-n.active .np-n-name::before {
  content: '●';
  color: var(--accent);
  margin-right: 8px;
  font-size: 10px;
}
.np-n-name {
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.np-hot {
  font-size: 9px;
  background: #ec5f5f;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.np-n-stat {
  font-size: 11px; color: var(--sub);
  font-variant-numeric: tabular-nums;
}
.np-soon {
  color: var(--sub);
  font-style: italic;
}

.np-suggest {
  margin: 20px 16px 0;
  padding: 18px 18px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
}
.np-suggest-eyebrow {
  font-size: 11px;
  color: var(--sub);
  margin-bottom: 8px;
}
.np-suggest-btn {
  padding: 10px 18px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
}
.np-suggest-btn:disabled {
  opacity: 0.55;
}
.np-suggest-form {
  display: grid;
  gap: 10px;
  text-align: left;
}
.np-suggest-row {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 8px;
}
.np-suggest-form input,
.np-suggest-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  font-size: 16px;
  color: var(--fg);
  outline: none;
}
.np-suggest-form input {
  height: 42px;
  padding: 0 12px;
}
.np-suggest-form textarea {
  min-height: 72px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.45;
}
.np-suggest-status {
  min-height: 18px;
  color: var(--sub);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
.np-suggest-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.np-suggest-secondary {
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--sub);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.sheet-segments {
  display: flex;
  margin-top: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}
.seg-btn {
  flex: 1;
  height: 32px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--sub);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 180ms ease, color 180ms ease;
}
.seg-btn.active {
  background: var(--fg);
  color: var(--paper);
}
.seg-count {
  background: rgba(255,255,255,0.18);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 500;
}
.seg-btn:not(.active) .seg-count {
  background: var(--line);
  color: var(--sub);
}
.quote-stack {
  display: flex; flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}
.quote-stack .quote-box {
  padding: 11px 13px;
}
.quote-stack .quote-text {
  font-size: 13px;
  margin-bottom: 6px;
}
.reason-pick {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.reason-chip.pickable {
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  display: inline-flex; align-items: center;
  transition: background 160ms ease, border 160ms ease;
}
.reason-chip.pickable.picked {
  background: var(--fg);
  color: var(--paper);
  border-color: var(--fg);
}
.oneline-input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  resize: none;
  outline: none;
  line-height: 1.5;
}
.oneline-input:focus {
  border-color: var(--fg);
}
.oneline-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--sub);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sheet-actions {
  margin-top: 18px;
  display: flex; gap: 8px;
}
.ghost-btn {
  background: transparent;
  border: 1px solid var(--fg);
  border-radius: 999px;
  height: 44px;
  padding: 0 16px;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.ghost-btn.small { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 6px; }

/* ===========================================================
   POSTER — Desktop weekly viral share
   =========================================================== */
.poster-root {
  width: 1440px;
  background: var(--bg);
  color: var(--fg);
  position: relative;
  font-variant-numeric: tabular-nums;
}

/* top strip */
.poster-strip {
  height: 44px;
  padding: 0 28px 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--fg);
  font-size: 12px;
  background: var(--bg);
}
.poster-strip-l { display: flex; align-items: center; gap: 10px; }
.poster-strip-brand { font-weight: 500; }
.poster-strip-c {
  font-size: 11.5px; color: var(--sub);
  letter-spacing: 0.06em;
  text-align: center;
}
.poster-strip-r { display: flex; justify-content: flex-end; }
.poster-strip-btn {
  padding: 5px 12px;
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: transparent;
}

/* hero */
.poster-hero {
  padding: 56px 64px 40px;
  border-bottom: 1px solid var(--line);
}
.poster-eyebrow {
  font-size: 12px; color: var(--accent);
  letter-spacing: 0.08em;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 32px;
}
.eyebrow-dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 999px;
}
.poster-title {
  margin: 0;
  font-size: 96px;
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.0;
  display: flex; flex-direction: column;
  gap: 6px;
  text-wrap: balance;
}
.poster-subtitle {
  margin-top: 32px;
  font-size: 16px;
  color: var(--sub);
  letter-spacing: -0.005em;
}

/* graph + callouts row */
.poster-mainrow {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  padding: 40px 64px 44px;
  border-bottom: 1px solid var(--line);
}

.poster-graph-block { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.poster-graph-frame {
  background: var(--paper);
  border: 1px solid var(--fg);
  position: relative;
  overflow: hidden;
}
.poster-graph-frame svg { display: block; width: 100%; height: auto; }
.poster-graph-tag {
  position: absolute;
  top: 12px; left: 14px;
  font-size: 9.5px; letter-spacing: 0.18em;
  color: var(--sub);
  font-weight: 500;
  z-index: 2;
  font-variant-numeric: tabular-nums;
}

.poster-legend-row {
  display: flex; flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  align-items: center;
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item .sw { width: 9px; height: 9px; border-radius: 999px; }
.legend-help {
  margin-left: auto;
  color: var(--sub);
  font-size: 11.5px;
}

/* callouts */
.poster-callouts {
  display: flex; flex-direction: column;
  gap: 0;
}
.callout {
  padding: 6px 0 20px;
  border-bottom: 1px solid var(--line);
}
.callout:last-child { border-bottom: 0; padding-bottom: 0; }
.callout + .callout { padding-top: 22px; }
.callout-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.callout-label {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sub); font-weight: 500;
}
.callout-badge {
  font-size: 9.5px; letter-spacing: 0.1em;
  background: var(--accent); color: var(--paper);
  padding: 2px 6px; border-radius: 3px;
  font-weight: 500;
}
.callout-rule {
  height: 1px; background: var(--fg);
  margin-bottom: 14px;
}
.callout-pair {
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.cp-node { display: inline-flex; align-items: center; gap: 6px; }
.cp-node .sw { width: 9px; height: 9px; border-radius: 999px; }
.cp-arrow { color: var(--accent); font-weight: 500; margin: 0 2px; }
.callout-stat {
  margin-top: 10px;
  display: flex; align-items: baseline; gap: 6px;
  font-size: 13px;
}
.callout-stat .num {
  font-size: 18px; font-weight: 500;
  margin-right: 2px;
}
.callout-stat .hint {
  margin-left: auto;
  font-size: 11px; color: var(--sub);
}
.callout-reason {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--fg);
  border-left: 2px solid var(--fg);
  padding: 2px 0 2px 10px;
  line-height: 1.5;
}

/* big numbers strip */
.poster-numbers {
  display: flex; align-items: stretch;
  padding: 40px 64px 44px;
  border-bottom: 1px solid var(--line);
}
.bignum { flex: 1; }
.bignum-num {
  font-size: 92px; font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.bignum-label {
  margin-top: 14px;
  font-size: 14px; color: var(--fg);
  font-weight: 500;
}
.bignum-delta {
  margin-top: 6px;
  font-size: 12px; color: var(--accent);
  font-weight: 500;
}
.bignum-sep {
  width: 1px; background: var(--line); margin: 8px 40px;
}

/* bottom row: TOP5 + mission */
.poster-bottomrow {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  border-bottom: 1px solid var(--line);
}
.poster-top5 { padding: 36px 36px 36px 64px; border-right: 1px solid var(--line); }
.poster-mission { padding: 36px 64px 36px 36px; }

.poster-sec-label {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sub); font-weight: 500;
  margin-bottom: 16px;
  display: flex; align-items: baseline; gap: 10px;
}
.poster-sec-meta { color: var(--sub); font-size: 11px; }

.poster-toplist {
  display: flex; flex-direction: column;
}
.poster-toplist li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.poster-toplist li:last-child { border-bottom: 0; }
.poster-toplist .r-rank { font-size: 12px; color: var(--sub); font-weight: 500; }
.poster-toplist .r-pair { font-size: 15.5px; font-weight: 500; }
.poster-toplist .r-pair .arrow { color: var(--accent); margin: 0 6px; }
.poster-toplist .r-reason { margin-top: 4px; font-size: 12px; color: var(--sub); }
.poster-toplist .r-count { font-size: 12.5px; font-weight: 500; }

.mission-text {
  margin: 0;
  font-size: 28px; font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.022em;
}
.mission-em {
  background: var(--accent);
  color: var(--paper);
  padding: 0 8px 2px;
  border-radius: 4px;
  display: inline-block;
}
.mission-meta {
  margin-top: 28px;
  font-size: 13px; color: var(--sub);
  line-height: 1.6;
}
.mission-neighborhood {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
}
.mission-neighborhood .muted { color: var(--sub); font-weight: 400; }

/* CTA footer */
.poster-cta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 40px 64px 48px;
}
.poster-cta-l .cta-eyebrow {
  font-size: 13px; color: var(--sub); font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.poster-cta-l .cta-url {
  font-size: 56px; font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.0;
}
.poster-cta-r { display: flex; gap: 10px; }
.share-pill {
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--fg);
  background: var(--paper);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.share-pill.kakao { background: #fee500; }
.k-mark {
  width: 18px; height: 18px;
  background: #1c1c1c; color: #fee500;
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500;
}

/* live service overrides: keep the actual graph app stable after legacy preview CSS */
.live-root.mob-root {
  width: 100%;
  height: 100%;
  max-height: none;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top);
}
.live-root .mob-topbar {
  height: 52px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  flex-shrink: 0;
  overflow: hidden;
}
.live-root .mob-topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}
.live-root .mob-topbar .icon-btn {
  justify-self: end;
}
.live-root .top-actions {
  justify-self: end;
}
.live-root .region-switch {
  min-width: 0;
  overflow: hidden;
}
.live-root .region-switch span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-root .mob-stage {
  flex: 1 1 auto;
  min-height: 0;
}
.live-root .mob-searchbar {
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}
.storage-notice {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 253, 246, 0.18);
  border-radius: 12px;
  background: rgba(255, 253, 246, 0.08);
  color: rgba(255, 253, 246, 0.78);
  font-size: 11px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 8px;
}
.storage-notice span {
  min-width: 0;
  flex: 1;
}
.storage-notice a,
.legal-strip a {
  color: rgba(255, 253, 246, 0.82);
  text-decoration: none;
}
.storage-notice button,
.legal-strip button {
  border: 0;
  background: transparent;
  color: rgba(255, 253, 246, 0.9);
  font: inherit;
  padding: 0;
  cursor: pointer;
}
.storage-notice button {
  font-weight: 700;
}
.auth-save-strip {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 253, 246, 0.18);
  border-radius: 12px;
  background: rgba(255, 253, 246, 0.08);
  color: rgba(255, 253, 246, 0.78);
  font-size: 11.5px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.auth-save-strip span {
  min-width: 0;
  flex: 1;
}
.auth-save-strip button,
.auth-save-strip b {
  border: 0;
  border-radius: 999px;
  background: #fee500;
  color: #1c1c1c;
  padding: 5px 10px;
  font: 500 11.5px Pretendard, system-ui;
  white-space: nowrap;
}
.auth-save-strip button:disabled {
  opacity: 0.55;
}
.auth-save-strip.is-linked b {
  background: rgba(255, 253, 246, 0.16);
  color: var(--bg);
}
.legal-strip {
  height: 16px;
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(255, 253, 246, 0.45);
  font-size: 10px;
  line-height: 1;
}
.contact-scrim {
  position: absolute;
  inset: 0;
  z-index: 82;
  background: rgba(28, 28, 28, 0.28);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.contact-card {
  width: min(100%, 360px);
  max-height: calc(100% - 32px);
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 48px rgba(28, 28, 28, 0.2);
}
.contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.contact-kicker {
  color: var(--sub);
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.contact-card h2 {
  margin: 0;
  color: var(--fg);
  font: 600 18px/1.25 Pretendard, system-ui;
}
.contact-card textarea,
.contact-card input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--fg);
  font: 400 16px/1.35 Pretendard, system-ui;
  outline: none;
  box-sizing: border-box;
}
.contact-card textarea {
  min-height: 116px;
  resize: vertical;
  border-radius: 12px;
  padding: 12px;
}
.contact-card input {
  height: 44px;
  margin-top: 8px;
  border-radius: 999px;
  padding: 0 14px;
}
.contact-note,
.contact-status {
  margin-top: 8px;
  color: var(--sub);
  font-size: 11.5px;
  line-height: 1.35;
}
.contact-status {
  color: var(--fg);
}
.contact-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.contact-secondary,
.contact-submit {
  height: 44px;
  border-radius: 999px;
  font: 600 14px Pretendard, system-ui;
}
.contact-secondary {
  flex: 0 0 86px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--fg);
}
.contact-submit {
  flex: 1;
  background: var(--fg);
  border: 1px solid var(--fg);
  color: var(--bg);
}
.contact-submit:disabled {
  opacity: 0.55;
}
.live-root .candidate-panel {
  z-index: 40;
  overscroll-behavior: contain;
}
