/* Native trade records reuse source consumer UI and captured Equipment forms. */
.trade-story .tn-demo-row{width:100%;min-width:0;margin-top:30px}
.trade-story .tn-placement{aspect-ratio:auto!important;min-height:0;height:auto;max-width:none;width:100%;overflow:visible;margin-top:0}
.tn-surface{min-width:0;max-width:100%;text-align:left}
.trade-story .tn-records-source .tn-customer{font-size:14px}
.trade-story .tn-records-source .pay-logo{min-width:0;max-width:65%;overflow-wrap:anywhere}
.trade-story .tn-records-source .pay-logo>strong{white-space:normal}
.trade-story .tn-records-source .pay-main{padding:26px}
.trade-story .tn-records-source .tn-services-source{border:0;border-radius:0;box-shadow:none;background:transparent;font-size:14px}
.trade-story .tn-records-source .tn-services-source h3{font-size:21px}
.trade-story .tn-records-source .tn-services-source h4{font-size:16px}
.trade-story .tn-records-source .tn-services-source small{font-size:12px}
.trade-story .tn-records-source .pc-order-total>strong{font-size:21px}
.trade-story .tn-records-source .tn-services-source button{font-size:13px;min-height:36px}
.trade-story .tn-records-source .tn-services-source .pc-service>div{overflow-wrap:anywhere}
.trade-story .tn-records-source .tn-services-source .pc-order-card .pc-card-head{align-items:flex-start}
@media(max-width:600px){.trade-story .tn-records-source .pay-main{padding:15px}.trade-story .tn-records-source .pay-logo{max-width:60%}.trade-story .tn-records-source .pc-order-total>strong{font-size:17px}}

/* Native source buying screens stay at readable type size, synchronized at both sizes. */
.tn-buying{border:1px solid var(--ui-demo-line);border-radius:14px;background:var(--ui-demo-bg);color:var(--ui-demo-text);overflow:hidden;font:14px/1.45 Arial,sans-serif}
.tn-buying-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 22px;background:var(--ui-demo-surface);border-bottom:1px solid var(--ui-demo-line)}
.tn-buying-bar>span{font-size:12px;color:var(--ui-demo-muted)}
.tn-example-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:15px 22px;border-bottom:1px solid var(--ui-demo-line);background:var(--ui-demo-surface)}
.tn-example-controls>button{background:var(--ui-demo-surface);border:1px solid var(--live-demo-primary);border-radius:var(--ui-demo-radius);color:var(--ui-demo-accent-text);padding:9px 14px;font:13px Arial,sans-serif;cursor:pointer;min-height:38px}
.tn-example-controls>button:disabled{opacity:.5;cursor:default}
.tn-example-controls>label{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:12px;margin-left:auto}
.tn-example-controls input{width:85px;min-width:0;border:1px solid var(--ui-demo-line);border-radius:var(--ui-demo-field-radius);background:var(--ui-demo-surface);color:var(--ui-demo-text);font:14px Arial,sans-serif;padding:9px}
.trade-story .tn-buying .cu-device-pair{grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start;padding:24px;background:var(--ui-demo-bg)}
.trade-story .tn-buying .cu-viewport{height:820px;aspect-ratio:auto;border:1px solid var(--ui-demo-line);border-radius:12px}
.trade-story .tn-buying .cu-screen{width:100%;height:100%;transform:none;position:relative;font:14px/1.45 Arial,sans-serif}
.trade-story .tn-buying .cu-device-label{color:var(--ui-demo-muted)}
.trade-story .tn-buying .cu-device-label>span:last-child{font-size:11px}
.trade-story .tn-buying .cu-screen :is(h3,h4,p,small,label,strong,span,b,em){font-family:Arial,sans-serif;letter-spacing:normal;color:inherit;text-wrap:initial}
.trade-story .tn-buying .cu-screen h3{font:600 22px/1.35 Arial,sans-serif;margin:0 0 14px}
.trade-story .tn-buying .cu-screen h4{font:600 17px/1.4 Arial,sans-serif;margin:0 0 20px}
.trade-story .tn-buying .cu-screen p{font:14px/1.5 Arial,sans-serif;color:var(--ui-demo-muted);margin:0 0 18px;max-width:none}
.trade-story .tn-buying .cu-screen small{font:12px/1.5 Arial,sans-serif;color:var(--ui-demo-muted);display:block}
.trade-story .tn-buying .cu-property{height:110px;padding:14px 20px;gap:12px}
.trade-story .tn-buying .cu-property strong{font-size:16px;white-space:normal;overflow:visible}
.trade-story .tn-buying .cu-property div>span{font-size:12px;flex-wrap:wrap}
.trade-story .tn-buying .cu-step{padding:9px 12px;font-size:12px;flex-shrink:0}
.trade-story .tn-buying .cu-step b{font-size:16px}
.trade-story .tn-buying .cu-question-wrap{height:calc(100% - 110px);padding:22px;overflow:auto}
.trade-story .tn-buying .cu-question-card{width:min(100%,670px);min-height:620px;height:100%;max-height:100%}
.trade-story .tn-buying .cu-question-body{min-height:0;overflow:auto}
.trade-story .tn-buying .cu-question-card>header{padding:22px}
.trade-story .tn-buying .cu-question-card>header h3{margin:0;font-size:21px}
.trade-story .tn-buying .cu-radio-row{align-items:start;white-space:normal}
.trade-story .tn-buying .cu-radio-row>i{flex-shrink:0}
.trade-story .tn-buying .cu-radio-row>span{min-width:0;text-align:left}
.trade-story .tn-buying aside.cu-summary{background:var(--ui-demo-surface);padding:24px;border:0;border-radius:12px;align-self:start;margin:0}
.trade-story .tn-buying .tn-quote{height:calc(100% - 182px);grid-template-columns:minmax(0,1fr) 310px;gap:20px;background:var(--ui-demo-bg)}
.trade-story .tn-buying .cu-selected{padding:22px}
.trade-story .tn-buying .cu-selected-card{padding:20px}
.trade-story .tn-buying .cu-selected-card>div{flex-wrap:wrap;gap:12px}
.trade-story .tn-buying .cu-selected-card>div>h3{font-size:19px}
.trade-story .tn-buying .cu-selected-card>div>strong{font-size:22px;color:var(--ui-demo-accent-text)}
.trade-story .tn-buying .cu-summary h3{font-size:22px}
.trade-story .tn-buying .cu-total-rows>div{gap:14px;align-items:start}
.trade-story .tn-buying .cu-total-rows>div>strong{text-align:right;max-width:60%}
.trade-story .tn-buying .cu-summary-actions{margin-top:24px}
.trade-story .tn-buying .cu-bottom{font-size:12px;gap:12px;white-space:normal}
.trade-story .tn-buying .cu-bottom>span:last-child{font-size:11px;color:var(--ui-demo-muted);text-align:right}
.trade-story .tn-buying .cu-screen .cu-btn{white-space:normal;min-height:38px;font-size:14px;padding:9px 18px;border-radius:var(--ui-demo-radius)}
.trade-story .tn-buying .cu-location{min-height:100%;height:100%}
.trade-story .tn-buying .cu-address-card{width:min(460px,calc(100% - 40px));padding:30px;max-height:640px;overflow:auto}
.trade-story .tn-buying .cu-address-card h3{text-align:center;font-size:26px}
.trade-story .tn-buying .cu-address-card>p{text-align:center}
.trade-story .tn-buying .cu-address-help{font-size:13px;line-height:1.6;min-height:50px;margin-top:12px}
.trade-story .tn-buying .cu-address-actions{gap:10px;margin-top:20px;flex-wrap:wrap}
.trade-story .tn-buying .cu-map-credit{position:absolute;bottom:0;right:0;z-index:1;padding:3px 5px;font-size:10px;background:var(--ui-demo-surface);color:var(--ui-demo-muted)}
.trade-story .tn-buying .cu-phone .cu-property{height:114px;padding:12px;gap:8px}
.trade-story .tn-buying .cu-phone .cu-property>i{font-size:18px}
.trade-story .tn-buying .cu-phone .cu-property strong{font-size:13px}
.trade-story .tn-buying .cu-phone .cu-property small{font-size:10px}
.trade-story .tn-buying .cu-phone .cu-property div>span{font-size:10px}
.trade-story .tn-buying .cu-phone .cu-step{font-size:10px;padding:7px}
.trade-story .tn-buying .cu-phone .cu-step b{font-size:12px}
.trade-story .tn-buying .cu-phone .cu-question-wrap{padding:16px;height:calc(100% - 114px)}
.trade-story .tn-buying .cu-phone .cu-question-card{min-height:650px}
.trade-story .tn-buying .cu-phone .cu-question-card>header h3{font-size:18px}
.trade-story .tn-buying .cu-phone .cu-question-body{padding:18px}
.trade-story .tn-buying .cu-phone .cu-service-strip{font-size:12px}
.trade-story .tn-buying .cu-phone .cu-question-body>h4{font-size:16px}
.trade-story .tn-buying .cu-phone .cu-radio-row{font-size:13px;padding:13px;gap:12px}
.trade-story .tn-buying .cu-phone .tn-quote{display:block;height:calc(100% - 186px)}
.trade-story .tn-buying .cu-phone .cu-selected{padding:18px 14px}
.trade-story .tn-buying .cu-phone .cu-selected>h3{font-size:20px}
.trade-story .tn-buying .cu-phone .cu-selected-card h3{font-size:17px}
.trade-story .tn-buying .cu-phone .cu-selected-card>p{font-size:13px;display:block}
.trade-story .tn-buying .cu-phone .cu-selected-card>small{font-size:12px}
.trade-story .tn-buying .cu-phone .cu-selected-card section>h4{font-size:14px;margin:18px 0 8px}
.trade-story .tn-buying .cu-phone .cu-selected-card section>p{font-size:13px;margin-left:0}
.trade-story .tn-buying .cu-phone .cu-summary{min-height:0;border-radius:0}
.trade-story .tn-buying .cu-phone .cu-summary h3{font-size:20px}
.trade-story .tn-buying .cu-phone .cu-total-rows>div{font-size:13px}
.trade-story .tn-buying .cu-phone .cu-grand>strong:last-child{font-size:20px}
.trade-story .tn-buying .cu-phone .cu-address-card{width:calc(100% - 26px);padding:24px 20px;transform:none;top:100px;max-height:455px;margin:0;align-self:start}
.trade-story .tn-buying .cu-phone .cu-address-card h3{font-size:22px}
.trade-story .tn-buying .cu-phone .cu-address-card p{font-size:13px}
.trade-story .tn-buying .cu-phone .cu-address-card label{font-size:13px}
.trade-story .tn-buying .cu-phone .cu-address-card input{font-size:13px}
.trade-story .tn-buying .cu-phone .cu-address-help{font-size:12px}
.trade-story .tn-buying .cu-phone .cu-onboard-steps{gap:8px;padding:10px 14px}
.trade-story .tn-buying .cu-phone .cu-onboard-steps>b{width:27px;height:27px}
.trade-story .tn-buying .cu-phone .cu-onboard-steps>span{width:24px}
.trade-story .tn-surface .tn-example-note{padding:15px 22px;margin:0;border-top:1px solid var(--ui-demo-line);font:12px/1.6 Arial,sans-serif;color:var(--ui-demo-muted);background:var(--ui-demo-surface)}
.tn-assessment-note{padding:14px;border:1px solid var(--ui-demo-line);background:var(--ui-demo-tint);border-radius:8px;font-size:13px;line-height:1.5;margin-top:18px}
.tn-buying-status:empty{display:none}
.tn-buying-status{padding:12px 22px;background:var(--ui-demo-tint);font-size:13px}
@media(max-width:1400px){.trade-story .tn-buying .cu-device-pair{grid-template-columns:minmax(0,1fr);gap:28px}.trade-story .tn-buying .cu-phone-device{width:min(100%,330px);margin:auto}}
@media(max-width:700px){.trade-story .tn-buying .cu-device-pair{padding:16px}.trade-story .tn-buying .cu-desktop .tn-quote{grid-template-columns:minmax(0,1fr)}.tn-example-controls{padding:14px}.tn-example-controls>label{margin-left:0;flex-basis:100%}.tn-buying-bar{padding:16px;flex-wrap:wrap}.trade-story .tn-buying .cu-desktop .cu-question-wrap{padding:14px}.trade-story .tn-buying .cu-desktop .cu-property{height:130px}.trade-story .tn-buying .cu-desktop .cu-question-wrap{height:calc(100% - 130px)}.trade-story .tn-buying .cu-desktop .cu-question-card{min-height:650px}.trade-story .tn-buying .cu-desktop .cu-property>i{display:none}.trade-story .tn-buying .cu-desktop .cu-step{padding:7px;font-size:10px}.trade-story .tn-buying .cu-desktop .cu-address-card{padding:25px 20px}.trade-story .tn-buying .cu-onboard-steps{gap:8px;padding:12px}.trade-story .tn-buying .cu-onboard-steps>span{width:20px}}

.trade-story .tn-buying .cu-desktop .cu-address-card{justify-self:end;margin-right:24px}
@media(max-width:700px){.trade-story .tn-buying .cu-desktop .cu-address-card{justify-self:center;margin-right:0}}

.trade-story .tn-surface .tn-scope-note{font:12px/1.6 Arial,sans-serif;color:var(--odx-muted);margin:14px 0 0}

/* Source invoice rows reflow at phone size; keep their labels readable. */
.trade-story .tn-surface .pay-demo-foot{font-size:11px}
@container payment (max-width:400px){
 .trade-story .tn-surface .pay-table td{font-size:13px}
 .trade-story .tn-surface .pay-table td[data-label]:before{font-size:11px}
 .trade-story .tn-surface .pay-card-heading{flex-wrap:wrap;align-items:flex-start}
}

@media(max-width:700px){.trade-story .tn-buying .cu-desktop .tn-quote{height:calc(100% - 202px)}}

/* Source header and footer retain their content height; the body owns remaining scroll space. */
.trade-story .tn-buying .cu-screen:has(>.cu-property){display:flex;flex-direction:column}
.trade-story .tn-buying .cu-screen:has(>.cu-property)>.cu-property{height:auto;min-height:110px;flex:none}
.trade-story .tn-buying .cu-screen:has(>.cu-property)>:is(.cu-question-wrap,.tn-quote){height:auto!important;flex:1;min-height:0}
.trade-story .tn-buying .cu-screen:has(>.cu-property) .cu-question-card{min-height:0;height:100%;max-height:100%}
.trade-story .tn-buying .cu-screen:has(>.cu-property)>.cu-bottom{position:static;height:auto;min-height:72px;flex:none}
.trade-story .tn-buying .cu-phone:has(>.cu-property)>.cu-bottom{min-height:60px}
