.voice-controls {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

#agent-thinking[hidden] {
  display: none;
}

#agent-thinking:not([hidden]) {
  display: block;
}

.agent-actions {
  display: flex;
  gap: 0.35rem;
}

.agent-actions button {
  background: #ffffff11;
  border: 1px solid #ffffff33;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  padding: 5px 10px;
}

.agent.minimized {
  height: 58px;
  min-height: 0;
  padding: 12px 14px;
  resize: none;
  width: 210px;
}

.agent.minimized > p,
.agent.minimized > .agent-response,
.agent.minimized > .voice-controls,
.agent.minimized > .htmx-indicator,
.agent.minimized > form,
.agent.minimized .agent-expand {
  display: none;
}

.agent.minimized .agent-heading {
  height: 100%;
}

.agent.minimized .agent-heading h2 {
  font-size: 18px;
}

.voice-toggle {
  background: #fff1e8;
  border: 1px solid #dc7744;
  color: #7d2e12;
  min-width: 8.4rem;
}

.voice-toggle:hover {
  background: #ffe2d1;
}

#voice-status {
  color: #b8c8c3;
  font-size: 0.78rem;
  line-height: 1.2;
}

#voice-status[data-state="listening"] {
  color: #ffab91;
  font-weight: 700;
}

#voice-status[data-state="ready"],
#voice-status[data-state="tool"] {
  color: #8de0d2;
}

#voice-status[data-state="error"] {
  color: #ff9b96;
}

.chat-assistant a {
  color: #8de0d2;
  text-decoration: underline;
}

.account-nav {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  white-space: nowrap;
}

.account-nav form {
  display: inline;
}

.account-nav .link {
  color: #136f63;
  padding: 0;
}

.auth-card {
  background: white;
  border: 1px solid #dfe4df;
  border-radius: 14px;
  margin: 2rem auto;
  max-width: 520px;
  padding: 2rem;
}

.auth-card form,
.auth-card label {
  display: grid;
  gap: 0.6rem;
}

.auth-card form {
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 850px) {
  .account-nav {
    margin-left: auto;
  }
}
