/* bgdisk upload flow — bgcloud design system */
.bgd-fab {
  position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 20px; cursor: pointer;
  background: var(--grad-brand); color: var(--on-accent);
  font: 800 15px/1 var(--font-body); letter-spacing: .2px;
  box-shadow: 0 14px 30px rgba(63,175,138,.34), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .15s, filter .15s;
}
.bgd-fab i { font-size: 24px; }
.bgd-fab:hover { filter: brightness(1.05); }
.bgd-fab:active { transform: scale(.97); }
@media (max-width: 736px) {
  .bgd-fab { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .bgd-fab:active { transform: translateX(-50%) scale(.97); }
}

.bgd-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.70); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity .2s;
}
.bgd-backdrop.open { opacity: 1; }
.bgd-sheet {
  width: min(560px, 100%); max-height: min(780px, 88dvh); display: flex; flex-direction: column;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(.98); transition: transform .28s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}
.bgd-backdrop.open .bgd-sheet { transform: none; }
.bgd-grip { display: none; }
.bgd-body { display: flex; flex-direction: column; min-height: 0; }
.bgd-backdrop.closing { opacity: 0; transition: opacity .2s; }
.bgd-backdrop.closing .bgd-sheet { transform: translateY(8px) scale(.96); transition: transform .2s ease-in; }
@media (max-width: 736px) {
  .bgd-backdrop { padding: 14px; }
  .bgd-sheet { max-height: 86dvh; }
}
.bgd-swap { animation: bgd-swap .24s cubic-bezier(.2,.8,.2,1); }
@keyframes bgd-swap { from { opacity: 0; transform: translateX(14px); } }

.bgd-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px 20px; flex: 0 0 auto; }
.bgd-titles { flex: 1; min-width: 0; }
.bgd-titles h2 { margin: 0; font: 800 20px/1.25 var(--font-display); color: var(--text); }
.bgd-titles p { margin: 3px 0 0; color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgd-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.bgd-icon:hover { border-color: var(--border-strong); }
.bgd-content { padding: 6px 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-height: 0; }

.bgd-tile {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 18px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font: 700 15px/1.3 var(--font-body); transition: border-color .15s, background .15s, transform .12s;
}
.bgd-tile:hover { border-color: rgba(155,231,209,.35); background: var(--surface-3); }
.bgd-tile:active { transform: scale(.99); }
.bgd-tile--sm { padding: 12px 14px; font-weight: 600; font-size: 14px; margin-top: 8px; }
.bgd-tile-icon {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: var(--on-accent); box-shadow: 0 8px 18px rgba(63,175,138,.22);
}
.bgd-tile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bgd-tile-text small { color: var(--text-2); font-weight: 600; font-size: 12.5px; }
.bgd-chev { color: var(--text-2); }

.bgd-search, .bgd-input {
  width: 100%; box-sizing: border-box; padding: 12px 14px !important; border-radius: 12px !important;
  background: var(--surface-2) !important; border: 1px solid var(--border) !important; color: var(--text) !important; font-size: 15px;
}
.bgd-list { display: flex; flex-direction: column; gap: 8px; }
.bgd-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 10px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-body); transition: border-color .15s, background .15s;
}
.bgd-item:hover { border-color: rgba(155,231,209,.35); background: var(--surface-3); }
.bgd-thumb {
  width: 64px; height: 84px; flex: 0 0 64px; border-radius: 12px; overflow: hidden; background: var(--surface-3);
  display: flex; align-items: center; justify-content: center; color: var(--text-2);
}
.bgd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bgd-thumb--icon { height: 56px; width: 56px; flex-basis: 56px; background: var(--grad-soft); color: var(--mint); border: 1px solid rgba(155,231,209,.22); }
.bgd-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bgd-item-text b { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bgd-item-text small { color: var(--text-2); font-size: 12px; font-weight: 600; }
.bgd-pill {
  align-self: flex-start; max-width: 100%; padding: 4px 9px; border-radius: 999px;
  background: rgba(251,191,36,.15); color: #fbbf24; font-size: 11.5px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bgd-price { font: 800 15px/1 var(--font-display); color: var(--text); white-space: nowrap; align-self: flex-start; padding-top: 4px; }
.bgd-empty { color: var(--text-2); text-align: center; padding: 24px 0; }

.bgd-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bgd-chip {
  min-height: 64px; padding: 12px; border-radius: 18px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font: 800 15px/1.25 var(--font-body); transition: border-color .15s, background .15s, transform .12s;
}
.bgd-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.bgd-chip:active { transform: scale(.98); }
.bgd-form { display: flex; flex-direction: column; gap: 10px; }
.bgd-btn, .bgd-form .bgd-btn {
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--grad-brand); color: var(--on-accent); font: 800 15px/1 var(--font-body);
  box-shadow: 0 8px 22px rgba(63,175,138,.24);
}

.bgd-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 10px; text-align: center; color: var(--text-2); }
.bgd-state > i { font-size: 46px; color: var(--mint); }
.bgd-state p { margin: 0; font-weight: 600; max-width: 340px; line-height: 1.5; }
.bgd-state--ok > i { color: #4ade80; }
.bgd-state--err > i { color: var(--danger); }
.bgd-state--err p { color: var(--danger); }
.bgd-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--mint); animation: bgd-spin .8s linear infinite; }
@keyframes bgd-spin { to { transform: rotate(360deg); } }

.bgd-up { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.bgd-up-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgd-up-pct { font-weight: 800; font-size: 13px; color: var(--text-2); }
.bgd-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bgd-bar div { height: 100%; width: 0; background: var(--grad-brand); transition: width .2s; }
.bgd-up.done .bgd-up-pct { color: #4ade80; }

/* WB Point card in settings */
.bgd-wb { margin-bottom: 16px; }
.bgd-wb.busy { opacity: .6; pointer-events: none; }
.bgd-wb .bgd-form label, .bgd-wb > .card-content > label { display: block; margin: 6px 0 2px; }
.bgd-wb .bgd-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.bgd-wb-ok { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); border: 1px solid rgba(155,231,209,.25); margin-bottom: 10px; }
.bgd-wb-ok i { color: var(--mint); font-size: 28px; }
.bgd-wb-ok div { display: flex; flex-direction: column; gap: 2px; }
.bgd-wb-ok small { color: var(--text-2); font-weight: 600; }
.bgd-muted { color: var(--text-2); line-height: 1.5; }
.bgd-err { color: var(--danger) !important; font-weight: 700; background: rgba(248,113,113,.12); border-radius: 12px; padding: 10px 12px; }

/* ===== v4 ===== */
/* header: no search and menu, readable logo text */
#search, header .search-button, #more, #dropdown { display: none !important; }
header::before { line-height: 1.3 !important; padding: 2px 0 4px; overflow: visible; }

/* listing below the breadcrumb line */
.breadcrumbs { margin-bottom: 10px !important; }
#listing { margin-top: 6px; }
#listing.list .item { position: relative; padding-right: 58px !important; }
.bgd-in { animation: bgd-in .32s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes bgd-in { from { opacity: 0; transform: translateY(6px); } }
.bgd-more {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  background: transparent; color: var(--mint); display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.bgd-more:hover { background: var(--surface-3); color: var(--text); border-color: var(--border); }
.bgd-more:active { transform: translateY(-50%) scale(.94); }
#listing.mosaic .item { position: relative; }
#listing.mosaic .bgd-more { top: 8px; transform: none; background: rgba(12,15,20,.7); }

/* FAB entrance */
.bgd-fab { animation: bgd-fab .45s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes bgd-fab { from { opacity: 0; transform: translateY(24px) scale(.9); } }
@media (max-width: 736px) { @keyframes bgd-fab { from { opacity: 0; transform: translate(-50%, 24px) scale(.9); } } }

/* action modal */
.bgd-actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.bgd-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 92px; padding: 12px; border-radius: 18px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font: 700 13.5px/1.2 var(--font-body); transition: border-color .15s, background .15s, transform .12s;
}
.bgd-action i { width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--grad-soft); color: var(--mint); border: 1px solid rgba(155,231,209,.22); }
.bgd-action:hover { border-color: rgba(155,231,209,.35); background: var(--surface-3); }
.bgd-action:active { transform: scale(.97); }
.bgd-action--danger i { background: rgba(248,113,113,.14); color: var(--danger); border-color: rgba(248,113,113,.25); }
.bgd-action--danger:hover { border-color: rgba(248,113,113,.4); }
.bgd-note { color: var(--text-2); font-size: 12.5px; text-align: center; margin: 4px 0 0; }
.bgd-row { display: flex; gap: 10px; }
.bgd-row > * { flex: 1; }
.bgd-btn--ghost { background: var(--surface-2) !important; color: var(--text) !important; border: 1px solid var(--border) !important; box-shadow: none !important; }
.bgd-btn--danger { background: #dc2626 !important; color: #fff !important; box-shadow: 0 8px 22px rgba(220,38,38,.25) !important; }
.bgd-icon--danger { color: var(--danger); }
.bgd-form label { color: var(--text-2); font-weight: 700; font-size: 13px; margin-top: 4px; }
.bgd-form label small { font-weight: 600; opacity: .8; }

/* share */
.bgd-links { display: flex; flex-direction: column; gap: 8px; }
.bgd-link { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--accent-soft); border: 1px solid rgba(155,231,209,.25); }
.bgd-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bgd-link-text b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgd-link-text small { color: var(--text-2); font-weight: 600; font-size: 12px; }
.bgd-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.bgd-seg button { min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: 700 13px/1 var(--font-body); cursor: pointer; transition: background .18s, color .18s; }
.bgd-seg button.on { background: var(--grad-brand); color: var(--on-accent); box-shadow: 0 6px 14px rgba(63,175,138,.22); }

/* toast */
.bgd-toast {
  position: fixed; left: 50%; top: 18px; z-index: 3000; transform: translate(-50%, -20px); opacity: 0;
  padding: 12px 18px; border-radius: 14px; background: var(--accent); color: var(--on-accent);
  font: 800 14px/1.2 var(--font-body); box-shadow: var(--shadow-md); transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s;
}
.bgd-toast.bad { background: #dc2626; color: #fff; }
.bgd-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* settings tabs: even segmented control */
.dashboard #nav { padding: 6px !important; border-radius: 18px !important; }
.dashboard #nav .wrapper, .dashboard #nav ul { width: 100%; }
.dashboard #nav ul { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px !important; }
.dashboard #nav ul a { display: block; text-decoration: none; }
.dashboard #nav ul li {
  display: flex !important; align-items: center; justify-content: center; text-align: center;
  height: 44px; padding: 0 10px !important; margin: 0 !important; border-radius: 13px !important;
  font: 700 13px/1.15 var(--font-body) !important; color: var(--text-2) !important;
  transition: background .2s, color .2s, box-shadow .2s;
}
.dashboard #nav ul li:hover { background: var(--surface-2) !important; color: var(--text) !important; }
.dashboard #nav ul li.active { background: var(--grad-brand) !important; color: var(--on-accent) !important; box-shadow: 0 8px 18px rgba(63,175,138,.22); }
.dashboard .card { animation: bgd-in .3s cubic-bezier(.2,.8,.2,1) both; }
@media (max-width: 736px) { .dashboard #nav ul li { height: 48px; font-size: 12px !important; } }

/* short tab labels, no horizontal scroll */
.dashboard #nav, .dashboard #nav .wrapper { overflow: visible !important; width: 100% !important; max-width: none !important; box-sizing: border-box; }
.dashboard #nav ul li { font-size: 0 !important; }
.dashboard #nav ul li::after { font-size: 13.5px; }
.dashboard #nav a[href="/settings/profile"] li::after { content: "Профиль"; }
.dashboard #nav a[href="/settings/shares"] li::after { content: "Ссылки"; }
.dashboard #nav a[href="/settings/users"] li::after { content: "Пользователи"; }
.dashboard table { display: block; overflow-x: auto; }

/* no stray line under settings tabs */
.dashboard #nav, .dashboard #nav .wrapper, .dashboard #nav ul { border: 0 !important; box-shadow: none; overflow: hidden !important; scrollbar-width: none !important; }
.dashboard #nav { box-shadow: var(--shadow-sm) !important; border: 1px solid var(--border) !important; }
.dashboard #nav ::-webkit-scrollbar, .dashboard #nav::-webkit-scrollbar { display: none !important; height: 0 !important; }
.dashboard #nav ul li, .dashboard #nav ul a { border: 0 !important; }

/* tabs: gradient pill not clipped */
.dashboard #nav, .dashboard #nav .wrapper, .dashboard #nav ul { overflow: visible !important; }
.dashboard #nav ul { padding: 0 !important; margin: 0 !important; }
.dashboard #nav ul li.active { box-shadow: 0 4px 12px rgba(63,175,138,.22) !important; }
/* no slide-in for cards: titles stay in place */
.dashboard .card { animation: none !important; }
.bgd-in { animation-name: bgd-fade !important; }
@keyframes bgd-fade { from { opacity: 0; } }

/* ===== public share page ===== */
html.bgd-share-mode #app, html.bgd-share-mode #previewer, html.bgd-share-mode .bgd-fab, html.bgd-share-mode body > header, html.bgd-share-mode header { display: none !important; }
html.bgd-share-mode body { padding: 0 !important; margin: 0 !important; }
#bgd-share {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom)); box-sizing: border-box;
}
.bgd-share-top { width: min(760px, 100%); display: flex; align-items: center; gap: 10px; padding: 18px 2px; }
.bgd-share-top img { width: 38px; height: 38px; border-radius: 12px; }
.bgd-share-top span {
  font: 900 22px/1.3 var(--font-display); letter-spacing: -.6px; padding-bottom: 3px;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bgd-share-main { width: min(760px, 100%); flex: 1; display: flex; align-items: flex-start; justify-content: center; padding-top: 4vh; }
.bgd-share-card {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 26px;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: bgd-card .4s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes bgd-card { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.bgd-share-foot { color: var(--text-2); font-size: 12px; font-weight: 600; padding-top: 18px; opacity: .8; }

.bgd-share-file { display: flex; flex-direction: column; }
.bgd-share-media { display: block; width: 100%; max-height: 70dvh; background: #000; object-fit: contain; }
.bgd-share-icon {
  height: 220px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(400px 200px at 50% 0, rgba(130,174,242,.14), transparent 70%), var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.bgd-share-icon i {
  font-size: 54px; width: 104px; height: 104px; border-radius: 30px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: var(--on-accent); box-shadow: 0 18px 40px rgba(63,175,138,.28);
}
.bgd-share-info { padding: 20px 22px 4px; min-width: 0; }
.bgd-share-info h1 { margin: 0; font: 800 22px/1.3 var(--font-display); color: var(--text); word-break: break-word; }
.bgd-share-info p { margin: 6px 0 0; color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.bgd-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 22px 22px; }
.bgd-share-actions .bgd-btn, .bgd-share-dirhead .bgd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 50px; border-radius: 14px;
}
.bgd-share-actions .bgd-btn i, .bgd-share-dirhead .bgd-btn i { font-size: 20px; }

.bgd-share-dirhead { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.bgd-share-dirhead .bgd-share-info { padding: 0; flex: 1; }
.bgd-share-diricon {
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 17px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: var(--on-accent); box-shadow: 0 10px 22px rgba(63,175,138,.24);
}
.bgd-share-diricon i { font-size: 28px; }
.bgd-share-list { display: flex; flex-direction: column; padding: 8px; max-height: 60dvh; overflow-y: auto; }
.bgd-share-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; text-decoration: none; color: var(--text);
  transition: background .15s;
}
.bgd-share-row:hover { background: var(--surface-2); }
.bgd-share-ricon {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--brand-blue);
}
.bgd-share-rtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bgd-share-rtext b { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bgd-share-rtext small { color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.bgd-share-dl { color: var(--mint); }

.bgd-share-pass { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 24px 28px; text-align: center; }
.bgd-share-pass h1 { margin: 6px 0 0; font: 800 21px/1.3 var(--font-display); }
.bgd-share-pass p { margin: 0 0 6px; color: var(--text-2); font-size: 14px; max-width: 320px; line-height: 1.5; }
.bgd-share-pass .bgd-input, .bgd-share-pass .bgd-btn, .bgd-share-pass .bgd-err { width: min(340px, 100%); box-sizing: border-box; }
.bgd-share-lock {
  width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: var(--on-accent); box-shadow: 0 14px 30px rgba(63,175,138,.26);
}
.bgd-share-lock i { font-size: 30px; }
.bgd-share-card > .bgd-state { padding: 60px 20px; }

@media (max-width: 560px) {
  .bgd-share-main { padding-top: 0; }
  .bgd-share-card { border-radius: 22px; }
  .bgd-share-info { padding: 16px 18px 2px; }
  .bgd-share-info h1 { font-size: 19px; }
  .bgd-share-actions { padding: 14px 18px 18px; }
  .bgd-share-dirhead { flex-wrap: wrap; padding: 18px; }
  .bgd-share-dirhead .bgd-btn { width: 100%; }
}

/* ===== calm motion: one soft entrance, no per-item animation ===== */
.bgd-in, .bgd-share-row.bgd-in, .dashboard .card, .bgd-share-card { animation: none !important; }
.bgd-fab { animation: none !important; }
html.bgd-first main, html.bgd-first .dashboard, html.bgd-first .bgd-share-main { animation: bgd-appear .5s cubic-bezier(.2,.8,.2,1) both; }
html.bgd-first .bgd-fab { animation: bgd-appear-fab .55s .1s cubic-bezier(.2,.8,.2,1) both !important; }
@keyframes bgd-appear { from { opacity: 0; transform: translateY(8px); } }
@keyframes bgd-appear-fab { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html.bgd-first * { animation: none !important; } }

/* retention setting */
.bgd-retention { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.bgd-retention-text { display: flex; flex-direction: column; gap: 4px; }
.bgd-retention-text b { font-size: 14.5px; color: var(--text); }
.bgd-retention-text small { color: var(--text-2); font-size: 12.5px; line-height: 1.45; font-weight: 600; }
.bgd-seg--2 { grid-template-columns: 1fr 1fr; }

/* long names: wrap by whole words, never under the action icon */
#listing.list .item:not(.header) { padding-right: 62px !important; }
#listing.list .item:not(.header) > div:last-of-type { min-width: 0; flex: 1 1 auto; }
#listing .item .name {
  white-space: normal !important; word-break: normal !important; overflow-wrap: break-word !important;
  hyphens: none; line-height: 1.3; overflow: visible !important; text-overflow: clip !important;
}
@media (max-width: 736px) { #listing.list .item:not(.header) { padding-right: 60px !important; } }
.breadcrumbs a, .breadcrumbs span { word-break: normal; overflow-wrap: break-word; }
