:root {
  color-scheme: dark;
  --bg: #0e1116;
  --surface: #171b22;
  --surface-2: #202630;
  --line: #303845;
  --text: #edf2f7;
  --muted: #9aa8b7;
  --accent: #5ed3b3;
  --accent-2: #f0b85a;
  --danger: #ff7a7a;
  --user: #263548;
  --assistant: #19231f;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.login-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  height: auto;
  overflow: auto;
}

.login-shell {
  width: min(420px, calc(100vw - 28px));
}

.login-card {
  background: #121820;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.login-card h1 {
  margin: 0 0 18px;
  font-size: 28px;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form.is-hidden {
  display: none;
}

.login-secondary {
  width: 100%;
  margin-top: 12px;
  min-height: 34px;
  border-color: #35404c;
  background: transparent;
  color: var(--muted);
}

.login-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.login-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.login-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--accent-2);
  font-size: 12px;
}

.test-body {
  min-height: 100vh;
  height: auto;
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(255, 181, 83, 0.08), transparent 32%),
    var(--bg);
}

.test-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0;
}

.test-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.test-header h1,
.test-card h2 {
  margin: 0;
}

.test-header h1 {
  margin-top: 4px;
  color: var(--text);
  font-size: clamp(30px, 5vw, 54px);
}

.test-header p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.test-back {
  flex: 0 0 auto;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  text-decoration: none;
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
}

.test-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 12px;
}

.test-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111820;
}

.test-card-primary {
  min-height: 360px;
}

.test-card-wide {
  grid-column: 1 / -1;
}

.test-card h2 {
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
}

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

.test-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.test-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.test-form textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #0d1218;
  color: var(--text);
  font: inherit;
  line-height: 1.45;
}

.test-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--accent-2);
  font-size: 13px;
}

.test-list {
  margin: 10px 0 16px;
  padding-left: 20px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.test-list-danger li::marker {
  color: var(--danger);
}

.draft-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.draft-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.draft-row strong {
  color: var(--text);
}

.draft-row span {
  color: var(--muted);
  font-size: 12px;
}

.draft-row code {
  color: var(--accent-2);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.design-lab {
  min-height: 640px;
}

.design-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.design-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 12px;
}

.design-controls {
  display: grid;
  align-content: start;
  gap: 10px;
}

.design-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.design-controls input[type="color"] {
  height: 36px;
  padding: 3px;
}

.design-controls input[type="range"] {
  accent-color: var(--accent);
}

.design-css textarea {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #0d1218;
  color: var(--text);
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.preview-frame-wrap {
  min-width: 0;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #070a0f;
}

.preview-frame {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: clamp(292px, 24vw, 340px) minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #11161d;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #53606f transparent;
}

.brand {
  position: relative;
  height: clamp(142px, 19vh, 172px);
  flex: 0 0 auto;
  overflow: hidden;
}

.brand::before,
.brand::after {
  content: none;
}

#brainCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brain-status {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brain-status strong {
  color: #ffd17a;
  font-size: 16px;
}

.brand p,
.routing-text,
.provider-meta {
  color: var(--muted);
}

.panel {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  flex: 0 0 auto;
}

.panel-title {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.provider-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.provider-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  min-height: 39px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.provider-row[data-type="tool"] {
  border-color: #594d34;
  background: #181a1d;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 5px;
  background: var(--danger);
}

.status-dot.is-live {
  background: var(--accent);
}

.provider-name {
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.provider-meta {
  font-size: 10px;
  margin-top: 1px;
  overflow-wrap: anywhere;
}

select,
input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
}

select {
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
}

.routing-text {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.3;
}

.workspace {
  min-width: 0;
  display: grid;
  height: 100vh;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #53606f transparent;
}

.dashboard {
  min-height: 100%;
  padding: 12px;
  display: grid;
  overflow: visible;
}

.chat-window,
.debug-window {
  min-width: 0;
  min-height: 0;
  background: #121820;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
}

.chat-window {
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 145px;
  flex: 0 0 auto;
}

.debug-window {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: 176px;
  flex: 0 0 auto;
}

.module-header {
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-kicker {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 2px;
}

.module-header h3,
.widget h3 {
  margin: 0;
}

.module-header h3 {
  font-size: 13px;
}

.messages {
  min-height: 0;
  padding: 7px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.message {
  max-width: 96%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 8px;
  line-height: 1.28;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.message.user {
  align-self: flex-end;
  background: var(--user);
}

.message.assistant {
  align-self: flex-start;
  background: var(--assistant);
}

.message.system {
  align-self: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  max-width: 92%;
}

.message-meta {
  color: var(--accent-2);
  font-size: 11px;
  margin-bottom: 4px;
}

.composer {
  border-top: 1px solid var(--line);
  padding: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 6px;
}

input {
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.45;
}

button {
  border: 1px solid #537a70;
  background: var(--accent);
  color: #06110d;
  border-radius: var(--radius);
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.icon-button {
  width: 26px;
  min-height: 26px;
  padding: 0;
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  font-size: 18px;
  line-height: 1;
}

.debug-status,
.widget-state {
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #3e594f;
  border-radius: 999px;
  padding: 0 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.debug-grid {
  margin: 0;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.debug-grid div,
.debug-reason,
.debug-log {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.debug-grid div {
  min-width: 0;
  min-height: 30px;
  padding: 4px 6px;
}

.debug-grid dt,
.debug-reason span,
.log-entry span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.debug-grid dd {
  margin: 1px 0 0;
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.debug-reason {
  min-width: 0;
  margin: 0 6px 5px;
  padding: 5px 6px;
}

.debug-reason p {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 10px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.debug-log {
  min-width: 0;
  min-height: 0;
  margin: 0 6px 6px;
  padding: 5px 6px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.log-entry {
  border-bottom: 1px solid #28313c;
  padding-bottom: 3px;
  font-size: 9px;
  color: var(--muted);
}

.log-entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.widgets {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  grid-template-rows: none;
  grid-auto-rows: 126px;
  gap: 10px;
  min-height: min-content;
  height: auto;
  align-content: start;
}

.widget {
  min-width: 0;
  min-height: 0;
  height: 100%;
  container-type: inline-size;
  background: #151b23;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 10px;
  row-gap: 8px;
  align-items: start;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.widget-primary {
  grid-column: span 3;
  grid-row: span 2;
  min-height: 0;
  background: #141d25;
  border-color: #405164;
}

.widget-secondary {
  grid-column: span 2;
  grid-row: span 1;
  min-height: 0;
  background: #141b22;
  border-color: #384b48;
}

.widget-compact {
  grid-column: span 2;
  grid-row: span 1;
  min-height: 0;
}

.widget.is-focused {
  border-color: var(--accent);
  background: #16231f;
  box-shadow: inset 0 0 0 1px rgba(94, 211, 179, 0.12);
}

.setup-widget {
  cursor: pointer;
}

.discovery-widget {
  border-color: #4f5c48;
  grid-row: span 2;
}

.discovery-widget > div:nth-child(2) {
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.discovery-search {
  margin-top: 4px;
  min-width: 0;
}

.discovery-search input {
  width: 100%;
  height: 22px;
  font-size: 10px;
  background: #0f151c;
  border: 1px solid #35404c;
  color: var(--text);
  min-height: 22px;
  padding: 0 6px;
}

.setup-widget:focus-visible,
.setup-widget:hover {
  border-color: #5ed3b3;
}

.widget-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #53606f;
  border-radius: var(--radius);
  color: var(--accent-2);
  font-weight: 900;
}

.widget h3 {
  font-size: 13px;
}

.widget > div:nth-child(2) {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.widget-body {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #53606f transparent;
  opacity: 1;
  transition: opacity 180ms ease, color 180ms ease;
}

.widget-body.is-refreshing {
  opacity: 0.72;
}

.calendar-list {
  display: grid;
  align-content: start;
  gap: 6px;
}

.news-ticker {
  display: grid;
  align-content: start;
  gap: 8px;
}

.news-title {
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  color: var(--accent-2);
  font-size: 10px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-group {
  display: grid;
  gap: 5px;
  padding: 0 0 6px;
  border-bottom: 1px solid #28313c;
}

.news-group:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.news-group-title {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.news-entry {
  display: grid;
  gap: 2px;
  animation: itemIn 180ms ease both;
}

.news-entry,
.mail-entry,
.discovery-entry {
  border: 0;
  background: transparent;
  color: inherit;
  min-height: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.news-entry:hover .news-title,
.mail-entry:hover .calendar-entry-title {
  color: var(--accent);
}

.discovery-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.discovery-overview,
.discovery-section-label {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.discovery-overview {
  padding: 5px 7px;
  border: 1px solid #35404c;
  border-radius: var(--radius);
  background: #0f151c;
  display: grid;
  gap: 2px;
}

.discovery-overview strong {
  color: var(--accent);
  font-size: 11px;
  line-height: 1.2;
}

.discovery-overview span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.discovery-section-label {
  margin-top: 1px;
  color: var(--accent-2);
  font-weight: 900;
  text-transform: uppercase;
}

.discovery-entry {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  cursor: default;
  min-width: 0;
  padding: 8px;
  border: 1px solid #2d3845;
  border-radius: var(--radius);
  background: rgba(15, 21, 28, 0.72);
}

.discovery-entry[data-status="installable"] {
  border-color: rgba(94, 211, 179, 0.42);
}

.discovery-entry[data-status="approval"],
.needs-user-entry {
  border-color: rgba(240, 184, 90, 0.42);
  background: rgba(240, 184, 90, 0.06);
}

.discovery-entry-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.discovery-entry-main > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.discovery-entry strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.discovery-entry span,
.discovery-status-pill {
  color: var(--accent-2);
  font-size: 10px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.discovery-status-pill {
  flex: 0 1 auto;
  max-width: 52%;
  padding: 2px 6px;
  border: 1px solid rgba(255, 176, 58, 0.24);
  border-radius: 999px;
  background: rgba(255, 176, 58, 0.07);
  text-align: right;
  white-space: normal;
}

.discovery-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.discovery-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(70px, auto);
  gap: 6px;
  justify-self: stretch;
  align-items: center;
}

.discovery-actions button {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
  line-height: 1;
  white-space: normal;
  overflow-wrap: anywhere;
}

.discovery-actions .discovery-reject {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.needs-user-badge {
  justify-self: end;
  align-self: center;
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid #594d34;
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 9px;
  font-weight: 900;
}

.needs-user-entry .discovery-actions {
  grid-template-columns: 1fr;
  gap: 5px;
}

.needs-user-entry .discovery-actions button {
  padding-inline: 8px;
}

.discovery-primary-actions,
.discovery-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
}

.discovery-secondary-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
}

@container (max-width: 310px) {
  .discovery-entry {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .discovery-entry-main > div {
    display: grid;
    gap: 4px;
  }

  .discovery-status-pill {
    max-width: 100%;
    width: fit-content;
    text-align: left;
  }

  .discovery-actions,
  .needs-user-badge {
    justify-self: start;
  }

  .discovery-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .discovery-actions button {
    min-width: 0;
  }

  .discovery-primary-actions,
  .discovery-secondary-actions {
    grid-template-columns: 1fr;
  }

  .needs-user-badge {
    justify-self: stretch;
    text-align: center;
  }
}

@media (max-width: 1280px) and (min-width: 921px) {
  .widgets {
    grid-template-columns: repeat(4, minmax(128px, 1fr));
  }

  .widget-primary,
  .widget-secondary,
  .widget-compact {
    grid-column: span 2;
  }

  .widget-primary {
    grid-row: span 2;
  }

  .widget-secondary,
  .widget-compact {
    grid-row: span 1;
  }

  .discovery-widget {
    grid-row: span 2;
  }
}

@media (max-width: 1080px) and (min-width: 921px) {
  .shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .sidebar {
    padding: 10px;
  }

  .brand {
    height: 126px;
  }

  .provider-list,
  .debug-grid {
    grid-template-columns: 1fr;
  }

  .chat-window {
    height: 132px;
  }

  .debug-window {
    height: 190px;
  }
}

@media (max-width: 760px) {
  .focus-card {
    width: 100%;
    max-height: 90vh;
  }

  .focus-header,
  .focus-summary,
  .focus-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .mail-search,
  .setup-chat-form,
  .composer {
    grid-template-columns: 1fr;
  }

  .web-link-visual,
  .image-visual,
  .visual-cards,
  .visual-diagram {
    grid-template-columns: 1fr;
  }
}

.calendar-entry {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 0;
  border-bottom: 1px solid #28313c;
  animation: itemIn 180ms ease both;
}

.calendar-entry:last-child {
  border-bottom: 0;
}

.mail-entry {
  width: 100%;
  border-bottom: 1px solid #28313c;
  padding: 6px 0;
}

.mail-entry:last-child {
  border-bottom: 0;
}

.calendar-entry-time {
  color: var(--accent-2);
  font-size: 10px;
  line-height: 1.2;
}

.calendar-entry-title {
  color: var(--text);
  font-size: 12px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.calendar-entry-meta {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.widget-state {
  grid-column: 2;
  justify-self: start;
  align-self: end;
  color: var(--accent-2);
  border-color: #594d34;
  transition: color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

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

.focus-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 6, 9, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.focus-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.focus-card {
  width: min(980px, 100%);
  max-height: min(86vh, 820px);
  background: #121820;
  border: 1px solid #394353;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  transform: translateY(8px) scale(0.985);
  transition: transform 160ms ease;
}

.focus-panel.is-open .focus-card {
  transform: translateY(0) scale(1);
}

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

.focus-header h2 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.1;
}

.focus-header p,
.focus-summary,
.focus-item p {
  color: var(--muted);
}

.focus-header p {
  margin: 5px 0 0;
  font-size: 12px;
}

.focus-summary {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.focus-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line);
}

.focus-action {
  min-height: 26px;
  padding: 0 9px;
  font-size: 11px;
}

.focus-content {
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 16px;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: #53606f transparent;
}

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

.implementation-action {
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-color: rgba(249, 177, 69, 0.62);
  background: #f9b145;
  color: #11150c;
  font-size: 11px;
  box-shadow: 0 0 0 1px rgba(249, 177, 69, 0.12), 0 8px 22px rgba(249, 177, 69, 0.13);
}

.message .implementation-action {
  margin-top: 7px;
}

.visual-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 30, 40, 0.98), rgba(12, 17, 24, 0.98));
  overflow: hidden;
}

.route-visual {
  display: grid;
  grid-template-columns: minmax(320px, 1.3fr) minmax(210px, 0.7fr);
  gap: 12px;
  padding: 12px;
  align-items: stretch;
}

.route-map-canvas {
  position: relative;
  min-height: 260px;
  height: clamp(260px, 42vh, 340px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(249, 177, 69, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0c1219;
}

.route-maplibre {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.route-maplibre.is-active {
  opacity: 1;
}

.route-svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.route-svg.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.route-grid-line {
  stroke: rgba(255, 255, 255, 0.045);
  stroke-width: 1;
}

.route-polyline {
  fill: none;
  stroke: #f9b145;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 9px rgba(249, 177, 69, 0.6));
}

.route-polyline.schematic {
  stroke-dasharray: 12 10;
}

.route-marker {
  fill: #f9b145;
  stroke: #101820;
  stroke-width: 3;
}

.route-marker.end {
  fill: #7acaff;
}

.route-marker-label,
.route-place-label,
.route-svg-note {
  fill: #fff4d9;
  text-anchor: middle;
  font-weight: 900;
  font-size: 13px;
  paint-order: stroke;
  stroke: #081018;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.route-place-label,
.route-svg-note {
  fill: #b9c2cd;
  font-size: 11px;
  font-weight: 700;
}

.route-load-status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.route-details {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 4px 0;
}

.route-details strong {
  font-size: 15px;
  line-height: 1.25;
}

.route-details span {
  color: var(--muted);
  font-size: 12px;
}

.route-map-link {
  width: fit-content;
  margin-top: 8px;
  padding: 7px 9px;
  color: #101820;
  background: var(--accent);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.mail-browser {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto;
  gap: 10px;
}

.mail-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
}

.mail-search input {
  height: 34px;
  padding: 0 10px;
}

.mail-browser-list {
  max-height: min(54vh, 520px);
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 7px;
  padding-right: 4px;
  color: var(--muted);
  scrollbar-width: thin;
  scrollbar-color: #53606f transparent;
}

.mail-browser-row {
  width: 100%;
  min-height: 52px;
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  text-align: left;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mail-browser-row strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.mail-browser-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 11px;
}

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

.object-visual {
  min-height: 280px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px;
  perspective: 900px;
}

.object-canvas {
  width: min(100%, 560px);
  height: clamp(250px, 42vh, 340px);
  min-height: 250px;
  border: 1px solid rgba(249, 177, 69, 0.18);
  border-radius: var(--radius);
  background: #0c1219;
}

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

.web-link-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.web-link-card {
  min-height: 116px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.web-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 177, 69, 0.62);
  background: rgba(249, 177, 69, 0.08);
}

.web-link-card strong {
  font-size: 14px;
}

.web-link-card span {
  color: var(--accent-2);
  font-size: 10px;
  overflow-wrap: anywhere;
}

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

.image-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}

.image-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--text);
  text-decoration: none;
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0d1218;
}

.image-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.structure-visual .image-card img {
  object-fit: contain;
  background: #fff;
  height: min(52vh, 520px);
  aspect-ratio: auto;
}

.adaptive-visual {
  display: grid;
  gap: 10px;
  padding: 12px;
}

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

.visual-steps,
.visual-timeline {
  grid-template-columns: 1fr;
  counter-reset: adaptive-step;
}

.visual-diagram {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.adaptive-card {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 11px;
  min-height: 82px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.visual-steps .adaptive-card,
.visual-timeline .adaptive-card {
  padding-left: 42px;
}

.visual-steps .adaptive-card::before,
.visual-timeline .adaptive-card::before {
  counter-increment: adaptive-step;
  content: counter(adaptive-step);
  position: absolute;
  left: 11px;
  top: 11px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(249, 177, 69, 0.18);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.visual-diagram .adaptive-card {
  place-items: center;
  text-align: center;
}

.adaptive-card strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.adaptive-card span {
  color: var(--accent-2);
  font-size: 11px;
}

.adaptive-card p,
.adaptive-text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
}

@keyframes objectSpin {
  from {
    transform: rotateX(-18deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-18deg) rotateY(360deg);
  }
}

@keyframes objectPulse {
  0%, 100% {
    transform: scale(0.96);
  }
  50% {
    transform: scale(1.04);
  }
}

.setup-wizard {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: 12px;
}

.setup-guide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.setup-guide span {
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0f151c;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.setup-guide span[data-active="true"] {
  border-color: #5ed3b3;
  color: var(--accent);
  background: #15221f;
}

.setup-list,
.setup-card {
  min-width: 0;
  min-height: 0;
}

.setup-list {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #53606f transparent;
}

.setup-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.setup-search {
  height: 34px;
  padding: 0 9px;
  font-size: 12px;
  background: #0d1218;
}

.setup-search-reset {
  min-width: 48px;
  height: 34px;
  padding: 0 9px;
  font-size: 11px;
}

.setup-open-info {
  padding: 6px 8px;
  border: 1px solid rgba(94, 211, 179, 0.18);
  border-radius: var(--radius);
  background: rgba(94, 211, 179, 0.06);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.setup-empty {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.setup-group {
  display: grid;
  gap: 6px;
}

.setup-group h3,
.setup-card h3,
.setup-section h4 {
  margin: 0;
}

.setup-group h3 {
  color: var(--accent);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.setup-option {
  width: 100%;
  min-height: 44px;
  padding: 7px 8px;
  display: grid;
  gap: 2px;
  place-items: start;
  text-align: left;
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.setup-option[aria-pressed="true"] {
  border-color: #5ed3b3;
  background: #15221f;
}

.setup-option[data-status="configured"] {
  border-color: #3e594f;
}

.setup-option small {
  color: var(--muted);
  font-size: 10px;
}

.setup-card {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #53606f transparent;
}

.setup-card-empty {
  align-content: center;
  justify-items: start;
  min-height: 260px;
  padding: 18px;
  border: 1px dashed var(--line);
  background: rgba(16, 22, 30, 0.52);
}

.setup-card-empty h3 {
  font-size: 20px;
}

.setup-card-empty p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.setup-card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.setup-card-header h3 {
  margin-top: 4px;
  font-size: 18px;
}

.setup-card-header p,
.setup-hint {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.setup-progress {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #594d34;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
}

.setup-progress[data-status="configured"] {
  border-color: #3e594f;
  color: var(--accent);
}

.setup-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.setup-step {
  min-height: 34px;
  padding: 5px 7px;
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line);
  font-size: 10px;
  text-align: left;
}

.setup-step[data-active="true"] {
  color: var(--text);
  border-color: #5ed3b3;
  background: #15221f;
}

.setup-step[data-done="true"] {
  color: var(--accent);
}

.setup-current-step {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #10171f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.setup-current-step h4 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.setup-current-step > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.setup-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.setup-overview div {
  display: grid;
  gap: 3px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.setup-overview strong {
  color: var(--accent-2);
  font-size: 11px;
  text-transform: uppercase;
}

.setup-overview span {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.setup-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.setup-controls button {
  min-width: 82px;
}

.setup-controls .setup-primary-action {
  margin-right: auto;
  border-color: rgba(255, 176, 58, 0.48);
  background: rgba(255, 176, 58, 0.12);
  color: var(--accent-2);
}

.setup-section {
  display: grid;
  gap: 8px;
}

.setup-section h4 {
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.setup-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.setup-copy {
  min-height: 24px;
  padding: 0 8px;
  font-size: 10px;
}

.setup-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.setup-key {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 10px;
}

.setup-key[data-configured="true"] {
  border-color: #3e594f;
  color: var(--accent);
}

.setup-key[data-required="true"][data-configured="false"] {
  border-color: #654642;
  color: #ffb1a9;
}

.setup-env {
  margin: 0;
  padding: 10px;
  overflow: auto;
  background: #0d1218;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.setup-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.setup-steps li + li {
  margin-top: 4px;
}

.setup-chat {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(86px, 1fr) auto;
  gap: 8px;
  padding: 10px;
  background: #10171f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.setup-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.setup-chat-header h4 {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.setup-chat-header span {
  color: var(--muted);
  font-size: 10px;
}

.setup-chat-messages {
  min-height: 86px;
  max-height: 150px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: #53606f transparent;
}

.setup-chat-message {
  max-width: 92%;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.setup-chat-message.user {
  justify-self: end;
  background: var(--user);
}

.setup-chat-message.assistant {
  justify-self: start;
  background: var(--assistant);
}

.setup-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 6px;
}

.focus-section {
  display: grid;
  gap: 8px;
}

.focus-section h3 {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.focus-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.focus-item strong,
.focus-item a {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.focus-item a:hover {
  color: var(--accent-2);
}

.focus-meta {
  color: var(--accent-2);
  font-size: 10px;
  line-height: 1.2;
}

.focus-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}

@media (max-width: 920px) {
  body {
    height: auto;
    overflow: auto;
  }

  .shell {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .sidebar {
    display: contents;
    border-right: 0;
    overflow: visible;
  }

  .brand {
    display: none;
  }

  .chat-window {
    order: 1;
    height: 112px;
    margin: 12px 12px 0;
  }

  .debug-window {
    order: 3;
    height: 148px;
    margin: 10px 12px 0;
  }

  .debug-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .workspace {
    order: 4;
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .routing-panel {
    order: 2;
    margin: 10px 12px 0;
  }

  .provider-panel {
    order: 6;
    margin: 10px 12px 14px;
  }

  .provider-list {
    grid-template-columns: 1fr;
  }

  .dashboard {
    grid-template-columns: 1fr;
    padding: 14px;
    overflow: visible;
  }

  .widgets {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(132px, auto);
    height: auto;
  }

  .widget {
    min-height: 132px;
    max-height: 190px;
    height: auto;
  }

  .widget-primary,
  .widget-secondary,
  .widget-compact,
  .discovery-widget {
    grid-column: auto;
    grid-row: auto;
  }

  .widget-primary,
  .widget-secondary,
  .widget-compact {
    min-height: 132px;
  }

  .discovery-widget {
    min-height: 220px;
    max-height: 280px;
  }

  .focus-panel {
    padding: 12px;
    place-items: end center;
  }

  .focus-card {
    max-height: 82vh;
  }

  .route-visual,
  .web-link-visual,
  .visual-cards,
  .visual-diagram {
    grid-template-columns: 1fr;
  }

  .route-map-canvas,
  .route-svg {
    min-height: 240px;
    height: 240px;
  }

  .object-visual {
    min-height: 230px;
    padding: 12px;
  }

  .composer {
    grid-template-columns: 1fr 82px;
  }

  .setup-wizard {
    grid-template-columns: 1fr;
  }

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

  .setup-list {
    max-height: 220px;
  }

  .setup-card-header {
    align-items: start;
  }

  .setup-stepper,
  .setup-overview {
    grid-template-columns: 1fr;
  }

  .setup-chat-messages {
    max-height: 180px;
  }

  .test-header,
  .test-card-header {
    display: grid;
  }

  .test-grid {
    grid-template-columns: 1fr;
  }

  .design-grid {
    grid-template-columns: 1fr;
  }

  .preview-frame-wrap,
  .preview-frame {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .focus-card {
    width: 100%;
    max-height: 90vh;
  }

  .focus-header,
  .focus-summary,
  .focus-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .mail-search,
  .setup-chat-form,
  .composer {
    grid-template-columns: 1fr;
  }

  .composer button,
  .setup-chat-form button,
  .mail-search button {
    width: 100%;
  }

  .web-link-visual,
  .image-visual,
  .visual-cards,
  .visual-diagram {
    grid-template-columns: 1fr;
  }
}
/* Shared push-to-talk controls. */
.voice-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; font-size: 11px; }
.voice-controls button, .voice-controls select { border: 1px solid #3d5953; color: #b5d8cc; background: #14221f; border-radius: 4px; padding: 6px 8px; font: inherit; }
.voice-controls button[aria-pressed="true"] { background: #32614e; }
.voice-controls button:disabled { opacity: .5; cursor: not-allowed; }
.voice-controls label { display: flex; gap: 4px; align-items: center; color: #a0b5ac; }
.voice-controls select { width: auto; }
.voice-controls button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; }
.voice-controls button img { filter: invert(1); }
#sendButton { display: grid; place-items: center; width: 36px; }
.composer { grid-template-columns: minmax(0, 1fr) 36px; }
.mindmap-link { display: inline-block; margin-bottom: 10px; color: #9bd7c0; font-size: 12px; }
@media (max-width: 700px) { .mindmap-link { display: none; } }
.voice-controls input[type="checkbox"] { width: auto; height: auto; }
.chat-window:has(.voice-controls) { grid-template-rows: auto minmax(70px, 1fr) auto auto; min-height: 245px; }
