:root {
  --cxrv-blue: var(--tgpcb-ui-blue, #0b5ea8);
  --cxrv-navy: var(--tgpcb-ui-navy, #082f52);
  --cxrv-ink: var(--tgpcb-ui-ink, #17283d);
  --cxrv-muted: var(--tgpcb-ui-muted, #617287);
  --cxrv-line: var(--tgpcb-ui-line, #d9e3ef);
  --cxrv-canvas: var(--tgpcb-ui-canvas, #f3f7fb);
  --cxrv-success: var(--tgpcb-ui-success, #187346);
  --cxrv-warning: var(--tgpcb-ui-warning, #8b5200);
  --cxrv-danger: var(--tgpcb-ui-danger, #b42318);
  --cxrv-radius: var(--tgpcb-ui-radius, 14px);
  --cxrv-shadow: var(--tgpcb-ui-shadow, 0 10px 30px rgba(18, 53, 89, .07));
}

.cxrv-shell {
  width: min(1480px, calc(100% - 32px)); max-width: none;
  margin: 18px auto 60px; color: var(--cxrv-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.cxrv-shell * { box-sizing: border-box; }
.cxrv-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px;
  color: white; border-radius: 16px; background: linear-gradient(135deg, #052c58, #0754a6 68%, #0a6ed2);
  box-shadow: 0 10px 30px rgba(9, 47, 87, .1);
}
.cxrv-hero span { font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.cxrv-hero h1 { margin: 4px 0; font-size: clamp(23px, 3vw, 32px); line-height: 1.1; }
.cxrv-hero p { margin: 0; color: #dbeeff; }
.cxrv-button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 42px; border: 0; border-radius: 10px;
  padding: 10px 15px; color: white; background: var(--cxrv-blue); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
}
.cxrv-button--quiet { border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); }
.cxrv-button--analytics { color: var(--cxrv-navy); background: white; }
.cxrv-button--secondary { color: var(--cxrv-blue); border: 1px solid #bcd1e5; background: white; }
.cxrv-button--warning { color: #5f3800; background: #ffd77f; }
.cxrv-button--success { background: var(--cxrv-success); }
.cxrv-button--small { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.cxrv-hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.cxrv-tabs {
  display: flex; gap: 7px; overflow-x: auto; margin: 18px 0; padding: 7px; border: 1px solid var(--cxrv-line);
  border-radius: 13px; background: white;
}
.cxrv-tabs a { padding: 10px 14px; color: var(--cxrv-muted); border-radius: 9px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.cxrv-tabs a.is-active { color: white; background: var(--cxrv-blue); }
.cxrv-panel {
  padding: 24px; border: 1px solid var(--cxrv-line); border-radius: var(--cxrv-radius); background: white;
  box-shadow: var(--cxrv-shadow);
}
.cxrv-panel-head, .cxrv-detail-head, .cxrv-action-card {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
}
.cxrv-panel-head h2, .cxrv-detail-head h2, .cxrv-action-card h2 { margin: 0; color: var(--cxrv-navy); }
.cxrv-panel-head p, .cxrv-detail-head p, .cxrv-action-card p { margin: 5px 0 0; color: var(--cxrv-muted); }
.cxrv-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.cxrv-stat { min-width: 0; padding: 16px; border: 1px solid var(--cxrv-line); border-radius: 13px; background: white; }
.cxrv-stat span, .cxrv-ack span { display: block; color: var(--cxrv-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.cxrv-stat strong { display: block; margin-top: 5px; color: var(--cxrv-navy); overflow-wrap: anywhere; }
.cxrv-alert { margin: 16px 0; padding: 14px 16px; border-radius: 12px; background: #eef6ff; border: 1px solid #bdd9f5; }
.cxrv-alert--success { color: #145d3a; background: #eaf8f0; border-color: #a9ddbf; }
.cxrv-alert--warning { color: #6b3d00; background: #fff6dc; border-color: #e8c878; }
.cxrv-alert--error { color: #842017; background: #fff0ef; border-color: #ebbbb7; }
.cxrv-alert p { margin: 6px 0; }
.cxrv-alert a { color: inherit; font-weight: 900; }
.cxrv-action-card { margin-top: 18px; padding: 20px; border: 1px solid var(--cxrv-line); border-radius: 15px; background: white; }
.cxrv-status { display: inline-block; max-width: 220px; padding: 5px 9px; border-radius: 999px; color: #31506e; background: #eaf1f7; font-size: 11px; font-weight: 900; overflow-wrap: anywhere; }
.cxrv-status--submitted, .cxrv-status--resubmitted { color: #0754a6; background: #e7f2ff; }
.cxrv-status--under-ro-review { color: #5d4200; background: #fff4cf; }
.cxrv-status--clarification-required { color: #8a4200; background: #ffe8c5; }
.cxrv-status--ro-verified, .cxrv-status--state-reviewed { color: #14603b; background: #e5f6ed; }
.cxrv-filters { display: grid; grid-template-columns: minmax(240px,1fr) 240px auto; gap: 10px; margin: 18px 0; }
.cxrv-filters input, .cxrv-filters select, .cxrv-inline-form select, .cxrv-inline-form textarea,
.cxrv-review-form textarea {
  width: 100%; min-height: 42px; border: 1px solid #c6d5e4; border-radius: 9px; padding: 9px 11px; font: inherit; background: white;
}
.cxrv-table-wrap { max-width: 100%; overflow: auto; margin-top: 15px; border: 1px solid var(--cxrv-line); border-radius: 12px; }
.cxrv-table { width: 100%; border-collapse: collapse; min-width: 840px; }
.cxrv-table th, .cxrv-table td { padding: 12px; border-bottom: 1px solid #e5ebf2; text-align: left; vertical-align: top; font-size: 13px; }
.cxrv-table th { color: #40546c; background: #f4f8fc; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.cxrv-table td small { display: block; margin-top: 4px; color: var(--cxrv-muted); }
.cxrv-table--compact { min-width: 650px; }
.cxrv-table--compact th, .cxrv-table--compact td { padding: 8px; font-size: 12px; }

.cxrv-readonly-dl { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 6px 16px; margin: 10px 0; padding: 12px 0; border-top: 1px solid #e5ebf2; }
.cxrv-readonly-dl dt { font-weight: 600; color: #40546c; font-size: 12.5px; }
.cxrv-readonly-dl dd { margin: 0; font-size: 13px; word-break: break-word; }
.cxrv-readonly-dl dd .cxrv-readonly-dl { grid-column: 1 / -1; border-top: none; padding: 4px 0 0 16px; }
.cxrv-link, .cxrv-back { color: var(--cxrv-blue); font-weight: 900; text-decoration: none; white-space: nowrap; }
.cxrv-back { display: inline-block; margin-bottom: 16px; }
.cxrv-pagination { display: flex; justify-content: center; gap: 16px; margin-top: 17px; }
.cxrv-pagination a { color: var(--cxrv-blue); font-weight: 800; text-decoration: none; }
.cxrv-ack { max-width: 390px; padding: 14px; border: 1px solid var(--cxrv-line); border-radius: 12px; background: #f7fbff; }
.cxrv-ack strong, .cxrv-ack small { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.cxrv-integrity { display: grid; gap: 4px; margin: 18px 0; padding: 13px 15px; border-left: 4px solid var(--cxrv-blue); background: #eef6ff; }
.cxrv-integrity code { font-size: 11px; overflow-wrap: anywhere; }
.cxrv-review-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin: 18px 0; }
.cxrv-review-form, .cxrv-simple-action { padding: 15px; border: 1px solid var(--cxrv-line); border-radius: 12px; background: #fbfdff; }
.cxrv-review-form label { display: grid; gap: 6px; margin-bottom: 9px; }
.cxrv-review-form label span { color: #3d516a; font-size: 12px; font-weight: 800; }
.cxrv-simple-action { grid-column: 1 / -1; }
.cxrv-details { margin-top: 16px; border: 1px solid var(--cxrv-line); border-radius: 12px; background: white; }
.cxrv-details summary { padding: 14px 16px; color: var(--cxrv-navy); font-weight: 900; cursor: pointer; }
.cxrv-details > :not(summary) { margin-left: 16px; margin-right: 16px; }
.cxrv-snapshot { padding-bottom: 16px; }
.cxrv-snapshot h3 { margin: 18px 0 8px; color: var(--cxrv-navy); }
.cxrv-snapshot h3 small { color: var(--cxrv-muted); font-weight: 500; }
.cxrv-kv { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.cxrv-kv div { padding: 11px; border: 1px solid var(--cxrv-line); border-radius: 9px; }
.cxrv-kv span { display: block; color: var(--cxrv-muted); font-size: 11px; }
.cxrv-kv strong { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.cxrv-timeline { padding-bottom: 15px; }
.cxrv-timeline article { margin: 10px 0; padding: 13px; border-left: 3px solid var(--cxrv-blue); background: #f7fbff; }
.cxrv-timeline article > span, .cxrv-timeline article > small { display: block; margin-top: 3px; color: var(--cxrv-muted); font-size: 11px; }
.cxrv-timeline article p { margin: 7px 0 0; }
.cxrv-timeline .cxrv-internal { padding: 8px; color: #604600; background: #fff7da; }
.cxrv-inline-form { display: grid; gap: 7px; min-width: 260px; }
.cxrv-authentication, .cxrv-observations {
  margin: 18px 0; padding: 18px; border: 1px solid var(--cxrv-line); border-radius: 13px; background: #fbfdff;
}
.cxrv-authentication h3, .cxrv-observations h3 { margin: 0; color: var(--cxrv-navy); }
.cxrv-authentication .cxrv-panel-head p, .cxrv-observations .cxrv-panel-head p { max-width: 850px; }
.cxrv-review-line { display: block; margin: 3px 0; font-size: 12px; font-weight: 800; }
.cxrv-review-line.is-clear, .cxrv-clear { color: var(--cxrv-success); }
.cxrv-review-line.is-pending { color: var(--cxrv-warning); }
.cxrv-review-line.is-flagged, .cxrv-flag { color: var(--cxrv-danger); }
.cxrv-flag, .cxrv-clear { font-weight: 900; }
.cxrv-observation-status--flagged { color: #8a2018; background: #ffe9e7; }
.cxrv-table tr.is-flagged td { background: #fff3f2; }
.cxrv-total-row td { border-top: 2px solid #a8bbce; background: #f3f7fb; }
.cxrv-document-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* Unified verification workspace, refined in v4.1.3. */
.cxuv-shell { --cxuv-soft-blue: #eef6ff; --cxuv-soft-green: #eaf8f0; --cxuv-soft-amber: #fff6dc; --cxuv-soft-red: #fff0ef; }
.cxuv-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.cxuv-summary-card { position: relative; min-width: 0; padding: 15px 15px 15px 19px; overflow: hidden; border: 1px solid var(--cxrv-line); border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(18,53,89,.05); }
.cxuv-summary-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; content: ""; background: var(--cxrv-blue); }
.cxuv-summary-card.is-success::before { background: var(--cxrv-success); }
.cxuv-summary-card.is-warning::before { background: #d49218; }
.cxuv-summary-card.is-danger::before { background: var(--cxrv-danger); }
.cxuv-summary-card span,.cxuv-summary-card strong,.cxuv-summary-card small { display: block; }
.cxuv-summary-card span { color: var(--cxrv-muted); font-size: 10px; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.cxuv-summary-card strong { margin: 5px 0; color: var(--cxrv-navy); font-size: 28px; line-height: 1; }
.cxuv-summary-card small { color: var(--cxrv-muted); line-height: 1.35; }
.cxuv-tabs a { display: inline-flex; align-items: center; gap: 8px; }
.cxuv-tabs a b { min-width: 24px; padding: 3px 7px; border-radius: 999px; color: var(--cxrv-navy); text-align: center; background: #edf2f7; }
.cxuv-tabs a.is-active b { color: var(--cxrv-blue); background: #fff; }
.cxuv-step-kicker { color: var(--cxrv-blue); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.cxuv-flow-status { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin: 20px 0; }
.cxuv-flow-status > div { position: relative; min-height: 82px; padding: 13px 13px 13px 50px; border: 1px solid var(--cxrv-line); border-radius: 12px; background: #f8fafc; }
.cxuv-flow-status > div > span { position: absolute; top: 15px; left: 13px; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #fff; font-weight: 900; background: #91a2b4; }
.cxuv-flow-status strong,.cxuv-flow-status small { display: block; }
.cxuv-flow-status strong { color: var(--cxrv-navy); }
.cxuv-flow-status small { margin-top: 4px; color: var(--cxrv-muted); }
.cxuv-flow-status .is-complete { border-color: #a9ddbf; background: var(--cxuv-soft-green); }
.cxuv-flow-status .is-complete > span { background: var(--cxrv-success); }
.cxuv-step { margin: 18px 0; padding: 20px; border: 1px solid var(--cxrv-line); border-radius: 14px; background: #fbfdff; }
.cxuv-step.is-complete { border-color: #a9ddbf; background: linear-gradient(145deg,#fff,var(--cxuv-soft-green)); }
.cxuv-step-head { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: start; gap: 12px; margin-bottom: 15px; }
.cxuv-step-head > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; font-weight: 900; background: var(--cxrv-blue); }
.cxuv-step.is-complete .cxuv-step-head > span { background: var(--cxrv-success); }
.cxuv-step-head h3 { margin: 0; color: var(--cxrv-navy); }
.cxuv-step-head p { margin: 4px 0 0; color: var(--cxrv-muted); }
.cxuv-step-head > strong { padding: 5px 9px; border-radius: 999px; color: #5d4200; font-size: 11px; background: #fff4cf; }
.cxuv-step.is-complete .cxuv-step-head > strong { color: #14603b; background: #e5f6ed; }
.cxuv-kv-wide { grid-column: span 2; }
.cxuv-duplicates { padding: 15px; margin-top: 15px; border: 1px solid #c7d9e9; border-radius: 12px; background: #f5faff; }
.cxuv-duplicates h4 { margin: 3px 0; color: var(--cxrv-navy); }
.cxuv-duplicates p { margin: 6px 0 0; color: var(--cxrv-muted); }
.cxuv-duplicate-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 9px; margin-top: 11px; }
.cxuv-duplicate-grid article { padding: 12px; border: 1px solid var(--cxrv-line); border-radius: 10px; background: #fff; }
.cxuv-duplicate-grid strong,.cxuv-duplicate-grid span,.cxuv-duplicate-grid small { display: block; }
.cxuv-duplicate-grid span,.cxuv-duplicate-grid small { margin-top: 3px; color: var(--cxrv-muted); }
.cxuv-duplicate-grid ul { padding-left: 18px; margin: 8px 0 0; color: #31506e; font-size: 12px; }
.cxuv-industry-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-top: 15px; }
.cxuv-action-card { display: grid; align-content: start; gap: 8px; padding: 15px; border: 1px solid var(--cxrv-line); border-radius: 12px; background: #fff; }
.cxuv-action-card.is-primary { border-color: #acd7bf; background: #f6fcf8; }
.cxuv-action-card.is-danger { border-color: #ebbbb7; background: #fff8f7; }
.cxuv-action-card h4 { margin: 0; color: var(--cxrv-navy); }
.cxuv-action-card p { min-height: 38px; margin: 0; color: var(--cxrv-muted); }
.cxuv-action-card label { display: grid; gap: 5px; }
.cxuv-action-card label span { color: #3d516a; font-size: 12px; font-weight: 800; }
.cxuv-action-card input,.cxuv-action-card select,.cxuv-action-card textarea,.cxuv-complete textarea { width: 100%; min-height: 41px; padding: 8px 10px; border: 1px solid #c6d5e4; border-radius: 9px; font: inherit; background: #fff; }
.cxuv-master-lookup { position: relative; }
.cxuv-replacement-rule { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid #e2bd76; border-radius: 9px; color: #6b3d00; background: #fff6dc; font-size: 11px; line-height: 1.4; }
.cxuv-replacement-rule strong { font-size: 12px; }
.cxuv-master-lookup > small { display: block; margin-top: 6px; color: var(--cxrv-muted); font-size: 11px; line-height: 1.4; }
.cxuv-master-lookup > small.is-selected { color: var(--cxrv-success); font-weight: 850; }
.cxuv-master-results { position: absolute; z-index: 50; top: calc(100% - 20px); right: 0; left: 0; max-height: 300px; overflow-y: auto; border: 1px solid #aac5dd; border-radius: 11px; background: #fff; box-shadow: 0 16px 34px rgba(17,44,77,.2); }
.cxuv-master-option { display: block; width: 100%; padding: 11px 12px; border: 0; border-bottom: 1px solid #e5ecf3; color: var(--cxrv-ink); background: #fff; text-align: left; cursor: pointer; }
.cxuv-master-option:last-child { border-bottom: 0; }
.cxuv-master-option:hover,.cxuv-master-option:focus,.cxuv-master-option.is-active { outline: 0; background: var(--cxuv-soft-blue); }
.cxuv-master-option.is-replacement-locked { color: #6b3d00; background: #fff6dc; cursor: not-allowed; opacity: 1; }
.cxuv-master-option.is-replacement-locked:hover,.cxuv-master-option.is-replacement-locked:focus { background: #fff1c9; }
.cxuv-master-option strong,.cxuv-master-option span { display: block; }
.cxuv-master-option strong { color: var(--cxrv-navy); font-size: 13px; }
.cxuv-master-option span { margin-top: 3px; color: var(--cxrv-muted); font-size: 11px; }
.cxuv-master-lock-warning { display: block; margin-top: 6px; color: #8a4e00; font-size: 11px; font-weight: 800; }
.cxuv-master-message { padding: 13px; color: var(--cxrv-muted); font-size: 12px; }
.cxuv-master-message.is-error { color: var(--cxrv-danger); background: var(--cxuv-soft-red); }
.cxuv-duplicate-grid article.is-replacement-locked { border-color: #e2bd76; background: #fffaf0; }
.cxuv-duplicate-lock { margin-top: 9px; padding: 7px 8px; border-radius: 7px; color: #7b4500; background: #fff0c7; font-size: 11px; font-weight: 800; }
.cxuv-use-duplicate:disabled { cursor: not-allowed; opacity: .65; }
.cxuv-use-duplicate { margin-top: 10px; padding: 7px 9px; border: 1px solid #bcd1e5; border-radius: 8px; color: var(--cxrv-blue); background: #fff; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.cxuv-use-duplicate:hover,.cxuv-use-duplicate:focus { border-color: var(--cxrv-blue); background: var(--cxuv-soft-blue); }
.cxuv-danger-button { background: var(--cxrv-danger); }
.cxuv-status-danger { color: #842017; background: #fee9e7; }
.cxuv-document { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; border-left: 4px solid var(--cxrv-blue); border-radius: 7px; background: var(--cxuv-soft-blue); }
.cxuv-document span,.cxuv-document strong,.cxuv-document small { display: block; }
.cxuv-document span,.cxuv-document small { color: var(--cxrv-muted); }
.cxuv-document small { margin-top: 4px; overflow-wrap: anywhere; }
.cxuv-check { grid-template-columns: auto 1fr; align-items: start; }
.cxuv-check input { width: auto; margin-top: 3px; }
.cxuv-complete { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.8fr); align-items: center; gap: 22px; padding: 20px; margin: 18px 0; border: 1px solid #d6dee8; border-radius: 14px; background: #f6f8fa; }
.cxuv-complete.is-ready { border-color: #90cfaa; background: linear-gradient(145deg,#fff,var(--cxuv-soft-green)); box-shadow: 0 8px 24px rgba(24,115,70,.08); }
.cxuv-complete h3 { margin: 4px 0; color: var(--cxrv-navy); }
.cxuv-complete p { margin: 0; color: var(--cxrv-muted); }
.cxuv-complete form { display: grid; gap: 8px; }
.cxuv-complete button:disabled { cursor: not-allowed; opacity: .48; }
.cxuv-note-form { margin: 0 16px 16px; }
.cxuv-observations { background: #fffdf8; }
.cxuv-observations .cxuv-step-head > span { background: #d49218; }
.cxuv-industry-list { display: grid; gap: 14px; }
.cxuv-industry-card { padding: 19px; border: 1px solid var(--cxrv-line); border-radius: 14px; background: #fff; }
.cxuv-industry-card h3 { margin: 8px 0 4px; color: var(--cxrv-navy); }
.cxuv-industry-card p,.cxuv-industry-card small { color: var(--cxrv-muted); }
.cxuv-correction-upload { margin-top: 18px; border-color: #e8c878; background: linear-gradient(145deg,#fff,var(--cxuv-soft-amber)); }
.cxuv-upload-form { display: grid; grid-template-columns: minmax(280px,1fr) auto; align-items: end; gap: 12px; margin-top: 16px; }
.cxuv-upload-form label { display: grid; gap: 6px; color: #3d516a; font-weight: 800; }
.cxuv-upload-form input { min-height: 44px; padding: 8px; border: 1px solid #c6d5e4; border-radius: 9px; background: #fff; }
.cxuv-queue-filter { grid-template-columns: minmax(280px,1fr) auto; }
.cxuv-queue-table { min-width: 1080px; }

.cxrv-filed-return { padding: 0; margin: 18px 0; overflow: hidden; }
.cxrv-filed-return__summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; color: var(--cxrv-navy); background: linear-gradient(135deg,#f8fbff,#eef6ff); cursor: pointer; list-style: none; }
.cxrv-filed-return__summary::-webkit-details-marker { display: none; }
.cxrv-filed-return__summary > span:first-child { display: grid; gap: 3px; }
.cxrv-filed-return__summary strong { font-size: 18px; }
.cxrv-filed-return__summary small { color: var(--cxrv-muted); font-weight: 600; }
.cxrv-filed-return__toggle { padding: 6px 11px; border: 1px solid #bcd1e5; border-radius: 999px; color: var(--cxrv-blue); background: #fff; font-size: 11px; font-weight: 900; }
.cxrv-filed-return[open] .cxrv-filed-return__toggle { font-size: 0; }
.cxrv-filed-return[open] .cxrv-filed-return__toggle::after { content: "Collapse"; font-size: 11px; }
.cxrv-filed-return__content { padding: 22px; border-top: 1px solid var(--cxrv-line); }
.cxrv-filed-return__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; }
.cxrv-filed-return__head h2 { margin: 4px 0; color: var(--cxrv-navy); font-size: 24px; }
.cxrv-filed-return__head p { max-width: 820px; margin: 0; color: var(--cxrv-muted); }
.cxrv-filed-return__eyebrow { color: var(--cxrv-blue); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.cxrv-filed-return__meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 14px; border: 1px solid var(--cxrv-line); border-radius: 12px; background: #f8fbfe; }
.cxrv-filed-return__meta div { min-width: 0; }
.cxrv-filed-return__meta span,.cxrv-filed-return__meta strong { display: block; }
.cxrv-filed-return__meta span { color: var(--cxrv-muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cxrv-filed-return__meta strong { margin-top: 4px; color: var(--cxrv-navy); overflow-wrap: anywhere; }
.cxrv-filed-return__section { padding: 20px 0 4px; border-bottom: 1px solid #e6edf4; }
.cxrv-filed-return__section:last-child { border-bottom: 0; }
.cxrv-filed-return__section h3 { margin: 0 0 12px; color: var(--cxrv-navy); font-size: 19px; }
.cxrv-filed-return__section h4 { margin: 17px 0 8px; color: #29445f; font-size: 14px; }
.cxrv-filed-return__subsection { padding: 13px 0; }
.cxrv-filed-return__subsection + .cxrv-filed-return__subsection { border-top: 1px dashed #dbe5ee; }
.cxrv-filed-return__kv { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cxrv-filed-return__attachment { margin-top: 12px; padding: 12px; border: 1px solid var(--cxrv-line); border-radius: 9px; background: #fafcff; }
.cxrv-filed-return__declaration { padding-bottom: 0; }

@media (max-width: 850px) {
  .cxrv-stats, .cxrv-kv { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cxrv-review-actions { grid-template-columns: 1fr; }
  .cxrv-filters { grid-template-columns: 1fr; }
  .cxuv-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cxuv-flow-status,.cxuv-industry-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cxuv-complete { grid-template-columns: 1fr; }
  .cxrv-filed-return__meta,.cxrv-filed-return__kv { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .cxrv-shell { width: 100%; margin: 0; }
  .cxrv-hero, .cxrv-panel { border-radius: 0; }
  .cxrv-hero, .cxrv-panel-head, .cxrv-detail-head, .cxrv-action-card { flex-direction: column; }
  .cxrv-hero-actions { width: 100%; justify-content: flex-start; }
  .cxrv-stats, .cxrv-kv { grid-template-columns: 1fr; }
  .cxrv-panel { padding: 16px 12px; }
  .cxrv-hero { padding: 22px 16px; }
  .cxuv-summary,.cxuv-flow-status,.cxuv-industry-actions,.cxuv-upload-form { grid-template-columns: 1fr; }
  .cxuv-step { padding: 15px 12px; }
  .cxuv-step-head { grid-template-columns: 34px 1fr; }
  .cxuv-step-head > strong { grid-column: 2; justify-self: start; }
  .cxuv-document { align-items: flex-start; flex-direction: column; }
  .cxrv-filed-return__summary,.cxrv-filed-return__head { align-items: flex-start; flex-direction: column; }
  .cxrv-filed-return__content { padding: 16px 12px; }
  .cxrv-filed-return__meta,.cxrv-filed-return__kv { grid-template-columns: 1fr; }
}

@media print {
  @page { margin: 12mm; }
  body.cxrv-print-filed-return { background: #fff !important; }
  body.cxrv-print-filed-return * { visibility: hidden !important; }
  body.cxrv-print-filed-return .cxrv-filed-return.is-print-target,
  body.cxrv-print-filed-return .cxrv-filed-return.is-print-target * { visibility: visible !important; }
  body.cxrv-print-filed-return .cxrv-filed-return.is-print-target { position: absolute !important; inset: 0 auto auto 0 !important; display: block !important; width: 100% !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; overflow: visible !important; }
  body.cxrv-print-filed-return .cxrv-filed-return__summary,
  body.cxrv-print-filed-return [data-cxrv-print-return],
  body.cxrv-print-filed-return .cxrv-document-actions { display: none !important; }
  body.cxrv-print-filed-return .cxrv-filed-return__content { display: block !important; padding: 0 !important; border: 0 !important; }
  body.cxrv-print-filed-return .cxrv-filed-return__head { padding-bottom: 12px; }
  body.cxrv-print-filed-return .cxrv-filed-return__head h2 { font-size: 21px; }
  body.cxrv-print-filed-return .cxrv-filed-return__meta { grid-template-columns: repeat(3,minmax(0,1fr)); break-inside: avoid; background: #fff; }
  body.cxrv-print-filed-return .cxrv-filed-return__kv { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.cxrv-print-filed-return .cxrv-filed-return__section { break-inside: auto; }
  body.cxrv-print-filed-return .cxrv-filed-return__subsection,
  body.cxrv-print-filed-return .cxrv-integrity { break-inside: avoid; }
  body.cxrv-print-filed-return .cxrv-table-wrap { max-width: none; overflow: visible; break-inside: auto; border-color: #b9c4cf; }
  body.cxrv-print-filed-return .cxrv-table { min-width: 0; font-size: 9pt; }
  body.cxrv-print-filed-return .cxrv-table th,
  body.cxrv-print-filed-return .cxrv-table td { padding: 5px; color: #111; }
  body.cxrv-print-filed-return a { color: #111 !important; text-decoration: none !important; }
}
