.dialogue {
  height: 226px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: #78866a #253228;
}
.quote {
  white-space: pre-line;
  line-height: 1.95;
  font-size: calc(13px * var(--text-scale, 1));
}
.speaker {
  position: sticky;
  top: -15px;
  background: #222d26;
  padding: 3px 0;
}
.conversation-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}
.conversation-tools button,
.followups button {
  background: transparent;
  border: 1px solid #536347;
  color: var(--yellow);
  font: inherit;
  font-size: calc(10px * var(--text-scale, 1));
  padding: 7px 10px;
}
.conversation-tools button:hover,
.followups button:hover {
  background: #3b4a32;
}
.followups {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}
.followups:empty {
  margin: 0;
}
.action-grid {
  max-height: 208px;
  overflow-y: auto;
  padding: 1px 4px 4px 1px;
  scrollbar-color: #758365 #273329;
}
.action.test-action {
  border-color: #63765e;
  background: #2e4035;
}
.actions-tabs {
  gap: 16px;
}
.actions-tabs button {
  white-space: nowrap;
}
.paper-tabs button {
  font-size: calc(10px * var(--text-scale, 1));
  padding: 9px 5px;
}
#paper {
  max-height: 620px;
  overflow-y: auto;
  scrollbar-color: #989c7f #dedcc1;
}
.bio-label {
  font-size: calc(10px * var(--text-scale, 1));
  color: #777d63;
  margin-bottom: 4px;
}
.bio-trait {
  font-size: calc(11px * var(--text-scale, 1));
  color: #747a5f;
}
.bio-story {
  white-space: pre-line;
  font-size: calc(12px * var(--text-scale, 1));
  line-height: 1.95;
  margin-top: 18px;
  border-top: 1px dashed #a4ac8f;
  padding-top: 15px;
}
.discipline-card {
  border: 1px solid #74624b;
  background: #302f24;
  padding: 13px;
  margin-top: 20px;
}
#disciplineStatus {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: calc(11px * var(--text-scale, 1));
  color: #c8bd9d;
}
#disciplineStatus strong {
  font: calc(19px * var(--text-scale, 1)) monospace;
}
#disciplineFine {
  font-size: calc(10px * var(--text-scale, 1));
  color: #a79e82;
  margin: 6px 0;
}
.discipline-policy {
  font-size: calc(9px * var(--text-scale, 1));
  color: #aeb299;
  line-height: 1.8;
  border-top: 1px solid #4a4c38;
  padding-top: 9px;
}
#casebookBtn {
  width: 100%;
  background: #3e4531;
  border: 1px solid #737e55;
  color: var(--yellow);
  padding: 9px 4px;
  font-size: calc(10px * var(--text-scale, 1));
}
#casebookBtn:hover {
  background: #56613e;
}
.story-modal {
  width: min(800px, 100%);
  padding: 27px;
}
.story-modal h2 {
  font-size: 23px;
  line-height: 1.65;
}
.scene-strip {
  font-size: calc(10px * var(--text-scale, 1));
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #576548;
}
#outcomeArt,
#dayEndArt,
#ambulanceArt {
  width: 100%;
  height: auto;
  border: 1px solid #6a7456;
  image-rendering: pixelated;
}
.emergency-story-modal {
  border-color: #6d7d78;
  box-shadow:
    0 0 0 1px #b9473b55,
    0 0 42px #31598b22;
}
.emergency-story-modal > .eyebrow {
  color: #e7c981;
}
.emergency-story-modal #ambulanceArt {
  border: 2px solid #76887f;
  background: #18272e;
  box-shadow:
    -4px 0 0 #a33d38,
    4px 0 0 #31588a;
}
.emergency-story-modal .scene-character-legend span {
  padding: 3px 7px;
  background: #1d2b2c;
  border: 1px solid #445d58;
}
.modal .timeline-note {
  font-size: calc(10px * var(--text-scale, 1));
  line-height: 1.75;
  color: #98a88b;
}
.modal .food-expense-note {
  margin: 7px 0 12px;
  padding: 7px 10px;
  color: #efcf91;
  background: #302f27;
  border-left: 3px solid #c08a52;
  font-size: calc(10px * var(--text-scale, 1));
}
.outcome-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.outcome-badges span {
  font-size: calc(10px * var(--text-scale, 1));
  color: #d4daa9;
  border: 1px solid #7c865d;
  padding: 5px 8px;
}
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.report-grid article {
  padding: 14px;
  background: #202d23;
  border-top: 2px solid #a1af7e;
}
.report-grid article small,
.boss-quote small {
  color: var(--yellow);
  font-size: calc(10px * var(--text-scale, 1));
}
.report-grid article p {
  font-size: calc(12px * var(--text-scale, 1));
  white-space: pre-line;
  margin-bottom: 0;
}
.evidence-callout,
.test-disclaimer {
  background: #333d2b;
  border-left: 2px solid var(--yellow);
  padding: 12px 15px;
  font-size: calc(11px * var(--text-scale, 1));
  line-height: 1.9;
  color: #b9c4a2;
  margin-top: 18px;
}
.boss-quote {
  margin-top: 18px;
  padding: 17px;
  background: #332e24;
  border-left: 3px solid #d19d73;
}
.boss-quote p {
  margin-bottom: 0;
  font-size: calc(13px * var(--text-scale, 1));
}
.charge-sheet {
  border: 1px solid #5d6047;
  padding: 13px 17px;
  margin-top: 16px;
  color: #c4c9ad;
  font-size: calc(12px * var(--text-scale, 1));
}
.charge-sheet p,
.charge-sheet ul {
  margin-bottom: 0;
  font-size: calc(11px * var(--text-scale, 1));
}
.sanction-banner {
  margin-top: 18px;
  border: 1px solid #a8815b;
  background: #42382a;
  padding: 13px 17px;
  display: grid;
  gap: 6px;
  color: #d3c9a3;
}
.sanction-banner span {
  font-size: calc(11px * var(--text-scale, 1));
}
.sanction-banner strong {
  color: #e9b38c;
  font-size: calc(17px * var(--text-scale, 1));
  font-weight: 500;
}
.sanction-banner small {
  font-size: calc(10px * var(--text-scale, 1));
  color: #bdac8e;
  line-height: 1.8;
}
.transcript-list article {
  padding: 14px 0;
  border-bottom: 1px solid #526147;
}
.transcript-list small {
  font-size: calc(10px * var(--text-scale, 1));
  color: var(--yellow);
}
.transcript-list p {
  white-space: pre-line;
  margin: 8px 0 0;
}
.case-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.case-list button {
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #687756;
  background: #303f2e;
  padding: 13px;
  color: var(--text);
  font-size: calc(12px * var(--text-scale, 1));
}
.case-list button:hover {
  background: #46583b;
}
.case-list b {
  font-weight: 500;
}
.case-list small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: calc(10px * var(--text-scale, 1));
}
.case-list button > span:last-child {
  font-size: calc(10px * var(--text-scale, 1));
  color: var(--yellow);
  max-width: 140px;
}
.modal-actions .primary small {
  color: #53633d;
}
.modal h2:focus {
  outline: none;
}
.decision-bar {
  position: sticky;
  bottom: 8px;
  z-index: 5;
  background: #30392cf7;
}
@media (max-width: 1150px) and (min-width: 721px) {
  .sidebar {
    grid-template-columns: 1.5fr 1fr;
  }
  .sidebar .queue-panel {
    display: none;
  }
  .discipline-card {
    align-self: start;
    margin-top: 8px;
  }
}
@media (max-width: 720px) {
  .dialogue {
    height: 238px;
  }
  .actions-tabs {
    gap: 19px;
  }
  .actions-tabs button {
    font-size: calc(11px * var(--text-scale, 1));
  }
  .action-grid {
    max-height: 240px;
  }
  .discipline-card {
    margin-top: 0;
  }
  .report-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .story-modal {
    padding: 19px;
  }
  .story-modal h2 {
    font-size: calc(20px * var(--text-scale, 1));
  }
  .scene-strip {
    font-size: calc(8px * var(--text-scale, 1));
  }
  .case-list button {
    align-items: flex-start;
  }
  .case-list button > span:last-child {
    max-width: 90px;
  }
}
.interrupt-notice {
  position: fixed;
  z-index: 35;
  top: 90px;
  right: 24px;
  width: min(350px, calc(100vw - 24px));
  background: #29372c;
  border: 1px solid var(--yellow);
  border-left: 4px solid var(--yellow);
  padding: 15px 17px;
  box-shadow: 0 8px 28px #0007;
}
.interrupt-notice strong {
  display: block;
  color: var(--yellow);
  font-size: calc(13px * var(--text-scale, 1));
}
.interrupt-notice p {
  font-size: calc(11px * var(--text-scale, 1));
  margin: 8px 0;
  line-height: 1.8;
}
.interrupt-notice small {
  color: var(--muted);
  font-size: calc(10px * var(--text-scale, 1));
}
.phone-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.phone-actions button {
  flex: 1;
  padding: 10px;
  background: #45573b;
  color: var(--text);
  border: 1px solid #7c8a65;
}
.phone-actions button:first-child {
  background: var(--yellow);
  color: #263323;
}
.caller-tag {
  color: var(--yellow);
}
.caller-speech {
  padding: 18px;
  background: #17261f;
  border-left: 3px solid var(--yellow);
  line-height: 2;
}
.phone-reaction {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.phone-reaction small {
  color: var(--yellow);
}
@media (max-width: 720px) {
  .interrupt-notice {
    top: 12px;
    right: 12px;
    padding: 12px 14px;
  }
}

.interrupt-pause {
  display: block;
  margin-top: 8px;
  padding: 4px 0;
  background: transparent;
  border: 0;
  color: var(--yellow);
  font-size: calc(10px * var(--text-scale, 1));
}
#theftArt {
  width: 100%;
  height: auto;
  border: 1px solid #6a7456;
  image-rendering: pixelated;
}
.modal .theft-list {
  margin: 8px 0;
  padding-left: 0;
  list-style: none;
  font-size: calc(12px * var(--text-scale, 1));
}

.boss-quote.boss-paper,
.candidate-sheet {
  position: relative;
  color: #333a31;
  background-color: #efe8cf;
  background-image:
    linear-gradient(
      180deg,
      transparent 49.6%,
      rgba(90, 80, 50, 0.1) 50%,
      rgba(255, 255, 255, 0.35) 50.4%,
      transparent 51%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(80, 98, 120, 0.07) 28px
    );
  border: 1px solid #b9b191;
  border-left: 1px solid #b9b191;
  box-shadow:
    1px 1px 0 #d8d0b0,
    7px 8px 0 rgba(8, 14, 10, 0.5);
}
.boss-quote.boss-paper {
  max-width: 640px;
  margin: 20px auto 8px;
  padding: 26px 32px 24px;
  transform: rotate(-0.3deg);
}
.boss-paper:before {
  content: "";
  position: absolute;
  top: -12px;
  right: 34px;
  width: 16px;
  height: 46px;
  border: 3px solid #8d948a;
  border-radius: 9px;
  transform: rotate(8deg);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.boss-paper:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, transparent 50%, #cfc7a6 50%, #b5ad8a);
  box-shadow: -2px -2px 0 rgba(40, 40, 30, 0.12);
}
.paper-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 3px double #4d5646;
}
.paper-org {
  display: block;
  color: #2f4b5e;
  font-size: calc(16px * var(--text-scale, 1));
  font-weight: 700;
}
.paper-org-sub {
  display: block;
  margin-top: 3px;
  color: #6d7461;
  font: calc(8px * var(--text-scale, 1)) monospace;
  letter-spacing: 1px;
}
.paper-stamp {
  flex: none;
  padding: 4px 9px;
  color: #a1443a;
  border: 2px solid #a1443a;
  border-radius: 3px;
  font: 700 calc(9px * var(--text-scale, 1)) monospace;
  letter-spacing: 1.5px;
  transform: rotate(4deg);
  opacity: 0.88;
}
.paper-title {
  margin: 13px 0 10px;
  color: #2f4b5e;
  font-size: calc(18px * var(--text-scale, 1));
  font-weight: 600;
  letter-spacing: 6px;
  text-align: center;
}
.paper-meta {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  padding: 9px 12px;
  background: rgba(190, 180, 140, 0.32);
  border: 1px solid #b0a98a;
}
.paper-meta > div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px;
  font-size: calc(11px * var(--text-scale, 1));
}
.paper-meta span {
  color: #6d7461;
}
.paper-meta b {
  color: #2d3a2f;
  font-weight: 600;
}
.boss-quote.boss-paper small.paper-from {
  display: block;
  margin: 0 0 6px;
  color: #8a4436;
  font: calc(9px * var(--text-scale, 1)) monospace;
  letter-spacing: 0.5px;
}
.boss-quote.boss-paper p {
  margin: 8px 0;
  color: #333a31;
  font-size: calc(13px * var(--text-scale, 1));
  line-height: 1.95;
}
.boss-paper p b {
  color: #20301f;
  background: linear-gradient(transparent 55%, rgba(236, 210, 70, 0.55) 55%);
}
.boss-paper p:last-of-type {
  margin-top: 14px;
  color: #2f4b5e;
  font-style: italic;
  font-weight: 600;
  text-align: right;
}
.boss-paper .onboarding-step-grid,
.boss-paper .security-warning-grid,
.boss-paper .race-rules-grid {
  margin: 12px 0 2px;
}
.boss-paper .onboarding-step-grid span,
.boss-paper .security-warning-grid span,
.boss-paper .race-rules-grid span {
  background: rgba(255, 252, 235, 0.6);
  border: 1px dashed #8d9078;
}
.boss-paper .onboarding-step-grid i {
  color: #a1443a;
}
.boss-paper .onboarding-step-grid b,
.boss-paper .security-warning-grid b,
.boss-paper .race-rules-grid b {
  color: #2f4b5e;
}
.boss-paper .onboarding-step-grid small,
.boss-paper .security-warning-grid small,
.boss-paper .race-rules-grid small {
  color: #5c6452;
}
.boss-paper .paper-checklist-title {
  margin: 14px 0 0;
  color: #6d7461;
  font: calc(8px * var(--text-scale, 1)) monospace;
  letter-spacing: 2px;
}

.comparison-modal .comparison-grid {
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 18px 16px;
  padding: 10px 4px 14px;
}
.candidate-sheet.comparison-card {
  padding: 16px 15px 13px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.candidate-sheet.comparison-card:nth-child(3n + 1) {
  transform: rotate(-0.9deg);
}
.candidate-sheet.comparison-card:nth-child(3n + 2) {
  transform: rotate(0.6deg);
}
.candidate-sheet.comparison-card:nth-child(3n) {
  transform: rotate(-0.3deg);
}
.candidate-sheet.comparison-card:hover {
  transform: rotate(0) translateY(-2px);
}
.candidate-sheet.comparison-card.selected {
  border-color: #6f8a52;
  box-shadow:
    1px 1px 0 #d8d0b0,
    0 0 0 3px #7f9a5f,
    7px 8px 0 rgba(8, 14, 10, 0.5);
}
.candidate-sheet:before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 46px;
  height: 14px;
  margin-left: -23px;
  background: rgba(170, 176, 150, 0.7);
  border: 1px solid rgba(110, 118, 92, 0.5);
  transform: rotate(-2deg);
}
.sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 5px;
  border-bottom: 3px double #4d5646;
  color: #2f4b5e;
  font: 700 calc(9px * var(--text-scale, 1)) monospace;
  letter-spacing: 1px;
  white-space: nowrap;
}
.sheet-top span {
  color: #6d7461;
  font-weight: 400;
}
.candidate-sheet .sheet-id {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  align-items: center;
  margin: 11px 0 8px;
}
.candidate-sheet .sheet-photo {
  width: 62px;
  height: 74px;
  background: #a5ac90;
  border: 3px solid #fffdf0;
  outline: 1px solid #9c9578;
  image-rendering: pixelated;
}
.candidate-sheet .sheet-id small {
  display: block;
  color: #8a4436;
  font: calc(8px * var(--text-scale, 1)) monospace;
  letter-spacing: 1px;
}
.candidate-sheet h3 {
  margin: 3px 0 4px;
  color: #26332a;
  font-size: calc(14px * var(--text-scale, 1));
  line-height: 1.4;
}
.candidate-sheet .sheet-job {
  color: #5c6452;
  font-size: calc(10px * var(--text-scale, 1));
}
.candidate-sheet .sheet-state {
  position: absolute;
  top: 50px;
  right: 6px;
  padding: 2px 6px;
  color: #6b705e;
  border: 2px dashed #9c9578;
  border-radius: 3px;
  font: 700 calc(9px * var(--text-scale, 1)) monospace;
  letter-spacing: 1px;
  transform: rotate(7deg);
}
.candidate-sheet.selected .sheet-state {
  color: #3e7a3a;
  border: 2px solid #3e7a3a;
  background: rgba(240, 250, 225, 0.6);
}
.candidate-sheet .comparison-facts {
  gap: 0;
  margin: 8px 0;
  border: 1px solid #b0a98a;
}
.candidate-sheet .comparison-facts span {
  padding: 5px 7px;
  color: #6d7461;
  background: rgba(255, 252, 235, 0.5);
  border: 0;
  border-bottom: 1px dotted #b0a98a;
  font-size: calc(9px * var(--text-scale, 1));
}
.candidate-sheet .comparison-facts span:nth-child(odd) {
  border-right: 1px dotted #b0a98a;
}
.candidate-sheet .comparison-facts b {
  color: #26332a;
  font-size: calc(11px * var(--text-scale, 1));
}
.candidate-sheet .employment-summary span,
.comparison-document-grid .employment-summary span {
  color: #4f5a45;
  background: rgba(190, 180, 140, 0.35);
  border-color: #a9a283;
}
.candidate-sheet .employment-entry,
.comparison-document-grid .employment-entry {
  background: rgba(255, 252, 235, 0.55);
  border-color: #a9a283;
}
.candidate-sheet .employment-entry b,
.candidate-sheet .employment-entry span,
.comparison-document-grid .employment-entry b,
.comparison-document-grid .employment-entry span {
  color: #2d3a2f;
}
.candidate-sheet .employment-entry p,
.comparison-document-grid .employment-entry p {
  color: #4f5a45;
}
.candidate-sheet .employment-entry small,
.comparison-document-grid .employment-entry small {
  color: #6d7461;
}
.candidate-sheet .comparison-actions button {
  color: #2f4b5e;
  background: #e0d8b8;
  border: 1px solid #9c9578;
}
.candidate-sheet .comparison-actions .primary {
  color: #f6f1d8;
  background: #3f6a52;
  border-color: #2c4a3a;
}
.candidate-sheet .comparison-actions button:hover {
  filter: brightness(1.07);
}
.comparison-document-grid section {
  color: #333a31;
  background: #efe8cf;
  border: 1px solid #b9b191;
  box-shadow: 4px 5px 0 rgba(8, 14, 10, 0.45);
}
.comparison-document-grid h3 {
  color: #2f4b5e;
  border-bottom: 2px double #4d5646;
  padding-bottom: 4px;
}
@media (max-width: 620px) {
  .boss-quote.boss-paper {
    padding: 22px 16px 18px;
    transform: none;
  }
  .candidate-sheet.comparison-card {
    transform: none !important;
  }
}
