/* Light Sand — Grok Bot.app shell */
:root {
  color-scheme: light;
  --bg-base: #fcfcfc;
  --bg-main: #ffffff;
  --bg-sidebar: #f7f7f7;
  --bg-row-hover: #efefef;
  --bg-row-selected: #ebebeb;
  --bg-search: #eeeeee;
  --bg-composer: #f2f2f2;
  --bubble-agent: #eeeeee;
  --bubble-user: #070707;
  --text-primary: #141414;
  --text-secondary: #777777;
  --text-tertiary: #959595;
  --text-on-user: #ffffff;
  --fill-primary: #141414;
  --fill-primary-hover: #262626;
  --text-on-primary: #ffffff;
  --border: #e8e8e8;
  --danger: #E34671;
  --accent: #1084fe;
  --accent-soft: #599CE7;
  --radius-pill: 9999px;
  --radius-row: 10px;
  --radius-input: 8px;
  --radius-bubble: 18px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --sidebar-width: 280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  background: var(--bg-base);
  color: var(--text-primary);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { color: var(--accent-soft); }

.app {
  display: flex;
  height: 100%;
  min-height: 100vh;
  background: var(--bg-main);
}

.sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  display: flex;
  flex-direction: column;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  min-height: 100vh;
}

.sidebar-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 8px;
}

.dir-sort {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dir-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-tertiary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.dir-sort-btn.on {
  background: var(--bg-search);
  color: var(--text-primary);
}

.dir-sort-arrow {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.16s ease;
}

.dir-sort-btn.asc .dir-sort-arrow {
  transform: rotate(225deg);
  margin-top: 2px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background: var(--bg-search);
  border-radius: var(--radius-pill);
  color: var(--text-tertiary);
  flex: 1;
  min-width: 0;
}

.search-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  height: 32px;
  min-height: 0;
  padding: 0;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 18px;
  outline: none;
  border-radius: 0;
}

.search input::placeholder { color: var(--text-tertiary); }

.dir {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 12px;
}

.section-label {
  margin: 10px 8px 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
  text-transform: none;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-row);
  color: inherit;
  min-height: 56px;
}

.row:hover {
  background: var(--bg-row-hover);
  color: inherit;
  text-decoration: none;
}

.row.selected {
  background: var(--bg-row-selected);
}

.row-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-icon .grok-face {
  width: 36px;
  height: 36px;
}

.row-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-snippet {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 11px;
  line-height: 16px;
  color: var(--text-tertiary);
  align-self: flex-start;
  margin-top: 2px;
  text-align: right;
}

.row-watchers {
  font-size: 10px;
  line-height: 14px;
  color: var(--text-tertiary);
  max-width: 72px;
}

.row.selected .row-meta { color: var(--text-secondary); }

.sidebar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
}

.profile {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
}

.profile:hover {
  color: inherit;
  text-decoration: none;
}

.avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar .grok-face {
  width: 28px;
  height: 28px;
}

.profile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 16px;
}

.profile-text span {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 14px;
}

.sidebar-foot .btn {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

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

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 52px;
}

.head-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.head-icon .grok-face {
  width: 32px;
  height: 32px;
}

.grok-face {
  display: block;
}

.chat-head h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  background: transparent;
}

.pill.live { color: var(--accent); }
.pill.offline { color: var(--text-tertiary); }

.pill.live::before,
.pill.offline::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: currentColor;
}

.viewers {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.chat-stage,
#chat {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 24px;
  background: var(--bg-main);
}

.chat-row {
  display: flex;
  width: fit-content;
  max-width: 72%;
  margin: 0 0 8px;
  padding: 8px 14px;
  border-radius: var(--radius-bubble);
  background: var(--bubble-agent);
  color: var(--text-primary);
}

.chat-row.bot,
.chat-row:not(.user) {
  align-self: flex-start;
  margin-right: auto;
}

.chat-row.user {
  margin-left: auto;
  background: var(--bubble-user);
  color: var(--text-on-user);
}

.chat-name { display: none; }

.chat-text {
  font-size: 13px;
  line-height: 18px;
  color: inherit;
  word-break: break-word;
  white-space: pre-wrap;
}

.placeholder {
  color: var(--text-tertiary);
  padding: 48px 8px;
  text-align: center;
  margin: 0;
}

.composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 16px 16px;
  pointer-events: none;
}

.composer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 6px 0 12px;
  background: var(--bg-composer);
  border-radius: var(--radius-pill);
}

.composer-plus {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 20px;
  font-weight: 400;
  line-height: 20px;
}

.composer-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  height: 44px;
  min-height: 0;
  padding: 0;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  border-radius: 0;
}

.composer-bar input:disabled {
  color: var(--text-tertiary);
  -webkit-text-fill-color: var(--text-tertiary);
  opacity: 1;
}

.composer-bar input::placeholder { color: var(--text-tertiary); }

.composer-send {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--fill-primary);
  color: var(--text-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.composer-send svg {
  width: 16px;
  height: 16px;
}

.note {
  margin: 0;
  padding: 8px 20px;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 18px;
}

.err { color: var(--text-primary); }

.empty {
  padding: 16px 10px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  height: 32px;
  padding: 0 12px;
  width: auto;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--fill-primary);
  color: var(--text-on-primary);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--fill-primary-hover);
  color: var(--text-on-primary);
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.5; cursor: wait; transform: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
}

.btn-ghost:hover {
  background: var(--bg-sidebar);
  color: var(--text-primary);
}

.btn-danger {
  color: var(--danger);
  border-color: #f3c5d2;
}

.btn-danger:hover {
  background: #fff5f8;
  color: var(--danger);
}

.main.settings {
  background: var(--bg-main);
}

.settings-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 40px 48px 64px;
  display: flex;
  justify-content: center;
}

.settings-card {
  width: min(480px, 100%);
  padding: 8px 0 32px;
}

.settings-card .lede {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 18px;
}

.settings-card h1 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  margin: 0 0 8px;
  color: var(--text-primary);
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: var(--text-secondary);
}

input {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 18px;
}

input:focus {
  outline: none;
  border-color: var(--accent);
}

input::placeholder { color: var(--text-tertiary); }

.keybox, .urlbox {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 20px;
  margin: 16px 0;
}

.keybox > div,
.urlbox > div {
  font-size: 13px;
  color: var(--text-secondary);
}

.keybox code, .urlbox code {
  display: block;
  margin: 8px 0 12px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  word-break: break-all;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--text-primary);
}

#stream-key,
.keybox code {
  color: var(--danger);
}

.warn {
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

textarea {
  width: 100%;
  min-height: 224px;
  margin: 8px 0 12px;
  padding: 8px 10px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  resize: vertical;
}

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

textarea::placeholder { color: var(--text-tertiary); }

form[hidden], section[hidden], [hidden] { display: none !important; }


.foot-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.sidebar-foot .btn-ghost {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.studio-id {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.studio-id .head-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.studio-id .head-icon .grok-face {
  width: 36px;
  height: 36px;
}

.studio-id h1 {
  margin-bottom: 4px;
}

.studio-id .lede {
  margin: 0;
}

.studio-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

#studio-last-text {
  margin: 8px 0 0;
  word-break: break-word;
}

#studio-fresh {
  padding: 8px 0 0;
}

.studio-account-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.studio-account-bar h1 { margin: 0 0 4px; }
.studio-account-bar .lede { margin: 0; }

.studio-switcher {
  display: grid;
  gap: 2px;
  margin: 0 0 24px;
}

.studio-switcher .row {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.studio-switcher .row:hover {
  background: var(--bg-row-hover);
}

.studio-switcher .row.selected {
  background: var(--bg-row-selected);
}

.studio-switcher .empty {
  padding: 8px 0;
}

.studio-sep {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

#studio-google-actions {
  margin-bottom: 8px;
}

#studio-gate .lede { margin-bottom: 16px; }


.field-kicker,
.row-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  line-height: 12px;
}

.row-kicker { display: inline; }

.row-owner {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-owner .row-kicker { color: var(--text-tertiary); }

.head-titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.head-titles h1 {
  flex: none;
}

.head-owner {
  margin: 0;
  font-size: 11px;
  line-height: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-head {
  height: auto;
  min-height: 52px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-basis: auto;
}

.studio-account-bar .field-kicker,
.studio-id .field-kicker {
  margin: 0 0 4px;
}

.studio-chats-label { margin: 0 0 8px; }

#studio-owner { margin-top: 2px; }

.row { align-items: flex-start; }
.row-icon { margin-top: 2px; }


body[data-page="studio"] .studio-wrap {
  padding: 24px 24px 48px;
  justify-content: stretch;
}

body[data-page="studio"] .studio-card {
  width: min(960px, 100%);
  padding-top: 8px;
}

.studio-gate {
  max-width: 480px;
  margin-bottom: 8px;
}

.studio-gate h1 {
  margin: 0 0 8px;
}

.studio-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.studio-workspace.has-account {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  margin-top: 8px;
}

.studio-col-nav {
  min-width: 0;
}

.studio-col-main {
  min-width: 0;
}

.studio-account-bar h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: var(--text-primary);
}

.studio-switcher {
  margin-bottom: 12px;
}

.studio-more {
  margin: 8px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.studio-more summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-primary);
  list-style: none;
}

.studio-more summary::-webkit-details-marker { display: none; }

.studio-more summary::after {
  content: "+";
  float: right;
  color: var(--text-tertiary);
  font-weight: 500;
}

.studio-more[open] summary::after { content: "–"; }

.studio-more form,
.studio-more .note,
.studio-more .actions {
  margin-top: 12px;
}

.label-hint {
  font-weight: 400;
  color: var(--text-tertiary);
}

.studio-empty {
  padding: 12px 0 24px;
}

.studio-empty h1 {
  margin: 0 0 8px;
}

.studio-primary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 16px;
}

.studio-danger {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.studio-danger .note {
  margin: 8px 0 12px;
}

@media (max-width: 860px) {
  .studio-workspace.has-account {
    grid-template-columns: 1fr;
  }
}


.label-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-help {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--text-secondary);
}

.tip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tip-mark {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

.tip-bubble {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 8;
  width: 240px;
  padding: 8px 10px;
  background: #141414;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-transform: none;
  letter-spacing: 0;
}

.tip:hover .tip-bubble,
.tip:focus .tip-bubble,
.tip:focus-within .tip-bubble {
  display: block;
}


label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

label.check input {
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
}

.studio-visibility {
  margin: 0 0 16px;
}

.studio-visibility .note {
  margin: 8px 0 0;
}


.chat-text .chat-link {
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}

.chat-img {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  border-radius: 12px;
}

.chat-audio {
  display: block;
  width: min(280px, 100%);
  margin-top: 8px;
}

.chat-row.user .chat-audio { filter: invert(1) hue-rotate(180deg); }


.studio-workspace.has-account {
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
}

.studio-col-nav,
.studio-col-main,
.studio-switcher,
.studio-account-bar,
.studio-id {
  min-width: 0;
  max-width: 100%;
}

.studio-switcher .row {
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

#studio-last-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.studio-chats-label {
  position: relative;
  z-index: 1;
}


.row a.row-name,
.row a.row-snippet,
.row a.row-meta,
.row a.row-icon {
  color: inherit;
  text-decoration: none;
}

.row-people {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.row-x,
.x-link,
.owner-link {
  color: var(--text-secondary);
  text-decoration: none;
}

.row-x {
  font-size: 12px;
  line-height: 16px;
}

.row-x:hover,
.x-link:hover,
.owner-link:hover,
.row-owner:hover {
  text-decoration: underline;
  color: var(--text-primary);
}

.head-owner a { color: inherit; }

.user-chats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 640px;
}

.user-chats .row {
  padding-left: 0;
}

.studio-x-form {
  margin: 0 0 20px;
}

.studio-x-form .actions {
  margin-top: 8px;
}

.studio-chats-label {
  margin: 8px 0 8px;
}

.studio-x-saved {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 4px 0 2px;
}

.studio-x-chip {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.studio-x-chip:hover {
  text-decoration: underline;
}

.nav-toggle,
.nav-scrim {
  display: none;
}

.nav-toggle {
  border: 0;
  background: transparent;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  padding: 0;
  flex: 0 0 36px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.28);
  z-index: 30;
}

@media (max-width: 800px) {
  html, body {
    height: 100%;
    height: 100dvh;
  }

  body {
    overflow: hidden;
  }

  .app {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    flex: none;
    min-height: 100dvh;
    height: 100dvh;
    max-height: none;
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    border-right: 1px solid var(--border);
  }

  body.nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.12);
  }

  body.nav-open .nav-scrim {
    display: block;
  }

  .main {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
  }

  .chat-head {
    padding-left: 10px;
    padding-right: 12px;
    gap: 8px;
  }

  .chat-head h1 {
    font-size: 15px;
  }

  .chat-stage,
  #chat {
    padding: 16px 14px 24px;
  }

  .chat-row {
    max-width: 88%;
  }

  .composer {
    padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  }

  .settings-wrap {
    padding: 20px 16px calc(40px + env(safe-area-inset-bottom));
  }

  body[data-page="studio"] .studio-wrap {
    padding: 16px 16px calc(32px + env(safe-area-inset-bottom));
  }

  .studio-workspace.has-account {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sidebar-foot {
    flex-wrap: wrap;
  }

  .btn {
    min-height: 40px;
    padding: 0 14px;
  }

  input, textarea, select {
    font-size: 16px;
  }

  .search input {
    font-size: 16px;
  }

  .dir-sort-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }


  /* Home is the chat list */
  body[data-page="home"] .sidebar {
    position: relative;
    transform: none;
    width: 100%;
    flex: 1 1 auto;
    height: 100dvh;
    box-shadow: none;
  }

  body[data-page="home"] .main,
  body[data-page="home"] .nav-toggle,
  body[data-page="home"] .nav-scrim {
    display: none !important;
  }
}

.go-steps {
  margin: 0 0 24px;
  padding: 0 0 0 18px;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 20px;
}

.go-steps li {
  margin: 0 0 6px;
}

.go-steps li:last-child {
  margin-bottom: 0;
}
