.stellar-ui {
  --cp: #00f0ff;
  --cs: #ff00ff;
  --ca: #00ff88;
  --cw: #ffaa00;
  --cd: #ff3366;
  --cbg: rgba(12, 12, 28, 0.96);
  --cbgl: rgba(255, 255, 255, 0.06);
  --cbr: rgba(0, 240, 255, 0.25);
  --ct: #dde0ff;
  --ctd: #7a7aaa;
  --shd: 0 0 18px rgba(0, 240, 255, 0.25);
  --xs: 5px;
  --sm: 9px;
  --md: 13px;
  --lg: 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ct);
}
@media (prefers-color-scheme: light) {
  .stellar-ui {
    --cbg: rgba(245, 246, 255, 0.97);
    --cbgl: rgba(0, 0, 0, 0.04);
    --cbr: rgba(0, 150, 220, 0.3);
    --ct: #1a1a3a;
    --ctd: #5555aa;
    --shd: 0 0 12px rgba(0, 150, 220, 0.15);
  }
}
.stellar-ui .heart-token {
  display: inline-block;
  font-size: 22px;
  animation: hb 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 7px #ff00ff);
  margin-bottom: var(--sm);
}
@keyframes hb {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.stellar-ui .coser-panel {
  background: var(--cbg);
  border: 1px solid var(--cbr);
  border-radius: 8px;
  margin: var(--sm) 0;
  padding: 0;
  box-shadow: var(--shd);
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.stellar-ui .coser-panel:hover {
  border-color: var(--cp);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.4);
}
.stellar-ui .coser-panel summary {
  padding: var(--sm) var(--md);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(90deg, rgba(0,240,255,0.08) 0%, transparent 100%);
  user-select: none;
  transition: background 0.2s, padding-left 0.2s;
  position: relative;
  overflow: hidden;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}
.stellar-ui .coser-panel summary::-webkit-details-marker { display: none; }
.stellar-ui .coser-panel summary::before {
  content: '▸';
  color: var(--cp);
  font-size: 12px;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.stellar-ui .coser-panel[open] > summary::before {
  transform: rotate(90deg);
}
.stellar-ui .coser-panel summary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,0.1), transparent);
  transition: left 0.5s;
}
.stellar-ui .coser-panel:hover summary::after { left: 100%; }
.stellar-ui .coser-panel summary:hover {
  background: linear-gradient(90deg, rgba(0,240,255,0.13) 0%, transparent 100%);
  padding-left: calc(var(--md) + 3px);
}
.stellar-ui .thinking-panel { border-color: rgba(255,0,255,0.35); }
.stellar-ui .thinking-panel > summary { color: var(--cs); }
.stellar-ui .thinking-panel > summary::before { color: var(--cs); }
.stellar-ui .scene-panel { border-color: rgba(0,255,136,0.4); }
.stellar-ui .scene-panel > summary { color: var(--ca); }
.stellar-ui .scene-panel > summary::before { color: var(--ca); }
.stellar-ui .player-panel { border-left: 3px solid var(--cp); }
.stellar-ui .comment-panel { border-left: 3px solid var(--cw); }
.stellar-ui .comment-panel > summary { color: var(--cw); }
.stellar-ui .comment-panel > summary::before { color: var(--cw); }
.stellar-ui .ship-panel {
  border-color: var(--cs);
  background: linear-gradient(160deg, var(--cbg), rgba(255,0,255,0.04));
}
.stellar-ui .ship-panel > summary { color: var(--cs); }
.stellar-ui .memory-panel { border-color: rgba(0,255,136,0.5); }
.stellar-ui .memory-panel > summary { color: var(--ca); }
.stellar-ui .memory-panel > summary::before { color: var(--ca); }
.stellar-ui .action-panel { border-color: rgba(255,51,102,0.5); }
.stellar-ui .action-panel > summary { color: var(--cd); }
.stellar-ui .action-panel > summary::before { color: var(--cd); }
.stellar-ui .cyber-stream {
  padding: var(--sm);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--ca);
  background: rgba(0,0,0,0.35);
  margin: var(--xs) var(--md) var(--md);
  border-radius: 4px;
  border: 1px solid rgba(0,255,136,0.2);
}
.stellar-ui .stream-line {
  display: block;
  opacity: 0.75;
  line-height: 1.5;
}
.stellar-ui .scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--xs);
  padding: var(--sm);
}
.stellar-ui .scene-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: var(--xs) var(--sm);
  background: var(--cbgl);
  border-radius: 5px;
  border-left: 2px solid var(--ca);
}
.stellar-ui .scene-key {
  font-size: 11px;
  color: var(--ctd);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.stellar-ui .scene-val { font-size: 13px; color: var(--ct); }
.stellar-ui .rev-main {
  position: relative;
  background: rgba(10, 10, 25, 0.97);
  border: 1.5px solid var(--cp);
  border-radius: 10px;
  padding: var(--lg) var(--md);
  margin: var(--md) 0;
  box-shadow: 0 0 28px rgba(0,240,255,0.18), inset 0 0 18px rgba(0,240,255,0.04);
}
@media (prefers-color-scheme: light) {
  .stellar-ui .rev-main {
    background: rgba(248, 249, 255, 0.98);
    box-shadow: 0 0 20px rgba(0,150,220,0.12), inset 0 0 10px rgba(0,150,220,0.03);
  }
}
.stellar-ui .rev-frame-tl,
.stellar-ui .rev-frame-tr,
.stellar-ui .rev-frame-bl,
.stellar-ui .rev-frame-br {
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--cs);
}
.stellar-ui .rev-frame-tl { top:-1px; left:-1px; border-right:none; border-bottom:none; border-top-left-radius:10px; }
.stellar-ui .rev-frame-tr { top:-1px; right:-1px; border-left:none; border-bottom:none; border-top-right-radius:10px; }
.stellar-ui .rev-frame-bl { bottom:-1px; left:-1px; border-right:none; border-top:none; border-bottom-left-radius:10px; }
.stellar-ui .rev-frame-br { bottom:-1px; right:-1px; border-left:none; border-top:none; border-bottom-right-radius:10px; }
.stellar-ui .rev-content { position: relative; z-index: 1; }
.stellar-ui .rev-content p { margin: var(--sm) 0; }
.stellar-ui .char-dialogue {
  color: #40e8ff;
  font-weight: 500;
  text-shadow: 0 0 6px rgba(0,240,255,0.35);
}
.stellar-ui .inner-thought {
  color: #9999cc;
  font-style: italic;
}
.stellar-ui .system-alert {
  background: linear-gradient(135deg, rgba(255,170,0,0.12), rgba(255,51,102,0.1));
  border-left: 3px solid var(--cw);
  padding: var(--xs) var(--sm);
  margin: var(--xs) 0;
  border-radius: 4px;
  font-weight: 500;
  font-size: 13px;
  color: var(--cw);
  font-family: 'Courier New', monospace;
}
.stellar-ui .id-card {
  display: flex;
  gap: var(--md);
  padding: var(--md) var(--md) var(--sm);
  background: linear-gradient(135deg, rgba(0,240,255,0.07), transparent);
  align-items: center;
  border-bottom: 1px solid var(--cbr);
}
.stellar-ui .id-avatar {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--cp), var(--cs));
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.stellar-ui .id-scan {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--cp);
  animation: scanpulse 2s linear infinite;
}
@keyframes scanpulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}
.stellar-ui .id-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--cp);
  text-shadow: 0 0 8px rgba(0,240,255,0.4);
  margin-bottom: 2px;
  letter-spacing: 1px;
}
.stellar-ui .id-tag { font-size: 12px; color: var(--ctd); }
.stellar-ui .profile-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--xs);
}
.stellar-ui .profile-list li {
  display: flex;
  padding: var(--xs) var(--md);
  border-bottom: 1px solid var(--cbr);
  gap: var(--sm);
  font-size: 14px;
}
.stellar-ui .profile-list li:last-child { border-bottom: none; }
.stellar-ui .pf-key {
  min-width: 52px;
  color: var(--ctd);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.stellar-ui .pf-val { flex: 1; color: var(--ct); }
.stellar-ui .dao-stat { padding: var(--xs) var(--md) var(--md); }
.stellar-ui .dao-row {
  display: flex;
  flex-direction: column;
  gap: var(--xs);
  margin-bottom: var(--sm);
}
.stellar-ui .dao-label {
  font-weight: 700;
  color: var(--cp);
  font-size: 13px;
  letter-spacing: 2.5px;
}
.stellar-ui .dao-bar {
  position: relative;
  height: 20px;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--cbr);
}
.stellar-ui .dao-fill {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, var(--ca), var(--cp));
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,255,136,0.5);
  transition: width 0.6s ease;
}
.stellar-ui .hp-bar .dao-fill {
  background: linear-gradient(90deg, #cc0033, #ff3366, #ff6699);
  box-shadow: 0 0 12px rgba(255,51,102,0.6);
}
.stellar-ui .dao-num {
  position: absolute;
  right: var(--sm);
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  z-index: 1;
}
.stellar-ui .dao-desc {
  font-size: 13px;
  color: var(--ctd);
  line-height: 1.5;
  padding: 2px 0 var(--xs);
}
.stellar-ui .sub-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
  margin: var(--lg) 0 var(--sm);
  padding: 7px var(--md);
  background: linear-gradient(90deg, rgba(0,240,255,0.22) 0%, rgba(0,240,255,0.06) 60%, transparent 100%);
  border-left: 4px solid var(--cp);
  border-radius: 0 4px 4px 0;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0,240,255,0.5);
  position: relative;
}
.stellar-ui .sub-title::before {
  content: '◆';
  font-size: 10px;
  color: var(--cp);
  opacity: 0.8;
}
@media (prefers-color-scheme: light) {
  .stellar-ui .sub-title {
    color: #0a0a2a;
    text-shadow: none;
    background: linear-gradient(90deg, rgba(0,150,220,0.15) 0%, transparent 100%);
  }
}
.stellar-ui t {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
  color: #ffe066;
  margin: var(--md) 0 4px;
  padding: 5px var(--md);
  background: linear-gradient(90deg, rgba(255,224,102,0.12) 0%, transparent 80%);
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.stellar-ui t::before {
  content: '▎';
  font-size: 16px;
  color: #ffe066;
  opacity: 0.7;
  flex-shrink: 0;
}
@media (prefers-color-scheme: light) {
  .stellar-ui t { color: #996600; background: linear-gradient(90deg, rgba(200,150,0,0.1) 0%, transparent 80%); }
  .stellar-ui t::before { color: #996600; }
}
.stellar-ui .coser-panel li,
.stellar-ui .dao-stat li {
  position: relative;
  padding-left: 16px;
  margin: 3px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ct);
  list-style: none;
}
.stellar-ui .coser-panel li::before,
.stellar-ui .dao-stat li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 5px; height: 5px;
  background: var(--cp);
  border-radius: 50%;
  opacity: 0.7;
  box-shadow: 0 0 4px var(--cp);
}
.stellar-ui .coser-panel ul,
.stellar-ui .dao-stat ul {
  padding: 0 var(--md);
  margin: var(--xs) 0;
}
.stellar-ui rank {
  font-weight: 900;
  letter-spacing: 0.3px;
  font-style: normal;
}
.stellar-ui .r-sss {
  background: linear-gradient(90deg,#ff0080,#ff8c00,#ffe000,#00ff88,#00f0ff,#8800ff,#ff0080);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rbw 2.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.5));
}
@keyframes rbw {
  0% { background-position: 0% center; }
  100% { background-position: 250% center; }
}
.stellar-ui .r-ss {
  color: #ff2222;
  text-shadow: 0 0 10px rgba(255,30,30,0.9), 0 0 20px rgba(255,0,0,0.4);
}
.stellar-ui .r-s {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255,215,0,0.8), 0 0 18px rgba(255,200,0,0.3);
}
.stellar-ui .r-a {
  color: #cc44ff;
  text-shadow: 0 0 10px rgba(180,50,255,0.8), 0 0 18px rgba(150,0,255,0.3);
}
.stellar-ui .r-b {
  color: #2288ff;
  text-shadow: 0 0 10px rgba(30,120,255,0.8), 0 0 18px rgba(0,100,255,0.3);
}
.stellar-ui .r-c {
  color: #00e87a;
  text-shadow: 0 0 10px rgba(0,220,100,0.7), 0 0 16px rgba(0,200,80,0.3);
}
.stellar-ui .r-d {
  color: #e8e8ff;
  text-shadow: 0 0 6px rgba(220,220,255,0.5);
}
.stellar-ui .r-e {
  color: #777788;
  text-shadow: none;
}
.stellar-ui .r-f {
  color: #555566;
  opacity: 0.85;
  text-shadow: none;
}
@media (prefers-color-scheme: light) {
  .stellar-ui .r-d { color: #444466; text-shadow: none; }
  .stellar-ui .r-e { color: #666677; }
  .stellar-ui .r-f { color: #888899; opacity: 1; }
}
.stellar-ui .action-list {
  display: flex;
  flex-direction: column;
  gap: var(--xs);
  padding: var(--sm);
}
.stellar-ui .action-btn {
  display: flex;
  align-items: center;
  gap: var(--sm);
  padding: var(--sm) var(--md);
  background: var(--cbgl);
  border: 1px solid var(--cbr);
  border-radius: 6px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.stellar-ui .action-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,0.15), transparent);
  transition: left 0.4s;
}
.stellar-ui .action-btn:hover::after { left: 100%; }
.stellar-ui .action-btn:hover {
  border-color: var(--cp);
  background: rgba(0,240,255,0.08);
  transform: translateX(5px);
  box-shadow: -3px 0 0 var(--cp);
}
.stellar-ui .act-key {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 13px;
  color: #000;
  flex-shrink: 0;
}
.stellar-ui .act-text { flex: 1; font-size: 14px; color: var(--ct); }
.stellar-ui .act-a .act-key { background: linear-gradient(135deg,#00ff88,#00cc55); box-shadow: 0 0 8px rgba(0,255,136,0.5); }
.stellar-ui .act-b .act-key { background: linear-gradient(135deg,#555,#333); color: #aaa; box-shadow: 0 0 8px rgba(0,0,0,0.5); }
.stellar-ui .act-c .act-key { background: linear-gradient(135deg,#ffcc00,#ff9900); box-shadow: 0 0 8px rgba(255,170,0,0.5); }
.stellar-ui .act-d .act-key { background: linear-gradient(135deg,#ff3366,#cc0033); box-shadow: 0 0 8px rgba(255,51,102,0.5); }
.stellar-ui .act-e .act-key { background: linear-gradient(135deg,#00ccff,#0088cc); box-shadow: 0 0 8px rgba(0,200,255,0.5); }
.stellar-ui .sim-phone {
  background: var(--cbg);
  border: 1px solid var(--cbr);
  border-radius: 10px;
  margin: var(--sm) 0;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.stellar-ui .sim-header {
  background: linear-gradient(90deg, rgba(0,240,255,0.9), rgba(255,0,255,0.9));
  color: #fff;
  padding: var(--sm) var(--md);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  letter-spacing: 1px;
}
.stellar-ui .sim-msg-box {
  padding: var(--xs) var(--md);
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}
.stellar-ui .sim-self { align-items: flex-end; }
.stellar-ui .sim-name { font-size: 11px; color: var(--ctd); font-weight: 600; }
.stellar-ui .sim-bubble {
  background: var(--cbgl);
  padding: 6px var(--sm);
  border-radius: 10px;
  max-width: 82%;
  word-wrap: break-word;
  font-size: 14px;
  border: 1px solid var(--cbr);
  line-height: 1.5;
}
.stellar-ui .sim-self .sim-bubble {
  background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(255,0,255,0.15));
  border-color: var(--cp);
}
.stellar-ui .sim-forum-post { padding: var(--md); }
.stellar-ui .sim-forum-title { font-weight: 700; color: var(--cp); margin-bottom: var(--xs); font-size: 15px; }
.stellar-ui .sim-forum-info { font-size: 11px; color: var(--ctd); margin-bottom: var(--sm); }
.stellar-ui .memory-panel table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sm) var(--md);
  font-size: 13px;
  width: calc(100% - 2 * var(--md));
}
.stellar-ui .memory-panel th {
  background: rgba(0,240,255,0.1);
  color: var(--cp);
  padding: var(--xs) var(--sm);
  text-align: left;
  border-bottom: 2px solid var(--cp);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.stellar-ui .memory-panel td {
  padding: var(--xs) var(--sm);
  border-bottom: 1px solid var(--cbr);
  color: var(--ct);
  vertical-align: top;
  font-size: 13px;
}
.stellar-ui .memory-panel tr:hover td { background: var(--cbgl); }
.stellar-ui .memory-panel blockquote {
  border-left: 3px solid var(--ca);
  margin: var(--sm) var(--md);
  padding: var(--xs) var(--sm);
  color: var(--ctd);
  font-size: 13px;
  background: rgba(0,255,136,0.05);
  border-radius: 0 4px 4px 0;
}
.ai-chat-bubble-ai,
.ai-chat-log-item-content,
.ai-chat-log-item-content .markdown-body,
[class*="chat-item"] [class*="content"],
[class*="message-content"],
[class*="ai-response"] {
  background: rgba(8, 8, 20, 0.96) !important;
  border-radius: 10px !important;
}
@media (prefers-color-scheme: light) {
  .ai-chat-bubble-ai,
  .ai-chat-log-item-content,
  .ai-chat-log-item-content .markdown-body,
  [class*="chat-item"] [class*="content"],
  [class*="message-content"],
  [class*="ai-response"] {
    background: rgba(246, 247, 255, 0.97) !important;
  }
}
[class*="toolbar"],
[class*="action-bar"],
[class*="bottom-bar"],
[class*="chat-footer"],
[class*="input-footer"] {
  background: rgba(10,10,28,0.97) !important;
  border-top: 1px solid rgba(0,240,255,0.2) !important;
}
@media (prefers-color-scheme: light) {
  [class*="toolbar"],
  [class*="action-bar"],
  [class*="bottom-bar"],
  [class*="chat-footer"],
  [class*="input-footer"] {
    background: rgba(240,242,255,0.97) !important;
    border-top: 1px solid rgba(0,150,220,0.2) !important;
  }
}
[class*="toolbar"] button,
[class*="action-bar"] button,
[class*="bottom-bar"] button,
[class*="chat-footer"] button,
[class*="quick-reply"],
[class*="shortcut"] {
  background: rgba(0,240,255,0.1) !important;
  border: 1px solid rgba(0,240,255,0.3) !important;
  color: var(--cp) !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  font-size: 13px !important;
}
[class*="toolbar"] button:hover,
[class*="action-bar"] button:hover,
[class*="quick-reply"]:hover,
[class*="shortcut"]:hover {
  background: rgba(0,240,255,0.2) !important;
  border-color: var(--cp) !important;
  box-shadow: 0 0 10px rgba(0,240,255,0.3) !important;
}
[class*="send-btn"],
[class*="submit-btn"] {
  background: linear-gradient(135deg, var(--cp), var(--ca)) !important;
  color: #000 !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: 0 0 15px rgba(0,240,255,0.4) !important;
}
[class*="send-btn"]:hover,
[class*="submit-btn"]:hover {
  box-shadow: 0 0 22px rgba(0,240,255,0.6) !important;
  transform: scale(1.03) !important;
}
[class*="chat-input"],
[class*="input-box"],
[class*="textarea"] {
  background: rgba(0,0,0,0.5) !important;
  border: 1px solid rgba(0,240,255,0.25) !important;
  color: var(--ct) !important;
  border-radius: 8px !important;
  caret-color: var(--cp) !important;
}
[class*="chat-input"]:focus,
[class*="input-box"]:focus,
[class*="textarea"]:focus {
  border-color: var(--cp) !important;
  box-shadow: 0 0 12px rgba(0,240,255,0.3) !important;
  outline: none !important;
}
[class*="comment"],
[class*="discuss"],
[class*="reply-area"] {
  background: rgba(12,12,30,0.95) !important;
  border-top: 1px solid rgba(0,240,255,0.2) !important;
}
[class*="like-btn"],
[class*="collect-btn"],
[class*="share-btn"],
[class*="back-top"] {
  background: rgba(0,240,255,0.1) !important;
  border: 1px solid rgba(0,240,255,0.25) !important;
  color: var(--cp) !important;
  border-radius: 20px !important;
  transition: all 0.2s ease !important;
}
[class*="like-btn"]:hover,
[class*="collect-btn"]:hover,
[class*="share-btn"]:hover,
[class*="back-top"]:hover {
  background: rgba(0,240,255,0.2) !important;
  box-shadow: 0 0 12px rgba(0,240,255,0.35) !important;
}
[class*="mod-btn"],
[class*="plugin-btn"],
[class*="mod-item"] {
  background: linear-gradient(135deg, rgba(255,0,255,0.1), rgba(0,240,255,0.1)) !important;
  border: 1px solid rgba(255,0,255,0.35) !important;
  color: var(--cs) !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}
[class*="mod-btn"]:hover,
[class*="plugin-btn"]:hover,
[class*="mod-item"]:hover {
  background: linear-gradient(135deg, rgba(255,0,255,0.2), rgba(0,240,255,0.15)) !important;
  box-shadow: 0 0 14px rgba(255,0,255,0.35) !important;
}
@media (max-width: 768px) {
  .stellar-ui {
    font-size: 14px;
    --xs: 4px; --sm: 7px; --md: 11px; --lg: 15px;
  }
  .stellar-ui .scene-grid { grid-template-columns: 1fr; }
  .stellar-ui .id-card { padding: var(--sm); }
  .stellar-ui .id-name { font-size: 16px; }
  .stellar-ui .rev-main { padding: var(--md) var(--sm); }
  .stellar-ui .sub-title { font-size: 14px; }
  .stellar-ui t { font-size: 13px; }
  .stellar-ui .action-btn:hover { transform: translateX(3px); }
  .stellar-ui .memory-panel table { margin: var(--xs) var(--sm); width: calc(100% - 2 * var(--sm)); }
}
/* ===== 亮暗修复补丁 v5（追加到原CSS最末尾） ===== */

/* 1. 对话文字 */
.stellar-ui .char-dialogue {
  color: #7ab8d0;
  text-shadow: none;
}

/* 2. 生命/能量状态标签 */
.stellar-ui .dao-label {
  color: #5fd8ff;
  text-shadow: 0 0 4px rgba(0,180,255,0.35);
}
.stellar-ui .dao-num {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,1);
}

/* 3. 信息简讯 / 未来模拟系统：用后代选择器全覆盖，
      解决"有的亮有的没亮"——所有层级文字统一提亮 */
.stellar-ui .comment-panel,
.stellar-ui .ship-panel,
.stellar-ui .comment-panel p,
.stellar-ui .ship-panel p,
.stellar-ui .comment-panel li,
.stellar-ui .ship-panel li,
.stellar-ui .comment-panel div,
.stellar-ui .ship-panel div,
.stellar-ui .comment-panel span,
.stellar-ui .ship-panel span,
.stellar-ui .comment-panel strong,
.stellar-ui .ship-panel strong,
.stellar-ui .comment-panel em,
.stellar-ui .ship-panel em {
  color: #e6e6ff;
}

/* 这两个面板内的标题/键名/小标题——保留各自语义色但确保可读 */
.stellar-ui .comment-panel .sub-title,
.stellar-ui .ship-panel .sub-title {
  color: #ffffff;
}
.stellar-ui .comment-panel t,
.stellar-ui .ship-panel t {
  color: #ffe89a;
}
.stellar-ui .comment-panel .scene-key,
.stellar-ui .ship-panel .scene-key,
.stellar-ui .comment-panel .pf-key,
.stellar-ui .ship-panel .pf-key,
.stellar-ui .comment-panel .sim-name,
.stellar-ui .ship-panel .sim-name,
.stellar-ui .comment-panel .sim-forum-info,
.stellar-ui .ship-panel .sim-forum-info {
  color: #b0b0e0;
}

/* 4. D级 rank：纯色，无荧光，亮暗均可读 */
.stellar-ui .r-d {
  color: #8888aa;
  text-shadow: none;
  -webkit-text-fill-color: #8888aa;
}

/* 5. E/F级在暗面板内提亮（这两个面板内才覆盖，rank颜色优先级高于上面的通用提亮） */
.stellar-ui .comment-panel .r-e,
.stellar-ui .ship-panel .r-e { color: #b4b4c8; -webkit-text-fill-color: #b4b4c8; }
.stellar-ui .comment-panel .r-f,
.stellar-ui .ship-panel .r-f { color: #9696ac; -webkit-text-fill-color: #9696ac; }
.stellar-ui .comment-panel .r-d,
.stellar-ui .ship-panel .r-d { color: #c0c0dd; -webkit-text-fill-color: #c0c0dd; }