.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-error {
  color: #ffa2a2;
  font-size: 13px;
  margin-top: 15px;
}
.form-error:empty {
  display: none;
}
[aria-invalid="true"] {
  border-color: #ff7d7d;
}
.draft-status {
  font-size: 12px;
  color: #8b9b8e;
}
.console-context {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.console-context h2 {
  font-size: 23px;
}
.recent-list {
  display: grid;
  gap: 10px;
}
.draft-row {
  border-color: #765337;
}
.car-map {
  position: relative;
  width: 160px;
  height: 250px;
  margin: 23px auto 10px;
}
.car-map > svg {
  width: 160px;
  height: 230px;
  position: absolute;
  top: 20px;
  left: 0;
}
.front-label {
  position: absolute;
  top: 0;
  width: 100%;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #9aa6b1;
}
.wheel {
  position: absolute;
  width: 38px;
  height: 53px;
  border: 1px solid #515d68;
  border-radius: 6px;
  background: #161a1f;
  font-size: 12px;
  font-weight: 600;
  color: #9ea7b1;
  z-index: 1;
}
.wheel.active {
  background: #ff7a1a;
  color: #17130f;
  border-color: #ff7a1a;
  box-shadow: 0 0 0 5px #ff7a1a14;
}
.wheel.lf {
  left: 13px;
  top: 62px;
}
.wheel.rf {
  right: 13px;
  top: 62px;
}
.wheel.lr {
  left: 13px;
  top: 167px;
}
.wheel.rr {
  right: 13px;
  top: 167px;
}
.car-map > svg {
  pointer-events: none;
}
.step-panel {
  align-self: start;
  position: sticky;
  top: 22px;
}
.review-fields {
  margin-bottom: 25px;
}
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.corner-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px;
  background: #16191d;
}
.corner-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.corner-card h3 {
  font-size: 15px;
}
.corner-card-head .btn {
  padding: 0;
  min-height: 25px;
}
.corner-card-head .pill {
  font-size: 10px;
}
.setup-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
}
.setup-line span {
  color: #8e98a4;
}
.setup-line b {
  font-weight: 500;
}
.corner-card > small {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 11px;
}
.shared-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 17px;
  background: #121519;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.shared-summary > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.shared-summary span {
  font-size: 11px;
  color: var(--dim);
}
.shared-summary b {
  font-size: 13px;
  font-weight: 500;
}
.review-note {
  font-size: 14px;
  white-space: pre-wrap;
  margin-top: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.setup-modal {
  width: 740px;
  max-height: 90vh;
  overflow: auto;
}
.modal-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.modal-title h2 {
  font-size: 19px;
  margin-top: 5px;
}
.setup-modal .shared-summary {
  margin-top: 15px;
}
.intake-secondary {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}
.source-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 25px;
}
.source-preview {
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.source-preview img {
  max-width: 100%;
  max-height: 620px;
  object-fit: contain;
}
.source-preview object {
  width: 100%;
  height: 610px;
  border: 0;
}
.source-file {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 22px;
}
.source-file svg {
  color: var(--accent);
}
.source-file h2 {
  overflow-wrap: anywhere;
}
.source-controls {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.source-controls > .pill {
  align-self: flex-start;
}
.source-controls h2 {
  font-size: 25px;
}
.source-controls .notice {
  margin-bottom: 0;
}
.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 23px;
}
.chat-panel {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  max-height: 760px;
}
.chat-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.chat-top > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-top svg {
  color: var(--accent);
}
.messages {
  flex: 1;
  overflow: auto;
  padding: 25px;
  min-height: 320px;
}
.message {
  font-size: 15px;
  margin-bottom: 23px;
  max-width: 94%;
  line-height: 1.65;
}
.message-label {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
  margin-bottom: 9px;
}
.message.user {
  margin-left: 30px;
  background: var(--panel2);
  padding: 15px 20px;
  border-radius: 10px;
}
.message.user .message-label {
  color: #a5b1bf;
}
.message p {
  white-space: normal;
}
.message-secondary {
  font-size: 13px;
  color: var(--dim);
  margin-top: 10px;
}
.prompt-choices {
  display: grid;
  gap: 9px;
  margin-top: 25px;
  max-width: 375px;
}
.prompt-choices button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  border: 1px solid #3e4650;
  border-radius: 7px;
  background: transparent;
  padding: 12px 14px;
  font-size: 13px;
}
.prompt-choices button:hover {
  border-color: var(--accent);
  background: #ff7a1a08;
}
.chat-compose {
  margin: 0 20px;
  display: flex;
  border: 1px solid #535a64;
  border-radius: 9px;
  background: #14171b;
  padding: 10px;
  gap: 10px;
  align-items: flex-end;
}
.chat-compose textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  resize: none;
  color: var(--text);
  padding: 4px;
  font: inherit;
  font-size: 14px;
  outline: 0;
}
.chat-compose:focus-within {
  border-color: var(--accent);
}
.chat-compose .btn {
  padding: 9px;
  min-height: 40px;
}
.chat-foot {
  font-size: 11px;
  color: #7f8a96;
  margin: 10px 20px 17px;
}
.ai-layout > .stack {
  align-content: start;
}
.ai-layout .section-heading {
  margin: 0 0 14px;
}
.ai-values {
  margin: 22px 0;
}
.ai-values > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.ai-values span {
  color: var(--dim);
}
.ai-values b {
  font-size: 13px;
  font-weight: 500;
}
.ai-context > .btn {
  width: 100%;
}
.note-entry {
  border-left: 2px solid #a75e27;
  padding-left: 12px;
  margin: 20px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.note-entry > b {
  font-size: 12px;
  color: #ffc08e;
  font-weight: 500;
}
.note-entry p {
  margin: 7px 0;
  color: #c0c6cd;
  white-space: pre-wrap;
}
.note-entry small {
  color: var(--dim);
  font-size: 11px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 22px 0;
  font-size: 14px;
}
.checkbox-label input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.recap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
  gap: 25px;
}
.recap-fields {
  margin-top: 27px;
}
.recap-fields fieldset {
  margin: 0 0 27px;
  padding: 0;
  border: 0;
}
.recap-fields legend {
  font-size: 14px;
  margin-bottom: 12px;
  color: #b4bdc7;
}
.segmented {
  display: flex;
  padding: 4px;
  border: 1px solid #3a424b;
  background: #121519;
  border-radius: 8px;
}
.segmented > button {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 11px;
  color: var(--dim);
  border-radius: 5px;
  font-size: 14px;
}
.segmented > button.selected {
  background: #30343a;
  color: var(--text);
}
.audience-options {
  display: grid;
  gap: 12px;
}
.audience-choice {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #3b444e;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}
.audience-choice.selected {
  border-color: #b86a31;
  background: #ff7a1a09;
}
.radio-dot {
  width: 17px;
  height: 17px;
  border: 1px solid #788491;
  border-radius: 50%;
  flex-shrink: 0;
}
.selected .radio-dot {
  border: 5px solid var(--accent);
}
.audience-choice b {
  font-size: 14px;
  font-weight: 500;
  display: block;
}
.audience-choice small {
  display: block;
  font-size: 12px;
  color: var(--dim);
  margin-top: 4px;
}
.recap-outline {
  align-self: start;
}
.recap-outline h2 {
  font-size: 24px;
  margin: 8px 0;
}
.outline-item {
  display: flex;
  gap: 18px;
  padding-top: 23px;
  margin-top: 23px;
  border-top: 1px solid var(--line);
}
.outline-item > span {
  color: var(--accent);
  font-size: 13px;
}
.outline-item b {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.outline-item small {
  display: block;
  color: var(--dim);
  font-size: 12px;
  margin-top: 4px;
}
.report {
  background: #fff;
  color: #242a30;
  max-width: 820px;
  margin: 0 auto;
  padding: 50px 58px;
  border-radius: 3px;
  box-shadow: 0 10px 50px #0004;
  font-size: 14px;
}
.report-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #f47c29;
  padding-bottom: 20px;
  margin-bottom: 30px;
}
.report-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.07em;
}
.report-brand span {
  color: #ca6218;
}
.report-top > span {
  font-size: 11px;
  letter-spacing: 0.13em;
  color: #6f7982;
}
.report-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #a95215;
  font-weight: 600;
  margin-bottom: 10px;
}
.report > h2 {
  font:
    600 37px "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: 0.02em;
}
.report-subtitle {
  color: #67717a;
  margin-top: 5px;
}
.report-meta {
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 30px 0 20px;
}
.report-meta > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.report-meta span {
  font-size: 10px;
  color: #747d85;
  letter-spacing: 0.1em;
}
.report-meta b {
  font-size: 12px;
}
.report-demo {
  background: #f5f6f7;
  padding: 10px 12px;
  color: #646b73;
  font-size: 10px;
  border: 1px solid #e3e6e8;
}
.report-section {
  margin-top: 30px;
  break-inside: avoid;
}
.report-section h3 {
  font-size: 16px;
  border-bottom: 1px solid #e4e6e8;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.report-section h3 > span {
  color: #ba6529;
  font-size: 12px;
  padding-right: 8px;
  font-weight: 500;
}
.report-editable {
  white-space: pre-wrap;
  min-height: 70px;
  padding: 10px;
  margin: -10px;
  line-height: 1.7;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.report-editable:hover {
  background: #faf7f3;
}
.report-editable:focus {
  background: #fff9f1;
  outline: 1px solid #ec9853;
}
.report-record {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  border-bottom: 1px solid #ebedef;
  padding: 12px 0;
  font-size: 12px;
}
.report-record b {
  font-weight: 500;
}
.report-record span {
  color: #727b83;
}
.report-footnote {
  font-size: 10px;
  color: #7a8086;
  margin-top: 12px;
}
.report-footer {
  border-top: 1px solid #dce0e3;
  padding-top: 14px;
  margin-top: 35px;
  color: #7c838a;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
}
.report-appendix {
  margin-top: 35px;
  padding-top: 30px;
  border-top: 2px solid #e47b2c;
}
.report-appendix > p {
  font-size: 12px;
  color: #707780;
  margin: 5px 0 20px;
}
.report .corner-card {
  background: white;
  border-color: #d9dee2;
  color: #20272e;
}
.report .corner-card .pill {
  color: #676f77;
  border-color: #ccc;
}
.report .setup-line span {
  color: #6a737c;
}
.report .muted {
  color: #808a94;
}
.report .corner-card > small {
  border-color: #dfe2e5;
  color: #7c868e;
}
.report .shared-summary {
  background: #f7f8f9;
  border-color: #dfe3e7;
  margin-top: 17px;
}
.report .shared-summary span {
  color: #707c87;
}
.sign-button {
  position: absolute;
  right: 35px;
  top: 10px;
  background: transparent;
  border: 1px solid #515861;
  border-radius: 4px;
  font-size: 12px;
  color: #ccc;
  padding: 2px 5px;
  min-height: 28px;
}
.field-with-unit:has(.sign-button) input {
  padding-right: 85px;
}
@media (max-width: 1050px) {
  .ai-layout {
    grid-template-columns: minmax(0, 1fr) 275px;
  }
  .ai-layout .panel:not(.chat-panel) {
    padding: 19px;
  }
  .flow-layout {
    grid-template-columns: 235px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .ai-layout {
    grid-template-columns: 1fr;
  }
  .ai-layout > .stack {
    grid-template-columns: 1fr 1fr;
  }
  .source-layout,
  .recap-layout {
    grid-template-columns: 1fr;
  }
  .source-preview {
    min-height: 280px;
  }
  .source-preview object {
    height: 420px;
  }
  .report {
    padding: 30px;
  }
  .flow-layout {
    grid-template-columns: 1fr;
  }
  .step-panel {
    position: static;
  }
  .car-map {
    display: none;
  }
  .corner-rail {
    display: flex;
    overflow: auto;
  }
  .corner-step {
    white-space: nowrap;
  }
  .step-panel > .step-info {
    display: none;
  }
  .step-panel > .progress-track {
    margin: 10px 0 0;
  }
  .step-panel > h3 {
    font-size: 13px;
  }
}
@media (max-width: 680px) {
  .console-context {
    grid-column: span 1;
  }
  .entry-panel {
    padding: 20px 16px;
  }
  .step-actions {
    position: sticky;
    bottom: 0;
    background: var(--panel);
    padding: 16px 0 5px;
    z-index: 2;
  }
  .draft-status {
    display: none;
  }
  .setup-grid {
    gap: 9px;
  }
  .corner-card {
    padding: 11px;
  }
  .corner-card h3 {
    font-size: 13px;
  }
  .setup-line {
    font-size: 11px;
    gap: 4px;
  }
  .corner-card > small {
    font-size: 10px;
  }
  .shared-summary {
    gap: 14px 8px;
    padding: 13px;
  }
  .shared-summary b {
    font-size: 12px;
  }
  .ai-layout > .stack {
    grid-template-columns: 1fr;
  }
  .messages {
    padding: 20px;
    min-height: 250px;
  }
  .chat-panel {
    min-height: 540px;
  }
  .chat-top {
    padding: 16px;
    font-size: 13px;
  }
  .chat-top .pill {
    font-size: 10px;
  }
  .message {
    font-size: 14px;
    max-width: 100%;
  }
  .prompt-choices button {
    font-size: 13px;
  }
  .recap-layout .panel {
    padding: 20px;
  }
  .report {
    padding: 25px 20px;
  }
  .report-top {
    gap: 10px;
  }
  .report-brand {
    font-size: 14px;
  }
  .report-top > span {
    font-size: 9px;
  }
  .report-meta {
    flex-wrap: wrap;
    gap: 15px;
  }
  .report > h2 {
    font-size: 30px;
  }
  .report-record {
    flex-direction: column;
    gap: 4px;
  }
  .report-section h3 {
    font-size: 14px;
  }
  .view-head:has([data-action="print"]) {
    flex-direction: column;
  }
  .source-file h2 {
    font-size: 18px;
  }
  .source-preview object {
    height: 340px;
  }
  .sign-button {
    right: 31px;
  }
  .intake-secondary {
    align-items: flex-start;
    flex-direction: column;
  }
  dialog .field-grid {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 22px;
  }
  .setup-modal {
    padding: 16px;
  }
  .setup-modal .buttons {
    flex-wrap: wrap;
  }
  .review-fields {
    grid-template-columns: 1fr;
  }
}
@media print {
  @page {
    size: letter;
    margin: 15mm;
  }
  body {
    background: #fff !important;
    color: #222 !important;
    font-size: 11pt;
  }
  .masthead,
  .site-footer,
  .breadcrumb,
  .view-head,
  .notice,
  #toast,
  dialog {
    display: none !important;
  }
  .shell {
    padding: 0;
    max-width: none;
    min-height: 0;
  }
  .report {
    box-shadow: none;
    padding: 0;
    max-width: none;
    margin: 0;
    border-radius: 0;
  }
  .report-editable {
    outline: 0 !important;
    background: none !important;
    padding: 0;
    margin: 0;
  }
  .report-top {
    margin-bottom: 20px;
  }
  .report-appendix {
    break-before: page;
    border-top: none;
    padding-top: 0;
  }
  .report .corner-card {
    break-inside: avoid;
  }
  .report-section {
    break-inside: avoid;
  }
  .report-demo {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .report .shared-summary {
    break-inside: avoid;
  }
  .report-footer {
    margin-top: 20px;
  }
  .report-appendix .corner-card > small {
    font-size: 9px;
  }
  .report .setup-line {
    font-size: 11px;
  }
}

.field > label:first-child {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #b8bfc7;
}
@media (max-width: 680px) {
  .field > label:first-child {
    font-size: 13px;
  }
}
