/* ShenaAI 移动端/平板用户壳 — 暗色玻璃态 */
:root {
  --bg-dark: #020617;
  --bg-light: #0f172a;
  --accent-blue: #38bdf8;
  --accent-gold: #fbbf24;
  --accent-purple: #818cf8;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --glass: rgba(15, 23, 42, 0.72);
  --glass-border: rgba(56, 189, 248, 0.18);
  --radius: 14px;
  --font-ui: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body.shell-body {
  font-family: var(--font-ui);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100dvh;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(129, 140, 248, 0.08), transparent 50%);
}
.shell-main {
  padding: calc(56px + env(safe-area-inset-top, 0px)) 0.85rem
           calc(70px + env(safe-area-inset-bottom, 0px));
  max-width: 960px; margin: 0 auto;
}
@media (min-width: 768px) {
  .shell-main { padding: 1.25rem 1.5rem 1.5rem; max-width: 1200px; }
  .shell-layout-pad {
    display: grid; grid-template-columns: 240px 1fr; gap: 1.25rem;
    min-height: calc(100dvh - 2rem);
  }
}
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(16px);
  margin-bottom: 0.85rem;
}
.glass-card h2 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--accent-gold);
  margin-bottom: 0.65rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.chip {
  padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.8rem;
  background: rgba(56, 189, 248, 0.12); border: 1px solid var(--glass-border);
  color: var(--text-primary); cursor: pointer;
}
.chip.active { background: rgba(251, 191, 36, 0.2); border-color: var(--accent-gold); color: var(--accent-gold); }
.shell-input, .shell-textarea {
  width: 100%; padding: 0.75rem; border-radius: 10px;
  border: 1px solid var(--glass-border); background: rgba(2, 6, 23, 0.6);
  color: var(--text-primary); font-size: 1rem; font-family: inherit;
}
.shell-textarea { min-height: 100px; resize: vertical; }
.shell-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.25rem; border-radius: 10px; border: none;
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: #1a1510; width: 100%; margin-top: 0.5rem;
}
.shell-btn.secondary {
  background: transparent; border: 1px solid var(--glass-border); color: var(--accent-blue);
}
.result-box {
  white-space: pre-wrap; word-break: break-word;
  font-size: 0.88rem; line-height: 1.65; color: var(--text-primary);
  max-height: 45vh; overflow-y: auto;
}
.agent-grid-m {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem;
}
@media (min-width: 768px) { .agent-grid-m { grid-template-columns: repeat(3, 1fr); } }
.agent-tile {
  display: block; text-decoration: none; color: inherit;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 0.85rem;
  transition: border-color 0.2s;
}
.agent-tile:active { border-color: var(--accent-gold); }
.agent-tile .name { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.2rem; }
.agent-tile .tier { font-size: 0.68rem; color: var(--text-secondary); }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 42, 0.95); border: 1px solid var(--accent-gold);
  color: var(--accent-gold); padding: 0.5rem 1rem; border-radius: 8px;
  font-size: 0.8rem; z-index: 200; display: none;
}
