body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f4f1ea;
  color: #1f2a2e;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(120deg, #17313a, #2d5d57);
  color: #fff9eb;
}

.topbar h1 {
  margin: 0;
  font-size: 1.8rem;
}

.topbar p {
  margin: 0.25rem 0 0;
  opacity: 0.85;
}

.topnav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.topnav-link {
  color: #fff9eb;
  text-decoration: none;
  font-weight: 700;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 249, 235, 0.28);
  background: rgba(255, 249, 235, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.topnav-link:hover {
  background: rgba(255, 249, 235, 0.2);
}

.topnav-form {
  margin: 0;
}

.topnav-button {
  width: auto;
  color: #17313a;
  font-weight: 700;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 249, 235, 0.28);
  background: #f0c96a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.topnav-button:hover {
  background: #f7d883;
}

.topnav-user {
  align-self: center;
  color: #fff9eb;
  font-weight: 700;
  opacity: 0.9;
}

.auth-shell {
  min-height: calc(100vh - 10rem);
  display: grid;
  place-items: start center;
  padding-top: 8vh;
}

.auth-panel {
  width: min(100%, 420px);
}

.auth-links {
  margin-top: 1rem;
}

.page-banner {
  margin: 1rem 1.25rem 0;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #e3f2d9;
  color: #234b1b;
  border: 1px solid #b9d6ab;
}

.page-banner-error {
  background: #f6d4d4;
  color: #7a1f1f;
  border-color: #e7b2b2;
}

.page {
  padding: 1.25rem;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  gap: 1rem;
}

.layout.sidebar-hidden {
  grid-template-columns: 1fr;
}

.sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.sidebar.is-hidden {
  display: none;
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wide {
  grid-column: 1 / -1;
}

.panel {
  background: #fffdf7;
  border: 1px solid #ded3bd;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(31, 42, 46, 0.06);
}

.panel h2, .panel h3 {
  margin-top: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  text-align: left;
  border-bottom: 1px solid #ece3d0;
  padding: 0.7rem 0.5rem;
  vertical-align: top;
}

.badge {
  display: inline-block;
  background: #ddebe4;
  color: #17313a;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
}

.badge-action {
  background: #f7dfb8;
  color: #6d3b10;
}

.badge-waiting {
  background: #d7e9f7;
  color: #16496c;
}

.badge-history {
  background: #e6ddf7;
  color: #4b2a79;
}

.badge-sensitive {
  background: #f6d4d4;
  color: #7a1f1f;
}

.small-card {
  padding: 0.65rem 0;
  border-bottom: 1px solid #ece3d0;
}

.small-card:last-child {
  border-bottom: none;
}

.inline-form {
  margin: 0.65rem 0;
}

.thread-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0 1rem;
}

.thread-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.3rem 0 0.75rem;
}

.thread-filter-group {
  margin-top: 0.75rem;
}

.thread-filter-caption {
  color: #6b5b48;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.thread-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #c9bda5;
  border-radius: 8px;
  background: #fffaf0;
  color: #17313a;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.thread-filter-chip strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  min-height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #efe7d7;
  color: #5f6c70;
  font-size: 0.78rem;
}

.thread-filter-chip-active {
  border-color: #2f6473;
  background: #e9f2f3;
  color: #17313a;
}

.thread-filter-chip-active strong {
  background: #2f6473;
  color: #fffdf7;
}

.thread-link {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #d8c9aa;
  background: #f7f1e4;
  color: #17313a;
  text-decoration: none;
}

.thread-link span {
  color: #5f6c70;
  font-size: 0.88rem;
}

.thread-link-active {
  border-color: #b9502e;
  background: #efe0ce;
}

.path-text {
  margin-top: 0.3rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.compact-form {
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.advanced-workspace-details {
  color: #5f6c70;
  margin-top: 0.75rem;
}

.advanced-workspace-details summary {
  color: #17313a;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

.source-url-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.source-url-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid #eadcc2;
  border-radius: 8px;
  background: #f7f1e4;
}

.artifact-output-list {
  display: grid;
  gap: 0.55rem;
}

.artifact-output-panel {
  border-color: #c7d7cd;
  background: #fbfffb;
}

.artifact-output-panel .section-header-row {
  align-items: start;
}

.artifact-output-list-prominent {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.artifact-output-compact {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #eadcc2;
}

.artifact-output-compact h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.sidebar-artifacts {
  margin-top: 1rem;
}

.artifact-output-link {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d8c9aa;
  border-radius: 8px;
  background: #fff9ed;
  color: #17313a;
  text-decoration: none;
}

.artifact-output-panel .artifact-output-link {
  background: #ffffff;
  border-color: #c9d9cf;
}

.mode-panel {
  border-color: #c7d7cd;
  background: #fbfffb;
}

.mode-filter-row {
  margin: 0.35rem 0 0;
}

.mode-filter-chip {
  flex: 1 1 12rem;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.45rem 0.7rem;
}

.artifact-output-link:hover {
  border-color: #b9502e;
  background: #fff3dd;
}

.artifact-output-link span {
  color: #5f6c70;
  font-size: 0.86rem;
}

.artifact-output-item {
  display: grid;
  gap: 0.5rem;
}

.artifact-output-item .artifact-output-main {
  min-width: 0;
}

.artifact-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  margin-top: -0.35rem;
}

.artifact-html-view {
  max-width: 980px;
  margin: 0 auto;
}

.artifact-html-body {
  margin-top: 1rem;
}

.artifact-html-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.astra-list-note {
  margin-top: 0.35rem;
  color: #5f6c70;
  font-size: 0.95rem;
  line-height: 1.35;
}

.astra-markdown-image {
  display: block;
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  margin: 0.65rem 0;
  border: 1px solid #e1d7c2;
  background: #fffaf0;
  object-fit: contain;
}

.artifact-output-muted {
  opacity: 0.72;
}

.artifact-output-muted:hover {
  border-color: #d8c9aa;
  background: #fff9ed;
}

.thread-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.thread-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  min-height: 0;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #d8c9aa;
  background: #fff9ed;
  color: #17313a;
  text-decoration: none;
}

.thread-card:hover {
  border-color: #b9502e;
  background: #fff3dd;
}

.thread-card-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.thread-card-section {
  display: grid;
  gap: 0.3rem;
}

.thread-card-label {
  color: #7a6c57;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.thread-card-text {
  margin: 0;
  color: #5f6c70;
  line-height: 1.4;
}

.thread-card-wiki {
  display: block;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #6d3b10;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.35;
  background: #f7f1e4;
  border: 1px solid #eadcc2;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
}

.thread-card-updated {
  align-self: end;
  border-top: 1px solid #ece3d0;
  color: #7a6c57;
  font-size: 0.84rem;
  padding-top: 0.65rem;
}

.answer-card {
  margin-top: 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: #efe7d7;
  border: 1px solid #d8c9aa;
}

.conversation-list {
  display: grid;
  gap: 0.9rem;
}

.conversation-item {
  display: grid;
  gap: 0.75rem;
  border: 1px solid #ece3d0;
  border-radius: 10px;
  background: #fff9ed;
  padding: 0.9rem;
}

.conversation-item:last-child {
  border-bottom: 1px solid #ece3d0;
  padding-bottom: 0.9rem;
}

.conversation-meta {
  color: #7b8587;
  font-size: 0.85rem;
}

.conversation-step {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem 0.8rem;
  border-radius: 9px;
}

.conversation-input {
  background: #f7f1e4;
  border: 1px solid #eadcc2;
}

.conversation-input summary,
.conversation-answer summary {
  color: #17313a;
  cursor: pointer;
  font-weight: 700;
  margin-top: 0.2rem;
}

.input-preview {
  max-height: 9.5rem;
  overflow: hidden;
  border-left: 3px solid #d8c9aa;
  padding-left: 0.7rem;
}

.conversation-upload-preview {
  display: block;
  width: min(100%, 22rem);
  margin-top: 0.35rem;
  border: 1px solid #d8c9aa;
  border-radius: 7px;
  overflow: hidden;
  background: #fffaf0;
}

.conversation-upload-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.conversation-upload-preview img {
  display: block;
  width: 100%;
  max-height: 14rem;
  object-fit: contain;
}

.conversation-upload-preview span {
  display: block;
  padding: 0.65rem 0.75rem;
  color: #17313a;
  font-weight: 700;
}

.conversation-upload-file {
  width: min(100%, 22rem);
  padding: 0.65rem 0.75rem;
  border: 1px solid #d8c9aa;
  border-radius: 7px;
  background: #fffaf0;
  color: #17313a;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.conversation-answer {
  background: #efe7d7;
  border: 1px solid #d8c9aa;
  border-left: 4px solid #b9502e;
}

.codex-history-item .conversation-answer {
  border-left-color: #2f6473;
  background: #edf4f4;
}

.codex-latest-card {
  display: grid;
  gap: 0.3rem;
}

.codex-runbook-sidebar-card {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.codex-domaincat-audit {
  background: #f8fbf8;
  border: 1px solid #c7d7cd;
  border-left: 4px solid #54856b;
}

.codex-domaincat-table {
  margin-top: 0.65rem;
}

.codex-top-refresh-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d8c9aa;
  border-radius: 8px;
  background: #fffdf7;
  color: #17313a;
  font-weight: 700;
}

.codex-run-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  color: #5f6c70;
  font-size: 0.86rem;
}

.codex-run-paths {
  display: grid;
  gap: 0.15rem;
}

.codex-unmatched-section {
  display: grid;
  gap: 0.65rem;
  margin: 0.9rem 0 1rem;
  padding: 0.85rem;
  border: 1px solid #e0b9b9;
  border-radius: 10px;
  background: #fff6f4;
}

.codex-unmatched-section h3,
.codex-unmatched-section p {
  margin: 0;
}

.codex-unmatched-list {
  display: grid;
  gap: 0.55rem;
}

.codex-unmatched-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #edcccc;
  border-radius: 8px;
  background: #fffdf9;
}

.conversation-answer .voice-controls {
  margin-top: 0.55rem;
}

.conversation-input .muted,
.conversation-answer .muted {
  white-space: pre-wrap;
}

.astra-output {
  color: #243237;
}

.reply-details {
  margin-top: 0.2rem;
}

.reply-truncation-note {
  margin-top: 0.2rem;
}

.astra-rendered {
  color: #243237;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.conversation-answer .astra-rendered,
.answer-card .astra-rendered {
  white-space: normal;
}

.astra-text-block {
  margin: 0 0 0.85rem;
}

.astra-text-block:last-child,
.astra-table-wrap:last-child {
  margin-bottom: 0;
}

.astra-rendered h3,
.astra-rendered h4,
.astra-rendered h5,
.astra-rendered h6 {
  margin: 1.15rem 0 0.5rem;
  color: #17313a;
  line-height: 1.2;
}

.astra-rendered h3:first-child,
.astra-rendered h4:first-child,
.astra-rendered h5:first-child,
.astra-rendered h6:first-child {
  margin-top: 0;
}

.astra-rendered ul,
.astra-rendered ol {
  margin: 0.35rem 0 1rem 1.35rem;
  padding: 0;
}

.astra-rendered li {
  margin: 0.22rem 0;
}

.astra-code-label {
  margin-top: 0.9rem;
  color: #5f6c70;
  font-size: 0.86rem;
}

.astra-code-block {
  margin: 0.35rem 0 1rem;
  padding: 0.8rem;
  overflow-x: auto;
  border: 1px solid #d8c9aa;
  border-radius: 8px;
  background: #fffdf7;
}

.astra-table-wrap {
  max-width: 100%;
  margin: 0.8rem 0 1rem;
  overflow-x: auto;
  border: 1px solid #d8c9aa;
  border-radius: 8px;
  background: #fffdf7;
}

.astra-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.astra-table th,
.astra-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #eadcc2;
  border-right: 1px solid #eadcc2;
  text-align: left;
  vertical-align: top;
}

.astra-table th:last-child,
.astra-table td:last-child {
  border-right: 0;
}

.astra-table tbody tr:last-child td {
  border-bottom: 0;
}

.astra-table th {
  background: #f7f1e4;
  color: #17313a;
  font-weight: 700;
}

.astra-table tbody tr:nth-child(even) {
  background: #fbf6eb;
}

.astra-rendered code {
  padding: 0.08rem 0.25rem;
  border-radius: 4px;
  background: rgba(23, 49, 58, 0.08);
  color: #17313a;
  font-size: 0.92em;
}

.stack {
  display: grid;
  gap: 0.5rem;
}

input, select, button {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #c9bda5;
  box-sizing: border-box;
  background: #fffdf7;
}

button {
  background: #b9502e;
  color: white;
  border: none;
  cursor: pointer;
}

textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #c9bda5;
  box-sizing: border-box;
  background: #fffdf7;
  resize: vertical;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

.action-row-tight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.section-header-row h2 {
  margin: 0;
}

.email-helper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pa-learning-panel {
  margin-top: 1rem;
}

.pa-learning-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.pa-learning-block {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid #eadcc2;
  border-radius: 8px;
  background: #fff9ed;
}

.pa-learning-block h3 {
  margin: 0 0 0.55rem;
  font-size: 0.96rem;
}

.pa-learning-list {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pa-learning-list li {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.pa-learning-list strong,
.pa-learning-list span {
  overflow-wrap: anywhere;
}

.pa-learning-list span {
  color: #5f6c70;
  font-size: 0.84rem;
}

.email-helper-panel {
  min-width: 0;
}

.email-helper-list {
  display: grid;
  gap: 0.8rem;
}

.email-helper-item {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid #eadcc2;
  border-radius: 8px;
  background: #fff9ed;
}

.email-helper-item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.email-helper-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.email-helper-facts {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.email-helper-facts div {
  min-width: 0;
}

.email-helper-facts dt {
  color: #7a6c57;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.email-helper-facts dd {
  margin: 0.1rem 0 0;
  color: #243237;
  overflow-wrap: anywhere;
}

.email-conversation-layout {
  align-items: start;
}

.email-conversation-hero {
  border-color: #c6d4c7;
}

.linked-email-panel {
  border-color: #9fb8c2;
}

.email-conversation-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.email-conversation-facts div {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid #eadcc2;
  border-radius: 8px;
  background: #fff9ed;
}

.email-conversation-facts dt {
  color: #7a6c57;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.email-conversation-facts dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.current-draft-panel {
  margin-top: 1rem;
  border-color: #dec37b;
}

.action-template-card {
  margin-top: 0.75rem;
}

.email-draft-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 0.85rem;
  border: 1px solid #eadcc2;
  border-radius: 8px;
  background: #fff9ed;
  color: #243237;
}

.email-message-body {
  overflow-wrap: anywhere;
  padding: 0.85rem;
  border: 1px solid #eadcc2;
  border-radius: 8px;
  background: #fff9ed;
  color: #243237;
  line-height: 1.45;
}

.email-body-line {
  min-height: 1.35em;
}

.email-body-blank {
  min-height: 0.65em;
}

.email-body-quote {
  color: #5f6b6f;
  padding-left: 0.7rem;
  border-left: 2px solid #eadcc2;
}

.email-message-list,
.email-guidance-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.email-message-list-older {
  margin-top: 0.75rem;
}

.email-history-extra {
  margin-top: 0.85rem;
}

.email-history-extra summary {
  cursor: pointer;
  color: #17313a;
  font-weight: 700;
}

.email-message {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  border: 1px solid #eadcc2;
  border-radius: 8px;
  background: #fffdf7;
}

.email-message-inbound {
  border-left: 4px solid #3f7b95;
}

.email-message-outbound {
  border-left: 4px solid #b9502e;
}

.email-message-internal {
  border-left: 4px solid #775ca8;
}

.email-message-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.email-message h3 {
  margin: 0;
  font-size: 1rem;
}

.email-message details summary {
  cursor: pointer;
  color: #17313a;
  font-weight: 700;
}

.voice-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: center;
  margin: 0.9rem 0 1rem;
}

.voice-status {
  grid-column: 1 / -1;
  display: block;
  min-height: 1.2rem;
  color: #5f6c70;
  font-size: 0.92rem;
}

.voice-controls-compact {
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
}

.dictation-controls {
  margin: 0.2rem 0 0.35rem;
}

.voice-controls-sidebar {
  margin: 0 0 0.75rem;
}

.speak-sidebar-form textarea {
  min-height: 11rem;
}

.typical-instruction-panel {
  display: grid;
  gap: 0.35rem;
  margin: 0.15rem 0 0.35rem;
}

.typical-instruction-button {
  justify-content: flex-start;
  width: 100%;
  min-height: auto;
  padding: 0.55rem 0.65rem;
  text-align: left;
  white-space: normal;
}

.typical-question-editor-panel {
  border-color: #c7d7cd;
  background: #fbfffb;
}

.astra-status-panel {
  border-color: #c7d7cd;
  background: #fbfffb;
  scroll-margin-top: 0.75rem;
}

.astra-status-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.astra-status-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #d8c9aa;
  border-radius: 8px;
  background: #fff9ed;
}

.astra-status-row > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.typical-question-add-form {
  margin-top: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #d8c9aa;
}

.typical-question-editor-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.typical-question-editor-item {
  border: 1px solid #d8c9aa;
  border-radius: 8px;
  background: #fff9ed;
  padding: 0.65rem 0.75rem;
}

.typical-question-editor-item summary {
  color: #17313a;
  cursor: pointer;
  font-weight: 700;
}

.typical-question-editor-item form {
  margin-top: 0.7rem;
}

.speak-sidebar-actions {
  grid-template-columns: 1fr;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #c9bda5;
  color: #17313a;
  text-decoration: none;
  background: #efe7d7;
  font-weight: 600;
}

.button-danger {
  background: #8f2f23;
  color: #fffdf7;
  border: 1px solid #8f2f23;
  font-weight: 700;
}

.button-danger:hover {
  background: #75251b;
}

.muted {
  color: #5f6c70;
  white-space: pre-wrap;
}

.artifact-output-actions .artifact-delete-link {
  all: unset;
  cursor: pointer;
  color: #9b9286;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.72;
}

.artifact-output-actions .artifact-delete-link:hover {
  color: #6f6256;
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .layout,
  .company-grid,
  .email-helper-grid,
  .pa-learning-grid,
  .email-conversation-facts {
    grid-template-columns: 1fr;
  }

  .voice-controls {
    grid-template-columns: 1fr;
  }

  .astra-status-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
