@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap");
:root {
  --paper: #f7f9fa;
  --ink: #20343d;
  --muted: #718089;
  --accent: #175d69;
  --wash: #eaf3f2;
  --line: #20343d14;
  --danger: #ae3948;
  --amber: #946219;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.65 "Be Vietnam Pro",
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.18s cubic-bezier(0.32, 0.72, 0, 1);
}
button:active,
.button:active {
  transform: scale(0.98);
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #529aa4;
  outline-offset: 3px;
}
.primary {
  background: var(--accent);
  color: white;
}
.primary:hover {
  background: #104b55;
}
.secondary {
  background: white;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.quiet,
.text-link {
  background: transparent;
  color: var(--muted);
}
.quiet:hover {
  background: var(--wash);
  color: var(--accent);
}
.text-link {
  color: var(--accent);
  padding: 4px 0;
  justify-content: flex-start;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: white;
  padding: 12px;
  z-index: 30;
}
.skip-link:focus {
  top: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.app-header {
  max-width: 1500px;
  margin: 16px auto 0;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 20px #20343d04;
}
.brand {
  font-size: 23px;
  letter-spacing: -1px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.brand strong {
  font-weight: 600;
}
nav {
  display: flex;
  gap: 8px;
}
nav button {
  position: relative;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  font-weight: 500;
  border-radius: 0;
}
nav button.active {
  color: var(--accent);
}
nav button.active::after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: 0;
  left: 14px;
  right: 14px;
  background: var(--accent);
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}
.heading,
.room-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.heading .subtle {
  max-width: 75ch;
}
h1 {
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -1px;
  margin: 0 0 10px;
  font-weight: 700;
  text-wrap: balance;
}
h2 {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  margin: 18px 0 8px;
}
p {
  margin: 0 0 12px;
}
.eyebrow {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin: 0 0 9px;
}
.subtle,
.footnote {
  color: var(--muted);
}
.footnote {
  font-size: 12px;
  margin: 10px 0;
}
.help-note {
  color: var(--muted);
  font-size: 13px;
  padding: 16px 0;
  max-width: 95ch;
}
.field-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 6px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  min-width: 0;
}
label small {
  font-size: 11px;
  font-weight: 400;
}
input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 42px;
}
textarea {
  resize: vertical;
  line-height: 1.65;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-weight: 400;
}
.grow {
  flex: 1;
  min-width: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.context-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: var(--wash);
  border-radius: 9px;
  margin-bottom: 30px;
}
.context-band .field-label {
  margin: 0 0 2px;
}
.context-band strong {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.context-band p {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 0;
}
.context-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.context-actions select {
  width: 230px;
  background: #ffffffb0;
}
.bot-toolbar {
  display: flex;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}
.bot-toolbar .grow {
  max-width: 550px;
}
.bot-table-head,
.workspace-bot {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.6fr) minmax(110px, 0.65fr) minmax(170px, 1fr)
    minmax(130px, 0.7fr) 190px;
  align-items: center;
  gap: 20px;
}
.bot-table-head {
  padding: 14px 20px;
  color: var(--muted);
  font-size: 12px;
  background: #eff3f5;
  border-radius: 8px 8px 0 0;
}
.workspace-bot {
  padding: 24px 20px;
  background: white;
  box-shadow: 0 1px 0 var(--line);
}
.workspace-bot:last-child {
  border-radius: 0 0 8px 8px;
}
.workspace-bot strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.workspace-bot small {
  color: var(--muted);
}
.bot-suite-note {
  font-size: 12px;
  color: var(--muted);
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  background: #edf1f3;
  color: var(--muted);
  line-height: 1.5;
  vertical-align: middle;
}
.badge.PASS,
.badge.accepted,
.badge.completed {
  background: #e5f2eb;
  color: #2d7757;
}
.badge.FAIL,
.badge.rejected,
.badge.BLOCKED,
.badge.JUDGE_ERROR {
  background: #fae9eb;
  color: var(--danger);
}
.badge.WARNING,
.badge.PARTIAL,
.badge.inconclusive,
.badge.NOT_TESTABLE,
.badge.interrupted {
  background: #faf0dd;
  color: var(--amber);
}
.badge.running,
.badge.judging,
.badge.queued {
  background: var(--wash);
  color: var(--accent);
}
.workbench-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}
.workbench-content {
  min-width: 0;
}
.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}
.workflow li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.workflow li > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #edf1f3;
  font-size: 12px;
  flex-shrink: 0;
}
.workflow li.active {
  color: var(--accent);
}
.workflow li.active > span {
  background: var(--accent);
  color: white;
}
.workflow small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 2px;
}
.suite-picker {
  padding: 20px;
  background: white;
  border-radius: 10px;
  margin-bottom: 22px;
}
.suite-picker-row {
  display: flex;
  align-items: end;
  gap: 16px;
}
.suite-picker-row .actions button {
  font-size: 12px;
  padding: 11px 12px;
}
.suite-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.suite-meta p {
  font-size: 11px;
  margin: 0;
}
.suite-meta button {
  font-size: 11px;
  padding: 4px 6px;
}
.suite-empty {
  padding: 46px 24px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: white;
  border-radius: 10px;
}
.suite-empty h2 {
  font-size: 21px;
  margin: 12px 0;
}
.suite-empty p {
  color: var(--muted);
  max-width: 60ch;
}
.empty-symbol {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--wash);
  color: var(--accent);
  font-size: 28px;
  border-radius: 16px;
}
.run-setup {
  position: sticky;
  top: 24px;
  background: white;
  padding: 24px;
  border-radius: 10px;
}
.run-setup .subtle {
  font-size: 12px;
}
.run-setup label {
  margin: 18px 0;
}
.run-setup #start-run,
.run-setup #save-run-settings {
  width: 100%;
}
.run-setup .text-link {
  font-size: 12px;
}
.advanced-run {
  margin: 22px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.run-selection {
  font-size: 12px;
  font-weight: 500;
  margin: 20px 0 12px;
}
.blocked-context {
  color: var(--amber);
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 18px;
}
.section-title .subtle {
  font-size: 12px;
  margin: 0;
}
.section-title button {
  font-size: 12px;
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}
.toolbar label:first-child {
  flex: 0 1 220px;
}
.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.case-library {
  background: white;
  border-radius: 10px;
  overflow: hidden;
}
.list-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.list-head .check {
  font-size: 11px;
}
.case-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 16px;
  box-shadow: 0 1px 0 var(--line);
}
.case-row > input {
  margin-top: 6px;
}
.case-row.selected {
  background: var(--wash);
}
.case-row > button {
  text-align: left;
  display: block;
  border: 0;
  background: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 500;
  color: var(--ink);
}
.case-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
}
.case-code {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}
.case-preview {
  background: #ffffffb0;
  border-radius: 10px;
  padding: 22px;
  min-width: 0;
}
.case-preview h2 {
  margin: 18px 0;
  font-size: 18px;
}
.case-preview .field-label {
  margin-top: 18px;
}
.case-preview p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 13px;
}
.speech {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
}
.empty,
.loading-state {
  padding: 32px 20px;
  color: var(--muted);
  font-size: 13px;
}
.run-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  background: white;
  margin-bottom: 10px;
  border-radius: 10px;
}
.run-row strong {
  font-size: 15px;
}
.run-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
}
.room-heading h1 {
  font-size: 25px;
}
.room-heading .actions {
  justify-content: flex-end;
}
.room-heading .actions > * {
  font-size: 12px;
}
.export-detail summary {
  padding: 10px;
  font-size: 12px;
}
.counts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.count {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: white;
  border-radius: 8px;
}
.count strong {
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.notice {
  background: #faf1df;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 12px;
  color: var(--amber);
  white-space: pre-wrap;
  margin-bottom: 20px;
}
.room-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}
#call-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.call-item {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--ink);
  background: white;
  padding: 16px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 400;
}
.call-item small {
  display: block;
  color: var(--muted);
  margin: 7px 0;
}
.call-item.active {
  background: var(--wash);
  box-shadow: inset 3px 0 var(--accent);
}
.transcript-pane,
.evidence-pane {
  background: white;
  padding: 22px;
  border-radius: 10px;
  min-width: 0;
}
#call-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
#call-heading h2 {
  margin: 10px 0;
  font-size: 17px;
}
.turn {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.turn-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 12px;
}
.turn-index button {
  font-size: 10px;
  padding: 4px 8px;
}
.speaker {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 5px;
}
.speaker.customer {
  color: var(--muted);
}
.turn .speech {
  background: var(--wash);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
}
.turn .speech.customer {
  background: #f2f5f6;
}
.turn.anchor {
  background: #fff8e8;
  box-shadow: 0 0 0 10px #fff8e8;
  border-radius: 8px;
}
.turn details {
  font-size: 11px;
  color: var(--muted);
}
.evidence-pane > h3:first-child {
  margin-top: 0;
}
.evidence-pane p {
  font-size: 12px;
}
.evidence-quote {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--wash);
  color: var(--ink);
  text-align: left;
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.8;
  margin: 12px 0;
}
.evidence-quote small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
}
.error-text,
.inline-error {
  color: var(--danger);
}
.review-form {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 6px;
}
.review-form label {
  margin: 14px 0;
}
.review-form .primary {
  width: 100%;
}
.review-history {
  padding: 14px 0;
  font-size: 11px;
  box-shadow: 0 -1px var(--line);
  margin-top: 18px;
  white-space: pre-wrap;
}
pre {
  padding: 14px;
  background: #f1f5f6;
  border-radius: 6px;
  font:
    11px/1.7 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 420px;
  overflow: auto;
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
details > summary {
  margin-bottom: 8px;
}
.evidence-pane details {
  margin: 14px 0;
}
.preset-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.preset-group {
  background: white;
  padding: 24px;
  border-radius: 10px;
  min-width: 0;
}
.preset-group .section-title {
  margin: 0 0 12px;
}
.preset-row {
  padding: 20px 0;
  box-shadow: 0 1px var(--line);
}
.preset-row strong {
  font-size: 14px;
}
.preset-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin: 6px 0;
}
.preset-row p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--muted);
}
.preset-row .actions button {
  font-size: 11px;
  padding: 6px 10px;
}
.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 36px;
  align-items: start;
}
.bot-search {
  display: flex;
  align-items: end;
  gap: 12px;
}
.bot-search label:first-child {
  width: 170px;
}
.bot-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  box-shadow: 0 1px var(--line);
}
.bot-result strong,
.bot-result small,
.target-heading small {
  display: block;
}
.bot-result small,
.target-heading small {
  color: var(--muted);
  font-size: 11px;
}
.target-profile {
  padding: 22px;
  background: white;
  border-radius: 10px;
  margin-bottom: 14px;
}
.target-heading {
  display: flex;
  align-items: start;
  gap: 12px;
  justify-content: space-between;
}
.target-heading strong {
  font-size: 13px;
}
.check-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0;
  font-size: 10px;
  color: var(--muted);
}
.model-note {
  font-size: 11px;
  color: var(--muted);
}
.pagination {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0;
  font-size: 11px;
}
#connection-form {
  padding: 16px 0;
}
#connection-form label {
  margin-bottom: 14px;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 28px;
  max-width: 760px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 24px 90px #20343d26;
}
dialog::backdrop {
  background: #20343d66;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 21px;
}
.dialog-heading button {
  font-size: 24px;
  padding: 0 8px;
}
dialog label {
  margin-bottom: 16px;
}
dialog details {
  margin: 16px 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-error {
  color: var(--danger);
  font-size: 12px;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}
.form-error:empty {
  display: none;
}
.scope-note {
  color: var(--accent);
  font-size: 12px;
  background: var(--wash);
  padding: 12px 14px;
  border-radius: 7px;
  margin-bottom: 18px;
}
#preset-editor {
  width: min(700px, calc(100vw - 32px));
}
#bot-settings-form {
  max-width: 900px;
  margin-bottom: 36px;
}
#bot-settings-form .section-title {
  margin-top: 0;
}
#bot-settings-form details {
  margin: 18px 0;
}
#bot-settings-version {
  font-size: 12px;
}
.login-dialog {
  max-width: 440px;
  padding: 36px;
}
.login-dialog .brand {
  display: block;
  margin-bottom: 28px;
}
.login-dialog h2 {
  font-size: 25px;
}
.login-dialog .primary {
  width: 100%;
}
.login-dialog .subtle {
  font-size: 13px;
  margin-bottom: 22px;
}
.login-dialog .eyebrow {
  font-size: 9px;
}
.login-dialog .footnote {
  margin-top: 20px;
  font-size: 10px;
}
#message {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  border-radius: 9px;
  max-width: 90vw;
  color: white;
  background: var(--ink);
  z-index: 20;
  font-size: 13px;
  box-shadow: 0 6px 24px #20343d14;
}
#message.error {
  background: #833443;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1548px) {
  .app-header {
    margin-left: 24px;
    margin-right: 24px;
  }
}
@media (max-width: 1180px) {
  .bot-table-head,
  .workspace-bot {
    grid-template-columns: minmax(180px, 1fr) 100px 150px 110px 170px;
    gap: 12px;
  }
  .app-header {
    gap: 20px;
  }
  nav {
    gap: 0;
  }
  .suite-picker-row {
    flex-wrap: wrap;
  }
  .suite-picker-row > label {
    flex-basis: 100%;
  }
  .library-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .room-layout {
    grid-template-columns: 160px minmax(0, 1fr) 290px;
    gap: 14px;
  }
  .preset-layout {
    gap: 20px;
  }
}
@media (max-width: 960px) {
  .bot-table-head {
    display: none;
  }
  .workspace-bot {
    grid-template-columns: minmax(0, 1fr) 150px;
  }
  .workspace-bot > div:first-child {
    grid-column: 1/-1;
  }
  .workspace-bot > button {
    grid-column: 2;
    grid-row: 3/5;
  }
  .workbench-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
  }
  .workflow small {
    display: none;
  }
  .room-layout {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .evidence-pane {
    grid-column: 2;
  }
  .workspace-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .account {
    gap: 4px;
  }
}
@media (max-width: 760px) {
  .app-header {
    margin: 12px 16px 0;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .brand {
    font-size: 20px;
  }
  .account {
    font-size: 10px;
  }
  .account button {
    padding: 5px;
    font-size: 10px;
  }
  nav {
    order: 3;
    width: 100%;
    overflow: auto;
  }
  nav button {
    flex-shrink: 0;
    font-size: 12px;
    padding: 9px 10px;
  }
  main {
    padding: 22px 16px 40px;
  }
  h1 {
    font-size: 26px;
  }
  .heading,
  .room-heading {
    align-items: start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .heading {
    margin-bottom: 22px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .context-band {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 10px;
    margin-bottom: 24px;
  }
  .context-actions {
    justify-content: space-between;
    min-width: 0;
  }
  .context-actions select {
    width: 100%;
    min-width: 0;
  }
  .context-actions button {
    flex-shrink: 0;
    font-size: 11px;
  }
  .bot-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .bot-toolbar .grow {
    flex-basis: 100%;
  }
  .workspace-bot {
    padding: 20px 16px;
  }
  .workspace-bot > button {
    font-size: 11px;
    padding: 10px 12px;
  }
  .workbench-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .run-setup {
    position: static;
    padding: 20px;
  }
  .workflow {
    gap: 10px;
    margin-bottom: 20px;
  }
  .workflow li {
    gap: 6px;
    font-size: 10px;
  }
  .workflow li > span {
    width: 25px;
    height: 25px;
  }
  .suite-picker {
    padding: 16px;
  }
  .suite-picker-row .actions {
    width: 100%;
  }
  .suite-picker-row .actions button {
    flex: 1 1 auto;
    padding: 10px;
    font-size: 10px;
  }
  .suite-meta {
    align-items: start;
    flex-direction: column;
  }
  .suite-empty {
    min-height: 320px;
    padding: 32px 16px;
  }
  .suite-empty h2 {
    font-size: 19px;
  }
  .suite-empty p {
    font-size: 12px;
  }
  .section-title {
    align-items: start;
    flex-wrap: wrap;
  }
  .section-title .actions {
    width: 100%;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .toolbar > label {
    flex: 1 1 120px !important;
  }
  .library-layout {
    gap: 16px;
  }
  .case-preview {
    padding: 18px;
  }
  .run-row {
    align-items: start;
    flex-direction: column;
    padding: 18px;
    gap: 12px;
  }
  .room-heading .actions {
    justify-content: flex-start;
  }
  .room-heading .actions > * {
    font-size: 10px;
  }
  .room-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  #call-list {
    flex-direction: row;
    overflow: auto;
    padding-bottom: 8px;
  }
  .call-item {
    flex: 0 0 200px;
  }
  .evidence-pane {
    grid-column: 1;
  }
  .transcript-pane,
  .evidence-pane {
    padding: 18px;
  }
  .preset-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .preset-group {
    padding: 20px;
  }
  .bot-search {
    flex-wrap: wrap;
  }
  .bot-search label:first-child {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-grid .full {
    grid-column: 1;
  }
  dialog {
    padding: 20px;
  }
  .dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .dialog-actions .close-dialog {
    grid-column: 1;
  }
  .dialog-actions button {
    font-size: 12px;
  }
  .login-dialog {
    padding: 28px;
  }
  #message {
    font-size: 12px;
    width: calc(100% - 32px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
