
/* 4.1 r2 — seven targeted comments, no new palette or global components. */
/* Both comparison modes now use the previous 4.1 screen frame. */
html#shellDemo #listScreen.ref-page .sh-page-heading{margin-bottom:20px}
html#shellDemo #listScreen.ref-page .ex-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:24px}
html#shellDemo #listScreen.ref-page #favTabs{margin:0!important;flex:none}
html#shellDemo #listScreen.ref-page #localTools{margin:0;gap:12px;flex:0 1 390px;justify-content:flex-end}
html#shellDemo #listScreen.ref-page .sh-local-search{width:100%;min-width:180px}
html#shellDemo #listScreen.ref-page #resultCount:not(.ex-query-result){display:none}
html#shellDemo[data-reference=after] #listScreen.ref-page .sh-list-footer{display:none!important}
.ex-placement{display:inline-flex;align-items:center;gap:6px;font:12px/18px Arial,sans-serif;color:#505F6C;white-space:nowrap}
.ex-placement select{background:#fff;border:1px solid #CFD6DC;border-radius:6px;color:#202D36;font:12px/18px Arial,sans-serif;padding:4px 26px 4px 8px;max-width:170px}
.ex-card--v2 .ex-media{isolation:isolate;touch-action:pan-y pinch-zoom}
.ex-card--v2 .ex-media::after{content:'';pointer-events:none;position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,rgba(16,30,40,.09),transparent 29%,transparent 72%,rgba(16,30,40,.12))}
.ex-card--v2 .ex-media.ex-no-photo::after{display:none}
.ex-card--v2 .ex-photo-class{position:absolute;left:12px;top:12px;z-index:2;pointer-events:none;background:rgba(255,255,255,.58);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#344550;font-size:12px;line-height:16px;font-weight:500;padding:5px 9px;border:0;border-radius:6px;box-shadow:none;max-width:calc(100% - 76px);overflow:hidden;text-overflow:ellipsis}
html#shellDemo .app .ex-card--v2 .ex-media .fav.ex-favorite{width:40px!important;height:40px!important;top:6px!important;right:6px!important;z-index:3!important;padding:8px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;transform:none!important;opacity:1!important;color:white!important;cursor:pointer}
html#shellDemo .app .ex-card--v2 .fav.ex-favorite .i{width:23px!important;height:23px!important;stroke:rgba(255,255,255,.48)!important;stroke-width:1.2!important;fill:rgba(29,51,65,.10)!important;filter:drop-shadow(0 1px 2px rgba(11,29,39,.22));transform:none!important}
html#shellDemo .app .ex-card--v2 .fav.ex-favorite[aria-pressed=true] .i{fill:#BF435F!important;stroke:rgba(255,255,255,.92)!important;stroke-width:1.15!important;filter:drop-shadow(0 1px 2px rgba(11,29,39,.2))}
html#shellDemo .app .ex-card--v2 .fav.ex-favorite:hover{background:rgba(255,255,255,.10)!important}
html#shellDemo .app .ex-card--v2 .fav.ex-favorite:focus-visible{outline:2px solid white!important;outline-offset:-2px!important;background:rgba(0,54,68,.24)!important}
html#shellDemo .app .ex-card--v2 .ex-no-photo .fav.ex-favorite .i{stroke:#A3AEB7!important;filter:none}
html#shellDemo .app .ex-card--v2 .ex-no-photo .fav.ex-favorite[aria-pressed=true] .i{stroke:#BF435F!important;fill:#BF435F!important}
.ex-card--v2 .ex-title-row{display:flex;align-items:flex-start;gap:10px;min-width:0}
.ex-card--v2 .ex-title-row h2{min-width:0;flex:1}
.ex-card--v2 .ex-title-class{display:none;margin-top:3px;background:var(--c-subtle)}
html[data-badge-place=title] .ex-card--v2 .ex-title-class{display:inline-flex}
html[data-badge-place=title] .ex-card--v2 .ex-photo-class{display:none}
.ex-card--v2 .ex-byline{justify-content:flex-start;align-items:baseline;gap:4px 6px;flex-wrap:wrap;margin-top:8px}
.ex-developer-label{color:var(--c-muted);font-size:12px;line-height:20px;font-weight:400}
.ex-card--v2 .ex-facts{margin-top:14px}
.ex-slide-arrow{position:absolute;top:50%;width:44px;height:44px;transform:translateY(-50%);z-index:2;background:none;border:0;display:grid;place-items:center;padding:0;color:#243947;cursor:pointer;opacity:0;transition:opacity .12s}
.ex-slide-arrow:before{content:'';position:absolute;inset:6px;border-radius:50%;background:rgba(255,255,255,.87);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);box-shadow:0 1px 3px rgba(10,30,40,.10)}
.ex-slide-arrow .i{position:relative;width:17px;height:17px;stroke-width:1.7}
.ex-slide-prev{left:2px}.ex-slide-next{right:2px}
.ex-media:hover .ex-slide-arrow,.ex-media:focus-within .ex-slide-arrow{opacity:1}
.ex-slide-arrow:disabled{pointer-events:none;visibility:hidden}
.ex-slide-arrow:focus-visible{outline:2px solid white;outline-offset:-3px;border-radius:8px;opacity:1}
.ex-slide-dots{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);z-index:2;display:flex;padding:0 3px;background:rgba(18,37,50,.24);border-radius:16px;backdrop-filter:blur(6px)}
.ex-slide-dots button{width:24px;height:24px;padding:0;display:grid;place-items:center;background:none;border:0;cursor:pointer;border-radius:50%}
.ex-slide-dots button span{width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,.6);box-shadow:0 0 1px rgba(0,0,0,.2)}
.ex-slide-dots button[aria-pressed=true] span{width:13px;border-radius:3px;background:#fff}
.ex-slide-dots button:focus-visible{outline:2px solid white;outline-offset:0}
.ex-photo-count{position:absolute;bottom:12px;right:12px;padding:2px 5px;border-radius:4px;background:rgba(18,37,50,.28);color:white;font-size:12px;line-height:16px;font-weight:500;z-index:2;pointer-events:none;backdrop-filter:blur(6px)}
.ex-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* The object action and the file have separate semantic roles, not one combined button. */
html#shellDemo .app .ex-card--v2 .ex-card-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
html#shellDemo .app .ex-card--v2 .ex-card-actions .ex-main-action{justify-content:center!important;font-weight:500!important;white-space:nowrap!important}
html#shellDemo .app .ex-document{appearance:none;display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:48px;padding:7px 12px;border:1px solid var(--c-border);border-radius:8px;background:var(--c-subtle);text-align:left;color:var(--c-text-secondary);font-family:var(--ui-font),Arial,sans-serif;cursor:pointer;box-shadow:none;transition:background-color .14s,border-color .14s,box-shadow .14s,transform .14s}
html#shellDemo .app .ex-document:hover{background:#FFF7F9;border-color:#E3C4CC;box-shadow:0 4px 14px rgba(203,37,77,.10)}
.ex-document .ex-pdf-mark{width:24px;height:26px;flex:none;color:#CB254D}
.ex-document-copy{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.ex-document-name{font-size:13px;line-height:18px;font-weight:500;color:var(--c-text)}
.ex-document-note{font-size:12px;line-height:16px;font-weight:400;color:var(--c-muted);overflow-wrap:anywhere}.ex-document-size{font-size:12px;line-height:16px;font-weight:600;color:#7A8791;white-space:nowrap;align-self:center}
html#shellDemo .app .ex-document[aria-disabled=true]{background:var(--c-surface);color:var(--c-muted);border-color:var(--c-border);cursor:help}
.ex-document[aria-disabled=true] .ex-pdf-mark{color:#85929C}
.ex-document[aria-disabled=true] .ex-document-name{color:var(--c-text-secondary)}
html#shellDemo .app .ex-document:focus-visible{outline:2px solid var(--c-focus);outline-offset:2px}
/* The demo PDF is separate from the complex preview and doesn't replace its content. */
html#shellDemo .ex-pdf-dialog{padding:0;border:1px solid var(--c-border);border-radius:16px;background:var(--c-surface);width:min(920px,calc(100vw - 40px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 40px);color:var(--c-text);overflow:hidden;box-shadow:0 18px 50px rgba(20,36,49,.17)}
html#shellDemo .ex-pdf-dialog[open]{display:flex;flex-direction:column}
.ex-pdf-dialog::backdrop{background:rgba(16,31,44,.34)}
.ex-pdf-dialog .sh-modal-head{flex:none}
#exPdfTitle{font-size:18px;line-height:25px;font-weight:600;margin:0}
.ex-pdf-warning{padding:0 24px 14px;font-size:12px;line-height:18px;color:var(--c-muted);flex:none}
.ex-pdf-warning strong{font-weight:600;color:var(--c-text-secondary)}
.ex-pdf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 24px;background:var(--c-subtle);flex:none}
.ex-pdf-paging,.ex-pdf-tools{display:flex;align-items:center;gap:8px}
.ex-pdf-toolbar .btn{font-size:13px}
#exPdfPosition{font-size:13px;font-variant-numeric:tabular-nums;min-width:48px;text-align:center}
#exPdfViewport{overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#B3BCC4 #EEF1F4;min-height:0;flex:1;background:#EEF1F4;padding:20px;max-height:66dvh}
#exPdfPage{display:block;width:min(100%,630px);height:auto;margin:auto;background:white;box-shadow:0 2px 12px rgba(20,36,49,.1)}
#exPdfNative{text-decoration:none}
.ex-source-note{font-size:12px;line-height:18px;color:var(--c-muted);margin:12px 0}
@media(min-width:1250px){html#shellDemo #listScreen.ref-page #localTools{flex-basis:350px}}
@media(max-width:1100px){html#shellDemo #listScreen.ref-page .ex-toolbar{gap:14px}html#shellDemo #listScreen.ref-page #localTools{flex:1 1 280px}}
@media(hover:none),(pointer:coarse){.ex-slide-arrow{opacity:1}.ex-slide-dots button{width:28px;height:28px}}
@media(max-width:800px){html#shellDemo .app .ex-card--v2 .ex-media .fav.ex-favorite{width:44px!important;height:44px!important;top:4px!important;right:4px!important;padding:10px!important}.ex-slide-arrow{opacity:1}.ex-pdf-toolbar{padding:10px 16px}.ex-pdf-warning{padding:0 16px 12px}.ex-pdf-dialog .sh-modal-head{padding:16px}#exPdfViewport{padding:10px}.ex-pdf-tools{flex-wrap:wrap}}
@media(max-width:480px){html#shellDemo #listScreen.ref-page #localTools{flex-basis:100%}.ex-placement{max-width:100%}.ex-pdf-dialog{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important}.ex-pdf-toolbar{gap:8px}.ex-pdf-paging{width:100%;justify-content:center}.ex-pdf-tools{width:100%;justify-content:center}#exPdfNative{display:none}}
@media(prefers-reduced-motion:reduce){.ex-slide-arrow,.ex-document{transition:none!important}}

/* 4.1 r3 — quieter media controls and clearer document hover. */
.ex-slide-arrow{display:none!important}
.ex-slide-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);z-index:2;display:flex;gap:4px;padding:4px 6px;background:rgba(255,255,255,.74);border:1px solid rgba(255,255,255,.28);border-radius:999px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 6px 14px rgba(16,31,44,.08)}
.ex-slide-dots button{width:14px;height:14px;padding:0;display:grid;place-items:center;background:none;border:0;cursor:pointer;border-radius:50%}
.ex-slide-dots button span{width:4px;height:4px;border-radius:50%;background:rgba(36,57,71,.36);box-shadow:none;transition:width .14s,height .14s,background-color .14s}
.ex-slide-dots button[aria-pressed=true] span{width:14px;height:4px;border-radius:999px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.03)}
.ex-slide-dots button:hover span{background:rgba(36,57,71,.54)}
.ex-slide-dots button:focus-visible{outline:2px solid rgba(255,255,255,.92);outline-offset:2px}
.ex-photo-count{position:absolute;top:10px;right:48px;bottom:auto;padding:3px 7px;border-radius:999px;background:rgba(16,31,44,.28);color:white;font-size:11px;line-height:16px;font-weight:500;z-index:2;pointer-events:none;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
html#shellDemo .app .ex-document:hover .ex-document-name{color:#202D36}
html#shellDemo .app .ex-document:hover .ex-document-note{color:#6B7782}
html#shellDemo .app .ex-document:hover .ex-document-size{color:#CB254D}
@media(max-width:800px){.ex-photo-count{right:52px;top:8px}.ex-slide-dots{bottom:8px}}
@media(max-width:480px){.ex-slide-dots{bottom:8px}.ex-photo-count{top:8px;right:48px}}

