/* Signed-in workspace: account, messages, questions, admin. Values come from tokens.css. */
.shell {
  min-height: 100dvh;
  background: var(--e-bg);
  color: var(--e-text);
}
.shell .e-page {
  min-height: calc(100dvh - var(--e-row));
  padding-top: var(--e-space-xxxl);
  padding-bottom: var(--e-space-xxxl);
}
.topbar {
  display: flex;
  justify-content: center;
  height: var(--e-row);
  border-bottom: 1px solid var(--e-line); /* design-literal: hairline */
  background: var(--e-bg);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--e-page-max);
  padding: 0 var(--e-gutter);
}
@media (min-width: 768px) {
  .topbar-inner {
    padding: 0 var(--e-gutter-wide);
  }
}
.topbar .wordmark {
  font-size: var(--e-font-headline);
  line-height: var(--e-leading-headline);
  font-weight: var(--e-weight-headline);
  color: var(--e-text);
}
.account {
  display: flex;
  align-items: center;
  gap: var(--e-space-l);
  font-size: var(--e-font-footnote);
  line-height: var(--e-leading-footnote);
  color: var(--e-text-muted);
}
.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--e-space-xl);
  text-align: center;
}
.empty-state svg {
  width: 160px; /* design-literal: empty-state illustration width */
  height: 120px; /* design-literal: empty-state illustration height */
  margin-bottom: var(--e-space-m);
  fill: none;
  stroke: var(--e-text-muted);
  stroke-width: 2; /* design-literal: illustration stroke */
  stroke-linecap: round;
  stroke-linejoin: round;
}
.empty-state svg circle {
  fill: var(--e-text-muted);
  stroke: none;
}
.empty-state svg .empty-shadow {
  fill: var(--e-line);
  stroke: none;
}
.question-form {
  display: grid;
  gap: var(--e-space-xl);
}
.question-form > .e-button-primary {
  width: auto;
  justify-self: start;
}
.question-choices {
  display: grid;
  gap: var(--e-space-s);
}
.question-choices .e-button-secondary.is-selected {
  box-shadow: inset 0 0 0 2px var(--e-accent);
}
.admin-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr); /* design-literal: admin editor column width */
  gap: var(--e-space-xxl);
  align-items: start;
}
.admin-editor {
  display: grid;
  gap: var(--e-space-xl);
}
.admin-editor > .e-button-primary {
  width: auto;
  justify-self: start;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--e-space-s);
  font-size: var(--e-font-footnote);
  line-height: var(--e-leading-footnote);
}
.checkbox-label input {
  width: var(--e-space-l);
  height: var(--e-space-l);
  margin: 0;
  padding: 0;
}
.admin-table-section {
  display: grid;
  gap: var(--e-space-xl);
  min-width: 0;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--e-font-footnote);
  line-height: var(--e-leading-footnote);
}
.admin-table th,
.admin-table td {
  padding: var(--e-space-m);
  border-bottom: 1px solid var(--e-line);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  color: var(--e-text-muted);
  font-weight: var(--e-weight-medium-value);
}
.recommendation-tools {
  display: grid;
  gap: var(--e-space-xl);
  margin-top: var(--e-space-xxl);
  padding-top: var(--e-space-xxl);
  border-top: 1px solid var(--e-line);
}
.recommendation-settings {
  display: grid;
  gap: var(--e-space-l);
  max-width: var(--e-page-max);
}
.recommendation-settings > .e-button-primary {
  width: auto;
  justify-self: start;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-space-xl);
}
.preview-form {
  display: grid;
  gap: var(--e-space-l);
  max-width: var(--e-column-max);
  margin: var(--e-space-xl) 0;
}
.preview-form > .e-button-primary {
  width: auto;
  justify-self: start;
}
.selection-reason {
  margin: var(--e-space-m) 0;
  color: var(--e-text-muted);
}
.preview-history {
  line-height: var(--e-leading-body);
}
.recommendation-tools details p {
  margin: var(--e-space-m) 0;
}
.response-card {
  padding: var(--e-card-padding);
  margin-top: var(--e-space-l);
  border-radius: var(--e-radius-card);
  background: var(--e-surface);
  overflow-wrap: anywhere;
}
.response-card p + p {
  margin-top: var(--e-space-s);
}
.workspace {
  width: min(var(--e-page-max), calc(100% - var(--e-space-xxxl)));
  margin: 0 auto;
  padding: var(--e-space-xxxl) 0 var(--e-space-xxxl);
}
.intro {
  margin-bottom: var(--e-space-xxl);
}
.eyebrow {
  margin-bottom: var(--e-space-s);
  color: var(--e-text-muted);
  font-size: var(--e-font-footnote);
  line-height: var(--e-leading-footnote);
}
.intro h1 {
  font-family: Georgia, serif;
  font-size: var(--e-font-display);
  line-height: var(--e-leading-display);
  font-weight: var(--e-weight-display);
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px; /* design-literal: sidebar column for home layout */
  gap: var(--e-space-xl);
  align-items: start;
}
.panel {
  padding: var(--e-space-xl);
  border-radius: var(--e-radius-card);
  background: var(--e-surface);
}
.panel h2 {
  margin-bottom: var(--e-space-xl);
  font-size: var(--e-font-body);
  line-height: var(--e-leading-body);
  font-weight: var(--e-weight-semibold-value);
}
.message-list {
  display: grid;
  gap: var(--e-space-m);
}
.message-card {
  display: grid;
  gap: var(--e-space-s);
}
.message-card.message-reply {
  margin-left: var(--e-space-xxxl);
  background: var(--e-success-surface);
}
.message-text {
  margin: 0;
  font-size: var(--e-font-body);
  line-height: var(--e-leading-body);
  white-space: pre-wrap;
}
.reply-form {
  display: grid;
  gap: var(--e-space-m);
  margin-top: var(--e-space-xl);
  padding-top: var(--e-space-l);
  border-top: 1px solid var(--e-line);
}
.reply-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-space-s);
}
.reply-options .e-button-secondary {
  width: auto;
  min-height: var(--e-target);
}
.reply-form > .e-button-primary {
  width: auto;
  justify-self: start;
}
.integration-body {
  display: grid;
  gap: var(--e-space-m);
}
.status-line {
  font-weight: var(--e-weight-bold-value);
}
.empty-copy {
  color: var(--e-text-muted);
  font-size: var(--e-font-footnote);
  line-height: var(--e-leading-footnote);
}
@media (max-width: 760px) {
  .account > span {
    display: none;
  }
  .workspace {
    width: min(calc(100% - var(--e-space-xxl)), 600px); /* design-literal: narrow home column cap */
    padding-top: var(--e-space-xxl);
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .intro h1 {
    font-size: var(--e-font-display);
    line-height: var(--e-leading-display);
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .integration {
    grid-row: 1;
  }
  .panel {
    padding: var(--e-space-xl);
  }
  .message-card.message-reply {
    margin-left: var(--e-space-xl);
  }
}
