/* Approved hardware-library direction. Photography stays in compact headers. */
html,body { width:100%; overflow-x:hidden; }
.app-shell { min-width:0; overflow-x:clip; background:#fff; }
.app-header,body[data-view="ladder"] .app-header { min-height:112px; padding:24px 22px; align-items:center; background:#edf0f3 url('/preview/silicon-header.jpg') center/cover no-repeat; }
.app-header h1 { color:#2864c6; font-size:28px; font-weight:800; line-height:1.2; }
.app-header .brand-kicker { margin:0 0 8px !important; font-size:11px; color:#556171; }
.app-header .brand-kicker .ui-icon { display:none; }
.app-header .icon-button { flex-shrink:0; background:rgba(255,255,255,.88); border:1px solid #e3e7ec; border-radius:6px; }
.app-header .info-button,.app-header .share-ranking { align-self:center; }
body[data-view="compare"] .app-header { min-height:88px; padding-top:16px; padding-bottom:16px; }
body[data-view="home"] .app-header { min-height:115px; padding-bottom:16px; }
body[data-view="home"] .app-header h1 { font-size:36px; }
body[data-view="home"] .brand-kicker { display:none; }
#homeView .search-wrap { position:relative; margin:0 -22px; padding:0 22px 20px; height:66px; box-sizing:border-box; border:0; border-radius:0; background:#edf0f3; }
#homeView .search-wrap input { padding-left:36px; padding-right:30px; height:46px; background:#fff; border:1px solid #dce1e7; border-radius:6px; }
#homeView .search-wrap > .ui-icon { position:absolute; top:14px; left:34px; }
#homeView .clear-search { position:absolute; top:3px; right:26px; }
.hot-searches,#homeContent > .section-heading:not(.home-ranking-heading) { display:none; }
.category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin:0 -22px; padding:12px; background:#f2f4f7; }
.category-item { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:9px; width:100%; min-width:0; height:82px; padding:8px 2px; border:0; border-radius:6px; background:transparent; }
.category-icon { display:block; width:29px; height:29px; flex-shrink:0; background:#69727e; mask:var(--category-icon) center/contain no-repeat; -webkit-mask:var(--category-icon) center/contain no-repeat; }
.category-item strong { font-size:12px; color:#596371; white-space:normal; line-height:1.4; }
.category-item.active { background:#2864c6; border:0; }
.category-item.active strong { color:#fff; }
.category-item.active .category-icon { background:#fff; }
.home-ranking-heading { margin-top:24px; }
.home-ranking-tabs button.active { background:#2864c6; color:#fff; }
.ranking-controls .ranking-option.active,.ranking-controls .platform-tabs button.active { background:#2864c6; color:#fff; }
:is(#homeView,#ladderView) .ladder-row.is-selected { background:#f8faff; box-shadow:inset 3px 0 #2864c6; }
:is(#homeView,#ladderView) .ladder-row.is-selected .rank { padding-left:5px; }
.compare-intro { padding:12px 0; margin:0; align-items:center; }
.compare-intro h2 { margin:0; font-size:14px; }
.compare-intro > div > span { display:none; }
.compare-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; width:100%; margin:0; padding:0; overflow:visible; }
.compare-product { width:100%; min-width:0; min-height:66px; padding:11px 30px 10px 10px; border:1px solid #dce1e7; border-left:3px solid var(--series); border-radius:5px; background:#f8f9fb; }
.compare-product strong { display:block; min-height:0; white-space:normal; overflow-wrap:anywhere; font-size:13px; line-height:1.35; }
.compare-product small { display:none; }
.focus-group { padding:12px 0 8px; border-bottom:1px solid #dfe4eb; }
.focus-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.focus-heading h3 { margin:0; font-size:17px; font-weight:650; }
.focus-heading > span { font-size:11px; color:#737d8b; text-align:right; }
.focus-test { margin-top:3px; color:#737d8b; font-size:10px; overflow-wrap:anywhere; }
.focus-row { display:grid; grid-template-columns:minmax(0,1fr) 88px; column-gap:10px; row-gap:4px; align-items:center; margin-top:8px; }
.focus-name { display:flex; grid-column:1; align-items:center; gap:6px; min-width:0; font-size:12px; line-height:1.4; }
.focus-name > span { min-width:0; overflow-wrap:anywhere; }
.focus-name > i { width:6px; height:6px; flex:0 0 6px; border-radius:50%; }
.focus-line { display:contents; }
.focus-track { grid-column:1; height:10px; overflow:hidden; border-radius:2px; background:#edf0f4; }
.focus-track > i { display:block; height:100%; border-radius:2px; transform-origin:left; }
.focus-score { grid-column:2; grid-row:1 / span 2; min-width:0; text-align:right; font-variant-numeric:tabular-nums; }
.focus-score strong { display:block; font-size:18px; line-height:1.2; }
.focus-score small { display:block; color:#737d8b; font-size:10px; line-height:1.4; }
.focus-source { display:block; margin-top:8px; color:#687486; font-size:10px; line-height:1.4; text-decoration:none; overflow-wrap:anywhere; }
a.focus-source { padding:2px 0; }
.save-compare-row { padding:14px 0; }
.save-compare-row .small-action { background:#fff; border:1px solid #dce3ee; }
.comparison-details { border-top:1px solid #e4e7ec; }
.comparison-details > summary { display:flex; align-items:center; justify-content:space-between; min-height:48px; list-style:none; cursor:pointer; font-size:13px; color:#485366; }
.comparison-details > summary::-webkit-details-marker { display:none; }
.comparison-details > summary .ui-icon { width:18px; height:18px; }
.icon-chevron-down { --icon:url('/preview/icons/chevron-down.svg'); }
.comparison-details[open] > summary .ui-icon { transform:rotate(180deg); }
.spec-table-wrap { width:100%; max-width:100%; overflow-x:auto; }
.loading-products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:14px; }
.loading-product { height:66px; }
.loading-group { padding:20px 0 12px; }
.loading-heading { width:96px; height:18px; margin-bottom:12px; }
.loading-score { height:38px; margin-top:9px; }
.skeleton { background:#edf0f4; animation:silicon-pulse 1.2s ease-in-out infinite alternate; }
@keyframes silicon-pulse { to { opacity:.45; } }
#retryComparison { display:block; margin:20px auto; }
.detail-heading,.rewards-card,.about-intro { padding-top:22px; }
.profile-tabs button.active { color:#2864c6; }
.bottom-nav { background:#fff; border-top:1px solid #e0e5eb; }
.compare-dock { background:#f5f7fa; border-top:1px solid #dde3eb; }
.site-footer { margin-top:24px; }
@media (max-width:360px) {
  body[data-view="home"] .app-header h1 { font-size:30px; }
  .category-item strong { font-size:11px; }
  .focus-heading h3 { font-size:16px; }
  .focus-heading > span { font-size:10px; }
  .focus-score strong { font-size:17px; }
  .focus-row { grid-template-columns:minmax(0,1fr) 85px; }
}
@media (prefers-reduced-motion:reduce) {
  .skeleton { animation:none; }
  .focus-track > i { transform:none !important; }
}
