:root {
  --bg: #f2f4f6;
  --panel: #ffffff;
  --ink: #1a1d21;
  --muted: #6b7280;
  --line: #dde1e6;
  --accent: #0f6e56;
  --accent-ink: #ffffff;
  --origin: #2563eb;
  --dest: #dc2626;
  --route: #0f6e56;
  --route-done: #9ca3af;
  --shadow: 0 8px 28px rgba(26, 29, 33, 0.12);
  --radius: 14px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }
html {
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* display:flex|block 규칙이 HTML hidden 속성을 덮어쓰지 않도록 */
[hidden] {
  display: none !important;
}
body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

#app {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(8px + var(--safe-top)) 12px 8px;
  background: linear-gradient(180deg, #e8eef1 0%, #f2f4f6 100%);
  border-bottom: 1px solid var(--line);
  z-index: 5;
  min-height: 48px;
}
.brand-wrap {
  min-width: 0;
  flex: 1;
}
.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.api-status {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.api-status.ok { color: #0f6e56; font-weight: 600; }
.api-status.fail { color: #b91c1c; font-weight: 600; }
.api-status.checking { color: var(--muted); }
.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.icon-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  cursor: pointer;
  font-size: 1rem;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.settings-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(26, 29, 33, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  padding-bottom: calc(12px + var(--safe-bottom));
}
.settings-card {
  width: min(100%, 420px);
  background: var(--panel);
  border-radius: 16px 16px 12px 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.settings-card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.settings-hint {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
#api-base-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.settings-save {
  flex: 1;
  min-width: 120px;
  margin: 0;
  padding: 10px 14px;
}
.settings-close {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.search-panel {
  position: relative;
  z-index: 30;
  margin: 0 8px;
  margin-top: -2px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* 검색 결과 드롭다운이 지도 위를 덮도록 패널 밖으로 넘길 수 있게 함 */
  max-height: none;
  overflow: visible;
  width: calc(100% - 16px);
  max-width: 100%;
}
.search-panel > .search-row-dest {
  position: relative;
  z-index: 40;
  background: var(--panel);
  padding-bottom: 4px;
}

.search-row-origin[hidden],
.swap-row[hidden] {
  display: none !important;
}

.build-version {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
}

.search-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}
.field-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  padding-top: 12px;
}
.field-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
}
.field-wrap input {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 16px; /* Android: avoid auto-zoom on focus */
  line-height: 1.25;
  background: #fafbfc;
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}
.field-wrap input:focus {
  outline: 2px solid rgba(15, 110, 86, 0.35);
  border-color: var(--accent);
  background: #fff;
}
.chip-mini {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #e8f5f0;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 32px;
  touch-action: manipulation;
  z-index: 2;
}
#origin-input { padding-right: 78px; }

.swap-row {
  display: flex;
  justify-content: flex-end;
  padding: 2px 0 2px 36px;
}
.swap-btn {
  border: 1px solid var(--line);
  background: #f7f8fa;
  width: 44px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  touch-action: manipulation;
}

.suggest {
  list-style: none;
  margin: 4px 0 0;
  padding: 4px 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: min(52dvh, 420px);
  overflow: auto;
  z-index: 60;
  -webkit-overflow-scrolling: touch;
}
.suggest li {
  padding: 12px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f2f4;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(15, 110, 86, 0.12);
}
.suggest li:last-child { border-bottom: 0; }
.suggest li:hover, .suggest li.active { background: #f0faf6; }
.suggest li:active { background: #dff2eb; }
.suggest .name { font-weight: 700; font-size: 0.88rem; }
.suggest .addr { color: var(--muted); font-size: 0.72rem; margin-top: 2px; }
.suggest-loading { cursor: progress !important; }
.search-panel.suggest-open .modes { display: none; }

.modes {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 8px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
}
.modes::-webkit-scrollbar { display: none; }
.mode-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #f7f8fa;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  color: var(--ink);
  min-height: 40px;
  touch-action: manipulation;
}
.mode-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.mode-chip:disabled,
.mode-chip.disabled {
  opacity: 0.42;
  cursor: not-allowed;
  background: #e8eaed;
  color: #6b7280;
  border-color: #d1d5db;
}
.mode-chip:disabled.active,
.mode-chip.disabled.active {
  background: #e8eaed;
  color: #6b7280;
  border-color: #d1d5db;
}

.go-btn,
.start-nav-btn {
  margin-top: 8px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  min-height: 48px;
  touch-action: manipulation;
}
.go-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.start-nav-btn {
  background: #0b5cab;
  margin-top: 12px;
}
.result-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
}
.result-actions .start-nav-btn {
  flex: 1;
  width: auto;
  margin-top: 0;
}
.cancel-route-btn {
  flex: 0 0 auto;
  min-width: 62px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #4b5563;
  font-size: 0.82rem;
  font-weight: 700;
}

#map-clip {
  position: relative;
  min-height: 0;
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
  background: #d9e2e8;
}
#map {
  width: 100%;
  height: 100%;
  max-width: 100%;
  background: #d9e2e8;
  transform-origin: 50% 50%;
  will-change: transform;
}
#map.heading-up {
  /* 회전 시 모서리 여백 방지 — clip 컨테이너 안에서만 */
  width: 142%;
  height: 142%;
  max-width: none;
  margin-left: -21%;
  margin-top: -21%;
}

/* 경로·시설 분석 의사 진행률 (검색 선택 → 지도 렌더까지) */
.analyze-progress {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(242, 244, 246, 0.42);
  pointer-events: none;
}
.analyze-progress-card {
  min-width: min(72vw, 220px);
  max-width: min(88vw, 280px);
  padding: 18px 20px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  text-align: center;
  pointer-events: none;
}
.analyze-progress-pct {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.analyze-progress-label {
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.analyze-progress-bar {
  margin-top: 12px;
  height: 6px;
  border-radius: 999px;
  background: #e5e9ed;
  overflow: hidden;
}
.analyze-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f6e56, #12a574);
  transition: width 0.28s ease-out;
}
.analyze-progress-detail {
  margin-top: 8px;
  min-height: 1.1em;
  font-size: 0.75rem;
  color: var(--muted);
  word-break: keep-all;
}
.analyze-progress.is-done .analyze-progress-pct {
  color: var(--accent);
}
.analyze-progress.is-done .analyze-progress-label {
  color: var(--accent);
}

.result-panel {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(10px + var(--safe-bottom));
  z-index: 7;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 12px;
  max-height: 42dvh;
  overflow: auto;
  width: auto;
  max-width: calc(100% - 16px);
}
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 8px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}
.metrics div {
  background: #f4f7f6;
  border-radius: 10px;
  padding: 8px;
  min-width: 0;
}
.metrics dt {
  margin: 0;
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
}
.metrics dd {
  margin: 2px 0 0;
  font-size: 0.85rem;
  font-weight: 800;
  word-break: break-word;
}
.muted { color: var(--muted); font-size: 0.75rem; }
.attr { margin: 8px 0 0; }

/* —— 도보 안내 모드 —— */
body.nav-active #top-bar,
body.nav-active #search-panel,
body.nav-active #result {
  display: none !important;
}
body.nav-active #app {
  grid-template-rows: minmax(0, 1fr);
}
body.nav-active #map-clip {
  grid-row: 1;
  min-height: 100%;
}

.nav-banner {
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(8px + var(--safe-top));
  z-index: 12;
  background: rgba(18, 22, 28, 0.88);
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  max-width: calc(100% - 16px);
}
.nav-banner-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.nav-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
}
.nav-text-wrap {
  min-width: 0;
  flex: 1;
}
.nav-instruction {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  word-break: keep-all;
}
.nav-side-hint {
  margin-top: 5px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 196, 61, 0.16);
  color: #ffe39a;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}
.nav-distance {
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #9fe8c8;
}
.nav-banner-sub {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.nav-dot { opacity: 0.5; }
.nav-offroute {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
}

.nav-controls {
  position: absolute;
  right: 10px;
  bottom: calc(16px + var(--safe-bottom));
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-ctrl-btn {
  border: 0;
  border-radius: 999px;
  min-width: 56px;
  min-height: 56px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  touch-action: manipulation;
}
.nav-ctrl-btn.primary {
  background: #0b5cab;
  color: #fff;
}
.nav-ctrl-btn.danger {
  background: #1a1d21;
  color: #fff;
}
.nav-ctrl-btn[aria-pressed="true"] {
  outline: 3px solid rgba(15, 110, 86, 0.55);
  background: #e8f5f0;
}

.nav-arrived {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(10, 14, 20, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.nav-arrived-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 20px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}
.nav-arrived-card strong {
  font-size: 1.35rem;
  display: block;
  margin-bottom: 8px;
}
.nav-arrived-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

/* 사용자 위치 puck */
.user-puck-wrap {
  background: transparent !important;
  border: 0 !important;
}
.crossing-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1f6feb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}
.crossing-marker.warn {
  border-color: #d97706;
  background: #fff7e6;
}
.mode-basis {
  margin: 6px 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.4;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #78350f;
}
.mode-basis.is-nodata {
  background: #fee2e2;
  border-color: #ef4444;
  color: #7f1d1d;
}
.mode-basis.is-ok {
  background: #dcfce7;
  border-color: #22c55e;
  color: #14532d;
}

.risk-marker-wrap {
  background: transparent !important;
  border: 0 !important;
}
.risk-marker {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dc2626;
  border: 2px solid #fff;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.25), 0 1px 5px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}
.user-puck {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.22), 0 2px 8px rgba(0, 0, 0, 0.25);
  position: relative;
}
.user-puck::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid #2563eb;
  transform: translateX(-50%);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 50;
  background: #1a1d21;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  max-width: min(92vw, 420px);
  text-align: center;
  word-break: keep-all;
  pointer-events: none;
}
body.nav-active .toast {
  bottom: calc(100px + var(--safe-bottom));
}

.leaflet-control-attribution {
  font-size: 10px !important;
  max-width: 55vw;
}
body.nav-active .leaflet-control-zoom {
  display: none;
}

/* Narrow phones: denser chrome, map keeps remaining space */
@media (max-width: 767px) {
  .brand { font-size: 1rem; }
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .suggest {
    max-height: min(50dvh, 380px);
  }
}

@media (max-width: 380px) {
  .search-panel {
    margin: 0 6px;
    padding: 8px;
    width: calc(100% - 12px);
  }
  .suggest {
    max-height: min(48dvh, 340px);
  }
  .mode-chip {
    padding: 8px 10px;
    font-size: 0.7rem;
    min-height: 36px;
  }
  .nav-instruction { font-size: 1.05rem; }
}

@media (min-width: 768px) {
  #app {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }
  .top-bar { grid-column: 1 / -1; }
  .search-panel {
    margin: 12px;
    align-self: start;
    max-height: none;
    overflow: visible;
    width: auto;
  }
  .suggest {
    max-height: min(70dvh, 560px);
  }
  #map-clip { grid-row: 2; grid-column: 2; }
  body.nav-active #app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  body.nav-active #map-clip {
    grid-column: 1;
    grid-row: 1;
  }
  .result-panel {
    left: auto;
    width: min(420px, calc(100% - 40px));
    right: 16px;
    max-width: min(420px, calc(100% - 40px));
  }
  .nav-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(480px, calc(100% - 32px));
    max-width: min(480px, calc(100% - 32px));
  }
  .field-wrap input {
    font-size: 0.95rem;
  }
}

/* —— 카카오 지도로 보기 —— */
#map.map-behind {
  visibility: hidden;
}
.kakao-map {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #d9e2e8;
}
.map-kind-wrap {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}
body.nav-active .map-kind-wrap {
  top: auto;
  right: auto;
  left: 10px;
  bottom: calc(16px + var(--safe-bottom));
  align-items: flex-start;
  flex-direction: column-reverse;
}
.map-kind-btn {
  pointer-events: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 14px;
  min-height: 40px;
  box-shadow: var(--shadow);
  cursor: pointer;
  touch-action: manipulation;
}
.map-kind-btn[aria-pressed="true"] {
  background: #fee500;
  border-color: #e6cf00;
  color: #191600;
}
.map-kind-btn:disabled {
  opacity: 0.6;
}
.kakao-north-hint {
  background: rgba(18, 22, 28, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}
.kmap-dot {
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.kmap-user {
  width: 22px;
  height: 22px;
}

/* —— 카카오 로그인 · 보호자 공유 —— */
.kakao-login-btn {
  border: 0;
  border-radius: 12px;
  background: #fee500;
  color: #191600;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px 16px;
  min-height: 44px;
  cursor: pointer;
  flex: 1;
}
.kakao-login-btn.compact {
  flex: 0 0 auto;
  font-size: 0.74rem;
  padding: 0 10px;
  min-height: 36px;
  border-radius: 999px;
  white-space: nowrap;
}
.profile-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  min-height: 36px;
  max-width: 120px;
  padding: 0 12px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.nav-ctrl-btn.share {
  background: #fee500;
  color: #191600;
}
.nav-ctrl-btn.share.sharing {
  background: #16a34a;
  color: #fff;
}
.nav-share-state {
  color: #86efac;
  font-weight: 700;
}
.share-consent-list {
  margin: 4px 0 14px;
  padding-left: 18px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink);
}
.share-status-line {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #15803d;
  font-weight: 700;
}
.share-url {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  background: #f8fafc;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.share-actions .chip-mini {
  position: static;
  transform: none;
  font-size: 0.82rem;
  padding: 10px 14px;
  min-height: 40px;
}
.kakao-share-btn {
  border: 0;
  border-radius: 8px;
  background: #fee500;
  color: #191600;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 14px;
  min-height: 40px;
  cursor: pointer;
}
.share-stop-btn {
  width: 100%;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
  border-radius: 12px;
  padding: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}
