/* =========================================================
 * 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;
  flex-wrap: wrap;
}
.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-bookmarked="1"] { color: var(--ink); font-weight: 600; }
.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-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.post-kind {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}
.post-kind-series {
  background: var(--ink);
  color: var(--on-accent);
  border-color: var(--ink);
}
.compact-post-list {
  display: grid;
  gap: 8px;
}
.compact-post-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.compact-post-row:last-child { border-bottom: 0; }
.compact-post-row span:nth-child(2) {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.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: 96px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--hairline-2);
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
}
.journey-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.journey-cover-default {
  background: #0F1419;
}
.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-latest {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}
.journey-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 8px;
}
.journey-stats .pos { color: var(--ok); font-weight: 600; }
.journey-stats .neg { color: var(--danger); font-weight: 600; }
.journey-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.alert-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  font-size: 13px;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .journey-summary-grid { grid-template-columns: repeat(4, 1fr); }
}

.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.search-input { flex: 1; }
.feed-summary-grid,
.discover-summary-grid,
.profile-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.feed-focus-card {
  display: block;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  margin-bottom: 12px;
}
.feed-focus-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.feed-focus-title {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
}
.discover-recommendations {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.discover-block {
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--paper-elev);
}
.compact-entity-list {
  display: grid;
  gap: 8px;
}
.compact-entity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 0;
}
.compact-entity + .compact-entity {
  border-top: 1px solid var(--hairline);
}
.compact-entity-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.compact-entity-title {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-entity-meta,
.compact-entity-hint {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-entity-hint { color: var(--ink-2); }
.compact-entity-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--surface-soft);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 12px;
}
.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.player-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-3);
}
@media (min-width: 768px) {
  .feed-summary-grid,
  .discover-summary-grid,
  .profile-insight-grid { grid-template-columns: repeat(4, 1fr); }
  .discover-recommendations { grid-template-columns: repeat(3, 1fr); }
  .discover-block { min-width: 0; }
}

/* ---------- 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;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 8px 0;
}
.profile-actions { display: flex; gap: 8px; margin-top: 12px; }
.profile-feature-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.profile-feature-card {
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--paper-elev);
}
.profile-feature-card[data-empty="1"] {
  border-style: dashed;
  background: var(--surface-soft);
}
.feature-kicker {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.feature-title,
.feature-title-muted {
  display: block;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}
.feature-title-muted { color: var(--ink-2); }
.feature-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
}
.feature-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .profile-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 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(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}
@media (min-width: 768px) {
  .journey-head .stats-row { grid-template-columns: repeat(4, 1fr); }
}
.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-cell .stat-value-text {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.25;
}
.stat-value.pos { color: var(--ok); }
.stat-value.neg { color: var(--danger); }
.journey-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}
.journey-action-strip-urgent {
  border-color: var(--hairline-2);
  background: #FFF8E8;
}
.action-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.action-desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.45;
}
.journey-timeline-card {
  margin-bottom: 12px;
}
.journey-timeline {
  display: grid;
  gap: 2px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 10px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
}
.timeline-row:last-child { border-bottom: 0; }
.timeline-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--ink);
}
.timeline-copy {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  color: var(--ink);
}
.timeline-time {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---------- 17. Notifications ---------- */
.notif-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .notif-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.notif-section + .notif-section {
  margin-top: 12px;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  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-actionable="1"] {
  border-color: var(--hairline-2);
}
.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-kind-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.notif-time { font-size: 12px; color: var(--ink-3); }

/* ---------- 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-action-panel {
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--paper-elev);
  margin-bottom: 12px;
}
.me-action-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.me-action-row,
.me-action-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}
.me-action-empty {
  display: block;
}
.me-action-copy {
  flex: 1;
  min-width: 0;
}
.me-action-title {
  font-weight: 700;
  font-size: 13.5px;
}
.me-action-desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* "我的" 页面：列表行 / 统计网格 / 内嵌语言切换 */
.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; }
.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.library-cell {
  min-width: 0;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.library-cell:hover { background: var(--hairline); }
.library-label {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
}
.library-value {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.library-hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
}
@media (min-width: 768px) {
  .library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 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; }
.login-intent {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}
.login-intent-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-1);
}
.login-intent-desc {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-3);
}
.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-context {
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--paper-elev);
  margin-bottom: 12px;
}
.compose-intent-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.compose-intent {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  text-align: left;
}
.compose-intent[data-active="1"] {
  border-color: var(--accent);
  background: var(--paper-elev);
}
.compose-intent-title {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
}
.compose-intent-desc {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.35;
}
.compose-journey-box {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}
.compose-journey-label {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.compose-journey-current {
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 700;
}
.compose-create-journey {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--hairline-2);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 13px;
}
.compose-fast-context {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  margin-bottom: 8px;
}
.compose-fast-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.compose-fast-meta::-webkit-scrollbar { display: none; }
.compose-fast-select {
  flex: 0 0 128px;
  height: 34px;
  font-size: 12px;
}
.compose-modes {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.compose-modes.compact {
  gap: 4px;
  margin-bottom: 8px;
  padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface-soft);
}
.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-modes.compact .compose-mode {
  padding: 7px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
}
.compose-mode[data-active="1"] {
  border-color: var(--accent);
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 600;
}
.compose-modes.compact .compose-mode[data-active="1"] {
  background: var(--ink);
  color: var(--paper-elev);
}
.compose-mode-icon { display: block; font-size: 20px; margin-bottom: 4px; }
.compose-modes.compact .compose-mode-icon {
  display: inline;
  font-size: 12px;
  margin: 0 4px 0 0;
}
.compose-confirm-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.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; }
@media (min-width: 768px) {
  .compose-intent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compose-journey-box {
    grid-template-columns: 1fr minmax(220px, 300px);
    align-items: center;
  }
}
.publish-result {
  text-align: center;
}
.publish-result-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 20px;
}
.publish-result-title {
  font-weight: 700;
  font-size: 16px;
}
.publish-result-desc {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 13px;
}
.publish-result-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}
@media (min-width: 560px) {
  .publish-result-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ---------- 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); }

.poker-v3.type-mode { padding-bottom: 0; }

/* v3 · Type 区（textarea + chip 键盘）*/
.v3-type-area {
  display: flex; flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.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: 16px; line-height: 1.5;
  color: var(--ink);
  min-height: 150px;
  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.space {
  min-width: 42px;
  color: var(--ink-2);
  background: var(--surface);
}
.v3-ck.danger {
  color: var(--like, #F4212E);
  background: var(--surface);
}
.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-divider {
  display: inline-block;
  width: 1px; height: 22px;
  background: var(--hairline);
  margin: 0 4px;
  align-self: center;
}

/* v3 · Type/System toggle + Generate */
.v3-input-toolbar {
  margin: 0 -12px;
  padding: 8px 14px 12px;
  border-top: 1px solid var(--hairline);
  background: var(--paper-elev);
  position: sticky;
  bottom: 0;
  z-index: 1;
  overflow: visible;
}
.v3-toggle-pill {
  display: flex; gap: 2px;
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 3px;
  margin: 0 auto 10px;
  width: min(100%, 430px);
}
.v3-toggle-2 {
  width: min(100%, 260px);
}
.v3-toggle-pill button {
  border: 0; background: transparent;
  flex: 1;
  padding: 6px 8px; 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;
  justify-content: center;
  white-space: nowrap;
}
.v3-toggle-pill button.on {
  background: var(--ink);
  color: var(--paper-elev);
}

/* v3 主 CTA（生成 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; }

/* 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); }
