/* The GPUI web chat's first paint (crate::pages::gpui_chat): an outline in
   the canvas's own colors and layout, so the switch to the canvas doesn't
   jump. */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0d0d0d;
  color: #e5e5e5;
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.g-shell { display: flex; height: 100%; }
.g-side {
  display: flex;
  flex-direction: column;
  width: 272px;
  flex: none;
  padding: 18px 10px 16px;
  box-sizing: border-box;
}
.g-brand { padding: 0 8px 12px; font-size: 15px; font-weight: 600; }
.g-new, .g-row {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: #a1a1a1;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-new:hover, .g-row:hover { background: rgba(235, 235, 235, 0.07); color: #e5e5e5; }
.g-current { background: rgba(235, 235, 235, 0.11); color: #e5e5e5; }
.g-list { margin-top: 14px; overflow-y: auto; }
.g-main {
  flex: 1;
  min-width: 0;
  margin: 8px 8px 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #060606;
  display: flex;
  flex-direction: column;
}
.g-head {
  height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.g-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-status { margin: auto; color: #737373; font-size: 13px; }
.g-unsupported { margin: auto; max-width: 420px; padding: 24px; text-align: center; }
.g-unsupported[hidden] { display: none; }
.g-unsupported h2 { font-size: 18px; font-weight: 500; margin: 0 0 8px; }
.g-unsupported p { color: #a1a1a1; margin: 0 0 18px; }
.g-button {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 16px;
  background: #e5e5e5;
  color: #0e0e0e;
  font-weight: 500;
  text-decoration: none;
}
@media (max-width: 820px) {
  .g-side { display: none; }
  .g-main { margin: 8px; }
}

/* What the canvas doesn't draw yet (#12223): the HTML chat's own cards,
   over the canvas at the top right, only while there is something. */
.g-side-layer {
  position: fixed;
  z-index: 3;
  top: 64px;
  right: 20px;
  width: min(360px, calc(100vw - 40px));
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.g-side-layer > div:empty { display: none; }
.g-side-layer > div {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #121212;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.g-side-files > summary { cursor: pointer; color: #a1a1a1; font-size: 13px; }
.g-side-files[open] > summary { margin-bottom: 10px; }
.g-side-asks { display: flex; flex-direction: column; gap: 8px; }

/* The text view (#12220): readable to assistive technology while hidden,
   shown over the chat for find (Cmd+F or Ctrl+F) or from its button. */
.g-text {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: normal;
}
.g-text:focus-within, .g-text.g-open {
  z-index: 4;
  inset: 8px 8px 8px 280px;
  width: auto;
  height: auto;
  clip-path: none;
  overflow-y: auto;
  padding: 0 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #0b0b0b;
}
.g-text-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 0;
  background: #0b0b0b;
  text-align: right;
}
.g-text-toggle {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: transparent;
  color: #e5e5e5;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 820px) {
  .g-text:focus-within, .g-text.g-open { inset: 8px; }
}
