:root {
  --cream: #f6edd9;
  --sand: #efe0c6;
  --card: #f4e6ce;
  --panel: #fbf3e4;
  --chat: #fff8ee;
  --ink: #3d3428;
  --muted: #8a7b6a;
  --line: rgba(90, 62, 36, 0.1);
  --orange: #f4a04c;
  --orange-2: #e88928;
  --blue: #6eb5e8;
  --purple: #b08ad8;
  --green: #7ec87a;
  --yellow: #f5d56a;
  --red: #f28b82;
  --send: #f6cf4a;
  --send-ink: #4a3a12;
  --user: #ffe0b8;
  --shadow: 0 22px 50px rgba(86, 54, 22, 0.16);
  --radius: 28px;
  --sans: "Noto Sans SC", "Nunito", system-ui, sans-serif;
  --display: "Fredoka", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
}
.page-chat { overflow: hidden; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 8% 88%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(700px 360px at 92% 10%, rgba(255, 236, 200, 0.7), transparent 55%),
    repeating-linear-gradient(
      180deg,
      transparent 0 38px,
      rgba(255, 255, 255, 0.16) 38px 40px
    ),
    linear-gradient(180deg, #f8f0de 0%, #f0e0c4 48%, #ead4b0 100%);
}
.wave {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background:
    radial-gradient(120% 80% at 10% 120%, rgba(255,255,255,.35), transparent 50%),
    radial-gradient(80% 70% at 80% 130%, rgba(255,255,255,.28), transparent 46%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.b1 { width: 90px; height: 90px; left: 8%; top: 18%; }
.b2 { width: 54px; height: 54px; right: 12%; top: 28%; }
.b3 { width: 36px; height: 36px; left: 22%; bottom: 16%; }
.b4 { width: 70px; height: 70px; right: 22%; bottom: 10%; }

.deco {
  position: absolute;
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(8px 14px 10px rgba(80, 50, 20, 0.18));
  animation: float 7s ease-in-out infinite;
  user-select: none;
}
.d-l { left: 6px; bottom: 7%; width: 118px; animation-delay: -1s; }
.d-t { right: 10px; top: 10%; width: 124px; animation-delay: -2.4s; }
.d-o { left: 18px; top: 8%; width: 88px; animation-delay: -3.2s; }
.d-s { right: 8px; bottom: 14%; width: 118px; animation-delay: -1.6s; }
.d-i { left: 14%; bottom: 8px; width: 50px; animation-delay: -4s; }
.d-j { right: 14%; top: 8px; width: 96px; animation-delay: -.8s; }
.d-z { left: 36%; top: 10px; width: 84px; opacity: .5; animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

[hidden] { display: none !important; }

.app {
  position: relative;
  z-index: 1;
  height: 100vh;
  padding: 26px 34px;
  display: grid;
}
.board {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.7);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.5);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 20px 10px;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  max-width: 22em;
}
.logo-grid {
  width: 42px;
  height: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  background: #fff8ee;
  border-radius: 10px;
  box-shadow: 0 4px 0 rgba(200, 150, 80, 0.18);
}
.logo-grid i { border-radius: 3px; display: block; }
.c-or { background: #f4a04c; }
.c-cy { background: #6ad0ea; }
.c-pu { background: #b08ad8; }
.c-gn { background: #7ec87a; }
.c-ye { background: #f5d56a; }
.c-rd { background: #f28b82; }
.c-bl { background: #6eb5e8; }

.mood { display: flex; gap: 10px; font-size: 22px; justify-content: center; }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; position: relative; }
.level {
  background: #fff6e6;
  border: 1px solid rgba(244, 160, 76, 0.35);
  color: #b36a1c;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 0 rgba(200, 140, 60, 0.12);
}
.icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #fff8ee;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.icon-btn:hover { background: #ffe9c8; }
.menu {
  position: absolute;
  top: 42px;
  right: 0;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 168px;
  padding: 6px;
  box-shadow: var(--shadow);
  z-index: 20;
}
.menu a, .menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  text-decoration: none;
}
.menu a:hover, .menu button:hover { background: #fff1d8; }

.cols {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 268px;
  gap: 0;
  padding: 0 12px 12px;
}

.panel, .chat {
  min-height: 0;
  background: var(--panel);
  border-radius: 22px;
}
.history { display: flex; flex-direction: column; margin-right: 8px; }
.params { display: flex; flex-direction: column; margin-left: 8px; padding: 14px 14px 16px; overflow: auto; }
.chat {
  background: var(--chat);
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 6px;
}
.params .panel-head { padding: 0 0 10px; }
.panel-head h2, .chat-who h2 {
  margin: 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.head-ops { display: flex; gap: 4px; }
.privacy {
  margin: 0 14px 10px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  background: #fff7e8;
  border: 1px dashed rgba(180, 130, 60, 0.28);
  border-radius: 10px;
  padding: 8px 10px;
}
.new-row {
  margin: 0 12px 8px;
  border: 1px dashed rgba(180, 130, 60, 0.3);
  background: #fffaf0;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  color: #b36a1c;
  font-weight: 600;
}
.new-row:hover { background: #fff1d4; }

.session-list {
  flex: 1;
  overflow: auto;
  padding: 0 8px 8px;
}
.session {
  width: 100%;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 9px 8px;
  border-radius: 12px;
  text-align: left;
}
.session:hover, .session.active { background: #ffe9c8; }
.session .mini {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}
.session .ttl {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session .when { font-size: 11px; color: var(--muted); }
.session .del {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  opacity: 0;
}
.session:hover .del, .session:focus-within .del { opacity: 1; }
.session .del:hover { background: #ffd4cc; color: #b33; }
.sessions-empty {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 24px 10px;
}

.history-foot { padding: 8px 12px 12px; }
.clear-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(180, 80, 60, 0.2);
  background: #fff;
  color: #c45b4a;
  border-radius: 12px;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
}
.clear-btn:hover { background: #fff1ee; }
.mascot { text-align: center; margin-top: 10px; }
.mascot p {
  margin: 2px 8px 0;
  font-size: 11px;
  color: #b07a3c;
  line-height: 1.45;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--line);
}
.chat-who { flex: 1; }
.chat-who h2 { font-family: var(--display); font-size: 20px; }
.chat-who p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.online {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5dca63;
  box-shadow: 0 0 0 3px rgba(93, 202, 99, 0.2);
  vertical-align: middle;
  margin-left: 4px;
}
.drawer-btn {
  display: none;
  border: 0;
  background: #fff1d4;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.blob {
  width: 46px;
  height: 42px;
  border-radius: 50% 50% 46% 54%;
  background: radial-gradient(circle at 32% 28%, #d8f58a, #7ed957 58%, #5cbc4a);
  position: relative;
  box-shadow: 0 6px 0 rgba(70, 130, 50, 0.12), inset 0 -6px 10px rgba(40, 90, 20, 0.12);
  flex: 0 0 auto;
}
.blob.big { width: 78px; height: 70px; margin: 0 auto 10px; }
.blob .eye {
  position: absolute;
  top: 38%;
  width: 7px;
  height: 8px;
  background: #2a2a2a;
  border-radius: 50%;
}
.blob.big .eye { width: 10px; height: 11px; }
.e1 { left: 28%; }
.e2 { right: 28%; }
.blob .smile {
  position: absolute;
  left: 50%;
  bottom: 28%;
  width: 12px;
  height: 6px;
  border: 2px solid #2a2a2a;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
}

.msgs {
  flex: 1;
  overflow: auto;
  padding: 8px 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.empty {
  margin: auto;
  text-align: center;
  max-width: 420px;
  color: var(--muted);
}
.empty h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 26px;
}
.empty p { margin: 0 0 14px; line-height: 1.6; font-size: 13px; }
.hints { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hints button {
  border: 0;
  background: #fff1d4;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #9a5b18;
}
.hints button:hover { background: #ffe0a8; }

.row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 760px;
  width: 100%;
}
.row.user { margin-left: auto; flex-direction: row-reverse; }
.row .ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  background: #ffe0b8;
}
.row.assistant .ava { padding: 0; background: none; }
.row.assistant .ava .blob { width: 34px; height: 30px; }
.bubble-col { min-width: 0; }
.who {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.row.user .who { text-align: right; }
.bubble {
  padding: 11px 14px;
  border-radius: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  box-shadow: 0 4px 0 rgba(90, 60, 30, 0.05);
}
.row.user .bubble {
  background: linear-gradient(180deg, #ffe7c4, #ffd7a0);
  border-bottom-right-radius: 6px;
}
.row.assistant .bubble {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.think {
  font-size: 12px;
  color: #7d6a4a;
  background: #fff6e4;
  border: 1px dashed rgba(180, 130, 60, 0.28);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 6px;
  white-space: pre-wrap;
}
.typing {
  display: flex;
  gap: 5px;
  padding: 12px 16px;
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9b089;
  animation: bounce 1s infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.composer {
  padding: 10px 18px 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,248,238,0), #fff8ee 18%);
}
.box {
  background: #fff;
  border: 1px solid rgba(180, 130, 60, 0.16);
  border-radius: 18px;
  padding: 10px 10px 10px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  position: relative;
  box-shadow: 0 8px 20px rgba(90, 60, 30, 0.06);
}
.box textarea {
  width: 100%;
  resize: none;
  min-height: 44px;
  max-height: 160px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  line-height: 1.5;
}
.box-ops { display: flex; align-items: center; gap: 6px; }
.ghost-ico {
  border: 0;
  background: #fff6e6;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 16px;
}
.send {
  border: 0;
  background: linear-gradient(180deg, #ffe27a, var(--send));
  color: var(--send-ink);
  font-weight: 800;
  border-radius: 14px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 0 #e0b020;
}
.send:hover { filter: brightness(1.03); }
.send:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.hint { margin: 8px 4px 0; color: var(--muted); font-size: 12px; }
.emoji-pop {
  position: absolute;
  right: 12px;
  bottom: 58px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  box-shadow: var(--shadow);
  z-index: 5;
}
.emoji-pop button {
  border: 0;
  background: transparent;
  font-size: 18px;
  border-radius: 8px;
  padding: 4px;
}
.emoji-pop button:hover { background: #fff1d4; }

.model-card {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  text-align: left;
  margin-bottom: 8px;
}
.model-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eaf6ff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 7px;
}
.model-ico i { background: #6eb5e8; border-radius: 2px; }
.model-ico i:nth-child(2) { background: #9ad0f4; }
.model-txt { min-width: 0; display: grid; }
.model-txt strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-txt small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.model-pop {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(90, 60, 30, 0.1);
}
.model-pop input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  outline: none;
  margin-bottom: 8px;
}
.model-list { max-height: 220px; overflow: auto; }
.model-pub {
  font-size: 11px;
  color: var(--muted);
  padding: 6px 6px 2px;
  font-weight: 700;
}
.model-opt {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px;
  border-radius: 10px;
  font-size: 12px;
}
.model-opt:hover, .model-opt.on { background: #fff1d4; }
.model-opt small { display: block; color: var(--muted); font-size: 10px; }

.field { margin-bottom: 12px; }
.field label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.field label span { color: var(--orange-2); font-variant-numeric: tabular-nums; }
.field input[type="number"], .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  outline: none;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--orange);
  height: 18px;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.switch { position: relative; width: 40px; height: 22px; }
.switch input { display: none; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e6d8c2;
  transition: .2s;
}
.switch span:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.switch input:checked + span { background: var(--orange); }
.switch input:checked + span:before { transform: translateX(18px); }

.ctx, .stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
}
.ctx-top, .stat-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.ctx-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}
.ctx-grid i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: #efe4d2;
}
.ctx-grid i.on { background: #6eb5e8; box-shadow: 0 1px 0 #3d88b8; }
.stat-bar {
  height: 10px;
  background: #efe4d2;
  border-radius: 99px;
  overflow: hidden;
}
.stat-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7ec87a, #f5d56a, #f4a04c);
  transition: width .35s ease;
}
.stat-note, .line-status {
  margin: 8px 0 0;
  font-size: 12px;
  color: #9a7a4a;
}
.line-status { color: var(--muted); }

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(50, 34, 16, 0.28);
  z-index: 8;
}
.modal {
  border: 0;
  border-radius: 18px;
  padding: 20px;
  width: min(420px, calc(100vw - 32px));
  background: #fffaf0;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(50, 34, 16, 0.32); }
.modal h3 { margin: 0 0 8px; font-family: var(--display); }
.modal p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.modal-ops { display: flex; justify-content: flex-end; gap: 8px; }
.btn {
  border: 0;
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 700;
  background: var(--send);
}
.btn.ghost { background: #fff; border: 1px solid var(--line); }
.btn.danger { background: #f28b82; color: #4a1410; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #3d3428;
  color: #fff8ee;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 30;
  box-shadow: var(--shadow);
}

.drawer-close, .sheet-handle { display: none; }

@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .history, .params {
    position: fixed;
    top: 12px;
    bottom: 12px;
    width: min(360px, 88vw);
    z-index: 12;
    margin: 0;
    box-shadow: var(--shadow);
  }
  .history { left: 12px; display: none; }
  .params { right: 12px; display: none; }
  .history.open, .params.open { display: flex; }
  .drawer-btn, .drawer-close { display: inline-flex; }
  .d-j, .d-z, .d-i { display: none; }
}
@media (max-width: 720px) {
  .page-chat { overflow: hidden; }
  .app {
    padding: 0;
    height: 100vh;
    height: 100dvh;
  }
  .board {
    border-radius: 0;
    min-height: 100%;
  }
  .deco { display: none; }
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 10px 12px 6px;
    gap: 8px;
  }
  .mood { display: none; }
  .brand { gap: 8px; min-width: 0; }
  .brand h1 { font-size: 20px; }
  .tagline { font-size: 11px; max-width: none; }
  .level { font-size: 11px; padding: 5px 8px; }
  .logo-grid { width: 34px; height: 34px; }
  .chat-head {
    padding: 10px 12px 8px;
    flex-wrap: wrap;
  }
  .chat-who { min-width: 0; }
  .chat-who h2 { font-size: 17px; }
  .chat-who p { font-size: 11px; }
  .msgs, .composer { padding-left: 12px; padding-right: 12px; }
  .empty h3 { font-size: 22px; }
  .empty p { font-size: 12px; }
  .box {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .box-ops { justify-content: flex-end; }
  .send { min-height: 40px; padding: 8px 16px; }
  .ghost-ico { width: 40px; height: 40px; }
  .emoji-pop { grid-template-columns: repeat(6, 1fr); left: 10px; right: 10px; }
  .history, .params {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(86dvh, 740px);
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sheet-handle {
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 99px;
    background: #e0c49a;
    margin: 8px auto 0;
  }
  .drawer-btn {
    min-height: 36px;
    padding: 6px 12px;
  }
  .composer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .level { display: none; }
  .hints button { font-size: 11px; padding: 6px 10px; }
}
.session-list, .msgs, .params, .model-list {
  scrollbar-width: thin;
  scrollbar-color: #e0c49a transparent;
}
.session-list::-webkit-scrollbar,
.msgs::-webkit-scrollbar,
.params::-webkit-scrollbar,
.model-list::-webkit-scrollbar { width: 8px; }
.session-list::-webkit-scrollbar-thumb,
.msgs::-webkit-scrollbar-thumb,
.params::-webkit-scrollbar-thumb,
.model-list::-webkit-scrollbar-thumb {
  background: #e0c49a;
  border-radius: 99px;
}

@media (prefers-reduced-motion: reduce) {
  .deco, .typing i { animation: none; }
}
