/* ============================================================
   芯火村 · 手机版 PWA
   色板与形状均来自设计稿：温暖的篝火/村落感
   深色底 #272019 | 米色页面 #FAF6EF | 主橙 #D96A1E | 高亮橙 #F0A35E
   ============================================================ */

:root {
  --m-dark: #272019;
  --m-page: #FAF6EF;
  --m-orange: #D96A1E;
  --m-orange-hi: #F0A35E;
  --m-accent: #C2591B;
  --m-card: #FFFDF9;
  --m-card-border: #EBE0D2;
  --m-chip: #F1E8DB;
  --m-ink: #2A2119;
  --m-sub: #6B5B49;
  --m-weak: #8C7C6B;
  --m-faint: #A6947F;
  --m-dark-text: #F5EDE2;
  --m-title-font: "DingTalk JinBuTi", "PingFang SC", "Noto Sans SC", sans-serif;
  --m-font: -apple-system, "PingFang SC", "Noto Sans SC", sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--m-font);
  background: var(--m-page);
  color: var(--m-ink);
  min-height: 100vh;
  overscroll-behavior-y: none;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
/* 弹层/浮层打开时锁住背景滚动 */
body.no-scroll { overflow: hidden; }
button:active, .tap:active { transform: scale(.97); }
input, textarea { font-family: inherit; }
[hidden] { display: none !important; }

/* ---------- 动效 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes firePulse {
  0%   { transform: scale(.2); opacity: 0; box-shadow: 0 0 0 rgba(217,106,30,0); }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 80px rgba(217,106,30,.55); }
}

/* ============================================================
   登录层 & 点火过场（深色）
   ============================================================ */
.layer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--m-dark); color: var(--m-dark-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.login-glow {
  position: absolute; left: 50%; bottom: -30vh; width: 140vw; height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center bottom,
    rgba(240,163,94,.5) 0%, rgba(217,106,30,.28) 35%, rgba(39,32,25,0) 72%);
  pointer-events: none;
}
.login-body {
  position: relative; width: min(320px, 84vw);
  display: flex; flex-direction: column; align-items: center;
  animation: fadeUp .4s ease both;
}
.fire-logo {
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F0A35E, #D96A1E 70%);
  color: #FFF7EC; font-family: var(--m-title-font);
  font-size: 42px; line-height: 84px; text-align: center;
  box-shadow: 0 0 40px rgba(217,106,30,.5);
}
.login-title {
  margin-top: 18px; font-family: var(--m-title-font);
  font-size: 32px; letter-spacing: 4px; color: #FFF7EC;
}
.login-sub { margin-top: 8px; font-size: 12.5px; color: var(--m-faint); letter-spacing: 1px; }
.login-form { width: 100%; margin-top: 34px; display: flex; flex-direction: column; gap: 12px; }
.login-input {
  width: 100%; padding: 15px 18px; border-radius: 999px;
  border: 1px solid rgba(240,163,94,.35);
  background: rgba(255,247,236,.07); color: #FFF7EC;
  /* ≥16px：iOS 输入框小于 16px 聚焦时会强制放大页面 */
  font-size: 16px; letter-spacing: 1px; text-align: center; outline: none;
  transition: border-color .2s;
}
.login-input:focus { border-color: var(--m-orange-hi); }
.login-input::placeholder { color: rgba(245,237,226,.4); letter-spacing: 0; }
.login-btn {
  padding: 15px; border-radius: 999px;
  background: linear-gradient(135deg, #F0A35E, #D96A1E);
  color: #FFF7EC; font-size: 16px; font-weight: 700; letter-spacing: 3px;
  box-shadow: 0 8px 24px rgba(217,106,30,.4);
  transition: transform .12s, opacity .2s;
}
.login-btn:disabled { opacity: .55; }
.login-register { margin-top: 22px; font-size: 12.5px; color: var(--m-faint); text-decoration: none; }

/* 点火过场 */
.ignite-fire {
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #FFD9A8, #F0A35E 45%, #D96A1E 80%);
  animation: firePulse 1s ease both;
}
.ignite-title {
  margin-top: 28px; font-family: var(--m-title-font);
  font-size: 24px; letter-spacing: 3px; color: #FFF7EC;
  animation: fadeUp .5s .35s ease both;
}
.ignite-sub { margin-top: 10px; font-size: 13px; color: var(--m-faint); animation: fadeUp .5s .5s ease both; }

/* ============================================================
   主应用框架
   ============================================================ */
.views { max-width: 560px; margin: 0 auto; padding: 20px 16px 0; }
.view { animation: fadeUp .25s ease both; padding-bottom: calc(96px + var(--safe-bottom)); }
.view[data-view="plaza"] { padding-bottom: calc(210px + var(--safe-bottom)); }

.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px;
}
.page-head h1 { font-family: var(--m-title-font); font-size: 25px; font-weight: 700; letter-spacing: 1px; }
.page-head p { margin-top: 4px; font-size: 11.5px; color: var(--m-weak); }

.pill-btn {
  padding: 8px 16px; border-radius: 999px;
  background: var(--m-chip); color: var(--m-accent);
  font-size: 12.5px; font-weight: 600;
  transition: transform .12s;
}

/* ---------- 底部 Tab 栏 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex;
  background: rgba(250,246,239,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--m-card-border);
  padding: 6px 0 calc(6px + var(--safe-bottom));
}
.tab-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 0; color: var(--m-faint); font-size: 10.5px;
  transition: color .2s, transform .12s;
}
.tab-btn.active { color: var(--m-accent); font-weight: 600; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(110px + var(--safe-bottom)); z-index: 90;
  transform: translateX(-50%);
  max-width: 82vw; padding: 11px 22px; border-radius: 999px;
  background: rgba(42,33,25,.94); color: var(--m-dark-text);
  font-size: 13px; letter-spacing: .5px; text-align: center;
  box-shadow: 0 10px 30px rgba(42,33,25,.35);
  animation: fadeUp .25s ease both;
}

/* ---------- 通用卡片 / 空态 / 骨架 ---------- */
.fire-card {
  display: flex; border-radius: 20px; padding: 18px 8px;
  background: linear-gradient(145deg, #33291F, var(--m-dark));
  color: var(--m-dark-text); margin-bottom: 16px;
  box-shadow: 0 10px 26px rgba(42,33,25,.22);
}
.fire-col { flex: 1; text-align: center; }
.fire-col b {
  display: block; font-family: var(--m-title-font);
  font-size: 24px; color: var(--m-orange-hi);
}
.fire-col span { display: block; margin-top: 4px; font-size: 10.5px; color: rgba(245,237,226,.55); }

.empty-note, .loading-note, .error-note {
  padding: 44px 20px; text-align: center;
  font-size: 13px; color: var(--m-faint); line-height: 1.8;
}
.error-note button {
  display: block; margin: 12px auto 0; padding: 8px 22px; border-radius: 999px;
  background: var(--m-chip); color: var(--m-accent); font-size: 12.5px; font-weight: 600;
}
.skeleton {
  border-radius: 16px; background: var(--m-card);
  border: 1px solid var(--m-card-border);
  padding: 16px; margin-bottom: 12px;
}
.skeleton i {
  display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--m-chip) 25%, #F7F0E4 50%, var(--m-chip) 75%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
  margin-bottom: 10px;
}
.skeleton i:last-child { width: 60%; margin-bottom: 0; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- 头像 ---------- */
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  color: #FFF7EC; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* chips */
.mini-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--m-chip); color: var(--m-sub); font-size: 10.5px;
}

/* ============================================================
   广场
   ============================================================ */
.chip-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.channel-chip {
  flex: none; padding: 8px 16px; border-radius: 999px;
  background: var(--m-chip); color: var(--m-sub);
  font-size: 12.5px; white-space: nowrap;
  transition: background .2s, color .2s, transform .12s;
}
.channel-chip.active { background: var(--m-orange); color: #FFF7EC; font-weight: 600; }

.msg-card {
  background: var(--m-card); border: 1px solid var(--m-card-border);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 12px;
  animation: fadeUp .25s ease both;
}
.msg-head { display: flex; align-items: center; gap: 10px; }
.msg-who { flex: 1; min-width: 0; }
.msg-who b { display: block; font-size: 14px; }
.msg-who small { font-size: 10.5px; color: var(--m-faint); }
.msg-role {
  flex: none; padding: 3px 10px; border-radius: 999px;
  background: var(--m-chip); color: var(--m-accent); font-size: 10.5px;
}
.msg-quote {
  margin: 10px 0 0; padding: 8px 12px; border-radius: 10px;
  background: var(--m-chip); border-left: 3px solid var(--m-orange-hi);
  font-size: 12px; color: var(--m-sub);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg-body { margin-top: 10px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.msg-foot { margin-top: 10px; display: flex; align-items: center; gap: 14px; }
.msg-reply-btn {
  padding: 5px 14px; border-radius: 999px;
  background: var(--m-chip); color: var(--m-accent); font-size: 11.5px;
  transition: transform .12s;
}
.msg-reply-count { font-size: 11px; color: var(--m-faint); }

/* ---------- 底部输入条 ---------- */
.composer {
  position: fixed; left: 0; right: 0; z-index: 39;
  bottom: calc(58px + var(--safe-bottom));
  max-width: 560px; margin: 0 auto;
  background: rgba(250,246,239,.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--m-card-border);
  padding: 8px 12px 10px;
}
.composer-readonly {
  text-align: center; font-size: 12px; color: var(--m-faint); padding: 14px;
}
.composer-reply {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px; margin-bottom: 8px; border-radius: 10px;
  background: var(--m-chip); font-size: 12px; color: var(--m-accent);
}
.composer-reply button { font-size: 16px; color: var(--m-weak); padding: 0 4px; }
.composer-tags { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.composer-tags::-webkit-scrollbar { display: none; }
.composer-tags button {
  flex: none; padding: 5px 12px; border-radius: 999px;
  background: var(--m-chip); color: var(--m-accent); font-size: 11.5px;
  transition: transform .12s;
}
.composer-row { display: flex; align-items: flex-end; gap: 10px; }
.composer-input {
  flex: 1; resize: none; max-height: 180px; overflow-y: auto;
  padding: 11px 16px; border-radius: 20px;
  border: 1px solid var(--m-card-border); background: var(--m-card);
  /* ≥16px 防 iOS 聚焦缩放 */
  font-size: 16px; line-height: 1.5; outline: none; color: var(--m-ink);
}
.composer-input:focus { border-color: var(--m-orange-hi); }
.composer-send {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #F0A35E, #D96A1E); color: #FFF7EC;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(217,106,30,.35);
  transition: transform .12s, opacity .2s;
}
.composer-send:disabled { opacity: .5; }

/* ============================================================
   档案
   ============================================================ */
.search-input {
  width: 100%; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--m-card-border); background: var(--m-chip);
  /* ≥16px 防 iOS 聚焦缩放 */
  font-size: 16px; outline: none; color: var(--m-ink);
  -webkit-appearance: none;
}
.search-input:focus { border-color: var(--m-orange-hi); background: var(--m-card); }
.random-btn {
  width: 100%; margin: 12px 0 16px; padding: 13px;
  border: 1.5px dashed var(--m-orange-hi); border-radius: 16px;
  color: var(--m-accent); font-size: 13.5px; font-weight: 600;
  background: rgba(240,163,94,.07);
  transition: transform .12s;
}
.villager-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--m-card); border: 1px solid var(--m-card-border);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 12px;
  animation: fadeUp .25s ease both;
  transition: transform .12s;
}
.villager-card:active { transform: scale(.97); }
.vc-main { flex: 1; min-width: 0; }
.vc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vc-top b { font-size: 14.5px; }
.vc-role { padding: 3px 10px; border-radius: 999px; background: var(--m-chip); color: var(--m-accent); font-size: 10.5px; }
.vc-days { font-size: 10.5px; color: var(--m-faint); }
.vc-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.vc-slogan {
  margin-top: 8px; font-size: 12px; color: var(--m-sub); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-sentinel { height: 1px; }
.list-more-note { text-align: center; font-size: 11.5px; color: var(--m-faint); padding: 10px 0 20px; }

/* ============================================================
   村民底部弹层
   ============================================================ */
.sheet { position: fixed; inset: 0; z-index: 70; }
.sheet-mask { position: absolute; inset: 0; background: rgba(42,33,25,.5); animation: fadeIn .25s ease both; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 560px; margin: 0 auto; max-height: 82vh; overflow-y: auto;
  background: var(--m-page); border-radius: 22px 22px 0 0;
  padding: 22px 20px calc(26px + var(--safe-bottom));
  animation: sheetUp .28s ease both;
}
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--m-card-border); margin: 0 auto 18px; }
.sheet-head { display: flex; gap: 14px; align-items: center; }
.sheet-head .avatar { width: 56px; height: 56px; font-size: 22px; }
.sheet-head-main b { display: block; font-family: var(--m-title-font); font-size: 20px; }
.sheet-head-meta { margin-top: 5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sheet-bio {
  margin-top: 16px; padding: 14px 16px; border-radius: 16px;
  background: var(--m-card); border: 1px solid var(--m-card-border);
  font-size: 13.5px; line-height: 1.8; color: var(--m-sub); white-space: pre-wrap; word-break: break-word;
}
.sheet-tags { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.sheet-full-btn {
  width: 100%; margin-top: 18px; padding: 14px; border-radius: 999px;
  background: linear-gradient(135deg, #F0A35E, #D96A1E); color: #FFF7EC;
  font-size: 14.5px; font-weight: 700; letter-spacing: 2px;
  box-shadow: 0 8px 20px rgba(217,106,30,.3);
  transition: transform .12s, opacity .2s;
}
.sheet-full-btn:disabled { opacity: .55; }
.sheet-section { margin-top: 16px; animation: fadeUp .25s ease both; }
.sheet-section h3 { font-size: 12px; color: var(--m-accent); letter-spacing: 1px; margin-bottom: 8px; }
.sheet-section .sheet-bio { margin-top: 0; }
.sheet-exp {
  padding: 12px 16px; border-radius: 14px; margin-bottom: 8px;
  background: var(--m-card); border: 1px solid var(--m-card-border);
}
.sheet-exp-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sheet-exp-head b { font-size: 13.5px; }
.sheet-exp-head time, .sheet-exp-head span { font-size: 10.5px; color: var(--m-faint); }
.sheet-exp p { margin-top: 6px; font-size: 12.5px; color: var(--m-sub); line-height: 1.7; }

/* ============================================================
   村民证
   ============================================================ */
.passport-card {
  border-radius: 20px; padding: 26px 22px;
  background: linear-gradient(155deg, #3A2E21, var(--m-dark) 70%);
  color: var(--m-dark-text); position: relative; overflow: hidden;
  box-shadow: 0 14px 34px rgba(42,33,25,.3);
  animation: fadeUp .25s ease both;
}
.passport-card::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,163,94,.25), transparent 70%);
}
.pp-top { display: flex; align-items: center; gap: 14px; }
.pp-logo {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F0A35E, #D96A1E 70%);
  color: #FFF7EC; font-family: var(--m-title-font);
  font-size: 26px; line-height: 52px; text-align: center;
}
.pp-name { font-family: var(--m-title-font); font-size: 24px; color: #FFF7EC; }
.pp-no { margin-top: 3px; font-size: 11.5px; color: var(--m-orange-hi); letter-spacing: 2px; font-family: var(--m-title-font); }
.pp-meta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.pp-meta span {
  padding: 4px 12px; border-radius: 999px;
  background: rgba(240,163,94,.14); border: 1px solid rgba(240,163,94,.3);
  color: var(--m-orange-hi); font-size: 11px;
}
.pp-slogan {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px dashed rgba(240,163,94,.3);
  font-size: 13.5px; line-height: 1.8; color: rgba(245,237,226,.85);
}
.pp-actions { display: flex; gap: 10px; margin-top: 16px; }
.pp-actions a {
  flex: 1; padding: 13px; border-radius: 999px; text-align: center;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: transform .12s;
}
.pp-actions a:active { transform: scale(.97); }
.pp-act-primary { background: linear-gradient(135deg, #F0A35E, #D96A1E); color: #FFF7EC; }
.pp-act-ghost { background: var(--m-chip); color: var(--m-accent); }
.complete-card {
  margin-top: 16px; padding: 18px; border-radius: 16px;
  background: var(--m-card); border: 1px solid var(--m-card-border);
  animation: fadeUp .25s ease both;
}
.complete-head { display: flex; justify-content: space-between; align-items: baseline; }
.complete-head h3 { font-size: 14px; }
.complete-head b { font-family: var(--m-title-font); font-size: 20px; color: var(--m-accent); }
.complete-bar {
  margin-top: 12px; height: 8px; border-radius: 4px; background: var(--m-chip); overflow: hidden;
}
.complete-bar i {
  display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, #F0A35E, #D96A1E);
  transition: width .8s cubic-bezier(.22,.61,.36,1);
}
.complete-items { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.complete-items span {
  padding: 4px 12px; border-radius: 999px; font-size: 11px;
  background: var(--m-chip); color: var(--m-faint);
}
.complete-items span.done { background: rgba(240,163,94,.16); color: var(--m-accent); }
.logout-btn {
  display: block; width: 100%; margin-top: 22px; padding: 14px;
  border-radius: 999px; background: var(--m-chip); color: var(--m-weak);
  font-size: 13.5px; transition: transform .12s;
}

/* ============================================================
   日志时间线
   ============================================================ */
.timeline { position: relative; }
.tl-group { margin-bottom: 6px; }
.tl-date {
  font-family: var(--m-title-font); font-size: 14px; color: var(--m-accent);
  margin: 6px 0 10px; letter-spacing: 1px;
}
.tl-items { position: relative; padding-left: 18px; }
.tl-items::before {
  content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px;
  width: 2px; background: var(--m-card-border);
}
.tl-item { position: relative; margin-bottom: 12px; }
.tl-item::before {
  content: ""; position: absolute; left: -18.5px; top: 16px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #E1B183; border: 2px solid var(--m-page);
}
.tl-item.today::before { background: var(--m-orange); }
.tl-card {
  background: var(--m-card); border: 1px solid var(--m-card-border);
  border-radius: 16px; padding: 13px 16px;
}
.tl-cat {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--m-chip); color: var(--m-accent); font-size: 10.5px;
}
.tl-card b { display: block; margin-top: 7px; font-size: 14px; line-height: 1.5; }
.tl-card p { margin-top: 5px; font-size: 12.5px; color: var(--m-sub); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.tl-meta { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================================
   安装引导横幅 / iOS 引导浮层
   ============================================================ */
.install-banner {
  position: fixed; left: 12px; right: 12px; z-index: 80;
  bottom: calc(70px + var(--safe-bottom));
  max-width: 536px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  background: var(--m-dark); color: var(--m-dark-text);
  border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 14px 34px rgba(42,33,25,.4);
  animation: fadeUp .35s ease both;
}
.install-banner p { flex: 1; font-size: 13px; line-height: 1.5; }
.install-banner button {
  flex: none; padding: 9px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  transition: transform .12s;
}
.install-yes { background: linear-gradient(135deg, #F0A35E, #D96A1E); color: #FFF7EC; }
.install-no { background: rgba(245,237,226,.12); color: var(--m-faint); }
.ios-guide {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(42,33,25,.72);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .25s ease both;
}
.ios-guide-panel {
  width: 100%; max-width: 560px;
  background: var(--m-page); border-radius: 22px 22px 0 0;
  padding: 24px 22px calc(30px + var(--safe-bottom));
  animation: sheetUp .28s ease both;
}
.ios-guide-panel h3 { font-family: var(--m-title-font); font-size: 18px; }
.ios-guide-panel ol { margin: 14px 0 0; padding: 0; list-style: none; }
.ios-guide-panel li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 10px; border-radius: 14px;
  background: var(--m-card); border: 1px solid var(--m-card-border);
  font-size: 13.5px; line-height: 1.6;
}
.ios-guide-panel li b { color: var(--m-accent); font-size: 18px; flex: none; }
.ios-guide-close {
  width: 100%; margin-top: 8px; padding: 13px; border-radius: 999px;
  background: var(--m-chip); color: var(--m-sub); font-size: 13.5px;
}
