/* Production-only integration rules; approved palettes and geometry live in portal-design.css. */
body{margin:0;background:#fff}#trc-complete{max-width:1280px;margin:auto;min-height:100vh;border-radius:0}
#trc-complete [data-signature-pad]{display:block;width:100%;max-width:720px;height:160px;border:1px solid var(--p-line);border-radius:8px;touch-action:none;background:#fff}
#trc-complete .portal-choice input:checked{background-image:none!important}
#trc-complete .portal-dialog{padding:0;border:1px solid var(--p-line);border-radius:18px;background:#fff;color:var(--p-ink);width:80vw;max-width:1024px;max-height:90dvh}
#trc-complete .portal-dialog::backdrop{background:rgb(22 34 42 / .3);backdrop-filter:blur(7px)}
#trc-complete .portal-dialog .detail-body{padding:28px clamp(18px,6vw,90px);overflow:auto}
#trc-complete .lookup-dialog{max-width:540px}#trc-complete .lookup-logo{display:block;max-width:240px;max-height:85px;object-fit:contain;margin:0 auto 28px}
#trc-complete .lookup-features{display:grid;grid-template-columns:repeat(4,1fr);text-align:center;gap:10px;margin-top:24px}
#trc-complete .product-image{width:64px;height:64px;object-fit:contain;flex-shrink:0}
#trc-complete .portal-choice{display:flex;align-items:center;gap:14px;border:1px solid var(--p-line);border-radius:10px;padding:12px;min-height:52px;cursor:pointer}
#trc-complete .portal-choice:has(:checked){background:var(--p-soft);border-color:var(--brand-primary)}
#trc-complete .portal-choice input{width:22px;height:22px;min-width:22px;accent-color:var(--brand-primary)}
#trc-complete[data-brand=hammock] .portal-choice input,#trc-complete[data-brand=heaven] .portal-choice input{appearance:none;padding:0;background:white;display:grid;place-content:center}
#trc-complete[data-brand=hammock] .portal-choice input:checked,#trc-complete[data-brand=heaven] .portal-choice input:checked{background:var(--brand-primary);border-color:var(--brand-primary)}
#trc-complete[data-brand=hammock] .portal-choice input:checked::after,#trc-complete[data-brand=heaven] .portal-choice input:checked::after{content:'✓';color:#fff;font-size:18px}
#trc-complete small{display:block;font-size:13px;font-weight:400;margin-top:5px}#trc-complete .check-row{margin-top:8px}
#trc-complete .report-step+.report-step{border-top:1px solid var(--p-line);padding-top:24px}#trc-complete .report-step h3{margin:0 0 14px}
#trc-complete .submit-row{display:flex;align-items:center;gap:20px}#trc-complete .submit-row p{flex:1;margin:0}
#trc-complete .compact-upload{border:1px dashed var(--p-line);border-radius:8px;padding:12px}#trc-complete .compact-upload input{border:0;padding:0}
#trc-complete .case-link{display:grid;gap:6px;padding:16px 0;color:inherit;border-top:1px solid var(--p-line);text-decoration:none}
#trc-complete .parcel-summary{display:flex;justify-content:space-between;gap:12px;align-items:center}
#trc-complete .conversation-message{padding:16px;border:1px solid var(--p-line);border-radius:10px;margin-bottom:12px;white-space:pre-wrap;overflow-wrap:anywhere}
#trc-complete .conversation-message.staff{background:var(--p-soft)}#trc-complete .review-channel{display:flex;flex-direction:column}
#trc-complete .public-background{filter:blur(4px);pointer-events:none}#trc-complete .demo-order[aria-current=page]{background:var(--p-soft)}
@media(max-width:650px){#trc-complete .portal-dialog{width:calc(100vw - 20px);max-height:94dvh}#trc-complete .submit-row{align-items:stretch;flex-direction:column}#trc-complete .parcel-summary{align-items:start;flex-direction:column}#trc-complete .choice-grid{grid-template-columns:1fr}}
/* Compact chronological event history uses real carrier data only. */
#trc-complete .tracking-events{list-style:none;margin:16px 0;padding:0 0 0 12px;border-left:2px solid var(--brand-primary)}
#trc-complete .tracking-events li{display:grid;gap:4px;padding:0 0 16px 12px}
#trc-complete .tracking-events time{font-size:13px;color:var(--muted)}

/* Keep the content boxed, while the shop's page colour reaches both viewport edges. */
#trc-complete{max-width:none;width:100%;box-sizing:border-box;padding:24px max(24px,calc((100% - 1232px)/2))}
/* Only open dialogs are flex containers. The bounded body, not the page, owns scrolling. */
#trc-complete .portal-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
#trc-complete .portal-dialog .detail-body{flex:1 1 auto;min-height:0;max-height:calc(90dvh - 74px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;box-sizing:border-box}
#trc-complete .lookup-dialog .detail-body{padding:40px 32px 28px;max-height:calc(90dvh - 2px)}
#trc-complete .lookup-dialog h2{text-align:center;margin:0 0 24px}
#trc-complete .lookup-more{border:0}
#trc-complete .lookup-more summary{padding:4px 0;min-height:32px;font-size:14px;font-weight:600}
/* A CSS chevron cannot be substituted with an emoji by the iOS system font. */
#trc-complete .lookup-more>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer}
#trc-complete .lookup-more>summary::-webkit-details-marker{display:none}
#trc-complete .lookup-more>summary::marker{content:""}
#trc-complete .lookup-more>summary::before{content:"";display:block;flex:0 0 6px;width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg)}
#trc-complete .lookup-more[open]>summary::before{transform:rotate(45deg)}
#trc-complete .lookup-more .fields{margin-top:12px}
#trc-complete .lookup-features{font-size:12px;border-top:1px solid var(--p-line);padding-top:22px}
#trc-complete .lookup-features>span{display:flex;align-items:center;flex-direction:column;gap:8px}
#trc-complete .lookup-features svg{width:23px;height:23px;color:var(--p-ink)}
#trc-complete .case-link{position:relative;display:grid;grid-template-columns:1fr auto;gap:8px 16px;padding:14px 16px;margin-top:10px;border:1px solid var(--p-line);border-radius:12px;background:white;transition:border-color .15s,box-shadow .15s}
#trc-complete .case-link:hover{border-color:var(--brand-primary);box-shadow:0 4px 16px #243e3410}
#trc-complete .case-link:focus-visible{outline:2px solid var(--p-ink);outline-offset:3px}
#trc-complete .case-link strong{grid-column:1/-1;font-size:16px}
#trc-complete .case-eyebrow{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--p-muted);margin:0}
#trc-complete .case-link .case-eyebrow{grid-column:1/-1}
#trc-complete .case-link .case-status{width:fit-content;font-size:12px;border-radius:20px;padding:5px 9px;background:var(--p-soft);border:1px solid var(--p-line)}
#trc-complete .case-link time{font-size:12px;color:var(--p-muted);align-self:center;text-align:right}
#trc-complete [data-conversation-url]{display:flex;flex-direction:column;gap:16px;margin:24px 0 32px}
#trc-complete .conversation-message{width:fit-content;max-width:85%;box-sizing:border-box;margin:0;padding:15px 18px;white-space:normal;box-shadow:0 2px 6px #243e3405}
#trc-complete .conversation-message.customer{align-self:flex-end;background:var(--p-soft);border-radius:16px 16px 4px 16px}
#trc-complete .conversation-message.staff{align-self:flex-start;background:white;border-radius:16px 16px 16px 4px}
#trc-complete .conversation-message strong{display:block;font-size:12px;margin-bottom:7px}
#trc-complete .conversation-message p{white-space:pre-wrap;margin:0 0 10px;line-height:1.6}
#trc-complete .conversation-message time{display:block;text-align:right;font-size:11px;color:var(--p-muted)}
#trc-complete .conversation-message .action-link{display:flex;justify-content:flex-start;margin-top:8px;font-size:13px;overflow-wrap:anywhere}
#trc-complete #dialog-conversation .form{border-top:1px solid var(--p-line);padding-top:24px}
#trc-complete .demo-order[aria-current=page]{background:white;border-color:var(--brand-primary);box-shadow:inset 4px 0 var(--brand-primary)}
@media(max-width:650px){#trc-complete{padding:16px}#trc-complete .portal-dialog .detail-body{padding:22px 18px;max-height:calc(94dvh - 70px)}#trc-complete .lookup-dialog .detail-body{padding-top:42px;max-height:calc(94dvh - 2px)}#trc-complete .conversation-message{max-width:92%}}

/* Match the approved overview's structure and spacing, using its existing surface tokens. */
#trc-complete .portal-icon{width:20px;height:20px;flex:none;vertical-align:middle}
#trc-complete #p-overview{padding-top:20px}
#trc-complete .layout{gap:18px}
#trc-complete .column{gap:18px}
#trc-complete .panel>h3:first-child{margin-top:0}
#trc-complete .carrier-logo{display:block;width:64px;height:32px;object-fit:contain;flex:none;background:#fff;border-radius:4px;padding:3px;box-sizing:border-box}
#trc-complete .parcel-tracking+.parcel-tracking{margin-top:10px}
#trc-complete #p-tracking{margin-top:24px}
#trc-complete .parcel-product{margin-bottom:12px;padding:4px 0}
#trc-complete .parcel-product img{width:52px;height:52px;flex:none;object-fit:contain}
#trc-complete .portal-choice>.carrier-logo{width:64px;height:32px}
#trc-complete .portal-upload-zone{position:relative;display:flex;align-items:center;gap:14px;padding:18px;border:1px dashed var(--p-muted);border-radius:12px;background:var(--p-paper);cursor:pointer}
#trc-complete .portal-upload-zone:focus-within{outline:2px solid var(--p-ink);outline-offset:3px}
#trc-complete .portal-upload-zone:hover{background:var(--p-soft)}
#trc-complete .portal-upload-zone.is-dragover{border-color:var(--brand-primary);background:var(--p-soft);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand-primary) 22%,transparent)}
#trc-complete .portal-upload-zone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#trc-complete .portal-upload-zone small{color:var(--p-muted)}
#trc-complete .portal-file-list>div{display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--p-line);padding:8px 0;font-size:13px;overflow-wrap:anywhere}
#trc-complete .portal-file-list span{min-width:0}
#trc-complete .portal-file-list button{flex:none;border:0;padding:4px 8px;min-height:32px}
#trc-complete .lookup-dialog{max-width:480px}
#trc-complete .lookup-logo{width:200px;height:52px;margin:8px auto 22px}
#trc-complete .lookup-dialog h2{text-align:left;font-size:30px;line-height:1.2;margin-bottom:12px}
#trc-complete .lookup-features>span{flex-direction:row;gap:6px}
#trc-complete .lookup-features svg{width:16px;height:16px;flex:none}
#trc-complete .lookup-dialog input{min-height:48px}
@media(max-width:650px){#trc-complete #p-overview .column{display:flex;flex-direction:column;gap:18px}#trc-complete #p-overview .layout{display:block}#trc-complete #p-overview .column:empty{display:none}#trc-complete #p-overview .panel{order:0}#trc-complete .portal-upload-zone{padding:14px}#trc-complete .lookup-features>span{flex-direction:column}}

/* Form actions follow the preview's content-sized rows, never the grid's stretch default.
   Lookup intentionally keeps its full-width primary action. */
#trc-complete .report-form .row>button,#trc-complete .report-send>button{width:auto;flex:none;justify-self:start}
#trc-complete .report-form .notice{margin-top:16px;line-height:1.6}
#trc-complete .lookup-description{line-height:1.6;margin-bottom:24px}
#trc-complete .report-step>h3>small{display:inline;font-size:14px}
#trc-complete #dialog-conversation .report-send{margin-top:8px}

/* Future milestones keep their own outline symbol; the current step has a brand halo. */
#trc-complete .stages li:not(.done) .stage-marker{color:var(--p-muted)}
#trc-complete .stage-marker .portal-icon{width:18px;height:18px}

/* Animate only the active halo, leaving the icon and layout stationary. */
@keyframes portal-status-halo{0%,100%{opacity:0}50%{opacity:1}}
#trc-complete .stages li.current .stage-marker{position:relative;box-shadow:none;isolation:isolate}
#trc-complete .stages li.current .stage-marker::before{content:'';position:absolute;inset:-2px;border:0;border-radius:50%;box-shadow:0 0 0 2px var(--p-paper),0 0 0 5px var(--brand-primary);pointer-events:none;animation:portal-status-halo 2.8s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){#trc-complete .stages li.current .stage-marker::before{animation:none;opacity:1}}

/* Keep the dashed track stationary; a separate solid layer grows over it.
   Explicit sizing and concentric shadows keep the halo gap even at browser zoom. */
#trc-complete .stage-marker{box-sizing:border-box;width:28px;height:28px}
#trc-complete .stages li.linked::after{border-top:2px dashed var(--p-line)}
#trc-complete .stages li.linked::before{content:'';position:absolute;left:calc(50% + 20px);top:14px;width:calc(100% - 40px);border-top:2px solid var(--brand-primary);z-index:1;pointer-events:none}
@media(max-width:650px){
 #trc-complete .stages li.linked::after{border-top:0;border-left:2px dashed var(--p-line)}
 #trc-complete .stages li.linked::before{left:13px;top:34px;bottom:6px;width:0;border-top:0;border-left:2px solid var(--brand-primary)}
}

/* Build only reached milestones on page entry. Status text stays visible throughout;
   future steps never animate and no JavaScript or state changes are required. */
@keyframes portal-stage-arrive{0%{transform:scale(1);background:var(--p-paper);border-color:var(--p-line);color:var(--p-muted)}70%{transform:scale(1.12)}100%{transform:scale(1)}}
@keyframes portal-line-arrive{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes portal-line-arrive-vertical{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@media(prefers-reduced-motion:no-preference){
 #trc-complete .stages li{--stage-delay:.15s}
 #trc-complete .stages li:nth-child(2){--stage-delay:.7s}
 #trc-complete .stages li:nth-child(3){--stage-delay:1.25s}
 #trc-complete .stages li:nth-child(4){--stage-delay:1.8s}
 #trc-complete .stages li.done .stage-marker{animation:portal-stage-arrive .3s ease-out var(--stage-delay) backwards}
 #trc-complete .stages li.linked::before{transform-origin:left center;animation:portal-line-arrive .35s ease-in-out calc(var(--stage-delay) + .2s) backwards}
 #trc-complete .stages li.current .stage-marker::before{opacity:0;animation-delay:calc(var(--stage-delay) + .3s)}
}
@media(prefers-reduced-motion:no-preference) and (max-width:650px){
 #trc-complete .stages li.linked::before{transform-origin:center top;animation-name:portal-line-arrive-vertical}
}

/* Single parcel history: newest scan is emphasized, with dates alongside on desktop. */
#trc-complete .tracking-events{margin:12px 0 20px;padding:0 0 0 18px;border-left:2px solid var(--p-line)}
#trc-complete .tracking-events li{position:relative;grid-template-columns:minmax(0,1fr) 132px;align-items:start;gap:12px;padding:14px;margin:0 0 8px;border-radius:10px}
#trc-complete .tracking-events li::before{content:'';position:absolute;left:-24px;top:50%;transform:translateY(-50%);width:10px;height:10px;border:1px solid var(--p-line);border-radius:50%;background:var(--p-paper)}
#trc-complete .tracking-events li.tracking-latest{background:var(--p-paper)}
#trc-complete .tracking-events li.tracking-latest::before{background:var(--brand-primary);border-color:var(--brand-primary);box-shadow:0 0 0 3px var(--p-paper)}
#trc-complete .tracking-event-copy{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
#trc-complete .tracking-event-copy strong{font-size:14px;font-weight:500;line-height:1.5}
#trc-complete .tracking-latest strong{font-size:16px;font-weight:600}
#trc-complete .tracking-eyebrow{font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--p-muted)}
#trc-complete .tracking-location{font-size:13px;color:var(--p-muted)}
#trc-complete .tracking-events time{font-size:12px;line-height:1.6;text-align:right;color:var(--p-muted)}
@media(max-width:650px){
 #trc-complete .tracking-events li{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px}
 #trc-complete .tracking-events time{text-align:left}
}

/* Emphasize the latest scan through its dot, leaving the history card neutral.
   Separate ring opacity keeps the dot itself fully visible and stationary. */
#trc-complete .tracking-events li.tracking-latest::after{content:'';position:absolute;left:-24px;top:50%;transform:translateY(-50%);box-sizing:border-box;width:10px;height:10px;border:0;border-radius:50%;box-shadow:0 0 0 2px var(--p-paper),0 0 0 4px var(--brand-primary);pointer-events:none;animation:portal-status-halo 2.8s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){#trc-complete .tracking-events li.tracking-latest::after{animation:none;opacity:1}}

/* Carrier headers stay white in every brand, including open and hovered states. */
#trc-complete .parcel-tracking>summary,#trc-complete .parcel-tracking>summary:hover,#trc-complete .parcel-tracking[open]>summary{background:#fff}

/* Neutral hover feedback for white overview actions; touch devices avoid sticky hover. */
#trc-complete #p-overview button:not(.primary),#trc-complete .parcel-body>.action-link,#trc-complete .parcel-tracking>summary{transition:background-color .16s ease,color .16s ease,border-color .16s ease}
@media(hover:hover){
 #trc-complete #p-overview button:not(.primary):not(:disabled):hover,#trc-complete .parcel-body>.action-link:hover{border-color:#8b939d}
 #trc-complete .parcel-tracking>summary:hover,#trc-complete .parcel-tracking[open]>summary:hover{background:#f3f4f6}
}
#trc-complete #p-overview button:not(.primary):not(:disabled):focus-visible,#trc-complete .parcel-body>.action-link:focus-visible{border-color:#8b939d;outline:2px solid var(--p-ink);outline-offset:3px}
@media(prefers-reduced-motion:reduce){#trc-complete #p-overview button:not(.primary),#trc-complete .parcel-body>.action-link,#trc-complete .parcel-tracking>summary{transition:none}}

/* Giant icons inherit their surrounding text: white on green, dark on white. */

/* Contact details belong to the address, separated by one text line rather than a rule. */
#trc-complete .address-contact{margin:1em 0}
#trc-complete .address-contact p{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:center;column-gap:8px;margin:0;line-height:1.6}
#trc-complete .address-contact .portal-icon{display:block;width:16px;height:16px;margin:0;justify-self:center;align-self:center;color:inherit}
#trc-complete .address-contact span{min-width:0;overflow-wrap:anywhere}

/* Balance visible space: the SVG has internal left whitespace; compensate after the label. */
#trc-complete .hero>.pill{padding-inline:10px 14px}


/* Headerless dialogs keep Close independent without pushing the title down. */
#trc-complete .portal-dialog{padding-top:32px}
#trc-complete .portal-dialog .detail-body{max-height:calc(90dvh - 34px);padding-top:0}
#trc-complete .portal-dialog .dialog-close{position:absolute;top:10px;right:10px;z-index:3;display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:40px;padding:0;margin:0;border:1px solid var(--p-line);border-radius:9px;background:#fff;color:var(--p-ink);box-shadow:none;cursor:pointer}
#trc-complete .dialog-close .portal-icon{display:block;width:22px;height:22px;margin:0;color:inherit}
#trc-complete .dialog-close:focus-visible{outline:2px solid var(--p-ink);outline-offset:3px}
@media(hover:hover){#trc-complete .dialog-close:hover{border-color:#8b939d;background:#fff}}
@media(max-width:650px){#trc-complete .portal-dialog .detail-body{max-height:calc(94dvh - 34px);padding-top:0}}

/* Long titles may wrap on mobile, but never underneath the corner control. */
#trc-complete .portal-dialog .detail-body>h2:first-child,
#trc-complete .portal-dialog .report-intro:first-child>h1:first-child{padding-right:48px}
#trc-complete .portal-dialog .detail-body :is(h1,h2)[tabindex="-1"]:focus{outline:none}

/* Match the reserved top inset at the end of every dialog, including long scrollable forms. */
#trc-complete .portal-dialog .detail-body{padding-bottom:64px}
#trc-complete .portal-dialog .detail-body>:first-child{margin-top:0}
#trc-complete .portal-dialog .detail-body>:last-child{margin-bottom:0}

/* All dialog introduction titles share the support forms' larger heading scale. */
#trc-complete .portal-dialog .detail-body>h2,
#trc-complete .portal-dialog .report-intro>h1{font-size:2em;line-height:1.2;font-family:var(--portal-heading-font);font-weight:var(--portal-heading-weight,500)}
/* Direct document downloads retain the same neutral outline feedback as action buttons. */
@media(hover:hover){#trc-complete #p-document-actions>.action-link:hover{border-color:#8b939d;background:#fff;color:var(--p-ink)}}
#trc-complete #p-document-actions>.action-link:focus-visible{outline:2px solid var(--p-ink);outline-offset:3px}

/* Order cards keep the same number/date layout whether selected or not. */
#trc-complete .order-card-heading time{margin-left:auto;text-align:right}

/* Keep unavailable-order next steps clearly separated, wrapping naturally on small screens. */
#trc-complete .order-unavailable-actions{gap:12px;margin-top:24px}

/* Independent checkbox and native disclosure prevent accidental selection while inspecting tracking. */
#trc-complete .shipping-parcel-picker{display:grid;gap:12px}
#trc-complete .shipping-parcel-option{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;border:1px solid var(--p-line);border-radius:12px;background:#fff;overflow:hidden}
#trc-complete .shipping-parcel-option:has(.shipping-parcel-checkbox:checked){border-color:var(--brand-primary)}
#trc-complete .shipping-parcel-option .shipping-parcel-checkbox{width:18px;height:18px;min-height:0;padding:0;margin:23px 0 0 14px;accent-color:var(--brand-primary);cursor:pointer}
#trc-complete .shipping-parcel-option>.parcel-tracking{border:0;border-radius:0;margin:0;min-width:0}
#trc-complete .shipping-parcel-option .parcel-tracking>summary{min-height:64px;box-sizing:border-box}
#trc-complete .shipping-parcel-checkbox:focus-visible{outline:2px solid var(--p-ink);outline-offset:3px}
@media(max-width:650px){#trc-complete .shipping-parcel-option .parcel-identity{min-width:0}#trc-complete .shipping-parcel-option .parcel-identity>span{overflow-wrap:anywhere}}

/* Overlay the independent checkbox in one full-width summary instead of a separate colour strip. */
#trc-complete .shipping-parcel-option{display:block;position:relative}
#trc-complete .shipping-parcel-option .shipping-parcel-checkbox{position:absolute;top:23px;left:14px;z-index:1;margin:0}
#trc-complete .shipping-parcel-option .parcel-tracking>summary{padding-left:48px}
@media(hover:hover){#trc-complete .shipping-parcel-option:has(>.shipping-parcel-checkbox:hover)>.parcel-tracking>summary{background:#f3f4f6}}

/* Required topic instructions are placeholders, never selectable report topics. */
#trc-complete select[name="topic"]:invalid{color:var(--p-muted)}
#trc-complete select[name="topic"] option{color:var(--p-ink)}
#trc-complete select[name="topic"] option[hidden]{display:none}

/* Separate the declaration signature from its checkboxes and its clear action. */
#trc-complete .signature-section{margin-top:28px}
#trc-complete .signature-section .signature-actions{margin-top:14px}

/* Balance lookup content around its centre, including when its scrollbar appears.
   Failed public lookup has no close button, so it needs no reserved toolbar space. */
#trc-complete .lookup-dialog .detail-body{scrollbar-gutter:stable both-edges}
#trc-complete .lookup-dialog .lookup-notice{margin:0 0 32px;padding:16px 18px;text-align:center;line-height:1.5;overflow-wrap:anywhere}
#trc-complete .lookup-notice+.lookup-logo{margin-top:0}
#trc-complete .lookup-dialog:has(.lookup-notice):not(:has(>.dialog-close)){padding-top:32px}
#trc-complete .lookup-dialog:has(.lookup-notice):not(:has(>.dialog-close)) .detail-body{max-height:calc(90dvh - 34px)}
@media(max-width:650px){#trc-complete .lookup-dialog:has(.lookup-notice):not(:has(>.dialog-close)) .detail-body{max-height:calc(94dvh - 34px)}}

/* Review destinations are links, but share the same full-card hit area as buttons.
   Auto-fit preserves equal columns for one, two or three configured platforms. */
#trc-complete .action-link.review-channel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:20px 16px;min-width:0;text-align:center;box-sizing:border-box}
@media(max-width:650px){#trc-complete .action-link.review-channel{flex-direction:row;justify-content:space-between;padding:14px;gap:12px}}
@media(max-width:380px){#trc-complete .action-link.review-channel{flex-direction:column}}

/* Shared feedback includes modal actions and link-buttons, not only the overview.
   Keep resting brand colours and white labels intact; darken only the primary fill. */
#trc-complete :is(button,.action-link){transition:background-color .16s ease,border-color .16s ease;}
@media(hover:hover){
 #trc-complete :is(button,.action-link):not(.primary):not(:disabled):not([aria-disabled="true"]):hover{border-color:#8b939d}
 #trc-complete :is(button,.action-link).primary:not(:disabled):not([aria-disabled="true"]):hover{background:color-mix(in srgb,var(--brand-primary) 88%,black);border-color:color-mix(in srgb,var(--brand-primary) 88%,black)}
}
#trc-complete :is(button,.action-link):not(:disabled):not([aria-disabled="true"]):focus-visible{outline:2px solid var(--p-ink);outline-offset:3px}
#trc-complete :is(button,.action-link):not(.primary):not(:disabled):not([aria-disabled="true"]):active{border-color:var(--p-ink)}
#trc-complete :is(button,.action-link).primary:not(:disabled):not([aria-disabled="true"]):active{background:color-mix(in srgb,var(--brand-primary) 80%,black);border-color:color-mix(in srgb,var(--brand-primary) 80%,black)}
@media(prefers-reduced-motion:reduce){#trc-complete :is(button,.action-link){transition:none}}

/* Storefront navigation is secondary to order actions, not another button.
   The linked header keeps the existing logo dimensions; the lookup logo stays static. */
#trc-complete .brand-home-link{display:block;max-width:100%;min-width:0;border-radius:4px}
#trc-complete .portal-shop-footer{padding:24px 0 8px;text-align:center}
#trc-complete .portal-shop-footer a{display:inline-flex;align-items:center;gap:7px;max-width:100%;color:var(--p-muted);font-size:14px;text-decoration:none;overflow-wrap:anywhere}
#trc-complete .portal-shop-footer svg{width:14px;height:14px;flex-shrink:0}
#trc-complete .portal-shop-footer a:hover{color:var(--p-ink);text-decoration:underline;text-underline-offset:4px}
#trc-complete :is(.brand-home-link,.portal-shop-footer a):focus-visible{outline:2px solid var(--p-ink);outline-offset:4px}

/* Reusable carrier instruction: visible enough to guide, without looking like an error. */
#trc-complete .portal-info-box{display:grid;grid-template-columns:24px minmax(0,1fr);gap:14px;margin:24px 0;padding:18px;border:1px solid color-mix(in srgb,var(--brand-primary) 35%,var(--p-line));border-left:4px solid var(--brand-primary);border-radius:12px;background:color-mix(in srgb,var(--brand-primary) 7%,white)}
#trc-complete .portal-info-box>.portal-icon{margin-top:2px;color:var(--brand-primary)}
#trc-complete .portal-info-box h3{margin:0 0 6px;font-size:17px}
#trc-complete .portal-info-box p{margin:0;line-height:1.6}

/* The visible progress state reflects the real server submission, with no artificial delay. */
#trc-complete .send-progress{display:flex;align-items:center;gap:10px;margin:14px 0 0;color:var(--p-muted)}
#trc-complete .send-progress[hidden]{display:none}
#trc-complete .send-spinner{width:18px;height:18px;border:2px solid var(--p-line);border-top-color:var(--brand-primary);border-radius:50%;animation:portal-send-spin .8s linear infinite}
@keyframes portal-send-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#trc-complete .send-spinner{animation:none;border-top-color:var(--p-line);background:var(--brand-primary)}}

/* A completed form gets a dedicated receipt before the customer chooses to open the thread. */
#trc-complete .submission-receipt{max-width:720px;margin:auto;text-align:center}
#trc-complete .submission-receipt>.portal-icon{box-sizing:border-box;width:56px;height:56px;padding:13px;margin-bottom:18px;border-radius:50%;background:var(--brand-primary);color:var(--brand-on)}
#trc-complete .submission-receipt h2{margin:8px 0 12px;font-size:2em;line-height:1.2}
#trc-complete .submission-receipt>p:not(.case-eyebrow){max-width:600px;margin:0 auto 24px;line-height:1.65}
#trc-complete .submission-receipt dl{display:grid;gap:0;margin:28px 0;text-align:left;border:1px solid var(--p-line);border-radius:12px;overflow:hidden;background:var(--p-paper)}
#trc-complete .submission-receipt dl>div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;padding:14px 16px}
#trc-complete .submission-receipt dl>div+div{border-top:1px solid var(--p-line)}
#trc-complete .submission-receipt dt{font-weight:600;color:var(--p-muted)}
#trc-complete .submission-receipt dd{margin:0;font-weight:600;overflow-wrap:anywhere}
#trc-complete .submission-receipt .receipt-email-note{font-size:14px;color:var(--p-muted)}
#trc-complete .submission-receipt .row{justify-content:center;margin-top:26px}
@media(max-width:650px){#trc-complete .submission-receipt dl>div{grid-template-columns:1fr;gap:4px}#trc-complete .submission-receipt .row{align-items:stretch;flex-direction:column}#trc-complete .submission-receipt .row>*{width:100%;box-sizing:border-box}}

/* Explicit white checkmark; preserve the native checkbox interaction and keyboard focus. */
#trc-complete .shipping-parcel-option .shipping-parcel-checkbox{appearance:none;-webkit-appearance:none;border:1px solid var(--p-line);border-radius:3px;background-color:#fff;background-position:center;background-repeat:no-repeat;background-size:14px 14px}
#trc-complete .shipping-parcel-option .shipping-parcel-checkbox:checked{border-color:var(--brand-primary);background-color:var(--brand-primary);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 6' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
@media(forced-colors:active){#trc-complete .shipping-parcel-option .shipping-parcel-checkbox{appearance:auto;-webkit-appearance:auto;background-image:none}}

/* Compact response promise with a decorative clock; both helper paragraphs use muted text. */
#trc-complete .response-time{display:flex;align-items:center;gap:7px}
#trc-complete .response-time>.portal-icon{width:16px;height:16px;flex:0 0 16px;color:inherit}
/* Balance support form whitespace: lower the introduction slightly, reduce the bottom inset. */
#trc-complete :is(#dialog-shipping,#dialog-product,#dialog-contact){padding-top:40px}
#trc-complete :is(#dialog-shipping,#dialog-product,#dialog-contact) .detail-body{max-height:calc(90dvh - 42px);padding-bottom:48px}
@media(max-width:650px){#trc-complete :is(#dialog-shipping,#dialog-product,#dialog-contact) .detail-body{max-height:calc(94dvh - 42px)}}

/* Conditional advice remains a form step; hidden siblings must not suppress separators. */
#trc-complete .report-form>.report-step~.report-step{border-top:1px solid var(--p-line);padding-top:24px}
#trc-complete .report-advice>.portal-info-box{margin:0}

/* Keep a consistent title-to-copy gap across lookup, action, support and receipt dialogs. */
#trc-complete .portal-dialog .report-intro>h1,
#trc-complete .portal-dialog .detail-body>h2,
#trc-complete .portal-dialog .submission-receipt>h2{margin-bottom:16px}
#trc-complete .portal-dialog .report-intro>h1+p,
#trc-complete .portal-dialog .detail-body>h2+p,
#trc-complete .portal-dialog .submission-receipt>h2+p{margin-top:0}

/* Controls inside follow-up headings must not inherit the heading weight. */
#trc-complete .report-form select{font-weight:400}
/* Native optgroups default to bold; options must not inherit that heading weight. */
#trc-complete .report-form select optgroup{font-weight:600;font-style:normal}
#trc-complete .report-form select option{font-weight:400;font-style:normal}
#trc-complete .report-form select option[hidden]{display:none}

/* Separate self-service shortcuts from the topic explanation. */
#trc-complete .portal-info-box .advice-actions{margin-top:16px}
/* One shared gap prevents paragraph resets and row margins from collapsing the advice copy. */
#trc-complete .report-advice>.portal-info-box>div{display:flex;flex-direction:column;gap:18px}
#trc-complete .report-advice>.portal-info-box>div>h3,
#trc-complete .report-advice>.portal-info-box>div>p,
#trc-complete .report-advice>.portal-info-box>div>.advice-actions{margin:0}

/* Return timelines reuse outgoing parcel history; pending milestones never imply receipt. */
#trc-complete .return-pending{opacity:.55}
#trc-complete .return-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:24px;padding-top:20px}
#trc-complete .return-actions button,#trc-complete .return-actions .action-link{margin:0}
#trc-complete .return-card .parcel-identity{min-width:0;overflow-wrap:anywhere}

/* Return progress uses the shared info panel and compact, non-interactive status pills. */
#trc-complete .return-item-status{display:inline-flex;align-items:center;gap:5px;margin-top:6px;padding:4px 8px;border:1px solid var(--p-line);border-radius:999px;background:var(--p-soft);font-size:12px;line-height:1.3;font-weight:500}
#trc-complete .return-item-status .portal-icon{width:13px;height:13px}

/* Mobile audit: give compact secondary actions a comfortable touch target. */
@media(max-width:650px){
 #trc-complete .portal-file-list button{min-width:44px;min-height:44px}
 #trc-complete .order-meta button{min-height:44px}
}

/* Secondary lookup help reads as part of the explanation, not as another action button. */
#trc-complete .lookup-more a.lookup-help-link{display:inline;color:inherit;text-decoration:underline;text-underline-offset:3px;font:inherit;overflow-wrap:anywhere}
