/* Adaptation de la démonstration web ; l'application de bureau reste intacte. */
.lib.hascover { aspect-ratio: auto; background: #202122; }
.lib.hascover .bg { position: relative; aspect-ratio: 9 / 16; }
.lib.hascover .cap { position: relative; padding: 10px 12px; background: none; }
.lib.hascover .cap span { font-size: 12px; line-height: 1.6; color: #d2d2d4; }
html:not(.hero-preview) #gridWrap { overscroll-behavior: contain; }
.web-detail-close { display: none; }
#winClose[hidden] { display: none !important; }
.hero-compact #titlebar, .hero-compact #top, .hero-compact #railCol, .hero-compact .edit { display: none; }
.hero-compact #app, .hero-compact #body { display: block; height: 100%; }
.hero-compact #gridWrap { padding: 12px; }
.hero-compact #libs { gap: 10px; }
.hero-compact .shead { font-size: 12px; gap: 8px; }
.hero-compact .shead h2 { font-size: 14px; }
@media (max-width: 360px) {
  html:not(.hero-preview) #navFwd { display: none; }
  html:not(.hero-preview) #kindPick { max-width: 100px; }
}
@media (max-width: 1024px) {
  html:not(.hero-preview) { --tb: 46px; --rail: 220px; }
  html:not(.hero-preview) #app { height: calc(100dvh - var(--tb)); }
  html:not(.hero-preview).embarque #app { height: 100dvh; }
  html:not(.hero-preview) #titlebar { padding-inline: 12px; }
  html:not(.hero-preview) #winClose { width: 44px; height: 40px; border-radius: 8px; }
  html:not(.hero-preview) #winClose svg { width: 12px; height: 12px; }
  html:not(.hero-preview) .iconbtn { width: 44px; height: 44px; }
  html:not(.hero-preview) .rrow, html:not(.hero-preview) .rsec { min-height: 44px; font-size: 14px; }
  html:not(.hero-preview) #search { font-size: 16px; }
  html:not(.hero-preview) #searchwrap { height: 44px; }
  html:not(.hero-preview) #gridWrap { padding: 16px; min-width: 0; }
  html:not(.hero-preview) #libs { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
  html:not(.hero-preview) .lib .edit { opacity: 1; width: 36px; height: 36px; }
  html:not(.hero-preview) #brand { width: auto; padding: 0 10px; border: 0; }
  html:not(.hero-preview) #brand b { display: none; }
  html:not(.hero-preview) #body { position: relative; grid-template-columns: minmax(0, 1fr); }
  html:not(.hero-preview) #railCol { position: absolute; z-index: 8; inset: 0 auto 0 0; width: min(280px, 85vw); background: #1c1c1e; box-shadow: 12px 0 30px #0008; }
  html:not(.hero-preview) #body.with-detail #detail { position: absolute; inset: 0 0 0 auto; width: min(340px,100%); z-index: 10; background: #1c1c1e; }
  html:not(.hero-preview) #body.with-detail { grid-template-columns: minmax(0, 1fr); }
  .web-detail-close { display: block; min-height: 44px; width: 100%; margin-bottom: 12px; border: 1px solid #505052; border-radius: 8px; background: #303032; color: #fff; font: inherit; cursor: pointer; }
  html:not(.hero-preview) #detail dd { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  html:not(.hero-preview) #app { grid-template-rows: 106px minmax(0,1fr); }
  html:not(.hero-preview) #top { display: grid; grid-template-columns: auto 1fr auto; gap: 4px; padding: 4px 10px 8px; }
  html:not(.hero-preview) #brand { display: none; }
  html:not(.hero-preview) #navGrp { grid-column: 1; margin: 0; }
  html:not(.hero-preview) #topRight { grid-column: 3; margin: 0; gap: 0; }
  html:not(.hero-preview) #searchwrap { grid-row: 2; grid-column: 1 / -1; width: 100%; }
  html:not(.hero-preview) #kindPick { max-width: 125px; padding-inline: 8px; }
  html:not(.hero-preview) #kindLabel { overflow: hidden; text-overflow: ellipsis; }
  html:not(.hero-preview) #libs { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  html:not(.hero-preview) #gridWrap { padding: 12px; }
  html:not(.hero-preview) #grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  html:not(.hero-preview) #grid .tile { min-width: 0; }
  html:not(.hero-preview) .shead { flex-wrap: wrap; gap: 6px; }
  html:not(.hero-preview) #compose { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; }
}
