:root {
  --bg: #0b0f14;
  --sidebar: #10161d;
  --panel: #151d26;
  --panel-2: #1a2430;
  --line: #263443;
  --line-bright: #35485c;
  --text: #edf4fb;
  --muted: #8ea0b4;
  --accent: #38bdf8;
  --accent-2: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, .13);
  --danger: #f87171;
  --success: #34d399;
  --warning: #fbbf24;
  --radius: 8px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.language-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(21,29,38,.72);
  color: var(--muted);
}

.language-picker-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px; }
.language-picker-icon svg { width: 18px; height: 18px; }
.language-select {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.language-select option { background: var(--panel); color: var(--text); }
.sidebar-language { width: 100%; margin-bottom: 2px; }
.login-language {
  position: absolute;
  top: 14px;
  right: 14px;
  width: auto;
  min-width: 132px;
  z-index: 2;
}
.mobile-bar-actions { display: flex; align-items: center; gap: 8px; }
.language-picker.compact { min-height: 38px; padding: 0 8px; }
.language-picker.compact .language-select { max-width: 92px; }

.settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.settings-toggle input { width: 16px; height: 16px; accent-color: var(--accent); }
.translation-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.translation-settings-form label { display: grid; gap: 7px; min-width: 0; color: var(--muted); }
.translation-prompt-field,
.translation-form-actions,
#translation-settings-error,
.translation-test-result { grid-column: 1 / -1; }
.translation-settings-form textarea { resize: vertical; min-height: 112px; }
.translation-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.translation-test-result {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

button, a, input, textarea, .list-item, .user-card, .panel, .lobby-panel, .message-bubble {
  transition:
    background-color .22s var(--ease-out),
    border-color .22s var(--ease-out),
    color .22s var(--ease-out),
    box-shadow .22s var(--ease-out),
    transform .22s var(--ease-out),
    opacity .22s var(--ease-out);
}

button:active, a:active, .list-item:active { transform: scale(.975); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(56,189,248,.14), transparent 28%),
    radial-gradient(circle at 80% 90%, rgba(45,212,191,.09), transparent 24%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.login-shell::before,
.login-shell::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .28;
  pointer-events: none;
  animation: ambient-drift 12s ease-in-out infinite alternate;
}
.login-shell::before { background: #0ea5e9; top: -160px; left: -120px; }
.login-shell::after { background: #14b8a6; right: -150px; bottom: -180px; animation-delay: -6s; }

@keyframes ambient-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(38px, 26px, 0) scale(1.16); }
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: rgba(21, 29, 38, .86);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
  animation: panel-enter .55s var(--ease-out) both;
}
@keyframes panel-enter {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .18em;
  font-size: 12px;
}
.brand-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(56,189,248,.55);
  animation: brand-pulse 2.1s ease-out infinite;
}
@keyframes brand-pulse {
  0% { box-shadow: 0 0 0 0 rgba(56,189,248,.55); }
  70% { box-shadow: 0 0 0 9px rgba(56,189,248,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
}
.login-card h1 { margin: 14px 0 4px; font-size: 26px; }
.login-card p { color: var(--muted); margin: 0 0 24px; }
.login-card label { display: grid; gap: 7px; margin-bottom: 15px; color: var(--muted); }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 4px 0 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.auth-tab {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
}
.auth-tab.active { color: #041018; background: var(--accent); font-weight: 700; }
.social-login-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.social-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--panel-2);
  font-size: 12px;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s var(--ease-out), background .2s ease;
}
.social-login-button:hover {
  border-color: var(--line-bright);
  background: #202c39;
  transform: translateY(-1px);
}
.social-login-button.qq .social-login-mark { color: #7dd3fc; }
.social-login-button.wx .social-login-mark { color: #6ee7b7; }
.social-login-button.alipay .social-login-mark { color: #93c5fd; }
.social-login-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
}
.social-login-mark svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}
.social-login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 16px;
  color: var(--muted);
  font-size: 11px;
}
.social-login-divider::before,
.social-login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.auth-switch { margin-top: 20px; color: var(--muted); text-align: center; }
.auth-switch button { border: 0; background: transparent; color: var(--accent); padding: 4px; }
.auth-switch button:hover { color: var(--text); }
.auth-separator { margin: 0 4px; color: var(--line-bright); }
.success-text { color: #7ee787; }
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 0 12px;
}
.auth-back:hover { color: var(--accent); }
.auth-back .motion-icon { width: 17px; height: 17px; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-submit:disabled {
  cursor: not-allowed;
  background: #34414f;
  color: #8b9aab;
  box-shadow: none;
  opacity: .78;
}
.ip-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-top: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(13,19,25,.72);
  font-size: 12px;
  line-height: 1.45;
}
.ip-check-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
}
.ip-check.success {
  color: var(--success);
  border-color: rgba(52,211,153,.3);
  background: rgba(52,211,153,.08);
}
.ip-check.success .ip-check-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52,211,153,.12);
}
.ip-check.danger {
  color: var(--danger);
  border-color: rgba(248,113,113,.32);
  background: rgba(248,113,113,.08);
}
.ip-check.danger .ip-check-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(248,113,113,.12);
}
.auth-submit:disabled .motion-icon { opacity: .7; }
.turnstile-box { margin-top: 14px; }
.turnstile-slot { min-height: 65px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.turnstile-status { color: var(--muted); font-size: 12px; text-align: center; }
.turnstile-status.hidden { display: none; }
.turnstile-status.retryable { cursor: pointer; color: var(--accent); text-decoration: underline; }
.code-shell { position: relative; }
.code-shell input { padding-right: 112px; }
.code-button {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--accent);
  padding: 7px 9px;
  font-size: 12px;
  white-space: nowrap;
}
.code-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.code-button:disabled { opacity: .65; cursor: wait; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0d1319;
  color: var(--text);
  border-radius: 7px;
  padding: 11px 12px;
  outline: none;
}
input:hover, textarea:hover { border-color: var(--line-bright); }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,189,248,.1); }
.input-shell {
  position: relative;
  display: block;
}
.input-shell input { padding-left: 40px; }
.field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}
.input-shell:focus-within .field-icon { color: var(--accent); animation: field-pop .35s var(--ease-spring); }
@keyframes field-pop {
  0% { transform: translateY(-50%) scale(.8); }
  70% { transform: translateY(-50%) scale(1.16); }
  100% { transform: translateY(-50%) scale(1); }
}
.primary, .secondary, .ghost, .icon-button {
  border: 0;
  border-radius: 7px;
  padding: 10px 14px;
  color: #fff;
}
.primary { background: var(--accent-2); }
.primary:hover { background: var(--accent); color: #041018; box-shadow: 0 8px 24px rgba(56,189,248,.22); transform: translateY(-1px); }
.secondary { background: var(--panel-2); border: 1px solid var(--line); }
.secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.ghost { background: transparent; color: var(--muted); }
.ghost:hover { color: var(--text); background: var(--panel-2); }
.icon-button { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; background: var(--panel-2); color: var(--muted); flex: 0 0 auto; }
.icon-button:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px) rotate(2deg); }
.error-text { min-height: 20px; color: var(--danger); margin-top: 12px; }

.motion-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.motion-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  line-height: 0;
}
.motion-icon > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .28s var(--ease-spring), opacity .2s ease;
}
.motion-icon .icon-roof,
.motion-icon .icon-house,
.motion-icon .icon-door,
.motion-icon .icon-user-primary,
.motion-icon .icon-user-secondary,
.motion-icon .icon-user-avatar,
.motion-icon .icon-plus,
.motion-icon .icon-bracket-left,
.motion-icon .icon-bracket-right,
.motion-icon .icon-door,
.motion-icon .icon-arrow,
.motion-icon .icon-arrow-tip,
.motion-icon .icon-search-group,
.motion-icon .icon-send-plane,
.motion-icon .icon-menu-lines,
.motion-icon .icon-close-a,
.motion-icon .icon-close-b,
.motion-icon .icon-external-box,
.motion-icon .icon-lock-group,
.motion-icon .icon-mute-wave,
.motion-icon .icon-ban-slash,
.motion-icon .icon-dashboard-group,
.motion-icon .icon-bubble {
  transform-box: fill-box;
  transform-origin: center;
}
.motion-icon .icon-roof,
.motion-icon .icon-bubble,
.motion-icon .icon-draw,
.motion-icon .icon-check {
  transition: transform .35s var(--ease-spring), opacity .25s ease, stroke-dashoffset .5s ease;
}
.motion-icon .icon-draw,
.motion-icon .icon-check {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.motion-button:hover .motion-icon > svg,
.motion-icon-button:hover .motion-icon > svg,
.nav-item:hover .motion-icon > svg,
.list-item:hover .motion-icon > svg {
  transform: translateY(-1px) rotate(-2deg) scale(1.06);
}
.motion-button:hover .icon-send-plane,
.motion-icon-button:hover .icon-send-plane {
  animation: send-flight .64s var(--ease-out);
}
@keyframes send-flight {
  0% { transform: translate(0, 0); opacity: 1; }
  45% { transform: translate(17px, -17px); opacity: 0; }
  46% { transform: translate(-17px, 17px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
.nav-item:hover .icon-roof,
.motion-button:hover .icon-roof,
.list-item:hover .icon-roof { transform: translateY(-2px); }
.nav-item:hover .icon-door,
.list-item:hover .icon-door { transform: scaleY(1.12); transform-origin: center bottom; }
.nav-item:hover .icon-user-primary,
.list-item:hover .icon-user-primary,
.motion-button:hover .icon-user-avatar { transform: translateY(-2px) scale(1.06); }
.nav-item:hover .icon-user-secondary { transform: translateX(1px); opacity: .78; }
.nav-item:hover .icon-bracket-left { transform: translateX(-3px); }
.nav-item:hover .icon-bracket-right { transform: translateX(3px); }
.nav-item:hover .icon-search-group { animation: search-sweep .75s var(--ease-out); }
@keyframes search-sweep {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(1px, -2px) rotate(-6deg); }
  55% { transform: translate(-2px, -1px) rotate(6deg); }
  80% { transform: translate(1px, 1px) rotate(-3deg); }
}
.nav-item:hover .icon-dashboard-group { animation: dashboard-shuffle .5s var(--ease-out); }
@keyframes dashboard-shuffle {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: scale(.92) rotate(3deg); }
}
.nav-item:hover .icon-arrow,
.motion-button:hover .icon-arrow { transform: translateX(3px); }
.nav-item:hover .icon-arrow-tip,
.motion-button:hover .icon-arrow-tip { transform: translateX(3px); }
.nav-item:hover .icon-lock-group { transform: rotate(-3deg) scale(1.04); }
.nav-item:hover .icon-menu-lines { transform: scaleX(1.08); }
.nav-item:hover .icon-close-a,
.nav-item:hover .icon-close-b,
.icon-button:hover .icon-close-a,
.icon-button:hover .icon-close-b { animation: close-turn .42s var(--ease-spring); }
@keyframes close-turn {
  0% { transform: rotate(0); }
  100% { transform: rotate(90deg); }
}
.nav-item:hover .icon-check,
.motion-button:hover .icon-check { stroke-dashoffset: 1; animation: draw-check .5s ease forwards; }
@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}
.nav-item:hover .icon-ban-slash { transform: rotate(-12deg) scale(1.08); }
.nav-item:hover .icon-mute-wave { opacity: .4; transform: translateX(2px); }
.live-dot {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52,211,153,.55);
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); }
  70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
  background: linear-gradient(180deg, #111921 0%, var(--sidebar) 55%, #0e141a 100%);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 25;
}
.owner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 8px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 8px;
  transition: background .2s ease, transform .2s var(--ease-out);
}
.owner:hover, .owner:focus-visible, .owner.active {
  background: rgba(26,36,48,.72);
  transform: translateX(2px);
  outline: none;
}
.owner strong { display: block; }
.owner span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e5a7a, #1d3f57);
  display: grid;
  place-items: center;
  color: #dff6ff;
  font-weight: 700;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}
.avatar.small { width: 34px; height: 34px; font-size: 12px; }
.nav-list { display: grid; gap: 6px; }
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 11px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.nav-item::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .25s var(--ease-out);
}
.nav-item:hover, .nav-item.active { color: var(--text); background: rgba(26,36,48,.75); border-color: var(--line); transform: translateX(2px); }
.nav-item.active { box-shadow: inset 0 0 0 1px rgba(56,189,248,.08), 0 8px 22px rgba(0,0,0,.16); }
.nav-item.active::before { opacity: 1; transform: translateX(0); }
.nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(26,36,48,.85);
  color: var(--accent);
  font-size: 12px;
  transition: background .22s ease, box-shadow .22s ease, transform .22s var(--ease-spring);
}
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(56,189,248,.13);
  transform: scale(1.04);
}
.nav-label { white-space: nowrap; }
.sidebar-bottom {
  display: grid;
  gap: 6px;
  margin-top: auto;
}
.sidebar-bottom .nav-item { min-height: 44px; }
.logout { color: var(--muted); }
.logout:hover { color: var(--text); }
.workspace { min-width: 0; padding: 28px; animation: workspace-enter .45s var(--ease-out) both; }
@keyframes workspace-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-bar { display: none; }
.mobile-scrim { display: none; }
.view { display: none; }
.view.active { display: block; animation: view-enter .38s var(--ease-out) both; }
@keyframes view-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.view-head h2 { margin: 0; font-size: 24px; }
.view-head p { margin: 4px 0 0; color: var(--muted); }
.search { margin-bottom: 12px; }
.search.compact { width: 260px; margin: 0; }
.panel, .conversation-panel, .message-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel:hover, .conversation-panel:hover, .message-panel:hover { border-color: var(--line-bright); }
.chat-layout {
  min-height: calc(100vh - 145px);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
}
.conversation-panel { padding: 12px; overflow: auto; }
.message-panel { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.list { display: grid; gap: 5px; }
.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  text-align: left;
  width: 100%;
}
.list-item:hover, .list-item.active { background: var(--panel-2); border-color: var(--line); }
.list-item-main { min-width: 0; flex: 1; }
.list-item strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.list-item small .translation-text { display: inline; white-space: nowrap; }
.list-item small .translation-original {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: inherit;
  color: var(--muted);
  opacity: .72;
}
.list-item small .translation-original::before { content: ' · '; }
.list-item small .translation-original-label { display: none; }
.list-actions { display: flex; gap: 5px; flex: 0 0 auto; }
.mini-button { padding: 6px 9px; font-size: 12px; border-radius: 6px; }
.accept { background: rgba(52,211,153,.15); color: var(--success); border: 1px solid rgba(52,211,153,.3); }
.reject { background: rgba(248,113,113,.12); color: var(--danger); border: 1px solid rgba(248,113,113,.3); }
.empty-state { margin: auto; color: var(--muted); }
.message-active { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.message-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.message-head span { display: block; color: var(--muted); font-size: 12px; }
.message-head strong { display: inline-flex; align-items: center; }
.message-avatar-link {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s ease;
}
.message-avatar-link:hover, .message-avatar-link:focus-visible {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 0 0 2px rgba(56,189,248,.28);
  outline: none;
}
.message-user-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}
.message-user-link:hover, .message-user-link:focus-visible { color: var(--accent); outline: none; }
.message-list { flex: 1; min-height: 0; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.message-row { display: flex; flex-direction: column; align-items: flex-start; max-width: 72%; }
.message-row.mine { align-self: flex-end; align-items: flex-end; }
.message-bubble { padding: 10px 12px; border-radius: 8px; background: var(--panel-2); white-space: pre-wrap; word-break: break-word; }
.message-row.mine .message-bubble { background: #075985; }
.message-bubble > [data-translate-body] { white-space: pre-wrap; }
.translation-text { display: block; white-space: pre-wrap; word-break: break-word; }
.translation-original {
  display: block;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed rgba(148,163,184,.35);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(203,213,225,.72);
}
.translation-original-label {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(148,163,184,.16);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 1px;
  white-space: nowrap;
}
.translation-original-text { white-space: pre-wrap; }
.message-row.mine .translation-original { border-top-color: rgba(226,232,240,.32); color: rgba(226,232,240,.78); }
.message-row.mine .translation-original-label { background: rgba(226,232,240,.18); }
.message-row { animation: bubble-in .3s var(--ease-out) both; }
.message-row.mine { animation-name: bubble-in-mine; }
@keyframes bubble-in {
  from { opacity: 0; transform: translateX(-8px) translateY(4px); }
  to { opacity: 1; transform: translateX(0) translateY(0); }
}
@keyframes bubble-in-mine {
  from { opacity: 0; transform: translateX(8px) translateY(4px); }
  to { opacity: 1; transform: translateX(0) translateY(0); }
}
.message-time { color: var(--muted); font-size: 11px; margin-top: 4px; }
.message-deleted {
  color: rgba(148, 163, 184, .72);
  font-size: 12px;
  font-style: italic;
}
.message-withdraw-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}
.message-withdraw-button .motion-icon { width: 13px; height: 13px; }
.message-withdraw-button:hover,
.message-withdraw-button:focus-visible {
  border-color: rgba(248, 113, 113, .34);
  background: rgba(248, 113, 113, .08);
  color: #fca5a5;
  outline: none;
}
.message-withdraw-button:disabled { opacity: .6; cursor: wait; }
.identity-badge {
  display: inline-flex;
  align-items: center;
  margin-right: 5px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.55;
  vertical-align: 1px;
  white-space: nowrap;
}
.identity-badge.admin { color: #fecaca; background: rgba(220,38,38,.24); border: 1px solid rgba(248,113,113,.34); }
.identity-badge.manager { color: #bbf7d0; background: rgba(22,163,74,.22); border: 1px solid rgba(74,222,128,.32); }
.message-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.message-form textarea { resize: none; max-height: 120px; min-height: 42px; }
.message-form button { align-self: flex-end; height: 42px; }
.lobby-online { padding: 5px 9px; border: 1px solid rgba(52,211,153,.28); border-radius: 999px; color: var(--success); background: rgba(52,211,153,.08); font-size: 12px; white-space: nowrap; }
.lobby-panel { min-height: calc(100vh - 145px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.lobby-message-list { padding: 22px; }
.lobby-message-list .empty-state { margin: auto; }
.lobby-message { display: flex; align-items: flex-start; gap: 11px; width: min(760px,100%); }
.lobby-message.mine { align-self: flex-end; flex-direction: row-reverse; }
.lobby-message-content { min-width: 0; }
.lobby-message-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.lobby-message.mine .lobby-message-meta { justify-content: flex-end; }
.lobby-message-meta strong { color: var(--text); font-size: 12px; }
.lobby-message-bubble { padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); white-space: pre-wrap; word-break: break-word; }
.lobby-message-bubble > [data-translate-body] { white-space: pre-wrap; }
.lobby-message.mine .lobby-message-bubble { border-color: rgba(56,189,248,.3); background: #075985; }
.lobby-message { animation: bubble-in .32s var(--ease-out) both; }
.lobby-message.mine { animation-name: bubble-in-mine; }
.friend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.friend-grid .panel:last-child { grid-column: 1 / -1; }
.panel { padding: 16px; }
.panel h3 { margin: 0 0 13px; font-size: 15px; }
.count { color: var(--accent); font-size: 12px; margin-left: 5px; }
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.user-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.user-card .list-item-main { min-width: 0; }
.user-card button { flex: 0 0 auto; }
.admin-shell {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.admin-subnav {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20,28,37,.98), rgba(15,22,29,.98));
}
.admin-subnav-item {
  width: 100%;
  min-height: 62px;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}
.admin-subnav-item:hover,
.admin-subnav-item.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(26,36,48,.78);
  transform: translateX(2px);
}
.admin-subnav-item.active {
  box-shadow: inset 3px 0 0 var(--accent), 0 8px 22px rgba(0,0,0,.16);
}
.admin-subnav-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent);
  background: rgba(26,36,48,.9);
  transition: transform .22s var(--ease-spring), background .22s ease;
}
.admin-subnav-item:hover .admin-subnav-icon,
.admin-subnav-item.active .admin-subnav-icon {
  background: var(--accent-soft);
  transform: scale(1.05);
}
.admin-subnav-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.admin-subnav-copy strong {
  font-size: 13px;
  font-weight: 650;
}
.admin-subnav-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.admin-content {
  min-width: 0;
}
.admin-tab-panel {
  display: none;
}
.admin-tab-panel.active {
  display: block;
  animation: view-enter .3s var(--ease-out) both;
}
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.admin-panel-head > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.admin-panel-head strong {
  font-size: 15px;
}
.admin-panel-head span {
  color: var(--muted);
  font-size: 11px;
}
.admin-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; min-height: calc(100vh - 145px); }
.admin-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; overflow: auto; }
.admin-users-panel { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.admin-detail { padding: 20px; }
@media (min-width: 981px) {
  .admin-layout {
    height: calc(100vh - 190px);
    min-height: 520px;
  }
  .admin-layout > .admin-panel {
    height: 100%;
    max-height: 100%;
  }
}
.admin-user-row { align-items: flex-start; }
.user-id { color: var(--muted); font-size: 12px; font-weight: 400; }
.status-badge { display: inline-block; padding: 3px 7px; border-radius: 999px; font-size: 11px; white-space: nowrap; flex: 0 0 auto; }
.status-badge.success { color: var(--success); background: rgba(52,211,153,.12); }
.status-badge.warning { color: #fbbf24; background: rgba(251,191,36,.12); }
.status-badge.danger { color: var(--danger); background: rgba(248,113,113,.12); }
.admin-user-head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.admin-user-head h3 { margin: 0; }
.admin-user-head p { margin: 4px 0; color: var(--muted); }
.admin-status-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.admin-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 18px 0; }
.admin-meta > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 10px; min-width: 0; }
.admin-meta span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.admin-meta strong { display: block; overflow-wrap: anywhere; }
.admin-actions { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; display: grid; gap: 10px; }
.admin-actions label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.admin-actions select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  background: var(--panel-2);
  color: var(--text);
}
.admin-save-group { width: 100%; }
.admin-button-row { display: flex; gap: 9px; }
.danger-button, .warning-button { border: 0; border-radius: 7px; padding: 10px 14px; color: #fff; }
.danger-button { background: #b91c1c; }
.danger-button:hover { background: #dc2626; }
.warning-button { background: #b45309; }
.warning-button:hover { background: #d97706; }
.admin-ip-section { padding-top: 18px; }
.admin-ip-section h4 { margin: 0 0 10px; }
.admin-registration-strip {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.admin-ip-limit-form {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.admin-ip-limit-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.admin-inline-input {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.admin-inline-input input {
  width: 88px;
  min-height: 36px;
  padding: 7px 9px;
}
.admin-ip-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.admin-ip-record-head > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.admin-ip-record-head strong { font-size: 14px; }
.admin-ip-record-head span { color: var(--muted); font-size: 11px; }
.admin-registration-panel {
  max-height: min(48vh, 520px);
  overflow: auto;
}
.registration-ip-list { display: grid; gap: 8px; }
.registration-ip-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(150px, auto) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
}
.registration-ip-main {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.registration-ip-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.registration-ip-row code {
  min-width: 0;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.registration-ip-row time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.registration-ip-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ip-list { display: grid; gap: 7px; max-height: 260px; overflow: auto; }
.ip-row { background: var(--panel-2); border-radius: 7px; padding: 9px 11px; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; }
.ip-row span { color: var(--muted); font-size: 11px; }
.ip-row small { grid-column: 1 / -1; color: var(--muted); overflow-wrap: anywhere; }
.ip-list .empty-state { margin: 10px 0; }
.platform-open { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform-grid .panel p { margin: 11px 0 0; color: var(--muted); }
.platform-grid code { display: block; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #0d1319; color: var(--accent); overflow-wrap: anywhere; }
.station-manager {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.station-tabs {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20,28,37,.98), rgba(15,22,29,.98));
}
.station-tab {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}
.station-tab:hover,
.station-tab.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(26,36,48,.78);
  transform: translateX(2px);
}
.station-tab.active { box-shadow: inset 3px 0 0 var(--accent), 0 8px 22px rgba(0,0,0,.16); }
.station-tab-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--accent);
  background: rgba(26,36,48,.9);
  transition: transform .22s var(--ease-spring), background .22s ease;
}
.station-tab:hover .station-tab-icon,
.station-tab.active .station-tab-icon {
  background: var(--accent-soft);
  transform: scale(1.05);
}
.station-tab > span:last-child { display: grid; gap: 2px; }
.station-tab strong { font-size: 13px; }
.station-tab small { color: var(--muted); font-size: 10px; }
.station-panel {
  display: none;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.station-panel.active { display: block; animation: view-enter .3s var(--ease-out) both; }
.station-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.station-kicker { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.station-panel h3 { margin: 7px 0 5px; font-size: 20px; }
.station-panel p { margin: 0; color: var(--muted); line-height: 1.6; }
.station-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(251,191,36,.25);
  border-radius: 999px;
  background: rgba(251,191,36,.1);
  color: #fbbf24;
  font-size: 11px;
}
.station-status.online {
  border-color: rgba(52,211,153,.3);
  background: rgba(52,211,153,.12);
  color: #34d399;
}
.station-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
}
.station-action-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  opacity: .72;
}
.station-action-button {
  width: 100%;
  color: inherit;
  text-align: left;
  opacity: 1;
}
.station-action-button:hover {
  border-color: var(--line-bright);
  background: #202c39;
  transform: translateY(-1px);
}
.station-action-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(26,36,48,.9);
  color: var(--accent);
}
.station-action-card div { min-width: 0; display: grid; gap: 5px; }
.station-action-card strong { font-size: 14px; }
.station-action-card p { font-size: 12px; }
.station-action-button div strong { color: var(--text); }
.station-account-picker {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11,15,20,.34);
}
.station-search-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}
.station-search-row .search { min-width: 0; }
.station-search-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.station-search-results {
  display: grid;
  gap: 8px;
}
.station-search-hint {
  padding: 10px 11px;
  border-radius: 7px;
  color: var(--muted);
  background: rgba(11,15,20,.48);
  font-size: 12px;
}
.station-search-result {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.station-search-result:hover {
  border-color: var(--line-bright);
  background: #202c39;
}
.station-search-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.station-search-result-head span {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(56,189,248,.1);
  color: var(--accent);
  font-size: 10px;
}
.station-search-result-fields,
.station-selected-content,
.station-selected-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.station-search-result-fields div,
.station-selected-content div,
.station-selected-summary div {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 6px;
  background: rgba(11,15,20,.48);
}
.station-search-result-fields span,
.station-selected-content span,
.station-selected-summary span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.station-search-result-fields strong,
.station-selected-content strong,
.station-selected-summary strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.station-selected-account {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(52,211,153,.3);
  border-radius: 8px;
  background: rgba(52,211,153,.07);
}
.station-selected-content { flex: 1; min-width: 0; }
.station-selected-summary {
  grid-template-columns: 1fr;
  padding: 10px;
  border: 1px solid rgba(52,211,153,.25);
  border-radius: 7px;
  background: rgba(52,211,153,.06);
}
.station-selected-summary span { font-size: 10px; }
.station-selected-summary strong { font-size: 13px; }
.station-selected-summary small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.station-execution-notice {
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid rgba(251,191,36,.24);
  border-radius: 7px;
  background: rgba(251,191,36,.08);
  color: #fbbf24;
  font-size: 12px;
  line-height: 1.55;
}
.station-confirmation-list {
  display: grid;
  gap: 10px;
  padding-top: 16px;
}
.station-confirmation-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.station-confirmation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.station-confirmation-head strong {
  display: block;
  font-size: 14px;
}
.station-confirmation-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.station-confirmation-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.station-confirmation-meta div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 7px;
  background: rgba(11,15,20,.48);
}
.station-confirmation-meta span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.station-confirmation-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.station-confirmation-reason {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.station-confirm-state {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}
.station-confirm-state.pending {
  border: 1px solid rgba(251,191,36,.3);
  background: rgba(251,191,36,.1);
  color: var(--warning);
}
.station-confirm-state.confirmed {
  border: 1px solid rgba(52,211,153,.3);
  background: rgba(52,211,153,.1);
  color: var(--success);
}
.station-confirm-state.closed {
  border: 1px solid var(--line-bright);
  background: rgba(142,160,180,.1);
  color: var(--muted);
}
.station-confirm-state.rejected {
  border: 1px solid rgba(248,113,113,.3);
  background: rgba(248,113,113,.1);
  color: var(--danger);
}
.station-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.station-confirm-button { width: fit-content; }
.danger-button {
  border-color: rgba(248,113,113,.45) !important;
  color: #fca5a5 !important;
}
.danger-button:hover {
  border-color: rgba(248,113,113,.8) !important;
  background: rgba(248,113,113,.1) !important;
  color: #fecaca !important;
}
.station-balance-modal-card { width: min(580px, 100%); }
.station-balance-form {
  display: grid;
  gap: 14px;
}
.station-balance-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.station-balance-form textarea { resize: vertical; min-height: 82px; }
.station-balance-form select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text);
}
.station-balance-target {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(11,15,20,.48);
  color: var(--text);
  font-weight: 700;
}
.station-balance-preview {
  padding: 10px 11px;
  border: 1px solid rgba(52,211,153,.2);
  border-radius: 7px;
  background: rgba(52,211,153,.07);
  color: #a7f3d0;
  font-size: 12px;
  line-height: 1.55;
}
.station-balance-preview.invalid {
  border-color: rgba(248,113,113,.38);
  background: rgba(248,113,113,.08);
  color: #fca5a5;
}
.station-balance-warning {
  padding: 10px 11px;
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 7px;
  background: rgba(56,189,248,.07);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.station-balance-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.posts-layout { display: grid; grid-template-columns: minmax(320px, 390px) minmax(0, 1fr); gap: 16px; align-items: start; }
.post-composer { display: grid; gap: 14px; position: sticky; top: 18px; }
.post-composer h3 { margin: 0; }
.post-composer label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.post-composer textarea { resize: vertical; min-height: 190px; line-height: 1.7; }
.post-section-fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.post-section-fieldset legend { padding: 0 5px; color: var(--muted); font-size: 11px; }
.post-section-option { position: relative; cursor: pointer; }
.post-section-option input { position: absolute; opacity: 0; pointer-events: none; }
.post-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--line-bright);
  border-radius: 7px;
  color: var(--muted);
  background: #0d1319;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s var(--ease-out), border-color .2s ease, color .2s ease, background .2s ease;
}
.post-section-option:hover .post-section-badge { transform: translateY(-1px); color: var(--text); }
.post-section-option input:checked + .post-section-badge { color: #041018; }
.post-section-option input:checked + .post-section-badge.public { background: #38bdf8; border-color: #38bdf8; }
.post-section-option input:checked + .post-section-badge.public-new { background: #34d399; border-color: #34d399; }
.post-section-option input:checked + .post-section-badge.lowprice { background: #fbbf24; border-color: #fbbf24; }
.post-section-option input:checked + .post-section-badge.feedback { background: #c084fc; border-color: #c084fc; }
.post-section-option input:focus-visible + .post-section-badge { box-shadow: 0 0 0 3px rgba(56,189,248,.15); }
.post-submit { width: 100%; }
.post-feed-column { min-width: 0; }
.post-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.post-filter {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--panel);
}
.post-filter:hover, .post-filter.active { color: var(--text); border-color: var(--accent); background: var(--panel-2); }
.post-filter.active { color: var(--accent); }
.post-list { display: grid; gap: 12px; }
.post-card { display: grid; gap: 12px; padding: 18px; transition: border-color .2s ease, transform .2s var(--ease-out), box-shadow .2s ease; }
.post-card:hover { border-color: var(--line-bright); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.post-card.pinned { border-color: rgba(251,191,36,.34); box-shadow: inset 3px 0 0 rgba(251,191,36,.7); }
.post-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.post-author { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; border-radius: 8px; }
.post-author:hover .avatar, .post-author:focus-visible .avatar { box-shadow: 0 0 0 2px rgba(56,189,248,.3); }
.post-author:focus-visible { outline: none; }
.post-author-name { display: flex; align-items: center; min-width: 0; }
.post-author-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-author time { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.post-card-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.post-section-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.post-section-list .post-section-badge { width: auto; min-height: 0; padding: 3px 8px; border: 0; font-size: 10px; }
.post-section-list .post-section-badge.public { color: #7dd3fc; background: rgba(56,189,248,.14); }
.post-section-list .post-section-badge.public-new { color: #86efac; background: rgba(52,211,153,.14); }
.post-section-list .post-section-badge.lowprice { color: #fcd34d; background: rgba(251,191,36,.14); }
.post-section-list .post-section-badge.feedback { color: #d8b4fe; background: rgba(192,132,252,.16); }
.post-card h3 { margin: 0; font-size: 18px; line-height: 1.45; overflow-wrap: anywhere; }
.post-body { color: #d7e1ea; white-space: pre-wrap; word-break: break-word; line-height: 1.72; }
/* Text keeps its own node so images never sit inside the translation target. */
.post-body > [data-translate-body],
.post-detail-body > [data-translate-body],
.comment-body > [data-translate-body],
.message-bubble > [data-translate-body],
.lobby-message-bubble > [data-translate-body] { display: block; white-space: pre-wrap; word-break: break-word; }
.post-open-button {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.post-open-button:hover h3, .post-open-button:focus-visible h3 { color: var(--accent); }
.post-open-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.post-comment-count { color: var(--muted); font-size: 12px; }
.pinned-label { display: inline-flex; width: fit-content; margin-right: 7px; padding: 2px 7px; border-radius: 5px; color: #fcd34d; background: rgba(251,191,36,.14); font-size: 10px; vertical-align: 2px; }
.post-pin-button { flex: 0 0 auto; }
.post-detail { display: grid; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.post-detail-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.post-detail-author { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; }
.post-detail-author:hover strong { color: var(--accent); }
.post-detail h3 { margin: 0; font-size: 21px; line-height: 1.45; overflow-wrap: anywhere; }
.post-detail > time { color: var(--muted); font-size: 11px; }
.post-detail-body { color: #d7e1ea; white-space: pre-wrap; word-break: break-word; line-height: 1.75; }
.post-detail-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.post-detail-tools .mini-button { width: auto; }

/* ---------- Attachments: composer previews, in-message images, lightbox ---------- */
.body-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 190px));
  gap: 7px;
  margin-top: 9px;
}
.body-image-button {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b1118;
  cursor: zoom-in;
  overflow: hidden;
}
.body-image-button img { display: block; width: 100%; max-height: 210px; object-fit: cover; }
.body-image-button:hover { border-color: var(--accent); }
.composer-attachment { display: grid; gap: 8px; }
.composer-hint { color: var(--muted); font-size: 11px; }
.attachment-preview { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.attachment-preview-strip { padding: 0 14px 10px; }
.attachment-preview.hidden { display: none; }
.attachment-thumb { position: relative; display: inline-flex; width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #0b1118; }
.attachment-thumb img { width: 100%; height: 100%; object-fit: cover; }
.attachment-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 19px;
  height: 19px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(9,14,20,.82);
  color: #fecaca;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.attachment-remove:hover { background: var(--danger); color: #fff; }
.attachment-status, .attachment-error { font-size: 11px; }
.attachment-status { color: var(--accent); }
.attachment-error { color: var(--danger); }
.icon-button {
  flex: 0 0 auto;
  width: 40px;
  height: 42px;
  min-width: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-button .motion-icon { width: 18px; height: 18px; }
.icon-image-frame, .icon-image-content { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-image-content { fill: none; }
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(4,8,12,.86);
  backdrop-filter: blur(3px);
}
.image-lightbox.hidden { display: none; }
.image-lightbox img { max-width: min(1100px,92vw); max-height: 88vh; border-radius: 9px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: rgba(9,14,20,.8);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.admin-post-form { display: grid; gap: 12px; }
.admin-post-form label { display: grid; gap: 6px; }
.admin-post-form label > span { color: var(--muted); font-size: 12px; }
.comment-form { display: flex; gap: 9px; margin-top: 15px; align-items: flex-end; }
.comment-form textarea { flex: 1 1 180px; min-width: 0; }
.comment-form textarea { resize: vertical; min-height: 78px; }
.comment-form .motion-button { min-height: 43px; }
.comment-list { display: grid; gap: 8px; margin-top: 14px; max-height: 38vh; overflow: auto; }
.comment-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.comment-content { min-width: 0; flex: 1; }
.comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 12px; }
.comment-meta time { margin-left: auto; color: var(--muted); font-size: 10px; }
.comment-body { margin-top: 5px; color: #d7e1ea; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.post-list > .empty-state { margin: 0; padding: 28px; }
.profile-layout { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-identity { display: flex; flex-direction: column; align-items: center; text-align: center; }
.profile-avatar { width: 112px; height: 112px; font-size: 34px; box-shadow: 0 14px 36px rgba(0,0,0,.24); }
.profile-identity h3 { margin: 16px 0 3px; font-size: 21px; }
.profile-identity > p { margin: 0; color: var(--muted); }
.profile-upload-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; cursor: pointer; }
.profile-upload-button .motion-icon { width: 17px; height: 17px; }
.profile-upload-hint { margin-top: 9px !important; font-size: 11px; }
.profile-self-button { margin-top: 20px; }
.profile-info h3 { margin: 0 0 16px; }
.profile-username-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.profile-username-form label { min-width: 0; }
.profile-username-form .motion-button { min-height: 43px; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile-fields > div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); }
.profile-fields span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.profile-fields strong { display: block; overflow-wrap: anywhere; }
.profile-stations { grid-column: 1 / -1; }
.profile-stations-head h3 { margin: 0 0 4px; }
.profile-stations-head p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-station-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.profile-station-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.profile-station-card-head { display: flex; align-items: center; gap: 9px; }
.profile-station-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 7px;
  color: var(--accent);
  background: var(--accent-soft);
}
.profile-station-mark .motion-icon { width: 17px; height: 17px; }
.profile-station-card-head strong { display: block; }
.profile-station-card-head small { color: #7ee787; }
.profile-station-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}
.profile-station-fields > div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.025);
}
.profile-station-fields span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.profile-station-fields strong { display: block; overflow-wrap: anywhere; font-size: 12px; }
.profile-bindings { grid-column: 1 / -1; }
.profile-bindings-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.profile-bindings-head h3 { margin: 0 0 4px; }
.profile-bindings-head p { margin: 0; color: var(--muted); font-size: 12px; }
.binding-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.binding-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.binding-card-head { display: flex; align-items: center; gap: 9px; }
.binding-card-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 7px;
  background: rgba(255,255,255,.06);
}
.binding-card-icon svg { width: 17px; height: 17px; fill: currentColor; }
.binding-card.qq .binding-card-icon { color: #7dd3fc; }
.binding-card.wx .binding-card-icon { color: #6ee7b7; }
.binding-card.alipay .binding-card-icon { color: #93c5fd; }
.binding-card.email .binding-card-icon { color: #fbbf24; }
.binding-card strong { display: block; font-size: 13px; }
.binding-card-status { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.binding-card-status.bound { color: #7ee787; }
.binding-card button { width: 100%; margin-top: auto; }
.binding-card .secondary { margin-top: 12px; }
.binding-email-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.binding-email-form label { min-width: 0; }
.binding-email-form .turnstile-box, .binding-email-form .error-text, .binding-email-actions { grid-column: 1 / -1; }
.binding-email-actions { display: flex; justify-content: flex-end; gap: 9px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: grid; place-items: center; padding: 20px; z-index: 20; }
.modal-card { width: min(520px, 100%); max-height: 78vh; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow: auto; }
.modal-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-card h3 { margin: 0; }
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 7px;
  padding: 11px 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 14px 38px rgba(0,0,0,.3);
  animation: toast-in .35s var(--ease-spring) both;
}
.toast .motion-icon { width: 17px; height: 17px; color: var(--accent); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 980px) {
  .app { grid-template-columns: 84px minmax(0, 1fr); }
  .sidebar { padding: 14px 9px; align-items: stretch; }
  .owner { justify-content: center; padding-left: 0; padding-right: 0; }
  .owner-copy { display: none; }
  .nav-item { justify-content: center; padding: 9px 6px; }
  .nav-item .nav-label { display: none; }
  .nav-icon { width: 34px; height: 34px; }
  .sidebar-bottom .nav-item { justify-content: center; }
  .workspace { padding: 18px; }
  .chat-layout { grid-template-columns: 1fr; min-height: auto; }
  .conversation-panel { max-height: 260px; }
  .message-panel { min-height: 560px; }
  .friend-grid { grid-template-columns: 1fr; }
  .friend-grid .panel:last-child { grid-column: auto; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-subnav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-subnav-item { min-height: 56px; }
  .admin-subnav-item:hover,
  .admin-subnav-item.active { transform: translateY(-1px); }
  .admin-subnav-item.active { box-shadow: inset 0 3px 0 var(--accent); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-registration-panel { grid-column: auto; max-height: 52dvh; }
  .admin-meta { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .station-manager { grid-template-columns: 1fr; }
  .station-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .station-tab { min-height: 56px; }
  .station-tab:hover,
  .station-tab.active { transform: translateY(-1px); }
  .station-tab.active { box-shadow: inset 0 3px 0 var(--accent); }
  .posts-layout { grid-template-columns: 1fr; }
  .post-composer { position: static; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-station-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .binding-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .app { display: block; min-height: 100dvh; }
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    margin: -6px 0 12px;
    padding: 0 2px 10px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 24;
    background: rgba(11,15,20,.92);
    backdrop-filter: blur(14px);
  }
  .mobile-brand { display: flex; align-items: center; gap: 9px; letter-spacing: .08em; }
  .mobile-brand strong { font-size: 14px; }
  .mobile-bar .icon-button { border: 1px solid var(--line); }
  .mobile-scrim { display: block; position: fixed; inset: 0; z-index: 29; background: rgba(2,6,10,.62); backdrop-filter: blur(3px); animation: scrim-in .22s ease both; }
  @keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(292px, 84vw);
    height: 100dvh;
    padding: 18px 14px;
    border-right: 1px solid var(--line);
    border-top: 0;
    flex-direction: column;
    align-items: stretch;
    z-index: 30;
    transform: translateX(-102%);
    box-shadow: 18px 0 50px rgba(0,0,0,.4);
    transition: transform .32s var(--ease-out);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .owner { justify-content: flex-start; padding: 7px 8px 14px; }
  .owner-copy { display: block; }
  .nav-list { width: 100%; grid-template-columns: 1fr; gap: 7px; }
  .nav-list .nav-item { justify-content: flex-start; padding: 11px 10px; }
  .nav-list .nav-item .nav-label { display: inline; }
  .nav-list .nav-icon { width: 32px; height: 32px; }
  .sidebar-bottom {
    margin-top: auto;
    width: 100%;
    gap: 7px;
  }
  .sidebar-bottom .nav-item {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 11px 10px;
    background: rgba(21,29,38,.72);
    border-color: var(--line);
  }
  .sidebar-bottom .nav-label { display: inline; }
  .workspace { padding: 0 14px 28px; }
  .view-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .view-head h2 { font-size: 22px; }
  .view-head .motion-button, .view-head .secondary, .view-head .platform-open { width: 100%; }
  .search.compact { width: 100%; }
  .conversation-panel { max-height: min(26dvh, 210px); }
  .message-panel { min-height: min(calc(100dvh - 345px), 580px); }
  .lobby-panel {
    min-height: 0;
    height: min(66dvh, calc(100dvh - 270px));
    min-height: 420px;
  }
  .lobby-message-list { min-height: 0; }
  .message-form { gap: 8px; padding: 10px; }
  .message-form textarea { min-width: 0; }
  .send-button { padding-left: 12px; padding-right: 12px; }
  .send-button .button-label { display: none; }
  .lobby-message-list { padding: 15px; }
  .lobby-message, .message-row { max-width: 88%; }
  .modal { padding: 12px; align-items: end; }
  .modal-card { width: 100%; max-height: min(82dvh, 720px); border-radius: 12px 12px 0 0; }
  .admin-layout { min-height: auto; }
  .admin-panel { max-height: 48dvh; }
  .admin-subnav { gap: 7px; padding: 8px; }
  .admin-subnav-item { min-height: 54px; padding: 8px; }
  .admin-subnav-copy small { display: none; }
  .admin-panel-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .admin-panel-head .search.compact { width: 100%; }
  .admin-registration-strip { padding: 12px; }
  .admin-ip-limit-form {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-ip-limit-form .motion-button { width: 100%; }
  .admin-ip-record-head {
    align-items: stretch;
    flex-direction: column;
  }
  .registration-ip-row { grid-template-columns: 1fr; }
  .registration-ip-row time { white-space: normal; }
  .admin-detail { max-height: none; }
  .station-tabs { gap: 7px; padding: 8px; }
  .station-tab { min-height: 54px; padding: 8px; }
  .station-tab small { display: none; }
  .station-panel { padding: 16px; }
  .station-panel-head { flex-direction: column; gap: 12px; }
  .station-action-grid { grid-template-columns: 1fr; }
  .station-confirmation-meta { grid-template-columns: 1fr; }
  .station-confirmation-head { flex-direction: column; }
  .station-confirm-button { width: 100%; }
  .station-balance-actions { flex-direction: column; }
  .station-balance-actions .motion-button { width: 100%; }
  .admin-button-row { flex-direction: column; }
  .admin-button-row button { width: 100%; }
  .profile-fields { grid-template-columns: 1fr; }
  .profile-station-list { grid-template-columns: 1fr; }
  .profile-station-fields { grid-template-columns: 1fr; }
  .profile-username-form { grid-template-columns: 1fr; }
  .binding-list { grid-template-columns: 1fr; }
  .binding-email-form { grid-template-columns: 1fr; }
  .translation-settings-form { grid-template-columns: 1fr; }
  .post-section-fieldset { grid-template-columns: 1fr; }
  .post-card { padding: 14px; }
  .post-card-head { flex-direction: column; }
  .post-section-list { justify-content: flex-start; }
  .post-card-tools { justify-content: flex-start; }
  .post-detail-meta { align-items: flex-start; flex-direction: column; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-form .motion-button { width: 100%; }
  .toast { right: 12px; left: 12px; bottom: 12px; justify-content: center; }
}

@media (max-width: 420px) {
  .workspace { padding-left: 10px; padding-right: 10px; }
  .login-card { padding: 24px 20px; }
  .login-card h1 { font-size: 23px; }
  .social-login-grid { grid-template-columns: 1fr; }
  .lobby-online { align-self: flex-start; }
  .user-grid { grid-template-columns: 1fr; }
  .user-card { padding: 12px; }
  .list-actions { flex-direction: column; }
  .message-head { padding: 11px 12px; }
  .message-bubble, .lobby-message-bubble { padding: 9px 11px; }
  .station-tabs { grid-template-columns: 1fr; }
  .language-picker.compact .language-select { max-width: 78px; }
}
