/* ─── ToldenAI · styles.css ─────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #09090e;
  --surface:     #101016;
  --surface2:    #17171f;
  --surface3:    #1e1e28;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.13);
  --gold:        #c8a84a;
  --gold-dim:    #896d2d;
  --gold-glow:   rgba(200,168,74,0.18);
  --gold-glow2:  rgba(200,168,74,0.07);
  --text:        #e6e2d8;
  --text-dim:    #888480;
  --text-faint:  #48454200;
  --text-faint2: #48454280;
  --red:         #bf4f4c;
  --green:       #5a9e68;
  --orange:      #d07830;
  --radius:      12px;
  --radius-lg:   18px;
  --sidebar-w:   282px;
  --topbar-h:    58px;
  --ease:        cubic-bezier(0.4,0,0.2,1);
  --t:           0.2s;
}

html, body { height: 100%; background: var(--bg); color: var(--text); font-family: 'Jost', sans-serif; font-weight: 300; line-height: 1.6; overflow: hidden; }

/* ── Ambient ─────────────────────────────────────────── */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.22; animation: drift 20s ease-in-out infinite alternate; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, #c8a84a 0%, transparent 70%); top: -160px; right: -120px; animation-duration: 22s; }
.orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, #384878 0%, transparent 70%); bottom: -110px; left: -90px; animation-duration: 28s; animation-delay: -9s; }
.orb-3 { width: 320px; height: 320px; background: radial-gradient(circle, #683858 0%, transparent 70%); top: 45%; left: 38%; animation-duration: 24s; animation-delay: -5s; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 56px 56px; opacity: 0.45; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(28px,18px) scale(1.07); } }

/* ── Layout ─────────────────────────────────────────── */
.app-shell { position: relative; z-index: 1; display: flex; height: 100vh; overflow: hidden; }

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden;
  transition: transform var(--t) var(--ease);
}
.sidebar.hidden { transform: translateX(calc(-1 * var(--sidebar-w))); }

.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 14px 16px; border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--gold), var(--gold-dim));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: #09090e;
  box-shadow: 0 0 22px var(--gold-glow);
}
.logo-name { display: block; font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--text); letter-spacing: 0.02em; }
.logo-tagline { display: block; font-size: 0.67rem; color: var(--text-dim); letter-spacing: 0.09em; text-transform: uppercase; margin-top: 1px; }

.icon-btn {
  background: none; border: 1px solid transparent; border-radius: 8px; color: var(--text-dim);
  cursor: pointer; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  transition: all var(--t) var(--ease); font-size: 0.82rem; flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface3); border-color: var(--border2); color: var(--text); }
.icon-btn svg { width: 15px; height: 15px; }

.new-chat-btn {
  display: flex; align-items: center; gap: 9px; margin: 12px 10px 2px;
  padding: 10px 13px; background: var(--gold-glow2); border: 1px solid var(--gold-dim);
  border-radius: var(--radius); color: var(--gold); font-family: 'Jost', sans-serif;
  font-size: 0.83rem; font-weight: 500; letter-spacing: 0.04em; cursor: pointer;
  transition: all var(--t) var(--ease);
}
.new-chat-btn:hover { background: var(--gold-glow); border-color: var(--gold); box-shadow: 0 0 18px var(--gold-glow); }
.new-chat-btn svg { width: 15px; height: 15px; }

.sidebar-label { padding: 13px 14px 5px; font-size: 0.67rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint2); }

/* Model selector */
.model-selector-wrap { display: flex; align-items: center; gap: 6px; margin: 0 10px 2px; }
.model-select {
  flex: 1; background: var(--surface2); border: 1px solid var(--border2); border-radius: 8px;
  padding: 8px 10px; color: var(--text); font-family: 'DM Mono', monospace; font-size: 0.78rem;
  cursor: pointer; outline: none; transition: border-color var(--t);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888480' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 10px;
  padding-right: 28px;
}
.model-select:focus { border-color: var(--gold-dim); }
.model-select option { background: var(--surface2); }

/* Usage panel */
.usage-panel { margin: 0 10px 2px; padding: 11px 13px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); }
.usage-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.usage-key { font-size: 0.74rem; color: var(--text-dim); }
.usage-val { font-family: 'DM Mono', monospace; font-size: 0.71rem; color: var(--text); }
.usage-bar-wrap { width: 100%; height: 3px; background: var(--surface3); border-radius: 2px; margin-bottom: 9px; overflow: hidden; }
.usage-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: 2px; transition: width 0.5s ease, background 0.3s; }
.usage-bar.warn   { background: linear-gradient(90deg, #a06828, var(--orange)); }
.usage-bar.danger { background: linear-gradient(90deg, #902828, var(--red)); }

/* History */
.history-list { flex: 1; overflow-y: auto; padding: 3px 7px; }
.history-list::-webkit-scrollbar { width: 3px; }
.history-list::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 2px; }
.history-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 8px;
  cursor: pointer; font-size: 0.79rem; color: var(--text-dim); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; border: 1px solid transparent;
  transition: all var(--t) var(--ease);
}
.history-item:hover { background: var(--surface2); border-color: var(--border); color: var(--text); }
.history-item.active { background: var(--gold-glow2); border-color: var(--gold-dim); color: var(--gold); }
.hdot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-faint2); flex-shrink: 0; }
.history-item.active .hdot { background: var(--gold); }

/* Footer */
.sidebar-footer { padding: 12px 14px; border-top: 1px solid var(--border); }
.api-status { display: flex; align-items: center; gap: 7px; font-size: 0.74rem; color: var(--text-dim); margin-bottom: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint2); transition: background 0.4s, box-shadow 0.4s; }
.status-dot.ok     { background: var(--green);  box-shadow: 0 0 7px var(--green); }
.status-dot.error  { background: var(--red);    box-shadow: 0 0 7px var(--red); }
.status-dot.pulse  { background: var(--orange); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

.footer-links { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.footer-link { background: none; border: none; color: var(--text-dim); font-family: 'Jost', sans-serif; font-size: 0.72rem; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; transition: color var(--t); }
.footer-link:hover { color: var(--gold); }
.footer-sep { color: var(--text-faint2); font-size: 0.7rem; }
.model-badge { font-family: 'DM Mono', monospace; font-size: 0.63rem; color: var(--text-faint2); letter-spacing: 0.04em; }

/* ── Main ────────────────────────────────────────────── */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

.topbar {
  height: var(--topbar-h); display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-bottom: 1px solid var(--border); background: rgba(9,9,14,0.75); backdrop-filter: blur(14px); flex-shrink: 0;
}
.topbar-title { flex: 1; font-size: 0.87rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.02em; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-model-pill {
  font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--gold);
  background: var(--gold-glow2); border: 1px solid var(--gold-dim);
  padding: 3px 9px; border-radius: 20px; letter-spacing: 0.04em; white-space: nowrap;
}

/* ── Chat viewport ───────────────────────────────────── */
.chat-viewport { flex: 1; overflow-y: auto; position: relative; scroll-behavior: smooth; }
.chat-viewport::-webkit-scrollbar { width: 4px; }
.chat-viewport::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 2px; }

/* ── Welcome ─────────────────────────────────────────── */
.welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; padding: 40px 20px; text-align: center; animation: fadeUp 0.55s ease both; }
.welcome-emblem { width: 78px; height: 78px; margin-bottom: 26px; color: var(--gold); opacity: 0.65; }
.welcome-emblem svg { width: 100%; height: 100%; }
.welcome-heading { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 400; color: var(--text); margin-bottom: 11px; line-height: 1.2; }
.welcome-heading em { color: var(--gold); font-style: italic; }
.welcome-sub { font-size: 0.9rem; color: var(--text-dim); max-width: 420px; margin-bottom: 24px; }

/* Ollama card */
.ollama-card {
  background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 13px 18px; margin-bottom: 28px; max-width: 480px; width: 100%; text-align: left;
}
.ollama-card-row { display: flex; align-items: center; gap: 9px; font-size: 0.83rem; color: var(--text-dim); }
.ollama-card-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint2); flex-shrink: 0; transition: background 0.4s, box-shadow 0.4s; }
.ollama-card-dot.ok    { background: var(--green);  box-shadow: 0 0 8px var(--green); }
.ollama-card-dot.error { background: var(--red);    box-shadow: 0 0 8px var(--red); }
.ollama-card-dot.pulse { background: var(--orange); animation: pulse 1.2s ease-in-out infinite; }

.ollama-setup { margin-top: 12px; font-size: 0.82rem; color: var(--text-dim); }
.ollama-setup p { margin-bottom: 8px; }
.ollama-setup ol { padding-left: 16px; }
.ollama-setup li { margin-bottom: 5px; }
.ollama-setup a { color: var(--gold); text-decoration: none; }
.ollama-setup a:hover { text-decoration: underline; }
.ollama-setup code { font-family: 'DM Mono', monospace; font-size: 0.8em; background: var(--surface3); border: 1px solid var(--border2); padding: 1px 6px; border-radius: 4px; color: var(--gold); }
.retry-btn { margin-top: 10px; padding: 7px 14px; background: var(--gold-glow2); border: 1px solid var(--gold-dim); border-radius: 8px; color: var(--gold); font-family: 'Jost', sans-serif; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all var(--t); }
.retry-btn:hover { background: var(--gold-glow); border-color: var(--gold); }

.suggestion-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 9px; width: 100%; max-width: 540px; }
.suggestion-card {
  display: flex; align-items: flex-start; gap: 9px; padding: 13px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; text-align: left; font-family: 'Jost', sans-serif; font-size: 0.79rem;
  color: var(--text-dim); transition: all var(--t) var(--ease);
}
.suggestion-card:hover { background: var(--surface2); border-color: var(--gold-dim); color: var(--text); box-shadow: 0 0 18px var(--gold-glow2); }
.s-icon { font-size: 0.95rem; color: var(--gold); flex-shrink: 0; line-height: 1.4; }

/* ── Messages ────────────────────────────────────────── */
.messages { padding: 20px 0 10px; }
.msg {
  display: flex; gap: 13px; padding: 14px 22px;
  animation: fadeUp 0.28s ease both; max-width: 840px; margin: 0 auto;
}
.msg.user { flex-direction: row-reverse; }
.msg-avatar {
  width: 31px; height: 31px; border-radius: 8px; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
}
.msg.ai   .msg-avatar { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #09090e; font-family: 'Playfair Display', serif; }
.msg.user .msg-avatar { background: var(--surface3); border: 1px solid var(--border2); color: var(--text-dim); }

.msg-body { flex: 1; min-width: 0; }
.msg-name { font-size: 0.71rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 5px; }
.msg.ai   .msg-name { color: var(--gold); }
.msg.user .msg-name { color: var(--text-dim); text-align: right; }

.msg-content { font-size: 0.89rem; line-height: 1.78; color: var(--text); }
.msg.user .msg-content { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 15px; display: inline-block; max-width: 100%; text-align: left; }
.msg-content p { margin-bottom: 9px; }
.msg-content p:last-child { margin-bottom: 0; }
.msg-content strong { font-weight: 500; color: var(--gold); }
.msg-content em { color: var(--text-dim); font-style: italic; }
.msg-content code { font-family: 'DM Mono', monospace; font-size: 0.81em; background: var(--surface3); border: 1px solid var(--border2); padding: 1px 6px; border-radius: 4px; color: var(--gold); }
.msg-content pre { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; margin: 9px 0; overflow-x: auto; }
.msg-content pre code { background: none; border: none; padding: 0; font-size: 0.81rem; color: var(--text-dim); }
.msg-content ul, .msg-content ol { padding-left: 17px; margin: 7px 0; }
.msg-content li { margin-bottom: 3px; }
.msg-time { font-family: 'DM Mono', monospace; font-size: 0.64rem; color: var(--text-faint2); margin-top: 5px; }
.msg.user .msg-time { text-align: right; }

/* Streaming cursor */
.stream-cursor::after { content: "▌"; color: var(--gold); animation: blink-cur 0.7s step-end infinite; margin-left: 1px; }
@keyframes blink-cur { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Typing dots */
.typing-dots { display: flex; gap: 5px; align-items: center; padding: 4px 0; }
.typing-dots span { width: 5px; height: 5px; background: var(--gold-dim); border-radius: 50%; animation: blink 1.2s ease-in-out infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity: 0.2; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

.msg-error { color: var(--red); font-size: 0.85rem; padding: 6px 0; }

/* ── Input area ─────────────────────────────────────── */
.input-area { padding: 0 14px 14px; border-top: 1px solid var(--border); background: rgba(9,9,14,0.82); backdrop-filter: blur(14px); flex-shrink: 0; }
.limit-bar { padding: 8px 10px 0; font-size: 0.74rem; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.input-wrapper { display: flex; align-items: flex-end; gap: 9px; background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 10px 11px; margin-top: 11px; transition: border-color var(--t), box-shadow var(--t); }
.input-wrapper:focus-within { border-color: var(--gold-dim); box-shadow: 0 0 22px var(--gold-glow2); }
.input-field { flex: 1; background: none; border: none; outline: none; resize: none; font-family: 'Jost', sans-serif; font-size: 0.89rem; font-weight: 300; color: var(--text); line-height: 1.5; max-height: 160px; overflow-y: auto; }
.input-field::placeholder { color: var(--text-faint2); }
.input-field::-webkit-scrollbar { width: 3px; }
.send-btn { width: 35px; height: 35px; border-radius: 9px; flex-shrink: 0; background: linear-gradient(135deg, var(--gold), var(--gold-dim)); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--t) var(--ease); opacity: 0.35; }
.send-btn:not(:disabled) { opacity: 1; }
.send-btn:not(:disabled):hover { box-shadow: 0 0 20px var(--gold-glow); transform: scale(1.06); }
.send-btn:disabled { cursor: not-allowed; }
.send-btn svg { width: 16px; height: 16px; color: #09090e; }
.input-meta { display: flex; justify-content: space-between; padding: 5px 3px 0; font-family: 'DM Mono', monospace; font-size: 0.64rem; color: var(--text-faint2); }

/* ── Modals ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  /* Let legal modals scroll within the overlay on short screens */
  overflow-y: auto;
}
.modal {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 38px 34px;
  max-width: 420px; width: 100%; text-align: center;
  box-shadow: 0 40px 80px rgba(0,0,0,0.65);
  animation: fadeUp 0.35s ease both;
  flex-shrink: 0;
}
.modal-emblem {
  width: 50px; height: 50px; margin: 0 auto 18px;
  background: linear-gradient(140deg, var(--gold), var(--gold-dim));
  border-radius: 12px; font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 600; color: #09090e;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 28px var(--gold-glow);
}
.limit-emblem { background: linear-gradient(140deg, var(--red), #8a2020); box-shadow: 0 0 28px rgba(191,79,76,0.3); }
.modal-title { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 400; margin-bottom: 11px; }
.modal-desc { font-size: 0.84rem; color: var(--text-dim); line-height: 1.65; margin-bottom: 18px; }
.modal-btn {
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border: none; border-radius: var(--radius); cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 0.88rem; font-weight: 500;
  color: #09090e; letter-spacing: 0.06em; transition: all var(--t) var(--ease);
}
.modal-btn:hover { box-shadow: 0 0 22px var(--gold-glow); transform: translateY(-1px); }
.modal-btn-secondary {
  padding: 12px 20px; background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius); cursor: pointer; font-family: 'Jost', sans-serif;
  font-size: 0.88rem; color: var(--text-dim); transition: all var(--t);
}
.modal-btn-secondary:hover { border-color: var(--red); color: var(--red); }

/* ── Legal modals ────────────────────────────────────── */
.legal-modal {
  max-width: 600px;
  /* Fixed height so the scroll area has room */
  height: min(88vh, 780px);
  padding: 28px 28px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Remove the inherited max-width override */
  max-height: none;
}
.legal-modal .modal-emblem { margin: 0 auto 12px; flex-shrink: 0; }
.legal-modal .modal-title  { text-align: center; margin-bottom: 14px; flex-shrink: 0; }

/* The scroll area fills whatever space is left between title and buttons */
.legal-scroll {
  flex: 1;
  min-height: 0;          /* critical: lets flex child shrink below content size */
  overflow-y: scroll;     /* always show scrollbar rail so user knows it scrolls */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--surface2);
  margin-bottom: 16px;
  /* Visible scrollbar on all browsers */
  scrollbar-width: thin;
  scrollbar-color: var(--surface3) transparent;
}
.legal-scroll::-webkit-scrollbar       { width: 6px; }
.legal-scroll::-webkit-scrollbar-track { background: transparent; }
.legal-scroll::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
.legal-scroll::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

.legal-body { font-size: 0.83rem; color: var(--text-dim); line-height: 1.75; }
.legal-body h3 {
  font-family: 'Playfair Display', serif; font-size: 0.97rem; font-weight: 400;
  color: var(--text); margin: 18px 0 6px;
}
.legal-body h3:first-of-type { margin-top: 0; }
.legal-body p  { margin-bottom: 9px; }
.legal-body ul, .legal-body ol { padding-left: 18px; margin: 6px 0 10px; }
.legal-body li { margin-bottom: 5px; }
.legal-body strong { color: var(--text); font-weight: 500; }
.legal-body code {
  font-family: 'DM Mono', monospace; font-size: 0.82em;
  background: var(--surface3); border: 1px solid var(--border2);
  padding: 1px 5px; border-radius: 4px; color: var(--gold);
}
.legal-body a { color: var(--gold); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-effective {
  font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--text-faint2);
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

/* Button row at the bottom — never scrolls away */
.legal-actions { display: flex; gap: 10px; flex-shrink: 0; }
.legal-actions .modal-btn           { flex: 1; }
.legal-actions .modal-btn-secondary { flex: 0 0 auto; }

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  .sidebar { position: fixed; top: 0; left: 0; height: 100%; z-index: 50; transform: translateX(calc(-1 * var(--sidebar-w))); }
  .sidebar.open { transform: translateX(0); }
  .suggestion-grid { grid-template-columns: 1fr 1fr; }
  .msg { padding: 11px 13px; }
  .legal-modal { height: 92vh; padding: 20px 16px 18px; }
  .legal-modal .legal-scroll { padding: 13px 14px; }
}
