:root {
  color-scheme: dark;
  --bg: #070d12;
  --surface: #0b1115;
  --surface-2: #121923;
  --line: #33414d;
  --text: #f4f0e8;
  --muted: #c5ccd5;
  --gold: #d0ad68;
  --green: #71826f;
  --blue: #9aa8ba;
  --red: #b73b48;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 0% 9%, rgba(105, 14, 30, 0.5), transparent 28rem),
    radial-gradient(ellipse at 84% 14%, rgba(30, 54, 78, 0.58), transparent 36rem),
    linear-gradient(122deg, #1b070b 0%, #080d11 29%, #071019 72%, #05090c 100%);
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-size: auto, auto, auto;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

button {
  cursor: pointer;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: min(100%, 88rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1rem;
}

.briefing,
.control-room {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

.briefing {
  display: grid;
  grid-template-rows: auto auto auto minmax(12rem, 1fr);
  min-height: calc(100vh - 2rem);
  border: 1px solid rgba(109, 124, 139, 0.36);
  border-radius: 8px;
  background: rgba(8, 13, 17, 0.96);
  overflow: hidden;
}

.plan-mode .briefing {
  grid-template-rows: auto auto auto;
  align-content: start;
  min-height: auto;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(109, 124, 139, 0.28);
  background: rgba(5, 9, 12, 0.86);
}

.brand-lockup {
  display: flex;
  flex: 1 1 34rem;
  align-items: center;
  min-width: 0;
  gap: 1rem;
}

.brand-lockup > div {
  min-width: 0;
}

.brand-lockup picture {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand-mark {
  width: clamp(6.7rem, 11vw, 9.6rem);
  aspect-ratio: 1;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 1rem 1.4rem rgba(0, 0, 0, 0.28));
}

.eyebrow,
label,
small {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  margin-top: 0.25rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.95;
  white-space: nowrap;
}

.environment-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.35rem;
  border: 1px solid rgba(201, 155, 69, 0.68);
  border-radius: 999px;
  background: rgba(122, 47, 32, 0.92);
  color: #fff6dc;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.28rem 0.55rem;
}

.report-env-badge {
  margin: 0 0 0 0.45rem;
  vertical-align: middle;
}

h2 {
  font-size: 0.95rem;
}

.credit-meter {
  display: none;
  align-content: center;
  justify-items: center;
  gap: 0.08rem;
  width: 5.8rem;
  height: 5.8rem;
  border: 1px solid rgba(208, 173, 104, 0.48);
  border-radius: 50%;
  background: rgba(17, 25, 35, 0.86);
}

.credit-meter span {
  color: var(--gold);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.credit-meter small {
  display: block;
  width: 4.2rem;
  min-width: 3.8rem;
  text-align: center;
  line-height: 1.05;
}

.staging-test-pass {
  display: none;
  border: 1px solid rgba(246, 201, 133, 0.6);
  border-radius: 8px;
  background: rgba(122, 47, 32, 0.92);
  color: #fff6dc;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  padding: 0.55rem 0.7rem;
  text-transform: uppercase;
}

.staging-environment .staging-test-pass:not([hidden]) {
  display: inline-flex;
}

.staging-reset-pass {
  background: rgba(17, 25, 35, 0.9);
  color: var(--gold);
}

.entry-panel {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(109, 124, 139, 0.24);
  background: rgba(11, 17, 21, 0.84);
}

.entry-panel h2 {
  margin-top: 0.22rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.entry-panel .scope-note {
  max-width: 58rem;
  margin: 0.58rem 0 0;
  color: rgba(219, 226, 228, 0.74);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

.entry-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.entry-action {
  display: grid;
  align-content: start;
  gap: 0.28rem;
  min-height: 6.3rem;
  border: 1px solid rgba(109, 124, 139, 0.38);
  border-radius: 8px;
  background: rgba(18, 25, 35, 0.92);
  color: var(--text);
  padding: 0.8rem;
  text-align: left;
}

.entry-action strong {
  color: var(--text);
  font-size: 0.95rem;
}

.entry-action span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.entry-action.active {
  border-color: rgba(246, 201, 133, 0.72);
  background: linear-gradient(180deg, rgba(190, 47, 71, 0.92) 0%, rgba(92, 32, 44, 0.94) 100%);
}

.entry-action.active span {
  color: #f4dfc0;
}

.launch-trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(109, 124, 139, 0.24);
  background: rgba(6, 11, 15, 0.7);
}

.launch-trust-strip article {
  min-width: 0;
  border: 1px solid rgba(109, 124, 139, 0.28);
  border-left: 4px solid rgba(183, 59, 72, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(183, 59, 72, 0.12), transparent 42%),
    rgba(18, 25, 35, 0.68);
  padding: 0.85rem;
}

.launch-trust-strip h2 {
  color: #f0b2a8;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.launch-trust-strip p {
  margin: 0.35rem 0 0;
  color: rgba(219, 226, 228, 0.78);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.purchase-panel,
.entitlement-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(109, 124, 139, 0.24);
  background: rgba(8, 13, 17, 0.78);
}

.purchase-panel h2,
.entitlement-panel h2 {
  margin-top: 0.18rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.05;
}

.purchase-panel p,
.entitlement-panel p {
  margin: 0.45rem 0 0;
  color: rgba(219, 226, 228, 0.78);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.5;
}

.purchase-panel .intake-warning,
.entitlement-panel #entitlementSummary {
  color: #f7d99a;
  font-weight: 850;
}

.purchase-panel .intake-warning {
  border: 1px solid rgba(246, 201, 133, 0.42);
  border-left: 4px solid rgba(246, 201, 133, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(246, 201, 133, 0.13), transparent 72%),
    rgba(18, 25, 35, 0.82);
  padding: 0.72rem 0.85rem;
}

.purchase-panel .provider-health {
  border: 1px solid rgba(183, 59, 72, 0.52);
  border-left: 4px solid rgba(183, 59, 72, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(183, 59, 72, 0.16), transparent 72%),
    rgba(18, 25, 35, 0.88);
  color: #ffd8d8;
  padding: 0.72rem 0.85rem;
}

.entitlement-panel #entitlementSummary {
  border: 1px solid rgba(246, 201, 133, 0.42);
  border-left: 4px solid rgba(246, 201, 133, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(246, 201, 133, 0.13), transparent 72%),
    rgba(18, 25, 35, 0.82);
  padding: 0.72rem 0.85rem;
}

.entitlement-panel .access-notice {
  color: rgba(219, 226, 228, 0.82);
  font-size: 0.78rem;
  font-weight: 650;
}

.purchase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.purchase-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-width: 0;
  border: 1px solid rgba(109, 124, 139, 0.34);
  border-radius: 8px;
  background: rgba(18, 25, 35, 0.8);
  padding: 1rem;
}

.purchase-card.featured {
  border-color: rgba(246, 201, 133, 0.54);
  border-left: 4px solid rgba(183, 59, 72, 0.92);
  background:
    linear-gradient(90deg, rgba(183, 59, 72, 0.12), transparent 48%),
    rgba(18, 25, 35, 0.88);
}

.purchase-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.purchase-card strong {
  color: #fff6dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.purchase-card strong small {
  color: var(--gold);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.purchase-card button {
  min-height: 2.5rem;
  border: 1px solid rgba(246, 201, 133, 0.72);
  border-radius: 8px;
  background: linear-gradient(180deg, #be2f47 0%, #8f2436 48%, #5c202c 100%);
  color: #fff5e5;
  font-weight: 900;
}

.purchase-card button:disabled {
  cursor: not-allowed;
  border-color: rgba(109, 124, 139, 0.42);
  background: rgba(80, 88, 98, 0.46);
  color: rgba(219, 226, 228, 0.64);
}

.locked-workspace .profile-strip,
.locked-workspace .plan-intake,
.locked-workspace .ask-box,
.locked-workspace .answer-window,
.locked-workspace .entitlement-panel {
  display: none;
}

.paid-workspace .purchase-panel {
  display: none;
}

.report-only-view .entry-panel,
.report-only-view .launch-trust-strip,
.report-only-view .purchase-panel,
.report-only-view .entitlement-panel,
.report-only-view .profile-strip,
.report-only-view .plan-intake,
.report-only-view .ask-box {
  display: none;
}

.country-status {
  display: block;
  min-height: 1.8rem;
  color: rgba(197, 204, 213, 0.76);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.3;
}

.profile-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(109, 124, 139, 0.24);
  background: rgba(8, 13, 17, 0.76);
}

.profile-strip label,
.ask-box label,
.plan-intake label {
  display: grid;
  align-content: start;
  gap: 0.38rem;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  min-width: 0;
}

.field-label small {
  flex: 0 0 auto;
  color: rgba(197, 204, 213, 0.72);
  font-size: 0.64rem;
  white-space: nowrap;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid rgba(109, 124, 139, 0.34);
  border-radius: 8px;
  background: #070d12;
  color: var(--text);
}

select:invalid,
.field-error {
  border-color: rgba(183, 59, 72, 0.95);
  box-shadow: 0 0 0 2px rgba(183, 59, 72, 0.18);
}

select,
input {
  min-height: 2.4rem;
  padding: 0 0.65rem;
}

.plan-intake {
  padding: 0.7rem 0.8rem 0.55rem;
  border-bottom: 1px solid rgba(109, 124, 139, 0.24);
  background: rgba(7, 12, 16, 0.78);
}

.intake-guidance {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.72rem;
  border: 1px solid rgba(246, 201, 133, 0.32);
  border-left: 4px solid rgba(246, 201, 133, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(246, 201, 133, 0.1), transparent 70%),
    rgba(18, 25, 35, 0.68);
  padding: 0.74rem 0.82rem;
}

.intake-guidance h3 {
  margin: 0;
  color: var(--gold);
  font-size: 0.88rem;
}

.intake-guidance p {
  max-width: 62rem;
  margin: 0;
  color: rgba(219, 226, 228, 0.84);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.42;
}

.plan-inline-compose {
  margin-top: 0.8rem;
  border-top: 1px solid rgba(109, 124, 139, 0.22);
  padding-top: 0.58rem;
}

.intake-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.intake-heading h2 {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.05;
}

.intake-heading p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
}

.intake-heading .scope-note {
  max-width: 56rem;
  color: rgba(219, 226, 228, 0.72);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.35;
}

.intake-heading span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 850;
}

.intake-heading span small {
  margin-left: 0.22rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.intake-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.plan-mode .intake-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.34rem 0.38rem;
}

.plan-mode .plan-intake label .field-label {
  align-items: baseline;
  min-height: 0;
  line-height: 1.15;
}

.intake-group-title {
  display: flex;
  grid-column: 1 / -1;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(109, 124, 139, 0.22);
  margin-top: 0.38rem;
  padding-top: 0.58rem;
}

.intake-group-title:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.intake-group-title h3 {
  margin: 0;
  color: var(--gold);
  font-size: 0.86rem;
  line-height: 1.1;
}

.intake-group-title span {
  color: rgba(197, 204, 213, 0.76);
  font-size: 0.68rem;
  font-weight: 800;
}

.plan-intake textarea {
  min-height: 1.65rem;
  padding: 0.32rem 0.42rem;
  font-size: 0.72rem;
}

.plan-intake label.paraguay-temporary-activity-fields {
  grid-column: 1 / -1;
  grid-template-columns: minmax(16rem, 1fr) minmax(18rem, 2fr);
  align-items: start;
  column-gap: 0.7rem;
}

.plan-intake label.paraguay-temporary-activity-fields .field-label {
  grid-column: 1 / -1;
}

.plan-intake label.paraguay-temporary-activity-fields select {
  grid-column: 1;
}

.plan-intake label.paraguay-temporary-activity-fields .country-status {
  grid-column: 2;
  align-self: center;
  min-height: 0;
}

.plan-intake label.paraguay-family-fields {
  grid-column: span 2;
}

.plan-intake label.paraguay-family-fields .country-status {
  min-height: 0;
}

.plan-mode .plan-intake label.case-notes-field {
  grid-column: span 2;
}

.plan-mode .plan-intake label.case-notes-field textarea {
  min-height: 2.4rem;
  resize: vertical;
}

.answer-window {
  overflow: auto;
  padding: 1.25rem;
}

.plan-mode .answer-window {
  min-height: 12rem;
  padding: 0.9rem 1rem;
}

.message-window-title {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
}

.message {
  max-width: 54rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--line);
  padding: 0.15rem 0 0.15rem 0.85rem;
}

.message.user {
  border-left-color: var(--blue);
}

.message.assistant {
  border-left-color: var(--gold);
}

.message strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.report-only-view .answer-window {
  overflow: visible;
  padding: 1rem 1.25rem 1.75rem;
}

.report-only-view .message-window-title {
  display: none;
}

.report-only-view #conversation {
  display: grid;
  grid-template-columns: minmax(0, 56rem) minmax(17rem, 21rem);
  gap: 1rem;
  align-items: start;
  justify-content: center;
}

.report-only-view .message {
  max-width: none;
  margin-bottom: 0;
}

.report-only-view .paid-report-message {
  grid-column: 1;
  grid-row: 1;
  border-left: 0;
  padding: 0;
}

.report-only-view .paid-report-message > strong {
  display: none;
}

.report-only-view .paid-report-message .plan-report {
  margin: 0;
}

.report-only-view .paid-toolbar-message {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 1rem;
  align-self: start;
  border-left-color: rgba(246, 201, 133, 0.82);
}

.report-only-view .paid-toolbar-message > strong {
  display: none;
}

.report-only-view .paid-toolbar-message .answer-card {
  margin: 0;
}

.message p,
.message ul,
.message ol {
  margin: 0.35rem 0;
  color: #d8dee7;
  line-height: 1.55;
}

.message li {
  margin: 0.28rem 0;
}

.ask-box {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(109, 124, 139, 0.22);
  background: rgba(5, 9, 12, 0.84);
}

.plan-mode .ask-box {
  display: none;
  padding: 0.38rem 0.65rem;
}

.ask-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem;
  gap: 0.75rem;
  align-items: stretch;
}

.plan-mode .ask-row {
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 13rem);
  gap: 0.45rem;
}

.plan-mode .plan-inline-compose .ask-row {
  grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 9rem) minmax(10rem, 13rem);
}

textarea {
  min-height: 4.2rem;
  resize: vertical;
  padding: 0.85rem;
}

.plan-mode .ask-box textarea {
  min-height: 2.15rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
}

.plan-mode .plan-inline-compose textarea {
  min-height: 2rem;
  padding: 0.42rem 0.55rem;
  font-size: 0.82rem;
}

.plan-mode .plan-inline-compose .ask-row button {
  min-height: 2rem;
}

.plan-mode .ask-row button {
  min-height: 2.15rem;
}

.ask-row button,
.pack,
.mode {
  border: 1px solid rgba(109, 124, 139, 0.38);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
}

.ask-row button {
  border-color: rgba(246, 201, 133, 0.72);
  background: linear-gradient(180deg, #be2f47 0%, #8f2436 48%, #5c202c 100%);
  color: #fff5e5;
  box-shadow: inset 0 1px 0 rgba(255, 238, 191, 0.28);
}

.ask-row .reset-intake-button {
  border-color: rgba(109, 124, 139, 0.46);
  background: rgba(11, 16, 20, 0.92);
  color: rgba(236, 230, 217, 0.86);
  box-shadow: none;
}

.paid-result-toolbar {
  border-left-color: rgba(183, 59, 72, 0.92);
}

.paid-result-toolbar button {
  margin-top: 0.55rem;
  border: 1px solid rgba(246, 201, 133, 0.72);
  border-radius: 8px;
  background: linear-gradient(180deg, #be2f47 0%, #8f2436 48%, #5c202c 100%);
  color: #fff5e5;
  font-weight: 900;
  padding: 0.62rem 0.9rem;
}

.paid-country-switcher {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.paid-country-switcher span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.control-room {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.panel {
  border: 1px solid rgba(109, 124, 139, 0.34);
  border-radius: 8px;
  background: rgba(8, 13, 17, 0.94);
  padding: 1rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.price-grid,
.segmented {
  display: grid;
  gap: 0.6rem;
}

.pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  padding: 0 0.85rem;
  text-align: left;
}

.pack strong {
  color: var(--gold);
  font-size: 1.25rem;
}

.pack span {
  color: var(--muted);
}

.pack.featured {
  border-color: rgba(208, 173, 104, 0.7);
}

.fine-print,
.warning-panel p,
.source-panel li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.segmented {
  grid-template-columns: repeat(2, 1fr);
}

.mode {
  min-height: 2.6rem;
}

.mode.active {
  border-color: rgba(246, 201, 133, 0.72);
  background: linear-gradient(180deg, #be2f47 0%, #8f2436 48%, #5c202c 100%);
  color: #fff4dd;
}

.source-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.referral-panel ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.answer-card {
  display: grid;
  gap: 0.65rem;
  max-width: 48rem;
}

.status-card h3 {
  margin: 0;
  color: var(--gold);
}

.plan-report {
  max-width: 58rem;
}

.report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.report-print-tip {
  max-width: 34rem;
  margin: 0 auto 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.report-print-tip strong {
  color: var(--text);
}

.report-actions button {
  min-height: 2.2rem;
  border: 1px solid rgba(109, 124, 139, 0.5);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 0.75rem;
  font-weight: 850;
}

.report-paper {
  display: grid;
  gap: 0.9rem;
  border: 1px solid rgba(201, 155, 69, 0.48);
  border-radius: 8px;
  background: #f2ead5;
  color: #171a12;
  padding: 1.15rem;
}

.report-layout-pilot .report-paper {
  gap: 0.72rem;
  border-color: rgba(110, 87, 48, 0.34);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.62), transparent 14rem),
    repeating-linear-gradient(0deg, rgba(80, 58, 28, 0.035) 0 1px, transparent 1px 5px),
    #f0e4c7;
  box-shadow: 0 1.1rem 2.7rem rgba(0, 0, 0, 0.18);
}

.report-header {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(77, 61, 36, 0.24);
  padding-bottom: 0.9rem;
}

.report-layout-pilot .report-header {
  grid-template-columns: 6.7rem minmax(0, 1fr);
  align-items: center;
  padding-bottom: 0.7rem;
}

.report-header img {
  width: 7rem;
  aspect-ratio: 1;
  object-fit: contain;
}

.report-layout-pilot .report-header img {
  width: 6.35rem;
}

.report-header .eyebrow {
  color: #665b3f;
}

.report-header h2 {
  color: #273019;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1;
}

.report-layout-pilot .report-header h2 {
  font-size: clamp(2.05rem, 4.2vw, 3.35rem);
  line-height: 0.92;
}

.report-header p {
  margin: 0.45rem 0 0;
  color: #3a3a2e;
  line-height: 1.45;
}

.report-header .report-scope-note {
  color: #5f624f;
  font-size: 0.82rem;
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
}

.report-layout-pilot .report-meta {
  gap: 0.45rem;
}

.report-meta div {
  border: 1px solid rgba(92, 76, 44, 0.24);
  border-radius: 8px;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.42);
}

.report-layout-pilot .report-meta div {
  min-height: 4.35rem;
  background: rgba(255, 249, 226, 0.52);
}

.report-meta dt {
  color: #665b3f;
  font-size: 0.72rem;
  font-weight: 850;
}

.report-meta dd {
  margin: 0.2rem 0 0;
  color: #171a12;
  font-weight: 850;
}

.report-client-name {
  line-height: 1.15;
}

.report-client-plus {
  display: block;
  margin-top: 0.16rem;
  color: #6b603f;
  font-size: 0.78rem;
  font-weight: 850;
}

.report-body {
  color: #24271b;
}

.report-brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 0.65rem;
}

.eligibility-card {
  display: grid;
  gap: 0.55rem;
  border: 1px solid rgba(92, 76, 44, 0.26);
  border-left-width: 0.35rem;
  border-radius: 8px;
  padding: 0.8rem;
  background: #fff7e4;
}

.report-layout-pilot .eligibility-card,
.report-layout-pilot .confidence-card,
.report-layout-pilot .report-main-risk,
.report-layout-pilot .report-complexity-card,
.report-layout-pilot .report-next-move {
  background: rgba(255, 249, 226, 0.58);
  border-color: rgba(71, 66, 45, 0.2);
  border-radius: 7px;
}

.eligibility-card.not-viable {
  border-left-color: #963823;
}

.eligibility-card.verify {
  border-left-color: #c99b45;
}

.eligibility-card.viable {
  border-left-color: #6f8e5d;
}

.eligibility-card .eyebrow {
  color: #665b3f;
}

.eligibility-card h3 {
  margin: 0.15rem 0 0;
  color: #273019;
}

.eligibility-card dl {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.eligibility-card div {
  min-width: 0;
}

.eligibility-card dt {
  color: #665b3f;
  font-size: 0.72rem;
  font-weight: 850;
}

.eligibility-card dd {
  margin: 0.12rem 0 0;
  color: #24271b;
  overflow-wrap: anywhere;
}

.eligibility-card dd.assessment-result {
  font-weight: 950;
}

.report-body p,
.report-body ul,
.report-body ol {
  color: #24271b;
}

.report-table-wrap {
  margin: 0.45rem 0 0.75rem;
  overflow-x: auto;
  border: 1px solid rgba(92, 76, 44, 0.24);
  border-radius: 8px;
  background: #fffaf0;
}

.report-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  color: #24271b;
  font-size: 0.92rem;
}

.report-table th,
.report-table td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid rgba(77, 61, 36, 0.14);
  text-align: left;
  vertical-align: top;
}

.report-table th {
  background: rgba(122, 47, 32, 0.1);
  color: #5f271d;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-table tr:last-child td {
  border-bottom: 0;
}

.report-table td:first-child {
  width: 32%;
  color: #665b3f;
  font-weight: 850;
}

.action-checklist {
  display: grid;
  gap: 0.45rem;
  padding-left: 0;
  list-style: none;
}

.action-checklist li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  margin: 0;
  border-bottom: 1px solid rgba(77, 61, 36, 0.14);
  padding: 0.35rem 0;
}

.action-checklist input {
  width: 1rem;
  min-height: 1rem;
  margin-top: 0.18rem;
  accent-color: #7a2f20;
}

.checklist-main {
  display: block;
}

.checklist-detail {
  margin-top: 0.28rem;
  color: #565846;
  font-size: 0.86rem;
  line-height: 1.45;
}

.report-body a,
.eligibility-card a,
.confidence-card a {
  color: #7a2f20;
  overflow-wrap: anywhere;
  text-decoration: underline;
}

.section-your-plan-of-attack,
.section-detailed-step-by-step-checklist {
  break-before: page;
}

.report-body h3,
.report-disclaimer h3 {
  margin: 0.55rem 0 0.25rem;
  color: #7a2f20;
}

.report-notice {
  border: 1px solid rgba(122, 47, 32, 0.34);
  border-left: 0.32rem solid #a96724;
  border-radius: 8px;
  background: rgba(255, 246, 224, 0.82);
  margin: 0.95rem 0 0.85rem;
  padding: 0.82rem 0.92rem;
}

.report-notice h3 {
  margin-top: 0;
}

.report-notice p,
.report-notice ul,
.report-notice ol {
  margin-bottom: 0;
}

.report-disclaimer {
  border-top: 1px solid rgba(77, 61, 36, 0.24);
  padding-top: 0.75rem;
}

.report-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.95rem 0 1.05rem;
}

.report-layout-pilot .report-insight-grid {
  gap: 0.65rem;
  margin: 0;
}

.report-main-risk,
.report-complexity-card {
  display: grid;
  grid-template-columns: minmax(9rem, 0.36fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  border: 1px solid rgba(122, 47, 32, 0.16);
  border-left: 0.22rem solid rgba(122, 47, 32, 0.5);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.62);
  padding: 0.78rem 0.9rem;
}

.report-layout-pilot .report-main-risk,
.report-layout-pilot .report-complexity-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-left-width: 0;
  padding: 0.88rem;
}

.report-layout-pilot .report-insight-card {
  display: flex !important;
  flex-direction: column !important;
}

.report-layout-pilot .report-insight-card > .insight-card-label,
.report-layout-pilot .report-insight-card > p {
  width: 100%;
}

.report-layout-pilot .insight-card-heading {
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: 0.58rem;
}

.report-layout-pilot .report-main-risk p:last-child,
.report-layout-pilot .report-complexity-card p:last-child {
  max-width: 44rem;
}

.report-main-risk .eyebrow,
.report-complexity-card .eyebrow {
  color: #7a2f20;
}

.insight-card-heading {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
}

.insight-card-heading .eyebrow {
  margin: 0;
}

.insight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-height: 1.62rem;
  border: 1px solid rgba(122, 47, 32, 0.34);
  border-radius: 999px;
  background: rgba(246, 238, 214, 0.85);
  color: #7a2f20;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  padding: 0.22rem 0.68rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.report-layout-pilot .insight-badge::before {
  content: "";
  width: 0.43rem;
  height: 0.43rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.88;
}

.report-layout-pilot .insight-badge.tone-green {
  border-color: rgba(54, 95, 53, 0.28);
  background: rgba(81, 121, 80, 0.16);
  color: #365f35;
}

.report-layout-pilot .insight-badge.tone-amber {
  border-color: rgba(128, 88, 24, 0.28);
  background: rgba(188, 135, 42, 0.19);
  color: #805818;
}

.report-layout-pilot .insight-badge.tone-red {
  border-color: rgba(147, 49, 65, 0.28);
  background: rgba(162, 49, 62, 0.14);
  color: #933141;
}

.report-layout-pilot .insight-badge.tone-neutral {
  border-color: rgba(91, 85, 57, 0.24);
  background: rgba(50, 55, 48, 0.12);
  color: #5b5539;
}

.report-main-risk h3,
.report-complexity-card h3 {
  color: #2f3125;
  font-size: 0.98rem;
  margin: 0.16rem 0 0;
}

.report-main-risk p:last-child,
.report-complexity-card p:last-child {
  color: #24271b;
  line-height: 1.45;
  margin: 0;
}

.report-next-move {
  border: 1px solid rgba(122, 47, 32, 0.24);
  border-radius: 8px;
  background: #fff8e8;
  padding: 0.9rem 1rem;
}

.report-layout-pilot .report-next-move {
  padding: 0.85rem;
}

.report-next-move h3 {
  color: #7a2f20;
  margin: 0 0 0.45rem;
}

.report-next-move ol {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.25rem;
}

.report-layout-pilot .report-next-move ol {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  padding-left: 0;
  list-style: none;
  counter-reset: next-step;
}

.report-next-move li {
  color: #24271b;
  line-height: 1.45;
  padding-left: 0.1rem;
}

.report-layout-pilot .report-next-move li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.48rem;
  align-items: start;
  font-size: 0.84rem;
  line-height: 1.36;
  counter-increment: next-step;
}

.report-layout-pilot .report-next-move li::before {
  content: counter(next-step);
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #4b432c;
  color: #fff4d6;
  font-size: 0.76rem;
  font-weight: 900;
}

.report-disclaimer p {
  margin: 0;
  color: #3d4032;
  font-size: 0.86rem;
  line-height: 1.45;
}

.report-footer {
  border-top: 1px solid rgba(77, 61, 36, 0.18);
  color: #3d4032;
  font-size: 0.74rem;
  line-height: 1.35;
  padding-top: 0.55rem;
}

.report-footer p {
  color: #3d4032;
  margin: 0;
}

.report-footer .report-version {
  margin-bottom: 0.24rem;
  color: #665b3f;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0;
}

.confidence-card {
  display: grid;
  gap: 0.55rem;
  border: 1px solid rgba(201, 155, 69, 0.46);
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(32, 39, 25, 0.72);
}

.report-paper .confidence-card {
  background: #fff7e4;
  color: #171a12;
}

.report-layout-pilot .confidence-card {
  align-content: start;
}

.report-paper .confidence-top,
.report-paper .confidence-top strong,
.report-paper .confidence-top span,
.report-paper .confidence-meta span {
  color: #151712;
}

.report-paper .confidence-track {
  background: #d8cbb1;
}

.confidence-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  font-weight: 850;
}

.confidence-track {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 99px;
  background: #0e1210;
}

.confidence-fill {
  height: 100%;
  width: var(--confidence);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
}

.report-layout-pilot .confidence-fill {
  background: linear-gradient(90deg, #4f7a4f 0%, #4f7a4f 72%, #bc872a 92%, rgba(45, 48, 35, 0.45) 100%);
}

.confidence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.confidence-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.confidence-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.report-paper .confidence-note {
  color: #4c4f45;
}

.answer-card h3 {
  margin: 0.45rem 0 0.2rem;
  color: var(--gold);
  font-size: 1rem;
}

.warning-panel {
  border-color: rgba(216, 124, 108, 0.55);
}

@media (max-width: 880px) {
  html,
  body {
    overflow-x: hidden;
  }

  .workspace {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0.65rem;
  }

  .topbar {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .brand-lockup {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .brand-mark {
    width: 5.1rem;
  }

  .briefing {
    min-height: auto;
  }

  .entry-panel,
  .launch-trust-strip,
  .purchase-panel,
  .entitlement-panel,
  .profile-strip,
  .ask-row {
    grid-template-columns: 1fr;
  }

  .entry-panel,
  .launch-trust-strip,
  .purchase-panel,
  .entitlement-panel,
  .profile-strip,
  .plan-intake,
  .ask-box,
  .answer-window,
  .plan-mode .answer-window {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .entry-actions {
    grid-template-columns: 1fr;
  }

  .purchase-grid,
  .segmented {
    grid-template-columns: 1fr;
  }

  .purchase-card,
  .entry-action {
    min-height: 0;
  }

  .intake-heading,
  .intake-group-title,
  .panel-heading {
    display: grid;
    justify-items: start;
    gap: 0.25rem;
  }

  .plan-mode .profile-strip,
  .plan-mode .intake-grid {
    grid-template-columns: 1fr;
  }

  .plan-mode .profile-strip label,
  .plan-mode .plan-intake label {
    min-width: 0;
  }

  .plan-mode .plan-intake {
    padding-top: 0.85rem;
  }

  .plan-mode .intake-grid {
    gap: 0.72rem;
  }

  .plan-mode .intake-guidance {
    margin-bottom: 0.9rem;
  }

  .plan-mode .intake-guidance p {
    font-size: 0.86rem;
  }

  .plan-mode .intake-heading {
    margin-bottom: 0.85rem;
  }

  .plan-mode .intake-heading h2 {
    font-size: 1.28rem;
  }

  .plan-mode .intake-group-title {
    margin-top: 0.45rem;
    padding-top: 0.72rem;
  }

  .plan-mode .intake-group-title span {
    max-width: 100%;
    line-height: 1.35;
  }

  .field-label {
    display: grid;
    gap: 0.15rem;
  }

  .field-label small {
    white-space: normal;
  }

  .plan-intake label.paraguay-temporary-activity-fields,
  .plan-intake label.paraguay-family-fields,
  .plan-intake label.mexico-filing-fields,
  .plan-intake label.mexico-family-fields,
  .plan-intake label.paraguay-temporary-status-fields,
  .plan-intake label.investment-fields,
  .plan-mode .plan-intake label.case-notes-field {
    grid-template-columns: 1fr;
    grid-column: 1;
  }

  .plan-intake label.paraguay-temporary-activity-fields .field-label,
  .plan-intake label.paraguay-temporary-activity-fields select,
  .plan-intake label.paraguay-temporary-activity-fields .country-status,
  .plan-intake label.mexico-filing-fields .field-label,
  .plan-intake label.mexico-filing-fields select,
  .plan-intake label.mexico-filing-fields .country-status,
  .plan-intake label.mexico-family-fields .field-label,
  .plan-intake label.mexico-family-fields select,
  .plan-intake label.mexico-family-fields .country-status,
  .plan-intake label.paraguay-family-fields .field-label,
  .plan-intake label.paraguay-family-fields select,
  .plan-intake label.paraguay-family-fields .country-status,
  .plan-intake label.investment-fields .field-label,
  .plan-intake label.investment-fields select,
  .plan-intake label.investment-fields input,
  .plan-intake label.investment-fields .country-status {
    grid-column: 1;
  }

  .plan-mode .plan-intake select,
  .plan-mode .plan-intake input,
  .plan-mode .plan-intake textarea,
  .plan-mode .profile-strip select {
    min-height: 2.75rem;
    font-size: 1rem;
  }

  .plan-mode .plan-intake textarea {
    min-height: 4.25rem;
    padding: 0.62rem 0.68rem;
  }

  .plan-mode .country-status {
    min-height: 0;
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .plan-mode .plan-inline-compose {
    margin-top: 1rem;
    padding-top: 0.8rem;
  }

  .plan-mode .plan-inline-compose label[for="planQuestion"] {
    margin-bottom: 0.35rem;
  }

  .plan-mode .plan-inline-compose .ask-row {
    grid-template-columns: 1fr;
  }

  .plan-mode .plan-inline-compose .ask-row button {
    min-height: 3rem;
  }

  .report-meta {
    grid-template-columns: 1fr 1fr;
  }

  .report-header,
  .report-layout-pilot .report-header {
    grid-template-columns: 4.2rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .report-header img,
  .report-layout-pilot .report-header img {
    width: 4.2rem;
  }

  .report-layout-pilot .report-header h2 {
    font-size: clamp(1.75rem, 10vw, 2.45rem);
    line-height: 0.98;
  }

  .report-brief-grid,
  .report-insight-grid,
  .report-main-risk,
  .report-complexity-card,
  .report-layout-pilot .report-next-move ol {
    grid-template-columns: 1fr;
  }

  .report-only-view #conversation {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-only-view .paid-report-message,
  .report-only-view .paid-toolbar-message {
    grid-column: 1;
    position: static;
  }

  .report-only-view .paid-report-message {
    grid-row: 1;
  }

  .report-only-view .paid-toolbar-message {
    grid-row: 2;
  }

  .report-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .report-print-tip {
    grid-column: 1 / -1;
  }

  .report-actions button {
    width: 100%;
  }

  .report-paper {
    padding: 0.85rem;
  }

  .answer-card,
  .plan-report,
  .report-paper {
    max-width: 100%;
    min-width: 0;
  }

  .report-table-wrap {
    margin-left: -0.15rem;
    margin-right: -0.15rem;
  }

  .ask-row button {
    min-height: 3rem;
  }
}

@media (max-width: 560px) {
  .workspace {
    padding: 0;
  }

  .briefing {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .brand-mark {
    width: 4.2rem;
  }

  h1 {
    font-size: clamp(1.85rem, 11vw, 3rem);
  }

  .entry-panel h2,
  .purchase-panel h2,
  .entitlement-panel h2 {
    font-size: clamp(1.55rem, 9vw, 2.05rem);
  }

  .staging-environment .staging-test-pass:not([hidden]) {
    width: 100%;
    justify-content: center;
  }

  .purchase-card strong {
    font-size: 1.7rem;
  }

  select,
  input {
    min-height: 2.65rem;
  }

  textarea {
    min-height: 5rem;
  }

  .report-meta,
  .report-layout-pilot .report-meta {
    grid-template-columns: 1fr;
  }

  .report-header,
  .report-layout-pilot .report-header {
    grid-template-columns: 1fr;
  }

  .report-header img,
  .report-layout-pilot .report-header img {
    width: 4.6rem;
  }

  .report-paper {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 0.75rem;
  }

  .report-header p,
  .report-layout-pilot .report-header p {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .report-layout-pilot .report-paper {
    gap: 0.62rem;
  }

  .report-layout-pilot .report-meta div {
    min-height: 0;
  }

  .report-layout-pilot .insight-card-heading {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .confidence-meta {
    display: grid;
  }

  .report-actions {
    grid-template-columns: 1fr;
  }

  .paid-result-toolbar button {
    width: 100%;
  }

  .plan-mode .profile-strip {
    gap: 0.55rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .plan-mode .profile-strip label,
  .plan-mode .plan-intake label {
    gap: 0.42rem;
  }

  .plan-mode .intake-guidance {
    padding: 0.72rem;
  }

  .plan-mode .intake-group-title h3 {
    font-size: 0.95rem;
  }

  .plan-mode .intake-group-title span {
    font-size: 0.72rem;
  }

  .plan-mode .field-label {
    gap: 0.12rem;
    font-size: 0.88rem;
  }

  .plan-mode .field-label small {
    font-size: 0.68rem;
  }
}

@media (max-width: 420px) {
  .entry-panel,
  .launch-trust-strip,
  .purchase-panel,
  .entitlement-panel,
  .profile-strip,
  .plan-intake,
  .ask-box,
  .answer-window,
  .plan-mode .answer-window {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .brand-lockup {
    gap: 0.6rem;
  }

  .brand-mark {
    width: 3.7rem;
  }

  h1 {
    font-size: 1.85rem;
  }

  .entry-panel h2,
  .purchase-panel h2,
  .entitlement-panel h2 {
    font-size: 1.5rem;
  }

  .plan-mode .intake-heading h2 {
    font-size: 1.18rem;
  }

  .plan-mode .intake-guidance p {
    font-size: 0.82rem;
  }

  .plan-mode .plan-intake select,
  .plan-mode .plan-intake input,
  .plan-mode .profile-strip select {
    min-height: 2.85rem;
  }

  .report-layout-pilot .report-header h2 {
    font-size: 1.7rem;
  }

  .report-layout-pilot .report-paper {
    padding: 0.65rem;
  }

  .report-table {
    min-width: 28rem;
  }
}

@media print {
  @page {
    margin: 0.55in;
  }

  html,
  body {
    height: auto;
    overflow: visible;
  }

  body {
    background: #fff;
    color: #111;
  }

  body * {
    visibility: hidden;
  }

  .plan-report,
  .plan-report * {
    visibility: visible;
  }

  .workspace,
  .briefing,
  .answer-window,
  .message,
  .plan-report {
    display: block;
    min-height: 0;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    overflow: visible;
  }

  .plan-report {
    width: 100%;
    max-width: none;
    font-size: 10pt;
  }

  .topbar,
  .launch-trust-strip,
  .profile-strip,
  .plan-intake,
  .ask-box,
  .control-room,
  .message > strong,
  .message.user,
  .report-actions {
    display: none;
  }

  .report-paper {
    position: static;
    inset: auto;
    border: 0;
    border-radius: 0;
    background: #fffdf5;
    color: #111;
    box-shadow: none;
    gap: 0.16in;
    width: 100%;
    max-width: 100%;
    padding: 0.2in;
    overflow: visible;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .report-layout-pilot .report-paper {
    background: #fffdf5;
    box-shadow: none;
  }

  .report-header,
  .report-layout-pilot .report-header {
    display: grid;
    grid-template-columns: 0.82in minmax(0, 1fr);
    gap: 0.16in;
    align-items: center;
    padding-bottom: 0.12in;
  }

  .report-header img,
  .report-layout-pilot .report-header img {
    width: 0.78in;
  }

  .report-header h2,
  .report-layout-pilot .report-header h2 {
    font-size: 26pt;
    line-height: 0.95;
  }

  .report-header p {
    font-size: 10pt;
    line-height: 1.32;
    margin-top: 0.06in;
  }

  .report-header .report-scope-note {
    font-size: 8.5pt;
  }

  .report-meta,
  .report-layout-pilot .report-meta {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.08in;
  }

  .report-meta div,
  .report-layout-pilot .report-meta div {
    min-height: 0;
    padding: 0.08in;
  }

  .report-meta dt,
  .eligibility-card dt {
    font-size: 7.5pt;
  }

  .report-meta dd {
    font-size: 9pt;
    line-height: 1.18;
  }

  .report-brief-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0.1in;
  }

  .report-insight-grid,
  .report-layout-pilot .report-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.1in;
  }

  .report-main-risk,
  .report-complexity-card,
  .report-layout-pilot .report-main-risk,
  .report-layout-pilot .report-complexity-card {
    display: flex;
    flex-direction: column;
    gap: 0.07in;
    padding: 0.1in;
  }

  .report-layout-pilot .report-insight-card {
    display: flex !important;
    flex-direction: column !important;
  }

  .report-layout-pilot .report-insight-card > .insight-card-label,
  .report-layout-pilot .report-insight-card > p {
    width: 100%;
  }

  .insight-card-heading {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: start;
    gap: 0.08in;
  }

  .insight-badge {
    min-height: 0.22in;
    padding: 0.04in 0.12in;
    font-size: 8pt;
  }

  .report-main-risk p:last-child,
  .report-complexity-card p:last-child {
    line-height: 1.28;
  }

  .report-layout-pilot .report-next-move ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.1in;
  }

  .report-body {
    font-size: 10pt;
    padding: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .report-body p,
  .report-body li,
  .report-table {
    font-size: 9.5pt;
    line-height: 1.32;
  }

  .report-body p {
    margin: 0.04in 0 0.12in;
  }

  .report-body h3 {
    font-size: 13pt;
    margin: 0.16in 0 0.06in;
  }

  .eligibility-card,
  .confidence-card,
  .report-brief-grid,
  .report-insight-grid,
  .report-main-risk,
  .report-complexity-card,
  .report-next-move,
  .report-footer,
  .report-table-wrap {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-body h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .report-body li,
  .action-checklist li,
  .report-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-table-wrap {
    overflow: visible;
  }

  .report-table {
    min-width: 0;
  }

  .action-checklist input {
    print-color-adjust: exact;
  }
}
