:root {
  color-scheme: light;
  --bg: #eef0f4;
  --panel: #ffffff;
  --panel-2: #f4f5f8;
  --border: #e3e5ec;
  --text: #1c1d26;
  --muted: #80818f;
  --accent: #5d5ff0;
  --accent-strong: #4a4cdb;
  --accent-soft: rgba(93, 95, 240, 0.1);
  --accent-contrast: #ffffff;
  --danger: #e2574a;
  --danger-soft: rgba(226, 87, 74, 0.1);
  --success: #2fae6b;
  --success-soft: rgba(47, 174, 107, 0.1);
  --jg-green: #4caf50;
  --jg-green-dark: #3b7a3e;
  --jg-green-darker: #2f6132;
  --shadow-sm: 0 1px 2px rgba(28, 29, 38, 0.06), 0 1px 1px rgba(28, 29, 38, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 29, 38, 0.08), 0 2px 6px rgba(28, 29, 38, 0.05);
  --shadow-lg: 0 24px 56px rgba(28, 29, 38, 0.14), 0 6px 16px rgba(28, 29, 38, 0.06);
  font-family: "Inter", -apple-system, "Segoe UI", system-ui, Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #15161d;
    --panel: #1e1f29;
    --panel-2: #262735;
    --border: #33344a;
    --text: #e9e9f0;
    --muted: #93939f;
    --accent: #7678ff;
    --accent-strong: #9192ff;
    --accent-soft: rgba(118, 120, 255, 0.16);
    --accent-contrast: #ffffff;
    --danger: #f0756a;
    --danger-soft: rgba(240, 117, 106, 0.16);
    --success: #4ecb8c;
    --success-soft: rgba(78, 203, 140, 0.16);
    --jg-green: #52c558;
    --jg-green-dark: #3b7a3e;
    --jg-green-darker: #2f6132;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.3);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15161d;
  --panel: #1e1f29;
  --panel-2: #262735;
  --border: #33344a;
  --text: #e9e9f0;
  --muted: #93939f;
  --accent: #7678ff;
  --accent-strong: #9192ff;
  --accent-soft: rgba(118, 120, 255, 0.16);
  --accent-contrast: #ffffff;
  --danger: #f0756a;
  --danger-soft: rgba(240, 117, 106, 0.16);
  --success: #4ecb8c;
  --success-soft: rgba(78, 203, 140, 0.16);
  --jg-green: #52c558;
  --jg-green-dark: #3b7a3e;
  --jg-green-darker: #2f6132;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.1s ease;
}

.theme-toggle:hover { background: var(--panel-2); }
.theme-toggle:active { transform: scale(0.92); }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
*::-webkit-scrollbar-track { background: transparent; }

button { font-family: inherit; }

/* ===================== Login screen ===================== */

.login-screen {
  display: flex;
  height: 100vh;
  overflow-y: auto;
}

.login-brand-pane {
  flex: 1;
  min-width: 0;
  background: linear-gradient(165deg, var(--jg-green) 0%, var(--jg-green-dark) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 36px 56px;
}

.login-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  width: fit-content;
}

.login-logo span { color: #dff3df; }

.login-brand-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 480px; }

.login-brand-mid h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.6px;
}

.login-brand-mid p {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.login-brand-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 20px;
}

.login-logo-mini { font-weight: 800; color: #fff; }
.login-logo-mini span { color: #dff3df; }

.login-form-pane {
  flex-shrink: 0;
  width: 440px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-form-card { width: 100%; max-width: 320px; }

.login-logo-center {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--jg-green-dark);
  margin-bottom: 28px;
}

.login-logo-center span { color: var(--jg-green); }

.login-form-card h2 {
  font-size: 19px;
  font-weight: 750;
  color: var(--text);
  margin: 0 0 18px;
  text-transform: none;
  letter-spacing: 0;
}

.login-form-card form { display: flex; flex-direction: column; gap: 12px; }

.login-form-card input {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.login-form-card input:focus { border-color: var(--jg-green); box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15); }
.login-form-card input::placeholder { color: var(--muted); }

.login-submit {
  background: var(--jg-green);
  color: #fff;
  border: none;
  padding: 12px 17px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.login-submit:hover { background: var(--jg-green-dark); }
.login-submit:active { transform: scale(0.98); }
.login-submit:disabled { opacity: 0.6; cursor: wait; }

.login-form-card .output { margin-top: 16px; }

/* ===================== App shell ===================== */

.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 272px;
  flex-shrink: 0;
  height: 100vh;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  gap: 16px;
}

.sidebar-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
  padding: 2px 4px;
}

.sidebar-brand span { color: var(--accent); }
.sidebar-brand .brand-sub { color: var(--muted); font-weight: 600; font-size: 12px; margin-left: 4px; }

.new-chat-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.new-chat-button:hover { background: var(--accent-strong); }
.new-chat-button:active { transform: scale(0.98); }
.new-chat-plus { font-size: 15px; font-weight: 700; }

.sidebar-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 4px 0;
}

.link-button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

.link-button:hover { color: var(--accent-strong); }

.history-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 10px;
  border-radius: 10px;
  transition: background 0.15s ease;
  position: relative;
}

.history-item:hover { background: var(--panel-2); }
.history-item.active { background: var(--accent-soft); }

.history-item-main {
  flex: 1;
  min-width: 0;
  padding: 5px 0;
  cursor: pointer;
}

.history-item .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
}

.history-item.active .name { color: var(--accent-strong); }
.history-item .desc { font-size: 11px; color: var(--muted); margin-top: 2px; }

.history-item-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

.history-item:hover .history-item-actions,
.history-item:focus-within .history-item-actions { opacity: 1; }

.history-action {
  background: none;
  border: none;
  color: var(--muted);
  width: 24px;
  height: 24px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-action:hover { background: var(--panel); color: var(--text); }

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.sidebar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-row:hover { background: var(--panel-2); color: var(--text); }
.sidebar-row-icon { font-size: 14px; line-height: 1; }

.profile-row { cursor: default; }
.profile-row:hover { background: none; }

.profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
}

.profile-avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--panel);
}

.profile-avatar.online::after { background: var(--success); }

.profile-name {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-row .link-button { flex-shrink: 0; }

/* ===================== Chat area ===================== */

.chat-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px 28px 20px;
  transition: outline-color 0.15s ease;
  outline: 2px dashed transparent;
  outline-offset: -2px;
}

.chat-main.drag-active { outline-color: var(--accent); background: var(--accent-soft); }

.drop-zone-hint {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 14px;
  font-weight: 650;
  color: var(--accent-strong);
}

.chat-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 4px 16px;
  scroll-behavior: smooth;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}

.msg-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  animation: fadeUp 0.3s ease both;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.msg-row.user {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.msg-row.user .avatar { background: var(--accent); color: #fff; }
.msg-row.bot .avatar { background: var(--accent-soft); color: var(--accent-strong); }

.msg-column { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }

.msg-row.user .msg-column {
  flex: 0 1 auto;
  max-width: 75%;
  align-items: flex-end;
}

.msg-sender { font-size: 12px; font-weight: 650; color: var(--muted); }
.msg-row.bot .msg-sender { color: var(--accent-strong); font-style: italic; }
.msg-row.user .msg-sender { text-align: right; }

.msg-time {
  font-size: 11px;
  font-weight: 500;
  font-style: normal;
  color: var(--muted);
  margin-left: 6px;
}

.msg {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 16px;
}

.msg-row.user .msg { background: var(--panel-2); border-color: transparent; }

.msg p { margin: 0 0 8px; }
.msg p:last-child { margin-bottom: 0; }
.msg ol, .msg ul { margin: 4px 0; padding-left: 20px; }
.msg li { margin-bottom: 4px; }
.msg code { background: var(--panel-2); color: var(--text); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.msg a { color: var(--accent-strong); font-weight: 600; text-decoration: underline; }
.msg strong { font-weight: 700; }
.msg h1, .msg h2, .msg h3, .msg h4, .msg h5, .msg h6 { margin: 10px 0 6px; font-weight: 700; line-height: 1.3; }
.msg h1:first-child, .msg h2:first-child, .msg h3:first-child,
.msg h4:first-child, .msg h5:first-child, .msg h6:first-child { margin-top: 0; }
.msg h1 { font-size: 17px; }
.msg h2 { font-size: 15.5px; }
.msg h3 { font-size: 14.5px; }
.msg h4, .msg h5, .msg h6 { font-size: 13.5px; }

.typing-dots { display: flex; gap: 4px; padding: 4px 2px; }

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: bounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

.msg-image { max-width: 320px; max-height: 320px; border-radius: 10px; display: block; }

/* ===================== Empty state ===================== */

.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.empty-badge {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--text);
}

.empty-badge span:first-of-type { color: var(--accent); }

.empty-state h2 {
  font-size: 26px;
  font-weight: 750;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.4px;
}

.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}

.suggestion-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.suggestion-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-1px); }

.suggestion-title { font-size: 14px; font-weight: 700; color: var(--text); }
.suggestion-text { font-size: 12.5px; color: var(--muted); padding-right: 20px; }
.suggestion-arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: var(--accent);
  font-weight: 700;
}

.scroll-bottom-button {
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  color: var(--accent-strong);
  font-size: 15px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.15s ease, transform 0.1s ease;
}

.scroll-bottom-button:hover { background: var(--accent-soft); }
.scroll-bottom-button:active { transform: translateX(-50%) scale(0.92); }

/* ===================== Input bar ===================== */

.chat-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 880px;
  width: 100%;
  margin: 10px auto 0;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 24px;
  padding: 7px 7px 7px 16px;
}

.chat-input-bar textarea#chatMessage {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  resize: none;
  overflow-y: hidden;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  color: var(--text);
  padding: 8px 4px;
  max-height: 160px;
}

.chat-input-bar textarea#chatMessage::placeholder { color: var(--muted); }

.icon-button {
  background: var(--panel-2);
  border: none;
  color: var(--muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.icon-button:hover { color: var(--accent-strong); background: var(--accent-soft); }
.icon-button.active { color: var(--accent-strong); background: var(--accent-soft); }

.send-button {
  background: var(--accent);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}

.send-button:hover { background: var(--accent-strong); }
.send-button:active { transform: scale(0.95); }
.send-button:disabled { opacity: 0.55; cursor: wait; }
.send-button .btn-label { transform: translateX(1px); }

.spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.login-submit .spinner { border-color: rgba(255, 255, 255, 0.4); border-top-color: #fff; }

/* ===================== Attachments / slash menu ===================== */

.attachment-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 880px; width: 100%; margin: 0 auto 8px; }
.attachment-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  width: fit-content;
}

.attachment-chip button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

.attachment-chip button:hover { color: var(--danger); }
.attachment-thumb { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; vertical-align: middle; }

.slash-menu {
  position: absolute;
  bottom: 86px;
  left: 28px;
  right: 28px;
  max-width: 880px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.15s ease both;
  max-height: 260px;
  overflow-y: auto;
  z-index: 5;
}

.slash-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.slash-item:last-child { border-bottom: none; }
.slash-item:hover, .slash-item.highlighted { background: var(--accent-soft); }
.slash-item .name { font-size: 13px; font-weight: 600; color: var(--text); }
.slash-item .desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.inline-file-input { display: block; margin: 6px 0; font-size: 12.5px; padding: 7px; }
.inline-file-submit { margin-top: 4px; }

.run-button, .new-chat-inline, .secondary-button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 17px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.run-button:hover, .new-chat-inline:hover { background: var(--accent-strong); }
.run-button:active, .new-chat-inline:active { transform: scale(0.97); }
.run-button:disabled { opacity: 0.55; cursor: wait; }

.secondary-button { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.secondary-button:hover { background: var(--panel-2); border-color: var(--accent); color: var(--accent-strong); }

/* ===================== Output / tables ===================== */

.output {
  margin-top: 14px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px;
  font-size: 12.5px;
  font-family: "SF Mono", Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow: auto;
  animation: fadeUp 0.25s ease both;
  color: var(--text);
}

.output .k { color: var(--accent-strong); font-weight: 600; }
.output .s { color: #2fae6b; }
.output .n { color: #c9752b; }

.table-wrap { overflow-x: auto; }
table.result-table { border-collapse: collapse; width: 100%; font-size: 12px; }
table.result-table th, table.result-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
table.result-table th { color: var(--muted); font-weight: 650; background: var(--panel-2); position: sticky; top: 0; }

/* ===================== Animations ===================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 860px) {
  .login-screen { flex-direction: column; }
  .login-form-pane { width: 100%; }
  .suggestion-grid { grid-template-columns: 1fr; }
}
