/* ==========================================================================
   到场（Arrive）前台唯一样式表
   移动端优先 · 深色安静调性 · 无外部字体与 CDN 依赖
   ========================================================================== */

:root {
  --bg: #0e0f13;
  --panel: #16181d;
  --panel-2: #1b1e24;
  --field: #12141a;   /* 输入控件的底：比面板再深一点，切柔光时换成白 */
  --line: #272b34;
  --text: #e8eaef;
  --muted: #9aa0ad;
  --accent: #8fbfae;
  --accent-deep: #5f9b89;
  --accent-ink: #0d1512;
  --warn: #d8b56a;
  --danger: #e0938a;
  --radius: 14px;
  --tap: 44px;

  /* V1.2 观感修订：层次靠「光 + 边 + 影」三件件套出来，不引入外部字体与图片 */
  --accent-2: #b6d8c8;
  --gold: #e3c584;
  --grad-accent: linear-gradient(135deg, #9fcdbb 0%, #6aa894 52%, #4e8a78 100%);
  --grad-panel: linear-gradient(180deg, rgba(255, 255, 255, .045) 0%, rgba(255, 255, 255, 0) 46%);
  --grad-line: linear-gradient(90deg, rgba(143, 191, 174, .55), rgba(143, 191, 174, .06));
  --ring: 0 0 0 1px rgba(143, 191, 174, .22);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 10px 26px -12px rgba(0, 0, 0, .62);
  --shadow-glow: 0 8px 22px -10px rgba(143, 191, 174, .42);
  --wrap: 760px;

  /* V1.2.2 第四部分：动效令牌。时长只有三档、缓动只有两条曲线，
     组件不再各写各的 .16s/.2s/.25s；「关掉动效」由 html[data-motion="off"] 统一退成瞬时。 */
  --t-1: .14s;  /* 微交互：按下去、hover 上色这类立刻要有反应的 */
  --t-2: .24s;  /* 状态切换：展开、选中、焦点环 */
  --t-3: .44s;  /* 进场：页面与卡片滑进来 */
  --ease: cubic-bezier(.22, .82, .3, 1);     /* 收尾柔和的减速 */
  --ease-soft: cubic-bezier(.32, .72, 0, 1); /* 长距离位移用的更慢的减速 */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* 顶部一颗冷光 + 右下角一抹暖光：深色底不再是一片死黑 */
  background:
    radial-gradient(1000px 520px at 12% -8%, rgba(143, 191, 174, .13), transparent 62%),
    radial-gradient(760px 460px at 96% 8%, rgba(227, 197, 132, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .008em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 25px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: .4em 0; }
ul, ol { margin: .4em 0; padding-left: 1.2em; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 布局 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(14, 15, 19, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
/* 品牌与导航之间的一条渐变分隔线：滚动时顶栏不至于「一块黑」 */
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--grad-line);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: .01em;
}
/* 站长的新 logo 是位图（自带配色），不再走 currentColor —— 原来那行 color: var(--accent)
   只对旧的 logo.svg 有意义，留着会让人以为改主题色能改 logo 颜色。
   源图 256px，导航用 22px：三倍图，Retina 上不糊。 */
.brand img { width: 22px; height: 22px; display: block; }
.brand:hover { text-decoration: none; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 15px;
  border: 1px solid transparent;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.nav a:hover { color: var(--text); background: var(--panel-2); border-color: var(--line); text-decoration: none; }
/* 退出走 POST 表单（V1.2 评审小项 18），按钮与普通导航项同一观感 */
.nav form { display: inline-flex; margin: 0; }
.nav button {
  appearance: none;
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
  padding: 8px 11px;
  font-size: 15px;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.nav button:hover { color: var(--text); background: var(--panel-2); border-color: var(--line); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 16px 40px;
}

.foot {
  padding: 26px 16px 46px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.back {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 6px 8px 6px 0;
  min-height: var(--tap);
}

/* ---------------------------------------------------------------- 卡片与通用块 */
.card {
  position: relative;
  background: var(--panel);
  background-image: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-1), var(--shadow-2);
}
/* 顶部一道 1px 高光，让卡片从背景里「浮」起来 */
.card::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
}

.card-title {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title::before {
  content: "";
  width: 4px; height: 15px;
  border-radius: 3px;
  background: var(--grad-accent);
  flex: none;
}
.card-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--accent);
  margin-top: 2px;
}
.card-label { color: var(--muted); font-size: 14px; }

.notice {
  border-radius: 11px;
  padding: 11px 14px;
  margin-bottom: 14px;
  font-size: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.notice.ok { border-left-color: var(--accent); background: rgba(143, 191, 174, .08); color: var(--accent-2); }
.notice.err { border-left-color: var(--danger); background: rgba(224, 147, 138, .07); color: var(--danger); }
/* 「你还占着另一块」这种既不算错也不算成的提示：用 warn 的琥珀边，正文色不变，柔光下不糊 */
.notice.warn { border-left-color: var(--warn); background: rgba(216, 181, 106, .08); }
.notice-link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
/* 柔光下 --accent（#3f7f6b）在浅底上实测 4.1:1，够不上小字 AA；链接这档用深一级的 --accent-deep（实测 5.5:1） */
html[data-theme="light"] .notice .notice-link { color: var(--accent-deep); }

.empty { color: var(--muted); font-size: 14px; padding: 14px 12px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }

.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
/* .grid3 已随旧首页形态一起删除：模板里没有输出过这个类 */

.entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  min-height: 96px;
  border-radius: 14px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.entry b { font-size: 16px; }
.entry span { color: var(--muted); font-size: 13px; }
.entry:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }
a.entry:hover { text-decoration: none; border-color: var(--accent-deep); }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 10px 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--panel-2);
  background-image: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: transform .14s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn:hover { border-color: var(--accent-deep); text-decoration: none; box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn.primary {
  background: var(--grad-accent);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.btn.primary:hover { background: linear-gradient(135deg, #aad4c3 0%, #74b29d 52%, #569384 100%); }

.btn.ghost { background: transparent; background-image: none; }

.btn.danger { color: var(--danger); border-color: #513a36; background: transparent; }
.btn.danger:hover { border-color: var(--danger); background: rgba(224, 147, 138, .08); }

.btn.big { width: 100%; font-size: 17px; min-height: 52px; border-radius: 14px; letter-spacing: .01em; }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: 13px; border-radius: 9px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------------------------------------------------------------- 表单 */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent-deep); outline: none; box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #5c626f; }
textarea { resize: vertical; min-height: 96px; }

/* ---------------------------------------------------------------- Tabs（登录页） */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab {
  flex: 1;
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  font-family: inherit;
  padding: 10px 0;
  cursor: pointer;
}
.tab.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel[hidden] { display: none; }

/* 主页旧形态（.hero / .divider / .grid3）在 V1.2.2 已由到场圆环与 .me-grid 取代，
   模板里不再输出这些类，样式一并删掉，避免「看着像还活着」的死代码。 */
.tips { margin-bottom: 6px; }
.tip {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.tip:last-child { border-bottom: none; }
.tip::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .8;
  transform: translateY(-1px);
}
.tip-note { color: var(--muted); font-size: 12px; margin-top: 8px; }

.stats-line {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 18px 0 4px;
  font-variant-numeric: tabular-nums;
}
.stats-line b { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- 房间页 */
.room-hero { text-align: center; padding: 26px 16px 22px; }
.room-label { color: var(--muted); font-size: 14px; }
.countdown {
  font-size: clamp(64px, 22vw, 96px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  line-height: 1.1;
  margin: 10px 0 2px;
}
.countdown-sub { color: var(--muted); font-size: 14px; min-height: 22px; }

.reminder-line {
  margin: 10px auto 0;
  max-width: 320px;
  color: var(--warn);
  font-size: 14px;
  background: rgba(216, 181, 106, .08);
  border: 1px solid rgba(216, 181, 106, .35);
  border-radius: 999px;
  padding: 6px 14px;
}

.predict-card {
  text-align: left;
  margin: 18px auto 0;
  max-width: 460px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.predict-head { font-size: 14px; color: var(--muted); }
.predict-prob {
  font-size: 24px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.predict-line { font-size: 14px; margin-top: 6px; }
.predict-line b { color: var(--muted); font-weight: 500; }
.predict-note { color: var(--muted); font-size: 12px; margin-top: 8px; }

.roster { text-align: left; margin-top: 22px; }
.roster h2 { font-size: 15px; color: var(--muted); font-weight: 500; }
.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
}
@media (min-width: 640px) { .member-list { grid-template-columns: repeat(3, 1fr); } }
.member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  min-height: 36px;
}
.member-label { font-size: 14px; color: var(--text); }
.dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #565b66;
}
.dot.active { background: var(--accent); }
.dot.idle { background: var(--warn); }
.dot.gone { background: #565b66; opacity: .5; }
.avatar {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: hsl(200, 32%, 42%);
  border: 1px solid var(--line);
}

.room-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.room-actions .btn { flex: 1; }

.interrupt-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.done-card {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--accent-deep);
  border-radius: 12px;
  background: rgba(143, 191, 174, .07);
}
.done-card .done-title { font-size: 18px; font-weight: 650; color: var(--accent); }

/* ---------------------------------------------------------------- 点阵日历 */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.month-nav b { font-variant-numeric: tabular-nums; }

.dot-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.dow-head {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 2px;
}
.dot-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--field);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dot-cell.blank { border: none; background: transparent; }
.dot-cell.l1 { background: rgba(143, 191, 174, .22); color: var(--text); }
.dot-cell.l2 { background: rgba(143, 191, 174, .5); color: var(--text); }
.dot-cell.l3 { background: rgba(143, 191, 174, .88); color: var(--accent-ink); font-weight: 600; }
.dot-cell.future { opacity: .35; }

.legend { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-right: 5px;
  vertical-align: -1px;
  background: var(--field);
  border: 1px solid var(--line);
}
.legend i.l1 { background: rgba(143, 191, 174, .22); border-color: transparent; }
.legend i.l2 { background: rgba(143, 191, 174, .5); border-color: transparent; }
.legend i.l3 { background: rgba(143, 191, 174, .88); border-color: transparent; }

/* ---------------------------------------------------------------- 图表 */
.chart-box { margin-top: 6px; }
.chart-box canvas { width: 100%; display: block; }

/* ---------------------------------------------------------------- 进度条 */
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 8px 0;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

/* ---------------------------------------------------------------- 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.table th { color: var(--muted); font-weight: 500; font-size: 13px; }

/* ---------------------------------------------------------------- 内核面板 */
.kv-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.kv-row + .kv-row { border-top: 1px dashed var(--line); }

.pred-list { list-style: none; margin: 0; padding: 0; }
.pred-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}
.pred-row:last-child { border-bottom: none; }
.pred-time { color: var(--muted); flex: 1; min-width: 110px; }
.pred-prob { color: var(--accent); }
.pred-arrow { color: var(--muted); }
.pred-result.ok { color: var(--accent); }
.pred-result.no { color: var(--danger); }

.thought-list { list-style: none; margin: 12px 0 0; padding: 0; }
.thought {
  padding: 12px 14px;
  background: var(--panel-2);
  border-radius: var(--r-1);
  margin-bottom: 8px;
}
.thought-time { display: block; }
.thought-body { margin: 2px 0 0; font-size: 15px; white-space: pre-wrap; word-break: break-word; }

.wipe-box {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #513a36;
  border-radius: 12px;
  background: rgba(224, 147, 138, .05);
}

/* ---------------------------------------------------------------- 小队 */
.squad-card h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.members-inline { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; margin: 6px 0; padding: 0; }
.members-inline li { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.members-inline .avatar { width: 20px; height: 20px; }
.invite-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 8px;
  letter-spacing: 1px;
  font-size: 14px;
}
.invite-link { word-break: break-all; font-size: 13px; }

/* 小队分区：我发起的 / 我加入的 */
.squad-group { margin: 22px 0 4px; }
.group-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .01em;
}
.role-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1.7;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--grad-accent);
}
.squad-card .members-inline .avatar.on { box-shadow: 0 0 0 2px rgba(143, 191, 174, .55); }
.squad-start {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: 12px;
}
.squad-start .field { flex: 0 0 132px; margin-bottom: 0; }
.squad-leave { margin-top: 10px; }

/* ---------------------------------------------------------------- 登录 */
.auth-card { max-width: 420px; margin: 8vh auto 0; }

/* ---------------------------------------------------------------- 隐私区块 */
.privacy { font-size: 14px; color: var(--muted); }
.privacy h2 { color: var(--text); }
.privacy ul { padding-left: 1.3em; }
.privacy li { margin: 4px 0; }

/* ---------------------------------------------------------------- Toast */
.toast-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 60;
  padding: 0 16px;
}
.toast {
  max-width: 92vw;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  animation: toast-in .22s ease-out;
}
.toast.ok { border-color: var(--accent-deep); }
.toast.err { border-color: #5a4038; color: var(--danger); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------- 桌面微调 */
@media (min-width: 640px) {
  .countdown { font-size: 88px; }
  .wrap { padding-top: 28px; }
}

/* ---------------------------------------------------------------- 降级与可访问性 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  :root { --muted: #c2c7d1; --line: #3a404c; }
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- 主页（V1.2 3.1） */
/* L03 返回通道：工作台顶部一行小字链接回落地页（落地页关闭时整行不输出） */
.about-return {
  margin: 0 0 8px;
  text-align: right;
  font-size: 12.5px;
}
.about-return a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.about-return a:hover { color: var(--accent); }

.state-entry {
  display: block;
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--accent);
  font-size: 14px;
  text-align: center;
}
.state-entry:hover { border-color: var(--accent-deep); text-decoration: none; }

.resume { background: rgba(63, 127, 107, .07); }
.resume p { margin: 0 0 10px; }
.resume .btn { min-height: 40px; }

.capture .field { margin-bottom: 14px; display: block; }
.field-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.clarify-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent-deep); }
#js-home-clarify { padding: 4px 0 2px; }
#js-home-clarify .q { margin: 10px 0 4px; font-size: 14px; color: var(--text); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.btns .btn { flex: 1 1 160px; }

/* ------------------------------------------------- 面板：全部入口与曲线（V1.2 3.4） */
.entry-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-link {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  font-size: 14px;
  color: var(--text);
  min-height: 36px;
}
.entry-link:hover { border-color: var(--accent-deep); text-decoration: none; }
#js-manual-chart, #js-obs-chart { width: 100%; }

/* ==========================================================================
   V1.2 观感修订二：说明层（首屏用途说明 / 每页用途块 / 功能地图 / 版本区块）
   新增类集中放在文件末尾，不改上面任何既有选择器的语义
   ========================================================================== */

/* ------------------------------------------------------------ 首屏用途说明 */
.lead {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(420px 200px at 88% -30%, rgba(143, 191, 174, .18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 60%),
    var(--panel);
  box-shadow: var(--shadow-2);
}
.lead::after {
  content: "";
  position: absolute;
  right: -34px; bottom: -46px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(182, 216, 200, .28), rgba(143, 191, 174, .05) 62%, transparent 70%);
  pointer-events: none;
}
/* 装饰光斑是绝对定位的 ::after，会盖在文字上；把直接子元素抬到它上面 */
.lead > * {
  position: relative;
  z-index: 1;
}
.lead-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.lead-title {
  font-size: 26px;
  line-height: 1.28;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -.015em;
}
.lead-title em {
  font-style: normal;
  background: linear-gradient(transparent 62%, rgba(143, 191, 174, .26) 62%);
}
.lead-sub { color: var(--muted); font-size: 15px; margin: 0 0 14px; max-width: 46ch; }
.lead-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lead-steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.lead-steps b {
  grid-column: 2;
  display: block;
  font-size: 15px;
  font-weight: 650;
}
.lead-steps span {
  grid-column: 2;
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.lead-steps i {
  grid-row: 1 / span 2;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--grad-accent);
}
@media (min-width: 640px) {
  .lead { padding: 26px 24px 24px; }
  .lead-title { font-size: 30px; }
  .lead-steps { grid-template-columns: 1fr 1fr 1fr; }
  .lead-steps li { grid-template-columns: 1fr; }
  .lead-steps i { grid-row: auto; margin-bottom: 6px; }
  .lead-steps b, .lead-steps span { grid-column: 1; }
}

/* ------------------------------------------------------------ 每页用途说明块 */
.intro {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(143, 191, 174, .07), rgba(143, 191, 174, 0) 60%), var(--panel);
  overflow: hidden;
}
.intro > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}
.intro > summary::-webkit-details-marker { display: none; }
.intro > summary:hover { background: rgba(255, 255, 255, .03); }
.intro-caret {
  width: 8px; height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
  flex: none;
}
.intro[open] .intro-caret { transform: rotate(-135deg) translate(-2px, -2px); }
.intro-what {
  margin: 0;
  padding: 0 15px 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.intro-how {
  margin: 8px 0 0;
  padding: 0 15px 14px 15px;
  list-style: none;
  counter-reset: intro;
  display: grid;
  gap: 6px;
}
.intro-how li {
  counter-increment: intro;
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  color: var(--text);
}
.intro-how li::before {
  content: counter(intro);
  position: absolute;
  left: 0; top: 2px;
  width: 17px; height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

/* ------------------------------------------------------------ 区块小标题 */
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 26px 0 12px;
  font-size: 17px;
  font-weight: 650;
}
.sec-title small { color: var(--muted); font-size: 13px; font-weight: 400; }
.sec-title::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  flex: none;
  align-self: center;
}

/* ------------------------------------------------------------ 功能地图 */
.map-group + .map-group { margin-top: 16px; }
.map-group h3 {
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 8px;
}
.map-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .map-grid { grid-template-columns: 1fr 1fr; } }
.map-item {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  color: var(--text);
  transition: transform .14s ease, border-color .16s ease, background .16s ease;
}
.map-item:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--accent-deep); background: rgba(143, 191, 174, .06); }
.map-item b { display: block; font-size: 15px; font-weight: 650; }
/* 只给「说明」那一行设块级：写成 .map-item span 会把标题里的 .pill 一起变成整行宽的色条 */
.map-item > span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.55; }
.pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 11px;
  color: var(--muted);
  vertical-align: 2px;
}
.pill.accent { color: var(--accent); border-color: rgba(143, 191, 174, .38); background: rgba(143, 191, 174, .1); }

/* ------------------------------------------------------------ 额度与版本区块 */
.quota {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  font-size: 14px;
  margin-bottom: 14px;
}
.quota b { color: var(--accent); font-variant-numeric: tabular-nums; }
.edition { margin-bottom: 14px; }
.edition-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.edition-head h2 { margin: 0; font-size: 17px; }
.plans { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 12px 0 4px; }
@media (min-width: 560px) { .plans { grid-template-columns: 1fr 1fr 1fr; } }
.plan {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.plan.on { border-color: var(--accent-deep); background: rgba(143, 191, 174, .08); box-shadow: var(--ring); }
.plan b { font-size: 14px; }
.plan .plan-price {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--accent);
}
.plan .plan-price s { text-decoration: none; font-size: 12px; color: var(--muted); margin-left: 2px; }
.plan ul { margin: 6px 0 0; padding-left: 1.1em; font-size: 12.5px; color: var(--muted); }
.team-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.team-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .02);
  font-size: 14px;
}
.team-list em { font-style: normal; color: var(--muted); font-size: 13px; }
.note-line { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.6; }

/* ====================================================== 工作台（V1.2.2 第二部分 H01–H04） */

/* H03 在场圆环：常驻顶部的一等入口。
   进度由 --p（0~1）驱动，服务端先给静态那一帧，presence.js 每秒改一次；
   三态 data-mode：me（我自己在一个块里）/ join（有公共块但我没在场）/ idle（什么都没有）。 */
.presence-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(300px 120px at 10% -40%, rgba(143, 191, 174, .16), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 62%),
    var(--panel);
  box-shadow: var(--shadow-2);
}
.presence-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  text-decoration: none;
  flex: 0 0 auto;
}
.presence-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p, 0) * 360deg), rgba(143, 191, 174, .14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  transition: background .6s linear;
}
.presence-num {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
}
.presence-text { min-width: 0; }
.presence-label {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.presence-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.presence-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.presence-act .btn { min-height: 38px; padding: 6px 14px; font-size: 14px; }
/* 「我的状态」原来是一条通栏药丸，现在收进圆环右侧，宽度跟着内容走 */
.presence-act .state-entry { display: inline-block; margin: 0; padding: 6px 13px; font-size: 13px; text-align: center; }
[data-mode="me"] .presence-ring {
  background: conic-gradient(var(--accent-2) calc(var(--p, 0) * 360deg), rgba(143, 191, 174, .12) 0);
  filter: drop-shadow(0 0 6px rgba(143, 191, 174, .35));
}
[data-mode="me"] .presence-core { animation: presence-breathe 3.6s ease-in-out infinite; }
[data-mode="idle"] .presence-ring { opacity: .32; }
[data-mode="idle"] .presence-num { color: var(--muted); }
@keyframes presence-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(143, 191, 174, .18); }
  50%      { box-shadow: 0 0 0 7px rgba(143, 191, 174, 0); }
}

/* H01 抬头：首屏只留一句问话，完整用途说明搬进「更多」 */
.home-head { font-size: 20px; line-height: 1.35; margin: 0 0 4px; font-weight: 650; letter-spacing: -.01em; }
.home-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; max-width: 52ch; }

/* H04 空白态：一句引导 + 一个可点的示例路线 */
.home-guide {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
}
.home-guide h2 { margin: 0 0 6px; font-size: 15px; font-weight: 650; }
.home-guide p { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* H01 单输入框 + 麦克风 */
.input-row { display: flex; gap: 8px; align-items: stretch; }
.input-row input { flex: 1 1 auto; min-width: 0; }
.btn.mic {
  flex: 0 0 auto;
  width: 46px;
  min-height: 46px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: var(--panel-2);
  background-image: none;
}
.btn.mic:hover { color: var(--accent-2); background: rgba(143, 191, 174, .1); }
.btn.mic:disabled { opacity: .5; }
/* V1.2.5 任务卡 6：这里不再只是「在听」，而是一整句「这次为什么不能说」，12.5px 太挤 */
.mic-state { margin: -6px 0 12px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* H02 单一主按钮 */
.btns.single { margin: 4px 0 6px; }
.btns.single .btn { flex: 1 1 100%; }

/* H01/H02 「高级」折叠：第二个输入框、澄清意图、整条路线都在这里，是折叠不是删除 */
.adv { margin-top: 4px; border-top: 1px dashed var(--line); }
.adv > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0 3px;
  cursor: pointer;
  list-style: none;
}
.adv > summary::-webkit-details-marker { display: none; }
.adv-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  background: var(--panel-2);
}
.adv > summary:hover .adv-name { color: var(--accent); border-color: var(--accent-deep); }
.adv-hint { font-size: 12.5px; color: var(--muted); flex: 1 1 200px; }
.adv[open] .adv-name { color: var(--accent-ink); background: var(--grad-accent); border-color: transparent; }
.adv-body { padding-top: 10px; animation: adv-in .24s ease-out both; }
.adv-row { margin: 8px 0 0; }
.adv .btn.ghost { min-height: 40px; font-size: 14px; }
@keyframes adv-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* H02 副入口卡：两个卡片都带示例标签，可一键启动 */
.sub-cards { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 16px 0 4px; }
@media (min-width: 560px) { .sub-cards { grid-template-columns: 1fr 1fr; } }
.sub-card {
  display: grid;
  gap: 4px;
  align-content: start;
  text-align: left;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sub-card:hover { transform: translateY(-2px); border-color: var(--accent-deep); box-shadow: var(--shadow-glow); text-decoration: none; }
.sub-card:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.sub-card b { font-size: 15.5px; font-weight: 650; }
.sub-hint { font-size: 13px; color: var(--muted); line-height: 1.55; }
.sub-eg { font-size: 12.5px; color: var(--accent); opacity: .82; }
.demo-tag {
  justify-self: start;
  font-size: 11px;
  letter-spacing: .06em;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--grad-accent);
  padding: 2px 9px;
  border-radius: 999px;
}

/* H03 其余入口收进「更多」 */
.more-entries { margin-top: 18px; border-top: 1px dashed var(--line); }
.more-entries > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0 4px;
  cursor: pointer;
  list-style: none;
}
.more-entries > summary::-webkit-details-marker { display: none; }
.more-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  background: var(--panel-2);
}
.more-entries > summary:hover .more-name { color: var(--accent); border-color: var(--accent-deep); }
.more-hint { font-size: 12.5px; color: var(--muted); flex: 1 1 200px; }
.more-body { padding-top: 12px; animation: adv-in .24s ease-out both; }
.more-body .lead { padding: 16px; margin-bottom: 14px; }
.more-body .lead-title { font-size: 19px; }
.more-body .entry-grid .entry-link {
  display: block;
  border-radius: 12px;
  padding: 10px 12px;
}
.entry-link small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .btn, .entry, .map-item, .intro-caret { transition: none; }
  .btn:active, .entry:hover, .map-item:hover { transform: none; }
  .presence-ring { transition: none; }
  [data-mode="me"] .presence-core { animation: none; }
  .sub-card { transition: none; }
  .sub-card:hover { transform: none; }
  .adv-body, .more-body { animation: none; }
}


/* ====================================================== 动态与自动头像（V1.2.2 第 24 号需求） */

/* 自动头像：色相来自 arr_avatar() 写在 style 上的 --h / --h2，不依赖任何图片与上传。
   同一份色相公式在小队/房间那些纯色圆点上已经在用，所以这个人换个页面颜色也不会变。 */
.avatar.auto {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: hsl(var(--h, 200), 46%, 12%);
  background: linear-gradient(148deg,
    hsl(var(--h, 200), 52%, 66%) 0%,
    hsl(var(--h2, 232), 40%, 46%) 100%);
  box-shadow: inset 0 0 0 1px hsla(var(--h, 200), 60%, 78%, .32), 0 2px 8px -4px rgba(0, 0, 0, .6);
  -webkit-user-select: none;
  user-select: none;
}
.avatar.auto.lg {
  width: 52px;
  height: 52px;
  font-size: 21px;
  box-shadow: inset 0 0 0 1px hsla(var(--h, 200), 60%, 78%, .34), 0 6px 18px -10px rgba(0, 0, 0, .7);
}

/* 身份卡 */
.feed-id {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.feed-id-text { display: grid; gap: 2px; margin-right: auto; }
.feed-id-name { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.feed-id-meta { font-size: 12.5px; color: var(--muted); }
.feed-name { display: flex; align-items: center; gap: 8px; }
.feed-name label { font-size: 12.5px; color: var(--muted); }
.feed-name input { width: 120px; padding: 8px 10px; font-size: 14px; border-radius: 9px; }

/* 发布框 */
.feed-composer textarea { min-height: 74px; }
.feed-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.feed-count { font-size: 12.5px; color: var(--muted); }
.feed-count.near { color: var(--warn); }

/* 时间线 */
.feed-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.feed-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .018);
  transition: border-color .16s ease, background-color .16s ease;
}
.feed-item:hover { border-color: #333a45; }
/* 自己发的那条只在左边压一道色，不做「我的」标签那种强调 */
.feed-item.mine {
  background: linear-gradient(90deg, rgba(143, 191, 174, .07), rgba(143, 191, 174, 0) 42%);
  border-left-color: rgba(143, 191, 174, .42);
}
.feed-body { min-width: 0; }
.feed-meta { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.feed-meta b { font-weight: 650; letter-spacing: .01em; }
.feed-ago { color: var(--muted); font-size: 12px; }
.feed-text { margin: 3px 0 0; font-size: 15px; line-height: 1.6; word-break: break-word; }
.feed-del { margin: 0; }
.feed-del-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 4px 2px;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: color .14s ease;
}
.feed-del-btn:hover { color: var(--danger); }
.feed-del-btn:disabled { opacity: .5; cursor: progress; }
#js-feed-more { width: 100%; margin-top: 12px; min-height: 40px; font-size: 14px; }

/* 新插入的那一条：从上方 6px 落进来，只做一次，不抢注意力 */
.feed-item.enter { animation: feed-in .26s ease both; }
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .feed-id { gap: 10px; }
  .feed-name { width: 100%; }
  .feed-name input { flex: 1; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .feed-item, .feed-del-btn { transition: none; }
  .feed-item.enter { animation: none; }
}

/* ====================================================== V1.2.2 第三部分：洞察问题卡 / 示例路线 / 个人中心 / 空状态 */

/* 顶栏身份项：小头像 + 「个人中心」。和其余导航项同一高度，不额外撑高顶栏 */
.nav-id { display: inline-flex; align-items: center; gap: 7px; }
.nav-id:hover { text-decoration: none; }
.nav-id-text { font-size: 15px; }
.avatar.auto.sm { width: 22px; height: 22px; font-size: 11px; }

/* 通用小徽标（示例路线的「示例」、计数）：只用来打标，不当按钮用 */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--accent-2);
  background: rgba(143, 191, 174, .13);
  border: 1px solid rgba(143, 191, 174, .24);
  vertical-align: middle;
}

/* ---- 洞察问题卡（3.1）：卡面只有问题，数字收在 details 里 ---- */
.q-card { padding: 0; overflow: hidden; }
.q-card > summary { list-style: none; cursor: pointer; }
.q-card > summary::-webkit-details-marker { display: none; }
.q-card > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.q-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 15px 16px;
  transition: background .18s ease;
}
.q-head:hover { background: var(--panel-2); }
.q-text {
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -.005em;
  margin-right: auto;
}
.q-hint { font-size: 12px; color: var(--muted); white-space: nowrap; }
.q-card[open] .q-hint { display: none; }
.q-card[open] .q-head { border-bottom: 1px solid var(--line); background: var(--grad-panel); }
.q-body { padding: 12px 16px 16px; display: grid; gap: 9px; }
.q-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.q-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.q-row:last-child { border-bottom: none; }
.q-label { color: var(--muted); font-size: 13px; min-width: 78px; }
.q-val { font-size: 14px; font-variant-numeric: tabular-nums; }
.q-val.muted { color: var(--muted); }
.q-meter {
  flex: 1 1 110px;
  min-width: 84px;
  height: 6px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.q-meter > i { display: block; height: 100%; border-radius: 999px; background: var(--grad-accent); }
.q-note { font-size: 13.5px; margin: 2px 0 0; }
.q-caliber { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; line-height: 1.7; }
.chip {
  display: inline-block;
  padding: 2px 9px;
  margin: 1px 0;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--accent-2);
  background: rgba(143, 191, 174, .12);
  border: 1px solid rgba(143, 191, 174, .2);
}

/* ---- 示例路线库（3.2）：内置、可播、可复制，原条目改不了 ---- */
.rt-head { display: flex; align-items: center; gap: 10px; }
.rt-head .card-title { margin-right: auto; }
.rt-preset-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.rt-preset-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--grad-panel);
  transition: border-color .16s ease, transform .16s ease;
}
.rt-preset-item:hover { border-color: rgba(143, 191, 174, .34); }
.rt-preset-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.rt-preset-steps { margin-top: 8px; }
.rt-preset-steps > summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--muted);
  padding: 2px 0;
}
.rt-preset-steps > summary:hover { color: var(--text); }
.rt-preset-steps ol { margin: 8px 0 2px; padding-left: 1.3em; display: grid; gap: 4px; font-size: 13.5px; }
.rt-preset-ops { display: grid; gap: 8px; justify-items: stretch; }
.rt-preset-ops form { margin: 0; }

/* ---- 站点级空状态（3.4）：一句引导语 + 一个主操作 ---- */
.empty-state {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 30px 20px 26px;
}
.empty-state-line { margin: 0; font-size: 17px; font-weight: 640; }
.empty-state-lead { margin: 0; font-size: 14px; color: var(--muted); }
.empty-state .btn { margin-top: 10px; }
.empty-state .note-line { text-align: center; }

/* ---- 个人中心（3.3）：四宫格 + 常驻数据卡 ---- */
.me-id { display: flex; align-items: center; gap: 14px; }
.me-id-text { display: grid; gap: 2px; margin-right: auto; }
.me-id-name { font-size: 17px; font-weight: 700; }
.me-id-meta { font-size: 12.5px; color: var(--muted); }

.me-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 12px; }
.me-cell { display: grid; gap: 8px; align-content: start; }
/* 个人中心的图标方块：圆角跟着控件档走，不留手写的 10px */
.me-ico {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-1);
  color: var(--accent-2);
  background: rgba(143, 191, 174, .12);
  border: 1px solid rgba(143, 191, 174, .22);
}
.me-cell-title { margin: 0; font-size: 15px; }
.me-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.me-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.me-row:last-child { border-bottom: none; }
.me-row-label { font-size: 14px; color: var(--text); }
.me-row-link { font-size: 14px; font-weight: 600; }
.me-row-val { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; justify-self: end; text-align: right; }
/* 控件一律占第二行整宽：手机上「文字在左、按钮在下」比挤在一行更好点 */
.me-row-label, .me-row-link { grid-column: 1; grid-row: 1; }
.me-row-val { grid-column: 2; grid-row: 1; }
.me-row-act { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 6px; justify-content: flex-start; }
.me-row-note { grid-column: 1 / -1; grid-row: 3; font-size: 12px; color: var(--muted); line-height: 1.6; }
.me-cell-note { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.me-row select { padding: 6px 8px; font-size: 13px; border-radius: 9px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.me-row-act [aria-pressed="true"] {
  color: var(--accent-ink);
  background: var(--grad-accent);
  border-color: transparent;
}

.me-data { margin-top: 12px; }
.me-datalist { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.me-datalist li { display: flex; align-items: center; gap: 9px; }
.dot.ok { background: var(--accent); }
.dot.bad { background: var(--danger); }

@media (max-width: 620px) {
  .me-grid { grid-template-columns: 1fr; }
  .rt-preset-item { grid-template-columns: 1fr; }
  /* 三个动作挤进一行会把「存成我的」这类标签折成两行、且断在词中间。
     窄屏改成按内容取宽的可换行横排：放不下就整体掉到下一行，标签永不折断。 */
  .rt-preset-ops { display: flex; flex-wrap: wrap; gap: 8px; }
  .rt-preset-ops form { flex: 0 0 auto; }
  .rt-preset-ops .btn { white-space: nowrap; }
}

/* ---- 主题与动效（偏好格落到 <html> 上的两个属性） ---- */
/* 柔光：同一批令牌换值，组件不各写一套颜色，所以切主题不会出现「半页深色半页浅」 */
html[data-theme="light"] {
  --bg: #f4f2ee;
  --panel: #ffffff;
  --panel-2: #efece6;
  --field: #ffffff;
  --line: #ddd8cf;
  --text: #22252a;
  --muted: #6d7280;
  --accent: #3f7f6b;
  --accent-deep: #2f6a58;
  --accent-ink: #ffffff;
  --warn: #9a7420;
  --danger: #a9483f;
  --accent-2: #2f6a58;
  --gold: #a3822f;
  --grad-accent: linear-gradient(135deg, #4e9b83 0%, #3d8069 52%, #2f6a58 100%);
  --grad-panel: linear-gradient(180deg, rgba(63, 127, 107, .05) 0%, rgba(255, 255, 255, 0) 46%);
  --grad-line: linear-gradient(90deg, rgba(63, 127, 107, .4), rgba(63, 127, 107, .05));
  --ring: 0 0 0 1px rgba(63, 127, 107, .2);
  --shadow-1: 0 1px 2px rgba(34, 37, 42, .07);
  --shadow-2: 0 10px 26px -14px rgba(34, 37, 42, .22);
  --shadow-glow: 0 8px 22px -12px rgba(63, 127, 107, .32);
}
html[data-theme="light"] body {
  background:
    radial-gradient(1000px 520px at 12% -8%, rgba(63, 127, 107, .1), transparent 62%),
    radial-gradient(760px 460px at 96% 8%, rgba(163, 130, 47, .08), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: auto;
}
/* 深色底上的那层白色高光在浅底上会「脏」，这里收掉 */
html[data-theme="light"] .avatar.auto {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34), 0 2px 8px -5px rgba(34, 37, 42, .3);
}
html[data-theme="light"] .badge,
html[data-theme="light"] .chip { color: var(--accent-deep); background: rgba(63, 127, 107, .1); border-color: rgba(63, 127, 107, .22); }

/* 动效关掉：过渡与进场动画全部退成瞬时；系统级 reduce 由各自的 @media 负责，两条口径互不覆盖 */
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  transition-duration: .001s !important;
  animation-duration: .001s !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
}

/* ====================================================== V1.2.2 第四部分：视觉精修与动效层 */
/* 这一层只改「怎么动、按下去什么手感、当前在哪儿」，不重新发明颜色：
   所有取值都回到令牌（--t-1/2/3、--ease、--ease-soft、--shadow-*、--grad-*），
   所以切到柔光主题时不需要再补一套动效变量。覆盖上面的同名选择器是刻意的：
   写在这一层里的都是「精修后的口径」，读 diff 时一眼能看出这次改了什么。 */

/* ---- 统一过渡：把散在各处的 .16s/.2s 收成三档 ---- */
.nav a,
.nav button,
.btn,
.entry,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], textarea, select,
.chip, .badge, .q-head, .rt-preset-item, .table tbody tr {
  transition:
    color var(--t-1) var(--ease),
    background-color var(--t-2) var(--ease),
    border-color var(--t-2) var(--ease),
    box-shadow var(--t-2) var(--ease),
    transform var(--t-1) var(--ease);
}

/* ---- 顶栏：当前页有实底，其余是灰字；hover 只提亮度，不再整块变色 ---- */
.nav a { font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.on,
.nav .nav-id.on {
  color: var(--accent-2);
  background: rgba(143, 191, 174, .12);
  border-color: rgba(143, 191, 174, .3);
}
.nav .nav-id.on .avatar.auto { box-shadow: 0 0 0 2px rgba(143, 191, 174, .34); }

/* 390 实测：导航项一多就换行，品牌名被挤成两行、「退出」单独掉到第三行。
   窄屏改成横向可滑的一行——不换行、不裁字，滚到最右还能点到退出。 */
@media (max-width: 560px) {
  .topbar { padding: 10px 12px; }
  .brand { flex: none; white-space: nowrap; }
  .nav {
    flex-wrap: nowrap;
    min-width: 0;               /* flex 子项默认 min-width:auto，不加这行 overflow 不生效 */
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav form, .nav button { flex: none; white-space: nowrap; }
}
/* 退出那一项观感沿用 .nav button，只把 hover 换成危险色（不再把控件样式再声明一遍） */
.nav button:hover { color: var(--danger); background: rgba(224, 147, 138, .07); border-color: rgba(224, 147, 138, .34); }

/* ---- 按钮：按下去有回弹，主按钮划过一道光；禁用态自带转圈，不用 JS 各写一套 ---- */
.btn { font-weight: 550; letter-spacing: .005em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .07s; }
.btn.primary { position: relative; overflow: hidden; isolation: isolate; }
.btn.primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, .5) 46%, transparent 64%);
  transform: translateX(-130%);
  transition: transform var(--t-3) var(--ease-soft);
}
.btn.primary:hover::after { transform: translateX(130%); }
.btn:disabled { transform: none; box-shadow: none; }
.btn:disabled::before {
  content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: arr-spin .7s linear infinite;
}
@keyframes arr-spin { to { transform: rotate(360deg); } }

/* ---- 卡片：可点的抬一下，纯展示的不动 ---- */
.entry:hover { transform: translateY(-2px); }
.card { transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease); }

/* ---- 四宫格（3.3）在 1280 上实测的错位：左右两格行数不同，等高后右格底部露出一大块空。
   改成纵向堆叠并把最后一项贴底：空白落在「列表与脚注之间」，读起来像卡片页脚，
   而不是卡片没写完。列表本身保持自然高度，不会被拉成两行之间的巨大间隙。 ---- */
.me-cell { display: flex; flex-direction: column; }
.me-cell > :last-child { margin-top: auto; }

/* ---- 展开：details 里的内容统一「滑进来 + 淡入」，不再瞬间蹦出 ---- */.q-card[open] > .q-body,
.adv-body,
.more-body,
.rt-preset-steps[open] > ol {
  animation: arr-rise var(--t-2) var(--ease) both;
}
.q-card > .q-head { cursor: pointer; list-style: none; }
.q-card > .q-head:hover .q-text { color: var(--accent-2); }
/* 390 实测：问题折成两行时「点开才给你数字」挤在第一行末尾，窄屏让提示自己占一行 */
@media (max-width: 520px) {
  .q-head { flex-wrap: wrap; align-items: flex-start; }
  .q-text { flex: 1 1 100%; }
  .q-hint { margin-top: 2px; white-space: normal; }
}
@keyframes arr-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---- 进场与滚动揭示：隐藏态只在 <html.motion-ready> 下生效 ----
   脚本没跑（被拦、老内核、SEO 抓取）时这条前缀不成立，内容原样可见——
   这是「宁可少一段动画，也不能让页面看起来是空的」的实现口径。
   观察器另有 1.4s 兜底，会把没触发的节点全部显出来。 */
html.motion-ready [data-rv] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--t-3) var(--ease-soft),
    transform var(--t-3) var(--ease-soft);
  transition-delay: var(--rv-d, 0ms);
}
html.motion-ready [data-rv].rv-on { opacity: 1; transform: none; }

/* ---- 表格与输入：行 hover 有一层极浅的底色，聚焦环带上一点外扩 ---- */
.table tbody tr:hover { background: rgba(143, 191, 174, .05); }
input:focus, textarea:focus, select:focus { box-shadow: var(--ring), 0 0 0 4px rgba(143, 191, 174, .09); }

/* ---- 选中态与滚动条：细节位，出现频率高，统一成同一种绿 ---- */
::selection { background: rgba(143, 191, 174, .3); color: var(--text); }
@media (min-width: 640px) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #2c313b; border: 3px solid transparent; background-clip: padding-box; border-radius: 99px; }
  ::-webkit-scrollbar-thumb:hover { background: #3a414d; background-clip: padding-box; }
}

/* ---- 柔光主题下这几处的对照修正：白色高光与浅灰底在亮背景上会「糊」 ---- */
/* 1280 实测：顶栏还留着深色的半透底，品牌字换成深色后落在深底上几乎看不见。
   顶栏跟着主题换底，不留「半页深半页浅」。 */
html[data-theme="light"] .topbar { background: rgba(255, 255, 255, .82); border-bottom-color: var(--line); }
html[data-theme="light"] .nav a:hover { background: var(--panel-2); }
html[data-theme="light"] .nav a.on,
html[data-theme="light"] .nav .nav-id.on { color: var(--accent-deep); background: rgba(63, 127, 107, .1); border-color: rgba(63, 127, 107, .26); }
html[data-theme="light"] .btn.primary::after { background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, .7) 46%, transparent 64%); }
html[data-theme="light"] .table tbody tr:hover { background: rgba(63, 127, 107, .06); }
html[data-theme="light"] ::selection { background: rgba(63, 127, 107, .22); }
@media (min-width: 640px) {
  html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #cfcabf; background-clip: padding-box; }
}

/* ---- 关掉动效：进场层整个退成瞬时，隐藏态直接不成立，避免「按了没反应还以为坏了」 ---- */
html[data-motion="off"] .btn.primary::after { display: none; }
html[data-motion="off"] .btn:disabled::before { animation: none; border-top-color: currentColor; }
html[data-motion="off"] :not(.no-motion) {
  scroll-behavior: auto !important;
}


/* ====================================================== V1.2.3 材质层与使用逻辑重构
   这一层换的是「材质」和「骨架」，不是配色方案：产品自己的青绿身份保留，
   把上一版那种「边框 + 渐变 + 顶部高光 + 两层影」四件叠加的卡片，改成一次只声明一次的
   白卡 + 柔影；把十个平铺的文字导航收成四个目的地 + 一个常驻主操作。
   口径与 V1.2.2 第四部分相同：只覆盖上面的同名选择器，读 diff 一眼能看出这次改了什么。 */

/* ---- 令牌：圆角分三档（控件 / 卡片 / 特块），阴影分三层，间距走 4 的倍数 ---- */
:root {
  --r-1: 12px;   /* 按钮、输入、chip：控件档 */
  --r-2: 16px;   /* 卡片、列表行、notice：容器档 */
  --r-3: 22px;   /* 在场条、庆祝屏：特块档 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 22px;
  --sp-6: 30px;
  --tab-h: 60px;         /* 窄屏底部目的地条的高度（不含安全区） */
  --text-2: #5a606b;     /* 比 --muted 深一档的次要正文：13px 小字在浅底上够 AA */
  --shadow-3: 0 20px 44px -20px rgba(0, 0, 0, .7);
}

html[data-theme="light"] {
  /* 浅底上的三档影：都带 y 位移与柔化模糊，不用 0 位移的彩色光晕 */
  --shadow-1: 0 1px 2px rgba(28, 34, 40, .06);
  --shadow-2: 0 10px 24px -14px rgba(28, 34, 40, .18);
  --shadow-3: 0 18px 40px -18px rgba(28, 34, 40, .3);
  --shadow-glow: 0 12px 26px -14px rgba(47, 106, 88, .4);
  --line: #e2ded6;
  --text: #1c2025;
  /* 13px 小字在浅底上是全站出现频率最高的一档，必须自己过 AA：
     #6a7180 量到 4.38:1（差一点），#626976 在同一条 --panel-2 上量到 4.81:1、页面底 4.94:1。 */
  --muted: #626976;
  --text-2: #545b66;
  --panel-2: #f2efe9;
}

/* 「我的状态」那颗药丸：--accent 在浅底上只有 4.10:1，13px 读不清。
   统一换成 --accent-deep（浅底实测 5.50:1），深色主题里 --accent-deep 本来就比 --accent 亮，不受影响。 */
.state-entry { color: var(--accent-deep); }

/* 个人中心的下拉框原来是就地手写的 9px 圆角 + 米底 + 6/8px 内边距，
   和这一版统一的 --field / --r-1 / 12px 14px 差一套尺寸，看起来像另一个系统的控件。 */
.me-row select {
  padding: 12px 14px;
  font-size: 14px;
  border-radius: var(--r-1);
  background: var(--field);
  color: var(--text);
  border: 1px solid var(--line);
  min-height: 42px;
}

/* ---- 地面：顶部一道青绿天光，420px 内褪尽，其余是平的 --bg
   上一版是两颗对角的径向光斑，滚动时整页都在「泛光」；这里改成只有页头那一段有光。
   V1.2.5 任务卡 6：浅色这一档原先顶到 #e7efe9，与 --bg #f4f2ee 的相对亮度比只有 1.05
   （按 WCAG 那个 (L亮+0.05)/(L暗+0.05)：一整片底色要 1.1 以上才看得出「有一片光」），
   站长报的「背景光看不见」就是这么来的。现在峰值 #d7e8de，比值 1.14，深色那档 1.29。
   褪光再从 340px 加到 420px：顶栏那 56px 是平色不透明的，最亮的一段本来被它盖住，
   褪得慢一点正文才吃得到。两档长度必须一致，不然切主题时那一段光会跳一下。 */
html[data-theme="light"] body {
  background:
    linear-gradient(180deg, #d7e8de 0%, #e4eee8 46%, rgba(228, 238, 232, 0) 100%) no-repeat,
    var(--bg);
  background-size: 100% 420px;
  background-attachment: scroll;
}
body {
  background:
    linear-gradient(180deg, rgba(143, 191, 174, .14) 0%, rgba(143, 191, 174, 0) 100%) no-repeat,
    var(--bg);
  background-size: 100% 420px;
}

/* ---- 图标：统一 1.7 描边、圆头，尺寸只有三档 ---- */
.ic {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-sm { width: 14px; height: 14px; stroke-width: 1.9; }
.ic-lg { width: 22px; height: 22px; }
/* 图标 + 文字的一行：列表行首、元信息条、chip 都用它，gap 不再各写各的 */
.ic-text { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.ic-text .ic { opacity: .72; }

/* ---- 顶栏：不透明地面 + 一条分隔线；滚动内容从下面过去而不是穿过一层玻璃 ---- */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 10px 16px;
  min-height: 56px;
}
.topbar::after { display: none; }
html[data-theme="light"] .topbar { background: var(--bg); border-bottom-color: var(--line); }
.brand { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 20px; height: 20px; }
.topbar-end { display: flex; align-items: center; gap: 10px; }

/* 目的地项：图标在左、文字在右；当前项是一枚实心胶囊，不靠下划线 */
.nav { gap: 2px; }
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 550;
  transition: color var(--t-1) var(--ease), background-color var(--t-2) var(--ease);
}
.nav-item:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav-item .ic { width: 17px; height: 17px; }
.nav-item.on { color: var(--accent-deep); background: rgba(63, 127, 107, .12); font-weight: 650; }
.nav-item.on .ic { stroke-width: 2.05; }
/* 深色那套令牌里的 --accent-deep 偏暗，当前项在深底上要用亮一档的 --accent-2 才读得出「在这儿」 */
html[data-theme="dark"] .nav-item.on { color: var(--accent-2); background: rgba(143, 191, 174, .14); }
.nav a.on { color: var(--accent-deep); }
.nav-id { padding: 6px; border-radius: 999px; }
.nav-id .avatar.auto { width: 28px; height: 28px; font-size: 13px; }

/* ---- 底部目的地条：窄屏唯一的主导航，宽屏交给顶栏 ---- */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  align-items: stretch;
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
  background: var(--panel);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -20px rgba(0, 0, 0, .5);
}
.tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  /* --tab-h 是整条栏的高度，栏身自己还有上下各 4px 内边距：
     瓦片若按 60px 撑满，选中那一格的圆角底边就会顶出白条下沿，量到的是「底部一道暗边」。 */
  min-height: calc(var(--tab-h) - 8px);
  padding: 6px 2px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: .01em;
  transition: color var(--t-1) var(--ease), background-color var(--t-2) var(--ease);
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab .ic { width: 21px; height: 21px; }
.tab-ic { display: grid; place-items: center; }
.tab-av { display: grid; place-items: center; height: 21px; }
.tab-label { line-height: 1.2; }
.tab.on { color: var(--accent-deep); background: rgba(63, 127, 107, .1); }
.tab.on .ic { stroke-width: 2.05; }
html[data-theme="dark"] .tab.on { color: var(--accent-2); background: rgba(143, 191, 174, .13); }

/* ---- 常驻主操作：窄屏是圆形的加号（拇指区），宽屏是带文字的胶囊 ---- */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom, 0px));
  z-index: 31;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  min-width: 54px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 650;
  box-shadow: var(--shadow-glow), var(--shadow-1);
  transition: transform var(--t-1) var(--ease), background-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.fab:hover { text-decoration: none; background: var(--accent-deep); transform: translateY(-1px); }
.fab:active { transform: translateY(1px) scale(.985); }
.fab .fab-ic { display: grid; place-items: center; }
.fab-label { display: none; }
@media (min-width: 900px) {
  .fab { right: 26px; bottom: 26px; }
  .fab-label { display: inline; }
}
/* 窄屏：目的地条常驻，正文底部要留出它的高度，最后一张卡片不能被压在条下面 */
@media (max-width: 899px) {
  .wrap { padding: 18px 16px calc(var(--tab-h) + 74px + env(safe-area-inset-bottom, 0px)); }
  .foot { padding-bottom: calc(var(--tab-h) + 40px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 900px) {
  .tabbar { display: none; }
}

/* ---- 目的地内部的分组条：收成四个目的地之后，同类页面靠这条横滑 chips 互相走 ---- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: -4px 0 18px;
  padding: 2px 2px 4px;
}
.chips::-webkit-scrollbar { display: none; }
.chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 550;
  white-space: nowrap;
}
.chips .chip:hover { text-decoration: none; border-color: var(--accent-deep); color: var(--text); }
.chips .chip.on { color: var(--accent-deep); border-color: rgba(63, 127, 107, .34); background: rgba(63, 127, 107, .1); font-weight: 650; }
html[data-theme="dark"] .chips .chip.on { color: var(--accent-2); background: rgba(143, 191, 174, .14); border-color: rgba(143, 191, 174, .3); }

/* ---- 卡片：一次只声明一层高度。白卡 + 柔影，去掉边框、渐变与顶部那道高光 ---- */
.card {
  background: var(--panel);
  background-image: none;
  border: 0;
  border-radius: var(--r-2);
  padding: 18px 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-2);
}
.card::before { display: none; }
html[data-theme="dark"] .card { box-shadow: var(--shadow-1), var(--shadow-2); }

/* 「接着来」那张卡：底色比别的卡暖一点，提示这是可以点的入口；
   原来那根 3px 左侧色条已经去掉 —— 底色 + 按钮就够指路了。 */
.resume { background: rgba(63, 127, 107, .08); }
html[data-theme="dark"] .resume { background: rgba(143, 191, 174, .1); }

/* 卡片标题：去掉左侧那根 4px 色条（它和「彩色左边框」是同一个花招），只留字号与字重 */
.card-title { font-size: 16px; margin: 0 0 12px; letter-spacing: -.01em; }
.card-title::before { display: none; }
.sec-title::before { display: none; }
.sec-title { margin: 30px 0 12px; font-size: 18px; letter-spacing: -.015em; }

/* ---- 标题字号阶梯：拉开一档，首屏那句问话要能站住 ---- */
h1 { font-size: 27px; letter-spacing: -.022em; font-weight: 700; }
h2 { font-size: 18px; }
.wrap > h1 { margin: 6px 0 6px; }
.wrap > h1 + p { margin-top: 0; }

/* ---- 按钮：控件档圆角、实心主按钮（渐变只留给 FAB 之外不用的场合） ---- */
.btn {
  border-radius: var(--r-1);
  border-color: var(--line);
  background: var(--panel);
  background-image: none;
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
.btn:hover { border-color: var(--accent-deep); box-shadow: var(--shadow-2); }
.btn.primary {
  background: var(--accent);
  background-image: none;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.btn.primary:hover { background: var(--accent-deep); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.big { min-height: 54px; border-radius: 14px; font-size: 16.5px; font-weight: 650; }
.btn.small { min-height: 34px; border-radius: 10px; }

/* ---- 输入：白底 + 细边 + 焦点环，正文与占位符都过 AA ---- */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], textarea, select {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  padding: 12px 14px;
  font-size: 15.5px;
}
::placeholder { color: var(--muted); opacity: 1; }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px rgba(63, 127, 107, .18); border-color: var(--accent-deep); }
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus { box-shadow: 0 0 0 3px rgba(143, 191, 174, .22); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

/* ---- 提示条：去掉 3px 彩色左边框，改成整块着色 + 行首图标 ---- */
.notice {
  border: 0;
  border-radius: var(--r-2);
  padding: 13px 15px;
  gap: 9px;
  background: var(--panel-2);
  box-shadow: var(--shadow-1);
  font-size: 14.5px;
  line-height: 1.6;
}
.notice.ok { background: rgba(63, 127, 107, .12); color: var(--accent-deep); }
.notice.err { background: rgba(169, 72, 63, .12); color: var(--danger); }
.notice.warn { background: rgba(154, 116, 32, .13); color: var(--text); }
html[data-theme="dark"] .notice.ok { background: rgba(143, 191, 174, .14); color: var(--accent-2); }
.notice-link { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
/* 柔光下 --accent（#3f7f6b）在浅底上实测 4.1:1，够不上小字 AA；链接这档用深一级的 --accent-deep（实测 5.5:1） */
html[data-theme="light"] .notice .notice-link { color: var(--accent-deep); }

/* ---- 空状态：虚线框换成一块居中的浅色区域，图标给个「这里本来有东西」的落点 ---- */
.empty {
  border: 0;
  border-radius: var(--r-2);
  padding: 22px 16px;
  background: var(--panel-2);
  color: var(--text-2);
  line-height: 1.6;
}
.empty-state { padding: 34px 20px 30px; gap: 9px; }
.empty-state-line { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }

/* ---- 列表行：分隔线换成更淡的一条实线，行高给到 44 以上好点 ---- */
.me-row { padding: 11px 0; border-bottom: 1px solid var(--line); }
.q-row { border-bottom: 1px solid var(--line); padding: 9px 0; }
.kv-row + .kv-row { border-top: 1px solid var(--line); }
.q-card[open] .q-head { border-bottom-color: var(--line); background: none; }
.q-head:hover { background: var(--panel-2); }

/* ---- 徽章与 chip：去掉描边，只留着色底 ---- */
.badge, .chip { border: 0; background: rgba(63, 127, 107, .12); color: var(--accent-deep); font-weight: 600; }
html[data-theme="light"] .badge,
html[data-theme="light"] .chip { border: 0; }
html[data-theme="dark"] .badge,
html[data-theme="dark"] .chip { background: rgba(143, 191, 174, .16); color: var(--accent-2); }
.pill { border: 0; background: var(--panel-2); color: var(--text-2); font-weight: 600; }
.pill.accent { background: rgba(63, 127, 107, .12); color: var(--accent-deep); }

/* ---- 额度条：同样去掉 3px 左边框，用底色和数字说话 ---- */
.quota {
  border: 0;
  border-radius: var(--r-2);
  background: rgba(63, 127, 107, .1);
  padding: 13px 15px;
  box-shadow: none;
}
html[data-theme="dark"] .quota { background: rgba(143, 191, 174, .12); }

/* ---- 在场条：这是首屏唯一的「特块」，圆角比卡片大一档，影也更软 ---- */
.presence-row {
  border: 0;
  border-radius: var(--r-3);
  background: var(--panel);
  box-shadow: var(--shadow-2);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.presence-label { font-size: 16px; font-weight: 650; }
.home-head { font-size: 25px; font-weight: 700; letter-spacing: -.022em; }

/* ---- 副入口卡 / 路线条目 / 动态条目：统一成「白卡 + 柔影」，描边一律退场 ---- */
.sub-card, .rt-preset-item, .feed-item, .map-item, .team-list li, .plan {
  border: 0;
  border-radius: var(--r-2);
  background: var(--panel);
  box-shadow: var(--shadow-1);
}
.sub-card { padding: 16px; }
.sub-card:hover { box-shadow: var(--shadow-2); border-color: transparent; }
.sub-card b { font-size: 16px; }
.demo-tag { background: rgba(63, 127, 107, .14); color: var(--accent-deep); font-weight: 650; letter-spacing: .02em; }
html[data-theme="dark"] .demo-tag { background: rgba(143, 191, 174, .18); color: var(--accent-2); }
.map-item:hover, .rt-preset-item:hover { border-color: transparent; box-shadow: var(--shadow-2); }
/* 自己发的那条用整块着色标出来：3px 的左边条（无论写成 border 还是 inset shadow）都是同一类花招 */
.feed-item.mine { border-left: 0; background: rgba(63, 127, 107, .07); box-shadow: var(--shadow-1); }
html[data-theme="dark"] .feed-item.mine { background: rgba(143, 191, 174, .09); }

/* ---- 「高级」「更多」这类折叠：去掉虚线分隔，改成一行可点的浅底 ---- */
.adv, .more-entries { border-top: 0; }
.adv-name, .more-name { border: 0; background: var(--panel-2); color: var(--text-2); }
.adv[open] .adv-name, .more-entries[open] .more-name { background: rgba(63, 127, 107, .14); color: var(--accent-deep); }
html[data-theme="dark"] .adv[open] .adv-name { background: rgba(143, 191, 174, .18); color: var(--accent-2); }
.intro { border-radius: var(--r-2); }

/* ---- 页面用途说明（details）：它是「说明」不是「操作」，压到最安静的字号与颜色 ---- */
.intro > summary { font-size: 13.5px; color: var(--text-2); }

/* ---- 完成庆祝屏：单步走完那一屏是全站唯一允许「大字 + 着色」的地方 ---- */
.done-card {
  border: 0;
  border-radius: var(--r-3);
  background: rgba(63, 127, 107, .1);
  box-shadow: none;
  padding: 26px 20px 24px;
  text-align: center;
}
html[data-theme="dark"] .done-card { background: rgba(143, 191, 174, .12); }
.done-card .done-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--accent-deep); }

/* ---- 选中态与滚动条跟着新地面走 ---- */
::selection { background: rgba(63, 127, 107, .24); }
html[data-theme="dark"] ::selection { background: rgba(143, 191, 174, .3); }
@media (min-width: 640px) {
  ::-webkit-scrollbar-thumb { background: #cfcabf; background-clip: padding-box; }
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2c313b; background-clip: padding-box; }

/* ---- 进场：只留一个有编排的动作——首屏那几张卡片依次落位，而不是每个区块各动各的 ---- */
@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .wrap > .card,
  html.motion-ready .wrap > .presence-row,
  html.motion-ready .wrap > .sub-cards,
  html.motion-ready .wrap > .chips {
    animation: arr-enter var(--t-3) var(--ease-soft) both;
  }
  html.motion-ready .wrap > .card:nth-child(3) { animation-delay: 40ms; }
  html.motion-ready .wrap > .card:nth-child(4) { animation-delay: 80ms; }
  html.motion-ready .wrap > .card:nth-child(5) { animation-delay: 120ms; }
}
@keyframes arr-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---- 窄屏顶栏：目的地已经交给底部条，顶栏只留品牌与头像，不再换行也不横向滚 ---- */
@media (max-width: 899px) {
  .topbar { padding: 9px 14px; }
  .nav { display: none; }
}
@media (min-width: 900px) {
  .wrap { padding-top: 30px; }
}

/* ---- 关掉动效：这一层新增的进场与位移一起退成瞬时 ---- */
html[data-motion="off"] .fab,
html[data-motion="off"] .nav-item,
html[data-motion="off"] .tab { transition: none; }
html[data-motion="off"] .fab:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.motion-ready .wrap > .card,
  html.motion-ready .wrap > .presence-row,
  html.motion-ready .wrap > .sub-cards,
  html.motion-ready .wrap > .chips { animation: none; }
  .fab:hover, .btn:hover { transform: none; }
}


/* ==========================================================================
   V1.2.3 隐私合规三页：隐私政策 / 同意闸门 / 我的数据与隐私
   这三页是三种不同的阅读动作，所以版式不共用一张卡：
     政策页 = 连续阅读（章节自己成段，不塞进卡里）；
     同意页 = 一屏决定（主文案最大、按钮成对、勾选项独立成块）；
     数据页 = 清单与操作（行 + 按钮，危险操作单独一块）。
   卡片只当容器用，不在里面再套卡片。
   ========================================================================== */

/* ---- 表单内联：按钮跟着文字走，不占一整行 ---- */
.inline-form { display: inline-block; margin: 0; }

/* ---- 页面级反馈条：成功 / 失败各一条，不是嵌在卡里的 notice ---- */
.flash-ok,
.flash-err {
  margin: 0 0 14px;
  padding: 12px 15px;
  border-radius: var(--r-2);
  font-size: 14.5px;
  line-height: 1.6;
  box-shadow: var(--shadow-1);
}
.flash-ok { background: rgba(63, 127, 107, .12); color: var(--accent-deep); }
.flash-err { background: rgba(169, 72, 63, .12); color: var(--danger); }
html[data-theme="dark"] .flash-ok { background: rgba(143, 191, 174, .14); color: var(--accent-2); }

/* ---- 隐私政策：连续阅读，章节靠标题与留白分节 ---- */
.policy { padding: 26px 22px 30px; }
.policy-head { margin-bottom: 20px; }
.policy-head .card-title { font-size: 22px; letter-spacing: -.02em; margin: 0 0 6px; }
.policy-sec { margin: 0 0 22px; }
.policy-sec:last-of-type { margin-bottom: 0; }
.policy-sec h2 {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 16.5px;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.sec-no {
  flex: none;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--accent-deep);
  letter-spacing: .02em;
}
html[data-theme="dark"] .sec-no { color: var(--accent-2); }
.policy-sec p { margin: 0 0 8px; line-height: 1.75; }
.policy-list {
  margin: 0;
  padding-left: 1.15em;
  display: grid;
  gap: 6px;
  line-height: 1.72;
}
.policy-list li::marker { color: var(--muted); }
.policy-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.policy-foot p { margin: 0 0 10px; }

/* ---- 同意闸门：一屏之内做完决定 ---- */
.consent { padding: 24px 22px 26px; }
/* 页面级标题不能比下面那段正文还小，否则「开始之前」这四个字就是一句附注 */
.consent .card-title { font-size: 21px; letter-spacing: -.018em; margin-bottom: 10px; }
/* 任务书要求这段话「比正文大一档并加粗」：正文 15.5px，这里 19.5px（约 1.26 倍） */
.consent-lead {
  margin: 0 0 16px;
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -.012em;
}
.consent-error {
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: var(--r-1);
  background: rgba(169, 72, 63, .12);
  color: var(--danger);
  font-size: 14.5px;
}
.consent-facts { margin: 0 0 18px; padding-left: 1.15em; display: grid; gap: 5px; }
.consent-form { display: grid; gap: 14px; }
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border-radius: var(--r-1);
  background: var(--panel-2);
  cursor: pointer;
}
.consent-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent-deep);
}
.consent-check > span { display: grid; gap: 3px; }
.consent-check strong { font-size: 15px; }
.consent-refuse { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.consent-refuse > summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.guest-demo { display: grid; gap: 9px; margin-top: 12px; }
.guest-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 5px; font-size: 14.5px; }

/* ---- 我的数据与隐私：清单 + 操作 ---- */
.card-danger { background: rgba(169, 72, 63, .07); }
html[data-theme="dark"] .card-danger { background: rgba(224, 147, 138, .08); }
.card-danger .card-title { color: var(--danger); }
.data-info { margin-top: 14px; }
.data-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.data-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.data-list li:last-child { border-bottom: 0; }
.data-key { color: var(--muted); font-variant-numeric: tabular-nums; }
.data-val { text-align: right; }
.data-choices { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.data-choice {
  padding: 13px 15px;
  border-radius: var(--r-1);
  background: var(--panel-2);
}
.data-choice strong { display: block; margin-bottom: 3px; font-size: 15px; }
.data-choice p { margin: 0 0 10px; }
.data-delete { display: grid; gap: 12px; margin-top: 4px; max-width: 380px; }
/* 注销表单里的 label 自己就是 .field，所以这里给直接子元素一份标签样式 */
.field > span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.data-foot { margin-top: 4px; }

/* ---- 注册页的年龄确认：必填的勾选项要一眼看得见 ---- */
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  cursor: pointer;
}
.check-line input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent-deep);
}

/* ==========================================================================
   V1.2.4 留存层（首页续做卡 / 完成页三出口 / 明日档位 / 共同到场 / 徽章与挑战 / 提醒）
   原则：这一层全是「行」和「档位」，不再往卡里塞卡；圆角只取 --r-1/--r-2/--r-3。
   ========================================================================== */

/* ---- 首页：继续昨天的任务（方案 一第 2 条）。
   .card 已经把底、边、圆角、内边距都定了，这里只补它没有的纵向节奏——
   再写一遍 background/border 就会出现「同一个块两套半径」。 */
.resume { display: grid; gap: 10px; }
.resume-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.resume-tag { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.resume-task { margin: 0; font-size: 16.5px; font-weight: 650; line-height: 1.45; }
.resume-next { margin: 0; font-size: 14px; color: var(--muted); }
.resume-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }

/* ---- 首页：五个次级入口排成一行（5 分钟启动 / 一起专注 / 固定时段 / 记录 / 状态）---- */
.home-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 8px; margin-top: 12px; }
/* 5 分钟启动是一个表单里的按钮：让表单本身「消失」在网格外，按钮才和旁边的链接瓦片同宽同高 */
.quick-form { display: contents; }
.quick-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: var(--tap);
  padding: 9px 12px;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  transition: border-color var(--t-1) var(--ease), background-color var(--t-2) var(--ease), transform var(--t-1) var(--ease);
}
.quick-tile:hover { color: var(--text); text-decoration: none; border-color: var(--accent-deep); transform: translateY(-1px); }
/* 同一行里既有 <a> 也有 <button>（5 分钟启动要 POST + CSRF）：把按钮的 UA 默认值抹平，两种才长得一样 */
button.quick-tile { width: 100%; font: inherit; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
.quick-tile .ic { width: 18px; height: 18px; color: var(--accent); flex: none; }
.quick-tile-txt { display: grid; gap: 1px; min-width: 0; }
.quick-tile-hint { font-size: 11.5px; color: var(--muted); font-weight: 450; }

/* ---- 首页：今天的固定场次（方案 一第 6 条）---- */
.fixed-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; }
.fixed-row + .fixed-row { border-top: 1px dashed var(--line); }
.fixed-time { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 15px; }

/* ---- 完成页三出口（方案 三）：主出口一个，其余降级成文字行 ---- */
.finish-exits { display: grid; gap: 10px; margin-top: 4px; }
.slot-pick { display: grid; gap: 9px; margin-top: 4px; }
.slot-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-opt { position: relative; }
.slot-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot-opt span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--t-1) var(--ease), background-color var(--t-2) var(--ease), color var(--t-1) var(--ease);
}
.slot-opt:hover span { border-color: var(--accent-deep); }
.slot-opt input:checked + span {
  color: var(--accent-ink);
  background: var(--grad-accent);
  border-color: transparent;
  font-weight: 600;
}
.slot-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.book-form { display: grid; gap: 10px; }

/* ---- 共同到场：此刻在场 / 档位表 / 本周记录 ---- */
.gather-live { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.gather-live-count { display: flex; align-items: baseline; gap: 9px; }
.big-num { font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--accent-2); }
.gather-live-act { display: grid; gap: 6px; min-width: 210px; flex: 1 1 210px; }
.gslots { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.gslot {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 10px 0;
  font-size: 14.5px;
}
.gslot + .gslot { border-top: 1px dashed var(--line); }
.gslot.future { color: var(--muted); }
.gslot-time { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--text); min-width: 46px; }
.gslot-name { flex: 1 1 auto; }
.gslot-num { font-size: 12.5px; }
.gslot-act { margin-left: auto; }
.gweek { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.gweek li { display: flex; align-items: baseline; gap: 9px; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.gweek li + li { border-top: 1px dashed var(--line); }
.gweek-day { font-weight: 600; }
.invite-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.invite-url {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 11px;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--muted);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* 段落里嵌一个「看起来像链接的按钮」：取消预约这种轻操作不该占一行大按钮 */
.linkbtn {
  border: 0;
  background: none;
  padding: 0;
  margin-left: 6px;
  color: var(--accent);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--accent-2); }

/* ---- 个人中心：今日记录 / 连续与徽章 / 每周挑战 / 固定到场时间 ---- */
.rhythm-sub { margin: 16px 0 6px; font-size: 14px; font-weight: 640; color: var(--muted); letter-spacing: .01em; }
.today-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.today-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14.5px; }
.today-list li + li { border-top: 1px dashed var(--line); }
.today-time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.streak-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.streak-num { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.badge-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.badge-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 13px;
}
.badge-cell .ic { width: 15px; height: 15px; color: var(--muted); }
.badge-cell.got { border-color: rgba(143, 191, 174, .32); background: rgba(143, 191, 174, .1); color: var(--accent-2); }
.badge-cell.got .ic { color: var(--gold); }
.chal-bar { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin-top: 9px; }
.chal-fill { height: 100%; border-radius: 999px; background: var(--grad-accent); transition: width var(--t-3) var(--ease); }
.pref-form { display: flex; gap: 9px; align-items: flex-end; flex-wrap: wrap; margin-top: 6px; }

/* ---- 提醒（方案 六）：授权按钮 + 状态一句话 ---- */
.notify-state { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 8px; }
/* 点只分「已允许」和「还没」两态：没开启不是错误，不该涂成红色让人以为坏了 */
.notify-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--muted); flex: none; }
.notify-dot.on { background: var(--accent); }
.notify-dot.off { background: var(--muted); }

/* 温和召回：一行字 + 两个出口，收在正文流里，不做成卡片（它只出现一次，不该抢版面） */
.recall-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: var(--panel-2);
}
.recall-text { font-size: 14.5px; }
.recall-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
