/* Near-black and a cyan-leaning blue, with the same serif and monospace as
   alejodev.com (site/assets/style.css) so the two read as one site. Flat
   color throughout -- no gradients or glows. Holidays swap the colors
   (holidays/holidays.css). */
:root {
  /* The accent as "r g b", for its see-through tints: rgb(var(--accent-rgb) / 0.08). */
  --accent-rgb: 74 168 222;
  --bg: #06090d;
  --bg-elevated: #0d131a;
  --bg-soft: #121b25;
  --panel: #0d131a;
  --line: rgb(var(--accent-rgb) / 0.14);
  --line-strong: rgb(var(--accent-rgb) / 0.26);
  --text: #edf5ff;
  --muted: #9db5cb;
  --muted-2: #7d93ae;
  --accent: #4aa8de;
  --accent-strong: #8fd0f2;
  --accent-deep: #1f5f99;
  --sidebar-bg: #080c11;
  --bar: var(--bg);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

button, textarea {
  font: inherit;
}

.app.shell {
  display: flex;
  width: 100%;
  height: 100vh;
  /* On phones 100vh includes the space under the browser's address bar, so
     the page overflows and the top bar scrolls out of view. */
  height: 100dvh;
  background: var(--bg);
}

.sidebar {
  --sidebar-width: 270px;
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 12px;
  gap: 18px;
  overflow: hidden;
}

/* Contents keep their full width while the sidebar narrows, so they slide
   out of view instead of re-wrapping mid-animation. */
.sidebar > * {
  width: calc(var(--sidebar-width) - 28px);
  flex-shrink: 0;
}

.sidebar > .nav-section {
  flex-shrink: 1;
}

/* Only animate once the saved state is applied, so a collapsed sidebar
   doesn't visibly slide shut on page load. */
.app.sidebar-ready .sidebar {
  transition: width 0.2s ease, padding 0.2s ease, border-color 0.2s ease, visibility 0s;
}

.app.sidebar-collapsed .sidebar {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  border-right-color: transparent;
  visibility: hidden; /* keeps hidden links out of the Tab order */
}

.app.sidebar-ready.sidebar-collapsed .sidebar {
  transition: width 0.2s ease, padding 0.2s ease, border-color 0.2s ease, visibility 0s linear 0.2s;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.sidebar-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.01em;
}

/* A tiny slate: an "S" chalked in a blue frame. */
.brand-mark {
  width: 26px;
  height: 21px;
  border-radius: 2px;
  border: 2px solid var(--accent);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font: 600 12px/1 var(--serif);
  color: var(--text);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 9px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

#newChatBtn::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  margin-right: 6px;
  color: var(--muted);
  font-family: var(--mono);
}

.nav-item:hover,
.nav-item.active {
  background: rgb(var(--accent-rgb) / 0.08);
  border-color: var(--accent);
  color: var(--text);
}

.nav-item.muted {
  opacity: 0.8;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
  min-height: 0;
  flex: 1;
}

.section-label {
  font: 13px/1 var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 6px 6px;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  min-height: 0;
}

/* The open chat is marked by a rule on its left, like a margin note. */
.recent-item {
  padding: 8px 12px;
  border-radius: 0;
  border: none;
  border-left: 2px solid transparent;
  background: none;
  color: #c3d3e2;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-item:hover {
  border-left-color: var(--line-strong);
  color: var(--text);
}

.recent-empty {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 15px;
}

.recent-item.active {
  border-left-color: var(--accent);
  background: var(--bg-elevated);
  color: var(--text);
}

/* A chat's entry while it's being renamed from the right-click menu. */
.recent-item.recent-rename {
  width: 100%;
  border: 1px solid var(--accent);
  background: rgb(var(--accent-rgb) / 0.1);
  color: var(--text);
  font-family: inherit;
  outline: none;
  text-overflow: clip;
  cursor: text;
}

/* The right-click menu on Recents. */
.context-menu {
  position: fixed;
  z-index: 50;
  min-width: 150px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--bg-elevated);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.context-menu[hidden] {
  display: none;
}

.context-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 2px;
  background: none;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.context-menu button:hover:not(:disabled),
.context-menu button:focus-visible:not(:disabled) {
  outline: none;
  background: var(--bg-soft);
}

.context-menu button:disabled {
  opacity: 0.45;
  cursor: default;
}

.profile-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
}

/* Which model is answering, and the About button, just above the user. */
.model-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 8px 8px;
  border-top: 1px solid var(--line);
}

.model-row + .profile-row {
  margin-top: 0;
  padding-top: 2px;
  border-top: none;
}

.model-info {
  min-width: 0;
  color: var(--muted);
  font: 13px/1.4 var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-label::after {
  content: ": ";
}

.model-name {
  color: var(--text);
}

.about-btn {
  flex-shrink: 0;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font: 13px/1.4 var(--mono);
  cursor: pointer;
}

.about-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

/* The About window. */
.about-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.about-dialog[open] {
  display: flex;
  flex-direction: column;
}

.about-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.about-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 6px;
}

.about-titlebar h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.about-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.about-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.about-body {
  overflow-y: auto;
  padding: 4px 20px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.about-lead {
  color: var(--text);
}

.about-body h3 {
  margin: 18px 0 6px;
  color: var(--muted-2);
  font: 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-body ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 18px;
}

.about-body strong {
  color: var(--text);
  font-weight: 600;
}

.about-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  background: var(--bg-soft);
  color: var(--text);
}

.about-actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
}

.about-ok {
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  cursor: pointer;
}

.about-ok:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--text);
}

/* Your picture: click it to upload or remove one. */
.avatar-btn {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  overflow: hidden;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A camera on hover, so it's clear the picture can be changed. */
.avatar-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-2.5h6L17 8h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.2'/%3E%3C/svg%3E")
      no-repeat center / 16px,
    rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.avatar-btn:hover,
.avatar-btn:focus-visible,
.avatar-btn[aria-expanded="true"] {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgb(var(--accent-rgb) / 0.25);
}

.avatar-btn:hover::after {
  opacity: 1;
}

.context-menu button[hidden],
.menu-note[hidden] {
  display: none;
}

.menu-note {
  max-width: 220px;
  padding: 6px 10px 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bar);
}

.title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  /* Stops a long chat title short of the centered AlejoDev link. */
  max-width: calc(50% - 90px);
}

/* The chat's name is already in Recents (renamed from there too); main.ts
   still writes to this, so it stays in the page, just not shown. */
.title-pill {
  display: none;
}

/* Back to the portfolio, in its serif, centered in the top bar. */
.home-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 6px;
  color: var(--text);
  font: 600 23px/1 var(--serif);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.home-link:hover {
  color: var(--accent);
}

.share-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--accent);
}

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

.theme-picker {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%239db5cb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 8px center / 12px;
  color: var(--text);
  border-radius: 4px;
  padding: 6px 28px 6px 10px;
  font: inherit;
  cursor: pointer;
}

.theme-picker:hover {
  border-color: var(--accent);
}

.theme-picker:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* The open list is drawn by the browser -- keep it dark to match. */
.theme-picker option {
  background: var(--bg-elevated);
  color: var(--text);
}

.chat {
  flex: 1;
  overflow-y: auto;
  padding: 26px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}

.chat::-webkit-scrollbar {
  width: 8px;
}

.chat::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 0;
}

/* One column down the middle, read like a transcript: each message has a
   small label over it, yours on the right. */
.msg {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  animation: pop 0.18s ease;
}

.msg.user {
  align-items: flex-end;
}

.msg.bot {
  align-items: flex-start;
}

.msg.user::before,
.msg.bot:not(.greeting, .typing)::before {
  margin-bottom: 6px;
  color: var(--muted-2);
  font: 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.msg.user::before {
  content: "You";
}

.msg.bot:not(.greeting, .typing)::before {
  content: "Slate";
  color: var(--accent);
}

.msg.greeting {
  align-items: center;
  margin-top: 8px;
  margin-bottom: 8px;
}

.msg .bubble {
  max-width: 85%;
  width: fit-content;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.8;
  font-size: 17px;
  color: var(--text);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.msg.user .bubble {
  background: rgb(var(--accent-rgb) / 0.1);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 10px 16px;
}

.msg.bot .bubble {
  color: var(--text);
  width: 100%;
  max-width: none;
  text-align: left;
  padding: 0;
  font-weight: 400;
}

.msg.greeting .bubble {
  width: auto;
  max-width: 480px;
  background: transparent;
  border: none;
  padding: 12px 16px;
  text-align: center;
  color: var(--text);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
}

.msg .avatar {
  display: none;
}

.typing .bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--muted);
  animation: bounce 1s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.12s; }
.typing span:nth-child(3) { animation-delay: 0.24s; }

.typing-status {
  margin-left: 8px;
  color: var(--muted);
  font-size: 14px;
}

.msg .bubble .source {
  margin-top: 10px;
  font: 14px/1.5 var(--mono);
  color: var(--muted);
}

.msg .bubble a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  word-break: break-all;
}

.msg .bubble a.link-card {
  display: flex;
  gap: 14px;
  align-items: stretch;
  max-width: 560px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  white-space: normal;
  word-break: normal;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.msg .bubble a.link-card[hidden] {
  display: none;
}

.msg .bubble a.link-card:hover {
  border-color: var(--accent);
}

.msg .bubble .reply-time {
  margin-top: 8px;
  font: 12px/1.4 var(--mono);
  color: var(--muted-2);
}

.link-card-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--bg-soft);
}

/* The basic card, for a page that can't be previewed: the site's icon and
   name, sized to fit them. */
.msg .bubble a.link-card.is-basic {
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.link-card-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}

.link-card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  justify-content: center;
}

.link-card-site {
  font: 12px/1.4 var(--mono);
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-card-desc {
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.msg .bubble img.attachment {
  display: block;
  margin-top: 12px;
  max-width: 100%;
  max-height: 420px;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
}

/* An image the user attached, above the text of their message. */
.msg.user .bubble img.attachment {
  margin: 0 0 10px;
  max-height: 280px;
}

.msg.user .bubble.image-only {
  padding: 6px;
}

.msg.user .bubble.image-only img.attachment {
  margin: 0;
  border: none;
  border-radius: 2px;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}

.suggestions[hidden] {
  display: none;
}

.chip {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* The message box lines up with the messages' column above it. */
.composer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 12px max(14px, calc((100% - 720px) / 2)) 6px;
  border-top: 1px solid var(--line);
  background: var(--bar);
}

.disclaimer {
  margin: 0;
  padding: 4px 14px 10px;
  text-align: center;
  font: 12px/1.4 var(--mono);
  color: var(--muted-2);
  background: var(--bar);
}

/* ---- Start view: an empty chat shows a centered greeting with the message
   box and suggestions under it, instead of an empty chat area. The first
   message sent switches back to the normal layout. ---- */
.hero {
  display: none;
}

.workspace.is-empty .chat {
  display: none;
}

.workspace.is-empty .hero {
  display: block;
  order: 1;
  margin-top: auto; /* with the suggestions' margin-bottom, centers the group */
  padding: 0 16px 26px;
  text-align: center;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

.workspace.is-empty .composer {
  order: 2;
  align-self: center;
  width: min(720px, calc(100% - 32px));
  padding: 0;
  border-top: none;
  background: none;
}

.workspace.is-empty .composer textarea {
  padding-right: 16px;
  padding-left: 50px;
}

.workspace.is-empty .suggestions {
  order: 3;
  justify-content: center;
  margin-bottom: auto;
  padding: 22px 16px 0;
}

/* Without the suggestions under it, the message box takes their place in
   centering the group. */
.workspace.is-empty .suggestions[hidden] + .composer {
  margin-bottom: auto;
}

.workspace.is-empty .disclaimer {
  order: 4;
  background: none;
}

textarea {
  flex: 1;
  resize: none;
  max-height: 140px;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  line-height: 1.5;
  outline: none;
  transition: border-color 0.15s ease;
}

textarea::placeholder {
  color: var(--muted-2);
}

textarea:focus {
  border-color: var(--accent);
}

/* The one solid block of color on the page. */
button.send {
  min-height: 50px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

button.send:hover:not(:disabled) {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

button.send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* The text box, with the "+" attach button sitting inside its left edge. */
.input-wrap {
  flex: 1;
  position: relative;
  display: flex;
}

.input-wrap textarea {
  padding-left: 46px;
}

.attach-btn {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.attach-btn:hover {
  background: var(--bg-soft);
  color: var(--text);
}

/* Its own row above the text box (the composer wraps). */
.attachment-preview {
  flex-basis: 100%;
  display: flex;
  align-items: flex-start;
}

.attachment-preview[hidden] {
  display: none;
}

.attachment-preview img {
  display: block;
  max-height: 88px;
  max-width: 160px;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
}

.attachment-remove {
  margin-left: -12px;
  margin-top: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.attachment-error,
.attachment-busy {
  font-size: 13px;
  color: var(--muted);
}

.attachment-busy {
  font-style: italic;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .sidebar {
    --sidebar-width: 220px;
  }
}

@media (max-width: 680px) {
  .sidebar,
  .sidebar-toggle {
    display: none;
  }

  .chat {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar {
    gap: 10px;
    padding: 12px 12px 10px;
  }

  /* No room to center it next to the theme menu: it goes on the left. */
  .title-wrap {
    display: none;
  }

  .home-link {
    position: static;
    transform: none;
    margin-right: auto;
    padding: 4px 0;
    font-size: 19px;
  }

  .topbar-actions {
    flex-shrink: 0;
  }

  .theme-picker {
    max-width: 150px;
    text-overflow: ellipsis;
  }

  /* Not wired up to anything yet. */
  .share-btn {
    display: none;
  }

  /* Under 16px, phones zoom the page in when the box is tapped. */
  textarea {
    font-size: 16px;
  }

  .composer {
    padding-left: 10px;
    padding-right: 10px;
  }

  .suggestions {
    padding-left: 10px;
    padding-right: 10px;
  }
}
