:root {
  color-scheme: dark;
  --bg: #101416;
  --panel: #171d20;
  --border: #2a3337;
  --text: #edf1ed;
  --muted: #88969a;
  --accent: #a4e1c4;
  --danger: #f2aaa0;
  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,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 5px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
#sidebar {
  width: 232px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--border);
  padding: 35px 23px;
  display: flex;
  flex-direction: column;
  background: #121719;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 3px;
}
.brand-mark {
  position: relative;
  width: 34px;
  height: 38px;
  border: 1px solid #56796b;
  border-radius: 9px;
  color: var(--accent);
  display: grid;
  place-items: center;
  font:
    26px Georgia,
    serif;
  letter-spacing: 0;
}
.brand-mark span {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--muted);
}
#sidebar > .eyebrow {
  margin-top: 46px;
  font-size: 9px;
}
nav {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  background: none;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  text-align: left;
}
.nav-item.active {
  background: #23312b;
  border-color: #334b3e;
  color: var(--accent);
}
.nav-item:hover {
  color: var(--text);
}
.sidebar-foot {
  margin-top: auto;
  font-size: 11px;
  color: #acb8b9;
}
.sidebar-foot p {
  font-size: 8px;
  letter-spacing: 1.1px;
  color: var(--muted);
  margin-top: 13px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 8px;
}
#workspace {
  margin-left: 232px;
  min-height: 100vh;
  padding: 0 48px 20px;
  max-width: 1500px;
}
.topbar {
  height: 87px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.topbar strong {
  color: var(--text);
  font-weight: 450;
}
.slash {
  padding: 0 12px;
  color: #455255;
}
.version {
  font-size: 9px;
  letter-spacing: 1.5px;
}
.version span {
  color: var(--accent);
  margin-left: 8px;
}
.tab-panel {
  max-width: 1020px;
  margin: auto;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 45px 0 28px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  font-weight: 500;
  margin: 12px 0;
}
h2 {
  font-size: 18px;
  font-weight: 500;
}
.section-header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}
.badge {
  border: 1px solid #3d574a;
  background: #1c2c24;
  color: var(--accent);
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 9px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.badge.warning {
  background: #332b1f;
  border-color: #655238;
  color: #edcf9c;
}
.operator-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 43px;
  background:
    radial-gradient(ellipse at 93% 50%, #263d33, transparent 60%), #171f20;
  border: 1px solid #354a40;
  border-radius: 12px;
  min-height: 220px;
  overflow: hidden;
}
.operator-card h2 {
  font-size: 29px;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 15px 0;
}
.operator-card p {
  color: #b3bfba;
  font-size: 12px;
  max-width: 520px;
  line-height: 1.8;
}
.privacy-note {
  display: block;
  font-size: 9px;
  color: #6f8980;
  margin-top: 20px;
  letter-spacing: 0.4px;
}
.mic-button {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: #a4e1c4;
  border-radius: 50%;
  border: 7px solid #365649;
  box-shadow:
    0 0 0 13px #20362a80,
    0 0 0 25px #293c3033;
  display: grid;
  place-items: center;
  margin-left: 30px;
}
.mic-button svg {
  width: 29px;
  fill: none;
  stroke: #1a3025;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.mic-button.listening {
  animation: pulse 1.1s infinite;
}
@keyframes pulse {
  50% {
    box-shadow:
      0 0 0 20px #35584860,
      0 0 0 34px #293c3033;
  }
}
.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 35px;
}
.quick-actions button,
.secondary {
  background: #191f22;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #b6c1c2;
  font-size: 11px;
  padding: 11px 14px;
}
.quick-actions button:hover,
.secondary:hover {
  border-color: #718e7f;
}
.messages {
  min-height: 160px;
  max-height: 480px;
  overflow: auto;
  display: grid;
  gap: 15px;
  padding-bottom: 20px;
}
.welcome {
  border-left: 2px solid #496753;
  padding-left: 20px;
  margin: 12px 0;
}
.welcome p {
  font-size: 14px;
  line-height: 1.7;
  color: #c1cbc8;
  max-width: 570px;
}
.welcome small {
  font-size: 11px;
  color: var(--muted);
}
.message {
  background: var(--panel);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 13px;
  word-break: break-word;
}
.message.user {
  background: #1b2925;
  border-color: #31473d;
  max-width: 85%;
  margin-left: auto;
}
.message .eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}
.composer {
  background: #1a2023;
  border: 1px solid #394248;
  border-radius: 10px;
  overflow: hidden;
}
.composer textarea {
  background: none;
  border: 0;
  width: 100%;
  resize: vertical;
  color: var(--text);
  padding: 22px;
  min-height: 86px;
}
.composer textarea:focus {
  outline: 0;
}
.composer footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px 13px;
}
.composer footer > span {
  font-size: 10px;
  color: #728186;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: #153125;
  background: var(--accent);
  border: 0;
  border-radius: 5px;
  padding: 11px 17px;
  font-size: 12px;
  font-weight: 650;
}
.primary:hover {
  background: #c0efda;
}
.voice-options {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  font-size: 10px;
  color: var(--muted);
}
.voice-options select {
  width: auto;
  padding: 5px;
  font-size: 10px;
}
.voice-options label {
  display: flex;
  gap: 6px;
  align-items: center;
}
.voice-options input {
  accent-color: var(--accent);
}
.text-button {
  background: none;
  border: 0;
  color: var(--accent);
  padding: 5px 0;
  font-size: 11px;
}
.disclosure {
  font-size: 10px;
  color: #6b797e;
  line-height: 1.8;
  margin: 17px 0 32px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: #607176;
  font-size: 8px;
  letter-spacing: 1px;
}
.login-panel {
  max-width: 500px;
  margin: 85px auto 100px;
}
.login-panel h1 {
  font-size: 50px;
  line-height: 1.1;
  margin: 25px 0;
}
.login-panel > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.9;
}
.login-panel form {
  display: grid;
  gap: 15px;
  margin-top: 35px;
}
.login-panel label {
  font-size: 11px;
  color: var(--muted);
}
input:not([type="checkbox"]),
textarea,
select {
  background: #111719;
  color: var(--text);
  border: 1px solid #364249;
  border-radius: 5px;
  padding: 13px;
  width: 100%;
}
.form-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  margin-bottom: 25px;
  display: grid;
  gap: 14px;
}
.form-card h2 {
  margin: 0 0 5px;
}
.form-card p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 12px;
  margin: 0;
}
.form-card label {
  color: var(--muted);
  font-size: 11px;
}
.form-card .primary {
  justify-self: start;
}
.card-list {
  display: grid;
  gap: 14px;
}
.data-card {
  padding: 23px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.data-card p {
  line-height: 1.7;
  white-space: pre-wrap;
  font-size: 13px;
}
.data-card h3 {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 10px;
  letter-spacing: 1px;
}
.data-card small {
  font-size: 10px;
  color: var(--muted);
  word-break: break-all;
}
.data-card pre {
  font:
    11px/1.8 ui-monospace,
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
  color: #b6c9c0;
  max-height: 330px;
  overflow: auto;
  background: #111719;
  padding: 15px;
  border-radius: 5px;
}
.execution-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 17px;
}
.global-error {
  position: fixed;
  bottom: 20px;
  left: calc(232px + 48px);
  right: 48px;
  background: #432724;
  color: var(--danger);
  border: 1px solid #86554d;
  padding: 16px;
  border-radius: 7px;
  font-size: 12px;
  z-index: 10;
}
#login-error {
  color: var(--danger);
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1600px) {
  #workspace {
    margin-right: auto;
  }
}
@media (max-width: 900px) {
  #sidebar {
    width: 185px;
    padding: 30px 16px;
  }
  #workspace {
    margin-left: 185px;
    padding: 0 25px 20px;
  }
  .brand {
    font-size: 16px;
  }
  .operator-card {
    padding: 28px;
  }
  .section-header h1 {
    font-size: 27px;
  }
  .global-error {
    left: 210px;
    right: 25px;
  }
}
@media (max-width: 640px) {
  #sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 17px 20px;
  }
  .brand {
    font-size: 17px;
  }
  .brand-mark {
    height: 30px;
    width: 28px;
    font-size: 23px;
  }
  #sidebar > .eyebrow,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    margin-top: 17px;
    gap: 5px;
  }
  .nav-item {
    padding: 9px;
    font-size: 11px;
    gap: 5px;
    flex: 1;
    justify-content: center;
  }
  #workspace {
    margin-left: 0;
    padding: 0 20px 20px;
  }
  .topbar {
    height: 55px;
  }
  .section-header {
    margin: 29px 0 22px;
    align-items: start;
    flex-wrap: wrap;
  }
  .section-header h1 {
    font-size: 27px;
  }
  .operator-card {
    padding: 25px;
    min-height: 190px;
  }
  .operator-card p {
    max-width: 175px;
  }
  .mic-button {
    width: 65px;
    height: 65px;
    margin-left: 15px;
    border-width: 5px;
    box-shadow:
      0 0 0 8px #20362a80,
      0 0 0 16px #293c3033;
  }
  .privacy-note {
    max-width: 180px;
    line-height: 1.8;
  }
  .quick-actions {
    margin-bottom: 20px;
  }
  .voice-options {
    flex-wrap: wrap;
    gap: 12px;
  }
  .workspace-footer {
    font-size: 7px;
  }
  .login-panel {
    margin: 50px 0;
  }
  .login-panel h1 {
    font-size: 42px;
  }
  .global-error {
    left: 20px;
    right: 20px;
  }
  .message.user {
    max-width: 95%;
  }
}
