/* Scoped to the latest strip and updates page; no repository or main card overrides. */
.wrap.latest-section {
  margin-block: 28px 20px;
  padding-inline: 24px;
  min-width: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.latest-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.latest-heading h2 { margin:0; font-size:clamp(19px,4.8vw,24px); }
.latest-all { display:inline-flex; align-items:center; min-height:44px; color:#bccbff; font-size:14px; font-weight:700; text-decoration:none; white-space:nowrap; }
.latest-all:hover { color:#e0d7ff; }
.latest-scroll-container {
  display:flex; gap:12px; width:100%; min-width:0; overflow-x:auto;
  padding:5px 0 14px; scroll-snap-type:x mandatory; scroll-padding-inline:0;
  overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.latest-scroll-container::-webkit-scrollbar { display:none; }
.latest-card {
  flex:0 0 232px; min-width:0; display:flex; flex-direction:column; gap:10px;
  padding:16px; border-radius:21px; scroll-snap-align:start;
  background:radial-gradient(ellipse at 100% 0%,rgba(113,133,243,.19),transparent 70%),linear-gradient(145deg,rgba(28,42,69,.96),rgba(17,26,44,.95));
  border:1px solid rgba(143,163,234,.24); box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  color:#edf2ff; text-decoration:none; transition:transform .18s ease,border-color .18s ease;
}
.latest-card:nth-child(even) { background:radial-gradient(ellipse at 100% 0%,rgba(145,110,224,.18),transparent 70%),linear-gradient(145deg,#26233f,#141c30); border-color:rgba(175,143,235,.24); }
.latest-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.update-icon { width:64px; height:64px; position:relative; flex:none; display:grid; place-items:center; border-radius:17px; background:#253858; color:#ccd9ff; box-shadow:0 0 20px rgba(107,122,229,.13); }
.update-icon img { position:absolute; inset:0; width:64px; height:64px; object-fit:cover; border-radius:inherit; }
.update-badge { display:inline-flex; align-items:center; padding:3px 8px; border:1px solid rgba(168,150,245,.28); border-radius:20px; font-size:11px; color:#ddd3ff; background:rgba(126,103,205,.12); white-space:nowrap; }
.latest-card-name { font-size:15px; line-height:1.5; height:45px; margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.latest-card-meta { font-size:12px; color:#b7c4de; min-width:0; }
.latest-card-meta p { margin:0; overflow-wrap:anywhere; }
.update-date { display:block; color:#b1bed5; font-size:12px; direction:ltr; text-align:start; }
.update-details { display:flex; align-items:center; justify-content:center; margin-top:auto; min-height:44px; padding:6px 12px; border:1px solid rgba(120,164,255,.28); border-radius:12px; background:linear-gradient(135deg,#294c91,#34417e); font-size:13px; font-weight:700; }
.latest-navigation { display:flex; gap:8px; justify-content:flex-end; margin-top:4px; }
.latest-navigation[hidden] { display:none; }
.latest-navigation button { width:44px; height:44px; padding:0; border:1px solid #425078; border-radius:13px; background:#1b2540; color:#d4ddff; font-size:20px; cursor:pointer; }
.latest-navigation button:disabled { opacity:.35; cursor:default; }
@media (hover:hover) { .latest-card:hover { transform:translateY(-2px); border-color:rgba(173,163,255,.6); } }
@media (max-width:600px) {
  .wrap.latest-section { padding-inline:8px; }
  .latest-card { flex-basis:clamp(232px,72%,286px); }
  .latest-navigation { display:none; }
}
.updates-page { max-width:1080px; margin-inline:auto; padding:24px 18px 56px; }
.updates-page h1 { font-size:clamp(25px,6vw,36px); margin:0 0 8px; scroll-margin-top:24px; }
.updates-intro { color:#b0bdd4; margin:0 0 24px; }
.updates-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:20px; }
.updates-search { flex:1 1 240px; min-width:0; }
.updates-search label { display:block; font-size:13px; color:#bbc7df; margin-bottom:6px; }
.updates-search input { width:100%; min-height:46px; padding:10px 14px; border:1px solid #3a4972; border-radius:14px; background:#141f34; color:#eef2ff; font:inherit; }
.updates-filters { display:flex; gap:6px; flex-wrap:wrap; }
.updates-filters button { min-height:44px; padding:8px 15px; border-radius:12px; border:1px solid #3d4665; background:#182038; color:#c7d1e8; font:inherit; cursor:pointer; }
.updates-filters button[aria-pressed=true] { background:linear-gradient(135deg,#304b86,#51417f); border-color:#7b86c8; color:white; }
.updates-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:1fr; gap:14px; scroll-margin-top:24px; }
.updates-grid .local-app-card { min-width:0; cursor:pointer; }
.updates-grid .local-card-meta .update-date { flex-basis:100%; margin-top:5px; }
.updates-grid .local-card-name { -webkit-line-clamp:2; min-height:42px; }
.updates-status { color:#b8c6df; }
.updates-status:empty { display:none; }
@media (max-width:700px) { .updates-grid { grid-template-columns:minmax(0,1fr); } }
@media (max-width:600px) { .updates-page { padding-inline:8px; } .updates-page .updates-toolbar { gap:16px; } }
@media (prefers-reduced-motion:reduce) {
  .latest-scroll-container { scroll-behavior:auto; }
  .latest-card { transition:none; }
  .latest-card:hover { transform:none; }
}
