/* ───────────────────────────────────────────────────────────────────────────
   OSPREXON — Studio (Finder) section
   Full-bleed warm canvas + macOS-style window UI used for "Inside The Studio".
   Includes window chrome, sidebar nav, folder grid, thumbnails, preview frame,
   right-click context menu, and Get Info panel.
   ─────────────────────────────────────────────────────────────────────── */

/* Shared vertical rhythm between About → Studio (Finder): bottom of About
   matches top of Finder; Finder top === Finder bottom for symmetry. */
:root {
  --section-seam-y: clamp(4rem, 9.5vw, 7rem);
}

.finder-section {
  margin: 0;
  padding-block: var(--section-pad-y, var(--section-seam-y));
  padding-inline: 0;
  width: 100%;
  max-width: none;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro",
    "Segoe UI",
    sans-serif;
  /* Studio / Finder only — ends before Client Stories (separate section). */
  background:
    radial-gradient(
      ellipse 85% 55% at 50% -10%,
      rgba(245, 232, 208, 0.65) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 70% 45% at 92% 85%,
      rgba(232, 148, 34, 0.06) 0%,
      transparent 55%
    ),
    linear-gradient(180deg, #faf9f6 0%, #f2efe8 55%, #f0ece4 100%);
  border-radius: 0;
}

.finder-section__inner {
  width: min(100%, var(--container-w, 1240px));
  margin-inline: auto;
  padding-inline: var(--container-pad-x, clamp(1.25rem, 4vw, 2rem));
}

.finder-intro {
  max-width: 52rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.finder-eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #b87a12;
}

.finder-heading {
  margin: 0 0 0.95rem;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #14151a;
}

.finder-heading em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #e89422;
}

.finder-subheading {
  margin: 0 0 1rem;
  font-size: clamp(0.92rem, 1.25vw, 1.05rem);
  line-height: 1.65;
  color: #4d5058;
  max-width: 42em;
}
.finder-window {
  background: rgba(24, 24, 26, 0.2);
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
  margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
  transform: translateZ(0);
}

/* Cheaper paints while idle. */
.finder-section--idle .finder-window {
  box-shadow: none;
}

@media (max-width: 768px) {
  .finder-actions {
    gap: 4px;
  }
  .finder-toolbar-divider:nth-of-type(1) {
    display: none;
  }
  .finder-icon-btn {
    width: 36px;
    height: 32px;
  }
}
.finder-topbar {
  height: 46px;
  background: linear-gradient(#f5f5f6, #ececef);
  border-bottom: 1px solid #d7d7db;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  padding: 0 14px;
}
.finder-lights {
  display: flex;
  gap: 8px;
}
.finder-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.finder-light--red {
  background: #ff5f57;
}
.finder-light--yellow {
  background: #febc2e;
}
.finder-light--green {
  background: #28c840;
}
.finder-title {
  justify-self: center;
  font-size: 14px;
  font-weight: 700;
  color: #1b1b1f;
}
.finder-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.finder-toolbar-segment {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(60, 60, 67, 0.08);
  border: 1px solid rgba(60, 60, 67, 0.1);
}
.finder-toolbar-divider {
  width: 1px;
  height: 18px;
  margin-inline: 2px;
  background: rgba(60, 60, 67, 0.16);
  flex-shrink: 0;
}
.finder-icon-btn {
  border: 0;
  background: transparent;
  color: #3c3c43;
  width: 30px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  flex-shrink: 0;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}
.finder-toolbar-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.finder-icon-btn:hover {
  background: rgba(255, 255, 255, 0.72);
  color: #1c1c1f;
}
.finder-icon-btn:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 1px;
}
.finder-icon-btn.is-active {
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
}
.finder-icon-btn.is-disabled,
.finder-icon-btn[aria-disabled="true"] {
  opacity: 0.34;
  pointer-events: none;
}
.finder-icon-btn.is-disabled:hover,
.finder-icon-btn[aria-disabled="true"]:hover {
  background: transparent;
  color: #3c3c43;
}
.finder-toolbar-segment .finder-icon-btn.is-active {
  background: #fff;
  color: #007aff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 0 0 0.5px rgba(0, 0, 0, 0.04);
}
.finder-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.finder-search-bar[hidden] {
  display: none !important;
}
.finder-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: #27272c;
  outline: none;
}
.finder-search-input::placeholder {
  color: #8a8a90;
}
.finder-search-input::-webkit-search-cancel-button {
  display: none;
}
.finder-search-clear {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: rgba(60, 60, 67, 0.1);
  color: #3c3c43;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.finder-search-clear:hover {
  background: rgba(60, 60, 67, 0.16);
}
.finder-toast {
  margin: 0 0 10px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(28, 28, 30, 0.92);
  color: #f5f5f7;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.finder-toast[hidden] {
  display: none !important;
}
.finder-body {
  background: #fff;
  display: grid;
  grid-template-columns: 200px 1fr;
  /* Cap the window height so it never feels stretched. svh keeps it stable
     when the mobile URL bar collapses; the floor keeps the grid usable. */
  min-height: clamp(480px, 62vh, 640px);
  min-height: clamp(480px, 62svh, 640px);
}
.finder-sidebar {
  background: #f6f6f6;
  border-right: 1px solid #e3e3e7;
  padding: 14px 10px;
}
.finder-nav-list {
  display: grid;
  gap: 4px;
}
.finder-nav-item {
  border: 0;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  padding: 6px 10px;
  font-size: 13px;
  color: #27272c;
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.finder-nav-item.is-active {
  background: #0058d0;
  color: #fff;
}
.finder-nav-item.is-active .finder-nav-icon {
  stroke: #fff;
  fill: none;
}
.finder-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: #5c5c66;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.finder-nav-item:not(.is-active):hover .finder-nav-icon {
  stroke: #27272c;
}
.finder-tag-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.22);
}
.finder-tag-dot--urgent {
  background: #ef4444;
}
.finder-tag-dot--work {
  background: #f97316;
}
.finder-tag-dot--vacation {
  background: #eab308;
}
.finder-section-label {
  margin: 15px 10px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #8e8e93;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.finder-content {
  padding: clamp(14px, 2vw, 18px) clamp(14px, 2.4vw, 18px)
    clamp(16px, 2.8vw, 22px);
}
.finder-folder-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
}
.finder-folder-star {
  position: absolute;
  top: 2px;
  right: calc(50% - 54px);
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.finder-folder-star:hover {
  background: #fff;
  transform: scale(1.06);
}
.finder-folder-star svg {
  width: 16px;
  height: 16px;
  stroke: #64748b;
  fill: none;
  stroke-width: 1.8;
}
.finder-folder-star.is-starred svg {
  fill: #f59e0b;
  stroke: #d97706;
}
.finder-folder-open {
  position: absolute;
  top: 2px;
  left: calc(50% - 54px);
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.finder-folder-open:hover {
  background: #fff;
  transform: scale(1.06);
}
.finder-folder-open svg {
  width: 15px;
  height: 15px;
  stroke: #64748b;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.finder-empty-hint {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  font-size: 14px;
  color: #64748b;
}
.finder-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px) clamp(10px, 1.2vw, 14px);
}
.finder-grid.finder-grid--columns {
  grid-template-columns: 1fr;
  gap: 2px;
}
.finder-grid--columns .finder-folder-wrap {
  justify-items: stretch;
}
.finder-grid--columns .finder-folder {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  column-gap: 12px;
  row-gap: 4px;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  border-radius: 8px;
}
.finder-grid--columns .folder-thumb {
  width: 40px;
  height: 32px;
  border-radius: 8px;
}
.finder-grid--columns .finder-meta {
  max-width: none;
  justify-self: start;
}
.finder-grid--columns .finder-folder-star {
  position: static;
  justify-self: end;
  align-self: center;
}
.finder-grid--columns .finder-folder-open {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 3;
}
.finder-grid--columns .finder-tag-pill {
  justify-self: end;
  align-self: center;
}
.finder-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  color: #fff;
  background: var(--tag-color, #8a8a90);
}
.finder-file,
.finder-folder {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.finder-file.is-selected,
.finder-folder.is-selected {
  background: #e8f0fe;
}
.finder-folder:focus {
  outline: none;
}
.finder-folder:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 1px;
}
.finder-thumb {
  width: 100px;
  height: 120px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}
.folder-thumb {
  width: 108px;
  height: 86px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  background: linear-gradient(155deg, #72aaff, #4d84ef);
}
.folder-thumb::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 10px;
  width: 44px;
  height: 16px;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.35);
}
.folder-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.04)
  );
}
.folder-thumb--web {
  background: linear-gradient(160deg, #4fa7ff, #1a79e8);
}
.folder-thumb--ai {
  background: linear-gradient(160deg, #43c56b, #1ea64b);
}
.folder-thumb--chatbot {
  background: linear-gradient(160deg, #7a7fff, #5059d8);
}
.finder-preview {
  margin-top: 22px;
  border: 1px solid #e4e4ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: none;
}
.finder-preview.is-visible {
  display: block;
}
.finder-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #ececf2;
  background: #f9f9fc;
}
.finder-preview-title {
  font-size: 12px;
  font-weight: 600;
  color: #20202a;
}
.finder-preview-close {
  border: 0;
  background: #ececf2;
  color: #3a3a43;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.finder-preview-close:hover {
  background: #e2e2ea;
}
.finder-preview-close:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 1px;
}
.finder-preview iframe {
  width: 100%;
  height: clamp(320px, 52vh, 420px);
  border: 0;
  pointer-events: none;
}
.finder-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #232329;
  max-width: 120px;
  line-height: 1.25;
  justify-content: center;
  flex-wrap: wrap;
}
.finder-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
}
.finder-dot--green {
  background: #34c759;
}
.finder-dot--blue {
  background: #007aff;
}
.finder-dot--gray {
  background: #c7c7cc;
}

/* Thumbnail styles */
.thumb-doc {
  background: #fff;
}
.thumb-doc::before {
  content: "";
  position: absolute;
  inset: 12px 12px 14px;
  background: repeating-linear-gradient(
    to bottom,
    #d5d5db 0 2px,
    transparent 2px 10px
  );
}
.thumb-poster {
  background: linear-gradient(135deg, #ff4d8f, #ff8f3f 55%, #ffe066);
}
.thumb-azolla {
  background: #fff;
}
.thumb-azolla::before {
  content: "🍃";
  position: absolute;
  top: 14px;
  left: 12px;
  font-size: 20px;
}
.thumb-azolla::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 44px;
  bottom: 14px;
  background: repeating-linear-gradient(
    to bottom,
    #d8d8de 0 2px,
    transparent 2px 9px
  );
}
.thumb-bio {
  background: #111;
  color: #fff;
}
.thumb-bio::before {
  content: "BIOFACTURE";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.thumb-block {
  background: linear-gradient(140deg, #f4ef9e, #b3d986);
}
.thumb-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(#ff5f57 2px, transparent 2px),
    radial-gradient(#007aff 2px, transparent 2px),
    radial-gradient(#34c759 2px, transparent 2px);
  background-size:
    28px 28px,
    30px 30px,
    26px 26px;
  background-position:
    4px 6px,
    14px 16px,
    20px 10px;
  opacity: 0.6;
}
.thumb-fruit {
  background: linear-gradient(135deg, #ff4e7a, #f97f6d, #ffc070);
}
.thumb-memories {
  background: linear-gradient(#6ec4ff, #98dbff 45%, #d6f4ff);
}
.thumb-memories::before {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 12px;
  width: 74px;
  height: 22px;
  background:
    radial-gradient(circle at 12px 8px, #36495b 5px, transparent 6px),
    radial-gradient(circle at 35px 9px, #3f5f76 5px, transparent 6px),
    radial-gradient(circle at 57px 8px, #2f4a61 5px, transparent 6px);
}
.thumb-hello {
  background: linear-gradient(140deg, #ffbb7d, #f58f72, #d97a5a);
}
.thumb-insp1 {
  background: linear-gradient(140deg, #f6513a, #ff7e4f, #ff9c54);
}
.thumb-insp2 {
  background: linear-gradient(150deg, #1f2731, #423f52, #6a4e5c);
}
.thumb-textile {
  background: #1f4f3d;
  color: #e8ffd6;
}
.thumb-textile::before {
  content: "Mexican\A Textiles";
  white-space: pre;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.thumb-order {
  background: #fff;
}
.thumb-order::before {
  content: "";
  position: absolute;
  inset: 10px;
  background:
    repeating-linear-gradient(to bottom, #81d69d 0 10px, transparent 10px 20px),
    repeating-linear-gradient(to right, #e8e8ee 0 1px, transparent 1px 16px);
}
.thumb-picnic {
  background: linear-gradient(150deg, #c1df66, #f1ec96, #88bf50);
}
.thumb-remodel {
  background: #fff;
}
.thumb-remodel::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 64px;
  background:
    linear-gradient(to top, #6aa7ff 0 28px, transparent 28px),
    linear-gradient(to top, #f79f79 0 40px, transparent 40px),
    linear-gradient(to top, #7ed39f 0 52px, transparent 52px);
  background-size:
    24px 64px,
    24px 64px,
    24px 64px;
  background-repeat: no-repeat;
  background-position:
    0 100%,
    28px 100%,
    56px 100%;
}
.thumb-zip {
  background: linear-gradient(135deg, #c6c6cc, #adadb4);
}
.thumb-zip::before {
  content: "ZIP";
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #48484d;
}
.thumb-zip::after {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 10px;
  left: 48px;
  width: 8px;
  background: repeating-linear-gradient(
    to bottom,
    #808086 0 4px,
    #d1d1d6 4px 8px
  );
  border-radius: 4px;
}

/* ───── macOS-style context menu ───── */
.finder-context-menu {
  --menu-bg: rgba(245, 245, 247, 0.78);
  --menu-divider: rgba(60, 60, 67, 0.18);
  --menu-text: #1c1c1f;
  --menu-shortcut: #8a8a90;
  position: fixed;
  z-index: 10000;
  min-width: 230px;
  padding: 5px;
  border-radius: 10px;
  background: rgba(245, 245, 247, 0.97);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.2),
    0 12px 36px rgba(0, 0, 0, 0.28);
  font-size: 13px;
  color: var(--menu-text);
  opacity: 0;
  transform: scale(0.96);
  transform-origin: top left;
  pointer-events: none;
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
}
.finder-context-menu.is-open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.finder-context-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  font: inherit;
  color: inherit;
  cursor: default;
  text-align: left;
}
.finder-context-item[disabled] {
  color: rgba(28, 28, 31, 0.35);
  cursor: not-allowed;
}
.finder-context-item:not([disabled]):hover,
.finder-context-item:not([disabled]):focus-visible {
  background: #0a84ff;
  color: #fff;
  outline: none;
}
.finder-context-item:not([disabled]):hover .finder-context-shortcut,
.finder-context-item:not([disabled]):focus-visible .finder-context-shortcut {
  color: rgba(255, 255, 255, 0.85);
}
.finder-tag-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.finder-tag-swatch--work {
  background: #f97316;
}
.finder-tag-swatch--urgent {
  background: #ef4444;
}
.finder-tag-swatch--vacation {
  background: #eab308;
}
.finder-context-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.finder-context-label {
  flex: 1;
}
.finder-context-shortcut {
  margin-left: auto;
  font-size: 12px;
  color: var(--menu-shortcut);
  letter-spacing: 0.5px;
}
.finder-context-divider {
  height: 1px;
  background: var(--menu-divider);
  margin: 4px 8px;
}

/* ───── Folder open zoom clone ───── */
.finder-folder-clone {
  position: fixed;
  z-index: 9000;
  pointer-events: none;
  transform-origin: top left;
  will-change: transform, opacity, border-radius;
}
.finder-folder.is-pressed .folder-thumb {
  transform: scale(0.94);
  transition: transform 0.14s ease;
}

/* ───── Get Info modal ───── */
.finder-info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  z-index: 9500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.finder-info-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.finder-info-overlay.is-open .finder-info-panel {
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.finder-info-panel {
  width: 320px;
  background: rgba(246, 246, 248, 0.98);
  border-radius: 12px;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.18),
    0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  font-size: 13px;
  color: #1c1c1f;
  transform: scale(0.96);
  transition: transform 0.18s ease;
}
.finder-info-overlay.is-open .finder-info-panel {
  transform: scale(1);
}
.finder-info-head {
  min-height: 44px;
  background: linear-gradient(#ececef, #d8d8dc);
  border-bottom: 1px solid #c7c7ce;
  display: flex;
  align-items: center;
  padding: 0 6px 0 0;
  position: relative;
}
.finder-info-close {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  cursor: pointer;
  padding: 0;
  background: transparent;
  transition: transform 0.2s ease;
}
.finder-info-close::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  transition: transform 0.2s ease;
}
.finder-info-close:hover::before {
  transform: scale(1.1);
}
.finder-info-close:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 1px;
}
.finder-info-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #2c2c30;
  pointer-events: none;
}
.finder-info-body {
  padding: 16px 18px 20px;
}
.finder-info-hero {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.14);
}
.finder-info-hero .folder-thumb {
  width: 56px;
  height: 44px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.finder-info-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.finder-info-kind {
  margin-top: 2px;
  color: #6e6e73;
  font-size: 12px;
}
.finder-info-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  margin: 6px 0;
  line-height: 1.5;
}
.finder-info-row dt {
  text-align: right;
  color: #6e6e73;
  font-weight: 600;
}
.finder-info-row dd {
  margin: 0;
  color: #1c1c1f;
  word-break: break-all;
}
.finder-info-row dd a {
  color: #0a84ff;
  text-decoration: none;
}
.finder-info-row dd a:hover {
  text-decoration: underline;
}
.finder-info-tag-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.finder-info-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.08);
  font-size: 11px;
  color: #2c2c30;
}
.finder-info-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tag-color, #8a8a90);
}

@media (max-width: 1180px) {
  .finder-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  .finder-body {
    grid-template-columns: 180px 1fr;
    min-height: clamp(460px, 60svh, 600px);
  }
}
@media (max-width: 960px) {
  .finder-body {
    grid-template-columns: 170px 1fr;
  }
  .finder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .folder-thumb {
    width: 100px;
    height: 80px;
  }
}
@media (max-width: 768px) {
  /* Collapse to a single column. The sidebar becomes a horizontal
     section above the grid so it stays useful without eating screen space. */
  .finder-window {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .finder-body {
    grid-template-columns: 1fr;
    min-height: clamp(460px, 64svh, 600px);
  }
  .finder-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e3e3e7;
    padding: 10px;
  }
  .finder-nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .finder-section-label {
    display: none;
  }
  .finder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .finder-content {
    padding: 14px;
  }
  .finder-topbar {
    height: 42px;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 0 10px;
  }
  .finder-title {
    font-size: 13px;
  }
  #finder-share-btn,
  #finder-tag-btn,
  #finder-more-btn,
  .finder-toolbar-divider {
    display: none !important;
  }
  .folder-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
  }
  .finder-preview iframe {
    height: clamp(240px, 48svh, 380px);
  }
}
@media (max-width: 480px) {
  .finder-window {
    border-radius: 14px;
  }
  .finder-body {
    min-height: clamp(440px, 70svh, 560px);
  }
  .finder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .finder-content {
    padding: 12px;
  }
  .finder-actions {
    gap: 4px;
  }
  .finder-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .finder-icon-btn {
    width: 36px;
    height: 32px;
  }
  .finder-folder-star {
    /* Keep the star/open buttons inside the thumb on narrow widths,
       otherwise calc(50% - 54px) pushes them off the side. */
    right: 6px;
  }
  .finder-folder-open {
    left: 6px;
  }
  .finder-meta {
    max-width: 100%;
    font-size: 10.5px;
  }
}
@media (max-width: 390px) {
  /* Single-column folder grid below 390px so each card has room to breathe
     and the meta labels don't truncate awkwardly. */
  .finder-grid {
    grid-template-columns: 1fr;
  }
  .folder-thumb {
    aspect-ratio: 16 / 10;
  }
  .finder-body {
    min-height: clamp(420px, 72svh, 520px);
  }
}

/* Static list fallback — kept in markup for accessibility copy only. */
.finder-mobile-fallback {
  display: none !important;
}
