/* BRARFLIX V64 — persistent storefront search, announcement ticker, catalog admin */
:root{--search-yellow:#ffd400;--tools-bg:rgba(5,5,5,.97);--tools-search:#090909;--tools-text:#fff;--tools-muted:#a7a7a7}
html[data-theme="light"]{--tools-bg:rgba(255,255,255,.98);--tools-search:#fff;--tools-text:#111;--tools-muted:#666}

/* Home/Marketplace: announcement bar above one clear global search field. */
.storefront-tools{position:sticky;top:72px;z-index:950;background:var(--tools-bg);border-bottom:1px solid var(--simple-line);box-shadow:0 12px 30px rgba(0,0,0,.12)}
.storefront-ticker{height:32px;display:flex;align-items:center;overflow:hidden;border-bottom:1px solid var(--simple-line);background:var(--simple-panel);color:var(--simple-text)}
.ticker-window{width:100%;overflow:hidden;position:relative}.ticker-track{display:flex;align-items:center;gap:0;width:max-content;will-change:transform;animation:bfTickerV66 18s linear infinite!important;animation-play-state:running!important}.ticker-set{flex:0 0 auto;display:flex;align-items:center;gap:48px;padding-right:48px;white-space:nowrap;font-size:12px;font-weight:900;letter-spacing:.02em}.ticker-set b{font-size:8px;color:var(--search-yellow)}
@keyframes bfTickerV66{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(-25%,0,0)}}
to{transform:translateX(-25%)}}
.storefront-search-row{padding:10px 0;background:var(--tools-bg)}
.global-search-shell{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) auto 38px;align-items:center;min-height:48px;border:2px solid var(--search-yellow);border-radius:12px;background:var(--tools-search);box-shadow:0 8px 24px rgba(0,0,0,.16)}
.global-search-icon{display:grid;place-items:center;color:var(--search-yellow);font-size:25px;font-weight:1000}
.global-search-shell input{width:100%;height:44px;border:0!important;outline:0!important;background:transparent!important;color:var(--tools-text)!important;box-shadow:none!important;padding:0 10px 0 0!important;font:700 15px/1.2 Inter,system-ui,Segoe UI,Arial,sans-serif!important;letter-spacing:0!important}
.global-search-shell input::placeholder{color:var(--tools-muted)!important;opacity:1!important;font-weight:650!important}
.global-search-submit{height:36px;margin-right:5px;padding:0 18px;border:0;border-radius:8px;background:var(--search-yellow);color:#0a0a0a;font-weight:950;font-size:12px;cursor:pointer}
.global-search-clear{height:36px;width:34px;margin-right:4px;border:0;background:transparent;color:var(--tools-muted);font-size:22px;cursor:pointer}
.global-search-results{position:absolute;left:-2px;right:-2px;top:calc(100% + 7px);z-index:2000;padding:7px;border:1px solid var(--simple-line);border-radius:12px;background:var(--simple-panel);box-shadow:0 24px 60px rgba(0,0,0,.3)}
.global-search-result{display:grid;width:100%;grid-template-columns:52px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--simple-text);text-align:left;cursor:pointer}.global-search-result:hover{background:var(--simple-panel-2)}.global-search-result img{width:52px;height:42px;object-fit:cover;border-radius:6px}.global-search-result b,.global-search-result small{display:block}.global-search-result small{margin-top:2px;color:var(--simple-muted)}.global-search-result strong{font-size:12px}.global-search-empty{padding:12px;color:var(--simple-muted);font-size:13px}

/* Staff catalog/content controls */
.staff-config-section{margin-top:24px}.staff-config-section>.panel{padding:24px!important}.staff-config-title{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:20px}.staff-config-title h2{margin:6px 0}.staff-config-title p{margin:0;color:var(--simple-muted)}
.staff-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.staff-config-card{padding:18px;border:1px solid var(--simple-line);border-radius:14px;background:var(--simple-panel-2)}.staff-config-card h3{margin:0 0 8px}.staff-config-card p{margin:0 0 14px;color:var(--simple-muted);font-size:13px;line-height:1.5}.staff-inline-form{display:flex;gap:8px;align-items:center}.staff-inline-form .field{margin:0!important}.staff-inline-form .btn{flex:0 0 auto}.catalog-list{display:grid;gap:7px;margin-top:13px;max-height:260px;overflow:auto}.catalog-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border:1px solid var(--simple-line);border-radius:9px;background:var(--simple-panel)}.catalog-row b{font-size:13px}.catalog-row small{display:block;color:var(--simple-muted);margin-top:2px}.catalog-delete{min-height:34px!important;padding:0 10px!important;font-size:11px!important}.catalog-assign-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr auto;gap:8px;align-items:end}.catalog-assign-grid label{margin:0 0 6px!important;font-size:12px}.catalog-migration-note{padding:12px 14px;border:1px dashed var(--simple-line-strong);border-radius:10px;color:var(--simple-muted);font-size:13px;line-height:1.5}.ticker-admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ticker-admin-grid label{margin:0 0 6px!important}.ticker-admin-actions{margin-top:12px;display:flex;justify-content:flex-end}

/* Keep text extremely readable in both themes. */
html[data-theme="dark"] .staff-config-card,html[data-theme="dark"] .catalog-row{color:#f5f5f5}html[data-theme="light"] .staff-config-card,html[data-theme="light"] .catalog-row{color:#111}

@media(max-width:920px){.storefront-tools{top:66px}.ticker-set{gap:30px;padding-right:30px;font-size:11px}.staff-config-grid{grid-template-columns:1fr}.catalog-assign-grid{grid-template-columns:1fr 1fr}.catalog-assign-grid>div:first-child{grid-column:1/-1}.catalog-assign-grid>.btn{min-height:44px}.ticker-admin-grid{grid-template-columns:1fr}}
@media(max-width:620px){.storefront-search-row{padding:8px 0}.global-search-shell{grid-template-columns:36px minmax(0,1fr) 34px;min-height:46px}.global-search-submit{display:none}.global-search-shell input{font-size:14px!important}.ticker-set{font-size:10px;gap:24px;padding-right:24px}.catalog-assign-grid{grid-template-columns:1fr}.catalog-assign-grid>div:first-child{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.ticker-track{animation:bfTickerV66 26s linear infinite!important;animation-play-state:running!important}}

/* V66: announcement ticker must remain continuously moving even when legacy CSS disables animations globally. */
.storefront-ticker .ticker-track{animation:bfTickerV66 18s linear infinite!important;animation-play-state:running!important;transform:translate3d(0,0,0)}
@media(prefers-reduced-motion:reduce){.storefront-ticker .ticker-track{animation:bfTickerV66 26s linear infinite!important}}
