:root{ --app-height:100dvh; }
.stage{ height:var(--app-height); bottom:auto; }
.chat-loading{ margin:28vh 24px 0; text-align:center; font-family:var(--font-song); font-size:13px; letter-spacing:.08em; color:var(--text-faint); }
.history-more{ display:flex; justify-content:center; margin:4px 0 14px; }
.history-more button,.loop-error-row button,.loop-stream-state button{
  font-family:var(--font-song); font-size:11px; color:var(--text-soft); background:var(--glass);
  border:1px solid var(--glass-line); border-radius:999px; padding:6px 12px; cursor:pointer;
}
.history-more button:disabled{ opacity:.55; }
.loop-error-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin:8px 4px; padding:8px 11px;
  border:1px solid var(--her-line); border-radius:14px; background:var(--glass); font-family:var(--font-song);
  font-size:11.5px; color:var(--text-soft); }
.loop-error-row span:first-child{ flex:1; overflow:hidden; text-overflow:ellipsis; }
.loop-stream-state{ display:flex; justify-content:center; margin:10px 0 4px; }
.reply-usage{ margin:5px 8px 2px; font-family:var(--font-en); font-size:11px; letter-spacing:.03em; color:var(--text-faint); text-align:left; }
.col > .b + .b{ margin-top:4px; }
.row.her .reply-usage{ align-self:flex-end; }
.msg-failed{ margin:5px 8px; font-family:var(--font-song); font-size:11px; color:var(--thread); }
.msg-failed button{ margin-left:6px; border:0; padding:2px 0; background:transparent; color:var(--text-soft); cursor:pointer; font:inherit; border-bottom:1px solid var(--glass-line); }
.think-text.translated{ font-family:var(--font-song); }
.think-translation-state{ min-height:14px; margin-top:4px; font-family:var(--font-song); font-size:10px; color:var(--text-faint); }
.think[data-streaming="1"] .think-cap::after{ content:"· 正在想"; }
.think-text:empty::before{ content:"正在整理 Thinking…"; color:var(--text-faint); }
.send:disabled{ opacity:.45; cursor:default; }
.drawer button{ border:0; background:transparent; text-align:center; font-family:var(--font-song); font-size:11px; color:var(--text-soft); letter-spacing:.06em; cursor:pointer; }
.drawer button span{ display:grid; place-items:center; width:46px; height:46px; margin:0 auto 5px; border-radius:15px; background:rgba(127,150,170,.10); font-size:20px; }
.tabbar .tab{ border:0; background:transparent; padding:0; cursor:pointer; }
.tabbar .tab[data-pending-route]{ opacity:.72; }
.status-card .kv{ padding:6px 2px; }
.status-card .kv + .kv{ border-top:1px solid var(--glass-line); }
.capability-list{ margin:4px 2px 10px; padding:10px 12px; border-radius:16px; background:var(--glass); border:1px solid var(--glass-line); }
.capability-list div{ display:grid; grid-template-columns:74px 1fr; gap:8px; padding:6px 0; font-family:var(--font-song); font-size:11.5px; line-height:1.55; }
.capability-list div + div{ border-top:1px solid var(--glass-line); }
.capability-list b{ font-weight:400; color:var(--text); }
.capability-list span{ color:var(--text-soft); }
.logout-btn{ display:block; width:100%; margin:8px 0 22px; padding:11px; border-radius:15px; border:1px solid var(--glass-line);
  background:var(--glass); color:var(--thread); font-family:var(--font-song); font-size:12px; letter-spacing:.12em; cursor:pointer; }
.seg[aria-disabled="true"]{ opacity:.58; }
.seg[aria-disabled="true"] button{ cursor:default; }
.toast{ pointer-events:none; }
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
