/* Suchet - Mint signal theme (option 1) */
:root {
  --bg: #080F12;
  --panel: #112025;
  --line: #22383D;
  --accent: #74E8CD;
  --accent-deep: #2D6E66;
  --muted: #9EB9B8;
  --text: #F4F4F6;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Noto Sans", "Noto Sans Devanagari", "Noto Sans Gujarati", system-ui, sans-serif;
  display: flex;
  justify-content: center;
}
.shell {
  width: 100%;
  max-width: 720px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.name { font-size: 18px; font-weight: 700; letter-spacing: 0.2px; }
.tag { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-btn {
  background: transparent; color: var(--muted); border: 0;
  font-size: 12px; padding: 5px 8px; cursor: pointer;
}
.lang-btn.active { background: var(--accent-deep); color: var(--text); }
.icon-btn {
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  color: var(--muted); width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-deep); }
.chat {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.msg.assistant { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--accent); color: #080F12; border-bottom-right-radius: 6px; }
.msg.error { align-self: flex-start; background: transparent; border: 1px solid #7a3b3b; color: #e8a1a1; font-size: 13.5px; }
.msg .meta { display: block; margin-top: 6px; font-size: 10.5px; color: var(--muted); }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.composer {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.composer textarea {
  flex: 1; resize: none; max-height: 140px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 14px; font-size: 15px; font-family: inherit; line-height: 1.4;
}
.composer textarea:focus { outline: none; border-color: var(--accent-deep); }
.send {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); border: 0; cursor: pointer;
  display: grid; place-items: center;
}
.send:disabled { opacity: 0.45; cursor: default; }
.setup {
  position: absolute; inset: 0; margin: auto;
  width: min(420px, 92%);
  height: fit-content;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.5);
}
.setup.hidden { display: none; }
.setup h2 { margin: 0; font-size: 16px; }
.setup label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.setup input {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 10px 12px; font-size: 14px;
}
.setup .primary {
  background: var(--accent); color: #080F12; border: 0; border-radius: 10px;
  padding: 11px; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.setup .note { margin: 0; font-size: 12px; color: var(--muted); }
