/* ==========================================================================
   Vizzy 2.0 — full app-shell redesign
   Icon rail · centered conversation column · floating glass composer
   Brand: gold #E6C06A · blue #0083ff · Vizzy mascot
   ========================================================================== */

:root {
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
  --col: 780px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-mesh:
    radial-gradient(900px 480px at 68% -12%, rgba(0, 131, 255, .13), transparent 60%),
    radial-gradient(700px 420px at 12% 108%, rgba(230, 192, 106, .09), transparent 55%),
    radial-gradient(540px 340px at 96% 88%, rgba(94, 66, 244, .07), transparent 60%);
  --rail-bg: rgba(15, 17, 21, .72);
  --surface: #14171b;
  --surface-2: #1b1f25;
  --surface-3: #232830;
  --glass: rgba(20, 23, 28, .66);
  --text: #dbe1ea;
  --text-2: #949dab;
  --text-3: #626c7b;
  --heading: #f5f7fa;
  --hairline: rgba(219, 225, 234, .09);
  --hairline-strong: rgba(219, 225, 234, .18);
  --gold: #e6c06a;
  --gold-2: #f4d793;
  --gold-grad: linear-gradient(135deg, #f0cd7d, #d9a83f);
  --gold-text: #14171b;
  --blue: #4da3ff;
  --blue-deep: #0083ff;
  --green: #4ecf8e;
  --purple: #9d8cff;
  --user-grad: linear-gradient(135deg, #0a6cc4, #0083ff);
  --user-text: #f2f7fd;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .4);
  --shadow-lg: 0 28px 70px -18px rgba(0, 0, 0, .7), 0 8px 20px rgba(0, 0, 0, .45);
  --ring: 0 0 0 3px rgba(0, 131, 255, .35);
  --grad-text: linear-gradient(100deg, #f0cd7d 10%, #e6c06a 40%, #4da3ff 90%);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f4f8;
  --bg-mesh:
    radial-gradient(900px 480px at 68% -12%, rgba(10, 108, 196, .1), transparent 60%),
    radial-gradient(700px 420px at 12% 108%, rgba(184, 134, 11, .08), transparent 55%),
    radial-gradient(540px 340px at 96% 88%, rgba(94, 66, 244, .05), transparent 60%);
  --rail-bg: rgba(255, 255, 255, .74);
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --surface-3: #e9edf3;
  --glass: rgba(255, 255, 255, .72);
  --text: #222b38;
  --text-2: #5b6575;
  --text-3: #8d95a3;
  --heading: #0c1322;
  --hairline: rgba(12, 19, 34, .08);
  --hairline-strong: rgba(12, 19, 34, .18);
  --gold: #b8860b;
  --gold-2: #8a6512;
  --gold-grad: linear-gradient(135deg, #d9a83f, #b8860b);
  --gold-text: #fffaf0;
  --blue: #0a6cc4;
  --blue-deep: #0a6cc4;
  --green: #1d9e63;
  --purple: #6d5bd0;
  --user-grad: linear-gradient(135deg, #0a6cc4, #1c86e0);
  --user-text: #f2f7fd;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .07);
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, .14), 0 2px 8px rgba(15, 23, 42, .06);
  --shadow-lg: 0 28px 70px -18px rgba(15, 23, 42, .2), 0 8px 20px rgba(15, 23, 42, .07);
  --ring: 0 0 0 3px rgba(10, 108, 196, .28);
  --grad-text: linear-gradient(100deg, #b8860b 10%, #a06f0e 45%, #0a6cc4 90%);
}

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--bg-mesh);
  background-attachment: fixed;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

button { font-family: inherit; }
a { color: var(--gold); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--gold-2); }

:is(a, button, textarea):focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

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

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 276px;
  padding: 14px 12px 14px;
  background: var(--rail-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--hairline);
  z-index: 40;
  transition: width .22s var(--ease), padding .22s var(--ease);
}

/* ---- collapsed state: shrink to icon rail ---- */
.app.collapsed .sidebar { width: 68px; padding: 14px 10px; }
.app.collapsed .sb-label { display: none; }
.app.collapsed .sb-head { justify-content: center; }
.app.collapsed .sb-collapse { position: static; }
.app.collapsed .sb-brand { display: none; }
.app.collapsed .sb-new,
.app.collapsed .sb-search,
.app.collapsed .sb-nav a,
.app.collapsed .sb-foot-btn,
.app.collapsed .sb-account { justify-content: center; padding-left: 0; padding-right: 0; }

.sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 10px;
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sb-brand img { border-radius: var(--r-pill); }
.sb-brand-name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
}

.sb-collapse {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.sb-collapse svg { width: 17px; height: 17px; }
.sb-collapse:hover { color: var(--heading); background: var(--surface-2); }

.sb-new {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--heading);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.sb-new svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--gold); }
.sb-new kbd {
  margin-left: auto;
  padding: 1px 7px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: transparent;
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-3);
}
.sb-new:hover { background: var(--surface-3); border-color: var(--hairline-strong); }

.sb-search {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 6px;
  padding: 9px 14px;
  border-radius: var(--r-md);
  color: var(--text-3);
  transition: background-color .18s var(--ease);
}
.sb-search:focus-within { background: var(--surface-2); }
.sb-search svg { width: 16px; height: 16px; flex-shrink: 0; }
.sb-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
}
.sb-search input::placeholder { color: var(--text-3); }
.sb-search input:focus { outline: none; box-shadow: none; }

.sb-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.sb-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 550;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.sb-nav a svg { width: 17px; height: 17px; flex-shrink: 0; }
.sb-nav a:hover { color: var(--heading); background: var(--surface-2); }
.sb-nav a.active { color: var(--gold); background: var(--surface-2); }

/* ---- recents ---- */

.sb-recents {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  overflow: hidden;
}

.sb-recents h5 {
  margin: 0 0 4px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-3);
}

#sharedWrap { margin-bottom: 14px; }

.sb-recents ul {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) transparent;
}

.sb-item {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: var(--r-md);
}
.sb-item > button.sb-item-title {
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  border: none;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.sb-item:hover > button.sb-item-title,
.sb-item.active > button.sb-item-title { color: var(--heading); background: var(--surface-2); }
.sb-item.active > button.sb-item-title { font-weight: 600; }

.sb-item-actions {
  position: absolute;
  right: 4px;
  display: none;
  gap: 2px;
}
.sb-item:hover .sb-item-actions,
.sb-item.active .sb-item-actions { display: flex; }
.sb-item-actions button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--text-2);
  cursor: pointer;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.sb-item-actions button svg { width: 13px; height: 13px; }
.sb-item-actions button:hover { color: var(--heading); }
.sb-item-actions button.del:hover { color: #e5766d; background: rgba(229, 118, 109, .12); }

.sb-item input.rename {
  flex: 1;
  min-width: 0;
  margin: 2px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--blue-deep) 55%, transparent);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--heading);
  font-family: var(--font);
  font-size: 13.5px;
}
.sb-item input.rename:focus { outline: none; }

.sb-empty {
  padding: 4px 14px;
  font-size: 13px;
  color: var(--text-3);
}

/* ---- sidebar footer ---- */

.sb-foot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

.sb-foot-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  border: none;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.sb-foot-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.sb-foot-btn:hover { color: var(--heading); background: var(--surface-2); }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.sb-account {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border: none;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s var(--ease);
}
.sb-account:hover { background: var(--surface-2); }

.sb-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--user-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 35;
}

.hamburger {
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.hamburger svg { width: 19px; height: 19px; }
.hamburger:hover { color: var(--heading); background: var(--surface-2); }

.account-menu {
  position: absolute;
  bottom: 4px;
  left: 240px;
  min-width: 210px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(-6px) scale(.98);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity .16s var(--ease), transform .16s var(--ease);
  z-index: 60;
}
.account-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu-head {
  padding: 9px 12px 8px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--heading);
}
.menu-head small { display: block; font-size: 12px; font-weight: 400; color: var(--text-3); }
.account-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.account-menu a:hover { background: var(--surface-2); color: var(--heading); }
.account-menu a.danger { color: #e5766d; }
.account-menu a.danger:hover { background: rgba(229, 118, 109, .1); }
.account-menu .divider { height: 1px; margin: 6px 8px; background: var(--hairline); }

/* ==========================================================================
   Main column
   ========================================================================== */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--hairline);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}
.crumb-title { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--heading); }
.crumb-sep { color: var(--text-3); }
.crumb-sub { color: var(--text-2); font-weight: 500; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 45%, transparent); }
  55% { box-shadow: 0 0 0 5px transparent; }
}

.topbar-actions { display: flex; align-items: center; gap: 9px; }

.slack-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.slack-btn:hover,
.ghost-btn:hover { color: var(--heading); background: var(--surface-2); border-color: var(--hairline-strong); }

/* ==========================================================================
   Stage (hero + thread)
   ========================================================================== */

.stage {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) transparent;
}

/* ---------- Hero / empty state ---------- */

.hero {
  max-width: var(--col);
  margin: 0 auto;
  padding: 7vh 24px 24px;
  text-align: center;
  animation: rise .5s var(--ease) both;
}

[data-state="chat"] .hero { display: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.mascot {
  position: relative;
  display: inline-block;
  margin-bottom: 22px;
}

.mascot img {
  position: relative;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .4));
  animation: float 6s ease-in-out infinite;
}

.mascot-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 131, 255, .2), transparent 68%);
  z-index: 0;
}

.mascot-orbit {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--gold) 45%, transparent);
  animation: spin 26s linear infinite;
  z-index: 1;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--heading);
}

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 520px;
  margin: 0 auto 34px;
  font-size: 15.5px;
  color: var(--text-2);
}

/* ---------- Suggestion cards ---------- */

.suggests {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: left;
}

.suggest {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease),
              transform .18s var(--ease), box-shadow .18s var(--ease);
}
.suggest:hover {
  border-color: color-mix(in srgb, var(--blue-deep) 55%, transparent);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.suggest-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
}
.suggest-icon svg { width: 19px; height: 19px; }
.si-blue   { background: color-mix(in srgb, var(--blue-deep) 14%, transparent); color: var(--blue); }
.si-gold   { background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
.si-green  { background: color-mix(in srgb, var(--green) 13%, transparent); color: var(--green); }
.si-purple { background: color-mix(in srgb, var(--purple) 14%, transparent); color: var(--purple); }

.suggest-text { display: flex; flex-direction: column; gap: 1px; }
.suggest-text strong { font-size: 14px; font-weight: 650; color: var(--heading); }
.suggest-text small { font-size: 12.5px; color: var(--text-2); }

/* ---------- Thread ---------- */

.thread {
  max-width: var(--col);
  margin: 0 auto;
  padding: 26px 24px 20px;
}

[data-state="empty"] .thread { display: none; }

.msg {
  display: flex;
  gap: 13px;
  margin-bottom: 26px;
  animation: msg-in .3s var(--ease) both;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.msg-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
}
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }

.msg-content { min-width: 0; flex: 1; }

.msg-name {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 4px;
}
.msg-name strong {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--heading);
}
.msg-name time { font-size: 11.5px; color: var(--text-3); }

/* Vizzy: open text on the page, no bubble */
.msg.agent .msg-body {
  font-size: 15px;
  color: var(--text);
}
.msg.agent .msg-body p { margin: 0 0 10px; }
.msg.agent .msg-body p:last-child { margin: 0; }
.msg.agent .msg-body code {
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-3);
  font-size: .88em;
}

/* User: compact right-aligned gradient bubble */
.msg.user {
  flex-direction: row-reverse;
  margin-left: 15%;
}
.msg.user .msg-avatar {
  display: grid;
  place-items: center;
  border: none;
  background: var(--user-grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.msg.user .msg-content { display: flex; flex-direction: column; align-items: flex-end; }
.msg.user .msg-name { display: none; }
.msg.user .msg-body {
  padding: 10px 16px;
  border-radius: var(--r-lg);
  border-bottom-right-radius: 6px;
  background: var(--user-grad);
  color: var(--user-text);
  font-size: 14.5px;
  box-shadow: var(--shadow-sm);
}
.msg.user .msg-body p { margin: 0; }

/* typing */
.typing-dots { display: inline-flex; gap: 5px; padding: 6px 0; }
.typing-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
  animation: bounce 1.2s infinite;
}
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: none; opacity: .4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ==========================================================================
   Dock / composer
   ========================================================================== */

.dock {
  padding: 8px 24px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 55%, transparent);
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: var(--col);
  margin: 0 auto;
  padding: 9px 9px 9px 20px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-xl);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.composer:focus-within {
  border-color: color-mix(in srgb, var(--blue-deep) 60%, transparent);
  box-shadow: var(--shadow), var(--ring);
}

.composer textarea {
  flex: 1;
  max-height: 170px;
  padding: 8px 0;
  border: none;
  background: transparent;
  resize: none;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.composer textarea::placeholder { color: var(--text-3); }
.composer textarea:focus { outline: none; box-shadow: none; }

.send {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--gold-grad);
  color: var(--gold-text);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), opacity .18s var(--ease);
}
.send:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 18px -4px color-mix(in srgb, var(--gold) 55%, transparent);
}
.send:active:not(:disabled) { transform: none; }
.send:disabled { opacity: .35; cursor: not-allowed; }

.dock-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  max-width: var(--col);
  margin: 9px auto 0;
  font-size: 11.5px;
  color: var(--text-3);
}
.dock-hint a { color: var(--text-3); font-weight: 500; }
.dock-hint a:hover { color: var(--text); }
.dock-hint .dot { opacity: .5; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 288px !important;
    transform: translateX(-100%);
    transition: transform .24s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .app.sb-open .sidebar { transform: none; }
  .app.sb-open .scrim { display: block; }
  .app.collapsed .sb-label { display: initial; }
  .app.collapsed .sb-brand { display: flex; }
  .sb-collapse { display: none; }
  .hamburger { display: grid; }

  .topbar { padding: 12px 16px; }
  .crumb-sub, .slack-btn { display: none; }

  .hero { padding-top: 4vh; }
  .suggests { grid-template-columns: 1fr; }
  .msg.user { margin-left: 8%; }
  .dock { padding: 8px 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
