@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/*
 * CRITICAL: Override the HTML `hidden` attribute so display:flex rules
 * cannot accidentally show elements that should be hidden.
 * This fixes the confirm dialog and selection bar always showing for all users.
 */
[hidden] { display: none !important; }

/* ── CSS isolation ────────────────────────────────────────────────────────────
 *
 * The modal is appended to <body> via JS, so it inherits the page's global
 * CSS cascade — including the Drupal frontend theme's resets and overrides.
 *
 * Problem: `rem` units are ALWAYS relative to the <html> root font-size, not
 * to any ancestor.  The admin theme (Claro/Gin) leaves html at 16 px, so
 * 1rem = 16 px there.  Many frontend themes set html { font-size: 62.5% } or
 * a custom px value, so 1rem becomes ~10 px or 14 px and every rem-based size
 * inside the modal renders smaller on the frontend.
 *
 * Fixes applied below:
 *  1. Universal box-sizing reset scoped to .s3fb-overlay *.
 *  2. Font/colour/line-height inheritance anchors on .s3fb-overlay itself.
 *  3. Element normalisation (button, input, img, headings, p, a) scoped to
 *     .s3fb-modal so the theme's own element resets cannot bleed in.
 *  4. Every `rem` value in this file replaced with its px equivalent so that
 *     a non-standard html font-size has no effect.
 * ──────────────────────────────────────────────────────────────────────────── */

/* 1 — box-sizing reset */
.s3fb-overlay *, .s3fb-overlay *::before, .s3fb-overlay *::after {
  box-sizing: border-box;
}

/* 2 — font / colour anchor */
.s3fb-overlay {
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;          /* anchor em baseline (does NOT affect rem) */
  line-height: 1.5;
  color: #1a1d23;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* CSS baseline — the JS open() method additionally reads the live DOM and
     sets an inline z-index = (highest on page) + 1, so this value only
     matters when no other stacked element exceeds it.  2147483647 is the
     maximum 32-bit signed integer accepted by every browser. */
  position: fixed; inset: 0; z-index: 2147483647;
  display: flex; align-items: center; justify-content: center;
}

/* 3 — element normalisations scoped to .s3fb-modal */

/* Reset heading / paragraph margins that Drupal themes set globally */
.s3fb-modal h1, .s3fb-modal h2, .s3fb-modal h3,
.s3fb-modal h4, .s3fb-modal h5, .s3fb-modal h6,
.s3fb-modal p, .s3fb-modal ul, .s3fb-modal ol, .s3fb-modal li {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  list-style: none;
}

/* Buttons — themes often zero out padding/border or add their own */
.s3fb-modal button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* Inputs & selects */
.s3fb-modal input,
.s3fb-modal select,
.s3fb-modal textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

/* Anchors */
.s3fb-modal a {
  color: #4f46e5;
  text-decoration: none;
  background: transparent;
}

/* Images — themes often set max-width:100% which can distort thumbnails */
.s3fb-modal img {
  border: 0;
  vertical-align: middle;
  max-width: none;   /* override theme max-width:100% inside our thumbwrap */
  height: auto;
}
.s3fb-thumb {
  /* explicit override — js build sets inline width/height via CSS class */
  max-width: 100% !important;
  height: 100% !important;
}

/* ── Overlay backdrop ─────────────────────────────────────────────────────── */
.s3fb-overlay-bg { position: absolute; inset: 0; background: rgba(15, 18, 25, 0.55); backdrop-filter: blur(2px); }

/* ── Modal shell ─────────────────────────────────────────────────────────── */
.s3fb-modal {
  position: relative;
  background: #fff;
  width: 980px; max-width: 96vw;
  height: 660px; max-height: 92vh;
  border-radius: 14px;
  display: flex;
  box-shadow: 0 24px 70px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  /* Explicit resets so the frontend theme cannot override our baseline */
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1a1d23;
  text-align: left;
  word-spacing: normal;
  letter-spacing: normal;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.s3fb-sidebar { width: 200px; flex-shrink: 0; background: #f7f8fa; border-right: 1px solid #eceef2; padding: 20px 12px; display: flex; flex-direction: column; gap: 3px; }
.s3fb-brand { font-weight: 800; font-size: 12px; color: #8a90a0; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px 16px; }
.s3fb-nav-item { text-align: left; border: none; background: none; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #3d4351; cursor: pointer; transition: background .12s, color .12s; }
.s3fb-nav-item:hover { background: #edeff3; }
.s3fb-nav-item--active { background: #eef2ff; color: #4338ca; font-weight: 700; }

/* ── Main column ─────────────────────────────────────────────────────────── */
.s3fb-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #fff; }

.s3fb-topbar { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #eceef2; }
.s3fb-search-wrap { position: relative; flex: 1; }
.s3fb-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: .45; }
.s3fb-search {
  width: 100%; padding: 10px 34px; border: 1.5px solid #e2e4e9; border-radius: 9px;
  font-family: inherit; font-size: 14px; font-weight: 500; outline: none; box-sizing: border-box;
  background: #f9fafb; transition: border-color .15s, background .15s, box-shadow .15s;
}
.s3fb-search::placeholder { color: #9aa0ad; font-weight: 400; }
.s3fb-search:focus { border-color: #4f46e5; background: #fff; box-shadow: 0 0 0 4px rgba(79,70,229,0.12); }
.s3fb-search-clear { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); border: none; background: none; font-size: 17px; color: #9aa0ad; cursor: pointer; line-height: 1; padding: 0; }
.s3fb-search-clear:hover { color: #4b5563; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.s3fb-btn {
  cursor: pointer; padding: 9px 15px; border: 1.5px solid #e2e4e9; border-radius: 9px; background: #fff;
  font-family: inherit; font-size: 13px; font-weight: 600; color: #3d4351; white-space: nowrap; transition: background .15s, border-color .15s;
  display: inline-flex; align-items: center; gap: 5px;
  line-height: 1.4;
}
.s3fb-btn:hover { background: #f3f4f6; border-color: #d1d5db; }

.s3fb-btn--primary { background: #4f46e5; border-color: #4f46e5; color: #fff; box-shadow: 0 1px 2px rgba(79,70,229,0.3); }
.s3fb-btn--primary:hover { background: #4338ca; border-color: #4338ca; }
.s3fb-upload-label { display: inline-flex; cursor: pointer; align-items: center; }

/* Ghost — used in the selection bar and confirm dialog "Cancel" */
.s3fb-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #f1f5f9;
  border-radius: 20px;
  padding: 5px 16px;       /* was 0.3rem 1rem — converted to px */
  font-size: 13px;         /* was 0.8rem */
  cursor: pointer;
  transition: background .15s;
  line-height: 1.4;
}
.s3fb-btn--ghost:hover { background: rgba(255,255,255,0.1); }

/* Danger — "Delete selected" bar button and "Delete permanently" dialog button */
.s3fb-btn--danger {
  background: #dc2626;
  border: none;
  color: #fff;
  border-radius: 20px;
  padding: 5px 18px;       /* was 0.3rem 1.1rem — converted to px */
  font-size: 13px;         /* was 0.8rem */
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  line-height: 1.4;
}
.s3fb-btn--danger:hover:not(:disabled) { background: #b91c1c; }
.s3fb-btn--danger:disabled { opacity: 0.45; cursor: not-allowed; }

.s3fb-close { border: none; background: none; font-size: 22px; cursor: pointer; line-height: 1; color: #6b7280; padding: 4px 9px; border-radius: 6px; transition: background .12s; }
.s3fb-close:hover { background: #f3f4f6; color: #1f2937; }

/* ── Toolbar / breadcrumb ────────────────────────────────────────────────── */
.s3fb-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 11px 20px; border-bottom: 1px solid #f1f2f5; background: #fbfbfc; }
.s3fb-breadcrumb { font-size: 13px; font-weight: 500; color: #6b7280; }
.s3fb-breadcrumb a { text-decoration: none; color: #4f46e5; font-weight: 600; }
.s3fb-breadcrumb a:hover { text-decoration: underline; }
.s3fb-sep { color: #d1d5db; margin: 0 3px; }
.s3fb-search-label { font-size: 13px; color: #1f2937; font-weight: 700; }

.s3fb-toolbar-right { display: flex; align-items: center; gap: 8px; }
.s3fb-sort { font-family: inherit; font-size: 12px; font-weight: 600; padding: 6px 9px; border: 1.5px solid #e2e4e9; border-radius: 7px; background: #fff; color: #3d4351; cursor: pointer; }
.s3fb-sort-dir { border: 1.5px solid #e2e4e9; background: #fff; border-radius: 7px; width: 29px; height: 29px; cursor: pointer; font-size: 12px; color: #6b7280; transition: background .12s; padding: 0; }
.s3fb-sort-dir:hover { background: #f3f4f6; }
.s3fb-view-toggle { display: flex; border: 1.5px solid #e2e4e9; border-radius: 7px; overflow: hidden; }
.s3fb-view-btn { border: none; background: #fff; width: 31px; height: 29px; cursor: pointer; font-size: 13px; color: #9aa0ad; transition: background .12s, color .12s; padding: 0; }
.s3fb-view-btn:hover { background: #f3f4f6; }
.s3fb-view-btn--active { background: #eef2ff; color: #4338ca; }

/* ── Body / grid ─────────────────────────────────────────────────────────── */
.s3fb-body { flex: 1; overflow-y: auto; position: relative; }

.s3fb-grid { padding: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 16px; align-content: start; }
.s3fb-item { position: relative; cursor: pointer; text-align: center; font-size: 12px; font-weight: 500; border-radius: 10px; padding: 9px 5px; transition: background .12s, transform .1s; }
.s3fb-item:hover { background: #f5f6f8; }
.s3fb-item:active { transform: scale(0.98); }
.s3fb-thumbwrap { width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #f9fafb; display: flex; align-items: center; justify-content: center; border: 1px solid #eef0f3; margin-bottom: 7px; position: relative; }
.s3fb-thumb { width: 100%; height: 100%; object-fit: cover; display: block; max-width: 100% !important; }
.s3fb-folder-icon { font-size: 36px; line-height: 1; display: block; }
.s3fb-filecard { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.s3fb-filecard-ext { color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .04em; }
.s3fb-name { display: block; font-weight: 600; color: #2b2f38; word-break: break-word; line-height: 1.3; max-height: 2.6em; overflow: hidden; }
.s3fb-path { display: block; color: #9aa0ad; font-weight: 500; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.s3fb-meta { display: none; color: #9aa0ad; font-weight: 500; font-size: 11px; }

/* ── List view ───────────────────────────────────────────────────────────── */
.s3fb-grid--list { display: block; padding: 8px 12px; }
.s3fb-grid--list .s3fb-item { display: flex; align-items: center; gap: 13px; text-align: left; padding: 8px 11px; border-radius: 8px; }
.s3fb-grid--list .s3fb-thumbwrap { width: 38px; height: 38px; flex-shrink: 0; margin-bottom: 0; }
.s3fb-grid--list .s3fb-folder-icon { font-size: 21px; }
.s3fb-grid--list .s3fb-filecard-ext { font-size: 9px; }
.s3fb-grid--list .s3fb-name { flex: 1; max-height: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3fb-grid--list .s3fb-path { display: none; }
.s3fb-grid--list .s3fb-meta { display: block; flex-shrink: 0; width: 72px; text-align: right; }

/* ── States: loading / empty / error ─────────────────────────────────────── */
.s3fb-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 70px 0; color: #9aa0ad; font-size: 14px; font-weight: 500; }
.s3fb-state--error { color: #dc2626; }
.s3fb-state-icon { font-size: 30px; opacity: .6; }

.s3fb-spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid #e5e7eb; border-top-color: #4f46e5;
  animation: s3fb-spin .7s linear infinite;
}
@keyframes s3fb-spin { to { transform: rotate(360deg); } }

/* Legacy aliases */
.s3fb-loading, .s3fb-empty, .s3fb-error {
  grid-column: 1 / -1; text-align: center; color: #9aa0ad; font-weight: 500; padding: 60px 0; font-size: 14px;
}
.s3fb-error { color: #dc2626; }

/* ── Toast notifications ─────────────────────────────────────────────────── */
.s3fb-toast {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 12px);
  background: #111827; color: #fff; padding: 11px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
  max-width: 80%; text-align: center; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.s3fb-toast--visible { opacity: 1; transform: translate(-50%, 0); }
.s3fb-toast--success { background: #059669; }
.s3fb-toast--error { background: #dc2626; }
.s3fb-toast--warning { background: #d97706; }
.s3fb-toast--info { background: #374151; }

/* ═══════════════════════════════════════════════════════════════════════════
   DELETE / MULTI-SELECT ADDITIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Select toggle button (topbar) ───────────────────────────────────────── */
.s3fb-select-toggle {
  background: transparent;
  border: 1.5px solid #e2e4e9;
  color: #3d4351;
  padding: 9px 15px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  line-height: 1.4;
}
.s3fb-select-toggle:hover { background: #f3f4f6; border-color: #d1d5db; }
.s3fb-select-toggle.s3fb-btn--active {
  background: #fef9c3;
  border-color: #d97706;
  color: #92400e;
}

/* ── Select mode — modal state ───────────────────────────────────────────── */
.s3fb-modal--select-mode .s3fb-sidebar {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity .2s;
}

/* ── File card — selectable ──────────────────────────────────────────────── */
.s3fb-modal--select-mode .s3fb-file {
  cursor: pointer;
  user-select: none;
}
.s3fb-modal--select-mode .s3fb-file:hover {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

/* Selected card highlight */
.s3fb-item--selected {
  outline: 2px solid #2563eb !important;
  outline-offset: -2px;
  background: #eff6ff !important;
}

/* Folders cannot be deleted — dim them in select mode */
.s3fb-modal--select-mode .s3fb-folder {
  opacity: 0.45;
  pointer-events: none;
}

/* ── Checkbox overlay inside the thumbnail ───────────────────────────────── */
.s3fb-checkbox-wrap {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  cursor: pointer;
  transform: scale(1.35);
  transform-origin: top left;
  pointer-events: none;
}
.s3fb-checkbox-wrap .s3fb-checkbox {
  cursor: pointer;
  pointer-events: auto;
  accent-color: #2563eb;
}

/* ── Selection action bar ────────────────────────────────────────────────── */
/*
 * NOTE: .s3fb-selection-bar starts with the `hidden` attribute in HTML.
 * The `[hidden] { display: none !important }` rule at the top of this file
 * ensures the bar stays hidden until JS removes the attribute.
 */
.s3fb-selection-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10010;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #1e293b;
  color: #f1f5f9;
  border-radius: 40px;
  padding: 11px 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.38);
  font-size: 14px;             /* was 0.875rem — converted to px */
  white-space: nowrap;
  animation: s3fb-bar-in .18s ease;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@keyframes s3fb-bar-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.s3fb-selection-count {
  font-weight: 600;
  min-width: 120px;
  text-align: center;
}

.s3fb-selection-actions { display: flex; gap: 8px; }

/* Override pill radius to straight inside the bar */
.s3fb-selection-bar .s3fb-btn--ghost {
  border-radius: 20px;
  padding: 5px 16px;           /* was 0.3rem 1rem */
  font-size: 13px;             /* was 0.8rem */
}
.s3fb-selection-bar .s3fb-btn--danger {
  border-radius: 20px;
  padding: 5px 18px;           /* was 0.3rem 1.1rem */
  font-size: 13px;             /* was 0.8rem */
}

/* ── Confirmation dialog overlay ─────────────────────────────────────────── */
/*
 * NOTE: .s3fb-confirm-overlay starts with the `hidden` attribute in HTML.
 * The `[hidden] { display: none !important }` rule at the top of this file
 * ensures the dialog stays hidden until JS removes the attribute.
 */
.s3fb-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: s3fb-fade-in .15s ease;
}
@keyframes s3fb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.s3fb-confirm-dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 460px;
  width: 100%;
  padding: 32px 28px 24px;
  animation: s3fb-dialog-in .18s ease;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #1a1d23;
}
@keyframes s3fb-dialog-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.s3fb-confirm-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.s3fb-confirm-warning-icon {
  font-size: 32px;             /* was 2rem */
  line-height: 1;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}
.s3fb-confirm-title {
  font-size: 18px;             /* was 1.125rem */
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.3;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.s3fb-confirm-body {
  font-size: 14px;             /* was 0.875rem */
  color: #374151;
  margin: 0 0 14px;
  line-height: 1.5;
}
.s3fb-confirm-instruction {
  font-size: 13px;             /* was 0.8125rem */
  color: #6b7280;
  margin: 0 0 16px;
  line-height: 1.5;
}
.s3fb-confirm-instruction strong { color: #111827; font-weight: 700; }

.s3fb-confirm-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;           /* was 0.55rem 0.75rem */
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;             /* was 0.9375rem */
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.s3fb-confirm-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
}
.s3fb-confirm-input:not(:placeholder-shown):not(:focus) {
  border-color: #dc2626;
}

.s3fb-confirm-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}
.s3fb-confirm-footer .s3fb-btn--ghost {
  border-radius: 8px;
  padding: 7px 18px;           /* was 0.45rem 1.1rem */
  font-size: 14px;             /* was 0.875rem */
  border: 1.5px solid #d1d5db;
  color: #374151;
}
.s3fb-confirm-footer .s3fb-btn--ghost:hover { background: #f3f4f6; }
.s3fb-confirm-footer .s3fb-btn--danger {
  border-radius: 8px;
  padding: 7px 18px;           /* was 0.45rem 1.1rem */
  font-size: 14px;             /* was 0.875rem */
}

/* ── Standalone Page Mode ─────────────────────────────────────────────────── */
.s3fb-standalone-app {
  width: 100%;
  margin: 0 auto;
  padding: 8px 0 24px;
}
.s3fb-overlay.s3fb-overlay--standalone {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  width: 100% !important;
  height: calc(100vh - 170px) !important;
  min-height: 680px;
  max-height: none;
  background: transparent;
  display: block;
}
.s3fb-overlay.s3fb-overlay--standalone .s3fb-overlay-bg {
  display: none !important;
}
.s3fb-overlay.s3fb-overlay--standalone .s3fb-modal {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.s3fb-overlay.s3fb-overlay--standalone .s3fb-close {
  display: none !important;
}

/* ── Video Card & Thumbnails ─────────────────────────────────────────────── */
.s3fb-filecard--video {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #38bdf8 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  position: relative;
}
.s3fb-filecard--video .s3fb-video-icon {
  font-size: 26px;
  color: #38bdf8;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.s3fb-filecard--video .s3fb-filecard-ext {
  color: #94a3b8 !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ── Drag & Drop Zone ────────────────────────────────────────────────────── */
.s3fb-body {
  position: relative;
}
.s3fb-body.s3fb-dropzone--active {
  outline: 3px dashed #4f46e5;
  outline-offset: -8px;
  background-color: #f5f3ff;
}

/* ── Floating Upload Progress Widget ─────────────────────────────────────── */
.s3fb-upload-progress-widget {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 320px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  z-index: 100;
  animation: s3fbSlideUp 0.2s ease-out;
}
@keyframes s3fbSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.s3fb-upw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.s3fb-upw-file {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}
.s3fb-upw-bar {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}
.s3fb-upw-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #4f46e5);
  border-radius: 3px;
  transition: width 0.15s ease-out;
}

/* ── File Details & Preview Overlay ──────────────────────────────────────── */
.s3fb-details-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 90;
  display: flex;
  justify-content: flex-end;
  animation: s3fbFadeIn 0.15s ease;
}
.s3fb-details-drawer {
  width: 440px;
  max-width: 90%;
  height: 100%;
  background: #ffffff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  animation: s3fbSlideInRight 0.2s ease-out;
}
@keyframes s3fbSlideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes s3fbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.s3fb-details-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.s3fb-details-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s3fb-details-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
.s3fb-details-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.s3fb-details-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.s3fb-details-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  border-radius: 10px;
  min-height: 220px;
  max-height: 320px;
  overflow: hidden;
  padding: 10px;
}
.s3fb-details-preview img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 6px;
}
.s3fb-details-preview video {
  max-width: 100%;
  max-height: 300px;
  border-radius: 6px;
  outline: none;
}
.s3fb-details-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.s3fb-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.s3fb-meta-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.s3fb-meta-val {
  font-size: 13px;
  color: #1e293b;
  word-break: break-all;
}
.s3fb-url-copy-box {
  display: flex;
  gap: 8px;
  align-items: center;
}
.s3fb-url-copy-box input {
  flex: 1;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #334155;
  outline: none;
}
.s3fb-url-copy-box button {
  flex-shrink: 0;
}
.s3fb-details-footer {
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
}
.s3fb-details-footer .s3fb-btn {
  text-decoration: none;
}

/* ── Bulk Upload Modal & Dropzone ────────────────────────────────────────── */
.s3fb-bulk-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: s3fbFadeIn 0.2s ease;
}
.s3fb-bulk-dialog {
  background: #ffffff;
  width: 640px;
  max-width: 95%;
  max-height: 90%;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: s3fbScaleUp 0.2s ease-out;
}
@keyframes s3fbScaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.s3fb-bulk-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #f8fafc;
}
.s3fb-bulk-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.s3fb-bulk-target-folder {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}
.s3fb-bulk-target-folder span {
  font-family: monospace;
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  color: #334155;
  font-weight: 600;
}
.s3fb-bulk-folder-select {
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 4px 8px;
  margin-left: 4px;
  max-width: 340px;
}
.s3fb-bulk-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
.s3fb-bulk-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.s3fb-bulk-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.s3fb-bulk-dropzone {
  border: 2px dashed #818cf8;
  background: #f5f3ff;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.s3fb-bulk-dropzone.s3fb-dropzone--active {
  border-color: #4f46e5;
  background: #ede9fe;
  transform: scale(1.01);
}
.s3fb-bulk-dropzone-icon {
  font-size: 42px;
  line-height: 1;
  color: #6366f1;
}
.s3fb-bulk-dropzone-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e1b4b;
}
.s3fb-bulk-dropzone-subtitle {
  font-size: 13px;
  color: #64748b;
}
.s3fb-bulk-dropzone-tip {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
  max-width: 480px;
  line-height: 1.4;
}
.s3fb-bulk-queue-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.s3fb-bulk-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.s3fb-bulk-queue-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}
.s3fb-queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  position: relative;
  overflow: hidden;
}
.s3fb-queue-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #e2e8f0;
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.s3fb-queue-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.s3fb-queue-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s3fb-queue-size {
  font-size: 11px;
  color: #64748b;
}
.s3fb-queue-bar {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.s3fb-queue-fill {
  height: 100%;
  background: #4f46e5;
  width: 0%;
  transition: width 0.15s ease-out;
}
.s3fb-queue-fill--done {
  background: #16a34a !important;
}
.s3fb-queue-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
}
.s3fb-queue-status--ready {
  background: #e0e7ff;
  color: #4338ca;
}
.s3fb-queue-status--uploading {
  background: #fef3c7;
  color: #b45309;
}
.s3fb-queue-status--done {
  background: #dcfce7;
  color: #15803d;
}
.s3fb-queue-status--error {
  background: #fee2e2;
  color: #b91c1c;
}
.s3fb-queue-remove {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  line-height: 1;
}
.s3fb-queue-remove:hover {
  color: #ef4444;
  background: #fee2e2;
}
.s3fb-bulk-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #f8fafc;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .s3fb-sidebar { display: none; }
}

@media (max-width: 480px) {
  .s3fb-selection-bar {
    bottom: 12px;
    width: calc(100% - 32px);
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px;
  }
  .s3fb-selection-count { min-width: auto; }
  .s3fb-selection-actions { justify-content: flex-end; }

  .s3fb-confirm-dialog { padding: 24px 18px 20px; }
  .s3fb-confirm-footer {
    flex-direction: column-reverse;
  }
  .s3fb-confirm-footer .s3fb-btn--ghost,
  .s3fb-confirm-footer .s3fb-btn--danger {
    width: 100%;
    text-align: center;
    padding: 10px 16px;        /* was 0.6rem 1rem */
  }
}

/* Delete-folder button on folder cards (users with "delete s3 folders"). */
.s3fb-folder { position: relative; }
.s3fb-folder-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #dc2626;
  border-radius: 50%;
  background: #ffffff;
  color: #dc2626;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.s3fb-folder-delete svg { display: block; pointer-events: none; }
.s3fb-folder-delete:hover,
.s3fb-folder-delete:focus {
  background: #dc2626;
  color: #ffffff;
  transform: scale(1.08);
  outline: none;
}

/* Move and rename (users with "organize s3 files"). */
.s3fb-selection-bar .s3fb-move-selected {
  background: #2563eb;
  border: 0;
  color: #ffffff;
  font-weight: 600;
}
.s3fb-selection-bar .s3fb-move-selected:hover { background: #1d4ed8; }
.s3fb-folder-rename {
  position: absolute;
  top: 10px;
  right: 54px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #2563eb;
  border-radius: 50%;
  background: #ffffff;
  color: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.s3fb-folder-rename svg { display: block; pointer-events: none; }
.s3fb-folder-rename:hover,
.s3fb-folder-rename:focus {
  background: #2563eb;
  color: #ffffff;
  transform: scale(1.08);
  outline: none;
}
.s3fb-organize-dialog { max-width: 520px; }
.s3fb-org-crumb { margin: 8px 0; font-weight: 600; word-break: break-all; }
.s3fb-org-list {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 12px;
}
.s3fb-org-row { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #f3f4f6; }
.s3fb-org-row:last-child { border-bottom: 0; }
.s3fb-org-row:hover { background: #eff6ff; }
.s3fb-org-empty { padding: 9px 12px; color: #6b7280; margin: 0; }
.s3fb-org-item { margin: 0 0 10px; line-height: 1.4; }
.s3fb-org-page { margin: 2px 0 0 14px; font-size: 13px; }
.s3fb-org-error { color: #b91c1c; margin: 8px 0 0; min-height: 1em; }
.s3fb-organize-dialog .s3fb-org-body { max-height: 60vh; overflow-y: auto; }
.s3fb-organize-dialog .s3fb-org-go { background: #2563eb; color: #fff; border: 0; }
.s3fb-organize-dialog .s3fb-org-go:disabled { opacity: .5; cursor: not-allowed; }

/* Delete folder popup: show typed text as typed, and keep the buttons readable. */
.s3fb-confirm-overlay .s3fb-name-input {
  text-transform: none !important;
  letter-spacing: normal !important;
}
.s3fb-confirm-footer .s3fb-ffd-submit {
  background: #dc2626;
  color: #ffffff;
  border: 0;
  font-weight: 600;
  opacity: 1;
}
.s3fb-confirm-footer .s3fb-ffd-submit:hover:not(:disabled) { background: #b91c1c; }
.s3fb-confirm-footer .s3fb-ffd-submit:disabled {
  background: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 1;
}

/* "Where is this file used?" panel above the search results. */
.s3fb-usage-panel {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  border-radius: 10px;
  max-height: 280px;
  overflow-y: auto;
  font-size: 14px;
}
.s3fb-usage-title { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: #1e3a8a; }
.s3fb-usage-empty, .s3fb-usage-error, .s3fb-usage-note { margin: 0 0 6px; color: #374151; }
.s3fb-usage-error { color: #b91c1c; }
.s3fb-usage-note { font-size: 12px; color: #6b7280; margin-top: 8px; }
.s3fb-usage-item { padding: 8px 0; border-top: 1px solid #dbeafe; }
.s3fb-usage-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.s3fb-usage-type { color: #4b5563; }
.s3fb-usage-badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.s3fb-usage-badge--current { background: #dcfce7; color: #166534; }
.s3fb-usage-badge--draft { background: #fef3c7; color: #92400e; }
.s3fb-usage-edit {
  margin-left: auto;
  padding: 3px 12px;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.s3fb-usage-edit:hover { background: #1d4ed8; color: #ffffff; }
.s3fb-usage-found { margin-top: 3px; font-size: 13px; color: #374151; word-break: break-word; }

/* Folder action buttons (rename/delete/download) are triggered via menu / 3-dots trigger. */
.s3fb-folder .s3fb-folder-rename,
.s3fb-folder .s3fb-folder-delete,
.s3fb-folder .s3fb-folder-download {
  display: none !important;
}

/* 3-dots menu trigger on folder cards */
.s3fb-folder-menu-trigger {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #4b5563;
  cursor: pointer;
  opacity: 0.65;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: opacity .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}
.s3fb-folder:hover .s3fb-folder-menu-trigger {
  opacity: 1;
}
.s3fb-folder-menu-trigger:hover,
.s3fb-folder-menu-trigger:focus {
  background: #f3f4f6;
  color: #111827;
  border-color: #d1d5db;
  transform: scale(1.05);
  outline: none;
}
.s3fb-grid--list .s3fb-folder-menu-trigger {
  position: static;
  opacity: 0.8;
  margin-left: auto;
}

/* Toolbar Download Backup icon button */
.s3fb-download-folder-btn {
  color: #0369a1;
  border-color: #bae6fd;
  background: #f0f9ff;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.s3fb-download-folder-btn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0284c7;
}
.s3fb-download-folder-btn svg {
  margin: 0 !important;
}

/* Right-click menu */
.s3fb-ctx-menu {
  position: fixed;
  z-index: 2147483000;
  min-width: 190px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);
  font-size: 14px;
}
.s3fb-ctx-head {
  padding: 6px 10px 8px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}
.s3fb-ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #111827;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.s3fb-ctx-item:hover,
.s3fb-ctx-item:focus-visible {
  background: #f1f5f9;
  outline: none;
}
.s3fb-ctx-icon { display: inline-flex; color: #4b5563; }
.s3fb-ctx-item--danger,
.s3fb-ctx-item--danger .s3fb-ctx-icon { color: #b91c1c; }
.s3fb-ctx-item--danger:hover,
.s3fb-ctx-item--danger:focus-visible { background: #fef2f2; }
.s3fb-ctx-sep { height: 1px; margin: 4px 0; background: #f1f5f9; }

/* PDF first-page preview in the file details panel */
.s3fb-details-preview--pdf {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  padding: 14px !important;
  background: #f3f4f6 !important;
}
.s3fb-details-preview--pdf canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.25);
}
.s3fb-pdf-note { margin: 10px 0 0; font-size: 12px; color: #cbd5e1; text-align: center; }
.s3fb-details-preview--pdf .s3fb-pdf-note { color: #4b5563; }

/* Full view: images one per row at their original size (never enlarged). */
.s3fb-grid--full { display: flex; flex-direction: column; gap: 18px; padding: 20px; }
.s3fb-grid--full .s3fb-file:not(:has(.s3fb-filecard)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 14px;
  text-align: left;
  padding: 0 0 12px;
  border-bottom: 1px solid #eef0f3;
  border-radius: 0;
}
.s3fb-grid--full .s3fb-file:not(:has(.s3fb-filecard)) .s3fb-thumbwrap {
  grid-column: 1 / -1;
  width: fit-content;
  max-width: 100%;
  min-height: 90px;
  aspect-ratio: auto;
  margin-bottom: 0;
  background-color: #f9fafb;
  background-image: linear-gradient(45deg, #eef0f3 25%, transparent 25%, transparent 75%, #eef0f3 75%), linear-gradient(45deg, #eef0f3 25%, transparent 25%, transparent 75%, #eef0f3 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}
.s3fb-grid--full .s3fb-thumb {
  width: auto;
  height: auto;
  max-width: 100% !important;
  object-fit: contain;
}
.s3fb-grid--full .s3fb-file:not(:has(.s3fb-filecard)) .s3fb-name {
  max-height: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}
.s3fb-grid--full .s3fb-file:not(:has(.s3fb-filecard)) .s3fb-meta { display: block; color: #6b7280; white-space: nowrap; }
.s3fb-grid--full .s3fb-file:not(:has(.s3fb-filecard)) .s3fb-path { grid-column: 1 / -1; }
/* Folders, documents and videos stay as compact rows. */
.s3fb-grid--full .s3fb-folder,
.s3fb-grid--full .s3fb-file:has(.s3fb-filecard) {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 8px 11px;
  border-radius: 8px;
}
.s3fb-grid--full .s3fb-folder .s3fb-thumbwrap,
.s3fb-grid--full .s3fb-file:has(.s3fb-filecard) .s3fb-thumbwrap { width: 38px; height: 38px; flex-shrink: 0; margin-bottom: 0; }
.s3fb-grid--full .s3fb-folder .s3fb-folder-icon { font-size: 21px; }
.s3fb-grid--full .s3fb-filecard-ext { font-size: 9px; }
.s3fb-grid--full .s3fb-folder .s3fb-name,
.s3fb-grid--full .s3fb-file:has(.s3fb-filecard) .s3fb-name { flex: 1; max-height: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s3fb-grid--full .s3fb-file:has(.s3fb-filecard) .s3fb-path { display: none; }
.s3fb-grid--full .s3fb-file:has(.s3fb-filecard) .s3fb-meta { display: block; flex-shrink: 0; width: 72px; text-align: right; }
