.tdb-summary{padding:12px 0 4px;border-top:1px solid var(--line,#e1e5eb);margin-top:12px;font-size:13px;line-height:1.55;overflow-wrap:anywhere}.tdb-summary p{margin:6px 0}.tdb-summary p>span{color:var(--mut,#64748b);margin-right:5px}.tdb-heading,.tdb-documents{display:flex;gap:8px 12px;align-items:center;flex-wrap:wrap}.tdb-badge{color:var(--text,#172033);background:var(--inset,#f1f4f7);border-radius:6px;padding:3px 8px;font-size:12px}.tdb-summary button,.tdb-summary a{min-height:44px;display:inline-flex;align-items:center}.tdb-summary button{background:transparent;border:1px solid var(--line,#e1e5eb);border-radius:8px;padding:7px 12px;font:inherit;color:inherit;cursor:pointer}.tdb-summary :focus-visible{outline:2px solid var(--accent,#1768b1);outline-offset:3px}.tdb-note{font-size:12px;color:var(--mut,#64748b)}@media(max-width:600px){.tdb-summary{font-size:13px}.tdb-documents{gap:0 12px}}@media(prefers-reduced-motion:reduce){.tdb-summary *{animation:none!important;transition:none!important}}

/* Compact enrichment; the shipment row remains the primary summary. */
.tdb-carrier-details>summary{min-height:44px;display:list-item;cursor:pointer;font-weight:600;padding:10px 0}.tdb-carrier-details[open]{padding-bottom:10px}.tdb-documents>a{border:1px solid var(--line,#d5dbe5);border-radius:8px;padding:8px 12px;text-decoration:none}.tdb-summary{padding:12px;box-sizing:border-box;min-width:0}.tdb-documents{margin:10px 0}.td-document-viewer{box-sizing:border-box;width:min(1120px,calc(100vw - 32px));height:min(900px,calc(100dvh - 32px));max-width:none;max-height:none;padding:0;border:1px solid var(--line,#d5dbe5);border-radius:16px;background:var(--bg,#fff);color:var(--text,#172033);overflow:hidden}.td-document-viewer[open]{display:flex;flex-direction:column}.td-document-viewer::backdrop{background:rgb(0 0 0 / .55)}.td-document-viewer>header{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line,#d5dbe5)}.td-document-viewer h2{font-family:inherit;font-weight:600;font-size:18px;line-height:1.3;margin:0;flex:1;min-width:0;overflow-wrap:anywhere}.td-document-viewer button,.td-document-external{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 12px;box-sizing:border-box;border:1px solid var(--line,#d5dbe5);border-radius:8px;background:var(--inset,#f1f4f7);color:inherit;font:inherit;text-decoration:none;cursor:pointer}.td-document-external{font-size:24px}.td-document-viewer :focus-visible{outline:2px solid var(--accent,#1768b1);outline-offset:2px}.td-document-hint{margin:0;padding:8px 16px;font-size:13px;line-height:1.5;color:var(--mut,#64748b)}.td-document-viewer iframe{width:100%;flex:1;min-height:0;border:0;background:#fff}@media(max-width:600px){.td-document-viewer{width:100vw;height:100dvh;border-radius:0;border:0;margin:0}.td-document-viewer>header{padding:8px 12px;gap:8px}}

/* Count chips use an explicit ink/surface pair in both themes. */
.tpx .tpx-metric>strong{color:var(--text,#172033)!important;background:var(--inset,#f1f4f7)!important;border:1px solid var(--line,#d5dbe5);min-width:24px;min-height:24px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}

.tdb-trip-timeline{display:flex;align-items:center;gap:16px;padding:8px 0 12px;flex-wrap:wrap}.tdb-trip-timeline>div{flex:1;min-width:140px}.tdb-trip-timeline>div>span{display:block;font-size:12px;color:var(--mut,#64748b)}.tdb-trip-timeline strong{display:block;font-weight:600;font-size:14px;line-height:1.5}.tdb-trip-arrow{color:var(--mut,#64748b)}

/* One card and one primary shipment action. */
.tpx .tpx-load-row{margin:12px;border:1px solid var(--line,#47515e);border-radius:12px;background:var(--inset,#20242b);overflow:visible}.tpx .tpx-load-row>.tpx-row{border:0;width:100%;padding:16px}.tpx .tdb-summary{margin:0;padding:0 16px 12px;border:0;font-size:14px}.tdb-summary>button{float:right;min-height:44px;margin:0 0 4px 8px;font-size:12px}.tdb-trip-timeline{clear:both;border-top:1px solid var(--line,#47515e);padding-top:12px}.tdb-tools>summary{min-height:44px;cursor:pointer;font-size:13px;line-height:44px;color:var(--mut,#abb5c3)}.tdb-tools>.btn{margin:4px 0 8px}.tdb-carrier-details{font-size:13px}.tdb-note{line-height:1.5}.tpx .tpx-metric>strong{background:#e8edf5!important;color:#172033!important}html[data-theme="dark"] .tpx .tpx-metric>strong{background:#303846!important;color:#f1f4f7!important}
#sdReadOverlay .sd-read-panel{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:20px;gap:16px;overflow:auto}#sdReadOverlay .sd-read-panel>header{padding-bottom:12px;margin-bottom:4px}#sdReadOverlay .sd-read-panel>header h2{font-size:22px;line-height:1.3}#sdReadOverlay .sd-read-panel>header p{font-size:14px;line-height:1.5}#sdReadOverlay .sd-system-details{border-top:1px solid var(--line,#47515e);padding-top:8px;margin-top:12px}#sdReadOverlay .sd-system-details>summary{min-height:44px;cursor:pointer;line-height:1.5;display:list-item;padding:12px 0;font-size:14px}#sdReadOverlay .sd-track{border:0;background:transparent;padding:12px 0;margin:0}#sdReadOverlay .sd-read-result{padding:14px;margin:12px 0;border-radius:10px}#sdReadOverlay .sd-read-result h3{font-size:18px}#sdReadOverlay .sd-read-result p{font-size:14px;line-height:1.5;margin:8px 0}#sdReadOverlay .sd-read-schedules{gap:12px}#sdReadOverlay .sd-read-schedules h3{font-size:15px}#sdReadOverlay .sd-read-schedules p{font-size:14px;line-height:1.5}#sdReadOverlay .sd-read-source{font-size:12px;font-weight:400;color:var(--mut,#abb5c3)}#sdReadOverlay .sd-trip-status{display:inline-flex;align-items:center;padding:4px 8px;border-radius:6px;background:var(--inset,#303846);font-weight:600}#sdReadOverlay [data-sd-bind-slot]{margin:16px 0}#sdReadOverlay .btn{min-height:44px}#sdReadOverlay .submut{font-size:13px;line-height:1.5}@media(max-width:600px){#sdReadOverlay .sd-read-panel{width:100%;max-height:100dvh;height:100dvh;padding:16px;border-radius:0}.tpx .tpx-load-row{margin:10px}.tdb-trip-timeline{gap:8px}.tdb-trip-timeline>div{min-width:110px}.tdb-trip-timeline strong{font-size:13px}}

#sdReadOverlay .sd-match-details>summary{min-height:44px;line-height:1.5;padding:12px 0;cursor:pointer;font-size:13px}#sdReadOverlay .sd-read-schedules .sd-read-schedule{padding:14px}#sdReadOverlay .sd-read-schedules h4{font-size:15px;margin:0 0 10px}#sdReadOverlay .sd-read-schedules dt{font-size:12px;color:var(--mut,#abb5c3)}#sdReadOverlay .sd-read-schedules dd{font-size:14px;margin:4px 0 12px;overflow-wrap:anywhere}

/* Disjoint shipment stages and retained journey details for delivered legs. */
.tpx{container-type:inline-size}.tpx .tpx-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;gap:10px}.tpx .tpx-metric{min-width:0;min-height:64px;white-space:normal;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px}.tpx .tpx-metric>span{font-size:14px;line-height:1.4;text-align:left;min-width:0;overflow-wrap:anywhere;white-space:normal;flex:1 1 auto}.tpx .tpx-metric>strong{flex:none}.tpx .tpx-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,200px) minmax(160px,200px);gap:12px}.tpx .tpx-controls>label{min-width:0}.tpx .tpx-controls select{width:100%;min-width:0;min-height:44px;box-sizing:border-box}.tpx .tpx-journey-dates{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0;font-size:13px;line-height:1.5;color:var(--mut,#64748b)}.tpx-journey-dates>span:not([aria-hidden]){display:flex;flex-direction:column;min-width:110px}.tpx-journey-dates strong{font-size:14px;color:var(--text,#172033);font-weight:600}.tpx .tpx-delivery-review{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid var(--line,#47515e);flex-wrap:wrap}.tpx-delivery-review p{flex:1 1 200px;font-size:13px;line-height:1.5;color:var(--mut,#64748b);margin:0}.tpx-delivery-review button{min-height:44px}
@container(max-width:700px){.tpx .tpx-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.tpx .tpx-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.tpx .tpx-search{grid-column:1/-1}.tpx .tpx-metric{padding:12px}.tpx .tpx-delivery-review button{width:100%}}
@media(max-width:500px){.tpx .tpx-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.tpx .tpx-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.tpx .tpx-search{grid-column:1/-1}.tpx .tpx-metric{padding:12px}.tpx .tpx-delivery-review button{width:100%}}

/* Native selects need room for the full stage label and platform arrow. */
@container(max-width:420px){.tpx .tpx-controls{grid-template-columns:minmax(0,1fr)}}
@media(max-width:420px){.tpx .tpx-controls{grid-template-columns:minmax(0,1fr)}}

/* Keep the page identity and its primary action together on ordinary phones. */
@media(min-width:380px) and (max-width:560px){
 .tpx .tpx-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin-bottom:14px}
 .tpx .tpx-header>div:first-child{min-width:0}
 .tpx .tpx-header h1{font-size:28px;line-height:1.1;margin:0 0 3px}
 .tpx .tpx-header .tpx-muted{font-size:12px}
 .tpx .tpx-header>.tpx-actions{width:auto;flex-wrap:nowrap;gap:6px}
 .tpx .tpx-header .btn{min-height:44px;padding:8px 10px;font-size:13px;white-space:nowrap}
 .tpx .tpx-header [data-tpx-refresh]{width:44px;padding:8px;justify-content:center}
 .tpx .tpx-metrics{gap:8px;margin-bottom:14px}
 .tpx .tpx-metric{min-height:56px;padding:8px 10px}
 .tpx .tpx-metric>span{font-size:13px;line-height:1.25}
 .tpx .tpx-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px}
 .tpx .tpx-search{grid-column:1/-1}
}
@media(max-width:379px){
 .tpx .tpx-header{gap:8px;margin-bottom:14px}
 .tpx .tpx-header h1{font-size:28px;line-height:1.1;margin:0 0 3px}
 .tpx .tpx-header>.tpx-actions{width:100%;flex-wrap:nowrap}
 .tpx .tpx-header [data-tpx-new]{flex:1;justify-content:center}
}

/* Verified private PDF preview; carrier HTML remains isolated. */
.td-document-content{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--surface,#fff)}.td-document-content>iframe{flex:1;min-height:0}.td-document-fallback{padding:24px;max-width:62ch;line-height:1.5;overflow-wrap:anywhere}.td-document-fallback p{margin:0 0 16px}.td-document-content>button{align-self:flex-start;margin:8px 16px}.td-document-download{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid var(--line,#d5dbe5);border-radius:8px;color:inherit;background:var(--inset,#f1f4f7);text-decoration:none;box-sizing:border-box}.td-document-viewer [hidden]{display:none!important}

/* Parent-owned document controls; embedded preview is visual only. */
.td-document-viewer .td-document-external{font-size:14px;gap:8px}
@media(max-width:600px){.td-document-viewer>header{flex-wrap:wrap}.td-document-viewer>header>h2{flex-basis:100%}.td-document-viewer>header>.td-document-external{margin-right:auto}}

/* Transport facts remain distinct from saved workflow and payment timing. */
.tdb-overview{clear:both;display:grid;gap:4px;padding:8px 0;overflow-wrap:anywhere}.tdb-overview p{margin:2px 0}.tdb-identity{font-size:13px;color:var(--text,#172033)}.td-activity-list{margin:0;padding-left:20px}.td-activity-list>li{padding:10px 0;border-bottom:1px solid var(--line,#d5dbe5);overflow-wrap:anywhere}.td-activity-list time,.td-activity-list strong{display:block;margin-bottom:4px}.td-activity-list time{color:var(--mut,#64748b);font-size:12px}.tdb-summary [data-tdb-status-scope]{line-height:1.5}

.td-overview-links a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--line,#d5dbe5);border-radius:8px;font-weight:600}.td-photo-details [data-inspection-stage]{margin-block:16px}

/* Native phone metric rail must fit its content width, without the old -2px overhang. */
@media(max-width:600px){.tpx .tpx-metrics{margin-right:0;min-width:0}}
