:root{
  --background:#f7f7f8;
  --surface:#ffffff;
  --surface-subtle:#f3f4f6;
  --border:#e5e7eb;
  --border-strong:#d1d5db;
  --text:#111827;
  --muted:#6b7280;
  --muted-strong:#4b5563;
  --accent:#2563eb;
  --accent-soft:#eff6ff;
  --accent-text:#ffffff;
  --danger:#b42318;
  --success:#027a48;
  --warning:#b54708;
  --radius:6px;
}

*{
  box-sizing:border-box;
}

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

body{
  min-height:100vh;
  background:var(--background);
  color:var(--text);
  font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;
  line-height:1.5;
  overflow-x:hidden;
}

body.settings-open{
  overflow:hidden;
}

button,
textarea,
input{
  font:inherit;
}

button{
  border:0;
  background:none;
  color:inherit;
}

textarea,
input{
  color:inherit;
}

img{
  display:block;
  max-width:100%;
}

a{
  color:inherit;
}

[hidden]{
  display:none !important;
}

#appShell{
  min-height:100vh;
  display:grid;
  grid-template-columns:264px minmax(0,1fr);
  background:var(--surface);
}

#sidebar{
  min-width:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:18px 16px;
  border-right:1px solid var(--border);
  background:var(--background);
}

.sidebar-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand-block{
  min-width:0;
}

.brand-mark{
  font-size:16px;
  font-weight:650;
  letter-spacing:0;
}

.meta-label{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.workspace-card{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:0 0 16px;
  border-bottom:1px solid var(--border);
}

.workspace-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:12px;
}

.workspace-card strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:550;
}

.workspace-card p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.status-pill,
.sidebar-note{
  display:inline;
  padding:0;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  font-weight:400;
  white-space:nowrap;
}

.sidebar-section,
.sidebar-library,
#sessions{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.sidebar-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.sidebar-title{
  color:var(--muted);
  font-size:12px;
  font-weight:550;
}

.icon-button,
.session-delete,
.attachment-remove{
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  border:1px solid transparent;
  border-radius:var(--radius);
  color:var(--muted);
  cursor:pointer;
}

.icon-button:hover,
.session-delete:hover,
.attachment-remove:hover{
  border-color:var(--border);
  background:var(--surface);
  color:var(--text);
}

#sessions{
  flex:1;
  min-height:0;
  overflow:auto;
}

.sidebar-empty{
  padding:6px 0;
  color:var(--muted);
  font-size:13px;
}

.sidebar-file,
.session{
  width:100%;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:7px 8px;
  border-radius:var(--radius);
  color:var(--muted-strong);
  text-align:left;
  cursor:pointer;
}

.sidebar-file:hover,
.sidebar-file:focus-visible,
.session:hover,
.session:focus-visible,
.session.active{
  outline:none;
  background:var(--surface);
  color:var(--text);
}

.sidebar-file-copy,
.session-copy{
  min-width:0;
  display:flex;
  flex:1;
  flex-direction:column;
  gap:1px;
}

.sidebar-file-copy strong,
.session-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:500;
}

.sidebar-file-copy span,
.session-copy span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:12px;
}

#workspace{
  min-width:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--surface);
}

#topbar{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 22px;
  border-bottom:1px solid var(--border);
  background:var(--surface);
}

.topbar-copy{
  min-width:0;
}

.topbar-meta{
  display:flex;
  flex-wrap:wrap;
  gap:0;
  color:var(--muted);
  font-size:12px;
}

.topbar-meta span + span::before{
  content:"·";
  margin:0 7px;
  color:var(--border-strong);
}

#chatTitle{
  margin:2px 0 0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:24px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:0;
}

#topbarSubtitle{
  margin:2px 0 0;
  color:var(--muted);
  font-size:12px;
}

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

.primary-button,
.secondary-button,
.mode-button,
.suggestion-chip,
.preset-button,
.message-action,
.auth-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 10px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  color:var(--text);
  cursor:pointer;
  font-size:13px;
  font-weight:500;
  white-space:nowrap;
}

.primary-button{
  border-color:var(--accent);
  background:var(--accent);
  color:var(--accent-text);
}

.secondary-button:hover,
.mode-button:hover,
.suggestion-chip:hover,
.preset-button:hover,
.message-action:hover,
.auth-tab:hover{
  border-color:var(--border-strong);
  background:var(--surface-subtle);
}

.primary-button:disabled,
.secondary-button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.mode-button.is-active,
.preset-button.is-active,
.auth-tab.is-active{
  border-color:var(--accent);
  background:var(--accent-soft);
  color:var(--accent);
}

.switch-row{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  padding:0 10px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  color:var(--muted-strong);
  cursor:pointer;
  font-size:13px;
  font-weight:500;
}

.switch-row input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.switch-control{
  position:relative;
  width:30px;
  height:18px;
  border-radius:999px;
  background:#d1d5db;
}

.switch-control::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--surface);
  transition:transform .16s ease;
}

.switch-row input:checked + .switch-control{
  background:var(--accent);
}

.switch-row input:checked + .switch-control::after{
  transform:translateX(12px);
}

.profile-button{
  max-width:210px;
  min-height:32px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 8px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  cursor:pointer;
}

.profile-avatar{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#111827;
  color:#ffffff;
  font-size:10px;
  font-weight:600;
}

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

.profile-copy strong,
.profile-copy span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.profile-copy strong{
  font-size:12px;
  font-weight:500;
}

.profile-copy span{
  color:var(--muted);
  font-size:11px;
}

#workspaceGrid{
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
}

#chatPanel{
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  border-right:1px solid var(--border);
}

#conversationSurface{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:30px 22px;
  background:var(--surface);
  color:var(--text);
}

#emptyState,
#chat{
  width:min(820px,100%);
  margin:0 auto;
}

#emptyState{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.starter-panel h2{
  margin:0 0 8px;
  font-size:26px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:0;
}

.starter-panel p{
  margin:0;
  max-width:600px;
  color:var(--muted);
  font-size:14px;
}

.starter-list{
  display:flex;
  flex-direction:column;
  border-top:1px solid var(--border);
}

.starter-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  padding:16px 0;
  border-bottom:1px solid var(--border);
}

.starter-row h3{
  margin:0;
  font-size:15px;
  font-weight:550;
}

.starter-row p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:13px;
}

.suggestion-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

.suggestion-chip{
  min-height:28px;
  padding:0 9px;
  color:var(--muted-strong);
}

.activity-list{
  display:none;
}

#chat{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.message{
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  gap:14px;
  align-items:start;
}

.message-meta{
  display:flex;
  flex-direction:column;
  gap:2px;
  color:var(--muted);
  font-size:12px;
}

.message-meta span:first-child{
  color:var(--text);
  font-weight:550;
}

.message-card{
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:var(--text);
}

.message.user .message-card{
  justify-self:end;
  width:fit-content;
  max-width:min(640px,100%);
  padding:8px 11px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface-subtle);
}

.message.assistant .message-card{
  cursor:pointer;
}

.message.assistant.is-selected .message-card{
  box-shadow:inset 2px 0 0 var(--accent);
  padding-left:12px;
}

.message.error .message-card{
  color:var(--danger);
}

.message-body{
  line-height:1.68;
  overflow-wrap:anywhere;
}

.message-body > :first-child{
  margin-top:0;
}

.message-body > :last-child{
  margin-bottom:0;
}

.message-body h1,
.message-body h2,
.message-body h3{
  margin:1.2em 0 .45em;
  line-height:1.25;
}

.message-body p{
  margin:.75em 0;
}

.message-body pre{
  overflow:auto;
  padding:12px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#0f172a;
  color:#f8fafc;
}

.message-body code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:.92em;
}

.message-body table{
  width:100%;
  border-collapse:collapse;
}

.message-body th,
.message-body td{
  padding:8px 10px;
  border:1px solid var(--border);
  text-align:left;
}

.message-footer{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:10px;
}

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

.message-action{
  min-height:auto;
  padding:0;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:12px;
}

.message-action:hover{
  background:transparent;
  color:var(--accent);
}

.sources-list,
.followup-list,
.library-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.source-card{
  padding:8px 0 0;
  border-top:1px solid var(--border);
}

.source-card strong{
  display:block;
  margin-bottom:2px;
  color:var(--muted-strong);
  font-size:12px;
  font-weight:550;
}

.source-card p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.followup-label{
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.followup-list{
  flex-direction:row;
  flex-wrap:wrap;
}

.followup-chip{
  min-height:28px;
  padding:0 9px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  color:var(--muted-strong);
  cursor:pointer;
  font-size:13px;
}

.followup-chip:hover{
  border-color:var(--border-strong);
  background:var(--surface-subtle);
}

.attachment-stack,
#attachmentTray{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.attachment-card{
  border:0;
  border-top:1px solid var(--border);
  background:transparent;
}

#attachmentTray .attachment-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
}

.attachment-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
}

#attachmentTray .attachment-row{
  padding:8px;
}

.attachment-draft-main{
  min-width:0;
  flex:1;
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.attachment-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.attachment-title{
  margin:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  font-weight:500;
}

.attachment-meta{
  color:var(--muted);
  font-size:12px;
}

.attachment-snippet{
  margin:4px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.attachment-preview{
  width:100%;
  max-height:220px;
  object-fit:cover;
  border-radius:var(--radius);
}

.attachment-thumb{
  width:32px;
  height:32px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  object-fit:cover;
  flex:0 0 auto;
}

.attachment-icon{
  display:none;
}

#typing{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:max-content;
  max-width:820px;
  margin:18px auto 0;
  color:var(--muted);
  font-size:13px;
}

#typing[hidden]{
  display:none !important;
}

.typing-dot{
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--muted);
  animation:typingPulse .9s infinite alternate;
}

.typing-dot:nth-child(2){
  animation-delay:.12s;
}

@keyframes typingPulse{
  from{ opacity:.35; }
  to{ opacity:1; }
}

#composer{
  margin:0;
  border-top:1px solid var(--border);
  background:var(--surface);
}

#composerShell{
  width:min(860px,100%);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px 22px 14px;
}

.composer-row{
  display:flex;
  align-items:flex-end;
  gap:8px;
}

.composer-input{
  flex:1;
}

#message{
  width:100%;
  min-height:42px;
  max-height:220px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  color:var(--text);
  resize:none;
  outline:none;
}

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

.composer-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

#attachmentSummary,
#composerStatus{
  color:var(--muted);
  font-size:12px;
}

#composerStatus[data-state="error"],
.settings-note[data-state="error"]{
  color:var(--danger);
}

#composerStatus[data-state="success"],
.settings-note[data-state="success"]{
  color:var(--success);
}

#composerStatus[data-state="warning"]{
  color:var(--warning);
}

.mode-selector{
  display:flex;
  align-items:center;
  gap:2px;
  padding:2px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
}

.mode-button{
  min-height:26px;
  border-color:transparent;
  background:transparent;
  color:var(--muted-strong);
  font-size:12px;
}

#artifactPanel{
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:18px;
  background:var(--surface);
}

.panel-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-bottom:12px;
  border-bottom:1px solid var(--border);
}

.panel-header h2{
  margin:2px 0 0;
  font-size:17px;
  line-height:1.25;
  font-weight:600;
  letter-spacing:0;
}

.panel-actions{
  display:flex;
  align-items:center;
  gap:6px;
}

.panel-actions .secondary-button{
  min-height:28px;
  padding:0 8px;
}

.panel-empty{
  flex:1;
  min-height:240px;
}

.board-preview{
  max-width:280px;
  color:var(--muted);
}

.board-preview h3{
  margin:0 0 6px;
  color:var(--text);
  font-size:15px;
  font-weight:550;
}

.board-preview p{
  margin:0;
  font-size:13px;
}

#boardBody{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:0;
  background:var(--surface);
  line-height:1.68;
}

#boardBody > :first-child{
  margin-top:0;
}

#boardBody h1,
#boardBody h2,
#boardBody h3{
  line-height:1.25;
}

#boardSources{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding-top:14px;
  border-top:1px solid var(--border);
}

.board-sources-heading{
  color:var(--muted);
  font-size:12px;
}

.board-source{
  padding:0;
}

.board-source-copy strong{
  display:block;
  margin-bottom:2px;
  color:var(--muted-strong);
  font-size:12px;
  font-weight:550;
}

.board-source-copy p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

#settingsOverlay,
#authOverlay{
  position:fixed;
  inset:0;
  background:rgba(17,24,39,.28);
}

#settingsOverlay{
  z-index:50;
}

#authOverlay{
  z-index:70;
}

#settingsPanel{
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  width:min(420px,100vw);
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px;
  border-left:1px solid var(--border);
  background:var(--surface);
  transform:translateX(100%);
  transition:transform .18s ease;
  z-index:60;
}

body.settings-open #settingsPanel{
  transform:translateX(0);
}

.settings-header,
.auth-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.settings-header h2,
.auth-header h2{
  margin:2px 0 0;
  font-size:20px;
  font-weight:600;
}

.settings-body{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:0;
  overflow:auto;
}

.settings-section{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:16px 0;
  border-bottom:1px solid var(--border);
}

.section-header h3{
  margin:0 0 3px;
  font-size:15px;
  font-weight:550;
}

.section-header p,
.settings-note,
.auth-copy{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}

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

.settings-field span{
  color:var(--muted-strong);
  font-size:12px;
  font-weight:500;
}

.settings-field input{
  min-height:38px;
  padding:0 10px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  outline:none;
}

.settings-field input:focus{
  border-color:var(--accent);
}

.profile-meta-card,
.library-stats{
  padding:9px 0;
  color:var(--muted);
  font-size:13px;
}

.profile-meta-card strong{
  display:block;
  color:var(--text);
  font-weight:500;
}

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

.theme-presets,
.theme-grid{
  display:grid;
  gap:8px;
}

.theme-presets{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.theme-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.theme-control{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:40px;
  padding:0 10px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
}

.theme-control span{
  color:var(--muted-strong);
  font-size:12px;
  font-weight:500;
}

.theme-control input{
  width:38px;
  height:24px;
  padding:0;
  border:0;
  background:none;
}

.full-width{
  width:100%;
}

.library-card{
  padding:9px 0;
  border-bottom:1px solid var(--border);
}

.library-card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.library-card strong{
  display:block;
  margin-bottom:2px;
  font-size:13px;
  font-weight:550;
}

.library-card p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.library-card-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

#authModal{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  padding:18px;
  z-index:80;
}

.auth-card{
  display:flex;
  flex-direction:column;
  gap:16px;
  width:min(460px,100%);
  padding:18px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
}

.auth-tabs{
  display:flex;
  gap:4px;
  padding:3px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
}

.auth-tab{
  flex:1;
  min-height:34px;
  border-color:transparent;
}

.auth-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.auth-submit{
  width:100%;
}

body.sidebar-hidden #appShell{
  grid-template-columns:0 minmax(0,1fr);
}

body.sidebar-hidden #sidebar{
  opacity:0;
  pointer-events:none;
  transform:translateX(-100%);
  overflow:hidden;
}

body.board-closed #workspaceGrid{
  grid-template-columns:minmax(0,1fr);
}

body.board-closed #artifactPanel{
  display:none;
}

@media (max-width:1180px){
  #workspaceGrid{
    grid-template-columns:minmax(0,1fr);
  }

  #artifactPanel{
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    width:min(420px,100vw);
    border-left:1px solid var(--border);
    z-index:40;
    transform:translateX(0);
    transition:transform .18s ease;
  }

  body.board-closed #artifactPanel{
    display:flex;
    transform:translateX(100%);
  }
}

@media (max-width:980px){
  #appShell{
    grid-template-columns:1fr;
  }

  #sidebar{
    min-height:auto;
    border-right:0;
    border-bottom:1px solid var(--border);
  }

  body.sidebar-hidden #sidebar{
    display:none;
  }

  body.sidebar-hidden #appShell{
    grid-template-columns:1fr;
  }

  #topbar{
    align-items:flex-start;
    flex-direction:column;
  }

  .topbar-actions{
    justify-content:flex-start;
    width:100%;
  }

  #artifactPanel{
    position:static;
    width:auto;
    border-left:0;
    border-top:1px solid var(--border);
    transform:none;
  }

  body.board-closed #artifactPanel{
    display:none;
    transform:none;
  }
}

@media (max-width:720px){
  #topbar,
  #conversationSurface,
  #composerShell,
  #artifactPanel,
  #settingsPanel{
    padding-left:14px;
    padding-right:14px;
  }

  .topbar-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .topbar-actions > *,
  .profile-button{
    width:100%;
    max-width:none;
  }

  .profile-button{
    grid-column:1 / -1;
  }

  #chatTitle,
  .starter-panel h2{
    white-space:normal;
    font-size:22px;
  }

  .starter-row{
    grid-template-columns:1fr;
    gap:10px;
  }

  .suggestion-row{
    justify-content:flex-start;
  }

  .message{
    grid-template-columns:1fr;
    gap:6px;
  }

  .message-meta{
    flex-direction:row;
    justify-content:space-between;
  }

  .composer-row{
    flex-wrap:wrap;
  }

  .composer-input{
    flex-basis:100%;
    order:3;
  }

  #sendButton{
    flex:1;
  }

  .theme-presets,
  .theme-grid{
    grid-template-columns:1fr;
  }
}
