/* FIX25: scoped finishing layer. Original logo, themes and account flows remain authoritative. */
html{scrollbar-gutter:stable}body{--fx25-focus:var(--cyan,#60ddff)}
:where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--fx25-focus);outline-offset:3px}
.main,.page,.panel,.collection-search-row,.collection-sort-wrap{min-width:0}
.sidebar{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.sidebar-footer{flex-shrink:0}
.topbar .searchbox{min-width:100px}.topbar .searchbox input{min-width:0;width:100%}
.fx25-open-navigation{flex-shrink:0;font-size:12px;min-height:38px;padding:7px 12px;white-space:nowrap}
.fx25-collection-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 16px}.fx25-collection-tools>span{font-size:12px;color:var(--muted)}.fx25-collection-tools button{flex-shrink:0;font-size:12px;min-height:38px}
#collectionGrid.fx25-compact{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}
.fx25-empty{grid-column:1/-1;padding:44px 20px;max-width:580px;margin:12px auto;text-align:center}.fx25-empty small{max-width:400px;line-height:1.6}.fx25-empty button{margin-top:12px;min-height:44px}
.fx25-connection{margin:12px 0;padding:13px 16px;border:1px solid #e9b55a66;border-radius:12px;background:#5b3b192e;color:var(--text);font-size:13px;line-height:1.5}.fx25-connection[hidden]{display:none}
html body dialog.fx25-navigator{width:min(560px,calc(100vw - 28px));max-width:560px;padding:22px;border:1px solid var(--line-strong);border-radius:22px;background:var(--bg2,#0b1630);color:var(--text);max-height:calc(100dvh - 40px);overflow:auto;box-shadow:var(--shadow)}
.fx25-nav-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.fx25-nav-head h2{font-size:22px;margin:0;letter-spacing:-.03em}.fx25-nav-head button{min-width:40px;min-height:40px;padding:5px;font-size:22px}
.fx25-nav-search{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;margin-bottom:14px;background:var(--panel)}.fx25-nav-search input{width:100%;min-width:0;background:transparent;border:0;color:inherit;font:inherit;min-height:28px}
#fx25Destinations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.fx25-destination{min-height:52px;text-align:left;white-space:normal;overflow-wrap:anywhere;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px;color:var(--text);font:inherit;font-size:14px;cursor:pointer}.fx25-destination:hover{border-color:var(--line-strong);background:var(--panel-2)}
#fx25NoDestination{font-size:14px;color:var(--muted);line-height:1.5}
/* Limit ordinary forms without touching the full photo, crop and binder workspaces. */
html body dialog.modal:not(.binder-crop-editor-modal):not(.fx25-navigator){max-width:min(900px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
html body dialog::backdrop{backdrop-filter:blur(7px)}
@media(min-width:901px) and (max-height:800px){.sidebar{padding-top:14px}.sidebar .brand{padding-bottom:15px}.sidebar .nav{gap:3px}.sidebar .nav-item{padding:9px 12px}.sidebar-footer{padding-top:18px}}
@media(max-width:1150px){.topbar{gap:8px}.topbar .status-wrap{max-width:140px}.topbar .searchbox kbd{display:none}.fx25-open-navigation{padding:7px 9px}}
@media(max-width:900px){.mobile-tabs.fx492-mobile-tabs{grid-template-columns:repeat(6,minmax(0,1fr))!important}.mobile-tabs #fx25MobileMore{min-width:0;min-height:48px}.topbar .fx25-open-navigation{display:none}.fx25-collection-tools{flex-wrap:wrap}.fx25-collection-tools>span{flex:1 1 160px}}
@media(max-width:520px){#collectionGrid.fx25-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.fx25-nav-head h2{font-size:20px}html body dialog.fx25-navigator{padding:18px}.fx25-nav-search input{font-size:16px}.fx25-connection{font-size:12px}.fx25-collection-tools{gap:8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.fx25-destination{transition:none}}

#folmioxReleaseMark{display:block;text-align:center;margin:24px 0 8px;color:var(--muted);font-size:11px;pointer-events:none}
@media(max-width:900px){.mobile-tabs{bottom:max(10px,env(safe-area-inset-bottom))}.fx-assistant-fab{bottom:calc(84px + env(safe-area-inset-bottom))}.main{padding-bottom:110px}}
