.provider-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.provider-label select {
  max-width: 57vw;
  border: 1px solid #495045;
  border-radius: 6px;
  padding: 5px;
  background: #232823;
  color: #edf1eb;
  font: inherit;
}
#codexLogin a,
#githubLogin a {
  color: var(--green);
}
:root {
  color-scheme: dark;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  background: #171a18;
  color: #edf1eb;
  --bg: #171a18;
  --edge: #353a35;
  --muted: #a1aaa0;
  --green: #d7ff79;
  --side: #111412;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.12s;
}
button:active {
  transform: translateY(1px);
}
button:hover {
  background: #2b302b;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
button svg,
[data-icon] svg {
  width: 19px;
  height: 19px;
  display: block;
  flex: none;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.skip:focus {
  position: fixed;
  z-index: 10;
  background: var(--green);
  color: #151915;
  padding: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.06em;
}
.brand img {
  border-radius: 9px;
}
main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}
header {
  height: 72px;
  flex: none;
  border-bottom: 1px solid #2a302b;
  padding: 0 clamp(18px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.header-actions,
.voice-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.voice-toggle {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--edge);
  border-radius: 22px;
  white-space: nowrap;
}
.voice-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}
#scroll {
  overflow: auto;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}
.welcome {
  margin: auto;
  text-align: center;
  padding: 24px 20px 36px;
  animation: enter 0.35s ease-out;
}
.welcome canvas {
  display: block;
  width: min(310px, 70vw);
  height: auto;
  margin: 0 auto 16px;
}
.welcome h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.07;
  letter-spacing: -0.065em;
  font-weight: 530;
  margin: 0;
}
.welcome p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}
.compose-area,
#thread {
  width: min(100%, 850px);
  align-self: center;
  padding-left: clamp(14px, 3vw, 36px);
  padding-right: clamp(14px, 3vw, 36px);
}
.compose-area {
  padding-bottom: clamp(14px, 3vh, 35px);
  padding-top: 10px;
}
#compose {
  border: 1px solid #495045;
  background: #232823;
  border-radius: 17px;
  padding: 15px 15px 12px;
  box-shadow: 0 8px 24px #10141030;
}
.header-actions button,
.send,
#talk {
  min-height: 44px;
}
.header-actions .icon,
.send {
  min-width: 44px;
}
.provider-label select {
  min-height: 44px;
}
#compose:focus-within {
  border-color: #748164;
}
textarea {
  display: block;
  width: 100%;
  resize: vertical;
  max-height: 17vh;
  min-height: 48px;
  background: transparent;
  color: inherit;
  border: 0;
  padding: 4px;
  font-size: 1rem;
  line-height: 1.5;
}
textarea:focus-visible {
  outline: none;
}
textarea::placeholder {
  color: #a3aca0;
}
.tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tools {
  margin-top: 9px;
}
#talk {
  background: var(--green);
  padding: 10px 16px;
  min-height: 40px;
  border: 1px solid #414a3f;
  border-radius: 8px;
  color: #1d2516;
  font-size: 0.84rem;
  touch-action: none;
  user-select: none;
}
#talk:hover {
  background: #e5ffa4;
}
#talk.recording {
  color: #fff2e9;
  background: #703b2c;
}
.send,
.primary {
  background: var(--green);
  color: #1d2516;
  border-radius: 9px;
  font-weight: 650;
}
.send {
  width: 40px;
  height: 40px;
}
.send:hover,
.primary:hover {
  background: #e5ffa4;
}
#notice {
  border-left: 2px solid var(--green);
  background: #242b22;
  padding: 10px 12px;
  margin-bottom: 9px;
  font-size: 0.89rem;
}
#thread {
  padding-top: 20px;
  padding-bottom: 14px;
}
.turn {
  margin: 16px 0 23px;
  min-width: 0;
}
.turn.user {
  margin-left: auto;
  max-width: 85%;
  width: fit-content;
  background: #2a312a;
  border: 1px solid #363f34;
  border-radius: 13px 13px 3px 13px;
  padding: 12px 16px;
}
.turn .who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #bfcab9;
  font-weight: 600;
  margin-bottom: 8px;
}
.turn p,
.reply {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  margin: 0;
}
.turn.system,
.job,
.approval {
  font-size: 0.9rem;
  color: #bec6bb;
}
.job,
.approval {
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 13px;
  margin: 12px 0;
}
.job > summary,
details > summary {
  cursor: pointer;
}
.job details {
  margin-top: 9px;
}
.job pre,
.reply pre,
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #111511;
  color: #d5e1cf;
  padding: 12px;
  border-radius: 6px;
  font:
    0.82rem/1.55 'Cascadia Code',
    Consolas,
    monospace;
  max-height: 320px;
  overflow: auto;
}
.turn .listen {
  min-height: 32px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}
.approval p {
  overflow-wrap: anywhere;
}
.approval button,
.secondary {
  border: 1px solid var(--edge);
  border-radius: 7px;
  padding: 9px 13px;
  margin: 4px 7px 0 0;
}
.approval .approve {
  background: var(--green);
  color: #161c12;
}
.icon {
  height: 40px;
  width: 40px;
  border-radius: 8px;
}
dialog {
  width: min(420px, calc(100% - 32px));
  border: 1px solid #4a5346;
  border-radius: 16px;
  background: #1b201c;
  color: #edf3e9;
  padding: 29px;
  box-shadow: 0 25px 100px #0008;
}
dialog::backdrop {
  background: #090c09bb;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 1.6rem;
  letter-spacing: -0.045em;
  margin: 15px 0 9px;
}
dialog p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}
dialog label,
dialog input {
  display: block;
  width: 100%;
}
dialog label {
  font-size: 0.85rem;
  margin: 20px 0 7px;
}
dialog input {
  padding: 11px 12px;
  background: #121613;
  border: 1px solid #50594c;
  border-radius: 7px;
  color: inherit;
}
.primary {
  padding: 11px 18px;
  min-height: 42px;
}
dialog .error {
  color: #ffb69e;
  font-size: 0.84rem;
}
.dialog-title,
.connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dialog-title h2 {
  margin: 0;
}
.speech-volume {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  margin: 18px 0 8px;
}
.speech-volume label {
  margin: 0;
}
#volumeValue {
  color: var(--muted);
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}
#speechVolume {
  grid-column: 1 / -1;
  min-height: 34px;
  margin: 0;
  padding: 0;
  accent-color: var(--green);
}
.connections section {
  border-bottom: 1px solid var(--edge);
  padding: 9px 0;
}
.connection-row strong {
  font-weight: 550;
}
.connection-row button {
  margin: 0;
}
.connection-action {
  min-height: 44px;
  border: 1px solid #536044;
  color: var(--green);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.87rem;
}
.connection-action:hover {
  background: #2a3326;
}
.connections p,
.connections ul {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.connections ul {
  padding-left: 22px;
}
.connections a {
  text-decoration: underline;
}
.connections [role='status'] strong {
  color: #edf1eb;
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 760px) {
  header {
    height: 61px;
    padding: 0 12px;
  }
  .welcome {
    padding-bottom: 20px;
  }
  .compose-area {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  #thread {
    padding-top: 8px;
  }
  .voice-toggle {
    min-height: 40px;
  }
  .turn.user {
    max-width: 94%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
