:root {
  color-scheme: dark;
  --bg: #111719;
  --sidebar: #0d1315;
  --panel: #182023;
  --panel2: #1e292d;
  --line: #2d3a3e;
  --text: #e8edeb;
  --muted: #9baaa9;
  --mint: #baf2cc;
  --mint-dark: #193a2b;
  --orange: #f3bc81;
  --error: #f4aaa6;
  --radius: 18px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  padding: 11px 15px;
  background: var(--panel2);
  color: var(--text);
  font-weight: 600;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: #334449;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
button:disabled:active {
  transform: none;
}
a {
  color: var(--mint);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.7px;
  font-weight: 550;
  margin-bottom: 0;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  font-weight: 550;
}
h3 {
  font-size: 17px;
  font-weight: 550;
}
p {
  line-height: 1.65;
}
label {
  display: block;
  font-size: 12px;
  color: #bbc7c5;
  margin: 0 0 8px;
}
input,
textarea,
select {
  display: block;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #11191c;
  color: var(--text);
  width: 100%;
  padding: 12px;
  min-width: 0;
}
select {
  appearance: auto;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
input::placeholder,
textarea::placeholder {
  color: #718381;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #86bb98;
  outline: 1px solid #86bb98;
}
label input,
label select {
  margin-top: 8px;
}
form > label {
  margin-top: 17px;
}
.primary {
  background: var(--mint);
  color: #13251a;
}
.primary:hover {
  background: #d2ffdf;
}
.secondary {
  background: transparent;
  border: 1px solid #43514e;
}
.secondary:hover {
  background: #23312d;
}
.text-button {
  background: transparent;
  padding: 6px 0;
  font-size: 12px;
  color: var(--muted);
}
.text-button:hover {
  background: transparent;
  color: var(--mint);
}
.small {
  padding: 7px 12px;
  font-size: 12px;
}
.wide {
  width: 100%;
}
.muted,
.fine {
  color: var(--muted);
}
.fine {
  font-size: 11px;
  line-height: 1.65;
  margin: 13px 0 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin: 0 0 9px;
}
.error {
  color: var(--error);
  font-size: 12px;
  margin: 10px 0 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid #95cba7;
  border-radius: 50%;
  font-size: 27px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  box-shadow:
    inset 0 0 0 5px var(--sidebar),
    inset 0 0 0 6px #4e8064;
}
.login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(ellipse at 55% 30%, #233d31 0%, transparent 47%);
}
.login-card {
  width: 100%;
  max-width: 430px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #151e21e8;
  box-shadow: 0 40px 100px #0005;
}
.login-card .brand-mark {
  margin-bottom: 34px;
}
.login-card h1 {
  font-size: 39px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.login-card form {
  margin-top: 30px;
}
.login-card button {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
}
.workspace {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 34px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 214px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 27px;
  letter-spacing: -0.8px;
  padding: 0 7px;
}
.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 1.9px;
  color: var(--muted);
  margin-top: 2px;
}
.sidebar nav {
  margin-top: 44px;
  display: grid;
  gap: 7px;
}
.nav {
  text-align: left;
  padding: 13px 13px;
  background: transparent;
  border-radius: 9px;
  color: #9baaa7;
  font-weight: 450;
  display: flex;
  gap: 13px;
  align-items: center;
}
.nav.active {
  background: #23352c;
  color: var(--mint);
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 11px;
  line-height: 2;
  color: var(--muted);
  padding: 28px 7px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.sidebar-bottom button {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 10px;
}
.status-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--mint);
}
.machine {
  margin-left: auto;
  font-size: 10px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
main {
  grid-column: 2;
  padding: 30px 38px 0;
  max-width: 1700px;
  width: 100%;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 28px;
}
.top-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 10px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #24392c;
  color: var(--mint);
  line-height: 1.3;
}
.badge.subtle {
  background: #243035;
  color: #a9bfbd;
  font-size: 9px;
  letter-spacing: 0.6px;
}
.badge.warn {
  background: #403324;
  color: var(--orange);
}
.badge.error {
  background: #3d2726;
  color: var(--error);
  margin: 0;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.talk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.conversation {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 700px;
  max-height: calc(100dvh - 175px);
}
.conversation-heading {
  padding: 23px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.conversation-heading h2 {
  font-size: 21px;
  margin: 8px 0 0;
}
.conversation-heading .eyebrow {
  color: var(--mint);
}
.messages {
  flex: 1;
  overflow: auto;
  padding: 26px;
  min-height: 220px;
  scroll-behavior: smooth;
}
.welcome {
  text-align: center;
  margin: 35px auto 22px;
  max-width: 400px;
}
.welcome h3 {
  font-size: 24px;
  letter-spacing: -0.5px;
  margin: 24px 0 11px;
}
.welcome p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.orb {
  height: 124px;
  width: 124px;
  margin: auto;
  position: relative;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 38% 28%, #bdffcda6, transparent 45%),
    radial-gradient(ellipse at 65% 72%, #83ba91c9, #1c4334 67%);
  border: 1px solid #8fb89a88;
  box-shadow:
    0 0 60px #85d49d11,
    inset 0 0 20px #d4ffe83d;
  overflow: hidden;
}
.orb:before,
.orb:after {
  content: "";
  position: absolute;
  inset: 18px -20px;
  border: 1px solid #caf6d47a;
  border-radius: 50%;
  transform: rotate(-34deg);
}
.orb:after {
  inset: -20px 30px;
  transform: rotate(33deg);
  border-color: #c2fbd240;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 29px;
}
.suggestions button {
  padding: 9px 11px;
  font-size: 10px;
  background: #22302c;
  border: 1px solid #34473d;
  color: #b4cabf;
  font-weight: 450;
}
.composer {
  padding: 16px 20px 19px;
  border-top: 1px solid var(--line);
}
.composer textarea {
  border: 0;
  background: transparent;
  padding: 4px 2px;
  resize: none;
  min-height: 57px;
}
.composer textarea:focus {
  outline: 0;
}
.composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.composer-actions .primary {
  margin-left: auto;
  padding: 9px 17px;
}
.voice-button {
  padding: 14px 18px;
  background: var(--mint);
  color: #13251a;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.voice-button:hover {
  background: #d2ffdf;
}
.voice-button b {
  font-size: 20px;
  font-weight: 400;
}
.voice-launch {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, #243b2d70, transparent);
}
.voice-launch-copy {
  min-width: 0;
}
.voice-launch-copy p {
  font-size: 11px;
  line-height: 1.55;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.voice-launch-copy span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  display: block;
}
.catalog-note {
  overflow-wrap: anywhere;
  margin-top: 9px;
}
.settings-card .preview-button {
  margin-top: 14px;
  color: var(--mint);
}
.settings-card .preview-note {
  margin-top: 7px;
  text-align: center;
  font-size: 10px;
}
.advanced .check-label {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 13px 0;
  line-height: 1.5;
}
.advanced input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--mint);
}
.advanced > label:not(.check-label) {
  margin-top: 15px;
}
.room-card {
  padding: 23px 22px;
}
.room-card h2 {
  font-size: 15px;
}
.room-card .card-heading {
  gap: 8px;
}
.room-card .badge {
  font-size: 9px;
}
.room-device + .room-device {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.room-device strong {
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.room-device .fine {
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.room-state {
  color: #c7d8ce;
}
.wake-note {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.audio-card {
  padding: 23px 22px;
}
.audio-card h2 {
  font-size: 15px;
}
.audio-card label {
  font-size: 11px;
  margin-top: 17px;
}
.audio-card select,
.audio-card button {
  font-size: 11px;
}
.audio-card button {
  margin-top: 16px;
}
.audio-card .badge {
  font-size: 8px;
}
@media (max-width: 1180px) {
  .voice-launch {
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
  }
  .room-card {
    padding: 21px 17px;
  }
  .audio-card {
    padding: 21px 17px;
  }
}
@media (max-width: 700px) {
  .voice-launch {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .voice-button {
    justify-content: center;
    padding: 16px;
  }
  .voice-launch-copy {
    text-align: center;
  }
}
.hint {
  font-size: 9px;
  color: #748784;
}
.right-rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.card-heading h2 {
  margin: 0;
}
.settings-card {
  padding: 23px 22px;
}
.settings-card h2 {
  font-size: 15px;
}
.settings-card .badge {
  font-size: 8px;
}
.settings-card input,
.settings-card select {
  font-size: 12px;
}
.settings-card label {
  font-size: 11px;
}
.settings-card button {
  margin-top: 18px;
  font-size: 11px;
}
.advanced {
  margin-top: 18px;
}
.advanced summary,
details summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--muted);
  padding: 7px 0;
}
.advanced input {
  margin: 8px 0 15px;
}
.compact-card {
  padding: 23px 22px;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #2c3738;
}
.metric-row strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--mint);
}
.mini-note {
  display: flex;
  gap: 13px;
  padding: 0 8px;
  color: var(--muted);
}
.mini-note span {
  color: var(--mint);
  font-size: 20px;
}
.mini-note p {
  font-size: 11px;
}
.message {
  margin-bottom: 21px;
  max-width: 95%;
}
.message.user {
  margin-left: auto;
}
.message-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}
.message.user .message-label {
  justify-content: flex-end;
}
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  font-size: 13px;
  background: #1e2b2c;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid #30403d;
}
.message.user .message-body {
  background: #273d31;
  border-color: #3b5341;
}
.message.tool .message-body {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
}
.message.error .message-body {
  border-color: #6a4440;
  color: var(--error);
}
.voice-strip {
  padding: 12px 24px;
  background: #20352a;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mint);
  font-size: 12px;
}
.voice-strip button {
  margin-left: auto;
  color: var(--mint);
}
.voice-strip #voice-time {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  animation: breath 1.3s infinite;
}
@keyframes breath {
  50% {
    opacity: 0.3;
    box-shadow: 0 0 0 5px #baf2cc22;
  }
}
.notice {
  position: sticky;
  top: 12px;
  z-index: 5;
  background: #284a37;
  border: 1px solid #526f5a;
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 12px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px #0004;
}
.notice.error {
  background: #3d2726;
  border-color: #764944;
  color: var(--error);
}
.section-intro {
  margin: 35px 0 24px;
}
.section-intro h2 {
  font-size: 26px;
  letter-spacing: -0.7px;
  margin-bottom: 10px;
}
.section-intro p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 650px;
}
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
}
.host-card,
.bot-card {
  position: relative;
}
.host-card h3,
.bot-card h3 {
  margin: 12px 0 8px;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.card-actions button {
  font-size: 11px;
}
.section-card {
  margin-top: 24px;
}
.form-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.form-row label {
  margin: 0;
  min-width: 140px;
}
.form-row .grow {
  flex: 1;
}
.form-row button {
  margin-bottom: 0;
  min-height: 41px;
}
.output {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 490px;
  overflow: auto;
  padding: 16px;
  background: #0e1619;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 17px 0 0;
}
.tool-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
}
.search {
  margin-bottom: 12px;
}
.server-list {
  display: grid;
  gap: 7px;
  max-height: calc(100dvh - 310px);
  overflow: auto;
  padding-right: 3px;
}
.server-button {
  display: block;
  text-align: left;
  width: 100%;
  padding: 13px 14px;
  background: #192326;
  border: 1px solid var(--line);
  font-weight: 450;
}
.server-button.active {
  background: #243c2d;
  border-color: #5a7d64;
}
.server-button .server-name {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.server-button .server-meta {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  margin-top: 7px;
  font-size: 10px;
  color: var(--muted);
}
.tool-detail label {
  margin-top: 20px;
}
.tool-detail .muted {
  font-size: 12px;
}
.tool-description {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-wrap;
  margin: 17px 0;
}
.tool-detail form button {
  margin-top: 16px;
}
.tool-detail textarea {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.history-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}
.result-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}
.result-button {
  width: 100%;
  text-align: left;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 450;
}
.result-button strong {
  font-size: 12px;
  display: block;
  line-height: 1.55;
}
.result-button span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.reading-pane {
  max-height: 650px;
  overflow: auto;
  padding-right: 8px;
}
.reading-pane .message {
  max-width: 100%;
}
.empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
}
.terminal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}
.terminal-screen {
  background: #0a1114;
  color: #c8d8ce;
  font:
    12px/1.55 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre;
  overflow: auto;
  min-height: 370px;
  max-height: 620px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #2a3b36;
}
.key-row {
  display: flex;
  gap: 7px;
  margin-top: 13px;
  flex-wrap: wrap;
}
.key-row button {
  padding: 8px 11px;
  font-size: 10px;
}
.key-row .danger-text {
  margin-left: auto;
  color: var(--error);
  background: transparent;
}
.jobs {
  display: grid;
  gap: 12px;
}
.job-card {
  padding: 20px 24px;
}
.job-card .job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.job-card h3 {
  font-size: 14px;
  margin: 0;
}
.job-card .fine {
  margin-top: 8px;
}
.job-card details {
  margin-top: 12px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-label {
  font-size: 0;
}
.sr-label input {
  font-size: 12px;
}
footer {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 30px 0 22px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #6f8380;
}
footer span {
  letter-spacing: 0;
}
footer a {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0;
  color: #a3b9ae;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .talk-grid {
    grid-template-columns: minmax(0, 1fr) 325px;
  }
  .conversation {
    min-height: 760px;
  }
  .messages {
    padding: 32px;
  }
  .welcome {
    margin-top: 65px;
  }
}
@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    width: 185px;
    padding: 28px 15px;
  }
  .brand {
    font-size: 25px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
  .nav {
    font-size: 12px;
    padding: 12px 9px;
    gap: 9px;
  }
  main {
    padding: 25px 24px 0;
  }
  .talk-grid {
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 16px;
  }
  .settings-card {
    padding: 21px 17px;
  }
  .settings-card .card-heading {
    display: block;
  }
  .settings-card .badge {
    margin-top: 10px;
  }
  .conversation {
    min-height: 680px;
  }
  .hint {
    display: none;
  }
  .tool-layout {
    grid-template-columns: 235px minmax(0, 1fr);
  }
  .history-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .terminal-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}
@media (max-width: 940px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 17px 22px;
    display: block;
  }
  .brand {
    font-size: 23px;
    width: max-content;
  }
  .brand-sub {
    font-size: 7px;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    margin-top: 18px;
    overflow: auto;
    padding-bottom: 2px;
  }
  .nav {
    white-space: nowrap;
    font-size: 11px;
    padding: 10px;
  }
  .sidebar-bottom {
    display: none;
  }
  main {
    grid-column: 1;
    padding: 24px 22px 0;
  }
  .talk-grid {
    grid-template-columns: minmax(0, 1fr) 265px;
  }
  .conversation {
    min-height: 630px;
    max-height: none;
  }
  .messages {
    min-height: 400px;
    max-height: 580px;
  }
  .topbar {
    margin-bottom: 23px;
  }
  .settings-card .card-heading {
    display: block;
  }
  .history-layout,
  .terminal-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .sidebar {
    padding: 15px 17px;
  }
  .sidebar nav {
    margin-top: 15px;
  }
  .nav {
    font-size: 13px;
    gap: 7px;
  }
  .nav span {
    font-size: 11px;
  }
  .topbar {
    align-items: center;
  }
  .topbar h1 {
    font-size: 22px;
  }
  .topbar .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .top-actions {
    gap: 9px;
  }
  .top-actions .badge {
    font-size: 8px;
  }
  main {
    padding: 22px 15px 0;
  }
  .talk-grid {
    grid-template-columns: 1fr;
  }
  .conversation {
    min-height: 620px;
  }
  .conversation-heading {
    padding: 20px;
  }
  .conversation-heading h2 {
    font-size: 19px;
  }
  .conversation-heading .text-button {
    font-size: 10px;
  }
  .messages {
    padding: 20px;
    min-height: 385px;
    max-height: 550px;
  }
  .welcome {
    margin-top: 30px;
  }
  .welcome h3 {
    font-size: 23px;
  }
  .welcome p {
    font-size: 12px;
  }
  .orb {
    width: 108px;
    height: 108px;
  }
  .composer {
    padding: 15px;
  }
  .composer textarea {
    font-size: 13px;
  }
  .right-rail {
    display: grid;
    grid-template-columns: 1fr;
  }
  .settings-card .card-heading {
    display: flex;
  }
  .settings-card .badge {
    margin: 0;
  }
  .mini-note {
    display: none;
  }
  .compact-card {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .section-intro {
    margin-top: 25px;
  }
  .section-intro h2 {
    font-size: 23px;
  }
  .section-intro p {
    font-size: 12px;
  }
  .between {
    align-items: flex-start;
  }
  .between > button {
    font-size: 10px;
    white-space: nowrap;
    padding: 9px 10px;
  }
  .form-row {
    gap: 15px;
  }
  .form-row label {
    flex: 1;
    min-width: 140px;
  }
  .form-row button {
    width: 100%;
  }
  .card {
    padding: 20px;
  }
  .conversation {
    padding: 0;
  }
  .tool-layout,
  .history-layout,
  .terminal-layout {
    grid-template-columns: 1fr;
  }
  .server-list {
    max-height: 280px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .server-button {
    padding: 11px;
  }
  .server-button .server-name {
    font-size: 10px;
  }
  .server-button .server-meta {
    font-size: 9px;
  }
  .tool-detail h2 {
    font-size: 15px;
  }
  .history-layout > .result-list {
    max-height: 370px;
    overflow: auto;
  }
  .terminal-layout > .result-list {
    max-height: 230px;
    overflow: auto;
  }
  .terminal-screen {
    font-size: 10px;
    padding: 13px;
    min-height: 300px;
  }
  .key-row {
    gap: 5px;
  }
  .key-row button {
    font-size: 9px;
    padding: 8px;
  }
  .login-card {
    padding: 30px;
  }
  .login-card h1 {
    font-size: 34px;
  }
  .job-card .job-head {
    align-items: flex-start;
  }
  .job-card .badge {
    font-size: 9px;
  }
  footer {
    font-size: 8px;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.mobile-logout {
  display: none;
}
.workspace,
.sidebar,
.sidebar nav {
  min-width: 0;
}
.workspace {
  width: 100%;
}
.sidebar nav {
  max-width: 100%;
}
@media (max-width: 940px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: relative;
    max-width: 100%;
    min-width: 0;
  }
  .sidebar nav {
    width: 100%;
    min-width: 0;
  }
  .mobile-logout {
    display: block;
    position: absolute;
    right: 23px;
    top: 26px;
    font-size: 12px;
  }
  .nav {
    flex-shrink: 0;
  }
}

.live-glance {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.live-glance-heading,
.work-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.live-glance-heading strong {
  font-size: 12px;
}
.live-glance-heading .text-button {
  margin-left: auto;
  font-size: 11px;
}
#live-call-list {
  max-height: 124px;
  overflow: auto;
  margin-top: 10px;
}
.live-call {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 9px 0;
  font: inherit;
  font-size: 12px;
}
.live-call .fine {
  grid-column: 1/-1;
  overflow-wrap: anywhere;
}
.work-metrics {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.work-metrics b {
  color: var(--text);
  font-size: 22px;
  margin-right: 6px;
}
.work-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.work-sidebar {
  padding: 15px;
  min-width: 0;
}
.work-sidebar input,
.work-sidebar select {
  margin: 12px 0 0;
}
.work-switch {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.work-switch button {
  flex: 1;
  min-width: 0;
  padding: 9px 6px;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
}
.work-switch button.active {
  background: var(--mint);
  color: #14241c;
}
.work-list {
  max-height: calc(100dvh - 355px);
  min-height: 200px;
  overflow: auto;
  margin-top: 12px;
}
.work-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 14px 10px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  overflow-wrap: anywhere;
}
.work-entry:hover,
.work-entry.selected {
  background: rgba(177, 241, 205, 0.05);
  border-color: var(--line);
}
.work-entry.selected {
  border-left: 3px solid var(--mint);
}
.work-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}
.work-entry strong {
  font-size: 12px;
  line-height: 1.6;
}
.work-entry .badge {
  flex-shrink: 0;
  font-size: 9px;
}
.work-entry .fine {
  font-size: 10px;
}
.work-inspector {
  padding: 22px;
}
.work-inspector-heading h3 {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.work-inspector-heading p {
  overflow-wrap: anywhere;
  margin-bottom: 18px;
}
.work-content {
  max-height: calc(100dvh - 340px);
  min-height: 330px;
  overflow: auto;
  margin-top: 18px;
}
.work-content .output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: none;
}
.work-content .message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.work-content .message {
  margin: 12px 0;
}
.resource-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 12px;
  margin: 8px 0;
  text-align: left;
  font: inherit;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.terminal-capture {
  background: #081012;
  color: #caf4dd;
  padding: 18px;
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 420px;
  overflow: auto;
  font-size: 12px;
}
.background-jobs {
  margin-top: 24px;
}
.background-jobs .jobs {
  margin-top: 14px;
}
.message.agent .message-body {
  background: #1b2830;
  border-color: #33505a;
}
.message.agent .message-label {
  color: var(--mint);
}
.agent-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.agent-bar button {
  margin-left: auto;
}
.agent-turn {
  border-left: 2px solid var(--line);
  padding-left: 14px;
  margin: 18px 0 26px;
}
.agent-turn-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.agent-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel2);
  padding: 10px 12px;
  margin: 10px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.agent-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.agent-card-head .badge {
  margin-left: auto;
}
.agent-command {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--mint);
}
.agent-files,
.agent-plan {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.agent-plan .done {
  color: var(--mint);
}
.agent-fold {
  margin-top: 8px;
}
.agent-fold summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 11px;
}
.agent-fold pre {
  margin-top: 8px;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.agent-reasoning {
  color: var(--muted);
  font-size: 12px;
}
.agent-error {
  border-color: #6a4440;
}
.agent-followup {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 10px;
  background: var(--panel);
}
.agent-followup textarea {
  flex: 1;
  resize: vertical;
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .agent-fold summary {
    transition: none;
  }
}
@media (max-width: 1180px) {
  .work-layout {
    grid-template-columns: 290px minmax(0, 1fr);
  }
}
@media (max-width: 800px) {
  .work-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .work-list {
    max-height: 260px;
    min-height: 130px;
  }
  .work-content {
    max-height: none;
    min-height: 260px;
  }
  .work-inspector {
    padding: 17px;
  }
  .work-metrics {
    gap: 15px;
  }
  .live-glance {
    padding: 12px 16px;
  }
}
