@layer collection {
  .icon { filter: none; object-fit: contain; }
  .btn.primary .icon, .btn.dark .icon, .collection-create .icon { filter: invert(1); }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .collection-shell { background: var(--rf-canvas); color: var(--rf-ink); min-height: 100dvh; font-family: var(--rf-font); }
  .collection-rail { position: fixed; width: var(--sidebar); inset: 0 auto 0 0; overflow-y: auto; border-right: 1px solid var(--rf-line); background: var(--rf-paper); display: flex; flex-direction: column; padding: 24px 14px 20px; z-index: 20; }
  .rail-brand { padding: 0 10px; height: 32px; margin-bottom: 22px; display: flex; align-items: center; gap: 7px; border: 0; background: none; font-size: 15px; font-weight: 600; letter-spacing: -.025em; }
  .collection-workspace { display: flex; gap: 10px; align-items: center; padding: 10px; background: var(--rf-canvas); border-radius: 8px; margin-bottom: 16px; }
  .workspace-initial { width: 32px; height: 32px; display: grid; place-items: center; background: var(--rf-ink); color: white; border-radius: 6px; font-size: 12px; }
  .collection-workspace strong { font-weight: 500; font-size: 14px; }
  .collection-workspace small { display: block; color: var(--rf-ink-3); font-size: 12px; }
  .collection-rail nav { display: grid; gap: 4px; }
  .rail-button { width: 100%; min-height: 40px; padding: 9px 10px; border: 0; border-radius: 6px; display: flex; align-items: center; gap: 10px; text-align: left; background: transparent; color: var(--rf-ink-2); font-size: 14px; }
  .rail-button .icon { width: 20px; height: 20px; opacity: .8; }
  .rail-button > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rail-button small { margin-left: auto; color: var(--rf-ink-3); font-size: 12px; }
  .rail-button.active, .rail-button:hover { background: var(--rf-canvas); color: var(--rf-ink); }
  .collection-nav-label { margin: 26px 10px 8px; color: var(--rf-ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
  .rail-bottom { margin-top: auto; padding-top: 24px; }
  .collection-profile { margin: 18px 10px 0; padding-top: 20px; border-top: 1px solid var(--rf-line); display: flex; align-items: center; gap: 10px; font-size: 13px; }
  .collection-profile > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--rf-canvas); color: var(--rf-ink-2); font-size: 11px; }
  .collection-profile small { display: block; color: var(--rf-ink-3); font-size: 12px; margin-top: 2px; }
  .collection-body { margin-left: var(--sidebar); }
  .collection-topbar { min-height: 64px; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--rf-line); background: var(--rf-paper); }
  .collection-wordmark { font-size: 14px; display: flex; gap: 12px; white-space: nowrap; }
  .collection-wordmark > span { color: var(--rf-ink-3); }
  .collection-search { display: flex; align-items: center; gap: 8px; max-width: 280px; flex: 1; margin-left: auto; }
  .collection-search .icon { width: 18px; height: 18px; }
  .collection-search input { border: 0; background: transparent; padding: 8px 0; font-size: 13px; border-radius: 0; }
  .collection-search input::placeholder { color: var(--rf-ink-3); }
  .collection-create { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; border: 1px solid var(--rf-ink); border-radius: 7px; background: var(--rf-ink); color: white; padding: 8px 12px; font-size: 13px; font-weight: 400; white-space: nowrap; }
  .collection-create:hover { background: #363636; }
  .collection-create .icon { width: 16px; height: 16px; }
  .collection-main { padding: 32px 32px 24px; max-width: 1600px; margin: auto; }
  .collection-heading { margin-bottom: 24px; }
  .collection-heading h1 { font-size: 28px; line-height: 34px; letter-spacing: -.025em; font-weight: 600; }
  .collection-heading p { color: var(--rf-ink-3); margin-top: 6px; font-size: 14px; }
  .collection-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 24px; margin-bottom: 28px; background: var(--rf-paper); border: 1px solid var(--rf-line); border-radius: 12px; }
  .collection-summary span, .collection-summary small { display: block; color: var(--rf-ink-3); font-size: 13px; }
  .collection-summary strong { display: block; margin: 6px 0; font-size: 32px; line-height: 38px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
  .collection-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
  .collection-tabs { display: flex; gap: 20px; flex-wrap: wrap; }
  .collection-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; min-height: 36px; color: var(--rf-ink-3); background: none; border: 0; border-bottom: 1px solid transparent; font-size: 13px; white-space: nowrap; }
  .collection-tabs button[aria-pressed="true"] { color: var(--rf-ink); border-bottom-color: var(--rf-ink); }
  .collection-tabs button:hover { color: var(--rf-ink); }
  .collection-tabs .icon { display: none; }
  .collection-tabs button > span { font-size: 11px; color: var(--rf-ink-3); margin-left: 2px; }
  .collection-layout { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--rf-line); background: var(--rf-paper); border-radius: 6px; }
  .collection-layout button { display: grid; place-items: center; border: 0; background: none; border-radius: 3px; width: 30px; height: 28px; }
  .collection-layout button[aria-pressed="true"] { background: var(--rf-canvas); }
  .collection-layout .icon { width: 17px; height: 17px; }
  .collection-content { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 20px; align-items: start; }
  .collection-content > * { min-width: 0; }
  .project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .project-cover { border: 1px solid var(--rf-line); background: var(--rf-paper); color: var(--rf-ink); border-radius: 12px; padding: 24px; text-align: left; display: flex; flex-direction: column; min-width: 0; }
  .project-cover:hover { border-color: #bdbdbd; }
  .project-cover-featured { grid-column: 1 / -1; }
  .cover-top { display: flex; align-items: center; gap: 16px; width: 100%; }
  .cover-top > span:not(.cover-open) { min-width: 0; }
  .cover-image { width: 72px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
  .cover-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--rf-ink-3); }
  .cover-kind .icon { width: 14px; height: 14px; }
  .cover-open { display: grid; place-items: center; margin-left: auto; flex-shrink: 0; }
  .cover-open .icon { width: 18px; height: 18px; }
  .cover-name { display: block; margin-top: 4px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; overflow-wrap: anywhere; }
  .cover-caption { display: flex; flex-direction: column; margin-top: 18px; flex: 1; }
  .cover-purpose { color: var(--rf-ink-2); font-size: 14px; line-height: 1.6; max-width: 65ch; }
  .cover-facts { display: flex; gap: 10px 20px; flex-wrap: wrap; color: var(--rf-ink-3); font-size: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rf-line); }
  .gallery-local-note { padding: 24px; border: 1px solid var(--rf-line); border-radius: 12px; background: var(--rf-paper); }
  .gallery-local-note h2 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
  .gallery-local-note p { font-size: 14px; color: var(--rf-ink-2); line-height: 1.6; margin-top: 12px; }
  .local-model-label { display: flex; align-items: center; gap: 7px; color: var(--rf-accent); font-size: 13px; margin-top: 24px; }
  .local-model-label .icon { width: 16px; height: 16px; }
  .gallery-local-note .model-note { margin-top: 8px; font-size: 12px; color: var(--rf-ink-3); }
  .gallery-list { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--rf-line); border-radius: 12px; overflow: hidden; }
  .gallery-list .project-cover { border: 0; border-radius: 0; border-bottom: 1px solid var(--rf-line); padding: 20px; }
  .gallery-list .project-cover:last-child { border-bottom: 0; }
  .gallery-list .project-cover:hover { background: #fafafa; }
  .gallery-list .cover-image { width: 40px; height: 40px; }
  .gallery-list .cover-name { font-size: 16px; }
  .gallery-list .cover-caption { margin-top: 12px; }
  .gallery-list .cover-facts { margin-top: 12px; padding-top: 0; border: 0; }
  .collection-empty { border: 1px solid var(--rf-line); padding: 40px 24px; border-radius: 12px; background: var(--rf-paper); }
  .collection-empty h2 { font-size: 20px; }
  .collection-empty p { color: var(--rf-ink-3); margin: 10px 0 20px; }
  .collection-next { margin-top: 32px; }
  .collection-section-title { margin-bottom: 16px; }
  .collection-section-title h2 { font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
  .collection-resources { padding: 4px 24px; border: 1px solid var(--rf-line); border-radius: 12px; background: var(--rf-paper); }
  .collection-resource { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px 0; border: 0; border-bottom: 1px solid var(--rf-line); background: none; color: var(--rf-ink); }
  .collection-resource:last-child { border-bottom: 0; }
  .collection-resource:hover strong { text-decoration: underline; text-underline-offset: 3px; }
  .collection-resource > span:nth-child(2) { flex: 1; min-width: 0; }
  .collection-resource strong { font-size: 14px; font-weight: 500; }
  .collection-resource > span > span { display: block; color: var(--rf-ink-3); font-size: 13px; margin-top: 4px; line-height: 1.5; }
  .resource-icon { display: grid; place-items: center; width: 24px; flex-shrink: 0; }
  .resource-icon .icon { width: 20px; height: 20px; }
  .collection-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rf-line); display: flex; justify-content: space-between; gap: 16px; color: var(--rf-ink-3); font-size: 12px; }
  @media (max-width: 1200px) { .collection-content { grid-template-columns: 1fr; } .collection-wordmark > span { display: none; } .gallery-local-note { padding: 20px 24px; } .local-model-label { margin-top: 16px; } }
  @media (max-width: 900px) { .collection-topbar { padding: 12px 24px; gap: 16px; } .collection-main { padding: 28px 24px; } .collection-summary { gap: 20px; padding: 20px; } .collection-summary small { font-size: 12px; } .collection-tabs { gap: 16px; } }
  @media (max-width: 760px) {
    .collection-rail { position: static; width: 100%; padding: 14px 20px; border-right: 0; border-bottom: 1px solid var(--rf-line); }
    .rail-brand { height: auto; margin: 0; padding: 0; } .collection-workspace, .collection-rail nav, .rail-bottom { display: none; }
    .collection-body { margin: 0; } .collection-topbar { padding: 10px 20px; min-height: 60px; } .collection-wordmark { display: none; }
    .collection-search { margin: 0; max-width: none; } .collection-main { padding: 24px 20px; }
    .collection-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .collection-toolbar { gap: 12px; align-items: start; }
    .collection-tabs { gap: 4px 16px; } .collection-tabs button { min-height: 44px; } .collection-layout button { min-width: 36px; min-height: 38px; }
    .collection-create { min-height: 44px; } .project-gallery { grid-template-columns: 1fr; } .project-cover { padding: 20px; }
    .cover-image { width: 56px; height: 48px; } .cover-name { font-size: 18px; } .cover-top { gap: 12px; } .cover-facts { gap: 8px 16px; }
    .collection-footer { flex-direction: column; gap: 8px; }
  }
  @media (max-width: 390px) { .collection-main { padding-inline: 16px; } .collection-topbar { padding-inline: 16px; gap: 12px; } .collection-create { padding-inline: 10px; } .collection-create .icon { display: none; } .collection-tabs { gap: 2px 14px; } .collection-tabs button > span { display: none; } .cover-image { width: 44px; height: 44px; } }
}
