/* 顾言的手机：落下提醒弹窗 + 丢失页面（js/phone-lost.js） */

/* ── 弹窗 ── */
.phone-lost-modal .mem-form-actions { margin-top: 14px; }

.phone-lost-danger-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  color: oklch(0.78 0.12 25);
  border-color: oklch(0.62 0.14 25 / 0.35);
  background: oklch(0.45 0.12 25 / 0.12);
  text-align: center;
}

.phone-lost-wheel { margin: 6px auto 0; max-width: 260px; }
.phone-lost-wheel .tw-colon {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  width: 2.4em;
}

/* 静听 / 喊话 */
.phone-lost-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.phone-lost-seg button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-tint-12);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.phone-lost-seg button svg { width: 22px; height: 22px; }
.phone-lost-seg button.is-on {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-tint-10);
}
.phone-lost-call-status {
  margin-top: 12px;
  text-align: center;
  color: var(--text-secondary);
}

/* ── 丢失页面 ── */
.phone-lost-panel { z-index: 260; }
.phone-lost-panel .panel-header h3 { display: flex; align-items: center; gap: 8px; }
.phone-lost-panel .panel-header h3 svg { width: 18px; height: 18px; }

.phone-lost-state {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: var(--font-size-xs);
  white-space: nowrap;
  border: 1px solid var(--border-tint-12);
  color: var(--text-secondary);
}
.phone-lost-state.is-ok { color: oklch(0.82 0.1 155); border-color: oklch(0.7 0.1 155 / 0.4); }
.phone-lost-state.is-warn { color: oklch(0.85 0.12 80); border-color: oklch(0.75 0.12 80 / 0.45); }
.phone-lost-state.is-lost {
  color: oklch(0.82 0.13 25);
  border-color: oklch(0.65 0.15 25 / 0.5);
  background: oklch(0.45 0.13 25 / 0.15);
}

.phone-lost-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.phone-lost-map-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-tint-10);
}
.phone-lost-map {
  height: min(52vh, 440px);
  min-height: 260px;
  background: oklch(0.22 0.03 290);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
}
.phone-lost-map .leaflet-tile-pane { filter: saturate(0.75) brightness(0.92); }
.phone-lost-map .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(20, 16, 36, 0.6);
  color: rgba(255, 255, 255, 0.7);
}
.phone-lost-map .leaflet-control-attribution a { color: inherit; }

.phone-lost-recenter {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 500;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.92);
  color: #2a2440;
  cursor: pointer;
}
.phone-lost-recenter svg { width: 18px; height: 18px; }

.phone-lost-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}
.phone-lost-legend span { display: inline-flex; align-items: center; gap: 6px; }
.phone-lost-legend strong {
  margin-left: auto;
  font-weight: 500;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.phone-lost-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.phone-lost-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px 14px;
}
.phone-lost-facts div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.phone-lost-facts dt { color: var(--text-muted); display: flex; }
.phone-lost-facts dt svg { width: 16px; height: 16px; }
.phone-lost-facts dd {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.phone-lost-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.phone-lost-bars i {
  width: 3px;
  border-radius: 1px;
  background: var(--border-tint-15);
}
.phone-lost-bars i:nth-child(1) { height: 4px; }
.phone-lost-bars i:nth-child(2) { height: 6px; }
.phone-lost-bars i:nth-child(3) { height: 9px; }
.phone-lost-bars i:nth-child(4) { height: 12px; }
.phone-lost-bars i.on { background: oklch(0.82 0.1 155); }

.phone-lost-actions { display: flex; flex-direction: column; gap: 12px; }
.phone-lost-act-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
}
.phone-lost-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-tint-10);
  background: rgba(168, 148, 255, 0.05);
  color: var(--text-primary);
  font: inherit;
  font-size: var(--font-size-xs);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.phone-lost-act svg { width: 20px; height: 20px; color: var(--text-accent); }
.phone-lost-act:active { transform: scale(0.97); background: rgba(168, 148, 255, 0.12); }
.phone-lost-actions .phone-lost-danger-btn { margin-top: 0; }

.phone-lost-photos h4 {
  margin: 0 0 8px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
}
.phone-lost-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}
.phone-lost-photo-grid figure { margin: 0; cursor: pointer; }
.phone-lost-photo-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--border-tint-8);
  display: block;
}
.phone-lost-photo-grid figcaption {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-lost-photo-modal { display: flex; align-items: center; justify-content: center; }
.phone-lost-photo-full { position: relative; max-width: 94vw; max-height: 90vh; }
.phone-lost-photo-full img { max-width: 94vw; max-height: 90vh; border-radius: var(--radius-md); display: block; }
.phone-lost-photo-full .modal-close-btn { position: absolute; top: 8px; right: 8px; }

.phone-lost-contact { margin: 0; }
.phone-lost-form { display: flex; flex-direction: column; gap: 10px; }
.phone-lost-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}
.phone-lost-form input,
.phone-lost-form textarea {
  font: inherit;
  font-size: var(--font-size-sm);
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-tint-12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  resize: vertical;
}
.phone-lost-form button[type="submit"] { margin-top: 4px; }

/* 设置里「顾言的手机」最下面：限制无法解除时怎么恢复 */
.phone-lost-help { margin-top: 12px; font-size: var(--font-size-xs); }
.phone-lost-help > summary { cursor: pointer; color: var(--text-muted); padding: 6px 0; }
.phone-lost-help ol { margin: 4px 0 0; padding-left: 1.4em; color: var(--text-secondary); line-height: 1.7; }
.phone-lost-help li + li { margin-top: 4px; }
.phone-lost-help code { word-break: break-all; }
