/* The summary is a continuous page. Filters replace its contents in place. */
.summary-strip.summary-filter-strip{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:stretch;padding:0;margin-bottom:12px}
.summary-filter-strip .summary-reset-cell{display:flex;align-items:flex-start;justify-content:center;padding:22px 6px 0;border-right:1px solid var(--line)}
.summary-reset{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:7px;color:var(--muted);background:transparent}
.summary-reset svg{fill:none;stroke:currentColor;stroke-width:1.7}
.summary-reset[aria-pressed=true]{background:var(--soft);color:var(--primary);box-shadow:inset 0 0 0 1px var(--line)}
.summary-filter-strip .summary-filter-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));min-width:0;padding:0}
.summary-filter-strip .summary-count{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:9px;position:relative;min-height:106px;padding:13px 12px;border:0;border-radius:0;background:transparent}
.summary-filter-strip .summary-count+.summary-count{border-left:1px solid var(--line)}
.summary-filter-strip .summary-count[aria-pressed=true]{background:var(--soft);box-shadow:inset 0 -3px var(--primary)}
.summary-filter-strip .summary-count .summary-number{margin:0;font-size:25px;line-height:1.15;letter-spacing:-.035em;font-weight:700}
.summary-filter-strip .summary-label,.summary-filter-strip .therefore-summary-label>span:not(.therefore-wordmark){font-family:'Segoe UI Black','Arial Black','Segoe UI',sans-serif;font-size:11px;font-weight:900;line-height:1.4;letter-spacing:.025em;text-transform:uppercase;text-wrap:balance;overflow-wrap:normal;color:var(--ink)}
.summary-filter-strip .therefore-wordmark{width:100px;height:34px;max-width:100%;margin:0}
.summary-filter-strip .therefore-summary-label{display:flex;flex-direction:column;gap:3px;min-width:0;width:100%;max-width:100%}
.summary-filter-strip .therefore-summary-label>span{max-width:100%}
.summary-status{margin:0 0 14px;font-size:12px;min-height:18px;color:var(--muted)}
.summary-content{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;min-width:0}
.summary-section{margin:0;min-width:0}
.summary-section .section-heading{gap:12px;align-items:baseline;margin-bottom:4px}
.summary-section .section-heading>.hint{flex-shrink:0;white-space:nowrap}
.summary-section .case-list{min-width:0}
.summary-section .case-row-wrap:last-child{border-bottom:0}
.summary-channel-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.summary-channel-heading h2{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0}
#summary-support{display:grid;gap:18px;margin-top:20px}
#summary-support:empty{display:none}
#summary-support>.panel{margin:0}
#summary-support .summary-reports{padding-top:18px;padding-bottom:18px}
/* Compact section labels; email subjects, sender names and navigation keep their case. */
#content .page-heading h1{font-family:'Segoe UI Black','Arial Black','Segoe UI',sans-serif;font-weight:900;font-size:23px;line-height:1.25;letter-spacing:.035em;text-transform:uppercase}
#content h2:not(.case-reader>h2):not(.contact-profile h2):not(.noise-open h2),#content .panel>h3,#content :is(.case-insights,.next-action,.latest-progress,.current-synthesis,.message-full-text)>h3,#content .message-envelope-heading>h3,dialog .dialog-heading h2:not(#message-title),#message-dialog #message-content :is(.message-full-text,.message-envelope-heading)>h3{font-family:'Segoe UI Black','Arial Black','Segoe UI',sans-serif;font-size:15px;font-weight:900;line-height:1.4;letter-spacing:.035em;text-transform:uppercase}
#content :is(.analysis-history,.receipt-history,.case-reason,.secondary-cases)>summary{font-family:'Segoe UI Black','Arial Black','Segoe UI',sans-serif;font-size:13px;font-weight:900;letter-spacing:.025em;text-transform:uppercase}
@media(max-width:1200px){.summary-filter-strip .summary-filter-options{grid-template-columns:repeat(3,minmax(0,1fr))}.summary-filter-strip .summary-count{min-height:96px}.summary-filter-strip .summary-count:nth-child(4){border-left:0}.summary-filter-strip .summary-count:nth-child(n+4){border-top:1px solid var(--line)}}
@media(max-width:700px){.summary-strip.summary-filter-strip{grid-template-columns:48px minmax(0,1fr)}.summary-filter-strip .summary-reset-cell{padding-top:18px}.summary-filter-strip .summary-filter-options{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-filter-strip .summary-count{min-height:100px;padding:12px 10px;gap:8px}.summary-filter-strip .summary-count:nth-child(odd){border-left:0}.summary-filter-strip .summary-count:nth-child(even){border-left:1px solid var(--line)}.summary-filter-strip .summary-count:nth-child(n+3){border-top:1px solid var(--line)}.summary-filter-strip .summary-count:last-child{grid-column:auto;border-left:1px solid var(--line)}.summary-filter-strip .summary-count .summary-number{font-size:24px}.summary-filter-strip .summary-label,.summary-filter-strip .therefore-summary-label>span:not(.therefore-wordmark){font-size:10px}.summary-filter-strip .therefore-wordmark{width:92px;height:32px}.summary-content{gap:14px}.summary-section .section-heading{align-items:flex-start}.summary-section .section-heading h2{min-width:0}#content .page-heading h1{font-size:21px}#content h2:not(.case-reader>h2):not(.contact-profile h2):not(.noise-open h2){font-size:14px}}
@media(forced-colors:active){.summary-filter-strip [aria-pressed=true]{outline:2px solid Highlight;outline-offset:-3px;box-shadow:none}.summary-reset{color:ButtonText}.summary-filter-strip .summary-count{color:ButtonText}}
@media(max-width:400px){.summary-filter-strip .summary-count{padding-left:6px;padding-right:6px}.summary-filter-strip .therefore-wordmark{width:86px}}

/* Subrayado de los títulos de sección con los tonos de la barra lateral. */
#content>.page-heading h1{position:relative;width:fit-content;max-width:100%;--heading-rule-start:var(--side)}
#content>.page-heading h1::after{content:'';position:absolute;left:0;bottom:-10px;width:min(100%,220px);height:3px;border-radius:2px;background:linear-gradient(90deg,var(--heading-rule-start) 0%,var(--sidehover) 65%,transparent 100%);pointer-events:none}
:root[data-theme=dark] #content>.page-heading h1{--heading-rule-start:var(--sidehover)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) #content>.page-heading h1{--heading-rule-start:var(--sidehover)}}
@media(forced-colors:active){#content>.page-heading h1::after{background:CanvasText;forced-color-adjust:none}}

/* The report card occupies only its own height; following subjects reclaim the width. */
.summary-flow{display:flex;flex-direction:column;min-width:0}
.summary-flow>#summary-results{order:1}
.summary-flow>#summary-support{order:2;margin-top:20px;min-width:0}
.summary-flow>#summary-finance{order:3;min-width:0}
#summary-finance:empty{display:none}
.summary-reports .report-item{display:flex;align-items:center;gap:10px;min-width:0}
.summary-reports .report-item>div{flex:1;min-width:0}
.summary-reports .report-item strong{display:block;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.summary-reports .report-open{flex-shrink:0}
@media(min-width:1001px){
 .summary-flow{display:flow-root}
 .summary-flow>#summary-support{float:right;width:clamp(270px,30%,350px);margin:0 0 22px 22px;display:block}
 .summary-flow>#summary-support[hidden]{display:none}
 .summary-flow>.summary-content{display:block}
 .summary-flow .summary-section{display:block;padding:0;border:0;box-shadow:none;background:none;margin:0 0 24px}
 .summary-flow .summary-section>.section-heading{display:flex;min-height:30px;margin:0 0 10px}
 .summary-flow .case-list{display:block}
 .summary-flow .case-row-wrap,.summary-flow .search-result{display:flow-root;min-width:0}
 .summary-flow .case-row-wrap{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:0 18px;margin:0 0 10px}
 .summary-flow .summary-section .case-row-wrap:last-child{border-bottom:1px solid var(--line)}
 .summary-flow .summary-section .empty,.summary-flow .summary-content>[role=status],.summary-flow .summary-content>[role=alert]{display:flow-root}
 .summary-flow>#summary-finance{clear:both}
 .summary-flow .summary-reports{padding:18px}
}

/* A single horizontal report card below the summary controls; subjects keep full width. */
#summary-support{display:block;width:min(100%,960px);min-width:0;margin:4px 0 18px auto;float:none}
#summary-support[hidden]{display:none}
#summary-support .summary-reports{padding:12px 16px}
#summary-support .section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
#summary-support .section-heading h2{margin:0;font-size:12px;line-height:1.4}
#summary-support #all-reports{flex-shrink:0;min-height:32px;margin:0;padding:5px 0;font-size:12px}
.summary-report-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-width:0}
#summary-support .report-item{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:6px;min-width:0;min-height:64px;padding:3px 12px;border:0;border-left:1px solid var(--line)}
#summary-support .report-item:first-child{border-left:0;padding-left:0}
#summary-support .report-item:last-child{padding-right:0}
#summary-support .report-item strong{font-size:12px;line-height:1.45}
#summary-support .report-item .hint{font-size:11px;line-height:1.4}
#summary-support .summary-report-items>.empty{grid-column:1/-1;margin:0;padding:14px 0;text-align:left}
.report-open .report-acrobat{display:block;object-fit:contain;width:28px;height:32px}
.report-open{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
@media(max-width:900px){
 .summary-report-items{grid-template-columns:repeat(2,minmax(0,1fr))}
 #summary-support .report-item{padding:10px 12px}
 #summary-support .report-item:nth-child(odd){border-left:0;padding-left:0}
 #summary-support .report-item:nth-child(n+3){border-top:1px solid var(--line)}
 #summary-support .report-item:nth-child(even){padding-right:0}
}
@media(max-width:450px){
 #summary-support .summary-reports{padding:12px 14px}
 .summary-report-items{grid-template-columns:minmax(0,1fr)}
 #summary-support .report-item{padding:9px 0;border-left:0;border-top:1px solid var(--line);min-height:58px}
 #summary-support .report-item:first-child{border-top:0}
}

/* Reports and the opening section heading share one row; subject cards follow below. */
.summary-overview-heading{display:grid;grid-template-columns:minmax(210px,250px) minmax(0,1fr);gap:20px;align-items:center;margin:4px 0 14px;min-width:0}
.summary-overview-labels{min-width:0}
.summary-overview-labels .summary-status{margin:0 0 12px;min-height:0}
#summary-first-heading .section-heading{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0}
#summary-first-heading h2{margin:0;overflow-wrap:anywhere}
#summary-first-heading .hint{margin:0}
.summary-overview-heading>#summary-support{width:100%;min-width:0;margin:0;container:summary-reports/inline-size}
.summary-filter-strip .summary-label::after{height:9px}
.summary-reset svg rect:nth-child(1){fill:#2d925c;stroke:#2d925c}
.summary-reset svg rect:nth-child(2){fill:#e6912e;stroke:#e6912e}
.summary-reset svg rect:nth-child(3){fill:#8c60b8;stroke:#8c60b8}
.summary-reset svg rect:nth-child(4){fill:#3685c4;stroke:#3685c4}
@container summary-reports (max-width:680px){
 .summary-report-items{grid-template-columns:repeat(2,minmax(0,1fr))}
 #summary-support .report-item{padding:8px 10px}
 #summary-support .report-item:nth-child(odd){border-left:0;padding-left:0}
 #summary-support .report-item:nth-child(even){padding-right:0}
 #summary-support .report-item:nth-child(n+3){border-top:1px solid var(--line)}
}
@media(max-width:1000px){.summary-overview-heading{grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}}
@container summary-reports (max-width:400px){
 .summary-report-items{grid-template-columns:minmax(0,1fr)}
 #summary-support .report-item{padding:9px 0;border-left:0;border-top:1px solid var(--line)}
 #summary-support .report-item:first-child{border-top:0}
}
@media(forced-colors:active){.summary-reset svg rect{fill:ButtonText!important;stroke:ButtonText!important}}

/* Individual report cards remain inside the shared report panel. */
.summary-report-items{gap:8px}
#summary-support .summary-report-items>.report-item:nth-child(n){margin:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);min-height:76px;box-sizing:border-box}
#summary-support .summary-report-items>.report-item:focus-within{border-color:var(--primary)}
.report-acrobat-mark{display:inline-flex;position:relative;width:28px;height:32px;flex:0 0 28px}
.report-open .report-acrobat-mark .report-acrobat{position:absolute;inset:0;width:28px;height:32px;object-fit:contain}
.report-acrobat-black{opacity:1}.report-acrobat-red{opacity:0}
.report-open:is(:hover,:focus-visible) .report-acrobat-black{opacity:0}
.report-open:is(:hover,:focus-visible) .report-acrobat-red{opacity:1}
#summary-support #all-reports{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:10px;border:0;border-radius:6px;background:transparent;color:var(--primary)}
#summary-support #all-reports:hover{background:var(--soft)}
#summary-support #all-reports:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
#summary-support #all-reports svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transform:rotate(180deg)}
@media(forced-colors:active){#summary-support .summary-report-items>.report-item:nth-child(n){border-color:CanvasText}.report-acrobat-mark{forced-color-adjust:none}}

/* One native link per mini-card: its entire surface opens the same PDF. */
#summary-support .section-heading{justify-content:flex-end;gap:2px}
#summary-support .summary-report-card{color:var(--ink);text-decoration:none;cursor:pointer;transition:background-color .14s ease,border-color .14s ease}
#summary-support .summary-report-items>.summary-report-card:is(:hover,:focus-visible){background:var(--soft);border-color:var(--primary);color:var(--ink)}
#summary-support .summary-report-card:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
#summary-support .summary-report-card:is(:hover,:focus-visible) .report-acrobat-black{opacity:0}
#summary-support .summary-report-card:is(:hover,:focus-visible) .report-acrobat-red{opacity:1}
#summary-support .summary-report-card .report-open{background:transparent;pointer-events:none}
@media(prefers-reduced-motion:reduce){#summary-support .summary-report-card{transition:none}}
@media(forced-colors:active){#summary-support .summary-report-items>.summary-report-card:is(:hover,:focus-visible){border-color:Highlight;outline:2px solid Highlight;outline-offset:2px}}

/* Summary: one utility row, one filter strip, then the subjects. */
.summary-utilities{display:grid;grid-template-columns:minmax(240px,1fr) minmax(400px,1fr);gap:20px;align-items:center;margin:18px 0 16px;min-width:0}
.summary-utilities>.overview-search{width:100%;max-width:none;margin:0;min-width:0}
.summary-utilities>#summary-support{width:100%;margin:0;float:none;min-width:0;container:none}
.summary-utilities #summary-support .summary-reports{padding:10px 12px}
.summary-utilities #summary-support .section-heading{margin:0 0 6px;gap:6px;justify-content:space-between}
.summary-utilities #summary-support .section-heading h2{font-size:11px;line-height:1.3}
.summary-utilities #summary-support #all-reports{height:28px;min-height:28px;width:32px;min-width:32px;padding:5px}
.summary-utilities .summary-report-items{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.summary-utilities #summary-support .summary-report-items>.report-item:nth-child(n){grid-template-columns:minmax(0,1fr) 24px;gap:4px;padding:7px;min-height:52px}
.summary-utilities #summary-support .report-item strong{font-size:11px;line-height:1.3}
.summary-utilities #summary-support .report-item .hint{font-size:10px;line-height:1.3;margin-top:3px}
.summary-utilities #summary-support .report-open,.summary-utilities .report-acrobat-mark{width:24px;min-width:24px;min-height:28px;height:28px;flex-basis:24px}
.summary-utilities #summary-support .report-open .report-acrobat{width:24px;height:28px}
.summary-filter-strip{overflow:hidden}
.summary-filter-strip .summary-count{min-height:96px;gap:7px}
.summary-filter-strip .summary-reset-cell{align-items:center;padding-top:0}
.summary-flow .summary-section{padding:0;border:0;box-shadow:none;background:none}
.summary-flow .summary-section>.section-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 10px;padding:0 0 8px;border-bottom:1px solid var(--line)}
#content .summary-flow .summary-section>.section-heading h2{font-size:12px;line-height:1.4;margin:0}
.summary-flow .summary-section>.section-heading>.hint{border:0;padding:0;margin:0;font-size:11px}
.summary-content[data-summary-filter]:not([data-summary-filter=all]):not([data-summary-filter=therefore]) .summary-section>.section-heading{display:none}
.summary-flow .case-row-wrap{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:0 18px;margin:0 0 10px}
.summary-flow .summary-section .case-row-wrap:last-child{border-bottom:1px solid var(--line)}
.summary-flow .summary-channel-heading{justify-content:flex-end;margin:0 0 8px}
@media(max-width:1250px){.summary-utilities{grid-template-columns:minmax(0,1fr)}.summary-utilities>#summary-support{max-width:none}.summary-utilities .summary-report-items{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.summary-utilities{gap:12px;margin-top:18px}.summary-utilities .summary-report-items{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-filter-strip .summary-count{min-height:90px}.summary-flow .case-row-wrap{padding:0 14px}.summary-content{gap:10px}}

@media(max-width:700px){
 .summary-filter-strip .summary-filter-options{grid-template-columns:repeat(3,minmax(0,1fr))}
 .summary-filter-strip .summary-count:nth-child(n){border-left:1px solid var(--line);border-top:0;padding:10px 6px;min-height:92px}
 .summary-filter-strip .summary-count:nth-child(3n+1){border-left:0}
 .summary-filter-strip .summary-count:nth-child(n+4){border-top:1px solid var(--line)}
 .summary-filter-strip .summary-label{font-size:9px;line-height:1.4}
 .summary-filter-strip .summary-label::after{width:min(60px,100%)}
 .summary-filter-strip .therefore-wordmark{width:min(70px,100%);height:24px}
 .summary-filter-strip .therefore-summary-label>span:not(.therefore-wordmark){font-size:9px}
 .summary-filter-strip .summary-count .summary-number{font-size:22px}
}

/* Keep the institutional header mark above the summary utilities and reports. */
@media(min-width:701px){#content:has(>.summary-utilities)>.page-heading{min-height:56px;box-sizing:border-box;margin-bottom:0}}

.summary-filter-strip .summary-filter-options:has(.amazon-summary){grid-template-columns:repeat(7,minmax(0,1fr))}
.summary-filter-strip .amazon-summary-brand{display:grid;place-items:center;width:min(108px,100%);min-height:29px;padding:4px 6px;border-radius:5px;background:#fff;border:1px solid var(--line)}
.amazon-summary-brand img{display:block;width:100%;height:auto;object-fit:contain}
.amazon-summary-total{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 6px;color:var(--muted);font-size:11px}
.amazon-summary-total strong{color:var(--ink)}
.summary-amazon-history{min-width:0}
.summary-amazon-history .commerce-service-heading{margin:0 0 12px}
.summary-amazon-history .commerce-orders{margin-bottom:0}
@media(min-width:701px) and (max-width:1200px){
 .summary-filter-strip .summary-filter-options:has(.amazon-summary){grid-template-columns:repeat(4,minmax(0,1fr))}
 .summary-filter-strip .summary-filter-options:has(.amazon-summary) .summary-count:nth-child(4){border-left:1px solid var(--line);border-top:0}
 .summary-filter-strip .summary-filter-options:has(.amazon-summary) .summary-count:nth-child(5){border-left:0}
}
@media(max-width:700px){
 .summary-filter-strip .summary-filter-options:has(.amazon-summary){grid-template-columns:repeat(6,minmax(0,1fr))}
 .summary-filter-strip .summary-filter-options:has(.amazon-summary) .summary-count{grid-column:span 2}
 .summary-filter-strip .summary-filter-options:has(.amazon-summary) .summary-count:nth-child(n+4){grid-column:span 3}
 .summary-filter-strip .summary-filter-options:has(.amazon-summary) .summary-count:nth-child(6){border-left:0}
 .summary-filter-strip .summary-filter-options:has(.amazon-summary) .summary-count:nth-child(7){border-left:1px solid var(--line)}
}
