/* 极简：纯黑 / 细线 / 灰阶 */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --fg: #d8d8d8;
  --dim: #6a6a6a;
  --faint: #3a3a3a;
  --line: #1c1c1c;
  --accent: #e8e8e8;
  /* 毛玻璃：面板底色 + 模糊半径（星域场景透上来，被雾化） */
  --glass: rgba(6, 7, 10, 0.58);
  --glass-strong: rgba(5, 6, 9, 0.72);
  --blur: 16px;
}

html, body { height: 100%; }

body {
  background: #000;
  color: var(--fg);
  font: 14px/1.6 "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}

/* ---------- 全局背景层：星域场景（常驻所有页面之下） ---------- */
#bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#idle-sky {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  image-rendering: pixelated; image-rendering: crisp-edges;
  /* 关键：父层是 pointer-events:none，画布必须自己重新开启，否则星域页收不到点击
     （页面态下是否响应由 starfield.js 的 bgMode 判断，避免误触发跳转） */
  pointer-events: auto;
}
/* 页面态：压暗背景（星域首页时透明度由 app.js 切到 0） */
#bg-dim {
  position: absolute; inset: 0; background: #000; opacity: 0;
  transition: opacity .5s; pointer-events: none;
}
body.on-page #bg-dim { opacity: 0.42; }

/* 页面内容整体浮在背景层之上 */
header, .view { position: relative; z-index: 1; }

/* ---------- 顶栏（毛玻璃） ---------- */
header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex: none;
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(0.9);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(0.9);
}

/* ---------- 顶栏：返回箭头 + 呼号 + 时钟 ---------- */
#back {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--dim); font: inherit; font-size: 15px; line-height: 1;
  width: 30px; height: 26px; cursor: pointer; flex: none;
}
#back.show { display: block; }
#back:hover { color: var(--accent); border-color: var(--faint); }

.me { color: var(--dim); font-size: 13px; }
.me b { color: var(--accent); font-weight: 600; }

.clock {
  font: 12px/1 Consolas, monospace;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.clock.bad { color: #a05a5a; }

/* ---------- 视图 ---------- */
.view { display: none; flex: 1; min-height: 0; flex-direction: column; }
.view.active { display: flex; }

/* ---------- 账号面板（点顶栏呼号打开） ---------- */
#acct-panel {
  display: none; position: fixed; z-index: 40; top: 56px; left: 18px; width: 330px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(6, 6, 6, .93); backdrop-filter: blur(14px) saturate(.9);
  font-size: 12px; line-height: 1.6;
}
#acct-panel.show { display: block; }
.acct-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; color: var(--dim); }
.acct-head i { font-style: normal; font-size: 10px; }
.acct-head button { background: none; border: none; color: var(--faint); cursor: pointer; font: inherit; }
.acct-row { display: flex; align-items: center; gap: 6px; margin: 5px 0; }
.acct-row label { width: 30px; flex: none; color: var(--faint); }
.acct-row b { color: var(--accent); font-weight: 600; }
.acct-row input, .acct-row select {
  flex: 1; min-width: 0; background: #000; color: var(--fg);
  border: 1px solid var(--line); border-radius: 3px; padding: 3px 6px; font: inherit; font-size: 12px;
}
.acct-row button, .acct-foot button {
  flex: none; background: #0b0b0b; color: var(--dim); border: 1px solid var(--line);
  border-radius: 3px; padding: 3px 8px; font: inherit; font-size: 11px; cursor: pointer;
}
.acct-row button:hover, .acct-foot button:hover { color: var(--accent); border-color: var(--faint); }
.acct-note { font-size: 11px; color: var(--faint); margin: 2px 0 6px; }
.acct-note.ok { color: var(--dim); }
.acct-note.warn { color: #b99a6a; }
.acct-recover {
  font: 13px/1.5 Consolas, monospace; letter-spacing: .1em;
  color: var(--accent); background: #0b0b0b; border: 1px dashed var(--line);
  border-radius: 4px; padding: 5px 8px; margin: 2px 0 8px; text-align: center;
  user-select: all; cursor: text;
}
.acct-row .dim { font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.acct-foot b { color: var(--dim); font-weight: 400; }
.acct-msg { min-height: 16px; font-size: 11px; color: var(--dim); margin-top: 6px; }
.acct-msg.bad { color: #c97a7a; }

/* ---------- 登录终端：纯黑底上的终端机浮窗（登录成功后黑幕淡去，星域渐亮） ---------- */
#login-overlay {
  display: none; position: fixed; inset: 0; z-index: 60;
  background: #000;                             /* 浮窗后是纯黑，星域完全被遮住 */
  align-items: center; justify-content: center;
  opacity: 1; transition: opacity 1.5s ease;    /* 成功时整体淡去 → 星域渐渐亮起 */
}
#login-overlay.show { display: flex; }
#login-overlay.done { opacity: 0; pointer-events: none; }
#login-term {
  width: min(560px, 92vw);
  border: 1px solid var(--line); border-radius: 8px;
  background: #050505;
  padding: 16px 20px 18px;
  box-shadow: 0 0 44px rgba(255, 255, 255, .07), inset 0 0 60px rgba(0, 0, 0, .85);
  font: 13px/1.75 Consolas, monospace;
}
#login-lines { min-height: 96px; color: var(--dim); white-space: pre-wrap; }
#login-lines .lg-line { opacity: 0; animation: lgIn .22s forwards; }
#login-lines .lg-line.ok { color: var(--accent); }
#login-lines .lg-line.dim2 { color: var(--faint); }
@keyframes lgIn { to { opacity: 1; } }
#login-form { display: none; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
#login-form.on { display: block; }
.lg-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.lg-prompt { width: 64px; flex: none; color: var(--faint); }
.lg-row input {
  flex: 1; min-width: 0; background: #000; color: var(--fg);
  border: 1px solid var(--line); border-radius: 3px; padding: 5px 8px; font: inherit; font-size: 13px;
}
.lg-row input:focus { border-color: var(--accent); outline: none; }
.lg-actions { display: flex; gap: 10px; margin-top: 12px; }
.lg-actions button {
  background: #0b0b0b; color: var(--dim); border: 1px solid var(--line);
  border-radius: 3px; padding: 4px 12px; font: inherit; font-size: 12px; cursor: pointer;
}
.lg-actions button:hover { color: var(--accent); border-color: var(--faint); }
.lg-remember { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: var(--faint); cursor: pointer; }
.lg-remember input { accent-color: #888; }
.lg-remember:hover { color: var(--dim); }
#lg-msg { min-height: 18px; margin-top: 8px; color: #b99a6a; font-size: 12px; }
#lg-msg.ok { color: var(--accent); }
@media (max-width: 560px) { .lg-prompt { width: 56px; } }
#gate { display: none; position: fixed; inset: 0; z-index: 50; align-items: center; justify-content: center; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
#gate.show { display: flex; }
.gate-box {
  width: min(560px, 92vw); padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(6, 6, 6, .96);
}
.gate-box h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.gate-box p { margin: 0 0 16px; font-size: 12px; line-height: 1.7; color: var(--faint); }
.gate-planets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gate-planet {
  background: #0b0b0b; color: var(--fg); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 4px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.gate-planet b { font-size: 14px; font-weight: 600; }
.gate-planet i { font-style: normal; font-size: 10px; color: var(--faint); }
.gate-planet:hover { border-color: var(--accent); color: var(--accent); }
.gate-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.gate-login {
  background: #0b0b0b; color: var(--dim); border: 1px solid var(--line); border-radius: 4px;
  padding: 6px 12px; font: inherit; font-size: 12px; cursor: pointer;
}
.gate-login:hover { color: var(--accent); border-color: var(--faint); }
.gate-skip { background: none; border: none; color: var(--faint); font: inherit; font-size: 12px; cursor: pointer; }
.gate-skip:hover { color: var(--accent); }
@media (max-width: 560px) { .gate-planets { grid-template-columns: repeat(3, 1fr); } #acct-panel { width: calc(100vw - 36px); } }
/* ---------- 星图（真实太阳系俯视图 + 我的链路表） ---------- */
.sky-body { flex: 1; display: flex; gap: 16px; min-height: 0; padding: 12px 16px 16px; }
.sky-canvas-wrap { position: relative; flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
#sky-canvas { display: block; width: 100%; height: 100%; }
.sky-labels { position: absolute; inset: 0; pointer-events: none; }
.sky-label {
  position: absolute; transform: translate(-50%, -140%);
  font: 11px/1.3 Consolas, monospace; color: var(--faint); white-space: nowrap;
  text-shadow: 0 0 6px #000, 0 0 3px #000;
}
.sky-label.me { color: var(--accent); }
.sky-label.warn { color: #b99a6a; }
.sky-side { width: 320px; flex: none; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.sky-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--dim); }
.sky-head b { color: var(--accent); font-weight: 600; }
.sky-head button {
  background: #0b0b0b; color: var(--dim); border: 1px solid var(--line);
  border-radius: 3px; padding: 3px 8px; font: inherit; font-size: 11px; cursor: pointer;
}
.sky-head button:hover { color: var(--accent); border-color: var(--faint); }
.sky-links { flex: 1; min-height: 0; overflow-y: auto; font: 12px/1.6 Consolas, monospace; }
.sky-row { display: grid; grid-template-columns: 1fr 74px 72px 52px; gap: 4px; padding: 2px 0; border-bottom: 1px solid #141414; }
.sky-row span { text-align: right; }
.sky-row .cs { text-align: left; color: var(--fg); }
.sky-row .cs i { color: var(--faint); font-style: normal; font-size: 10px; margin-left: 4px; }
.sky-th { color: var(--faint); border-bottom-color: var(--line); }
.sky-row.warn { color: var(--accent); }
.sky-note { font-size: 11px; line-height: 1.5; color: var(--faint); margin: 0; }
@media (max-width: 860px) {
  .sky-body { flex-direction: column; }
  .sky-side { width: auto; }
}

/* ---------- 信道簿（左列） ---------- */
.chat-body { flex: 1; display: flex; min-height: 0; }

.channel-list {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(0.9);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(0.9);
  width: 220px;   /* v0.19：190 → 220，12 字呼号不再被截断（配合两行条目） */
  flex: none;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 8px 0;
}

.chan-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--dim);
  border-left: 2px solid transparent;
}
.chan-item:hover { color: var(--fg); background: #070707; }
.chan-item.active { color: var(--accent); background: #0a0a0a; border-left-color: var(--accent); }

.chan-item .dot { width: 16px; text-align: center; flex: none; font-size: 12px; }
.dot.link { color: var(--accent); }
.dot.new { color: var(--faint); }
.dot.local { color: var(--fg); }
/* 信道簿条目（v0.19 起两行）：第一行 = 个人呼号（独占一行，不再被距离标签挤压截断），
 * 第二行 = 星球 · 距离 · 单程 · 日凌档位小字（§8.3 公开天文）。title 提供悬停全文兜底。 */
.chan-item .chan-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chan-item .cs { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan-item .tag {
  display: block; font-size: 10px; line-height: 1.4; color: var(--faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chan-item .tag.warn { color: #b99a6a; }
.chan-item.active .tag { color: var(--accent); opacity: .8; }
/* 顶栏：个人呼号（可点改）+ 所在星球电台 */
.me b { cursor: pointer; }
.me .station { font-size: 11px; color: var(--faint); margin-left: 6px; }

.chan-item .badge {
  flex: none;
  background: #1a1a1a;
  color: var(--accent);
  font-size: 11px;
  line-height: 17px;
  padding: 0 7px;
  border-radius: 8px;
}

/* ---------- 聊天窗（右列） ---------- */
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.channel-head {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(0.9);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(0.9);
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}
.channel-head b { color: var(--accent); font-weight: 600; }
.ch-status { font-size: 12px; color: var(--faint); }

/* 窄屏：信道簿折叠回下拉 */
.target-bar { display: none; }
@media (max-width: 720px) {
  /* ① 信道页改两级：列表 ↔ 会话（由 body.m-detail 切换），不再"隐藏列表 + 下拉选人" */
  .channel-list { display: flex; width: auto; flex: 1 1 auto; border-right: none; }
  .chat-main { display: none; }
  body.m-detail .channel-list { display: none; }
  body.m-detail .chat-main { display: flex; flex: 1 1 auto; }
  .target-bar { display: none; }          /* 列表本身就是选择器 */
  /* ② 触控目标 ≥44px、输入框 ≥16px（iOS 聚焦不缩放） */
  header { padding-top: max(16px, env(safe-area-inset-top)); }
  .view, .composer { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .chan-item { min-height: 52px; padding: 10px 14px; }
  #back, .chat-back { min-width: 44px; min-height: 44px; }
  #send { min-width: 84px; }
  .preset button, .listen-bar button, .gate-actions button, .acct-row button { min-height: 40px; }
  .composer textarea, .listen-bar input, #login-form input, .acct-row input, .acct-row select { font-size: 16px; }
  .hot-label { font-size: 13px; padding: 5px 10px; }
  /* ③ 星图页上下堆叠 */
  .sky-body { flex-direction: column; gap: 10px; padding: 10px 12px 14px; }
  .sky-side { width: auto; flex: 0 0 auto; max-height: 42vh; }
  .sky-canvas-wrap { flex: 1 1 auto; min-height: 46vh; }
  .sky-row { grid-template-columns: 1fr 66px 62px 44px; font-size: 11px; }
}

/* 桌面不显示"返回信道簿"（两级只在窄屏用） */
.chat-back {
  display: none; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 4px;
  color: var(--dim); font: inherit; font-size: 16px; line-height: 1;
  padding: 0 8px; margin-right: 8px; cursor: pointer; flex: none;
}
@media (max-width: 720px) { .chat-back { display: inline-flex; } }
.chat-back:hover { color: var(--accent); border-color: var(--faint); }
.hot-label.sel { color: var(--accent); border-color: var(--accent); }

/* 触摸设备：去掉点击高亮闪、避免双击缩放；画布自己处理点按手势 */
button, .chan-item, .hot-label, .gate-planet { touch-action: manipulation; }
#idle-sky { touch-action: none; }

/* 移动端地址栏伸缩时高度更稳（dvh 不支持则自动退回 100%） */
@supports (height: 100dvh) {
  html, body { height: 100dvh; }
}

.target-bar {
  flex: none;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
}

select {
  background: #000;
  color: var(--fg);
  border: 1px solid var(--line);
  font: inherit;
  font-size: 12px;
  padding: 3px 8px;
  margin-left: 6px;
}

/* ---------- 日志（聊天 & 信号共用） ---------- */
.log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* 纵深：让消息像浮在雾面玻璃前 */
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
}

.log::-webkit-scrollbar { width: 6px; }
.log::-webkit-scrollbar-thumb { background: var(--faint); }

/* 聊天条目 */
.msg { max-width: 72%; }
.msg.mine { align-self: flex-end; text-align: right; }
.msg .who { font-size: 11px; color: var(--dim); margin-bottom: 2px; }
/* 消息时间戳（v0.19）：我 = 发射时刻 · 来信 = 到达时刻（对方发送时刻不下发，决策 #7） */
.msg .who .when { color: var(--faint); font-variant-numeric: tabular-nums; }
.msg .body { white-space: pre-wrap; word-break: break-word; }
.msg .status { font-size: 11px; color: var(--dim); margin-top: 2px; font-variant-numeric: tabular-nums; }
.msg .status.wait { color: #8a7a4a; }
.msg .status.done { color: #6f8f6f; }
.msg.theirs .body { color: var(--accent); }

/* 信号日志（等宽、终端感） */
.mono { font: 12.5px/1.9 Consolas, "Courier New", monospace; }
.sig-line { color: var(--dim); }
.sig-line b { color: var(--fg); font-weight: 400; }
.sig-line .t { color: var(--faint); margin-right: 10px; }
.sig-line .body { color: var(--accent); }
.sig-line.ack .body { color: #6f8f6f; }

.empty { color: var(--faint); font-size: 12px; margin: auto; }

/* ---------- 信号页 ---------- */
.listen-bar {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(0.9);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(0.9);
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}

#drop {
  flex: none;
  background: none;
  color: var(--accent);
  border: 1px solid var(--faint);
  font: inherit;
  font-size: 12px;
  padding: 5px 14px;
  cursor: pointer;
}
#drop:hover { border-color: var(--accent); }

.listen-bar .hint { font-size: 11px; color: var(--faint); }
.listen-bar .hint.bad { color: #c97a7a; }

#bottle-text {
  flex: 1;
  min-width: 120px;
  background: #000;
  color: var(--fg);
  border: 1px solid var(--line);
  font: inherit;
  font-size: 12px;
  padding: 5px 10px;
}
#bottle-text:focus { outline: none; border-color: var(--faint); }
#bottle-text::placeholder { color: var(--faint); }

#bottle-power {
  flex: none;
  background: #000;
  color: var(--fg);
  border: 1px solid var(--line);
  font: inherit;
  font-size: 12px;
  padding: 4px 6px;
}

#drop {
  flex: none;
  background: none;
  color: var(--accent);
  border: 1px solid var(--faint);
  font: inherit;
  font-size: 12px;
  padding: 5px 14px;
  cursor: pointer;
}
#drop:hover { border-color: var(--accent); }

.sig-actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 0 24px; }

.sig-act {
  background: none;
  border: 1px solid var(--faint);
  color: var(--accent);
  font: inherit;
  font-size: 11px;
  padding: 2px 12px;
  cursor: pointer;
}
.sig-act:hover { border-color: var(--accent); }
.sig-act.subtle { color: var(--dim); border-color: var(--line); }
.sig-act.subtle:hover { color: var(--fg); border-color: var(--faint); }
.sig-act:disabled { color: var(--faint); border-color: var(--line); cursor: not-allowed; }

.sig-line.faded { opacity: 0.35; }
.sig-why { margin: 4px 0 0 24px; font-size: 11px; color: var(--faint); }

/* 未知信号（彩蛋）：名字亮一档，正文比普通信号更"远"一点 —— 像隔着很厚的静噪；
 * 没有任何操作按钮（无法应答 —— 它不等任何回应） */
.sig-line.egg .body { color: var(--fg); letter-spacing: 0.04em; }
.sig-line.egg .egg-name { color: var(--accent); font-weight: 600; }

.empty-book .warn-note { color: #b99a6a; }
.empty-book {
  margin: auto;
  padding: 20px;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  line-height: 2;
}

/* ---------- 星域（首页）：背景即场景，本页只放提示与预设 ---------- */
#view-idle { position: relative; background: transparent; pointer-events: none; }
#view-idle.active { animation: fadein .6s ease; }
#view-idle > * { pointer-events: auto; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* 首次进入星域的引导提示（8 秒后淡出，只出现一次） */
#pwa-hint {
  position: absolute; left: 20px; bottom: 52px; max-width: 62vw;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px;
  background: rgba(6,6,6,.72); color: var(--faint); font-size: 11px; line-height: 1.4;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s;
}
#pwa-hint.show { opacity: 1; pointer-events: auto; }
#pwa-hint:hover { color: var(--accent); border-color: var(--faint); }
#idle-hint {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%);
  font-size: 12px; color: #6a6a6a; letter-spacing: 1px; white-space: nowrap;
  opacity: 0; transition: opacity .8s; pointer-events: none;
  text-shadow: 0 0 8px #000;
}
#idle-hint.show { opacity: 1; }

#idle-ui {
  position: absolute; bottom: 10px; right: 12px;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #4a4a4a; user-select: none;
}
#idle-ui .lbl { color: #4a4a4a; }
#idle-ui button {
  background: none; border: 1px solid #1e1e1e; color: #5a5a5a;
  font: inherit; font-size: 11px; padding: 2px 9px; cursor: pointer;
}
#idle-ui button:hover { color: #a8a8a8; border-color: #333; }
#idle-ui button.on { color: #c9b98a; border-color: #5a5342; }
#idle-ui input[type=checkbox] { accent-color: #8a7a4a; vertical-align: -2px; margin-right: 3px; }
#idle-err { position: absolute; top: 10px; left: 12px; font-size: 11px; color: #c97a7a; }

/* 场景按钮的悬停标签（居中在锚点上；中文用真实文字，可读可点） */
.hot-label {
  position: absolute; transform: translate(-50%, -50%);
  font-size: 11px; color: #b9b9b9; letter-spacing: 2px;
  cursor: pointer; user-select: none; white-space: nowrap;
  text-shadow: 0 0 8px #000, 0 1px 0 #000;
}
.hot-label:hover { color: #e8e8e8; }

/* ---------- 输入 ---------- */
.composer {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(0.9);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(0.9);
  flex: none;
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.composer-main { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.send-error {
  min-height: 16px;
  font-size: 12px;
  color: #c97a7a;
  opacity: 0;
  transition: opacity .3s;
}
.send-error.show { opacity: 1; }
/* 链路降级提示：用唯一暖色（状态色），与错误红区分开 */
.send-error.warn { color: #b99a6a; }

/* 日凌：信道头的太阳噪声标记（平时不出现） */
.ch-status.solar { color: #b99a6a; }

#send:disabled { color: var(--faint); border-color: var(--line); cursor: not-allowed; }

textarea {
  flex: 1;
  background: #000;
  color: var(--fg);
  border: 1px solid var(--line);
  font: inherit;
  font-size: 13px;
  padding: 9px 12px;
  resize: none;
}
textarea:focus { outline: none; border-color: var(--faint); }
textarea::placeholder { color: var(--faint); }

#send {
  align-self: flex-end;
  background: none;
  color: var(--accent);
  border: 1px solid var(--faint);
  font: inherit;
  font-size: 13px;
  padding: 8px 22px;
  cursor: pointer;
}
#send:hover { border-color: var(--accent); }
#send:active { background: #0d0d0d; }
