:root {
  color-scheme: light;
  --bg: #fafaf8;
  --surface: #fff;
  --ink: #20231f;
  --muted: #72776e;
  --line: #e4e6df;
  --soft: #f1f3ed;
  --accent: #335b43;
  --accent-soft: #edf3ec;
  --danger: #a34838;
  --warning: #8a6527;
  --button: #242b23;
  --button-text: #fff;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
.provider-security {
  padding: 22px 24px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 24px 0 16px;
}
.account-panel,
.key-row,
.usage-totals,
.usage-table {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 20px 0;
}
.account-panel .inline-form {
  margin-top: 10px;
}
#mint-bot-token-form .field-label:not(:first-child),
#mint-bot-token-form button {
  margin-top: 16px;
}
.key-value {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 12px;
  background: var(--soft);
  border-radius: 6px;
  user-select: all;
}
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0;
}
.key-row p {
  margin: 4px 0 0;
}
.usage-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}
.usage-track {
  height: 14px;
  background: var(--soft);
  border-radius: 4px;
}
.usage-bar {
  background: var(--accent);
  height: 100%;
  border-radius: 4px;
}
.usage-table {
  overflow-x: auto;
}
.usage-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.usage-table th,
.usage-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.sidebar-actions #account-name {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--ink);
}
.provider-security p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 680px;
}
.provider-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.provider-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.provider-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.provider-heading h2 {
  margin: 0;
}
.provider-heading p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.provider-input {
  display: flex;
  gap: 10px;
}
.provider-input input {
  min-width: 0;
  flex: 1;
}
.provider-input button {
  flex-shrink: 0;
}
.provider-connected {
  background: var(--accent-soft);
  color: var(--accent);
}
.provider-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 1100px) {
  .provider-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .provider-heading,
  .provider-footer,
  .provider-input {
    flex-direction: column;
    align-items: stretch;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151815;
  --surface: #1c201b;
  --ink: #e5e8df;
  --muted: #9ba293;
  --line: #343a30;
  --soft: #262b23;
  --accent: #a2c9a6;
  --accent-soft: #26392b;
  --danger: #efa899;
  --warning: #dfc187;
  --button: #dbe3d4;
  --button-text: #1b2219;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #151815;
    --surface: #1c201b;
    --ink: #e5e8df;
    --muted: #9ba293;
    --line: #343a30;
    --soft: #262b23;
    --accent: #a2c9a6;
    --accent-soft: #26392b;
    --danger: #efa899;
    --warning: #dfc187;
    --button: #dbe3d4;
    --button-text: #1b2219;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
button,
input,
textarea,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 2.5vw, 32px);
  line-height: 1.13;
  letter-spacing: -0.8px;
  font-weight: 500;
  margin: 0 0 26px;
}
h2 {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.15px;
}
h3 {
  font-size: 17px;
  font-weight: 500;
}
input,
textarea,
select {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
  padding: 10px 12px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.72;
}
select {
  padding-right: 25px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 15px;
  top: -80px;
  z-index: 20;
  background: var(--surface);
  padding: 12px;
}
.skip-link:focus {
  top: 15px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 196px;
  border-right: 1px solid var(--line);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow-y: auto;
}
.sidebar > * {
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin: 0 0 32px;
  width: fit-content;
  max-width: 100%;
}
.brand-name {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1.8px;
  line-height: 1.1;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-mascot {
  display: block;
  width: 56px;
  min-width: 0;
  height: auto;
}
html[data-theme="dark"] .brand-mascot {
  filter: invert(1);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .brand-mascot {
    filter: invert(1);
  }
}
.brand-dot {
  color: var(--accent);
}
.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin: 0 9px 14px;
}
nav {
  display: grid;
  gap: 4px;
}
.nav-item {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 11px 9px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 450;
}
.nav-item > span {
  color: var(--muted);
  width: 17px;
  font-size: 17px;
  text-align: center;
}
.nav-item > .code-icon {
  font-size: 12px;
}
.nav-item:hover {
  background: var(--soft);
}
.nav-item.active {
  background: var(--soft);
  font-weight: 550;
}
.recent-section {
  margin-top: 40px;
}
.empty-recent {
  font-size: 11px;
  color: var(--muted);
  padding: 0 9px;
  line-height: 1.75;
}
.recent-item {
  display: block;
  width: 100%;
  padding: 10px 9px;
  border: 0;
  background: none;
  color: var(--muted);
  text-align: left;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-item:hover {
  color: var(--ink);
}
.session-scope {
  border-top: 1px solid var(--line);
  margin: 12px 9px 0;
  padding-top: 12px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.workspace {
  margin-left: 196px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  margin: 0 0 20px;
}
.breadcrumb span:last-child {
  color: var(--ink);
}
.slash {
  opacity: 0.45;
}
.sidebar-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: center;
}
.sidebar-actions #sign-in,
.sidebar-actions .connection {
  grid-column: 1 / -1;
}
.sidebar-actions #disconnect {
  font-size: 11px;
  justify-self: start;
}
.sidebar-actions #theme-toggle {
  grid-column: 2;
}
.icon-button {
  background: none;
  border: 0;
  font-size: 19px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.connection {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  min-width: 0;
}
.connection > span:last-child {
  margin-left: auto;
}
.connection-dot,
.status-dot {
  width: 5px;
  height: 5px;
  background: var(--muted);
  border-radius: 50%;
  flex-shrink: 0;
}
.connection-dot.connected {
  background: var(--accent);
}
#connection-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 34px 25px;
}
.eyebrow {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.7px;
  font-weight: 500;
}
.lede {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.compose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
}
.composer {
  min-width: 0;
}
.editor-section {
  margin-bottom: 28px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-heading h2 {
  display: flex;
  gap: 11px;
  align-items: center;
}
.segmented {
  display: flex;
  border: 0;
  margin: 0;
  padding: 2px;
  background: var(--soft);
  border-radius: 5px;
}
.segmented label {
  cursor: pointer;
  position: relative;
}
.segmented input {
  position: absolute;
  opacity: 0;
  width: 0;
}
.segmented span {
  display: block;
  padding: 4px 11px;
  font-size: 10px;
  border-radius: 3px;
  color: var(--muted);
}
.segmented input:checked + span {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px #0000000a;
}
.segmented input:focus-visible + span {
  outline: 2px solid var(--accent);
}
.context-input {
  min-height: 180px;
  padding: 14px;
  font-size: 13px;
  resize: vertical;
}
.context-input:focus-visible {
  outline-offset: -3px;
}
.context-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 12px 0;
}
.attach-button {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.attach-button:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.text-button:hover {
  color: var(--ink);
}
.quiet {
  color: var(--muted);
  font-size: 10px;
}
.attachments {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.attachment {
  display: flex;
  gap: 7px;
  align-items: center;
  background: var(--soft);
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 10px;
  margin-bottom: 15px;
  max-width: 100%;
}
.attachment > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.attachment button {
  border: 0;
  background: none;
  font-size: 14px;
  padding: 0 2px;
}
.question {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  min-width: 0;
  margin: 0 0 14px;
  padding: 18px;
}
.question-top {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.question legend {
  font-size: 11px;
  color: var(--muted);
  padding: 0 5px;
}
.question-field {
  display: grid;
  gap: 7px;
  flex: 1;
  min-width: 0;
  font-size: 11px;
}
.question-type-field {
  flex: 0 0 115px;
}
.question-prompt {
  display: grid;
  gap: 7px;
  font-size: 11px;
}
.question-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
}
.question-kind {
  font-size: 12px;
}
.question-remove {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 9px 4px;
  font-size: 16px;
}
.question-instructions {
  min-height: 74px;
  padding: 10px 12px;
  font-size: 12px;
  margin-bottom: 12px;
}
.options {
  display: grid;
  gap: 8px;
}
.option {
  display: flex;
  gap: 8px;
  align-items: center;
}
.option-key {
  width: 90px;
  flex-shrink: 0;
  font-size: 11px;
  padding: 9px;
}
.option-description {
  font-size: 11px;
  padding: 9px;
  flex: 1;
  min-width: 0;
}
.option-index {
  width: 22px;
  color: var(--muted);
  font-size: 10px;
  font-family: monospace;
}
.option-remove {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
}
.option-add {
  margin-top: 11px;
  font-size: 10px;
}
.question-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 9px;
}
.add-button {
  display: block;
  width: 100%;
  padding: 14px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--muted);
  text-align: left;
  font-size: 11px;
}
.add-button:hover {
  background: var(--soft);
}
.board-panel {
  position: sticky;
  top: 28px;
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 3px 7px 7px 24px;
  scrollbar-width: thin;
}
.board-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 400;
  white-space: nowrap;
  color: var(--muted);
}
.model-list {
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 21px;
}
.board-empty {
  padding: 12px 0;
}
.board-empty p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 12px;
}
.model-row {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  padding: 12px 0;
}
.model-row input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--accent);
}
.model-avatar {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.model-name {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.model-provider {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.model-detail {
  min-width: 0;
  flex: 1;
}
.model-row .deprecated-mark {
  font-size: 9px;
  color: var(--warning);
}
.policy-heading {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}
.field-label {
  display: block;
  font-size: 11px;
  margin-bottom: 8px;
}
.field-label .quiet {
  font-size: 9px;
  float: right;
}
.board-panel select {
  font-size: 11px;
  padding: 9px 10px;
}
.field-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.7;
}
.policy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.policy-grid input {
  padding: 8px 10px;
  font-size: 11px;
}
.board-footnote {
  display: flex;
  gap: 9px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 27px;
  line-height: 1.8;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.board-footnote .status-dot {
  margin-top: 6px;
  background: var(--accent);
}
.retention-note {
  font-size: 9px;
  color: var(--muted);
  margin-top: 13px;
  line-height: 1.8;
}
.primary-button,
.secondary-button {
  border-radius: 5px;
  padding: 11px 15px;
  font-size: 11px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}
.primary-button {
  border: 1px solid var(--button);
  background: var(--button);
  color: var(--button-text);
}
.primary-button:hover:not(:disabled) {
  opacity: 0.9;
}
.secondary-button {
  background: var(--surface);
  border: 1px solid var(--line);
}
.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 3px;
}
.submit-row > div > span {
  font-size: 10px;
  color: var(--muted);
}
.submit-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.notice {
  padding: 12px 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
.notice.error {
  color: var(--danger);
}
.error-text {
  font-size: 11px;
  color: var(--danger);
  margin-top: 16px;
}
.mono,
pre,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.device-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.device-panel {
  width: min(560px, 100%);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.device-panel .brand {
  margin-left: 0;
  margin-bottom: 28px;
}
.device-panel p {
  color: var(--muted);
}
.device-panel .device-code {
  color: var(--ink);
  font-size: 24px;
  letter-spacing: 2px;
}
.device-panel #device-sign-in {
  display: block;
  margin-top: 20px;
}
.device-panel #device-sign-in[hidden] {
  display: none;
}
.running {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
}
#elapsed {
  margin-left: auto;
}
.spinner {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  width: 410px;
  max-width: calc(100% - 32px);
  box-shadow: 0 20px 100px #00000020;
}
dialog::backdrop {
  background: #11181155;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.dialog-heading .icon-button {
  margin: -12px -13px 0 0;
}
dialog h2 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 20px 0 9px;
}
dialog .primary-button {
  width: 100%;
  margin-top: 24px;
}
dialog input {
  font-size: 12px;
}
.lookup-form {
  max-width: 580px;
  margin-top: 35px;
}
.inline-form {
  display: flex;
  gap: 12px;
}
.inline-form input {
  min-width: 0;
  font-size: 12px;
}
.result-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.result-heading-row h1 {
  font-size: 35px;
}
.result-id {
  font-size: 10px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.result-metadata {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  margin: 20px 0 25px;
}
.result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
  gap: 15px;
}
.result-tabs {
  display: flex;
  gap: 23px;
}
.result-tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 13px 0;
  font-size: 11px;
  border-bottom: 2px solid transparent;
}
.result-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.result-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.policy-link {
  display: none;
}
.answer-list {
  display: grid;
  position: sticky;
  top: 28px;
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
  gap: 8px;
  scrollbar-width: thin;
  padding: 7px;
  scroll-padding: 7px;
}
.answer-selector {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  text-align: left;
  min-width: 0;
  overflow-wrap: anywhere;
}
.answer-selector[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.answer-selector:hover {
  border-color: var(--accent);
}
.answer-selector strong,
.answer-selector small,
.answer-selector span {
  display: block;
}
.answer-selector strong {
  font-size: 13px;
  font-weight: 550;
}
.answer-selector small {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0 8px;
}
.answer-selector span {
  font-size: 13px;
}
.answer-content {
  min-width: 0;
}
.answer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 23px;
  margin-bottom: 18px;
}
.answer-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.answer-title h2 {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.status-full {
  color: var(--accent);
}
.status-degraded {
  color: var(--warning);
}
.status-unavailable {
  color: var(--danger);
}
.answer-value {
  font-size: 33px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 23px 0 10px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.answer-value.unavailable {
  font-size: 23px;
  color: var(--muted);
}
.answer-metrics {
  display: flex;
  gap: 35px;
  flex-wrap: wrap;
  margin: 20px 0 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.answer-metrics dt {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 5px;
}
.answer-metrics dd {
  font-size: 18px;
  margin: 0;
}
.answer-metrics dd small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.distribution {
  display: grid;
  gap: 12px;
}
.probability-row {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) 2fr 45px;
  gap: 15px;
  align-items: center;
  font-size: 11px;
}
.probability-row .probability-label {
  overflow-wrap: anywhere;
}
.probability-row > span:last-child {
  text-align: right;
  font-family: monospace;
  font-size: 10px;
}
.probability-row progress {
  appearance: none;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
}
progress::-webkit-progress-bar {
  background: var(--soft);
}
progress::-webkit-progress-value {
  background: var(--accent);
}
progress::-moz-progress-bar {
  background: var(--accent);
}
.distribution-heading {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 15px;
}
.answer-details {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 14px;
  color: var(--muted);
  font-size: 10px;
}
.answer-details summary {
  cursor: pointer;
}
.detail-list {
  padding-left: 15px;
  line-height: 1.8;
  margin-bottom: 0;
}
.detail-list li {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.detail-list strong {
  color: var(--ink);
  font-weight: 500;
}
.answer-explanation {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.tie-note {
  font-size: 10px;
  color: var(--warning);
  margin: 10px 0;
}
.result-bottom {
  margin: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.result-bottom .quiet {
  max-width: 300px;
  font-size: 10px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 22px;
  font-size: 11px;
  line-height: 1.8;
  max-height: 600px;
  overflow: auto;
}
code {
  font-size: 11px;
}
.evidence-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}
.evidence-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  margin-bottom: 14px;
  padding: 17px;
}
.evidence-card summary {
  cursor: pointer;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.evidence-card summary .pill {
  margin-left: 10px;
}
.evidence-card pre {
  padding: 12px;
  background: var(--bg);
  max-height: 360px;
  margin-bottom: 0;
  font-size: 10px;
}
.api-content {
  max-width: 730px;
  margin-top: 32px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.endpoint-list {
  margin: 30px 0;
}
.endpoint-list > div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.endpoint-list dt {
  font-family: monospace;
  font-size: 12px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.endpoint-list dd {
  margin: 7px 0 0;
  font-size: 11px;
}
.verb {
  display: inline-block;
  color: var(--accent);
  width: 42px;
  font-size: 10px;
}
.api-content h2 {
  margin-top: 30px;
  color: var(--ink);
}
@media (max-width: 1160px) {
  .sidebar {
    width: 185px;
    padding: 28px 15px;
  }
  .brand-name {
    font-size: 25px;
  }
  .nav-item {
    font-size: 12px;
  }
  .workspace {
    margin-left: 185px;
  }
  .compose-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 25px;
  }
  main {
    padding: 35px 30px 24px;
  }
  .submit-row small {
    max-width: 240px;
  }
  .question {
    padding-left: 17px;
    padding-right: 17px;
  }
  .context-input {
    padding: 17px;
  }
  .result-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
  }
}
@media (max-width: 950px) {
  .policy-link {
    display: inline-block;
    margin-top: 8px;
  }
  .compose-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .board-panel {
    position: static;
    max-height: none;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
  }
  .model-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    padding: 10px 0;
    margin-bottom: 15px;
  }
  .model-row {
    flex: 1;
    min-width: 170px;
  }
  .board-empty {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    padding: 0;
  }
  .board-empty p {
    display: none;
  }
  .policy-heading {
    margin: 12px 0;
  }
  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 15px;
  }
  .board-footnote {
    margin-top: 15px;
    padding-bottom: 10px;
  }
  .retention-note {
    margin-top: 9px;
  }
  .result-tabs {
    gap: 15px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: static;
    width: auto;
    inset: auto;
    padding: 20px 20px 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .brand {
    margin: 0 0 17px 0;
  }
  .brand-name {
    font-size: 25px;
  }
  .recent-section {
    display: none;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .nav-item {
    padding: 8px 10px;
    font-size: 11px;
    gap: 7px;
  }
  .nav-item > span {
    font-size: 14px;
    width: auto;
  }
  .workspace {
    margin-left: 0;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 8px;
    margin: 0 0 12px;
  }
  .sidebar-bottom {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .connection {
    font-size: 10px;
    padding: 7px 8px;
    gap: 7px;
  }
  .icon-button {
    width: 23px;
  }
  .sidebar-actions .icon-button {
    font-size: 16px;
  }
  main {
    padding: 28px 20px 24px;
  }
  h1 {
    font-size: 26px;
  }
  .lede {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .compose-layout {
    gap: 20px;
  }
  .section-heading {
    padding: 0;
  }
  .section-heading h2 {
    font-size: 13px;
  }
  .section-heading > .quiet {
    font-size: 9px;
  }
  .question {
    padding: 18px 15px;
  }
  .question-top {
    gap: 7px;
  }
  .question-kind {
    width: 100%;
  }
  .option-key {
    width: 73px;
  }
  .option-description {
    font-size: 10px;
  }
  .context-input {
    min-height: 140px;
    font-size: 12px;
    padding: 16px;
  }
  .context-footer {
    padding: 12px 0;
    gap: 10px;
  }
  .context-footer button,
  .attach-button {
    font-size: 10px;
  }
  .board-panel {
    padding: 20px 0 0;
  }
  .policy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .result-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .answer-list {
    position: static;
    display: flex;
    overflow-x: auto;
    max-height: none;
  }
  .answer-selector {
    flex: 0 0 150px;
    padding: 12px;
  }
  .submit-row {
    align-items: flex-start;
    gap: 15px;
  }
  .submit-row small {
    max-width: 200px;
    line-height: 1.7;
    font-size: 8px;
  }
  .submit-row > div > span {
    font-size: 9px;
  }
  .primary-button {
    font-size: 10px;
    padding: 10px 12px;
    gap: 10px;
  }
  .inline-form {
    flex-direction: column;
  }
  .result-toolbar {
    gap: 10px;
  }
  .result-tabs {
    gap: 13px;
  }
  .result-tabs button {
    font-size: 10px;
  }
  .result-toolbar > .text-button {
    font-size: 9px;
  }
  .answer-card {
    padding: 18px;
  }
  .answer-metrics {
    gap: 20px;
  }
  .answer-metrics dd {
    font-size: 16px;
  }
  .result-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .result-bottom .quiet {
    max-width: none;
  }
  .result-heading-row {
    align-items: flex-start;
  }
  .result-heading-row h1 {
    font-size: 29px;
  }
  .result-heading-row > .pill {
    margin-top: 13px;
  }
  .probability-row {
    grid-template-columns: minmax(70px, 1fr) 1.5fr 40px;
    gap: 9px;
  }
  .result-metadata {
    gap: 9px 17px;
    font-size: 9px;
  }
  .evidence-intro {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white;
    color: black;
  }
  .sidebar,
  .submit-row,
  .result-toolbar,
  .answer-list,
  dialog {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  main {
    padding: 0;
    max-width: none;
  }
  .result-layout {
    display: block;
  }
  .answer-detail[hidden] {
    display: block !important;
  }
  .answer-card,
  .editor-section,
  .board-panel {
    break-inside: avoid;
    box-shadow: none;
  }
  .board-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
  pre {
    max-height: none;
    overflow: visible;
  }
  .result-bottom button {
    display: none;
  }
}
