/* =========================================================
 * PokerSugar Prototype · styles.css
 * 单一来源样式表。无任何外部依赖。
 * ========================================================= */

/* ---------- 0. CSS Variables ----------
 *  推特风配色 · 白底黑字 + 极简 accent。
 *  客户口径："简约黑白为主，不要 crypto / 赌场深色底"。
 *  emerald / clay 系暖橙都已被客户否决。
 */
:root {
  --paper: #FFFFFF;
  --paper-elev: #FFFFFF;
  --ink: #0F1419;
  --ink-2: #536471;
  --ink-3: #71767B;
  --ink-4: #AAB8C2;
  --hairline: #EFF3F4;
  --hairline-2: #CFD9DE;
  --surface-soft: #F7F9F9;

  /* 主 accent · 黑色（推特 light mode Follow 按钮风：黑底白字） */
  --accent: #0F1419;
  --accent-hover: #272C30;
  --accent-soft: #EFF3F4;
  --on-accent: #FFFFFF;

  /* 蓝色 link / 选中 / 强调（克制使用） */
  --sky: #1D9BF0;
  --sky-soft: #E8F4FB;

  /* 语义色 */
  --card-red: #F4212E;
  --card-black: #0F1419;
  --ok: #00BA7C;
  --warn: #B85F00;
  --danger: #F4212E;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --sidebar-w: 240px;
  --rightcol-w: 320px;
  --topbar-h: 52px;
  --bottomtab-h: 64px;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, "Microsoft Yahei", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "tnum" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
img { display: block; max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 2. App layout ---------- */
#app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-areas:
    "top"
    "main";
  padding-bottom: var(--bottomtab-h);
}
.main {
  grid-area: main;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 24px;
}
.side-nav, .right-col { display: none; }
.top-bar {
  grid-area: top;
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.top-bar-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
}
.top-bar-back {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--surface-soft);
  font-size: 18px;
  line-height: 32px;
  text-align: center;
}
.top-bar-action {
  position: relative;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--ink-2);
}
.top-bar-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

.bottom-tab {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  height: calc(var(--bottomtab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--paper-elev);
  border-top: 1px solid var(--hairline);
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 2px;
  color: var(--ink-3);
  font-size: 11px;
}
.tab-item[data-active] { color: var(--accent); }
.tab-ico { font-size: 18px; line-height: 1; }
.tab-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  font-size: 22px;
  font-weight: 500;
  box-shadow: 0 0 0 4px var(--paper-elev);
}
.tab-item--cta { color: var(--accent); }
.tab-dot {
  position: absolute;
  top: 6px; right: calc(50% - 18px);
  width: 7px; height: 7px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

/* ---------- 3. Side nav (desktop) ---------- */
@media (min-width: 768px) {
  #app {
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "side main";
    padding-bottom: 0;
  }
  .top-bar { display: none; }
  .bottom-tab { display: none; }
  .side-nav {
    grid-area: side;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    padding: 20px 16px 16px;
    border-right: 1px solid var(--hairline);
    background: var(--paper);
    overflow-y: auto;
  }
  .main {
    padding: 24px 32px 48px;
  }
}
@media (min-width: 1200px) {
  #app {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--rightcol-w);
    grid-template-areas: "side main right";
  }
  .right-col {
    grid-area: right;
    display: block;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    overflow-y: auto;
    padding: 24px 24px 24px 8px;
    aria-hidden: true;
  }
  .right-col[hidden] { display: none; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 14px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.brand-mark { width: 28px; height: 28px; }
.brand-name { color: var(--ink); }

.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink-2);
}
.nav-item:hover { background: var(--surface-soft); }
.nav-item[data-active] {
  color: var(--ink);
  font-weight: 700;
}
.nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  font-size: 16px;
  color: var(--ink-3);
}
.nav-item[data-active] .nav-ico { color: var(--accent); }
.nav-badge {
  margin-left: auto;
  min-width: 18px; height: 18px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.side-compose {
  margin: 12px 4px;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
}
.side-compose:hover { background: var(--accent-hover); }
.side-lang {
  margin-top: 8px;
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-full);
  padding: 2px;
  align-self: flex-start;
  margin-left: 4px;
}
.lang-toggle {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  border-radius: var(--radius-full);
}
.lang-toggle[data-active="1"] {
  background: var(--accent);
  color: var(--on-accent);
}
.side-admin {
  margin-top: 16px;
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
}
.side-admin > summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-3);
  padding: 6px 8px;
  list-style: none;
}
.side-admin > summary::-webkit-details-marker { display: none; }
.side-admin > summary::before { content: "▸ "; color: var(--ink-4); }
.side-admin[open] > summary::before { content: "▾ "; }
.nav-list--sub .nav-item { padding: 8px 12px; font-size: 13px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  height: 40px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 14px;
  transition: background 120ms, color 120ms, border-color 120ms;
  white-space: nowrap;
}
.btn:hover { filter: brightness(0.97); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
}
.btn-secondary:hover { background: var(--surface-soft); }
.btn-ghost { color: var(--ink-2); padding: 0 10px; height: 36px; }
.btn-ghost:hover { background: var(--surface-soft); }
.btn-danger { color: var(--danger); border: 1px solid var(--hairline); background: var(--paper-elev); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-disabled, .btn[disabled] {
  background: var(--surface-soft);
  color: var(--ink-4);
  border: 1px solid var(--hairline);
  cursor: not-allowed;
}
.btn-block { width: 100%; }
.btn-follow[data-following="1"] {
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
}

/* 评论点赞按钮（5/20 后新增） */
.comment-like {
  background: transparent;
  border: 0;
  color: var(--ink-3);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 120ms, color 120ms;
  flex: 0 0 auto;
  align-self: flex-start;
}
.comment-like:hover { background: var(--surface-soft); }
.comment-like[data-liked="1"] { color: var(--card-red); font-weight: 600; }

/* ---------- 5. Inputs ---------- */
.input, .textarea, .select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--paper-elev);
  color: var(--ink);
  transition: border-color 120ms, box-shadow 120ms;
}
.textarea { height: auto; padding: 10px 12px; min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 20, 25, 0.12);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.input-error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
}
.field { margin-bottom: 14px; }
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.field-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-3);
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- 6. Cards & general containers ---------- */
.card {
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px;
}
.card + .card { margin-top: 12px; }
.card-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 10px;
  font-weight: 600;
}

/* ---------- 7. Chips / Tags ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  cursor: pointer;
}
.chip:hover { background: var(--surface-soft); }
.chip[data-active="1"], .chip.is-active {
  background: var(--ink);
  color: var(--paper-elev);
  border-color: var(--ink);
}
.chip-soft {
  background: var(--surface-soft);
  border-color: var(--hairline);
  color: var(--ink);
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  background: var(--surface-soft);
  color: var(--ink-3);
  font-weight: 500;
}
.tag-warn { background: #FFF3DB; color: var(--warn); }
/* 5/20 客户口径：Journey 状态只保留 open / archived。.tag-live / .tag-upcoming 保留 class 仅用于向后兼容 localStorage 旧值 */
.tag-open { background: var(--sky-soft); color: var(--sky); font-weight: 600; }
.tag-live { background: var(--sky-soft); color: var(--sky); font-weight: 600; }
.tag-archived { background: var(--surface-soft); color: var(--ink-3); }
.tag-upcoming { background: var(--sky-soft); color: var(--sky); font-weight: 600; }
.tag-private { background: var(--ink); color: var(--on-accent); }
.tag-public { background: var(--surface-soft); color: var(--ink-3); }

/* ---------- 8. Avatar ---------- */
.avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  overflow: hidden;
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 64px; height: 64px; font-size: 18px; }
.avatar-xl { width: 88px; height: 88px; font-size: 24px; border: 3px solid var(--paper-elev); }

/* ---------- 9. Tab strip ---------- */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  height: 34px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--ink-2);
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  cursor: pointer;
}
.tab[data-active="1"] {
  background: var(--ink);
  color: var(--paper-elev);
  border-color: var(--ink);
}

/* ---------- 10. Toast ---------- */
.toast-host {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: calc(var(--bottomtab-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
@media (min-width: 768px) {
  .toast-host { bottom: 24px; }
}
.toast {
  pointer-events: auto;
  min-width: 220px;
  max-width: 320px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--paper-elev);
  border-radius: var(--radius-md);
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(17, 17, 17, 0.12);
  animation: toast-in 160ms ease-out;
}
.toast-success { background: var(--ok); }
.toast-warn { background: var(--warn); }
.toast-danger { background: var(--danger); }
@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- 11. Sheet ---------- */
.sheet-host {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.32);
}
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--paper-elev);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  padding: 16px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 85vh;
  overflow-y: auto;
  animation: sheet-in 180ms ease-out;
}
@keyframes sheet-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (min-width: 768px) {
  .sheet {
    left: 50%; right: auto; bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    max-width: calc(100vw - 32px);
    border-radius: var(--radius-lg);
    animation: sheet-modal-in 180ms ease-out;
  }
  @keyframes sheet-modal-in {
    from { transform: translate(-50%, -45%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
  }
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sheet-title { font-size: 16px; }
.sheet-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 20px;
}
.sheet-body { font-size: 14px; color: var(--ink-2); }

/* ---------- 12. Empty / Error states ---------- */
.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--ink-3);
}
.empty-title {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 600;
}
.empty-desc {
  font-size: 13px;
  color: var(--ink-3);
  max-width: 320px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

/* ---------- 13. Post card ---------- */
.post-card {
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 120ms;
}
.post-card:hover { background: var(--surface-soft); }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-author { font-weight: 600; font-size: 14px; color: var(--ink); }
.post-meta { font-size: 12px; color: var(--ink-3); }
.post-text {
  margin: 10px 0;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.post-actions {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 8px;
}
.post-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}
.post-action:hover { background: var(--surface-soft); }
.post-action[data-liked="1"] { color: var(--card-red); }
.post-action[data-liked="1"] .heart { animation: heart-pop 160ms ease-out; }
@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.post-journey-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink);
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  margin-top: 8px;
}
.post-media {
  margin-top: 10px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.post-voice {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  font-size: 13px;
  color: var(--ink-2);
}
.post-voice-play {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
/* ---------- 14. Feed / Discover / Profile lists ---------- */
.player-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}
.player-card .meta {
  flex: 1;
  min-width: 0;
}
.player-card .meta-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
.player-card .meta-handle { color: var(--ink-3); font-size: 12.5px; }
.player-card .meta-bio {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.verified-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  font-size: 10px;
}

.journey-card {
  padding: 14px 16px;
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 120ms;
}
.journey-card:hover { background: var(--surface-soft); }
.journey-cover {
  height: 84px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #E8EDEF, #F7F9F9);
  margin-bottom: 10px;
}
.journey-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
}
.journey-name { font-weight: 600; font-size: 15px; }
.journey-stats {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 8px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.search-input { flex: 1; }

/* ---------- 15. Profile header ---------- */
.profile-head {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--paper-elev);
}
.profile-cover {
  height: 120px;
  background: linear-gradient(135deg, #E8EDEF, #F7F9F9);
}
.profile-body {
  padding: 0 16px 16px;
  position: relative;
}
.profile-avatar-wrap {
  margin-top: -44px;
  margin-bottom: 8px;
}
.profile-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
}
.profile-handle { color: var(--ink-3); font-size: 13px; }
.profile-bio { font-size: 13.5px; color: var(--ink-2); margin: 8px 0; }
.profile-meta {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 8px 0;
}
.profile-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- 16. Journey detail header ---------- */
.journey-head {
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}
.journey-head .stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.stat-cell {
  text-align: left;
  padding: 8px 10px;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
}
.stat-cell .stat-label { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-cell .stat-value { font-family: var(--font-mono); font-size: 16px; font-weight: 700; margin-top: 2px; }
.stat-value.pos { color: var(--ok); }
.stat-value.neg { color: var(--danger); }

/* ---------- 17. Notifications ---------- */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  position: relative;
  cursor: pointer;
}
.notif-item[data-read="0"] { background: var(--surface-soft); border-color: var(--hairline); }
.notif-item[data-read="0"]::before {
  content: "";
  position: absolute;
  left: 4px; top: 18px;
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
}
.notif-text { font-size: 13.5px; color: var(--ink); }
.notif-time { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* ---------- 18. Me page ---------- */
.session-switcher {
  background: var(--paper-elev);
  border: 1px dashed var(--hairline-2);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
}
.session-switcher .hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.session-switcher .chip-row { gap: 6px; }

/* "我的" 页面：列表行 / 统计网格 / 内嵌语言切换 */
.me-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  width: 100%;
  background: none;
  cursor: pointer;
}
.me-row:hover { background: var(--surface-soft); }
.me-row[disabled] { cursor: not-allowed; opacity: 0.7; }
.me-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 768px) {
  .me-stats { grid-template-columns: repeat(4, 1fr); }
}
.stat-cell-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.stat-cell-link:hover { background: var(--hairline); }
.lang-segment {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-full);
  padding: 2px;
}
.profile-meta a {
  text-decoration: none;
  color: inherit;
}
.profile-meta a:hover { text-decoration: underline; }

/* ---------- 19. Login ---------- */
.login-wrap {
  max-width: 380px;
  margin: 32px auto;
  padding: 24px;
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}
.login-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.login-sub { color: var(--ink-3); font-size: 13.5px; margin-bottom: 20px; }
.divider {
  position: relative;
  text-align: center;
  margin: 18px 0;
  color: var(--ink-3);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--hairline);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

/* ---------- 20. Compose ---------- */
.compose-modes {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.compose-mode {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--hairline);
  background: var(--paper-elev);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.compose-mode[data-active="1"] {
  border-color: var(--accent);
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 600;
}
.compose-mode-icon { display: block; font-size: 20px; margin-bottom: 4px; }
.compose-voice {
  border: 1px solid var(--hairline);
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}
.compose-voice-mic {
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  font-size: 24px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compose-voice-hint { color: var(--ink-3); font-size: 12.5px; }


/* ---------- 21. PokerUI · v3 "Tell, don't input" (v0.3) ---------- */
/* 设计：6 卡 + Voice / Type 统一输入层 + tap-to-edit · feature-spec.md v0.3 */
.poker-ui {
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 12px 12px 0;
  margin-bottom: 12px;
}
.poker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}
.poker-head-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.poker-head-meta {
  color: var(--ink-3);
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}
.poker-head-actions { display: flex; gap: 4px; }
.poker-icon-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-soft);
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  padding: 0;
}
.poker-icon-btn:hover { background: var(--hairline); }

/* v3 · 6 张语义卡片（Voice 模式主展示）*/
.v3-cards {
  display: flex; flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.v3-card {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px;
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 120ms ease-out, background 120ms ease-out;
}
.v3-card:hover { border-color: var(--hairline-2); }
.v3-card.empty {
  background: var(--surface-soft);
  border-style: dashed;
  color: var(--ink-3);
}
.v3-card.live {
  background: var(--paper-elev);
  border: 1.5px solid var(--ink);
  box-shadow: 0 0 0 4px rgba(15, 20, 25, 0.04);
}
.v3-card-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  flex-shrink: 0;
}
.v3-card.live .v3-card-label { color: var(--ink); }
/* v0.4.3: 卡片右侧永久 chevron，暗示可点编辑 */
.v3-card-chevron {
  color: var(--ink-4);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 6px;
  transition: color 100ms ease-out;
}
.v3-card:hover .v3-card-chevron { color: var(--ink); }
.v3-card.empty .v3-card-chevron { color: var(--ink-4); }
.v3-card-value {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px; line-height: 1.55;
  text-align: right;
  color: var(--ink);
  flex: 1; word-break: break-word;
}
.v3-card-value .red { color: var(--card-red, #C2342B); }
.v3-card.empty .v3-card-value { color: var(--ink-3); }
.v3-cursor {
  display: inline-block;
  width: 6px; height: 12px;
  background: var(--ink);
  vertical-align: middle;
  margin-left: 2px;
  animation: v3-blink 1s steps(2) infinite;
}
@keyframes v3-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* v3 · Tone selector（卡片就绪后浮起）*/
.v3-tone-area { margin-bottom: 12px; }
.v3-tone-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.v3-tone-grid { display: flex; gap: 6px; }
.v3-tone-btn {
  flex: 1;
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
}
.v3-tone-btn .h { font-weight: 600; font-size: 12.5px; margin-bottom: 2px; }
.v3-tone-btn .d { font-size: 11px; color: var(--ink-3); }
.v3-tone-btn.on {
  background: var(--ink);
  color: var(--paper-elev);
  border-color: var(--ink);
}
.v3-tone-btn.on .d { color: var(--ink-4); }
.v3-tone-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* v3 · progress strip（Type 模式下卡片折叠成横排）*/
.v3-progress-strip {
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}
.v3-progress-row {
  display: flex; gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.v3-progress-row::-webkit-scrollbar { display: none; }
.v3-pchip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px;
  border-radius: 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--surface-soft);
  color: var(--ink-3);
  border: 1px solid var(--hairline);
  cursor: pointer; user-select: none;
  font-family: inherit;
}
.v3-pchip.done {
  background: var(--paper-elev);
  color: var(--ink);
}
.v3-pchip.done::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}

/* v3 · Type 区（textarea + chip 键盘）*/
.v3-type-area {
  display: flex; flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.v3-type-textarea {
  width: 100%;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 13px; line-height: 1.65;
  color: var(--ink);
  min-height: 140px;
  resize: vertical;
  outline: none;
  transition: border-color 120ms ease-out, background 120ms ease-out;
}
.v3-type-textarea:focus {
  border-color: var(--ink);
  background: var(--paper-elev);
}
.v3-chip-keyboard {
  display: flex; flex-direction: column;
  gap: 6px;
}
/* v0.4: chip 组容器 = 浅灰圆角盒子（去 label，节省竖向空间） */
.v3-chip-group {
  background: var(--surface-soft);
  border-radius: 10px;
  padding: 6px 7px;
}
.v3-chip-row { display: flex; flex-wrap: wrap; gap: 4px; }
.v3-ck {
  height: 30px; padding: 0 10px; min-width: 30px;
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
  transition: background 100ms ease-out, border-color 100ms ease-out;
}
.v3-ck:hover { border-color: var(--ink); }
.v3-ck:active { background: var(--ink); color: var(--paper-elev); }
.v3-ck.suit-red { color: var(--card-red, #C2342B); font-size: 14px; }
.v3-ck.suit-black { color: var(--ink); font-size: 14px; }
.v3-ck.dim { color: var(--ink-3); font-size: 11px; }
.v3-ck.line-prefix {
  background: var(--ink);
  color: var(--paper-elev);
  border-color: var(--ink);
  font-weight: 600;
}
.v3-ck.line-prefix:hover { background: var(--ink-2, #1a2530); border-color: var(--ink-2, #1a2530); }
.v3-ck.quick { font-size: 12px; padding: 0 10px; min-width: 32px; }
.v3-divider {
  display: inline-block;
  width: 1px; height: 22px;
  background: var(--hairline);
  margin: 0 4px;
  align-self: center;
}

/* v0.4: cursor hint bar — 文本框和 chip 键盘之间一条说明 */
.v3-cursor-hint {
  font-size: 10.5px;
  color: var(--ink-3);
  padding: 6px 10px;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.v3-cursor-hint b { color: var(--ink); }
.v3-cursor-hint .dim { color: var(--ink-3); font-style: italic; }

/* v0.4: System mode 提示（chip 键盘整段隐藏，textarea 系统键盘可用） */
.v3-system-hint {
  background: var(--surface-soft);
  border: 1px dashed var(--border-2, #D6D6D6);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* v0.4.1: 首次空状态引导 hint bar（仅 6 卡全空时显示） */
.v3-hint-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 0 0 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
}
.v3-hint-bar b { color: var(--ink); font-weight: 600; }
.v3-hint-bar .dim { color: var(--ink-3); font-size: 11px; }

/* v0.4.2: mic 录中"↑ 上划取消"提示 */
.v3-mic-up-hint {
  font-size: 10px;
  color: var(--like, #F4212E);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  animation: v3-blink 1.4s ease-in-out infinite;
}
/* v0.4.2: × 取消本次录音 按钮（mic 下方兜底） */
.v3-mic-cancel {
  background: transparent;
  border: 1px solid var(--like, #F4212E);
  color: var(--like, #F4212E);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 100ms ease-out;
}
.v3-mic-cancel:hover {
  background: var(--like, #F4212E);
  color: #fff;
}
/* v0.4.2: 上划过阈值时 mic 按钮视觉强化（即将取消） */
.v3-mic-btn.about-to-cancel {
  border-color: var(--like, #F4212E);
  background: var(--like, #F4212E);
  color: #fff;
  animation: none !important;
}

/* v0.4.1: 🎯 试填示例 按钮（mic 上方蓝色 link） */
.v3-example-link {
  display: block;
  width: 100%;
  background: var(--link, #1D9BF0);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 9px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 100ms ease-out;
}
.v3-example-link:hover { opacity: 0.9; }

/* v0.4: Notes 行的"切到系统键盘"促销按钮 */
.v3-system-promo {
  width: 100%;
  background: var(--surface-soft);
  border: 1px dashed var(--border-2, #D6D6D6);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: background 100ms ease-out;
}
.v3-system-promo:hover { background: var(--hairline); }

/* v3 · 输入工具栏底部（Voice / Type toggle + 主交互区）*/
.v3-input-toolbar {
  margin: 0 -12px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--hairline);
  background: var(--paper-elev);
  position: sticky;
  bottom: 0;
  z-index: 1;
}
.v3-toggle-pill {
  display: flex; gap: 2px;
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 3px;
  margin: 0 auto 10px;
  width: fit-content;
}
.v3-toggle-pill button {
  border: 0; background: transparent;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--ink-2);
  font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.v3-toggle-pill button.on {
  background: var(--ink);
  color: var(--paper-elev);
}

/* Voice 区：大圆 mic + waveform + hint */
.v3-voice-area {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  padding-top: 4px;
}
.v3-mic-btn {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-elev);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer; user-select: none;
  border: 4px solid transparent;
  font-family: inherit;
  transition: transform 120ms ease-out;
}
.v3-mic-btn:hover { transform: scale(1.03); }
.v3-mic-btn.live {
  background: var(--paper-elev);
  color: var(--ink);
  border-color: var(--like, #F4212E);
  animation: v3-pulse 1.4s ease-in-out infinite;
}
.v3-mic-btn.live::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--like, #F4212E);
  margin-right: 6px;
  animation: v3-blink 1s steps(2) infinite;
}
@keyframes v3-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 33, 46, 0.35); }
  50%      { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(244, 33, 46, 0); }
}
.v3-waveform {
  display: flex; gap: 3px; align-items: flex-end;
  height: 26px;
}
.v3-waveform span {
  width: 3px;
  background: var(--ink);
  border-radius: 2px;
  animation: v3-wave 0.8s ease-in-out infinite;
}
.v3-waveform span:nth-child(1) { animation-delay: 0s; }
.v3-waveform span:nth-child(2) { animation-delay: 0.1s; }
.v3-waveform span:nth-child(3) { animation-delay: 0.2s; }
.v3-waveform span:nth-child(4) { animation-delay: 0.3s; }
.v3-waveform span:nth-child(5) { animation-delay: 0.4s; }
.v3-waveform span:nth-child(6) { animation-delay: 0.5s; }
.v3-waveform span:nth-child(7) { animation-delay: 0.4s; }
.v3-waveform span:nth-child(8) { animation-delay: 0.3s; }
.v3-waveform span:nth-child(9) { animation-delay: 0.2s; }
@keyframes v3-wave {
  0%, 100% { height: 6px; }
  50%      { height: 22px; }
}
.v3-mic-hint {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
}

/* v3 主 CTA（AI 整理填卡 / 生成 Post 草稿）*/
.v3-cta-btn {
  width: 100%;
  background: var(--ink);
  color: var(--paper-elev);
  border: 0;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
}
.v3-cta-btn:hover { background: var(--ink-2, #1a2530); }
.v3-cta-btn:disabled { opacity: 0.5; cursor: progress; }

/* v0.4.5: 精修 sheet 链式导航条 */
.v3-sheet-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--hairline);
}
.v3-sheet-nav-btn {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 100ms ease-out, border-color 100ms ease-out;
}
.v3-sheet-nav-btn:hover:not(:disabled) {
  background: var(--paper-elev);
  border-color: var(--ink);
}
.v3-sheet-nav-btn:disabled {
  color: var(--ink-4);
  cursor: not-allowed;
}
.v3-sheet-nav-progress {
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}
.v3-sheet-nav-progress b { font-weight: 700; }
.v3-sheet-nav-progress .dim {
  color: var(--ink-3);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  margin-left: 4px;
}

/* tap-to-edit sheet 内的 field label + 快捷 chip row */
.v3-field-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
  margin: 12px 0 6px;
}
.v3-quick-row {
  display: flex; flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

/* 5/20 客户口径：PokerUI Tips sheet · 缩写字典（保留） */
.tip-list { display: flex; flex-direction: column; gap: 6px; }
.tip-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
}
.tip-row:last-child { border-bottom: 0; }
.tip-sym { font-weight: 600; color: var(--ink); font-size: 13px; }
.tip-meaning { color: var(--ink-2); font-size: 13px; line-height: 1.5; }
@media (max-width: 480px) {
  .tip-row { grid-template-columns: 110px 1fr; gap: 8px; }
}


/* ---------- 22. Compose · 文字模式 ---------- */
.compose-visibility {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
  flex-wrap: wrap;
}
.compose-visibility .chip[data-active="1"] {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- 23. Admin ---------- */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .admin-grid { grid-template-columns: repeat(4, 1fr); }
}
.admin-card {
  padding: 14px;
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}
.admin-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.admin-card .value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 24px;
  margin-top: 6px;
  margin-bottom: 8px;
}
.admin-card .trend {
  height: 28px;
  width: 100%;
}
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 13px;
}
.admin-table th, .admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}
.admin-table th {
  background: var(--surface-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 600;
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td.actions { text-align: right; }
.admin-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ---------- 24. Misc ---------- */
.right-col-card {
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--paper-elev);
  margin-bottom: 12px;
}
.right-col-card .title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.muted { color: var(--ink-3); }
.danger-text { color: var(--danger); }
.mono { font-family: var(--font-mono); }
.row { display: flex; gap: 8px; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.spacer { flex: 1; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; color: var(--ink-3); }
.hidden { display: none !important; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.page-title { font-size: 22px; font-weight: 700; }
.page-sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* tones */
.tone-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-soft);
  color: var(--ink-3);
}
.tone-pill.fun { background: #FFF3DB; color: var(--warn); }
.tone-pill.discussion { background: var(--sky-soft); color: var(--sky); }
.tone-pill.recap { background: #E8F5EE; color: var(--ok); }
