:root {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #050505;
  --sidebar: #030303;
  --panel: #0f0f10;
  --panel-2: #151516;
  --panel-3: #202023;
  --text: #f4f4f4;
  --muted: #a7a7ad;
  --muted-2: #686970;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --blue: #c7c7cc;
  --accent: #d8d8dc;
  --warn: #8d8e93;
  --user: #0b0b0c;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  color: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  height: 100vh;
  min-width: 980px;
  background: var(--bg);
}

.app-shell > * {
  min-height: 0;
}

.sidebar {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

.sidebar-brand {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.brand-copy strong,
.brand-copy small,
.account-button span:last-child,
.chat-item span,
.history-item span,
.output-title,
.output-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  color: #f4f4f4;
  font-size: 20px;
  font-weight: 680;
}

.brand-copy small {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 650;
}

.logo-mark,
.avatar {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f6f6f7 0%, #c7c8cc 55%, #8e9096 100%);
  color: #070707;
  font-weight: 900;
}

.logo-mark {
  width: 48px;
  height: 48px;
  font-size: 17px;
}

.logo-mark.compact {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: #090a0b;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  font-size: 21px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 12px;
}

.sidebar-icon,
.tool-button,
.send-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.sidebar-icon:hover,
.tool-button:hover,
.nav-item:hover,
.history-item:hover,
.chat-item:hover,
.account-button:hover,
.chat-item.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.status-pin {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.32);
}

.new-chat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #060606;
  color: #f4f4f4;
  font-size: 14px;
  font-weight: 760;
}

.new-chat-button:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: #0b0b0c;
}

.search-wrap {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.search-wrap span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.search-wrap input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.search-wrap input::placeholder {
  color: var(--muted-2);
}

.primary-nav,
.project-list,
.history {
  display: grid;
  align-content: start;
  gap: 6px;
}

.nav-item,
.history-item,
.chat-item,
.account-button {
  width: 100%;
  border-radius: 8px;
  background: transparent;
  color: #dedee2;
  text-align: left;
}

.nav-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 14px;
}

.primary-nav a.nav-item {
  text-decoration: none;
}

.cloud-dot {
  position: relative;
  background: #6f8fa6;
}

.cloud-dot::before {
  position: absolute;
  right: 3px;
  bottom: 4px;
  left: 3px;
  height: 5px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-top: 0;
  border-radius: 0 0 5px 5px;
  content: "";
}

.nav-item > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.nav-item strong {
  overflow: hidden;
  color: #e8e8ec;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item small {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item.active {
  background: #101011;
  box-shadow: 3px 0 0 var(--accent) inset;
}

.nav-dot {
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.agent-dot,
.message-dot {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.14);
}

.connector-dot { background: #8b8c91; }
.browser-dot { background: #999a9f; border-radius: 999px; }
.voice-dot { background: #85868b; border-radius: 999px 999px 999px 3px; }
.skill-dot { background: #a5a6ab; }
.automation-dot { background: #909196; }
.billing-dot { background: #83848a; }
.support-dot { background: #77787d; border-radius: 999px; }

.section-label {
  margin: 10px 7px 3px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.history {
  min-height: 0;
  overflow: auto;
  padding-top: 3px;
}

.project-list {
  margin-top: auto;
  padding-bottom: 2px;
}

.history-item,
.chat-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 8px;
}

.history-item span,
.chat-item span {
  font-size: 12px;
  font-weight: 660;
}

.history-item kbd,
.chat-item small,
.desktop-pill {
  min-width: 28px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-2);
  font-family: inherit;
  font-size: 10px;
  text-align: center;
}

.agent-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 4px;
}

.agent-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: #070707;
  color: #d8d8dc;
  font-size: 11px;
  font-weight: 900;
}

.sidebar-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.account-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  padding: 0 7px;
}

.chat-pane {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr) auto;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: #000;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #050505;
}

.thread-heading {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 8px;
}

.thread-heading strong {
  overflow: hidden;
  color: #f4f4f4;
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-heading span {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topbar select,
.model-cluster select {
  height: 34px;
  min-width: 144px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--panel);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
}

.share-button,
.account-badge {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090909;
  color: #ededed;
  font-size: 12px;
  font-weight: 680;
}

.share-button {
  padding: 0 12px;
}

.account-badge {
  max-width: 170px;
  overflow: hidden;
  padding: 0 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-button:hover,
.account-badge:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.live-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.live-dot.ready {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.thread-scroll {
  min-height: 0;
  overflow: auto;
  padding: 34px 20px 144px;
}

.conversation-shell {
  width: min(820px, 100%);
  margin: 0 auto;
}

.thread-scroll[hidden],
.browser-workspace[hidden] {
  display: none;
}

.browser-workspace {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  padding: 18px;
  background: #050505;
}

.browser-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.browser-toolbar div {
  min-width: 0;
}

.browser-toolbar span {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 840;
}

.browser-toolbar h2 {
  margin: 2px 0 0;
  color: #f4f4f4;
  font-size: 22px;
  font-weight: 780;
  letter-spacing: 0;
}

.browser-address {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0b0c;
  padding: 6px;
}

.browser-address label {
  color: var(--muted-2);
  padding-left: 8px;
  font-size: 11px;
  font-weight: 820;
}

.browser-address input {
  min-width: 0;
  height: 32px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f1f1f3;
  font-size: 13px;
}

.browser-address button {
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #070707;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 840;
}

.browser-frame-shell {
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101011;
}

.browser-frame-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
}

.browser-frame-top i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #4d4e54;
}

.browser-frame-top span {
  overflow: hidden;
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame-shell iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #f8f9fb;
}

.workspace-stage {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.message-queue {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  overflow: auto;
  padding: 26px 14px 18px;
  border-right: 1px solid var(--line);
  background: #020202;
}

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.queue-head h2 {
  margin: 0;
  color: #f2f2f3;
  font-size: 24px;
  font-weight: 760;
  letter-spacing: 0;
}

.queue-head p {
  margin: 2px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 680;
}

.queue-head button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent);
  color: #070707;
  font-size: 22px;
  font-weight: 860;
}

.queue-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.queue-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 740;
}

.queue-tabs button.active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--accent);
}

.queue-tabs span {
  min-width: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
  padding: 2px 6px;
  font-size: 11px;
}

.queue-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.queue-item.active,
.queue-item:hover {
  border-color: var(--line);
  background: #111112;
}

.queue-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #28292d;
  color: #f1f1f3;
  font-size: 15px;
  font-weight: 850;
}

.queue-item strong,
.queue-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item strong {
  color: #f1f1f3;
  font-size: 14px;
  font-weight: 760;
}

.queue-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.queue-item em {
  align-self: start;
  margin-top: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  padding: 3px 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
}

.quiet-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  padding: 12px 4px 0;
  font-size: 11px;
}

.quiet-status span {
  color: #e8e8eb;
  font-weight: 760;
}

.welcome {
  display: grid;
  justify-items: stretch;
  gap: 18px;
  text-align: left;
}

.welcome[hidden] {
  display: none;
}

.welcome h1 {
  margin: 0;
  color: #f7f7f7;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.1;
}

.welcome-copy {
  max-width: 560px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(620px, 100%);
}

.prompt-grid button {
  display: grid;
  gap: 8px;
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
}

.prompt-grid button:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.prompt-grid strong {
  font-size: 12px;
  font-weight: 780;
}

.prompt-grid span {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.35;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(620px, 100%);
  margin-top: 4px;
}

.status-strip div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: left;
}

.status-strip strong,
.status-strip span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-strip strong {
  color: #f2f2f2;
  font-size: 18px;
  line-height: 1.05;
}

.status-strip span {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 11px;
}

.operator-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080808;
  padding: 16px;
  text-align: left;
}

.operator-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9px;
  background: #050607;
  color: #f4f4f4;
  font-size: 16px;
  font-weight: 900;
}

.operator-card > div {
  min-width: 0;
}

.operator-card > div > span,
.provider-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.operator-card strong,
.provider-card strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.operator-card p,
.provider-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.approval-draft {
  display: grid;
  gap: 13px;
  width: min(680px, 100%);
  margin-left: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101011;
  padding: 16px;
}

.approval-draft > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.approval-draft p {
  margin: 0;
  color: #dedee2;
  font-size: 14px;
  line-height: 1.58;
}

.approval-draft div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.approval-draft button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: #e8e8ec;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 760;
}

.approval-draft button:first-child {
  border-color: transparent;
  background: var(--accent);
  color: #070707;
}

.message-list {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

body.has-conversation .conversation-shell {
  width: min(820px, 100%);
}

body.has-conversation .thread-scroll {
  padding-top: 30px;
}

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

.message.user {
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
}

.message-meta {
  display: none;
}

.message::before {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6f6f7 0%, #c8c9cc 56%, #8d8f95 100%);
  color: #070707;
  content: "AI";
  font-size: 11px;
  font-weight: 900;
}

.message.user::before {
  display: none;
}

.message-text {
  min-width: 0;
  color: #ececef;
  font-size: 13px;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-text p {
  margin: 0 0 10px;
}

.message-text p:last-child {
  margin-bottom: 0;
}

.message-text h3,
.message-text h4 {
  margin: 14px 0 8px;
  color: #f5f5f5;
  font-size: 13px;
}

.message-text ul {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.message-text li {
  margin: 5px 0;
}

.message.assistant .message-text {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.message.pending .message-text {
  color: var(--muted);
}

.message.pending .message-text::after {
  display: inline-block;
  width: 1.2em;
  content: "";
  animation: thinking 1.2s steps(4, end) infinite;
}

.message.user .message-text {
  width: min(620px, 88%);
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--user);
  line-height: 1.5;
}

.artifact-chip {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  margin-top: -10px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #e8e8e8;
  font-size: 12px;
  text-decoration: none;
}

@keyframes thinking {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

.composer {
  padding: 0 20px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 34%);
}

.composer-shell {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #070707;
  box-shadow: var(--shadow);
}

.composer textarea {
  width: 100%;
  min-height: 40px;
  max-height: 150px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.composer textarea::placeholder {
  color: #8b8b90;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 5px;
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.composer select {
  max-width: 180px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.send-btn {
  background: var(--accent);
  color: #070707;
  font-weight: 900;
}

.send-btn:disabled {
  opacity: 0.48;
  cursor: wait;
}

.composer-note {
  width: min(760px, 100%);
  margin: 8px auto 0;
  color: var(--muted-2);
  font-size: 11px;
  text-align: center;
}

.voice-widget {
  position: fixed;
  top: 12px;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  z-index: 80;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(540px, calc(100vw - 32px));
  min-width: 280px;
  padding: 8px 10px 8px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.94);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(18px);
}

.voice-orb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #151516;
  color: #f4f4f4;
}

.voice-orb:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #202023;
}

.voice-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 22px;
  height: 22px;
}

.voice-bars i {
  display: block;
  width: 3px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.78;
}

.voice-bars i:nth-child(2) {
  height: 17px;
  opacity: 1;
}

.voice-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.voice-copy strong,
.voice-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-copy strong {
  color: #f4f4f4;
  font-size: 13px;
  font-weight: 800;
}

.voice-copy small {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.3;
}

.voice-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  max-width: 112px;
  overflow: hidden;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f4f4f4;
  color: #080808;
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-widget[data-mode="listening"] {
  border-color: rgba(244, 244, 244, 0.32);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.voice-widget[data-mode="listening"] .voice-orb,
.voice-widget[data-mode="working"] .voice-orb {
  background: #f4f4f4;
  color: #070707;
}

.voice-widget[data-mode="listening"] .voice-bars i {
  animation: voicePulse 780ms ease-in-out infinite;
}

.voice-widget[data-mode="listening"] .voice-bars i:nth-child(2) {
  animation-delay: 110ms;
}

.voice-widget[data-mode="listening"] .voice-bars i:nth-child(3) {
  animation-delay: 220ms;
}

.voice-widget[data-mode="done"] {
  border-color: rgba(255, 255, 255, 0.24);
}

.voice-widget[data-mode="error"] {
  border-color: rgba(255, 180, 168, 0.34);
}

@keyframes voicePulse {
  0%,
  100% {
    transform: scaleY(0.62);
  }
  50% {
    transform: scaleY(1.22);
  }
}

.inspector {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border-left: 1px solid var(--line);
  background: var(--sidebar);
  overflow: auto;
}

.inspector-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.inspector-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.inspector-card-head h2 {
  margin: 0;
  color: #f2f2f3;
  font-size: 12px;
  font-weight: 760;
}

.inspector-card-head span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
}

.output-list,
.activity-list,
.agent-native-list {
  display: grid;
  gap: 7px;
  max-height: 270px;
  overflow: auto;
  padding: 9px;
}

.activity-list {
  max-height: 315px;
}

.agent-native-list {
  max-height: 250px;
}

.output-item,
.activity-card,
.agent-native-item {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-decoration: none;
}

.output-item {
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
}

.activity-card {
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
}

.agent-native-item {
  grid-template-columns: minmax(0, 1fr);
}

.agent-native-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.agent-native-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.agent-native-item strong {
  min-width: 0;
  overflow: hidden;
  color: #f1f1f3;
  font-size: 12px;
  font-weight: 730;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-native-item span {
  flex: 0 0 auto;
  max-width: 92px;
  overflow: hidden;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #d8d8dc;
  font-size: 10px;
  font-weight: 820;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.agent-native-item p {
  margin: 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.35;
}

.output-icon,
.activity-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #d8d8dc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.output-item > div:last-child,
.activity-card > div:last-child {
  min-width: 0;
}

.output-title,
.activity-card h3 {
  color: #f1f1f3;
  font-size: 12px;
  font-weight: 730;
}

.output-title,
.output-subtitle {
  display: block;
}

.output-subtitle,
.activity-card p {
  margin: 2px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.35;
}

.activity-card h3 {
  margin: 0;
}

.activity-card a {
  display: inline-flex;
  margin-top: 6px;
  color: #d8d8dc;
  font-size: 11px;
  text-decoration: none;
}

.runtime-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
}

.runtime-list div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
}

.runtime-list dt,
.runtime-list dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-list dt {
  color: var(--muted-2);
}

.runtime-list dd {
  color: #d8d8dc;
  font-weight: 680;
}

.empty-state {
  padding: 10px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 10, 10, 0.84);
  backdrop-filter: blur(14px);
}

.auth-gate[hidden],
.account-modal[hidden],
.google-submit[hidden],
.auth-divider[hidden],
.billing-portal-button[hidden],
[hidden] {
  display: none;
}

.auth-panel {
  display: grid;
  gap: 13px;
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-panel h2 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 26px;
  letter-spacing: 0;
}

.auth-panel p {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.45;
}

.auth-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-email-fields {
  display: grid;
  gap: 13px;
}

.auth-email-fields[hidden] {
  display: none;
}

.auth-panel input,
.auth-panel select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 12px;
}

.auth-submit,
.google-submit {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #f4f4f4;
  color: #111;
  font-weight: 850;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.auth-panel small {
  min-height: 18px;
  color: #ffb4a8;
  font-size: 12px;
}

.auth-panel small[data-tone="success"] {
  color: var(--muted);
}

.auth-panel .auth-provider-hint {
  min-height: 0;
  color: var(--muted-2);
}

.auth-page-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-align: center;
  text-decoration: none;
}

.auth-page-link:hover,
.auth-page-link:focus-visible {
  color: var(--text);
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 7, 7, 0.66);
  backdrop-filter: blur(12px);
}

.account-panel {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.account-head .eyebrow,
.account-status span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-head h2 {
  margin: 5px 0 3px;
  color: var(--text);
  font-size: 22px;
  letter-spacing: 0;
}

.account-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.account-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.account-status div,
.plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.account-status div {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.account-status strong {
  color: var(--text);
  font-size: 13px;
}

.usage-panel {
  display: grid;
  gap: 9px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.usage-panel div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.usage-panel span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.usage-panel strong {
  color: var(--text);
  font-size: 14px;
}

.usage-meter {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.usage-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a8a8ad, #f1f1f3);
  transition: width 220ms ease;
}

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

.account-agent-card {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.account-agent-card[hidden],
.account-agent-card-funding[hidden],
.account-agent-card-confirm[hidden],
.account-agent-card-policy[hidden] {
  display: none;
}

.account-agent-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-agent-card-heading .eyebrow,
.account-agent-card-balance span,
.account-agent-card-facts dt {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-agent-card-heading h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.025em;
}

.account-agent-card-refresh,
.account-agent-card-secondary,
.account-agent-card-primary,
.account-agent-card-funding button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
}

.account-agent-card-refresh,
.account-agent-card-secondary {
  background: var(--panel-2);
  color: var(--text);
}

.account-agent-card-primary,
.account-agent-card-funding button {
  background: var(--text);
  color: var(--panel);
}

.account-agent-card-refresh:disabled,
.account-agent-card-primary:disabled,
.account-agent-card-funding button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.account-agent-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 252px) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.agent-card-visual {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 160px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background:
    radial-gradient(circle at 83% 11%, rgba(70, 139, 103, 0.28), transparent 34%),
    linear-gradient(145deg, #15181b 0%, #090a0c 62%, #101614 100%);
  color: #fff;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
}

.agent-card-visual::after {
  position: absolute;
  right: -54px;
  bottom: -74px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.agent-card-visual[data-state="unavailable"] {
  filter: saturate(0.7);
}

.agent-card-visual-top,
.agent-card-visual-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-card-brand {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.24em;
}

.agent-card-state {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.agent-card-visual[data-state="ready"] .agent-card-state {
  border-color: rgba(95, 205, 139, 0.32);
  background: rgba(55, 139, 89, 0.2);
  color: #a9edc0;
}

.agent-card-chip {
  width: 29px;
  margin: 20px 0 12px;
  fill: #d5c58e;
  stroke: rgba(66, 55, 25, 0.5);
  stroke-width: 1;
}

.agent-card-number {
  position: relative;
  z-index: 1;
  margin-bottom: 13px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.095em;
  white-space: nowrap;
}

.agent-card-visual-bottom span {
  display: grid;
  gap: 2px;
}

.agent-card-visual-bottom span:last-child {
  text-align: right;
}

.agent-card-visual-bottom small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agent-card-visual-bottom strong {
  font-size: 9px;
  font-weight: 750;
}

.account-agent-card-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.account-agent-card-balance strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 26px;
  letter-spacing: -0.04em;
}

.account-agent-card-facts {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 11px 0 0;
}

.account-agent-card-facts dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 10px;
  font-weight: 750;
}

.account-agent-card-detail {
  margin: 11px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.account-agent-card-funding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}

.account-agent-card-funding label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 10px;
  font-weight: 750;
}

.account-agent-card-amount,
.account-agent-card-input {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
}

.account-agent-card-amount b,
.account-agent-card-input b {
  color: var(--muted);
  font-size: 11px;
}

.account-agent-card-amount input,
.account-agent-card-input input,
.account-agent-card-fields select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.account-agent-card-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-2);
}

.account-agent-card-confirm p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.account-agent-card-confirm > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.account-agent-card-policy {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}

.account-agent-card-policy summary {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.account-agent-card-policy summary::-webkit-details-marker {
  display: none;
}

.account-agent-card-policy summary span:first-child {
  display: grid;
  gap: 3px;
}

.account-agent-card-policy summary strong {
  font-size: 11px;
}

.account-agent-card-policy summary small {
  color: var(--muted);
  font-size: 10px;
}

.account-agent-card-policy form {
  display: grid;
  gap: 13px;
  padding: 13px;
  border-top: 1px solid var(--line);
}

.account-agent-card-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-agent-card-fields > label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.account-agent-card-fields select {
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
}

.account-agent-card-toggles {
  display: grid;
  gap: 8px;
}

.account-agent-card-toggles label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 11px;
}

.account-agent-card-toggles label span {
  display: grid;
  gap: 2px;
}

.account-agent-card-toggles small {
  color: var(--muted);
}

.account-agent-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.account-agent-card-categories legend {
  width: 100%;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.account-agent-card-categories label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 10px;
}

.account-agent-card-policy-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-agent-card-policy-actions p,
.account-agent-card-message {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.account-agent-card-policy-actions p[data-tone="error"],
.account-agent-card-message[data-tone="error"] {
  color: #d86868;
}

.account-agent-card-policy-actions p[data-tone="success"],
.account-agent-card-message[data-tone="success"] {
  color: #56a777;
}

.account-agent-card-security {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.account-agent-card-security svg {
  width: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.billing-portal-button {
  width: max-content;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
}

.plan-list {
  display: grid;
  gap: 10px;
  padding: 14px 20px 8px;
}

.plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.plan-card.active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.plan-card h3,
.plan-card p {
  margin: 0;
}

.plan-card h3 {
  color: var(--text);
  font-size: 15px;
}

.plan-card p,
.plan-card small {
  color: var(--muted);
  line-height: 1.4;
}

.plan-card small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.plan-card button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #f4f4f4;
  color: #111;
  font-weight: 800;
}

.plan-card button:disabled {
  opacity: 0.58;
  cursor: default;
}

.billing-message {
  min-height: 20px;
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 12px;
}

.admin-users-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 20px 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.admin-users-link[hidden] { display: none; }
.admin-users-link:hover { border-color: var(--line-strong); }

.account-danger-zone {
  display: grid;
  gap: 14px;
  margin: 8px 20px 20px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.account-danger-zone[hidden],
.account-delete-confirmation[hidden],
.account-delete-status[hidden] {
  display: none;
}

.account-delete-copy {
  display: grid;
  gap: 5px;
}

.account-delete-copy .eyebrow {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-delete-copy h3,
.account-delete-copy p,
.account-delete-confirmation p,
.account-delete-status {
  margin: 0;
}

.account-delete-copy h3 {
  color: var(--text);
  font-size: 15px;
}

.account-delete-copy p,
.account-delete-confirmation p,
.account-delete-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.account-delete-button,
.account-delete-cancel,
.account-delete-confirm {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 13px;
  font-weight: 800;
}

.account-delete-button {
  width: max-content;
  background: transparent;
  color: var(--text);
}

.account-delete-confirmation {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-2);
}

.account-delete-confirmation strong {
  color: var(--text);
  font-size: 13px;
}

.account-delete-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.account-delete-cancel {
  background: transparent;
  color: var(--text);
}

.account-delete-confirm {
  background: var(--text);
  color: var(--panel);
}

.account-delete-confirm:disabled,
.account-delete-cancel:disabled {
  cursor: wait;
  opacity: 0.55;
}

.account-delete-status {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.account-delete-status[data-tone="error"] {
  border-color: var(--line-strong);
  color: var(--text);
}

.account-settings-button {
  display: none;
}

/* Clean black operator shell */
:root {
  --bg: #000;
  --bg-2: #000;
  --sidebar: #020202;
  --panel: #060606;
  --panel-2: #0a0a0a;
  --panel-3: #111;
  --text: #f5f5f5;
  --muted: #9b9b9f;
  --muted-2: #5f6065;
  --line: rgba(255, 255, 255, 0.072);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #f0f0f0;
  --warn: #6f7075;
  --user: #090909;
  --shadow: none;
}

body {
  background: #000;
}

.app-shell {
  grid-template-columns: 288px minmax(0, 1fr) 304px;
  min-width: 1180px;
  background: #000;
}

.sidebar,
.chat-pane,
.message-queue,
.inspector,
.topbar {
  background: #000;
}

.sidebar {
  gap: 10px;
  padding: 14px 12px;
}

.sidebar-brand {
  min-height: 46px;
  grid-template-columns: 40px minmax(0, 1fr) 10px;
}

.logo-mark.compact {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #000;
  box-shadow: none;
  font-size: 18px;
}

.brand-copy strong {
  font-size: 18px;
}

.new-chat-button,
.share-button,
.account-button,
.composer-shell,
.operator-card,
.approval-draft,
.message.assistant .message-text,
.message.user .message-text,
.browser-address,
.browser-frame-shell,
.inspector-card,
.auth-panel,
.account-panel {
  box-shadow: none;
}

.new-chat-button {
  min-height: 40px;
  background: #050505;
}

.nav-item {
  min-height: 50px;
  padding: 0 10px;
}

.nav-item.active {
  background: #080808;
  box-shadow: 2px 0 0 #f1f1f1 inset;
}

.nav-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #6e6f74;
  box-shadow: none;
}

.agent-dot,
.message-dot {
  background: #f1f1f1;
}

.browser-dot,
.voice-dot,
.support-dot {
  border-radius: 999px;
}

.agent-badges span {
  min-width: 30px;
  height: 30px;
  background: #040404;
}

.thread-scroll {
  padding: 28px 18px 132px;
  background: #000;
}

.workspace-stage {
  grid-template-columns: minmax(236px, 312px) minmax(0, 1fr);
}

.message-queue {
  gap: 10px;
  padding: 20px 12px 16px;
}

.queue-head h2 {
  font-size: 20px;
}

.queue-item {
  min-height: 72px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
}

.queue-avatar {
  width: 34px;
  height: 34px;
  background: #151515;
}

.queue-item.active,
.queue-item:hover {
  background: #060606;
}

.surface-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.surface-panel[hidden] {
  display: none;
}

.surface-panel span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.surface-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 780;
}

.surface-panel p {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.surface-actions button,
.quick-task-list button,
.command-presets button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
  color: #dcdcdc;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 760;
}

.surface-actions button:hover,
.quick-task-list button:hover,
.command-presets button:hover {
  border-color: var(--line-strong);
  background: #0b0b0b;
}

.operator-card,
.approval-draft,
.message.assistant .message-text,
.composer-shell {
  background: #050505;
}

.approval-draft {
  margin-left: 52px;
}

.composer {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 30%);
}

.composer-shell {
  padding: 8px;
}

.composer select {
  border-radius: 8px;
}

.send-btn,
.approval-draft button:first-child,
.browser-address button,
.queue-head button {
  background: #f2f2f2;
  color: #050505;
}

.inspector {
  gap: 8px;
  padding: 10px 10px 12px;
}

.inspector-card {
  border-color: rgba(255, 255, 255, 0.064);
  background: #030303;
}

.inspector-card-head {
  min-height: 34px;
  padding: 0 9px;
}

.workspace-file-list,
.quick-task-list {
  display: grid;
  gap: 6px;
  max-height: 208px;
  overflow: auto;
  padding: 8px;
}

.workspace-file-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 6px;
  text-decoration: none;
}

.workspace-file-item:hover {
  background: rgba(255, 255, 255, 0.045);
}

.workspace-file-item > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #d8d8d8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-weight: 900;
}

.workspace-file-item div {
  min-width: 0;
}

.workspace-file-item strong,
.workspace-file-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-file-item strong {
  font-size: 12px;
}

.workspace-file-item small {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
}

.command-runner {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.command-runner label {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.command-runner > div:first-of-type {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.command-runner input {
  min-width: 0;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #000;
  color: var(--text);
  padding: 0 9px;
  font-size: 12px;
}

.command-runner > div:first-of-type button {
  height: 32px;
  border-radius: 8px;
  background: #f2f2f2;
  color: #050505;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 820;
}

.command-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.command-runner pre {
  max-height: 118px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  color: #8f9095;
  padding: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.output-list,
.activity-list,
.agent-native-list {
  max-height: 206px;
  padding: 8px;
}

.activity-list {
  max-height: 230px;
}

.output-item,
.activity-card,
.agent-native-item {
  background: transparent;
}

.output-item:hover,
.activity-card:hover,
.agent-native-item:hover {
  background: rgba(255, 255, 255, 0.045);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 270px minmax(0, 1fr) 270px;
    min-width: 0;
  }

  .topbar-actions {
    gap: 6px;
  }

  .install-action {
    display: none;
  }
}

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

  .message-queue {
    display: none;
  }

  .inspector {
    display: none;
  }

  .workspace-stage {
    display: block;
  }
}

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

  .app-shell {
    display: block;
    height: auto;
    min-height: 100vh;
  }

  .sidebar,
  .inspector,
  .message-queue {
    display: none;
  }

  .chat-pane {
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 100vh;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    padding: 84px 12px 10px;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
  }

  .account-settings-button:not([hidden]) {
    display: inline-flex;
  }

  .topbar select {
    flex: 1 1 100%;
    min-width: 0;
  }

  .share-button,
  .account-badge {
    flex: 1 1 auto;
  }

  #shareButton {
    display: none;
  }

  .thread-scroll {
    padding: 38px 14px 150px;
  }

  .browser-workspace {
    min-height: calc(100vh - 190px);
    padding: 14px 12px 150px;
  }

  .browser-address {
    grid-template-columns: 1fr;
  }

  .browser-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .browser-address {
    gap: 6px;
  }

  .prompt-grid,
  .status-strip,
  .account-status,
  .plan-card {
    grid-template-columns: 1fr;
  }

  .welcome h1 {
    font-size: 20px;
  }

  .operator-card,
  .approval-draft {
    margin-left: 0;
  }

  .message.user .message-text {
    width: 100%;
  }

  .composer {
    padding: 0 12px 14px;
  }

  .composer select {
    max-width: 138px;
  }

  .voice-widget {
    top: 10px;
    left: 12px;
    right: 12px;
    bottom: auto;
    transform: none;
    grid-template-columns: 42px minmax(0, 1fr);
    width: calc(100vw - 24px);
    min-width: 0;
  }

  .voice-connect {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }

  .account-modal {
    padding: 10px;
  }

  .account-panel {
    max-height: calc(100dvh - 20px);
  }

  .account-agent-card {
    padding: 16px 20px;
  }

  .account-agent-card-layout,
  .account-agent-card-fields {
    grid-template-columns: 1fr;
  }

  .agent-card-visual {
    width: 100%;
    min-height: 176px;
  }

  .account-agent-card-funding,
  .account-agent-card-confirm,
  .account-agent-card-policy-actions {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .account-agent-card-confirm,
  .account-agent-card-policy-actions {
    flex-direction: column;
  }

  .account-agent-card-confirm > div:last-child {
    width: 100%;
  }

  .account-agent-card-confirm button,
  .account-agent-card-policy-actions button {
    flex: 1 1 0;
  }
}
