body.pd-app .sheet-layer[data-mode="modal"] .pd-sheet.pd-wheel-picker-sheet { width:min(1280px,calc(100vw - 48px)); max-width:1280px; }
.pd-app .pd-wheel-picker-sheet .pd-media-library { max-width:none; }
.pd-app .pd-wheel-picker-sheet .pd-media-library-tabs { margin-bottom:20px; }
.pd-app .pd-wheel-picker-sheet .pd-media-library { display:flex; flex-direction:column; min-height:0; height:min(76dvh,840px); }
.pd-wheel-picker-sheet [data-pd-media-content] { flex:1; min-height:0; overflow-y:auto; scrollbar-width:thin; }
.pd-wheel-picker-sheet [data-pd-wheel-catalog] { height:100%; }
.pd-wheel-picker-sheet .pd-wheel-library { height:100%; min-height:0; }
.pd-wheel-picker-footer { position:sticky; z-index:5; bottom:0; display:flex; align-items:center; gap:20px; flex:none; padding-top:14px; margin-top:16px; border-top:1px solid var(--pd-line); background:var(--pd-surface); }
.pd-wheel-picker-chosen { display:flex; align-items:center; flex:1; min-width:0; min-height:94px; gap:12px; padding:5px; overflow-x:auto; scrollbar-width:thin; overscroll-behavior-x:contain; }
.pd-wheel-picker-chosen .pd-wheel-thumb { flex:0 0 82px; width:82px; height:82px; }
.pd-wheel-picker-empty { font-size:12px; line-height:1.5; color:var(--pd-muted); }
.pd-wheel-picker-footer > button { flex:none; min-height:44px; max-width:210px; font-size:13px; }
.pd-wheel-library__card.is-selected { border-color:var(--pd-accent); box-shadow:inset 0 0 0 2px var(--pd-accent); }
.pd-wheel-picker-sheet .pd-media-card.is-selected { outline:2px solid var(--pd-accent); outline-offset:-2px; }
.pd-wheel-picker-footer button:focus-visible { outline:2px solid var(--pd-accent); outline-offset:3px; }
.pd-wheel-library { display:grid; grid-template-columns:350px minmax(0,1fr); height:min(66dvh,760px); min-height:350px; color:var(--pd-text); border:1px solid var(--pd-line); border-radius:14px; overflow:hidden; }
.pd-wheel-library__sidebar { min-width:0; min-height:0; overflow-y:auto; overscroll-behavior:contain; border-right:1px solid var(--pd-line); background:var(--pd-inset); scrollbar-width:thin; }
.pd-wheel-library__sidebar-title { padding:18px 18px 12px; font-size:11px; color:var(--pd-subtle); text-transform:uppercase; letter-spacing:1px; }
.pd-wheel-library__brand { display:flex; position:relative; overflow:hidden; isolation:isolate; align-items:center; gap:9px; width:100%; min-height:54px; padding:13px 16px; border:0; border-left:3px solid transparent; background:transparent; text-align:left; color:var(--pd-muted); }
.pd-wheel-library__brand > span { z-index:1; min-width:0; font-size:12px; font-weight:550; overflow-wrap:anywhere; }
.pd-wheel-library__brand > small { z-index:1; margin-left:auto; padding:3px 7px; border-radius:20px; font-size:10px; background:var(--pd-raised); }
.pd-wheel-library__brand:hover { background:var(--pd-raised); color:var(--pd-text); }
.pd-wheel-library__brand { content-visibility:auto; contain-intrinsic-size:auto 54px; }
.pd-wheel-library__brand:hover img {filter: drop-shadow(3px 3px 3px) contrast(3);transform: scale(1.04); }
.pd-wheel-library__brand.is-active { background:var(--pd-accent-soft); color:var(--pd-accent); border-left-color:var(--pd-accent); }
.pd-wheel-library__brand-logo.pd-image-loader { position:absolute; width:110px; height:40px; right:60px; top:7px; opacity:0.9; pointer-events:none; background:transparent; }
.pd-wheel-library__brand-logo img { object-fit:contain; filter: drop-shadow(1px 1px 1px) contrast(2);}
.pd-wheel-library__main { display:flex; min-width:0; min-height:0; flex-direction:column; background:var(--pd-surface); }
.pd-wheel-library__tools { flex:none; padding:20px 20px 14px; }
.pd-wheel-library .cult-pro-letter { animation:none; }
.pd-wheel-library__search { display:block; width:100%; }
.pd-app .pd-wheel-library__search .form-control { font-size:13px; height:25px; padding:12px 15px; width:100%; }
.pd-wheel-library__mobile-brands { display:none; }
.pd-wheel-library__filters { display:flex; gap:10px; min-width:0; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; -ms-overflow-style:none; padding:3px 2px 5px; margin-top:12px; cursor:grab; }
.pd-wheel-library__filters::-webkit-scrollbar { display:none; }
.pd-wheel-library__filters.is-revealed { animation:pd-wheel-filters-reveal .45s cubic-bezier(.22,1,.36,1) both; }
@keyframes pd-wheel-filters-reveal {
  from { opacity:0; transform:translateY(-8px); clip-path:inset(0 0 100% 0); }
  to { opacity:1; transform:translateY(0); clip-path:inset(0); }
}
@media(prefers-reduced-motion:reduce) { .pd-wheel-library__filters.is-revealed { animation:none; } }
.pd-wheel-library__filters:focus-visible { outline:2px solid var(--pd-accent); outline-offset:-2px; border-radius:10px; }
.pd-wheel-library__filter { flex:0 0 auto; width:max-content; min-width:200px; min-height:38px; }
.cult-pro-select-panel.pd-wheel-library__filter-options { min-width:min(340px,calc(100vw - 16px)); }
.pd-wheel-library__filter-options .cult-pro-select-option > span:first-child { white-space:normal; overflow:visible; text-overflow:clip; }
.pd-app .pd-wheel-library__filter .cult-pro-select-wrap { width:100%; }
.pd-wheel-library__filter.is-active .cult-pro-select-trigger { border-color:var(--pd-accent)!important; }
.pd-wheel-library__filters.is-dragging,.pd-wheel-library__filters.is-dragging * { cursor:grabbing!important; user-select:none; }
.pd-wheel-library__filters-error { font-size:11px; color:var(--pd-muted); margin-top:8px; }
.pd-wheel-library__heading { display:flex; flex:none; gap:12px; align-items:center; justify-content:space-between; padding:4px 20px 16px; }
.pd-wheel-library__heading h3 { margin:0; font-size:14px; font-weight:600; color:var(--pd-text); }
.pd-wheel-library__heading > span { font-size:11px; color:var(--pd-subtle); white-space:nowrap; }
.pd-wheel-library__results { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 20px; scrollbar-width:thin; }
.pd-wheel-library__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.pd-wheel-library__card { display:flex; flex-direction:column; position:relative; min-width:0; padding:0; overflow:hidden; border:1px solid var(--pd-line); border-radius:13px; color:var(--pd-text); background:var(--pd-inset); text-align:left; transition:border-color .2s,background .2s; }
.pd-wheel-library__card:hover,.pd-wheel-library__card:focus-visible { border-color:var(--pd-accent); outline:0; background:var(--pd-raised); }
.pd-wheel-library__card { content-visibility:auto; contain-intrinsic-size:auto 300px; }
.pd-wheel-library__visual { display:grid; place-items:center; position:relative; width:100%; aspect-ratio:1; padding:10px; }
.pd-wheel-library__photo.pd-image-loader { width:100%; height:100%; background:transparent; }
.pd-wheel-library__photo img { object-fit:contain; }
.pd-wheel-library__caption { display:flex; align-items:center; gap:9px; width:100%; padding:12px; margin-top:auto; border-top:1px solid var(--pd-line); }
.pd-wheel-library__caption > span { flex:1; min-width:0; }
.pd-wheel-library__caption small { display:block; font-size:8px; letter-spacing:.6px; color:var(--pd-subtle); margin-bottom:3px; }
.pd-wheel-library__caption strong { display:block; font-size:11px; font-weight:550; line-height:1.4; overflow-wrap:anywhere; }
.pd-wheel-library__card-logo.pd-image-loader { width:48px; height:23px; flex:none; background:transparent; }
.pd-wheel-library__card-logo img { object-fit:contain; }
[data-bs-theme="light"] .pd-wheel-library__brand-logo img,
[data-bs-theme="light"] .pd-wheel-library__card-logo img { filter:brightness(0.8); }
.pd-wheel-library__brand-logo .spinner,.pd-wheel-library__card-logo .spinner { width:14px; height:14px; }
.pd-wheel-library__note { flex:none; font-size:10px; line-height:1.5; color:var(--pd-subtle); padding:13px 20px; margin:0; border-top:1px solid var(--pd-line); }
.pd-wheel-library__more { display:block; margin:20px auto; }
.pd-wheel-library__more-loading { margin-top:16px; }
.pd-wheel-library__state { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; text-align:center; min-height:200px; padding:25px; color:var(--pd-muted); font-size:12px; }
.pd-wheel-library__brand-error { display:grid; gap:12px; padding:20px; font-size:12px; }
.pd-wheel-library__brands-more { display:block; margin:12px auto; }
.pd-wheel-library__skeleton { min-width:0; padding:12px; border:1px solid var(--pd-line); border-radius:13px; }
.pd-wheel-library__skeleton > div { width:100%; aspect-ratio:1; border-radius:9px; }
.pd-wheel-library__skeleton > span { display:block; width:70%; margin-top:12px; }
.pd-wheel-library__sidebar .pd-wheel-library__skeleton { margin:10px 16px; border:0; padding:0; }
.pd-wheel-library__sidebar .pd-wheel-library__skeleton > div { aspect-ratio:auto; height:34px; }
.pd-wheel-library__sidebar .pd-wheel-library__skeleton > span { display:none; }
.pd-wheel-library__sentinel { height:1px; }
.pd-wheel-library__no-image { font-size:11px; color:var(--pd-subtle); }
.pd-wheel-library__card.is-selecting::after { content:'Подготавливаем фото…'; position:absolute; inset:0; display:grid; place-items:center; font-size:12px; color:var(--pd-text); background:color-mix(in srgb,var(--pd-surface) 90%,transparent); }
.pd-wheel-library__card:disabled { cursor:wait; }
@media(max-width:991px) {
  .pd-wheel-library { grid-template-columns:180px minmax(0,1fr); }
  .pd-wheel-library__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .pd-wheel-library__brand { padding-inline:11px; }
}
@media(max-width:575px) {
  .pd-app .pd-wheel-picker-sheet .pd-media-library { height:calc(100dvh - 155px); }
  .pd-wheel-picker-footer { gap:10px; padding-top:10px; margin-top:12px; }
  .pd-wheel-picker-chosen { min-height:76px; gap:9px; }
  .pd-wheel-picker-chosen .pd-wheel-thumb { flex-basis:64px; width:64px; height:64px; }
  .pd-wheel-picker-footer > button { max-width:166px; padding:10px 12px; font-size:12px; }
  .pd-wheel-picker-sheet .pd-wheel-library { height:100%; }
  .pd-wheel-library { display:flex; min-height:0; height:calc(100dvh - 210px); max-height:780px; border-radius:10px; }
  .pd-wheel-library__sidebar { display:none; }
  .pd-wheel-library__main { width:100%; }
  .pd-wheel-library__tools { display:grid; gap:10px; padding:12px 12px 10px; }
  .pd-wheel-library__mobile-brands { display:block; }
  .pd-wheel-library__filters { margin-top:0; }
  .pd-wheel-library__mobile-brands select { width:100%; font-size:12px; min-width:0; }
  .pd-app .pd-wheel-library__search .form-control { font-size:12px; height:42px; }
  .pd-wheel-library__heading { padding:4px 12px 12px; gap:8px; }
  .pd-wheel-library__heading h3 { font-size:12px; }
  .pd-wheel-library__heading > span { font-size:10px; }
  .pd-wheel-library__results { padding-inline:12px; }
  .pd-wheel-library__grid { gap:9px; }
  .pd-wheel-library__visual { padding:6px; }
  .pd-wheel-library__caption { padding:9px 8px; gap:5px; }
  .pd-wheel-library__caption strong { font-size:10px; }
  .pd-wheel-library__card-logo.pd-image-loader { width:30px; height:17px; }
  .pd-wheel-library__note { font-size:9px; padding:10px 12px; }
  .pd-app .pd-wheel-picker-sheet .pd-media-library-tabs { margin-bottom:14px; }
  body.pd-app .pd-wheel-picker-sheet .pd-media-library-tabs > .cult-pro-tabs-list { display:flex; width:100%; gap:0; }
  body.pd-app .pd-wheel-picker-sheet .pd-media-library-tabs .cult-pro-selection-trigger { min-width:0; flex:1; padding:9px 6px!important; font-size:10px!important; white-space:nowrap; }
  .pd-app .pd-wheel-picker-sheet .pd-media-tab [data-pd-tab-count]:not(:empty) { margin-left:3px; font-size:9px; }
}
