/* ================= Axo AI – Styles ================= */
:root {
  --bg: #0b1020;
  --bg2: #10172b;
  --panel: #131c33;
  --panel2: #18233f;
  --line: #24314f;
  --text: #e8eefc;
  --muted: #8b9bc0;
  --accent: #3b82f6;
  --accent2: #22d3ee;
  --accent-soft: rgba(59, 130, 246, .16);
  --pink: #f9a8d4;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --grad: linear-gradient(135deg, #3b82f6, #22d3ee);
  --user-bubble: linear-gradient(135deg, #2563eb, #1d4ed8);
}
[data-theme="light"] {
  --bg: #f4f7fd;
  --bg2: #ffffff;
  --panel: #ffffff;
  --panel2: #eef3fc;
  --line: #dbe3f2;
  --text: #0f1a33;
  --muted: #5b6b8c;
  --accent-soft: rgba(59, 130, 246, .10);
  --shadow: 0 10px 30px rgba(20, 40, 90, .10);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

.app { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 280px; flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 16px 12px;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.brand-logo { width: 42px; height: 42px; filter: drop-shadow(0 4px 12px rgba(59,130,246,.45)); }
.brand-text { display: flex; flex-direction: column; flex: 1; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.3px; }
.plan-badge {
  align-self: flex-start; margin-top: 2px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 2px 8px; border-radius: 99px;
  background: var(--panel2); color: var(--muted);
}
.plan-badge.pro { background: linear-gradient(135deg,#6366f1,#3b82f6); color: #fff; }
.plan-badge.max { background: linear-gradient(135deg,#f59e0b,#ec4899,#8b5cf6); color: #fff; }

.new-chat {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 12px; border: none;
  background: var(--grad); color: #fff; font-weight: 600;
  box-shadow: 0 6px 20px rgba(59,130,246,.35);
  transition: transform .15s;
}
.new-chat:hover { transform: translateY(-1px); }
.new-chat span { font-size: 18px; line-height: 1; }

.search-wrap input {
  width: 100%; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); outline: none;
}
.search-wrap input:focus { border-color: var(--accent); }

.chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.chat-group { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 10px 8px 4px; font-weight: 600; }
.chat-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px; border: none; background: none;
  text-align: left; width: 100%;
}
.chat-item:hover { background: var(--panel); }
.chat-item.active { background: var(--accent-soft); }
.chat-item .ci-icon { font-size: 14px; }
.chat-item .ci-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.chat-item .ci-del { opacity: 0; border: none; background: none; color: var(--muted); padding: 0 4px; }
.chat-item:hover .ci-del { opacity: 1; }
.chat-item .ci-del:hover { color: var(--bad); }
.empty-list { color: var(--muted); font-size: 13px; padding: 10px; }

.sidebar-bottom { display: flex; flex-direction: column; gap: 8px; position: relative; }
.usage { font-size: 12px; color: var(--muted); padding: 0 4px; }
.usage .bar { height: 5px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin: 4px 0 8px; }
.usage .bar i { display: block; height: 100%; background: var(--grad); }
.upgrade-btn {
  padding: 10px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); font-weight: 600;
}
.upgrade-btn:hover { border-color: var(--accent); }
.profile-row { display: flex; gap: 6px; }
.profile-btn {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 12px; border: none; background: var(--panel);
}
.profile-btn:hover { background: var(--panel2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); font-size: 16px; }
.profile-name { flex: 1; text-align: left; font-weight: 600; font-size: 14px; }
.chev { color: var(--muted); }
.profile-menu {
  position: absolute; bottom: 52px; left: 0; right: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px; z-index: 20;
}
.profile-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px; border: none; background: none; border-radius: 10px; text-align: left;
}
.profile-menu button:hover { background: var(--panel2); }
.profile-menu .pm-title { font-size: 11px; color: var(--muted); padding: 6px 8px; text-transform: uppercase; letter-spacing: .8px; }

.icon-btn {
  border: none; background: none; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; font-size: 17px; flex-shrink: 0;
}
.icon-btn:hover { background: var(--panel2); }
.icon-btn.recording { background: var(--bad); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .6; } }

.only-mobile { display: none; }
.scrim { display: none; }

/* ---------- Main ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
}
.modes { display: flex; gap: 4px; background: var(--panel); padding: 4px; border-radius: 14px; border: 1px solid var(--line); }
.mode { border: none; background: none; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); transition: all .15s; }
.mode:hover { color: var(--text); }
.mode.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(59,130,246,.35); }
.top-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.focus-timer button, .streak {
  border: 1px solid var(--line); background: var(--panel);
  padding: 7px 12px; border-radius: 99px; font-weight: 600; font-size: 13px;
}
.focus-timer.running button { border-color: var(--good); color: var(--good); }

/* ---------- Messages ---------- */
.messages { flex: 1; overflow-y: auto; padding: 24px 20px 12px; scroll-behavior: smooth; }
.msg-col { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }

.welcome { max-width: 820px; margin: 4vh auto 0; text-align: center; }
.welcome-logo { width: 110px; height: 110px; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 12px 30px rgba(59,130,246,.45)); }
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }
.welcome h1 { font-size: 32px; letter-spacing: -.8px; margin: 14px 0 6px; }
.welcome h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome p { color: var(--muted); margin: 0 0 26px; }
.suggestions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; text-align: left; }
.sugg {
  border: 1px solid var(--line); background: var(--panel); border-radius: 14px;
  padding: 14px; transition: all .15s; display: flex; gap: 10px; align-items: flex-start; text-align: left;
}
.sugg:hover { border-color: var(--accent); transform: translateY(-2px); }
.sugg b { display: block; font-size: 14px; margin-bottom: 2px; }
.sugg span { color: var(--muted); font-size: 13px; }
.sugg .s-ico { font-size: 22px; }
.connect-banner {
  display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left;
  margin-bottom: 14px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(251,191,36,.45); background: rgba(251,191,36,.08);
}
.connect-banner b { font-size: 14.5px; }
.connect-banner span { color: var(--muted); font-size: 13px; }
.connect-banner:hover { background: rgba(251,191,36,.14); }
.unique { margin-top: 26px; text-align: left; }
.unique h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { font-size: 12.5px; padding: 6px 11px; border-radius: 99px; background: var(--accent-soft); color: var(--text); border: 1px solid transparent; }
.chip[title] { cursor: help; }

.msg { display: flex; gap: 12px; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.msg.user { justify-content: flex-end; }
.msg .ava { width: 34px; height: 34px; flex-shrink: 0; }
.msg .ava img { width: 34px; height: 34px; }
.msg .body { min-width: 0; max-width: 100%; flex: 1; }
.msg.user .body { flex: 0 1 auto; max-width: 80%; }
.bubble { line-height: 1.65; word-wrap: break-word; }
.msg.user .bubble {
  background: var(--user-bubble); color: #fff; padding: 11px 16px;
  border-radius: 18px 18px 4px 18px; white-space: pre-wrap;
}
.meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msg.user .meta { justify-content: flex-end; }
.tag { padding: 1px 7px; border-radius: 99px; background: var(--panel2); font-size: 11px; }
.conf { padding: 1px 8px; border-radius: 99px; font-weight: 700; font-size: 11px; }
.conf.hi { background: rgba(52,211,153,.15); color: var(--good); }
.conf.mid { background: rgba(251,191,36,.15); color: var(--warn); }
.conf.lo { background: rgba(248,113,113,.15); color: var(--bad); }

.bubble p { margin: 0 0 .8em; }
.bubble p:last-child { margin-bottom: 0; }
.bubble h1, .bubble h2, .bubble h3 { margin: 1em 0 .5em; line-height: 1.3; }
.bubble h1 { font-size: 1.4em; } .bubble h2 { font-size: 1.2em; } .bubble h3 { font-size: 1.05em; }
.bubble ul, .bubble ol { padding-left: 1.4em; margin: .4em 0 .8em; }
.bubble li { margin: .25em 0; }
.bubble a { color: var(--accent2); }
.bubble blockquote { border-left: 3px solid var(--accent); margin: .6em 0; padding: .2em 1em; color: var(--muted); }
.bubble table { border-collapse: collapse; margin: .6em 0; display: block; overflow-x: auto; }
.bubble th, .bubble td { border: 1px solid var(--line); padding: 6px 10px; }
.bubble th { background: var(--panel2); }
.bubble code { font-family: "JetBrains Mono", monospace; font-size: .88em; background: var(--panel2); padding: 2px 6px; border-radius: 6px; }
.bubble hr { border: none; border-top: 1px solid var(--line); margin: 1em 0; }
.code-block { margin: .8em 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0d1117; }
.code-head { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: #161b22; font-size: 12px; color: #8b949e; }
.code-head .lang { flex: 1; font-family: "JetBrains Mono", monospace; }
.code-head button { border: none; background: #21262d; color: #c9d1d9; padding: 4px 10px; border-radius: 7px; font-size: 12px; }
.code-head button:hover { background: #30363d; }
.code-head button.run { background: #1f6feb; color: #fff; }
.code-block pre { margin: 0; padding: 14px; overflow-x: auto; }
.code-block pre code { background: none; padding: 0; font-size: 13px; color: #e6edf3; }
.katex-display { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }

.thinking {
  margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  font-size: 13px;
}
.thinking summary { padding: 8px 12px; cursor: pointer; color: var(--muted); user-select: none; }
.thinking .think-body { padding: 0 12px 10px; color: var(--muted); white-space: pre-wrap; max-height: 260px; overflow-y: auto; font-size: 12.5px; line-height: 1.55; }
.status-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; margin: 4px 0 8px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: bounce 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 50% { transform: translateY(-5px); opacity: .5; } }

.actions { display: flex; gap: 2px; margin-top: 6px; flex-wrap: wrap; }
.actions button {
  border: none; background: none; color: var(--muted); font-size: 12.5px;
  padding: 5px 8px; border-radius: 8px;
}
.actions button:hover { background: var(--panel2); color: var(--text); }
.learn-ladder { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.learn-ladder button {
  border: 1px solid var(--line); background: var(--panel); border-radius: 99px;
  padding: 6px 12px; font-size: 13px; font-weight: 500;
}
.learn-ladder button:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Bilder */
.img-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 6px; }
.img-card { position: relative; border-radius: 14px; overflow: hidden; background: var(--panel2); aspect-ratio: var(--ar, 1); border: 1px solid var(--line); }
.img-card img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s; cursor: zoom-in; }
.img-card img.loaded { opacity: 1; }
.img-card .shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%); background-size: 200% 100%; animation: shim 1.3s infinite; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
@keyframes shim { to { background-position: -200% 0; } }
.img-card .img-tools { position: absolute; bottom: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .2s; }
.img-card:hover .img-tools { opacity: 1; }
.img-tools button { border: none; background: rgba(0,0,0,.65); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 12px; backdrop-filter: blur(4px); }
.prompt-used { font-size: 12px; color: var(--muted); margin-top: 8px; font-style: italic; }

/* Quiz */
.quiz { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 16px; margin-top: 8px; }
.quiz h4 { margin: 0 0 12px; }
.q { margin-bottom: 16px; }
.q:last-child { margin-bottom: 0; }
.q-text { font-weight: 600; margin-bottom: 8px; }
.q-opts { display: grid; gap: 6px; }
.q-opts button { text-align: left; border: 1px solid var(--line); background: var(--bg2); border-radius: 10px; padding: 9px 12px; }
.q-opts button:hover:not(:disabled) { border-color: var(--accent); }
.q-opts button.right { border-color: var(--good); background: rgba(52,211,153,.12); }
.q-opts button.wrong { border-color: var(--bad); background: rgba(248,113,113,.12); }
.q-exp { font-size: 13px; color: var(--muted); margin-top: 6px; }
.flashcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 8px; }
.flash { perspective: 800px; height: 140px; cursor: pointer; }
.flash-inner { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.flash.flipped .flash-inner { transform: rotateY(180deg); }
.flash-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 14px; padding: 14px; display: grid; place-items: center; text-align: center; font-size: 14px; border: 1px solid var(--line); }
.flash-front { background: var(--panel); font-weight: 600; }
.flash-back { background: var(--accent-soft); transform: rotateY(180deg); }

/* ---------- Composer ---------- */
.composer-wrap { padding: 10px 20px 14px; }
.toolbar { max-width: 820px; margin: 0 auto 8px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.tool-label { font-size: 12px; color: var(--muted); margin-right: 6px; font-weight: 600; }
.effort, .learn-opts, .image-opts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.seg button { border: none; background: none; padding: 6px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.seg button small { font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 4px; background: var(--panel2); margin-left: 2px; vertical-align: 1px; }
.seg button.active { background: var(--accent-soft); color: var(--text); }
.seg button.locked { opacity: .55; }
select { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; outline: none; }
.toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.composer {
  max-width: 820px; margin: 0 auto; display: flex; align-items: flex-end; gap: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 8px;
  box-shadow: var(--shadow); transition: border-color .15s;
}
.composer:focus-within { border-color: var(--accent); }
.composer textarea {
  flex: 1; border: none; background: none; resize: none; outline: none;
  padding: 8px 6px; max-height: 220px; line-height: 1.5;
}
.send-btn {
  width: 40px; height: 40px; border-radius: 13px; border: none; flex-shrink: 0;
  background: var(--grad); color: #fff; font-size: 16px;
  box-shadow: 0 4px 14px rgba(59,130,246,.4);
}
.send-btn.stop { background: var(--bad); box-shadow: none; }
.send-btn:disabled { opacity: .5; }
.hint { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* ---------- Vorschau ---------- */
.preview { width: 46%; min-width: 340px; border-left: 1px solid var(--line); display: flex; flex-direction: column; background: var(--bg2); }
.preview-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.preview-head div { display: flex; gap: 4px; }
.preview iframe { flex: 1; border: none; background: #fff; width: 100%; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; background: rgba(5, 10, 25, .65); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 26px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal-card.wide { max-width: 980px; }
.modal-card h2 { margin: 0 0 4px; letter-spacing: -.4px; }
.modal-close { position: absolute; top: 14px; right: 14px; border: none; background: var(--panel2); width: 32px; height: 32px; border-radius: 10px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--panel); display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg,#f59e0b,#ec4899,#8b5cf6) border-box; border: 2px solid transparent; }
.plan .ribbon { position: absolute; top: -11px; left: 20px; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: linear-gradient(135deg,#f59e0b,#ec4899); color: #fff; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-size: 22px; font-weight: 800; margin: 8px 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.plan li { padding: 5px 0; font-size: 14px; display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: var(--good); font-weight: 800; }
.btn { border: none; padding: 10px 16px; border-radius: 12px; font-weight: 700; background: var(--grad); color: #fff; }
.btn.ghost { background: var(--panel2); color: var(--text); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.danger { background: rgba(248,113,113,.15); color: var(--bad); }
.owner-box { margin-top: 18px; }
.owner-box summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.owner-row { display: flex; gap: 8px; margin-top: 10px; }
.owner-row input, .settings input[type=text], .settings input[type=password], .settings input:not([type]) {
  flex: 1; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); outline: none; width: 100%;
}
.settings { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.set-sec h4 { margin: 0 0 8px; font-size: 14px; }
.set-sec p { margin: 0 0 8px; }
.set-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.mem-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.mem-item { display: flex; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.mem-item span { flex: 1; }
.mem-item button { border: none; background: none; color: var(--muted); }
.lightbox-inner { position: relative; max-width: 92vw; max-height: 90vh; }
.lightbox-inner img { max-width: 92vw; max-height: 90vh; border-radius: 14px; display: block; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line); padding: 10px 18px; border-radius: 12px; box-shadow: var(--shadow); z-index: 200; font-size: 14px; animation: rise .2s; }

/* ---------- Scrollbars ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .preview { position: fixed; inset: 0; width: 100%; min-width: 0; z-index: 60; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .only-mobile { display: grid; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .scrim.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; }
  .topbar { padding: 10px 12px; }
  .mode { padding: 8px 10px; }
  .mode span { display: none; }
  .messages { padding: 16px 12px 8px; }
  .composer-wrap { padding: 8px 10px 10px; }
  .suggestions { grid-template-columns: 1fr; }
  .welcome h1 { font-size: 25px; }
  .seg button { padding: 6px 7px; font-size: 12px; }
  .msg .ava { display: none; }
  .msg.user .body { max-width: 90%; }
  .hint { display: none; }
}
