/* STEP 4.1 — Composition candidate. No palette, font, shell or column changes. */
.ex-compare{display:flex;gap:2px;align-items:center;padding:3px;border-radius:8px;background:#F0F3F5;font-family:Arial,sans-serif;flex:none}
.ex-compare button{border:0;background:none;color:#505F6C;padding:5px 10px;border-radius:5px;font:500 12px/18px Arial,sans-serif;cursor:pointer;white-space:nowrap}
.ex-compare button[aria-pressed=true]{background:#fff;color:#202D36;box-shadow:0 1px 3px rgba(32,45,54,.09)}
.ex-check{display:inline-flex;gap:6px;align-items:center;font:12px/18px Arial,sans-serif;color:#505F6C;cursor:pointer;white-space:nowrap}.ex-check input{accent-color:var(--c-action);width:15px;height:15px;margin:0}
.ex-stage-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.sh-lab-bottom{flex-wrap:wrap}
.ex-toolbar{display:contents}
html#shellDemo[data-reference=after] #listScreen.ref-page .sh-page-heading{margin-bottom:20px}
html#shellDemo[data-reference=after] #listScreen.ref-page .ex-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:24px}
html#shellDemo[data-reference=after] #listScreen.ref-page #favTabs{margin:0!important;flex:none}
html#shellDemo[data-reference=after] #listScreen.ref-page #localTools{margin:0;gap:12px;flex:0 1 390px;justify-content:flex-end}
html#shellDemo[data-reference=after] #listScreen.ref-page .sh-local-search{width:100%;min-width:180px}
html#shellDemo[data-reference=after] #listScreen.ref-page #resultCount:not(.ex-query-result){display:none}
html#shellDemo[data-reference=after] #listScreen.ref-page #shCardGrid{align-items:stretch}
.ex-test-note{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--c-info-bg);color:var(--c-info);border-radius:8px;margin:0 0 16px;font-size:13px;line-height:20px}
.ex-test-note .i{width:18px;height:18px;flex:none}
/* Only the reference cards get this composition. Legacy cards elsewhere are untouched. */
html#shellDemo .app .ex-card{padding:0!important;display:flex!important;flex-direction:column!important;min-width:0;overflow:hidden;border:1px solid var(--c-border)!important;border-radius:12px!important;background:var(--c-surface)!important;box-shadow:0 1px 2px rgba(32,45,54,.035),0 5px 14px rgba(32,45,54,.035)!important;transform:none!important;transition:border-color .16s,box-shadow .16s}
html#shellDemo .app .ex-card:hover{border-color:var(--c-border)!important;transform:none!important}
.ex-media{position:relative;margin:8px 8px 0;border-radius:8px;overflow:hidden;aspect-ratio:16/9;min-height:168px;max-height:224px;background:var(--c-subtle);flex:none}
.ex-media-open{display:block;position:absolute;inset:0;border:0;padding:0;margin:0;background:transparent;width:100%;height:100%;cursor:pointer;color:var(--c-muted);border-radius:8px}
.ex-media img{width:100%;height:100%;display:block;object-fit:cover}
html#shellDemo .app .ex-media .fav{position:absolute!important;top:8px!important;right:8px!important;left:auto!important;bottom:auto!important;margin:0!important;z-index:1;width:40px!important;height:40px!important;border-radius:8px!important;box-shadow:none!important}
html#shellDemo .app .ex-media-open:focus-visible{outline:2px solid var(--c-focus)!important;outline-offset:-3px!important;box-shadow:none!important}
.ex-media-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;font-size:13px;color:var(--c-muted);line-height:20px}.ex-media-empty .i{width:28px;height:28px;color:var(--c-icon-ink)}
.ex-body{padding:16px 20px 20px;display:flex;flex-direction:column;flex:1;min-width:0}
.ex-identity{min-width:0}
html#shellDemo .ex-title{font-size:18px!important;line-height:25px!important;font-weight:600!important;letter-spacing:-.015em;margin:0;color:var(--c-text)!important;overflow-wrap:anywhere}
html#shellDemo .ex-title button{display:inline;padding:0;border:0;background:none;text-align:left;font:inherit;color:inherit;cursor:pointer;border-radius:3px;max-width:100%;overflow-wrap:anywhere}
html#shellDemo .ex-title button:hover{color:var(--c-content-action-ink)}
.ex-byline{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:8px;min-width:0}
html#shellDemo .ex-byline .ex-developer{border:0;background:none;padding:0;max-width:100%;font-size:13px!important;line-height:20px!important;font-weight:400!important;color:var(--c-content-action-ink)!important;text-align:left;cursor:pointer;overflow-wrap:anywhere;min-width:0}
.ex-class{background:var(--c-badge-bg,var(--c-subtle));color:var(--c-muted);border-radius:5px;white-space:nowrap;font-size:12px;line-height:16px;padding:3px 7px;flex:none}
.ex-facts{margin-top:14px;display:grid;gap:6px}
.ex-fact{display:flex;align-items:flex-start;gap:7px;margin:0;color:var(--c-text-secondary);font-size:13px;line-height:20px;min-width:0;overflow-wrap:anywhere}
.ex-fact>.i{width:15px;height:15px;margin-top:2px;flex:none;color:var(--c-icon-ink)}
.ex-fact-parts{display:flex;gap:6px 10px;flex-wrap:wrap}.ex-blocks{display:inline-flex;gap:10px;color:var(--c-muted)}.ex-blocks:before{content:'·';color:var(--c-muted)}
.ex-offer{margin-top:auto;padding-top:20px}
html#shellDemo .ex-price{font-size:20px!important;line-height:28px!important;font-weight:700!important;letter-spacing:-.018em!important;color:var(--c-text)!important;margin:0;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;font-variant-numeric:tabular-nums lining-nums}
.ex-price .ex-from{font-size:13px;line-height:20px;font-weight:400;color:var(--c-muted);letter-spacing:0}
.ex-price .ex-number{white-space:nowrap}
html#shellDemo .ex-price-empty{font-size:18px!important;line-height:28px!important;font-weight:600!important;letter-spacing:-.01em!important;margin:0;color:var(--c-text)}
.ex-availability{font-size:13px;line-height:20px;margin:4px 0 0;color:var(--c-text-secondary);display:flex;align-items:center;gap:6px}
.ex-availability strong{font-size:inherit;font-weight:600;color:var(--c-text)}
.ex-availability .i{width:14px;height:14px;flex:none;color:var(--c-muted)}
.ex-card-actions{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:8px;margin-top:16px}
html#shellDemo .app .ex-card-actions .btn{margin:0!important;width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;padding:0 12px!important;border-radius:8px!important;font-size:13px!important;line-height:20px!important;font-weight:500!important;box-shadow:none!important;transform:none!important;white-space:normal}
html#shellDemo .app .ex-card-actions .ex-main-action{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;background:var(--c-content-action-bg,#fff)!important;border:1px solid var(--c-content-action-border)!important;color:var(--c-content-action-ink)!important}
html#shellDemo .app .ex-card-actions .ex-main-action:hover{background:var(--c-content-action-hover)!important;border-color:var(--c-content-action-hover-border)!important}
html#shellDemo .app .ex-card-actions .ex-main-action .i{width:17px;height:17px;flex:none}
html#shellDemo .app .ex-card-actions .ex-pdf{display:grid!important;place-items:center;padding:0!important;background:var(--c-subtle)!important;color:var(--c-muted)!important;border:1px solid var(--c-border)!important;opacity:1!important;cursor:help}
html#shellDemo .app .ex-card-actions .ex-pdf .i{width:18px;height:18px}
html#shellDemo .app .ex-card-actions .ex-pdf:hover{background:var(--c-hover)!important}
html#shellDemo .ex-card-actions .btn:focus-visible,html#shellDemo .ex-title button:focus-visible,html#shellDemo .ex-developer:focus-visible{outline:2px solid var(--c-focus)!important;outline-offset:2px!important;box-shadow:none!important}
html#shellDemo .ex-card-actions .btn:active{transform:none!important}
/* Linked detail is a functional preview, not acceptance of the future detail page. */
.ex-object-meta{font-size:13px;line-height:20px;color:var(--c-muted);margin:0 0 16px!important}
.ex-object-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px;border-radius:8px;background:var(--c-subtle);margin-bottom:20px}
.ex-object-summary div{display:flex;flex-direction:column;gap:4px}.ex-object-summary small{font-size:12px;color:var(--c-muted)}.ex-object-summary strong{font-size:14px;font-weight:600;line-height:21px}
.ex-object-title{font-size:18px;line-height:25px;font-weight:600;margin:24px 0 12px!important}
.ex-object-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px 0;border-top:1px solid var(--c-border);align-items:center}
.ex-object-row strong{font-size:14px;line-height:21px;font-weight:600;display:block}.ex-object-row p{font-size:13px!important;line-height:20px!important;margin:4px 0!important}.ex-object-row small{font-size:12px;color:var(--c-muted)}
.ex-data-note{font-size:12px!important;line-height:18px!important;color:var(--c-muted)!important;margin:16px 0 0!important}
.ex-object-empty{background:var(--c-subtle);border-radius:8px;padding:16px;margin:16px 0}
.ex-test-caption{display:inline-block;padding:4px 8px;border-radius:5px;background:var(--c-info-bg);font-size:12px;color:var(--c-info);margin-bottom:12px}
html#shellDemo .ex-toast-undo{margin-top:7px;padding:0;background:none;border:0;color:var(--c-content-action-ink);font:600 13px/20px inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.ex-modal-demo-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 4px}
@media(min-width:1250px){html#shellDemo[data-reference=after] #listScreen.ref-page #localTools{flex-basis:350px}}
@media(max-width:1100px){html#shellDemo[data-reference=after] #listScreen.ref-page .ex-toolbar{gap:14px}html#shellDemo[data-reference=after] #listScreen.ref-page #localTools{flex:1 1 280px}.ex-byline{gap:8px}}
@media(max-width:800px){.ex-media{min-height:168px}.ex-card-actions{grid-template-columns:minmax(0,1fr) 44px}html#shellDemo .app .ex-card-actions .btn{height:44px!important;min-height:44px!important}html#shellDemo .app .ex-media .fav{width:44px!important;height:44px!important}.ex-stage-controls{gap:8px}.ex-check{font-size:11px}.sh-dock{max-width:calc(100vw - 24px);flex-wrap:wrap;gap:5px}.sh-dock #dockFont{display:none}}
@media(max-width:540px){html#shellDemo[data-reference=after] #listScreen.ref-page .ex-toolbar{display:block;margin-bottom:20px}html#shellDemo[data-reference=after] #listScreen.ref-page #favTabs{display:flex!important;width:100%!important}html#shellDemo[data-reference=after] #listScreen.ref-page #localTools{margin-top:14px}.ex-body{padding:16px 20px 20px}.ex-object-row{grid-template-columns:1fr;align-items:start}.ex-object-row>.btn{justify-self:start}.ex-object-summary{grid-template-columns:1fr}.sh-lab-description{display:none}.ex-test-note{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.ex-card,.ex-card *{transition:none!important}}
/* Reference preview keeps its close control outside the single body scroll. */
html#shellDemo #objectDialog.ex-preview[open]{display:flex;flex-direction:column;overflow:hidden}
html#shellDemo #objectDialog.ex-preview .sh-modal-head{flex:none}
html#shellDemo #objectDialog.ex-preview .sh-object-body{overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--c-scroll) transparent}
html#shellDemo #objectDialog.ex-preview .sh-object-body>img{max-height:200px;object-fit:cover}
html#shellDemo .ex-toast-undo{font-family:inherit;font-weight:600;font-size:13px;line-height:20px}
html#shellDemo .app .ex-card[hidden]{display:none!important}
