/* Shared type scale for the workspace and fulfillment console. */
:root {
  font-size: 14px;
  line-height: 1.6;
  --muted: #64748b;
}

body, input, textarea, select, button {
  font-family: inherit;
}

body { font-size: 14px; line-height: 1.6; }
main { font-size: 14px; line-height: 1.6; }
main p, main li, main input, main textarea, main select { font-size: 14px; line-height: 1.6; }

h1, main h1 { font-size: 28px; line-height: 1.3; font-weight: 700; }
h2, main h2 { font-size: 20px; line-height: 1.4; font-weight: 700; }
h3, main h3 { font-size: 18px; line-height: 1.45; font-weight: 700; }

/* Main application navigation and controls. */
.sidebar .nav { font-size: 14px; line-height: 1.6; }
.side-foot, .side-bottom { font-size: 14px; line-height: 1.6; }
.query-card label { font-size: 14px; }
.query-row textarea, .field input, .field textarea, .field select { font-size: 14px; line-height: 1.6; }
.primary { min-height: 44px; font-size: 16px; line-height: 1.4; font-weight: 700; }
.small-btn, .nav { font-size: 14px; }
.section-head h3, .answer-top h3 { font-size: 20px; }
.pill, .tag, .demo-tag { font-size: 12px; }
.hero h2 { font-size: 30px; line-height: 1.35; font-weight: 700; }
.step h4 { font-size: 16px; }
.data-row, .plan-explain { font-size: 14px; line-height: 1.6; }
.json, pre { font-size: 12px; line-height: 1.6; }
.muted, .duration, .review-detail, .metric span, .stat span { font-size: 12px; color: #64748b; }

/* Fulfillment workbench and admin views. */
.shell, .view { font-size: 14px; line-height: 1.6; }
.shell header h1 { font-size: 28px; font-weight: 700; }
.shell nav button, .shell nav a { font-size: 14px; line-height: 1.6; }
.shell .nav-label { font-size: 13px; }
.shell .side-bottom, .shell .side-bottom select { font-size: 14px; }
.shell .card h2 { font-size: 20px; font-weight: 700; }
.shell .card-head p { font-size: 14px; line-height: 1.6; }
.shell .card label, .shell .form-grid label { font-size: 14px; }
.shell .input-card input, .shell .input-card textarea, .shell .result-card textarea, .shell .filter, .shell select { font-size: 14px; line-height: 1.6; }
.shell .input-card > .primary, .shell #submitReview { min-height: 46px; font-size: 16px; font-weight: 700; }
.shell .quick-examples button { font-size: 14px; padding: 7px 12px; }
.shell .result-card .card-head h2 { font-size: 22px; line-height: 1.4; font-weight: 700; color: #111827; }
.shell .confidence, .shell .elapsed { font-size: 14px; font-weight: 700; color: #475569; }
.shell .warning { font-size: 14px; line-height: 1.6; font-weight: 700; color: #9a3412; padding: 10px 12px; }
.shell .diagnosis { font-size: 15px; line-height: 1.7; color: #1f2937; }
.shell summary, .shell .evidence-row { font-size: 14px; line-height: 1.6; }
.shell .evidence-row { padding: 13px 12px; }
.shell .evidence-row b { font-size: 14px; font-weight: 700; color: #1f2937; }
.shell .evidence-row span { font-size: 14px; color: #334155; }
.shell .evidence-row small, .shell .tool-badge, .shell .citations { font-size: 12px; line-height: 1.6; }
.shell .result-card h3 { font-size: 20px; font-weight: 700; color: #111827; }
.shell .suggestion { padding: 15px; }
.shell .suggestion b { font-size: 16px; line-height: 1.5; font-weight: 700; }
.shell .suggestion p, .shell .suggestion small { font-size: 14px; line-height: 1.6; color: #475569; }
.shell .suggestion-actions .tiny, .shell .table-row .tiny, .shell .secondary, .shell .tiny { font-size: 14px; padding: 8px 13px; }
.shell .table-head, .shell .table-row { font-size: 14px; line-height: 1.6; }
.shell .table-head { padding: 11px 10px; color: #334155; font-weight: 700; background: #f1f5f9; border-radius: 7px; }
.shell .table-row { padding: 14px 10px; }
.shell .hint, .shell .demo-foot, .shell .note, .shell .eyebrow { font-size: 12px; color: #64748b; }
.shell .demo-foot { color: #94a3b8; }
.shell .task, .shell .delta-list div, .shell .sample-row, .shell .failure { font-size: 14px; line-height: 1.6; }
.shell .metric span { font-size: 12px; }
.eval-intro { margin: -10px 0 18px; color: #64748b; font-size: 14px; line-height: 1.6; }
.eval-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.eval-actions .primary, .eval-actions .secondary, .form-grid select { min-height: 44px; }
.eval-running-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #bbf7d0; border-radius: 20px; background: #f0fdf4; color: #15803d; font-size: 13px; font-weight: 700; }
.eval-running-badge i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: eval-pulse 1s ease-in-out infinite; }
.button-spinner { width: 15px; height: 15px; margin-left: 8px; border: 2px solid #ffffff70; border-top-color: #fff; border-radius: 50%; vertical-align: middle; animation: eval-spin .7s linear infinite; }
.button-spinner:not(.hidden) { display: inline-block; }
.task { position: relative; flex-wrap: wrap; padding-bottom: 20px; }
.eval-progress { position: absolute; inset: auto 12px 8px; height: 4px; overflow: hidden; border-radius: 5px; background: #e9e7ff; }
.eval-progress i { display: block; width: 36%; height: 100%; border-radius: inherit; background: #6d63ef; animation: eval-progress 1.2s ease-in-out infinite; }
.eval-success { padding: 14px 16px; border: 1px solid #bbf7d0; border-radius: 8px; background: #f0fdf4; color: #166534; font-weight: 700; }
.metrics .metric { flex: 1 1 calc(25% - 10px); }
.failure-note { margin: 0 0 12px; color: #64748b; }
.failure[data-result-status="failed"] { border-color: #fecaca; background: #fffafa; }
.failure[data-result-status="unexecuted"] { border-color: #fde68a; background: #fffcf2; }
.failure-fixed { color: #15803d; font-weight: 700; }
.samples-head { align-items: flex-start; gap: 16px; }
.samples-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.samples-tools select { min-height: 44px; padding: 8px 12px; border: 1px solid #dbe2ea; border-radius: 9px; background: #fff; }
.samples-table-wrap { width: 100%; overflow-x: auto; }
.samples-table { width: 100%; border-collapse: collapse; min-width: 760px; table-layout: fixed; }
.samples-table th, .samples-table td { padding: 12px 10px; border-bottom: 1px solid #e8edf3; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.samples-table th { background: #f1f5f9; color: #334155; font-weight: 700; }
.samples-table th:nth-child(1) { width: 13%; }
.samples-table th:nth-child(2) { width: 17%; }
.samples-table th:nth-child(3), .samples-table th:nth-child(4) { width: 23%; }
.samples-table th:nth-child(5) { width: 11%; }
.samples-table th:nth-child(6) { width: 13%; }
.sample-status { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; font-weight: 700; }
.sample-status.status-fixed { background: #fff7ed; color: #c2410c; }
.sample-status.status-verified { background: #f0fdf4; color: #15803d; }
.sample-status.status-queued { background: #eff6ff; color: #1d4ed8; }
.samples-table .sample-fix-button { background: #2563eb; border-color: #2563eb; color: #fff; }
.samples-table .sample-fix-button:hover { background: #1d4ed8; }
.samples-table .sample-rerun-button { background: #5b45dc; border-color: #5b45dc; color: #fff; }
.samples-table .sample-rerun-button:disabled { opacity: .7; cursor: wait; }
.sample-dialog { width: min(540px, calc(100vw - 32px)); max-width: none; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; color: #0f172a; box-shadow: 0 24px 70px #0f172a33; }
.sample-dialog::backdrop { background: #0f172a66; }
.sample-dialog form { display: grid; gap: 10px; }
.sample-dialog .dialog-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 6px; }
.sample-dialog .dialog-head h2 { margin: 0; }
.sample-dialog .dialog-head p { margin: 4px 0 0; color: #64748b; }
.sample-dialog input, .sample-dialog textarea { width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 12px; border: 1px solid #dbe2ea; border-radius: 9px; }
.sample-dialog textarea { resize: vertical; }
.dialog-close { border: 0; background: transparent; color: #64748b; font-size: 24px; cursor: pointer; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
@media (max-width: 620px) { .samples-head { flex-direction: column; } .samples-tools { width: 100%; } .samples-tools select, .samples-tools button { flex: 1 1 auto; } .sample-dialog { padding: 18px; } }
@keyframes eval-pulse { 50% { opacity: .35; box-shadow: 0 0 0 5px #22c55e25; } }
@keyframes eval-spin { to { transform: rotate(360deg); } }
@keyframes eval-progress { 0% { transform: translateX(-115%); } 100% { transform: translateX(300%); } }

@media (max-width: 620px) {
  .shell nav button, .shell nav a { font-size: 14px; }
  .shell .quick-examples button { font-size: 14px; padding: 6px 9px; }
  .shell .table-row { row-gap: 8px; }
}
