/* ============================================================
   心动日常 · 云端版补充样式
   基础样式沿用 style.css，这里只放云端新增界面。
   ============================================================ */

:root {
  --ok: #2fae74;
  --warn: #d9822b;
  --danger: #c9302c;
  --glass: rgba(255, 255, 255, .78);
}

.tabbar[hidden] { display: none !important; }

.tabbar .tab { font-size: 10px; }
.tabbar .tab svg { width: 21px; height: 21px; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input, textarea, select { font-size: 16px; }
@media (min-width: 420px) {
  input, textarea, select { font-size: 13px; }
}

/* ---------------- 启动占位 ---------------- */

.boot {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.boot-heart {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 30px -16px var(--accent-shadow);
  animation: bootBeat 1.4s ease-in-out infinite;
}

@keyframes bootBeat {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.08); }
  55% { transform: scale(.98); }
}

/* ---------------- 登录 / 注册 ---------------- */

.auth {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(26px + env(safe-area-inset-bottom));
}

.auth-brand { text-align: center; margin-bottom: 20px; }

.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #fff;
  border-radius: 23px;
  background:
    radial-gradient(120% 100% at 85% 0%, rgba(255, 255, 255, .4), transparent 55%),
    linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 22px 38px -20px var(--accent-shadow);
  transform: rotate(-4deg);
}

.auth-brand h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.auth-brand p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.auth-card {
  padding: 18px 17px 17px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 15px;
  border-radius: 999px;
  background: var(--soft);
}

.auth-tabs button {
  flex: 1;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border-radius: 999px;
  transition: .2s ease;
}

.auth-tabs button.active {
  color: var(--accent-ink);
  background: #fff;
  box-shadow: 0 5px 14px -8px rgba(120, 70, 90, .5);
}

.auth-form { display: flex; flex-direction: column; gap: 11px; }

.auth-form .field > span { font-size: 10px; }

.auth-form .btn-primary { margin-top: 3px; }

.auth-error {
  margin: 0;
  padding: 9px 11px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--danger);
  border-radius: 12px;
  background: #fff0f0;
}

.auth-error:empty { display: none; }

.auth-switch-line {
  margin: 12px 0 0;
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
}

.auth-switch-line button { color: var(--accent-text); font-weight: 700; }

.auth-foot {
  margin: 16px 4px 0;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}

.auth-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.auth-badges span {
  padding: 5px 10px;
  font-size: 9.5px;
  color: var(--ink-2);
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
}

.avatar-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 2px;
}

.avatar-opt {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 20px;
  border-radius: 13px;
  background: var(--soft);
  border: 1.5px solid transparent;
  transition: .16s ease;
}

.avatar-opt.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.04);
}

/* ---------------- 配对页 ---------------- */

.pair { padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); }

.pair-head { text-align: center; margin-bottom: 18px; }
.pair-head .auth-logo { margin-bottom: 12px; }
.pair-head h1 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.03em; }
.pair-head p { margin: 7px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--muted); }

.pair-card {
  position: relative;
  margin-bottom: 12px;
  padding: 17px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pair-card h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.pair-card > p {
  margin: 5px 0 13px;
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--muted);
}

.pair-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 2px 0 11px;
  padding: 14px 8px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--accent-ink);
  border-radius: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .7) 0 8px, transparent 8px 16px),
    var(--accent-soft);
  border: 1px dashed var(--accent);
  user-select: all;
}

.pair-code small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-indent: 0;
  color: var(--muted);
}

.pair-code.expired { color: var(--muted); border-color: var(--line); background: var(--soft); }

.pair-actions { display: flex; gap: 8px; }
.pair-actions .btn-primary,
.pair-actions .btn-ghost { flex: 1; }

.pair-hint {
  margin: 9px 0 0;
  font-size: 10px;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
}

.pair-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-size: 10px;
  color: var(--muted);
}

.pair-or::before,
.pair-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.join-form { display: flex; gap: 8px; }
.join-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--soft);
  outline: 0;
}
.join-form input:focus { border-color: var(--accent); background: #fff; }
.join-form button {
  flex-shrink: 0;
  padding: 0 17px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 14px;
  background: var(--accent);
}

.pair-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 4px;
  padding: 11px 12px;
  border-radius: 16px;
  background: var(--soft);
}

.pair-profile .p-ava {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 21px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
}

.pair-profile b { display: block; font-size: 12.5px; }
.pair-profile small { font-size: 10px; color: var(--muted); }

.pair-foot {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 10.5px;
  color: var(--muted);
}

/* ---------------- 通用小组件 ---------------- */

.muted { color: var(--muted); }
.small { font-size: 10.5px; }
.tiny { font-size: 9.5px; }
.nowrap { white-space: nowrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spacer { flex: 1; }

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #cbb9c0;
  vertical-align: 1px;
}

.status-dot.on {
  background: #34c47c;
  box-shadow: 0 0 0 3px rgba(52, 196, 124, .16);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 9.5px;
  font-weight: 600;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.badge.gray { color: var(--muted); background: var(--soft); }
.badge.green { color: #1b7f55; background: #e6f8ef; }
.badge.orange { color: #9a5a13; background: #fff3e3; }

.banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 20px 0;
  padding: 11px 13px;
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--ink-2);
  border-radius: 16px;
  background: #fff7e9;
  border: 1px solid #ffe7bf;
}

.banner.danger { background: #fff0f0; border-color: #ffdada; color: #a33; }
.banner b { color: inherit; }

.conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-size: 9px;
  color: var(--muted);
  border-radius: 999px;
  background: var(--soft);
}

.conn-pill.online { color: #1b7f55; background: #e6f8ef; }

.refresh-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--muted);
  border-radius: 50%;
  background: var(--soft);
  flex-shrink: 0;
}

.refresh-btn.spin { animation: spin .8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.section-note {
  margin: 18px 22px 0;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

.mini-note.left { text-align: left; margin-left: 2px; margin-right: 2px; }

/* ---------------- 首页附加 ---------------- */

.avatar-btn.offline::after { background: #cbb9c0; box-shadow: none; }

.home-loc {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 20px 0;
  padding: 14px 15px;
  text-align: left;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-loc::after {
  content: "";
  position: absolute;
  width: 94px;
  height: 94px;
  right: -38px;
  bottom: -48px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: .75;
}

.home-loc .hl-ava {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 23px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
}

.home-loc .hl-main { flex: 1; min-width: 0; position: relative; z-index: 1; }
.home-loc .hl-main b { display: block; font-size: 12.5px; font-weight: 700; }
.home-loc .hl-main small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-loc .hl-go {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-ink);
  border-radius: 999px;
  background: var(--accent-soft);
}

.week-strip.two { gap: 2px; }

.day .d-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 17px;
  font-size: 12px;
  line-height: 1;
}

.day .d-pair .none { color: #ddd0d5; }
.day .d-pair .ta { opacity: .72; font-size: 11px; }
.day .d-pair .sep { color: var(--line); font-size: 8px; }

.week-legend {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin-top: 7px;
  font-size: 9px;
  color: var(--muted);
}

.week-legend i { font-style: normal; }

/* ---------------- 位置页 ---------------- */

.loc-page { padding-bottom: 20px; }

.loc-hero {
  margin: 2px 20px 0;
  padding: 17px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.loc-hero-top { display: flex; align-items: center; gap: 11px; }

.loc-ava {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--line);
}

.loc-ava .dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cbb9c0;
  border: 2px solid #fff;
}

.loc-ava .dot.online { background: #34c47c; }

.loc-who { flex: 1; min-width: 0; }
.loc-who b { display: block; font-size: 13px; font-weight: 700; }
.loc-who small { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); }

.loc-state { font-size: 10px; font-weight: 700; }
.loc-state.on { color: #1b7f55; }
.loc-state.off { color: var(--muted); }

.loc-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.loc-detail span {
  padding: 5px 9px;
  font-size: 9.5px;
  color: var(--ink-2);
  border-radius: 999px;
  background: var(--soft);
}

.loc-detail span strong { font-weight: 700; color: var(--ink); }

.map-wrap {
  position: relative;
  height: 228px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)),
    var(--soft);
  border: 1px solid var(--line);
  touch-action: none;
}

.map-tiles { position: absolute; inset: 0; overflow: hidden; }
.map-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
  pointer-events: none;
  filter: saturate(.82) contrast(.98);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 17px;
  border-radius: 50% 50% 50% 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 2px solid #fff;
  box-shadow: 0 8px 18px -6px rgba(80, 30, 60, .55);
  transform: translate(-50%, -100%) rotate(-45deg);
}

.map-pin span { transform: rotate(45deg); }

.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 22px;
  height: 7px;
  border-radius: 50%;
  background: rgba(60, 25, 45, .22);
  transform: translateX(-50%) rotate(45deg);
}

.map-attrib {
  position: absolute;
  right: 5px;
  bottom: 4px;
  z-index: 4;
  padding: 2px 5px;
  font-size: 8px;
  color: #5e5348;
  background: rgba(255, 255, 255, .8);
  border-radius: 4px;
}

.map-attrib a { color: inherit; }

.map-zoom {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.map-zoom button {
  width: 30px;
  height: 30px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-2);
}

.map-zoom button + button { border-top: 1px solid var(--line); }

.map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 20px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.map-empty span { font-size: 30px; }

.map-note {
  margin: 7px 2px 0;
  font-size: 9px;
  color: var(--muted);
  text-align: right;
}

.map-actions { display: flex; gap: 8px; margin-top: 10px; }
.map-actions .btn-ghost,
.map-actions .btn-primary { flex: 1; font-size: 11px; padding: 9px 8px; }

.loc-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 20px 0;
  padding: 14px 15px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.loc-share .ls-main { flex: 1; min-width: 0; }
.loc-share b { display: block; font-size: 12.5px; }
.loc-share small { display: block; margin-top: 2px; font-size: 9.5px; line-height: 1.5; color: var(--muted); }

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #e8dbe1;
  transition: background .2s ease;
}

.switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px -2px rgba(80, 40, 60, .45);
  transition: transform .2s cubic-bezier(.2, .9, .3, 1);
}

.switch[aria-checked="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.switch[aria-checked="true"]::after { transform: translateX(20px); }

.switch:active::after { width: 24px; }

.loc-tips {
  margin: 14px 20px 0;
  padding: 13px 14px;
  border-radius: 18px;
  background: var(--soft);
  border: 1px dashed var(--line);
}

.loc-tips h3 { margin: 0 0 6px; font-size: 11px; font-weight: 700; }
.loc-tips ul { margin: 0; padding-left: 15px; }
.loc-tips li { margin: 4px 0; font-size: 10px; line-height: 1.6; color: var(--muted); }

/* ---------------- 相册附加 ---------------- */

.album-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px 10px;
}

.album-toolbar small { font-size: 10px; color: var(--muted); }

.photo-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 2px 6px;
  font-size: 8.5px;
  color: #fff;
  border-radius: 999px;
  background: rgba(45, 25, 38, .45);
  backdrop-filter: blur(4px);
}

.uploading {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(45, 25, 38, .32);
  backdrop-filter: blur(2px);
}

.uploading-card {
  width: 210px;
  padding: 22px 20px;
  text-align: center;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.uploading-card .boot-heart { width: 42px; height: 42px; margin: 0 auto 10px; font-size: 19px; }
.uploading-card b { display: block; font-size: 12.5px; }
.uploading-card small { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); }

.progress {
  height: 5px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .2s ease;
}

/* ---------------- 写日常 / 表单 ---------------- */

.compose-mood-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.compose-mood-row::-webkit-scrollbar { display: none; }

.compose-mood-row button {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  border-radius: 50%;
  background: var(--soft);
  border: 1.5px solid transparent;
}

.compose-mood-row button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.06);
}

.compose-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}

.compose-label button { font-size: 10px; color: var(--accent-text); font-weight: 700; }

.form-actions { display: flex; gap: 9px; margin-top: 16px; }
.form-actions .btn-primary,
.form-actions .btn-ghost { flex: 1; }

.form-actions .btn-primary[disabled],
.form-actions .btn-ghost[disabled] { opacity: .55; }

/* ---------------- 心愿 / 时光附加 ---------------- */

.wish-by {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--muted);
}

.moment .more-btn[disabled] { visibility: hidden; }

.comment-del {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #cbb9c0;
  border-radius: 50%;
}
.comment-del:hover { color: var(--danger); background: #fff0f0; }

.comment { align-items: flex-start; }
.comment .c-body { flex: 1; min-width: 0; }
.comment .c-body b { display: block; font-size: 9.5px; }
.comment .c-body span { font-size: 11px; line-height: 1.55; word-break: break-word; }

/* ---------------- 我的页附加 ---------------- */

.me-account {
  margin: 14px 20px 0;
  padding: 15px 16px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.me-account .ac-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}

.me-account .ac-row + .ac-row {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.me-account b { font-size: 11.5px; color: var(--ink); font-weight: 600; }

.theme-row .swatch {
  position: relative;
  flex: 1;
  padding: 7px 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-radius: 13px;
  border: 1.5px solid transparent;
}

.theme-row .swatch i {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 2px #fff, 0 4px 8px -3px rgba(80, 40, 60, .3);
}

.theme-row .swatch span { font-size: 8.5px; color: var(--muted); }

.theme-row .swatch.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.theme-row .swatch.active span { color: var(--accent-text); font-weight: 700; }

.version {
  margin: 18px 20px calc(8px + env(safe-area-inset-bottom));
  font-size: 9.5px;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}

/* ---------------- 详情与弹层附加 ---------------- */

.lightbox-actions { display: flex; gap: 8px; margin-top: 12px; }
.lightbox-actions .btn-ghost { flex: 1; font-size: 11px; padding: 9px; }

.key-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  font-size: 11.5px;
  border-bottom: 1px dashed var(--line);
}

.key-value:last-child { border-bottom: 0; }
.key-value span { color: var(--muted); }
.key-value b { font-weight: 600; word-break: break-all; text-align: right; }

.copy-box {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 6px 6px 13px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 12px;
}

.copy-box span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-box button {
  flex-shrink: 0;
  padding: 7px 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  border-radius: 10px;
  background: var(--accent);
}

.install-steps { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: step; }
.install-steps li {
  position: relative;
  padding: 8px 0 8px 30px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
  counter-increment: step;
}
.install-steps li:last-child { border-bottom: 0; }
.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  border-radius: 50%;
  background: var(--accent-soft);
}
.install-steps b { color: var(--ink); }

/* ---------------- 时光图片按钮 ---------------- */

.m-img-btn {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
}

.map-actions .btn-ghost,
.sheet-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- 窄屏微调 ---------------- */

@media (max-width: 359px) {
  .auth { padding-left: 16px; padding-right: 16px; }
  .pair { padding-left: 14px; padding-right: 14px; }
  .tabbar { padding-left: 4px; padding-right: 4px; }
  .tabbar .tab { font-size: 9px; }
  .tabbar .tab svg { width: 19px; height: 19px; }
  .pair-code { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
