.dfx-order-review {
    color: #17212b;
    font-family: Arial, sans-serif;
    max-width: 1180px;
    margin: 8px auto 26px;
    padding: 0 16px 16px;
}

.dfx-order-review__header,
.dfx-order-review__instructions,
.dfx-order-review__notice,
.dfx-order-review__confirmed-banner,
.dfx-review-item,
.dfx-order-review__actions {
    background: #fff;
    border: 1px solid #d8e0e7;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(23, 33, 43, 0.06);
    margin-bottom: 18px;
    padding: 22px;
}

.dfx-order-review__confirmed-banner {
    background: #edfaef;
    border-color: #68de7c;
}

.dfx-order-review__confirmed-banner h3,
.dfx-order-review__confirmed-banner p {
    margin: 0 0 8px;
}

.dfx-order-review__confirmed-banner p:last-child {
    margin-bottom: 0;
}

.dfx-order-review__demo-note {
    background: #fff8e5;
    border: 1px solid #dba617;
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.dfx-order-review__header {
    background: linear-gradient(135deg, #10263a 0%, #1d5f73 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.dfx-order-review__status-panel {
    align-items: flex-start;
    border: 0;
}

.dfx-order-review__header dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    margin: 0;
}

.dfx-order-review__header dt,
.dfx-order-review__eyebrow {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dfx-order-review__header dd {
    margin: 0;
}

.dfx-order-review__header h2 {
    color: #fff;
    font-size: 30px;
    line-height: 1.15;
    margin: 4px 0 8px;
}

.dfx-order-review__project {
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    margin: 0;
}

.dfx-review-state {
    display: inline-block;
    border-radius: 999px;
    font-weight: 700;
    margin-top: 8px;
    padding: 5px 10px;
}

.dfx-review-state.is-review-required {
    background: #ffe8a3;
    color: #362600;
}

.dfx-review-state.is-confirmed {
    background: #c9f5d1;
    color: #003d10;
}

.dfx-order-review__locked-banner {
    border-left: 4px solid #008a20;
}

.dfx-review-item__summary,
.dfx-review-item__body,
.dfx-order-review__actions {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.dfx-review-item__body {
    align-items: stretch;
}

.dfx-review-item {
    border-left: 5px solid #008a20;
}

.dfx-review-item--amber {
    border-left-color: #dba617;
}

.dfx-review-item--red {
    border-left-color: #b32d2e;
}

.dfx-review-item--needs-review {
    background: #fffaf0;
    box-shadow: 0 8px 24px rgba(153, 104, 0, 0.12);
}

.dfx-review-item--red.dfx-review-item--needs-review {
    background: #fff7f7;
    box-shadow: 0 8px 24px rgba(179, 45, 46, 0.12);
}

.dfx-review-item--unrecognised {
    border-left-color: #8a2424;
}

.dfx-review-caution,
.dfx-review-line-warning {
    background: #fff8e5;
    border: 1px solid #dba617;
    border-radius: 6px;
    color: #4d3700;
    padding: 10px 12px;
}

.dfx-review-line-warning {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: -8px 0 18px;
}

.dfx-review-item--red .dfx-review-line-warning,
.dfx-review-item--unrecognised .dfx-review-line-warning {
    background: #fbeaea;
    border-color: #d63638;
    color: #681f1f;
}

.dfx-review-item__summary {
    align-items: flex-start;
    border-bottom: 1px solid #edf0f2;
    margin: -4px 0 18px;
    padding-bottom: 14px;
}

.dfx-review-item__summary h3 {
    font-size: 22px;
    margin: 0 0 6px;
}

.dfx-review-item__summary p {
    color: #5b6773;
    margin: 0;
}

.dfx-review-item__fields {
    flex: 1 1 58%;
}

.dfx-review-item__preview {
    flex: 1 1 36%;
}

.dfx-field-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-bottom: 20px;
}

.dfx-field-grid label span {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.dfx-field-grid input,
.dfx-field-grid select,
.dfx-customer-notes {
    background: #fbfcfd;
    border: 1px solid #c8d3dc;
    border-radius: 6px;
    box-sizing: border-box;
    display: block;
    min-height: 40px;
    opacity: 1;
    padding: 8px 10px;
    visibility: visible;
    width: 100%;
}

.dfx-field-grid input:focus,
.dfx-field-grid select:focus,
.dfx-customer-notes:focus {
    border-color: #1d5f73;
    box-shadow: 0 0 0 2px rgba(29, 95, 115, 0.18);
    outline: none;
}

.dfx-customer-notes {
    min-height: 84px;
}

.dfx-customer-notes-wrap {
    background: #f6f8fa;
    border-radius: 8px;
    margin-top: 18px;
    padding: 14px;
}

.dfx-render-warning {
    background: #fff8e5;
    border: 1px solid #dba617;
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 14px;
    padding: 10px 12px;
}

.dfx-render-debug {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    margin-top: 14px;
    padding: 10px 12px;
}

.dfx-render-debug dl {
    display: grid;
    gap: 4px 10px;
    grid-template-columns: max-content 1fr;
    margin: 10px 0 0;
}

.dfx-render-debug dd {
    margin: 0;
}

.dfx-status-badge {
    align-self: flex-start;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    padding: 7px 10px;
    white-space: nowrap;
}

.dfx-review-status-badges,
.dfx-review-preview-toolbar,
.dfx-review-copy-tools,
.dfx-review-line-actions,
.dfx-review-jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dfx-review-readiness-summary {
    background: #f8fafc;
    border: 1px solid #c9d7e4;
    border-radius: 8px;
    margin: 18px 0;
    padding: 18px;
}

.dfx-review-readiness-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin: 12px 0;
}

.dfx-review-readiness-grid span {
    background: #fff;
    border: 1px solid #d8e0e7;
    border-radius: 6px;
    color: #344553;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
}

.dfx-review-readiness-grid strong {
    color: #10263a;
    font-size: 24px;
}

.dfx-review-readiness-verdict {
    background: #eaf2fb;
    border-left: 4px solid #2271b1;
    font-weight: 700;
    margin: 12px 0;
    padding: 10px 12px;
}

.dfx-review-line-number {
    color: #52616d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.dfx-review-line-number span {
    background: #edf6ee;
    border-radius: 999px;
    color: #064b16;
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    text-transform: none;
}

.dfx-review-status-badges {
    justify-content: flex-end;
    min-width: 150px;
}

.dfx-review-mini-badge {
    background: #edf6ee;
    border: 1px solid #b8dfbf;
    border-radius: 999px;
    color: #064b16;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
}

.dfx-review-mini-badge--unsaved,
.dfx-review-mini-badge--stale {
    background: #fff8e5;
    border-color: #dba617;
    color: #4d3700;
}

.dfx-review-mini-badge--limited {
    background: #eaf2fb;
    border-color: #9fc6e8;
    color: #17415f;
}

.dfx-review-mini-badge--blocked {
    background: #fcf0f1;
    border-color: #d63638;
    color: #8a2424;
}

.dfx-review-item--unsaved {
    border-left-color: #2271b1;
    box-shadow: 0 8px 24px rgba(34, 113, 177, 0.12);
}

.dfx-review-connector-control select {
    border-width: 2px;
}

.dfx-review-connector-warning,
.dfx-review-validation {
    background: #fff8e5;
    border: 1px solid #dba617;
    border-radius: 6px;
    color: #4d3700;
    font-size: 12px;
    margin-bottom: 12px;
    padding: 8px 10px;
}

.dfx-review-validation span {
    display: inline-block;
    margin: 2px 8px 2px 0;
}

.dfx-staff-notes-readiness textarea {
    background: #f6f7f7;
    color: #646970;
}

.dfx-review-line-actions {
    border-top: 1px solid #eef3f5;
    margin-top: 12px;
    padding-top: 12px;
}

.dfx-review-preview-toolbar {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dfx-review-refresh-preview {
    min-height: 32px;
}

.dfx-review-preview-state {
    color: #52616d;
    font-size: 12px;
    font-weight: 700;
}

.dfx-review-copy-tools {
    margin-top: 12px;
}

.dfx-status-badge--green {
    background: #008a20;
}

.dfx-status-badge--amber {
    background: #996800;
}

.dfx-status-badge--red {
    background: #b32d2e;
}

.dfx-three-placeholder,
.dfx-preview-slot {
    background: #eef3f5;
    border: 1px dashed #7d929b;
    border-radius: 8px;
    min-height: 220px;
}

.dfx-preview-slot {
    box-sizing: border-box;
    padding: 16px;
}

.dfx-preview-slot--high-risk-blocked {
    background: #fff7f7;
    border-color: #d63638;
}

.dfx-preview-slot--mapping-pending,
.dfx-preview-slot--not-applicable {
    background: #fffaf0;
    border-color: #dba617;
}

.dfx-preview-slot__header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.dfx-preview-slot__eyebrow {
    color: #52616d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.dfx-preview-slot__badge,
.dfx-preview-slot__state {
    background: #fff;
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
}

.dfx-preview-slot h4 {
    margin: 12px 0 8px;
}

.dfx-preview-slot__summary {
    display: grid;
    gap: 5px 10px;
    grid-template-columns: max-content 1fr;
    margin: 12px 0;
}

.dfx-preview-slot__summary dt {
    font-weight: 700;
}

.dfx-preview-slot__summary dd {
    margin: 0;
}

.dfx-preview-slot__notice {
    background: rgba(255, 255, 255, 0.74);
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    padding: 9px 10px;
}

.dfx-preview-slot--straight-pilot-enabled {
    background: #eef6f8;
    border-style: solid;
    border-color: #4f9bb1;
}

.dfx-straight-pilot {
    background: #f9fcfd;
    border: 1px solid #c8dce3;
    border-radius: 8px;
    margin: 12px 0;
    overflow: hidden;
    max-width: 100%;
}

.dfx-straight-pilot--missing {
    background: #fffaf0;
    border-color: #dba617;
}

.dfx-straight-pilot__fallback,
.dfx-straight-pilot__stage {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 210px;
    padding: 10px;
}

.dfx-straight-pilot svg {
    display: block;
    height: auto;
    max-width: 100%;
}

.dfx-straight-pilot text {
    fill: #27414b;
    font-size: 12px;
    font-weight: 700;
}

.dfx-straight-pilot__label {
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 3px;
}

.dfx-straight-pilot__top {
    fill: #d7e9ef;
    stroke: #5e94a4;
    stroke-width: 2;
}

.dfx-straight-pilot__side {
    fill: #b8d9e3;
    stroke: #5e94a4;
    stroke-width: 2;
}

.dfx-straight-pilot__front {
    fill: #eef7fa;
    stroke: #5e94a4;
    stroke-width: 2;
}

.dfx-straight-pilot__line {
    stroke: #1f5f72;
    stroke-width: 2;
}

.dfx-straight-pilot__duct {
    background: linear-gradient(135deg, #eef7fa, #b8d9e3);
    border: 2px solid #5e94a4;
    height: 74px;
    margin-right: 14px;
    transform: skewX(-12deg);
    width: 180px;
}

.dfx-straight-pilot__meta {
    background: #e4f2f5;
    border-top: 1px solid #c8dce3;
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    overflow-wrap: anywhere;
}

.dfx-straight-pilot__meta span {
    color: #52616d;
    font-size: 12px;
}

.dfx-three-straight-pilot {
    min-height: 220px;
}

.dfx-three-straight-pilot__canvas {
    aspect-ratio: 16 / 9;
    height: clamp(190px, 34vw, 320px);
    min-height: 190px;
    position: relative;
    overflow: hidden;
    border: 1px solid #c9d7e4;
    border-radius: 8px;
    background: #f8fafc;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.dfx-three-straight-pilot__canvas:active {
    cursor: grabbing;
}

.dfx-three-straight-pilot__canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.dfx-three-trusted-runtime-canvas {
    height: clamp(190px, 34vw, 320px);
    min-height: 190px;
}

.dfx-review-page .dfx-three-trusted-runtime-shell {
    min-height: 300px;
}

[data-dfx-three-preview="rendered"] .dfx-straight-pilot__fallback,
[data-dfx-three-preview="rendered"] [data-dfx-preview-fallback],
[data-dfx-three-preview="rendered"] [data-dfx-straight-pilot-fallback] {
    display: none !important;
}

.dfx-three-straight-pilot__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px 0;
}

.dfx-three-straight-control {
    min-height: 28px;
}

.dfx-three-straight-pilot__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding: 0 10px;
}

.dfx-three-straight-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eaf2fb;
    color: #1d3b53;
    font-size: 12px;
    font-weight: 700;
}

.dfx-three-straight-status,
.dfx-three-straight-diagnostics {
    margin: 8px 0 0;
    color: #52616d;
    font-size: 12px;
}

.dfx-review-button {
    border-radius: 6px !important;
    min-height: 40px;
    min-width: 148px;
}

.dfx-order-review__action-panel {
    align-items: center;
    background: #10263a;
    border: 0;
    color: #fff;
    position: sticky;
    bottom: 12px;
    z-index: 5;
}

.dfx-order-review__action-panel h3 {
    margin: 0 0 6px;
}

.dfx-order-review__action-panel p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.dfx-save-status {
    flex: 1 1 auto;
    font-weight: 700;
    min-height: 30px;
}

.dfx-confirm-status {
    flex: 1 1 auto;
    font-weight: 700;
    min-height: 30px;
}

.dfx-save-status.is-saving {
    color: #646970;
}

.dfx-save-status.is-saved {
    color: #008a20;
}

.dfx-save-status.is-error {
    color: #b32d2e;
}

.dfx-confirm-status.is-confirming {
    color: #646970;
}

.dfx-confirm-status.is-confirmed {
    color: #008a20;
}

.dfx-confirm-status.is-error {
    color: #b32d2e;
}

@media (max-width: 760px) {
    .dfx-order-review__header,
    .dfx-review-item__body,
    .dfx-order-review__actions {
        flex-direction: column;
    }

    .dfx-order-review__header h2 {
        font-size: 24px;
    }

    .dfx-review-item__preview {
        flex-basis: auto;
    }
}
