:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef0ec;
  color: #171b18;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #eef0ec;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  min-height: 90px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #c8ccc6;
  background: #f7f8f5;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(7, minmax(78px, 1fr));
  padding: 3px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #e8ebe7;
}

.mode-button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #59615b;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.mode-button.selected {
  background: #ffffff;
  color: #245537;
  box-shadow: 0 1px 3px rgba(27, 35, 29, 0.12);
}

.circle-view-switch {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 20px;
  padding: 3px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #e8ebe7;
}

.circle-view-button {
  min-height: 46px;
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #59615b;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.circle-view-button.selected {
  background: #ffffff;
  color: #245537;
  box-shadow: 0 1px 3px rgba(27, 35, 29, 0.12);
}

.dq-current-test-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #b9cbbf;
  border-radius: 6px;
  background: #f6faf6;
}

.dq-current-test-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dq-next-action-panel {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 2px solid #3b704d;
  border-radius: 6px;
  background: #edf6ef;
  color: #21432d;
}

.dq-next-action-panel strong,
.dq-next-action-panel span {
  display: block;
}

.dq-next-action-panel strong {
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.74rem;
}

.dq-next-action-panel span {
  font-size: 0.86rem;
  font-weight: 700;
}

.dq-path-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dq-path-steps li {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #d0d9d0;
  border-radius: 5px;
  background: #ffffff;
}

.dq-path-steps strong,
.dq-path-steps span {
  display: block;
}

.dq-path-steps strong {
  color: #21432d;
  font-size: 0.82rem;
}

.dq-path-steps span {
  color: #59615b;
  font-size: 0.76rem;
}

.dq-player-table-link {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.dq-current-test-grid > div {
  padding: 9px;
  border: 1px solid #d0d9d0;
  border-radius: 5px;
  background: #ffffff;
}

.dq-current-test-grid span,
.dq-current-test-grid strong,
.dq-current-test-grid small {
  display: block;
}

.dq-current-test-grid span,
.dq-current-test-grid small {
  color: #667069;
  font-size: 0.72rem;
}

.dq-current-test-grid strong {
  margin: 2px 0;
  color: #245537;
}

.dq-selected-candidate-notes {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #b9cbbf;
  border-radius: 6px;
  background: #ffffff;
}

.dq-selected-candidate-notes h4 {
  margin: 0;
  color: #59615b;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dq-selected-candidate-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.dq-selected-candidate-list div {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-left: 3px solid #3b704d;
  background: #f6faf6;
}

.dq-selected-candidate-list dt {
  color: #21432d;
  font-size: 0.8rem;
  font-weight: 850;
}

.dq-selected-candidate-list dd {
  margin: 0;
  color: #303832;
  font-size: 0.78rem;
  line-height: 1.35;
}

.dq-visible-review-file {
  display: grid;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid #d0d9d0;
  border-radius: 5px;
  background: #ffffff;
}

.dq-visible-review-file strong {
  color: #59615b;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dq-visible-review-file code {
  color: #21432d;
  font-size: 0.74rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

.dq-current-review-questions {
  padding-top: 10px;
  border-top: 1px solid #d7dad5;
}

.dq-current-review-questions h4 {
  margin: 0 0 8px;
  color: #59615b;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dq-current-review-questions ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.dq-current-review-questions li {
  color: #303832;
  font-size: 0.86rem;
  line-height: 1.35;
}

.dq-friction-tally {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #d7dad5;
}

.dq-friction-tally h4 {
  margin: 0;
  color: #59615b;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dq-friction-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dq-friction-tally-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.dq-friction-tally-list div {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid #d0d9d0;
  border-radius: 5px;
  background: #ffffff;
}

.dq-friction-tally-list dt {
  color: #667069;
  font-size: 0.72rem;
  font-weight: 750;
}

.dq-friction-tally-list dd {
  margin: 0;
  color: #245537;
  font-size: 1.1rem;
  font-weight: 850;
}

.attention-ring {
  animation: attention-ring 1.55s ease;
}

@keyframes attention-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(36, 85, 55, 0.44);
  }
  60% {
    box-shadow: 0 0 0 8px rgba(36, 85, 55, 0);
  }
  100% {
    box-shadow: none;
  }
}

.circle-control-map {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.circle-control-map div {
  padding: 10px 11px;
  border: 1px solid #d0d4cf;
  border-radius: 6px;
  background: #fbfcfa;
}

.circle-control-map span,
.circle-control-map strong {
  display: block;
}

.circle-control-map span {
  margin-bottom: 4px;
  color: #667069;
  font-size: 0.64rem;
  font-weight: 850;
  text-transform: uppercase;
}

.circle-control-map strong {
  color: #202521;
  font-size: 0.76rem;
  line-height: 1.35;
}

.eyebrow {
  margin: 0 0 4px;
  color: #68706a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 1rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #626962;
}

.release-state {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #3c443e;
  font-size: 0.82rem;
  font-weight: 650;
}

.status-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f7d4a;
  box-shadow: 0 0 0 4px #dcebe0;
}

.dq-now-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 28px;
  border-bottom: 1px solid #c8ccc6;
  background: #eef7ef;
}

.dq-now-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dq-now-copy strong,
.dq-now-copy small {
  min-width: 0;
}

.dq-now-copy small {
  color: #536057;
  line-height: 1.35;
}

.dq-now-badge {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 5px;
  background: #d9eadc;
  color: #2f6841;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.dq-now-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dq-now-actions .secondary-button,
.dq-now-player-link {
  min-height: 40px;
  white-space: nowrap;
  text-decoration: none;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  min-height: calc(100vh - 90px);
}

.control-panel {
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  border-right: 1px solid #c8ccc6;
  background: #f7f8f5;
}

.control-section {
  min-width: 0;
  max-width: 100%;
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #d7dad5;
}

.control-panel input:not([type="checkbox"]):not([type="radio"]),
.control-panel select,
.control-panel textarea,
.control-panel button,
.control-panel section,
.control-panel div,
.control-panel p,
.control-panel ol,
.control-panel ul {
  max-width: 100%;
}

.control-panel .save-button {
  width: 100%;
  padding: 9px 12px;
  white-space: normal;
  line-height: 1.2;
}

.control-panel textarea {
  min-width: 0;
  overflow-wrap: anywhere;
}

.workflow-selector {
  display: grid;
  gap: 8px;
}

.demo-selector {
  display: grid;
  gap: 7px;
}

.demo-step-button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #c8ccc6;
  border-radius: 5px;
  background: #ffffff;
  color: #3b443e;
  font-size: 0.76rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.demo-step-button:hover,
.demo-step-button.selected {
  border-color: #2f6845;
}

.demo-step-button.selected {
  box-shadow: inset 3px 0 0 #2f6845;
}

.demo-control-note {
  margin: 12px 0 0;
  color: #68706a;
  font-size: 0.74rem;
  line-height: 1.45;
}

.operator-session-setup {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #d7dad5;
}

.session-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.role-assignments {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid #c8ccc6;
  border-radius: 5px;
}

.role-assignments legend {
  padding: 0 5px;
  color: #68706a;
  font-size: 0.68rem;
  font-weight: 700;
}

.role-assignments label {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.role-assignments span {
  color: #68706a;
  font-size: 0.68rem;
  font-weight: 700;
}

.role-assignments input {
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #bdc3bd;
  border-radius: 4px;
  background: #ffffff;
  color: #202521;
  font-size: 0.78rem;
}

.consent-confirmations,
.capcut-confirmations {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid #c8ccc6;
  border-radius: 5px;
}

.consent-confirmations legend,
.capcut-confirmations legend {
  padding: 0 5px;
  color: #68706a;
  font-size: 0.68rem;
  font-weight: 700;
}

.consent-confirmations label,
.capcut-confirmations label,
.approval-confirmation {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3e4640;
  font-size: 0.76rem;
}

.consent-confirmations input,
.capcut-confirmations input,
.approval-confirmation input {
  accent-color: #2f6845;
}

.approval-confirmation {
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #c8ccc6;
  border-radius: 5px;
  background: #ffffff;
  font-weight: 700;
}

.setup-review-checks {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.session-next-summary {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #cfd4cd;
  border-radius: 6px;
  background: #fbfcfa;
}

.session-next-summary h3 {
  margin: 0 0 6px;
  color: #202521;
  font-size: 0.9rem;
}

.session-next-summary p {
  margin: 0 0 8px;
  color: #3e4640;
  font-size: 0.76rem;
  line-height: 1.4;
}

.session-next-summary ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #59615b;
  font-size: 0.74rem;
  line-height: 1.35;
}

.setup-check {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d7dad5;
  border-radius: 5px;
  background: #ffffff;
}

.setup-check strong {
  color: #202521;
  font-size: 0.76rem;
}

.setup-check span {
  color: #59615b;
  font-size: 0.74rem;
  line-height: 1.35;
}

.setup-check.ready {
  border-color: #9fb9a7;
  background: #f3f8f4;
}

.setup-check.blocked {
  border-color: #d1aaa0;
  background: #fff7f4;
}

.review-details dd.ready {
  color: #245d39;
}

.review-details dd.blocked {
  color: #8a312d;
}

.workflow-option {
  position: relative;
  display: block;
  width: 100%;
  min-height: 76px;
  padding: 13px 14px 13px 42px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.workflow-option:hover {
  border-color: #77817a;
}

.workflow-option.selected {
  border-color: #2f6845;
  box-shadow: inset 3px 0 0 #2f6845;
}

.workflow-option input {
  position: absolute;
  left: 14px;
  top: 18px;
  accent-color: #2f6845;
}

.workflow-option strong,
.workflow-option span {
  display: block;
}

.workflow-option strong {
  margin-bottom: 4px;
  color: #202521;
  font-size: 0.88rem;
}

.workflow-option span {
  color: #68706a;
  font-size: 0.76rem;
  line-height: 1.35;
}

.execution {
  display: grid;
  gap: 14px;
}

.active-session-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.active-session-controls button {
  min-height: 38px;
  font-size: 0.78rem;
}

.circle-live-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.circle-live-panel div {
  min-height: 92px;
  padding: 12px;
  border: 1px solid #cfd4cd;
  border-radius: 6px;
  background: #fbfcfa;
}

.circle-live-panel span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.circle-live-panel strong {
  display: block;
  color: #202521;
  font-size: 0.84rem;
  line-height: 1.35;
}

.session-health-panel {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #d7dad5;
}

.health-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.health-heading h2 {
  margin: 0;
}

.health-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.health-actions button {
  width: 100%;
  min-height: 36px;
  font-size: 0.76rem;
}

.beat-list-meta {
  margin: 0 0 16px;
}

.beat-list-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #e0e2df;
}

.beat-list-meta dt,
.beat-list-meta dd {
  font-size: 0.73rem;
}

.beat-list-meta dt {
  color: #6c736d;
}

.beat-list-meta dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.beat-list-actions {
  display: grid;
  grid-template-columns: 38px 38px minmax(0, 1fr);
  gap: 8px;
}

.notes-actions {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
}

.notes-actions #confirm-session-notes,
.notes-actions #save-session-notes {
  grid-column: 1 / -1;
}

.notes-actions #confirm-session-notes {
  background: #3d704d;
  color: #ffffff;
  border-color: #3d704d;
}

.icon-button,
.save-button {
  min-height: 38px;
  border: 1px solid #aeb5af;
  border-radius: 5px;
  background: #ffffff;
  color: #334039;
  font-weight: 750;
  cursor: pointer;
}

.icon-button {
  width: 38px;
  padding: 0;
  font-size: 1rem;
}

.icon-button:hover,
.save-button:hover {
  border-color: #2f6845;
}

.icon-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.save-button {
  border-color: #245537;
  background: #2f6845;
  color: #ffffff;
}

.save-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.save-status {
  margin: 10px 0 0;
  color: #68706a;
  font-size: 0.72rem;
  line-height: 1.4;
}

.save-status.dirty {
  color: #765b12;
}

.save-status.success {
  color: #245d39;
}

.save-status.error {
  color: #8a312d;
}

.file-load-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #3f4741;
  font-size: 0.78rem;
  font-weight: 750;
}

.file-load-field input {
  max-width: 100%;
  color: #59615b;
  font-size: 0.76rem;
}

.strategy-library-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #fbfcfa;
}

.strategy-library-panel > * {
  min-width: 0;
  max-width: 100%;
}

.rosetta-trial-panel {
  overflow: hidden;
}

.rosetta-trial-panel .record-item {
  min-width: 0;
  overflow: hidden;
}

.rosetta-trial-panel .record-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.rosetta-trial-panel .record-summary > div {
  min-width: 0;
}

.rosetta-trial-panel .handoff-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  max-width: 100%;
}

.rosetta-trial-panel .handoff-card-actions button {
  width: 100%;
  min-width: 0;
}

.rosetta-trial-panel .record-item dl {
  grid-template-columns: minmax(0, 1fr);
}

.rosetta-trial-panel .record-item dd {
  white-space: normal;
  overflow-wrap: anywhere;
}

.rosetta-library-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.rosetta-library-controls .secondary-button {
  min-height: 38px;
}

.strategy-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.strategy-library-heading h3 {
  margin: 0;
  font-size: 0.76rem;
}

.strategy-library-panel .secondary-button {
  width: 100%;
}

.strategy-resource-panel {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.strategy-resource-panel h4 {
  margin: 0;
  color: #3f4741;
  font-size: 0.74rem;
}

.strategy-resource-list {
  display: grid;
  gap: 8px;
}

.strategy-resource-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #d8ddd6;
  border-radius: 5px;
  background: #ffffff;
}

.strategy-resource-item strong,
.strategy-resource-item span,
.strategy-resource-item em {
  display: block;
}

.strategy-resource-select {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}

.strategy-resource-select input {
  margin-top: 3px;
  accent-color: #2f6845;
}

.strategy-resource-item strong {
  color: #202521;
  font-size: 0.78rem;
}

.strategy-resource-item em,
.strategy-resource-item small {
  color: #68706a;
  font-size: 0.68rem;
  line-height: 1.35;
  font-style: normal;
}

.strategy-resource-item p {
  margin: 0;
  color: #3f4741;
  font-size: 0.72rem;
  line-height: 1.4;
}

.workbench-result-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f7faf8;
}

.strategy-hero {
  background: #f8faf6;
}

.strategy-next-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #cfd7cf;
  border-left: 4px solid #4d7c5a;
  border-radius: 6px;
  background: #fbfdfb;
}

.strategy-next-panel span {
  display: block;
  margin-bottom: 6px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.strategy-next-panel strong {
  display: block;
  color: #202521;
  font-size: 1rem;
  line-height: 1.35;
}

.strategy-next-panel p {
  margin: 5px 0 0;
  color: #59615b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.strategy-trail-panel {
  padding: 14px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
}

.strategy-trail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.strategy-trail-header h3 {
  margin: 0;
}

.strategy-trail-header span {
  max-width: 58%;
  color: #667069;
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: right;
  overflow-wrap: anywhere;
}

.strategy-trail-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.strategy-trail-item {
  min-height: 112px;
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #fbfcfa;
}

.strategy-trail-item.complete {
  border-color: #98bda0;
  background: #f4faf5;
}

.strategy-trail-item span {
  display: block;
  margin-bottom: 6px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.strategy-trail-item strong {
  display: block;
  color: #202521;
  font-size: 0.95rem;
  line-height: 1.3;
  text-transform: capitalize;
}

.strategy-trail-item p {
  margin: 7px 0 0;
  color: #59615b;
  font-size: 0.78rem;
  line-height: 1.4;
}

.strategy-trail-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.strategy-trail-action {
  width: 100%;
}

.workbench-result-hero h2 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.workbench-result-hero p {
  margin: 0;
  color: #59615b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.workbench-route-grid,
.workbench-apbr-grid,
.strategy-focus-grid,
.strategy-three-grid,
.strategy-path-grid {
  display: grid;
  gap: 10px;
}

.workbench-route-grid,
.workbench-apbr-grid,
.strategy-focus-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.strategy-three-grid,
.strategy-path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workbench-route-grid div,
.workbench-apbr-grid div,
.strategy-focus-grid div,
.strategy-three-grid div,
.strategy-path-grid > div {
  min-height: 116px;
  padding: 14px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
}

.workbench-route-grid span,
.workbench-apbr-grid span,
.strategy-focus-grid span,
.strategy-three-grid span {
  display: block;
  margin-bottom: 8px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workbench-route-grid strong,
.workbench-apbr-grid strong,
.strategy-focus-grid strong,
.strategy-three-grid strong {
  display: block;
  color: #202521;
  font-size: 0.9rem;
  line-height: 1.4;
}

.strategy-path-grid h3 {
  margin-top: 0;
}

.operator-strategy-preview {
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid #cfd4cd;
  border-radius: 6px;
  background: #fbfcfa;
}

.operator-strategy-preview.linked {
  border-color: #9fb9a7;
  background: #f2f8f4;
}

.operator-readiness-panel {
  margin: 14px 0 2px;
  padding: 12px;
  border: 1px solid #cfd4cd;
  border-radius: 6px;
  background: #fbfcfa;
}

.operator-readiness-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.operator-readiness-heading h3 {
  margin: 0;
  color: #202521;
  font-size: 0.92rem;
}

.operator-readiness-heading strong {
  color: #59615b;
  font-size: 0.76rem;
}

.operator-readiness-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.operator-readiness-list li {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid #d7dad5;
  border-radius: 5px;
  background: #ffffff;
}

.operator-readiness-list li strong {
  color: #202521;
  font-size: 0.76rem;
  line-height: 1.25;
}

.operator-readiness-list li span,
.operator-readiness-list li small {
  color: #59615b;
  font-size: 0.72rem;
  line-height: 1.35;
}

.operator-readiness-list li.ready {
  border-color: #9fb9a7;
  background: #f3f8f4;
}

.operator-readiness-list li.blocked {
  border-color: #d1aaa0;
  background: #fff7f4;
}

.strategy-preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.strategy-preview-heading span,
.strategy-preview-grid dt {
  display: block;
  color: #667069;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.strategy-preview-heading strong {
  display: block;
  margin-top: 4px;
  color: #202521;
  font-size: 0.86rem;
  line-height: 1.25;
}

.strategy-preview-heading small {
  color: #68706a;
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}

.strategy-preview-source-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
  max-width: 45%;
}

.strategy-preview-source-actions button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.72rem;
}

.strategy-preview-grid {
  display: grid;
  gap: 8px;
  margin: 0;
}

.strategy-preview-grid div {
  padding-top: 8px;
  border-top: 1px solid #e0e4df;
}

.strategy-preview-grid dd {
  margin: 4px 0 0;
  color: #252b27;
  font-size: 0.78rem;
  line-height: 1.35;
}

.workbench-apbr-panel,
.workbench-safety-panel {
  border-top: 1px solid #c8ccc6;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3d443f;
  font-size: 0.83rem;
  cursor: pointer;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
}

.toggle {
  width: 36px;
  height: 20px;
  padding: 2px;
  border-radius: 10px;
  background: #bdc3bd;
  transition: background 120ms ease;
}

.toggle::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform 120ms ease;
}

.toggle-row input:checked + .toggle {
  background: #2f6845;
}

.toggle-row input:checked + .toggle::after {
  transform: translateX(16px);
}

.run-button {
  min-height: 44px;
  border: 1px solid #245537;
  border-radius: 6px;
  background: #2f6845;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.run-button:hover {
  background: #285c3d;
}

.run-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.record-review-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 22px;
  border: 1px solid #9fa7a0;
  border-radius: 7px;
  background: #f8f9f7;
  color: #171b18;
  box-shadow: 0 18px 55px rgba(23, 27, 24, 0.24);
}

.record-review-dialog::backdrop {
  background: rgba(27, 32, 28, 0.48);
}

.record-save-summary {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #cfd4cd;
  border-radius: 6px;
  background: #fbfcfa;
}

.record-save-summary h3 {
  margin: 0 0 6px;
  color: #202521;
  font-size: 0.9rem;
}

.record-save-summary strong {
  display: block;
  color: #245537;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.record-save-summary p {
  margin: 8px 0 0;
  color: #59615b;
  font-size: 0.74rem;
  line-height: 1.4;
}

.review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #c8ccc6;
}

.review-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.review-details {
  margin: 16px 0;
}

.review-details div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #e0e2df;
}

.review-details dt {
  color: #68706a;
  font-size: 0.73rem;
}

.review-details dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.review-files {
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
}

.review-files .file-list {
  margin-bottom: 0;
}

.review-boundary {
  margin: 14px 0 0;
  color: #59615b;
  font-size: 0.75rem;
  line-height: 1.45;
}

.review-actions {
  display: grid;
  grid-template-columns: minmax(100px, 0.7fr) minmax(160px, 1.3fr);
  gap: 10px;
  margin-top: 18px;
}

.review-actions button {
  min-height: 42px;
}

.strategy-route-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.strategy-route-actions button {
  min-height: 40px;
}

.secondary-button {
  border: 1px solid #aeb5af;
  border-radius: 5px;
  background: #ffffff;
  color: #334039;
  font-weight: 750;
  cursor: pointer;
}

.secondary-button:hover {
  border-color: #59635c;
}

.secondary-button:disabled {
  border-color: #cfd5cf;
  background: #eef1ee;
  color: #7b857e;
  cursor: not-allowed;
}

.record-list {
  display: grid;
  gap: 10px;
}

.record-item {
  padding: 15px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f9faf8;
}

.record-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d7dad5;
}

.record-summary strong,
.record-summary span {
  display: block;
}

.record-summary strong {
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.record-summary span {
  margin-top: 4px;
  color: #68706a;
  font-size: 0.7rem;
}

.record-summary button {
  min-width: 74px;
  min-height: 36px;
}

.handoff-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.handoff-card-actions button {
  min-width: 72px;
  min-height: 36px;
}

.record-item dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 12px;
  margin: 12px 0 0;
}

.record-item dl div {
  min-width: 0;
}

.record-item dt {
  color: #68706a;
  font-size: 0.68rem;
}

.record-item dd {
  margin: 3px 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.record-viewer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.record-viewer-heading button {
  min-width: 72px;
  min-height: 36px;
}

.record-viewer-content {
  max-height: 560px;
  max-width: 100%;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid #c8ccc6;
  border-radius: 5px;
  background: #ffffff;
  color: #29312c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#rosetta-source-packet-viewer,
#rosetta-beat-preview,
#rosetta-source-packet-list {
  min-width: 0;
  max-width: 100%;
}

#rosetta-beat-preview-details {
  min-width: 0;
  margin: 12px 0 0;
}

#rosetta-beat-preview-details div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 5px;
  background: #ffffff;
}

#rosetta-beat-preview-details dt {
  color: #68706a;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

#rosetta-beat-preview-details dd {
  max-width: 100%;
  margin: 5px 0 0;
  color: #29312c;
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.safety-panel dl {
  margin: 0;
}

.safety-panel dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #e0e2df;
}

.safety-panel dt {
  color: #6c736d;
  font-size: 0.75rem;
}

.safety-panel dd {
  margin: 0;
  max-width: 150px;
  color: #26302a;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.results {
  min-width: 0;
  padding: 28px clamp(22px, 4vw, 54px) 50px;
  background: #eef0ec;
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 58px;
  padding-bottom: 18px;
  border-bottom: 1px solid #c8ccc6;
}

.control-layer-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr 1.2fr 1fr 1fr;
  gap: 8px;
  margin: 18px 0 0;
  padding: 10px;
  border: 1px solid #bfc8c1;
  border-radius: 6px;
  background: #fbfcfa;
}

.control-layer-item {
  min-height: 78px;
  padding: 10px 11px;
  border: 1px solid #dde2dd;
  border-radius: 5px;
  background: #ffffff;
}

.control-layer-item span,
.control-layer-item strong {
  display: block;
}

.control-layer-item span {
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.64rem;
  font-weight: 850;
  text-transform: uppercase;
}

.control-layer-item strong {
  color: #202521;
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.control-layer-item.approval {
  border-color: #b8c9be;
  background: #f2f8f4;
}

.control-layer-item.approval strong {
  color: #245537;
}

.handoff-rail {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f8faf8;
}

.handoff-rail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.handoff-rail-header h3 {
  margin: 0;
  color: #202521;
  font-size: 1rem;
  text-transform: none;
}

.active-source-path {
  display: grid;
  gap: 3px;
  margin: 8px 0 0;
}

.active-source-path span {
  color: #667069;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.active-source-path strong {
  color: #334039;
  font-size: 0.74rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.handoff-rail-header > span {
  max-width: 420px;
  color: #59615b;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: right;
}

.handoff-rail-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.handoff-stage {
  min-height: 74px;
  padding: 11px 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
  color: #202521;
  text-align: left;
  cursor: pointer;
}

.handoff-stage span,
.handoff-stage strong {
  display: block;
}

.handoff-stage span {
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.handoff-stage strong {
  font-size: 0.86rem;
  line-height: 1.35;
}

.handoff-stage.active {
  border-color: #2e5c44;
  box-shadow: inset 3px 0 0 #2e5c44;
}

.handoff-stage.ready {
  background: #f2f8f4;
}

#handoff-rail-note {
  margin: 0;
  color: #59615b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.handoff-rail-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.handoff-rail-actions button {
  min-height: 38px;
}

.player-table-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #cdd8d1;
  border-radius: 6px;
  background: #eef6f0;
}

.player-table-bridge span,
.player-table-bridge strong {
  display: block;
}

.player-table-bridge span {
  margin-bottom: 4px;
  color: #667069;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.player-table-bridge strong {
  color: #22372a;
  font-size: 0.82rem;
  line-height: 1.35;
}

.player-table-bridge-link {
  display: inline-flex;
  min-height: 38px;
  min-width: 180px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-align: center;
  text-decoration: none;
}

.handoff-save-actions {
  display: grid;
  gap: 8px;
}

.handoff-save-actions button {
  min-height: 42px;
}

.moderator-current-step {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #c9d4ce;
  border-radius: 8px;
  background: #f7faf8;
  color: #1f3328;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.moderator-plan-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.file-list li.current {
  padding-left: 10px;
  border-left: 3px solid #326d55;
  color: #193b2c;
  font-weight: 700;
}

.file-list li.complete {
  color: #537165;
}

.file-list li.complete::before {
  content: "Complete: ";
  font-weight: 700;
}

.result-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 600;
}

.result-badge {
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 750;
}

.result-badge.idle {
  background: #dde0dc;
  color: #566059;
}

.result-badge.running {
  background: #fff0c8;
  color: #765b12;
}

.result-badge.success {
  background: #d9eadf;
  color: #245d39;
}

.result-badge.error {
  background: #f2d9d7;
  color: #8a312d;
}

.empty-state {
  min-height: 450px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #727a74;
}

.empty-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid #aeb5af;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.result-content {
  padding-top: 22px;
}

.demo-hero-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f8f9f7;
}

.demo-hero-panel h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 600;
}

.demo-hero-panel p {
  max-width: 760px;
  margin: 0;
  color: #465049;
  font-size: 0.92rem;
  line-height: 1.5;
}

.demo-first-card {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr 1fr 1.25fr minmax(136px, auto);
  gap: 8px;
  padding: 10px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
}

.demo-first-card div {
  min-height: 96px;
  padding: 13px;
  border: 1px solid #e1e4df;
  border-radius: 6px;
  background: #fbfcfa;
}

.demo-first-card span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-first-card strong {
  display: block;
  color: #202521;
  font-size: 0.9rem;
  line-height: 1.35;
}

.demo-show-first-start {
  align-self: stretch;
  min-height: 96px;
  padding: 0 18px;
  border: 1px solid #2e5c44;
  border-radius: 6px;
  background: #2e5c44;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.demo-show-first-start:hover {
  background: #254c39;
}

.demo-home-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #bfc7c0;
  border-radius: 6px;
  background: #f7faf8;
}

.demo-home-panel h3 {
  margin: 0 0 8px;
  color: #202521;
  font-size: 1rem;
}

.demo-home-panel p {
  margin: 0;
  color: #59615b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.demo-home-actions {
  display: grid;
  grid-template-columns: minmax(128px, 0.9fr) repeat(3, minmax(112px, 1fr));
  gap: 8px;
}

.demo-home-actions button {
  min-height: 76px;
  padding: 10px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #2c332f;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.demo-home-actions .demo-home-start {
  border-color: #2e5c44;
  background: #2e5c44;
  color: #ffffff;
}

.demo-home-actions button:hover,
.demo-home-actions button.selected {
  border-color: #2e5c44;
  background: #edf6ef;
  color: #214d39;
}

.demo-home-actions .demo-home-start:hover {
  background: #254c39;
  color: #ffffff;
}

.demo-home-status,
.demo-home-cue,
.demo-home-guest {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(120px, 0.18fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
}

.demo-home-cue {
  border-color: #b8c8bc;
  background: #f7fbf8;
}

.demo-home-guest {
  border-color: #d7c8a8;
  background: #fffdf7;
}

.demo-home-status span,
.demo-home-cue span,
.demo-home-guest span {
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-home-status strong,
.demo-home-cue strong,
.demo-home-guest strong {
  color: #214d39;
  font-size: 0.9rem;
  line-height: 1.3;
}

.demo-home-output {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.82rem;
  line-height: 1.42;
}

.demo-ready-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(150px, auto) minmax(128px, auto);
  gap: 8px;
  padding: 10px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #fbfcfa;
}

.demo-health-panel {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f8faf7;
}

.demo-health-heading,
.demo-health-grid div {
  min-height: 70px;
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
}

.demo-health-heading {
  display: grid;
  align-content: center;
}

.demo-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.demo-health-heading span,
.demo-health-grid span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-health-heading strong,
.demo-health-grid strong {
  display: block;
  color: #202521;
  font-size: 0.9rem;
  line-height: 1.35;
}

.demo-health-grid div.ready {
  border-color: #b8c8bc;
  background: #f3faf5;
}

.demo-health-grid div.ready strong {
  color: #214d39;
}

.demo-health-grid div.closed {
  border-color: #d7c8a8;
  background: #fffdf7;
}

.demo-health-grid div.waiting strong {
  color: #6d746e;
}

.demo-real-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #d7c8a8;
  border-radius: 6px;
  background: #fffdf7;
}

.demo-real-card div {
  min-height: 78px;
  padding: 13px;
  border: 1px solid #e4d8bd;
  border-radius: 6px;
  background: #ffffff;
}

.demo-real-card span {
  display: block;
  margin-bottom: 7px;
  color: #6f654c;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-real-card strong {
  display: block;
  color: #202521;
  font-size: 0.88rem;
  line-height: 1.35;
}

.demo-handoff-driver {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(260px, 1fr) minmax(190px, 0.8fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #fbfcfa;
}

.demo-handoff-driver > div,
.demo-handoff-driver > p {
  min-height: 78px;
  margin: 0;
  padding: 13px;
  border: 1px solid #e1e4df;
  border-radius: 6px;
  background: #ffffff;
}

.demo-handoff-driver > p {
  grid-column: 1 / -1;
  color: #59615b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.demo-handoff-driver span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-handoff-driver strong {
  display: block;
  color: #202521;
  font-size: 0.88rem;
  line-height: 1.35;
}

.demo-driver-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.demo-driver-actions button {
  min-height: 52px;
  padding: 9px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #2c332f;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.demo-driver-actions button:hover,
.demo-driver-actions button.selected {
  border-color: #2e5c44;
  background: #edf6ef;
  color: #214d39;
}

.demo-rescue-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #d9c2b9;
  border-radius: 6px;
  background: #fffaf8;
}

.demo-rescue-card div {
  min-height: 82px;
  padding: 13px;
  border: 1px solid #ead8d1;
  border-radius: 6px;
  background: #ffffff;
}

.demo-rescue-card span {
  display: block;
  margin-bottom: 7px;
  color: #7a5a50;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-rescue-card strong {
  display: block;
  color: #202521;
  font-size: 0.88rem;
  line-height: 1.35;
}

.demo-ready-summary div {
  min-height: 78px;
  padding: 13px;
  border: 1px solid #e1e4df;
  border-radius: 6px;
  background: #ffffff;
}

.demo-ready-summary span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-ready-summary strong {
  display: block;
  color: #202521;
  font-size: 0.88rem;
  line-height: 1.35;
}

.demo-end-no-save {
  align-self: stretch;
  min-height: 78px;
  padding: 0 16px;
  border: 1px solid #8e4d3b;
  border-radius: 6px;
  background: #fff8f5;
  color: #69392e;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.demo-end-no-save:hover {
  background: #f4e5df;
}

.demo-reset-clean {
  align-self: stretch;
  min-height: 78px;
  padding: 0 16px;
  border: 1px solid #b8beb6;
  border-radius: 6px;
  background: #ffffff;
  color: #2f3a33;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.demo-reset-clean:hover {
  background: #edf1eb;
}

.demo-family-script {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
}

.demo-script-heading {
  padding: 14px;
  border: 1px solid #dfe3dd;
  border-radius: 6px;
  background: #f6f8f4;
}

.demo-script-heading h3 {
  margin-bottom: 8px;
  color: #202521;
}

.demo-script-heading p:not(.eyebrow) {
  margin: 0;
  color: #4f5952;
  font-size: 0.84rem;
  line-height: 1.45;
}

.demo-script-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-script-steps li {
  min-height: 116px;
  padding: 13px;
  border: 1px solid #e1e4df;
  border-radius: 6px;
  background: #fbfcfa;
}

.demo-script-steps span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-script-steps strong {
  display: block;
  color: #202521;
  font-size: 0.88rem;
  line-height: 1.35;
}

.demo-watch-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.45fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f9faf7;
}

.demo-watch-panel > div:first-child {
  padding: 14px;
  border: 1px solid #dfe3dd;
  border-radius: 6px;
  background: #ffffff;
}

.demo-watch-panel h3 {
  margin-bottom: 8px;
  color: #202521;
}

.demo-watch-panel p:not(.eyebrow) {
  margin: 0;
  color: #4f5952;
  font-size: 0.84rem;
  line-height: 1.45;
}

.demo-watch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.demo-watch-grid div {
  min-height: 108px;
  padding: 13px;
  border: 1px solid #e1e4df;
  border-radius: 6px;
  background: #ffffff;
}

.demo-watch-grid span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-watch-grid strong {
  display: block;
  color: #202521;
  font-size: 0.88rem;
  line-height: 1.35;
}

.demo-after-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
}

.demo-after-panel > div:first-child {
  padding: 14px;
  border: 1px solid #dfe3dd;
  border-radius: 6px;
  background: #f6f8f4;
}

.demo-after-panel h3 {
  margin-bottom: 8px;
  color: #202521;
}

.demo-after-panel p:not(.eyebrow) {
  margin: 0;
  color: #4f5952;
  font-size: 0.84rem;
  line-height: 1.45;
}

.demo-after-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.demo-after-grid div {
  min-height: 104px;
  padding: 13px;
  border: 1px solid #e1e4df;
  border-radius: 6px;
  background: #fbfcfa;
}

.demo-after-grid span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-after-grid strong {
  display: block;
  color: #202521;
  font-size: 0.88rem;
  line-height: 1.35;
}

.demo-status-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
}

.demo-status-strip div {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #e1e4df;
  border-radius: 6px;
  background: #f8f9f7;
}

.demo-status-strip span {
  display: block;
  margin-bottom: 4px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-status-strip strong {
  display: block;
  color: #202521;
  font-size: 0.84rem;
  line-height: 1.25;
}

.demo-tonight-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #b9cabc;
  border-radius: 6px;
  background: #f3f8f2;
}

.demo-tonight-panel h3 {
  margin-bottom: 6px;
  color: #234d36;
}

.demo-tonight-panel p {
  margin: 0;
  color: #435247;
  font-size: 0.82rem;
  line-height: 1.4;
}

.demo-ready-line {
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid #ead1c8;
  border-radius: 6px;
  background: #fffaf8;
  color: #654336;
  font-weight: 800;
}

.demo-ready-line.ready {
  border-color: #adcdb5;
  background: #edf7ef;
  color: #245537;
}

.demo-tonight-panel .save-button {
  min-width: 190px;
}

.demo-tonight-panel .save-button.selected {
  background: #1f5d3a;
}

.demo-path-panel {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(280px, 0.48fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #fbfcfa;
}

.demo-path-panel h3 {
  margin-bottom: 6px;
}

.demo-path-panel p {
  margin: 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.demo-path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-path-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c8ccc6;
  border-radius: 999px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.demo-path-actions button:hover,
.demo-path-actions button.selected {
  border-color: #2e5c44;
  background: #f0f6f2;
}

.demo-path-actions .demo-weekend-path {
  border-color: #2e5c44;
  background: #2e5c44;
  color: #ffffff;
}

.demo-path-actions .demo-weekend-path:hover {
  background: #254c39;
}

.demo-path-output {
  padding: 10px 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
}

.demo-room-roles {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
}

.demo-room-roles h3 {
  margin-bottom: 6px;
}

.demo-room-roles p {
  margin: 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.demo-safety-stop {
  min-height: 36px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid #a95b47;
  border-radius: 999px;
  background: #fff7f4;
  color: #723926;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.demo-safety-stop:hover {
  background: #ffece5;
}

.demo-role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.demo-role-grid div {
  min-height: 104px;
  padding: 12px;
  border: 1px solid #e0e2df;
  border-radius: 6px;
  background: #f8f9f7;
}

.demo-role-grid strong {
  display: block;
  margin-bottom: 7px;
  color: #202521;
  font-size: 0.84rem;
}

.demo-role-grid span {
  color: #59615b;
  font-size: 0.76rem;
  line-height: 1.38;
}

.demo-safety-stop-output {
  grid-column: 2;
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px solid #ead1c8;
  border-radius: 6px;
  background: #fffaf8;
  color: #594238;
  font-size: 0.8rem;
  line-height: 1.42;
}

.demo-readiness-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.demo-readiness-strip div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 9px;
  align-content: start;
  min-height: 88px;
  padding: 14px;
  border-right: 1px solid #e0e2df;
}

.demo-readiness-strip div:last-child {
  border-right: 0;
}

.demo-readiness-strip strong {
  color: #202521;
  font-size: 0.84rem;
}

.demo-readiness-strip span:last-child {
  grid-column: 2;
  color: #59615b;
  font-size: 0.76rem;
  line-height: 1.35;
}

.readiness-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: #7a817b;
}

.readiness-dot.ready {
  background: #2e7d4f;
}

.readiness-dot.locked {
  background: #6f5641;
}

.demo-start-checklist {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  background: #fbfcfa;
}

.demo-start-checklist h3 {
  margin-bottom: 6px;
}

.demo-start-checklist p {
  margin: 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.demo-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 8px;
}

.demo-checklist-grid label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.demo-checklist-grid input {
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: #2e7d4f;
}

.demo-readiness-status {
  justify-self: end;
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid #c8ccc6;
  border-radius: 999px;
  background: #ffffff;
  color: #59615b;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
}

.demo-readiness-status.ready {
  border-color: #9bc7aa;
  background: #e9f5ed;
  color: #245537;
}

.demo-guide-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  border-color: #b6c7bc;
  background: #f5faf6;
}

.demo-guide-panel h3 {
  margin-bottom: 6px;
}

.demo-guide-panel p {
  margin: 0;
  color: #39403b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.demo-presenter-cue {
  display: grid;
  gap: 5px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #b8c9bd;
  border-radius: 6px;
  background: #ffffff;
}

.demo-presenter-cue span {
  color: #607066;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-presenter-cue strong {
  color: #202521;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.demo-guide-detail {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.demo-guide-detail div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.demo-guide-detail dt {
  color: #68706a;
  font-size: 0.72rem;
  font-weight: 800;
}

.demo-guide-detail dd {
  margin: 0;
  color: #202521;
  font-size: 0.8rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.demo-guide-progress {
  display: grid;
  grid-template-columns: repeat(6, 26px);
  gap: 6px;
  align-items: center;
}

.demo-progress-step {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #bdc3bd;
  border-radius: 999px;
  background: #ffffff;
  color: #68706a;
  font-size: 0.72rem;
  font-weight: 850;
}

.demo-progress-step.complete {
  border-color: #9bc7aa;
  background: #dcefe2;
  color: #245537;
}

.demo-progress-step.active {
  border-color: #2e7d4f;
  background: #2e7d4f;
  color: #ffffff;
}

.demo-guide-actions {
  display: grid;
  grid-template-columns: minmax(104px, auto) repeat(3, minmax(70px, auto));
  gap: 8px;
}

.demo-guide-actions button {
  min-height: 38px;
  white-space: nowrap;
}

.demo-run-sheet {
  background: #fbfcfa;
}

.demo-run-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 0;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.demo-run-step {
  min-height: 132px;
  padding: 14px;
  border: 0;
  border-right: 1px solid #e0e2df;
  border-radius: 0;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.demo-run-step:hover,
.demo-run-step.selected {
  background: #f0f6f2;
}

.demo-run-step.selected {
  box-shadow: inset 0 3px 0 #2e7d4f;
}

.demo-run-step:last-child {
  border-right: 0;
}

.demo-run-step span {
  display: inline-block;
  margin-bottom: 8px;
  color: #68706a;
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-run-step strong {
  display: block;
  margin-bottom: 8px;
  color: #202521;
  font-size: 0.86rem;
}

.demo-run-step p {
  margin: 0;
  color: #59615b;
  font-size: 0.77rem;
  line-height: 1.4;
}

.demo-run-output {
  display: grid;
  grid-template-columns: minmax(120px, 0.25fr) minmax(140px, 0.28fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
}

.demo-run-output strong {
  color: #202521;
  font-size: 0.86rem;
}

.demo-run-output span {
  color: #2e5c44;
  font-size: 0.8rem;
  font-weight: 700;
}

.demo-run-output p {
  margin: 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.demo-materials {
  background: #fbfcfa;
}

.demo-material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.demo-material-card {
  min-height: 98px;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.demo-material-card:hover,
.demo-material-card.selected {
  border-color: #2e5c44;
  background: #f0f6f2;
}

.demo-material-card strong {
  display: block;
  margin-bottom: 8px;
  color: #202521;
  font-size: 0.86rem;
}

.demo-material-card span {
  color: #59615b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.demo-material-output {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.demo-material-output strong {
  display: block;
  margin-bottom: 10px;
  color: #202521;
  font-size: 0.88rem;
}

.demo-material-output dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.demo-material-output dl div {
  display: grid;
  grid-template-columns: minmax(86px, 0.2fr) minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e2df;
}

.demo-material-output dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.demo-material-output dt {
  color: #68706a;
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-material-output dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.demo-chain-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
}

.demo-chain-strip div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid #d7dad5;
}

.demo-chain-strip div:last-child {
  border-right: 0;
}

.demo-chain-strip span,
.demo-chain-strip strong {
  display: block;
}

.demo-chain-strip span {
  margin-bottom: 5px;
  color: #68706a;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-chain-strip strong {
  color: #202521;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.demo-loop-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f8f9f7;
}

.demo-loop-map div {
  min-height: 74px;
  padding: 10px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
}

.demo-loop-map div.active {
  border-color: #2f6950;
  background: #edf5ef;
}

.demo-loop-map div.complete {
  border-color: #b9d1bf;
  background: #f4f8f5;
}

.demo-loop-map span,
.demo-loop-map strong {
  display: block;
}

.demo-loop-map span {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #e6e9e4;
  color: #3e4740;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 24px;
  text-align: center;
}

.demo-loop-map div.active span {
  background: #2f6950;
  color: #ffffff;
}

.demo-loop-map strong {
  color: #202521;
  font-size: 0.8rem;
  line-height: 1.25;
}

#demo-loop-output {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.demo-reaction-strip {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #fbfcfa;
}

.demo-reaction-strip h3 {
  margin-bottom: 6px;
}

.demo-reaction-strip p {
  margin: 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.demo-reaction-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  gap: 8px;
}

.demo-reaction-actions button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.demo-reaction-actions button:hover,
.demo-reaction-actions button.selected {
  border-color: #2e5c44;
  background: #edf6ef;
}

.demo-reaction-output {
  padding: 11px 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
}

.demo-observer-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
}

.demo-observer-panel h3 {
  margin-bottom: 6px;
}

.demo-observer-panel p {
  margin: 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.demo-observer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.demo-observer-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #f8f9f7;
}

.demo-observer-grid strong,
.demo-observer-grid span {
  display: block;
}

.demo-observer-grid strong {
  margin-bottom: 8px;
  color: #202521;
  font-size: 0.86rem;
}

.demo-observer-grid span {
  margin-top: 8px;
  color: #4d5650;
  font-size: 0.8rem;
  line-height: 1.35;
}

.demo-observer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.demo-observer-actions button {
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.74rem;
  font-weight: 850;
  cursor: pointer;
}

.demo-observer-actions button:hover,
.demo-observer-actions button.selected {
  border-color: #2e5c44;
  background: #edf6ef;
}

#demo-observer-output {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
}

.demo-observer-status {
  grid-column: 1 / -1;
  padding: 11px 12px;
  border: 1px solid #b8c8bc;
  border-radius: 6px;
  background: #edf6ef;
  color: #244531;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.demo-observer-cue,
.demo-observer-next,
.demo-observer-wrap {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #fffdf8;
}

.demo-observer-cue span,
.demo-observer-cue strong,
.demo-observer-next span,
.demo-observer-next strong,
.demo-observer-wrap span,
.demo-observer-wrap strong {
  display: block;
}

.demo-observer-cue span,
.demo-observer-next span,
.demo-observer-wrap span {
  margin-bottom: 7px;
  color: #6f6550;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-observer-cue strong,
.demo-observer-next strong,
.demo-observer-wrap strong {
  color: #2b2923;
  font-size: 0.88rem;
  line-height: 1.4;
}

.demo-observer-next {
  background: #f7fbf8;
}

.demo-observer-wrap {
  background: #f6f8fb;
}

.demo-observer-close {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(150px, 0.25fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.demo-observer-close button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #6b443c;
  border-radius: 6px;
  background: #fff7f4;
  color: #5f342d;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.demo-observer-close button:hover {
  background: #f8e4de;
}

.demo-observer-close span {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.35;
}

.demo-movement-panel {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: #ffffff;
}

.demo-movement-panel h3 {
  margin-bottom: 6px;
}

.demo-movement-panel p {
  margin: 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.demo-movement-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 8px;
}

.demo-movement-actions button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.demo-movement-actions button:hover,
.demo-movement-actions button.selected {
  border-color: #2e5c44;
  background: #edf6ef;
}

.demo-movement-output {
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #fbfcfa;
  color: #39403b;
  font-size: 0.8rem;
  line-height: 1.42;
}

.demo-movement-output strong {
  display: block;
  margin-bottom: 8px;
  color: #202521;
}

.demo-movement-output dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.demo-movement-output dl div {
  display: grid;
  grid-template-columns: minmax(76px, 0.2fr) minmax(0, 1fr);
  gap: 10px;
}

.demo-movement-output dt {
  color: #68706a;
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-movement-output dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.demo-craft-handoff {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(140px, 0.18fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: #fbfcfa;
}

.demo-craft-handoff h3 {
  margin-bottom: 6px;
}

.demo-craft-handoff p {
  margin: 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.demo-craft-handoff button {
  min-height: 42px;
}

.demo-craft-handoff-output {
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.8rem;
  line-height: 1.42;
}

.demo-craft-handoff-output strong {
  display: block;
  margin-bottom: 8px;
  color: #202521;
}

.demo-craft-handoff-output dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.demo-craft-handoff-output dl div {
  display: grid;
  grid-template-columns: minmax(92px, 0.22fr) minmax(0, 1fr);
  gap: 10px;
}

.demo-craft-handoff-output dt {
  color: #68706a;
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-craft-handoff-output dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.demo-moderator-handoff {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: #ffffff;
}

.demo-moderator-handoff h3 {
  margin-bottom: 6px;
}

.demo-moderator-handoff p {
  margin: 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.demo-moderator-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 8px;
}

.demo-moderator-actions button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.demo-moderator-actions button:hover,
.demo-moderator-actions button.selected {
  border-color: #2e5c44;
  background: #edf6ef;
}

.demo-moderator-handoff-output {
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #fbfcfa;
  color: #39403b;
  font-size: 0.8rem;
  line-height: 1.42;
}

.demo-moderator-handoff-output strong {
  display: block;
  margin-bottom: 8px;
  color: #202521;
}

.demo-moderator-handoff-output dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.demo-moderator-handoff-output dl div {
  display: grid;
  grid-template-columns: minmax(82px, 0.22fr) minmax(0, 1fr);
  gap: 10px;
}

.demo-moderator-handoff-output dt {
  color: #68706a;
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-moderator-handoff-output dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.demo-survey-handoff {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(150px, 0.2fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: #fbfcfa;
}

.demo-survey-handoff h3 {
  margin-bottom: 6px;
}

.demo-survey-handoff p {
  margin: 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.demo-survey-handoff button {
  min-height: 42px;
}

.demo-survey-handoff-output {
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.8rem;
  line-height: 1.42;
}

.demo-survey-handoff-output strong {
  display: block;
  margin-bottom: 8px;
  color: #202521;
}

.demo-survey-handoff-output dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.demo-survey-handoff-output dl div {
  display: grid;
  grid-template-columns: minmax(84px, 0.22fr) minmax(0, 1fr);
  gap: 10px;
}

.demo-survey-handoff-output dt {
  color: #68706a;
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-survey-handoff-output dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.demo-guest-panel {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: #f8faf8;
}

.demo-guest-panel h3 {
  margin-bottom: 6px;
}

.demo-guest-panel > div > p {
  margin: 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.demo-guest-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 8px;
}

.demo-guest-choice button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #b9c3bb;
  border-radius: 6px;
  background: #ffffff;
  color: #26352b;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.demo-guest-choice button:hover,
.demo-guest-choice button.selected {
  border-color: #2e5c44;
  background: #edf6ef;
}

.demo-guest-choice-output {
  grid-column: 2;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d6dfd8;
  border-radius: 6px;
  background: #ffffff;
  color: #435247;
  font-size: 0.8rem;
  line-height: 1.42;
}

.demo-guest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.demo-guest-grid button {
  min-height: 112px;
  padding: 13px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.demo-guest-grid button:hover {
  border-color: #2e5c44;
  background: #f0f6f2;
}

.demo-guest-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #202521;
  font-size: 0.84rem;
}

.demo-guest-grid p {
  margin: 0;
  color: #59615b;
  font-size: 0.76rem;
  line-height: 1.38;
}

.demo-guest-output {
  grid-column: 2;
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.8rem;
  line-height: 1.42;
}

.demo-question-panel {
  background: #ffffff;
}

.demo-question-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.demo-question-grid div {
  min-height: 118px;
  padding: 14px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #f8f9f7;
}

.demo-question-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #202521;
  font-size: 0.84rem;
}

.demo-question-grid p {
  margin: 0;
  color: #59615b;
  font-size: 0.76rem;
  line-height: 1.4;
}

.demo-success-panel {
  background: #f8faf8;
}

.demo-success-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.demo-success-grid div {
  min-height: 124px;
  padding: 14px;
  border: 1px solid #c6d5c9;
  border-radius: 6px;
  background: #ffffff;
}

.demo-success-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #245537;
  font-size: 0.84rem;
}

.demo-success-grid p {
  margin: 0;
  color: #4f5f54;
  font-size: 0.76rem;
  line-height: 1.4;
}

.demo-signal-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(280px, 0.44fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: #ffffff;
}

.demo-signal-panel h3 {
  margin-bottom: 6px;
}

.demo-signal-panel p {
  margin: 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.demo-signal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-signal-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #c8ccc6;
  border-radius: 999px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.demo-signal-actions button:hover,
.demo-signal-actions button.selected {
  border-color: #2e5c44;
  background: #edf6ef;
}

.demo-signal-output {
  padding: 10px 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #fbfcfa;
}

.demo-closeout {
  background: #fbfcfa;
}

.demo-closeout-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.demo-closeout-grid div {
  min-height: 118px;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
}

.demo-closeout-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #202521;
  font-size: 0.86rem;
}

.demo-closeout-grid p {
  margin: 0;
  color: #59615b;
  font-size: 0.78rem;
  line-height: 1.4;
}

.demo-parking-lot {
  background: #fbfcfa;
}

.demo-parking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 12px;
}

.demo-closeout-decision {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.demo-decision-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c8ccc6;
  border-radius: 999px;
  background: #ffffff;
  color: #3b443e;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
}

.demo-decision-button:hover,
.demo-decision-button.selected {
  border-color: #2e5c44;
  background: #f0f6f2;
}

.demo-decision-output {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.demo-parking-boundary {
  margin: 12px 0 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.demo-recap-panel {
  background: #ffffff;
}

.demo-recap-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
}

.demo-recap-grid div {
  min-height: 70px;
  padding: 11px 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #f8f9f7;
}

.demo-recap-grid span {
  display: block;
  margin-bottom: 6px;
  color: #68706a;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-recap-grid strong {
  display: block;
  color: #202521;
  font-size: 0.84rem;
  line-height: 1.3;
}

.demo-recap-output {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #fbfcfa;
  color: #4f5b52;
  font-size: 0.8rem;
  line-height: 1.42;
}

.demo-recap-presenter {
  margin-top: 10px;
  padding: 13px 14px;
  border: 1px solid #b8c8bc;
  border-radius: 6px;
  background: #f7fbf8;
}

.demo-recap-presenter span,
.demo-recap-presenter strong {
  display: block;
}

.demo-recap-presenter span {
  margin-bottom: 7px;
  color: #59685f;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-recap-presenter strong {
  color: #243d2f;
  font-size: 0.86rem;
  line-height: 1.42;
}

.demo-final-receipt {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #adcdb5;
  border-radius: 6px;
  background: #edf7ef;
}

.demo-final-receipt span,
.demo-final-receipt strong {
  display: block;
}

.demo-final-receipt span {
  margin-bottom: 7px;
  color: #245537;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-final-receipt strong {
  color: #1f4d32;
  font-size: 0.88rem;
  line-height: 1.42;
}

.demo-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
}

.demo-card {
  min-height: 132px;
  padding: 15px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f9faf8;
}

.demo-card strong {
  display: block;
  margin-bottom: 9px;
  color: #202521;
  font-size: 0.92rem;
}

.demo-card p {
  margin: 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.demo-handoff {
  padding: 16px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #2e3731;
  font-size: 0.9rem;
  line-height: 1.5;
}

.circles-demo-panel {
  border-top: 1px solid #c8ccc6;
}

.circles-demo-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.circles-demo-steps {
  display: grid;
  gap: 8px;
}

.circles-demo-step {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f8f9f7;
  color: #2c332f;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.circles-demo-step.selected {
  border-color: #2e5c44;
  background: #e3eee8;
  color: #193b2b;
}

.circles-demo-output {
  min-height: 180px;
  padding: 16px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.circles-demo-output strong {
  display: block;
  margin-bottom: 10px;
  color: #202521;
}

.circles-demo-output dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.circles-demo-output dl div {
  display: grid;
  grid-template-columns: minmax(76px, 0.25fr) minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e2df;
}

.circles-demo-output dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.circles-demo-output dt {
  color: #68706a;
  font-size: 0.72rem;
  font-weight: 700;
}

.circles-demo-output dd {
  margin: 0;
}

.circles-demo-boundary {
  margin: 12px 0 0;
  color: #59615b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.circles-demo-receipt {
  display: grid;
  grid-template-columns: minmax(110px, 0.18fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 12px 0 0;
  padding: 11px 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #f7faf8;
}

.circles-demo-receipt span {
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.circles-demo-receipt strong {
  color: #214d39;
  font-size: 0.88rem;
  line-height: 1.35;
}

.moderator-demo-panel {
  border-top: 1px solid #c8ccc6;
}

.moderator-path-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.moderator-path-strip div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #f7faf8;
}

.moderator-path-strip span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.moderator-path-strip strong {
  display: block;
  color: #202521;
  font-size: 0.86rem;
  line-height: 1.35;
}

.strategy-source-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #b8c8bc;
  border-radius: 6px;
  background: #f7fbf8;
}

.strategy-source-panel div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
}

.strategy-source-panel span {
  display: block;
  margin-bottom: 7px;
  color: #59685f;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.strategy-source-panel strong {
  display: block;
  color: #243d2f;
  font-size: 0.84rem;
  line-height: 1.4;
}

.strategy-source-panel small {
  grid-column: 1 / -1;
  color: #59615b;
  font-size: 0.74rem;
  line-height: 1.4;
}

.strategy-source-panel .strategy-source-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.strategy-source-panel .strategy-source-footer small {
  grid-column: auto;
  overflow-wrap: anywhere;
}

.strategy-source-panel .strategy-source-footer button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 11px;
  font-size: 0.74rem;
}

.panel-guest-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.panel-guest-guide div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid #d7c8a8;
  border-radius: 6px;
  background: #fffdf7;
}

.panel-guest-guide span {
  display: block;
  margin-bottom: 7px;
  color: #6f654c;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.panel-guest-guide strong {
  display: block;
  color: #202521;
  font-size: 0.88rem;
  line-height: 1.35;
}

.moderator-demo-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.moderator-demo-label {
  margin: 0 0 10px;
  color: #68706a;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.moderator-cue-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
}

.moderator-cue-button {
  min-height: 42px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f8f9f7;
  color: #2c332f;
  font-weight: 700;
  cursor: pointer;
}

.moderator-work-board {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.moderator-work-cue-button {
  min-height: 42px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f8f9f7;
  color: #2c332f;
  font-weight: 700;
  cursor: pointer;
}

.moderator-cue-button.selected,
.moderator-work-cue-button.selected {
  border-color: #2e5c44;
  background: #e3eee8;
  color: #193b2b;
}

.moderator-cue-output {
  min-height: 146px;
  padding: 16px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.moderator-cue-output strong {
  display: block;
  margin-bottom: 10px;
  color: #202521;
}

.moderator-cue-output dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.moderator-cue-output dl div {
  display: grid;
  grid-template-columns: minmax(72px, 0.24fr) minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e2df;
}

.moderator-cue-output dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.moderator-cue-output dt {
  color: #68706a;
  font-size: 0.72rem;
  font-weight: 700;
}

.moderator-cue-output dd {
  margin: 0;
}

.moderator-live-helper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.moderator-live-helper div {
  min-height: 108px;
  padding: 14px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #f8faf8;
}

.moderator-live-helper span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.moderator-live-helper strong {
  display: block;
  color: #202521;
  font-size: 0.84rem;
  line-height: 1.4;
}

.moderator-flow-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(112px, auto));
  gap: 8px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
}

.moderator-flow-control div {
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid #e1e4df;
  border-radius: 6px;
  background: #f8f9f7;
}

.moderator-flow-control span {
  display: block;
  margin-bottom: 5px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.moderator-flow-control strong {
  display: block;
  color: #202521;
  font-size: 0.84rem;
  line-height: 1.35;
}

.moderator-flow-control button {
  min-height: 64px;
}

.moderator-handoff-preview {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.95fr;
  gap: 10px;
  margin-bottom: 14px;
}

.moderator-handoff-preview div {
  min-height: 112px;
  padding: 14px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #fffdf8;
}

.moderator-handoff-preview span {
  display: block;
  margin-bottom: 7px;
  color: #6f6550;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.moderator-handoff-preview strong {
  display: block;
  color: #2b2923;
  font-size: 0.84rem;
  line-height: 1.4;
}

.moderator-handoff-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #fbfbf8;
}

.moderator-handoff-choice > div:first-child {
  min-height: 78px;
  padding: 12px;
  border: 1px solid #e0e2df;
  border-radius: 6px;
  background: #ffffff;
}

.moderator-handoff-choice span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.moderator-handoff-choice strong {
  display: block;
  color: #202521;
  font-size: 0.88rem;
  line-height: 1.4;
}

.moderator-handoff-choice-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.moderator-handoff-choice-actions button {
  min-height: 78px;
  padding: 9px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #38403a;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.moderator-handoff-choice-actions button:hover,
.moderator-handoff-choice-actions button.selected {
  border-color: #2f6950;
  background: #edf5ef;
  color: #214d39;
}

#moderator-handoff-choice-output {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.moderator-refinement-draft {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #b8c8bc;
  border-radius: 6px;
  background: #f7fbf8;
}

.moderator-refinement-draft span,
.moderator-refinement-draft strong {
  display: block;
}

.moderator-refinement-draft span {
  margin-bottom: 7px;
  color: #59685f;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.moderator-refinement-draft strong {
  color: #243d2f;
  font-size: 0.88rem;
  line-height: 1.42;
}

.moderator-refinement-outcome,
.moderator-work-outcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #fbfbf8;
}

.moderator-refinement-outcome > div:first-child,
.moderator-work-outcome > div:first-child {
  min-height: 78px;
  padding: 12px;
  border: 1px solid #e0e2df;
  border-radius: 6px;
  background: #ffffff;
}

.moderator-refinement-outcome span,
.moderator-work-outcome span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.moderator-refinement-outcome strong,
.moderator-work-outcome strong {
  display: block;
  color: #202521;
  font-size: 0.88rem;
  line-height: 1.4;
}

.moderator-refinement-outcome-actions,
.moderator-work-outcome-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.moderator-refinement-outcome-actions button,
.moderator-work-outcome-actions button {
  min-height: 78px;
  padding: 9px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #38403a;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.moderator-refinement-outcome-actions button:hover,
.moderator-refinement-outcome-actions button.selected,
.moderator-work-outcome-actions button:hover:not(:disabled),
.moderator-work-outcome-actions button.selected {
  border-color: #2f6950;
  background: #edf5ef;
  color: #214d39;
}

#moderator-refinement-outcome-output,
#moderator-work-outcome-output {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.candidate-beat-preview {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
}

.candidate-beat-preview span {
  display: block;
  margin-bottom: 6px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.candidate-beat-preview strong {
  display: block;
  margin-bottom: 10px;
  color: #202521;
  font-size: 0.96rem;
}

.candidate-beat-preview dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.candidate-beat-preview dt {
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.candidate-beat-preview dd {
  margin: 2px 0 0;
  color: #39403b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.moderator-survey-return {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.moderator-survey-return div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f7fbf8;
}

.moderator-survey-return span {
  display: block;
  margin-bottom: 7px;
  color: #59685f;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.moderator-survey-return strong {
  display: block;
  color: #243d2f;
  font-size: 0.84rem;
  line-height: 1.42;
}

.moderator-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.moderator-note-output {
  padding: 12px 14px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.moderator-note-output.safe {
  border-color: #b9d1bf;
  background: #f3f8f4;
  color: #254c39;
}

.moderator-note-output.caution {
  border-color: #d7b19f;
  background: #fff8f5;
  color: #69392e;
}

.moderator-note-output strong {
  display: block;
  margin-bottom: 8px;
}

.moderator-note-output ul {
  margin: 0;
  padding-left: 18px;
}

.moderator-closeout-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr);
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f7f8f5;
}

.moderator-closeout-panel > div:first-child {
  min-height: 82px;
  padding: 12px;
  border: 1px solid #e0e2df;
  border-radius: 6px;
  background: #ffffff;
}

.moderator-closeout-panel span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.moderator-closeout-panel strong {
  display: block;
  color: #202521;
  font-size: 0.9rem;
  line-height: 1.4;
}

.moderator-closeout-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.moderator-closeout-button {
  min-height: 82px;
  padding: 10px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #38403a;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.moderator-closeout-button:hover,
.moderator-closeout-button.selected {
  border-color: #2f6950;
  background: #edf5ef;
  color: #214d39;
}

#moderator-closeout-output {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.moderator-demo-boundary {
  margin: 12px 0 0;
  color: #59615b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.survey-demo-panel {
  border-top: 1px solid #c8ccc6;
}

.survey-path-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.survey-path-strip div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #f7faf8;
}

.survey-path-strip span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.survey-path-strip strong {
  display: block;
  color: #202521;
  font-size: 0.86rem;
  line-height: 1.35;
}

.survey-demo-grid {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f9faf8;
}

.survey-sample-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.survey-sample-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c8ccc6;
  border-radius: 999px;
  background: #ffffff;
  color: #3b443e;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
}

.survey-sample-button:hover {
  border-color: #2e5c44;
  background: #f0f6f2;
}

.survey-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.survey-demo-actions button {
  min-height: 40px;
  padding: 0 14px;
}

.survey-claim-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.survey-claim-strip div {
  min-height: 110px;
  padding: 14px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
}

.survey-claim-strip span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.survey-claim-strip strong {
  display: block;
  color: #202521;
  font-size: 0.84rem;
  line-height: 1.4;
}

.survey-claim-checker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 10px;
  margin-top: 10px;
}

.survey-claim-checker div {
  min-height: 96px;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #fffdf8;
}

.survey-claim-checker div:last-child {
  background: #fff8f5;
}

.survey-claim-checker span {
  display: block;
  margin-bottom: 7px;
  color: #6f6550;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.survey-claim-checker strong {
  display: block;
  color: #2b2923;
  font-size: 0.86rem;
  line-height: 1.42;
}

.survey-return-packet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.survey-return-packet div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f7fbf8;
}

.survey-return-packet span {
  display: block;
  margin-bottom: 7px;
  color: #59685f;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.survey-return-packet strong {
  display: block;
  color: #243d2f;
  font-size: 0.84rem;
  line-height: 1.42;
}

.survey-next-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.85fr);
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f7f8f5;
}

.survey-next-panel > div:first-child {
  min-height: 82px;
  padding: 12px;
  border: 1px solid #e0e2df;
  border-radius: 6px;
  background: #ffffff;
}

.survey-next-panel span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.survey-next-panel strong {
  display: block;
  color: #202521;
  font-size: 0.9rem;
  line-height: 1.4;
}

.survey-next-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.survey-next-button {
  min-height: 82px;
  padding: 10px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #38403a;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.survey-next-button:hover,
.survey-next-button.selected {
  border-color: #2f6950;
  background: #edf5ef;
  color: #214d39;
}

#survey-next-output {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  border: 1px solid #d7dad5;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.survey-demo-receipt {
  margin-top: 10px;
  padding: 13px 14px;
  border: 1px solid #b8c8bc;
  border-radius: 6px;
  background: #f7fbf8;
}

.survey-demo-receipt span,
.survey-demo-receipt strong {
  display: block;
}

.survey-demo-receipt span {
  margin-bottom: 7px;
  color: #59685f;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.survey-demo-receipt strong {
  color: #243d2f;
  font-size: 0.86rem;
  line-height: 1.42;
}

.survey-demo-output {
  padding: 16px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #ffffff;
  color: #39403b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.survey-demo-output strong {
  display: block;
  margin-bottom: 10px;
}

.survey-demo-output dl {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.survey-demo-output dl div {
  display: grid;
  grid-template-columns: minmax(92px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e2df;
}

.survey-demo-output dt {
  color: #68706a;
  font-size: 0.72rem;
  font-weight: 700;
}

.survey-demo-output dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.survey-demo-output p {
  margin: 0 0 10px;
}

.survey-demo-output ul {
  margin: 0;
  padding-left: 18px;
}

.hidden {
  display: none !important;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  border: 1px solid #c8ccc6;
  background: #f8f9f7;
}

.circle-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  border: 1px solid #c8ccc6;
  background: #f8f9f7;
}

.beat-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #c8ccc6;
}

.beat-list-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 600;
}

.authority-badge {
  padding: 5px 8px;
  border-radius: 4px;
  background: #d9eadf;
  color: #245d39;
  font-size: 0.7rem;
  font-weight: 750;
}

.authority-note {
  max-width: 780px;
  margin: 16px 0 20px;
  color: #59615b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.beat-workflow-strip,
.notes-workflow-strip,
.storyboard-workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.records-workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.beat-workflow-strip div,
.notes-workflow-strip div,
.storyboard-workflow-strip div,
.records-workflow-strip div {
  min-height: 88px;
  padding: 12px;
  border: 1px solid #cfd4cd;
  border-radius: 6px;
  background: #fbfcfa;
}

.beat-workflow-strip span,
.notes-workflow-strip span,
.storyboard-workflow-strip span,
.records-workflow-strip span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.beat-workflow-strip strong,
.notes-workflow-strip strong,
.storyboard-workflow-strip strong,
.records-workflow-strip strong {
  display: block;
  color: #202521;
  font-size: 0.82rem;
  line-height: 1.35;
}

.storyboard-board {
  margin: 16px 0;
}

.storyboard-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.storyboard-card {
  min-height: 180px;
  padding: 14px;
  border: 2px solid #c8ccc6;
  border-radius: 6px;
  background: #fbfcfa;
  color: #202521;
  text-align: left;
  cursor: pointer;
}

.storyboard-card:hover,
.storyboard-card.selected {
  border-color: #2f6845;
  background: #f3f7f1;
}

.storyboard-card:focus {
  outline: 3px solid #b9d4c2;
  outline-offset: 2px;
}

.storyboard-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.storyboard-card-order,
.storyboard-status {
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.storyboard-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.storyboard-status::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #aeb5ae;
}

.storyboard-status.approved::before {
  background: #2f6845;
}

.storyboard-status.ready::before,
.storyboard-status.in_progress::before {
  background: #c58b2a;
}

.storyboard-status.blocked::before,
.storyboard-status.deferred::before {
  background: #9f4e3f;
}

.storyboard-card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 1rem;
  line-height: 1.25;
}

.storyboard-card p {
  margin: 0;
  color: #59615b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.storyboard-decision-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(190px, 0.4fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f8f9f7;
}

.storyboard-selected-frame {
  min-height: 150px;
  padding: 16px;
  border: 1px solid #d0d4cf;
  border-radius: 6px;
  background: #ffffff;
}

.storyboard-selected-frame span,
.storyboard-direction-box span {
  display: block;
  margin-bottom: 7px;
  color: #667069;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.storyboard-selected-frame strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.storyboard-selected-frame p {
  margin: 0;
  color: #4f5852;
  line-height: 1.45;
}

.storyboard-decision-actions {
  display: grid;
  gap: 10px;
}

.storyboard-decision-actions button {
  min-height: 60px;
  font-size: 1rem;
}

.storyboard-direction-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
}

.storyboard-direction-box textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border: 1px solid #bdc3bd;
  border-radius: 4px;
  background: #ffffff;
  color: #202521;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
}

#storyboard-direction-status {
  grid-column: 1 / -1;
}

.beat-editor-list {
  display: grid;
  gap: 12px;
}

.beat-editor-item {
  padding: 16px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f9faf8;
}

.beat-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #d7dad5;
}

.beat-editor-heading span,
.beat-editor-heading strong {
  display: block;
}

.beat-editor-heading span {
  color: #6c736d;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.beat-editor-heading strong {
  margin-top: 2px;
  font-size: 0.9rem;
}

.reorder-controls {
  display: flex;
  gap: 6px;
}

.beat-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
}

.beat-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

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

.beat-field.approval-rationale {
  min-width: 0;
}

.beat-field span {
  color: #68706a;
  font-size: 0.68rem;
  font-weight: 700;
}

.beat-field input,
.beat-field select,
.beat-field textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #bdc3bd;
  border-radius: 4px;
  background: #ffffff;
  color: #202521;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.beat-field textarea {
  resize: vertical;
  line-height: 1.4;
}

.beat-field input:focus,
.beat-field select:focus,
.beat-field textarea:focus {
  outline: 2px solid #b9d4c2;
  border-color: #2f6845;
}

.role-notes {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #d7dad5;
}

.role-notes summary {
  color: #3d463f;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
}

.role-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.supporting-note {
  margin: 10px 0 0;
  color: #737a75;
  font-size: 0.7rem;
}

.local-file-path {
  margin: 0;
  color: #39403b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.notes-editor {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1.6fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #c8ccc6;
  border-radius: 6px;
  background: #f9faf8;
}

.correction-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.correction-item {
  padding: 11px 13px;
  border: 1px solid #d0d4cf;
  border-left: 4px solid #2f6845;
  border-radius: 5px;
  background: #fafbf9;
}

.correction-item strong,
.correction-item span,
.correction-item p {
  display: block;
}

.correction-item span {
  margin-top: 2px;
  color: #6a716c;
  font-size: 0.68rem;
}

.correction-item p {
  margin: 7px 0 0;
  color: #414942;
  font-size: 0.8rem;
  line-height: 1.45;
}

.new-correction {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(240px, 1.25fr) minmax(130px, 0.35fr);
  gap: 10px;
  align-items: end;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.new-player-review {
  display: grid;
  grid-template-columns:
    minmax(120px, 0.25fr)
    minmax(120px, 0.25fr)
    minmax(260px, 1fr)
    minmax(160px, 0.35fr);
  gap: 10px;
  align-items: end;
}

.player-review-note {
  min-width: 0;
}

.correction-text {
  min-width: 0;
}

.policy-note {
  max-width: 780px;
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid #2f6845;
  background: #f8faf7;
  color: #465049;
  font-size: 0.8rem;
  line-height: 1.5;
}

.circle-summary div {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid #c8ccc6;
}

.circle-summary div:last-child {
  border-right: 0;
}

.circle-summary span,
.circle-summary strong {
  display: block;
}

.circle-summary span {
  color: #6a716c;
  font-size: 0.72rem;
}

.circle-summary strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.summary-strip div {
  padding: 14px 16px;
  border-right: 1px solid #c8ccc6;
}

.summary-strip div:last-child {
  border-right: 0;
}

.summary-strip span,
.summary-strip strong {
  display: block;
}

.summary-strip span {
  color: #6a716c;
  font-size: 0.72rem;
}

.summary-strip strong {
  margin-top: 3px;
  font-size: 1.15rem;
}

.result-section {
  padding: 22px 0;
  border-bottom: 1px solid #c8ccc6;
}

.two-column-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 8px;
}

.roster-item {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d0d4cf;
  border-radius: 5px;
  background: #fafbf9;
}

.roster-item span,
.roster-item strong {
  display: block;
  overflow-wrap: anywhere;
}

.roster-item span {
  margin-bottom: 5px;
  color: #6b736d;
  font-size: 0.7rem;
  text-transform: capitalize;
}

.roster-item strong {
  font-size: 0.9rem;
}

.consent-list {
  display: grid;
  gap: 8px;
}

.consent-item {
  display: grid;
  grid-template-columns: minmax(100px, 0.5fr) minmax(80px, 0.35fr) minmax(0, 1.5fr);
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #d0d4cf;
  border-left: 4px solid #2f6845;
  border-radius: 5px;
  background: #fafbf9;
  font-size: 0.78rem;
}

.consent-item.withdrawn {
  border-left-color: #a23b34;
}

.consent-item span {
  font-weight: 750;
  text-transform: capitalize;
}

.consent-item small {
  color: #646c66;
  overflow-wrap: anywhere;
}

.work-list {
  display: grid;
  gap: 10px;
}

.work-item {
  padding: 14px;
  border: 1px solid #cdd1cc;
  border-radius: 5px;
  background: #fafbf9;
}

.work-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.work-status {
  padding: 4px 7px;
  border-radius: 3px;
  background: #dcebe0;
  color: #245d39;
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: capitalize;
}

.work-item > p {
  margin: 10px 0;
  color: #4d554f;
  font-size: 0.8rem;
  line-height: 1.45;
}

.work-item dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.work-item dl div {
  min-width: 0;
  padding: 8px 10px;
  background: #eef0ec;
}

.work-item dt {
  color: #6a716c;
  font-size: 0.66rem;
}

.work-item dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: capitalize;
}

.work-result {
  padding-top: 10px;
  border-top: 1px solid #d6d9d4;
}

.work-result span {
  color: #6a716c;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.work-result p {
  margin: 5px 0 0;
  color: #39413b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.plain-list,
.event-list {
  margin: 0;
  padding-left: 20px;
  color: #444c46;
  font-size: 0.78rem;
  line-height: 1.5;
}

.plain-list li,
.event-list li {
  margin-bottom: 6px;
}

.plain-list li.empty,
.event-list li.empty {
  color: #777f79;
}

.step-list {
  display: grid;
  gap: 8px;
}

.step-row {
  display: grid;
  grid-template-columns: 32px minmax(130px, 0.75fr) minmax(110px, 0.45fr) minmax(0, 1.8fr);
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid #d0d4cf;
  border-radius: 5px;
  background: #fafbf9;
  font-size: 0.78rem;
}

.step-index {
  color: #6e756f;
  font-variant-numeric: tabular-nums;
}

.step-decision {
  font-weight: 750;
  color: #2f6845;
}

.step-reason {
  color: #59605b;
  line-height: 1.35;
}

.file-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  padding: 8px 0;
  color: #39403b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.file-list li.empty {
  color: #777f79;
  font-family: inherit;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px 18px;
}

.safety-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #d5d8d3;
  font-size: 0.76rem;
}

.safety-item span:first-child {
  color: #6c736d;
}

.safety-item span:last-child {
  font-weight: 700;
  text-align: right;
}

.error-state {
  margin-top: 22px;
  padding: 16px;
  border-left: 4px solid #a23b34;
  background: #f7e5e3;
  color: #6f2824;
}

.error-state p {
  margin: 5px 0 0;
}

@media (max-width: 760px) {
  .topbar {
    min-height: 78px;
    padding: 14px 18px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .mode-switch {
    order: 3;
    width: 100%;
  }

  h1 {
    font-size: 1.65rem;
  }

  .release-state {
    max-width: 155px;
    text-align: right;
  }

  .dq-now-rail {
    grid-template-columns: 1fr;
    padding: 12px 18px;
  }

  .dq-now-actions {
    justify-content: stretch;
  }

  .dq-now-actions .secondary-button,
  .dq-now-player-link {
    width: 100%;
    justify-content: center;
  }

  .workspace {
    display: block;
  }

  .control-panel {
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid #c8ccc6;
  }

  .workflow-selector {
    grid-template-columns: 1fr;
  }

  .results {
    padding: 22px 18px 40px;
  }

  .handoff-rail-header,
  .handoff-rail-stages,
  .control-layer-strip,
  .strategy-route-actions,
  .handoff-rail-actions {
    grid-template-columns: 1fr;
  }

  .player-table-bridge {
    display: grid;
  }

  .player-table-bridge-link {
    width: 100%;
  }

  .handoff-rail-header {
    display: grid;
  }

  .handoff-rail-header > span {
    max-width: none;
    text-align: left;
  }

  .summary-strip div {
    padding: 12px;
  }

  .circle-summary {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .circle-summary div:nth-child(2) {
    border-right: 0;
  }

  .circle-summary div:nth-child(-n + 2) {
    border-bottom: 1px solid #c8ccc6;
  }

  .step-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .step-decision,
  .step-reason {
    grid-column: 2;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .workbench-result-hero,
  .strategy-next-panel,
  .strategy-trail-header,
  .strategy-trail-list,
  .workbench-route-grid,
  .workbench-apbr-grid,
  .strategy-focus-grid,
  .strategy-three-grid,
  .strategy-path-grid,
  .two-column-section,
  .roster-grid,
  .demo-first-card,
  .demo-home-panel,
  .demo-home-actions,
  .demo-home-status,
  .demo-home-cue,
  .demo-home-guest,
  .demo-health-panel,
  .demo-health-grid,
  .demo-real-card,
  .demo-handoff-driver,
  .demo-driver-actions,
  .demo-rescue-card,
  .demo-ready-summary,
  .demo-family-script,
  .demo-script-steps,
  .demo-watch-panel,
  .demo-watch-grid,
  .demo-after-panel,
  .demo-after-grid,
  .demo-tonight-panel,
  .demo-status-strip,
  .demo-path-panel,
  .demo-room-roles,
  .demo-role-grid,
  .demo-readiness-strip,
  .demo-start-checklist,
  .demo-guide-panel,
  .demo-run-steps,
  .demo-material-grid,
  .demo-chain-strip,
  .demo-loop-map,
  .demo-reaction-strip,
  .demo-observer-panel,
  .demo-observer-grid,
  .demo-observer-actions,
  .demo-movement-panel,
  .demo-craft-handoff,
  .demo-moderator-handoff,
  .demo-survey-handoff,
  .demo-guest-panel,
  .demo-guest-grid,
  .demo-question-grid,
  .demo-success-grid,
  .demo-signal-panel,
  .demo-closeout-grid,
  .demo-parking-grid,
  .demo-recap-grid,
  .demo-card-grid,
  .circles-demo-grid,
  .moderator-path-strip,
  .strategy-source-panel,
  .panel-guest-guide,
  .moderator-demo-grid,
  .moderator-live-helper,
  .moderator-flow-control,
  .moderator-handoff-preview,
  .moderator-handoff-choice,
  .moderator-handoff-choice-actions,
  .moderator-refinement-outcome,
  .moderator-refinement-outcome-actions,
  .moderator-survey-return,
  .moderator-closeout-panel,
  .moderator-closeout-actions,
  .survey-path-strip,
  .survey-claim-strip,
  .survey-claim-checker,
  .survey-return-packet,
  .survey-next-panel,
  .survey-next-actions {
    grid-template-columns: 1fr;
  }

  .demo-chain-strip div {
    border-right: 0;
    border-bottom: 1px solid #d7dad5;
  }

  .demo-chain-strip div:last-child {
    border-bottom: 0;
  }

  .demo-readiness-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #e0e2df;
  }

  .demo-readiness-strip div:last-child {
    border-bottom: 0;
  }

  .demo-checklist-grid {
    grid-template-columns: 1fr;
  }

  .demo-readiness-status {
    justify-self: stretch;
  }

  .demo-guest-output {
    grid-column: 1;
  }

  .demo-guest-choice-output {
    grid-column: 1;
  }

  .demo-safety-stop-output {
    grid-column: 1;
  }

  .demo-run-step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #e0e2df;
  }

  .demo-run-step:last-child {
    border-bottom: 0;
  }

  .demo-run-output {
    grid-template-columns: 1fr;
  }

  .circle-live-panel {
    grid-template-columns: 1fr;
  }

  .demo-guide-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-guide-progress {
    grid-template-columns: repeat(6, 1fr);
  }

  .demo-progress-step {
    width: 100%;
  }

  .demo-guide-detail div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .demo-material-output dl div {
    grid-template-columns: 1fr;
  }

  .demo-hero-panel {
    display: block;
  }

  .demo-hero-panel .authority-badge {
    display: inline-block;
    margin-top: 14px;
  }

  .beat-editor-grid,
  .role-note-grid,
  .beat-workflow-strip,
  .storyboard-workflow-strip,
  .storyboard-decision-panel,
  .notes-editor,
  .notes-workflow-strip,
  .records-workflow-strip,
  .new-correction,
  .new-player-review,
  .session-identity-grid {
    grid-template-columns: 1fr;
  }

  .role-assignments label {
    grid-template-columns: 1fr;
  }

  .beat-field.wide {
    grid-column: auto;
  }

  .consent-item {
    grid-template-columns: 1fr 1fr;
  }

  .consent-item small {
    grid-column: 1 / -1;
  }

  .work-item dl {
    grid-template-columns: 1fr;
  }

  .record-item dl {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }

  .storyboard-card-list {
    grid-template-columns: 1fr;
  }
}

/* --- Batch 6 (D-027): iPad / touch operation pass ------------------------ */

/* iPad-width layout: at portrait-iPad widths the fixed control column left
   too little room for results; narrow it before the 760px phone block. */
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  }

  .control-panel {
    padding: 20px;
  }
}

/* Touch devices (iPad Safari): raise interactive controls to the 44px
   minimum touch target. Desktop pointer layout is unchanged. */
@media (pointer: coarse) {
  .secondary-button,
  .save-button,
  .mode-button,
  .demo-step-button,
  .demo-decision-button,
  .moderator-cue-button,
  .moderator-work-cue-button,
  .survey-sample-button,
  .run-button {
    min-height: 44px;
  }

  .icon-button {
    min-height: 44px;
    width: 44px;
  }

  .approval-confirmation input[type="checkbox"],
  input[type="checkbox"],
  input[type="radio"] {
    width: 22px;
    height: 22px;
  }

  select,
  input[type="text"],
  textarea {
    min-height: 44px;
  }

  /* File-path-only displays are hidden on touch devices: the iPad operator
     has no access to the laptop's filesystem, so a bare path is noise
     (D-027 Batch 6 follow-up: hide file-path-only controls from the normal
     operator path). Paths remain visible on the laptop. */
  .local-file-section,
  .local-file-row {
    display: none;
  }
}

/* --- Batch 2: shared-beat-list project filter ---------------------------- */

.beat-project-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  flex-wrap: wrap;
}

.beat-project-filter-row label {
  font-size: 0.78rem;
  font-weight: 750;
  color: #59615b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#beat-project-filter {
  min-height: 38px;
  padding: 4px 10px;
  border: 1px solid #aeb5af;
  border-radius: 5px;
  background: #ffffff;
  color: #334039;
}

.beat-project-filter-count {
  font-size: 0.78rem;
  color: #59615b;
}

/* Filtered-out beats stay in the DOM (saves must keep every beat); they are
   only hidden from view. */
.beat-editor-item.beat-filtered-out {
  display: none;
}

/* --- D-031: generated candidate preservation ----------------------------- */

.dq-candidate-preservation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.dq-candidate-candidates {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.dq-candidate-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d7dad5;
  border-radius: 5px;
  background: #fbfcfa;
}

.dq-candidate-row-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.dq-candidate-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3a433d;
  font-size: 0.78rem;
  font-weight: 750;
}

.dq-candidate-inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.dq-candidate-confirm {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #b9cbbf;
  border-radius: 5px;
  background: #f3f8f4;
}

@media (max-width: 760px) {
  .dq-current-test-grid,
  .dq-friction-actions,
  .dq-friction-tally-list,
  .dq-candidate-preservation-grid,
  .dq-candidate-row-header {
    grid-template-columns: 1fr;
  }
}
