/* FansFlex v8.8 — REF-LOCKED metallic finish.
   References: 01 landing unchanged, 02 dark dashboard, 03 silver-blue workspace,
   04 silver feed. No generated picture/whole-page mockup is shipped.
   Browser's resolved data-bs-theme controls BOTH dashboard routes.
   Chrome/metal effects use static CSS gradients, never overlays that block clicks. */
body.fansflex-app, body.fansflex-generic {
  --ff88-ink:#153858; --ff88-muted:#607e99; --ff88-edge:rgba(111,151,190,.39);
  --ff88-highlight:rgba(255,255,255,.95); --ff88-glow:rgba(40,125,209,.15);
  --ff88-panel:#f3f8fe; --ff88-field:#edf4fc; --ff88-floor:#e9f1fb;
  --ff88-metal:linear-gradient(133deg,rgba(255,255,255,.98) 0%,rgba(245,250,255,.98) 23%,rgba(206,225,246,.85) 45%,rgba(248,251,255,.98) 62%,rgba(219,235,250,.94) 100%);
  --ff88-shadow:0 2px 4px rgba(21,62,107,.075),0 10px 25px rgba(35,84,145,.10),inset 0 1px rgba(255,255,255,.96);
  --ff88-shadow-focus:0 0 0 3px rgba(26,114,220,.22);
  --ff88-gold-metal:linear-gradient(180deg,#fff1bd 0%,#ebc879 42%,#b78031 100%);
}
html[data-bs-theme="dark"] body.fansflex-app,html[data-bs-theme="dark"] body.fansflex-generic {
  --ff88-ink:#edf6ff; --ff88-muted:#a9c2d7; --ff88-edge:rgba(147,187,221,.38);
  --ff88-highlight:rgba(230,246,255,.18); --ff88-glow:rgba(43,160,255,.27);
  --ff88-panel:#0e263b; --ff88-field:#112f49; --ff88-floor:#071726;
  --ff88-metal:linear-gradient(132deg,#203c55 0%,#0b1d2e 25%,#19374f 49%,#0c1e30 69%,#132c42 100%);
  --ff88-shadow:0 2px 4px rgba(0,5,15,.38),0 13px 32px rgba(0,6,20,.30),inset 0 1px rgba(216,239,255,.12);
  --ff88-shadow-focus:0 0 0 3px rgba(66,172,255,.28);
}
/* Single accessible, compact theme control. Existing theme cookie is authoritative. */
body.fansflex-app .ff88-theme-toggle {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-width:41px;min-height:37px;padding:7px 10px;border-radius:11px;
  border:1px solid var(--ff88-edge);color:var(--ff88-ink);
  background:var(--ff88-metal);box-shadow:var(--ff88-shadow);
  font:700 11px/1.2 Inter,"Open Sans",sans-serif;white-space:nowrap;
  cursor:pointer;position:relative;flex:none;
  transition:box-shadow .16s,border-color .16s,filter .16s;
}
body.fansflex-app .ff88-theme-toggle:is(:hover,:focus-visible) {border-color:#8cc5ff;box-shadow:var(--ff88-shadow),var(--ff88-shadow-focus);}
body.fansflex-app .ff88-theme-toggle svg{width:17px;height:17px;flex:none;stroke:currentColor}
html[data-bs-theme="dark"] .ff88-theme-toggle .ff88-icon-moon,
html[data-bs-theme="light"] .ff88-theme-toggle .ff88-icon-sun{display:none}
html[data-bs-theme="light"] .ff88-theme-toggle .ff88-icon-moon{display:block}
html[data-bs-theme="dark"] .ff88-theme-toggle .ff88-icon-sun{display:block}
body.fansflex-app .ff88-theme-side {padding:4px 9px 8px;}
body.fansflex-app .ff88-theme-side .ff88-theme-toggle{width:100%}
body.fansflex-app .ff77-top-actions .ff88-theme-toggle{color:var(--ff88-ink)!important}
body#ff79-workspace-route .ff-topbar .ff88-theme-toggle{margin-left:auto}
body#ff79-workspace-route .ff-topbar .ff88-theme-toggle + .ff-action{margin-left:0!important}
@media(max-width:1100px){body.fansflex-app .ff88-theme-toggle [data-ff88-theme-label]{display:none}}
@media(min-width:768px) and (max-width:990px){body.fansflex-app .ff88-theme-side .ff88-theme-toggle{padding-inline:4px}}
@media(max-width:520px){body.fansflex-app .ff88-theme-toggle{min-width:32px;min-height:34px;padding:6px}}

/* DARK / NIGHT: original second reference — brushed steel-blue with controlled gold. */
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace),
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .main-wrapper>.content-wrapper {
  background:#071624!important;color:#edf6ff!important;
}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .main-wrapper>.col-2{
  background:radial-gradient(ellipse at -50% 73%,rgba(29,110,208,.28),transparent 48%),linear-gradient(158deg,#081727,#102c46 58%,#071522)!important;
  border-right:1px solid rgba(147,196,240,.24)!important;
  box-shadow:inset -1px 0 rgba(255,255,255,.06);
}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-topbar{
  background:linear-gradient(180deg,#061522,#071827 70%,#0e263a)!important;
  border-bottom:1px solid rgba(163,196,225,.25);
}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) :is(.ff77-card,.ff77-stat){
  border:1px solid rgba(150,190,223,.43)!important;
  background:radial-gradient(ellipse at 97% -20%,rgba(77,155,217,.16),transparent 59%),var(--ff88-metal)!important;
  box-shadow:var(--ff88-shadow)!important;
}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) :is(.ff77-card,.ff77-stat):is(:hover,:focus-within){
  border-color:rgba(144,214,255,.64)!important;
  box-shadow:var(--ff88-shadow),0 0 17px rgba(40,150,245,.13)!important;
}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-stat-icon{
  border:1px solid rgba(169,217,255,.45);border-radius:10px;padding:8px;
  background:linear-gradient(141deg,rgba(117,188,240,.25),rgba(8,35,62,.68));
  box-shadow:inset 0 1px rgba(255,255,255,.2),0 4px 12px rgba(2,15,35,.3);
}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-welcome {
  border:1px solid rgba(135,191,235,.42);border-radius:12px;
  box-shadow:inset 0 1px rgba(232,248,255,.13),0 5px 18px rgba(0,8,20,.20);
}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-welcome-shade {
  background:linear-gradient(92deg,#071624 0%,#091e31 30%,rgba(9,31,50,.91) 44%,rgba(7,21,35,.16) 80%,rgba(8,19,35,.05) 100%)!important;
}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-search{
  border-color:rgba(171,199,224,.42);background:linear-gradient(180deg,#122a3e,#0c1e31);
  box-shadow:inset 0 1px rgba(229,244,255,.09);
}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) :is(.ff77-quick-link,.ff77-growth-items>div){
  background:linear-gradient(135deg,#25445d,#0b2135 60%,#1b354d)!important;
  border:1px solid rgba(146,197,232,.41)!important;
  box-shadow:inset 0 1px rgba(246,253,255,.14),0 5px 12px rgba(0,7,20,.23)!important;
}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-create,
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-gold-button{
  background:var(--ff88-gold-metal)!important;color:#1b2330!important;
  border:1px solid #edcf85!important;
  box-shadow:inset 0 1px #fff5cb,0 4px 13px rgba(197,133,43,.25)!important;
}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-chart svg{filter:drop-shadow(0 2px 5px rgba(89,190,255,.24))}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-chart polyline{stroke:#91d7ff}
html[data-bs-theme="dark"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-academy {border-color:rgba(149,198,234,.5);box-shadow:var(--ff88-shadow)!important}

/* LIGHT: the SAME /dashboard route, silver/blue from the third approved screen.
   Sidebar stays deep navy (as in the reference); content flips to pearl silver. */
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace),
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .main-wrapper>.content-wrapper {
  background:#e9f2fc!important;color:#143351!important;
}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .main-wrapper>.col-2{
  background:linear-gradient(157deg,#071c39 0%,#17406d 64%,#0c315c)!important;
  border-right:1px solid #a7c5e9!important;
}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77{color:#143351!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-topbar{
  background:linear-gradient(145deg,#fafdff,#e5effb)!important;border-bottom-color:#b4cce4;
}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-topbar :is(.ff77-top-icon,.ff77-search button){color:#153a60!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-search{
  background:linear-gradient(160deg,#f3f8ff,#dce8f5)!important;
  border-color:#b8cce2;box-shadow:inset 0 1px #fff;
}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-search input{color:#18395b!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-search input::placeholder{color:#6384a3!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-welcome{
  border:1px solid #b9d3ec;border-radius:12px;box-shadow:0 8px 20px rgba(35,77,128,.14),inset 0 1px #fff;
}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-welcome-shade{
  background:linear-gradient(93deg,#eef6ff 0%,rgba(239,247,255,.98) 31%,rgba(239,247,255,.86) 46%,rgba(236,246,255,.11) 78%,rgba(236,246,255,0))!important;
}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-welcome :is(h1,p,.ff77-welcome-content>span){color:#102e53!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-welcome-links a{color:#125494!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) :is(.ff77-card,.ff77-stat){
  background:var(--ff88-metal)!important;
  border:1px solid #b9d0e8!important;
  box-shadow:var(--ff88-shadow)!important;
  color:#143451!important;
}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) :is(.ff77-card,.ff77-stat):is(:hover,:focus-within){border-color:#6fa4d7!important;box-shadow:var(--ff88-shadow),0 0 0 1px #bed7f2!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) :is(.ff77-card h2,.ff77-stat strong,.ff77-chart-summary strong,.ff77-growth-items strong){color:#112f52!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) :is(.ff77-stat span:not(.ff77-stat-icon),.ff77-card-header p,.ff77-balance p,.ff77-chart-summary>span:not(.ff77-up):not(.ff77-down),.ff77-growth-items span){color:#52728d!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-stat small{color:#167c50!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-stat-icon{
  color:#124f87!important;border:1px solid #c7ddf4;border-radius:10px;padding:8px;
  background:linear-gradient(140deg,#fbfdff,#c7e1fa 72%,#f5fbff);box-shadow:inset 0 1px #fff,0 3px 8px rgba(34,85,146,.12);
}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) :is(.ff77-quick-link,.ff77-growth-items>div,.ff77-offer){
  color:#18395c!important;border:1px solid #b4d0e8!important;
  background:linear-gradient(145deg,#fff,#e0eefc)!important;box-shadow:inset 0 1px #fff,0 3px 8px rgba(32,79,125,.10)!important;
}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-quick-link ion-icon{color:#174f85!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-quick-link{color:#18395c!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-offer :is(strong,span,ion-icon){color:#234e74!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-offer-status{background:#d1eddd;color:#14623c!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-filter{
  color:#143858;background:#ecf4ff;border-color:#b4cbe1;
}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-filter :is(select,ion-icon){color:#143858!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-filter option{background:#f7fbff;color:#163654}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) :is(.ff77-card-header>a,.ff77-text-link,.ff77-empty-members a){color:#115995!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-chart polyline{stroke:#116bbd}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-gridline{stroke:#8daec9;stroke-opacity:.5}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-y-axis{color:#587b97}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-footer{background:#e7f0fa!important;border-color:#c3d7e8;color:#456784!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-footer a{color:#23527d!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-academy:before{background:linear-gradient(90deg,rgba(243,249,255,.98),rgba(243,249,255,.92) 44%,rgba(243,249,255,.11))!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-academy :is(h2,p,.ff77-academy-brand){color:#123455!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-welcome-check{color:#be913c}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-create,
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-gold-button{
  background:linear-gradient(180deg,#2068ae,#083d77)!important;color:#fff!important;border-color:#1b69b0!important;
  box-shadow:inset 0 1px #97c7ef,0 4px 12px rgba(23,85,150,.2)!important;
}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-outline-button:not(.ff77-create){color:#1a4771!important;background:#ecf5ff;border-color:#9eb9d5!important}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-balance>strong{color:#153653}

/* Workspace (third reference) remains silver in Light, gains coherent Night mode. */
html[data-bs-theme="light"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-panel,
html[data-bs-theme="light"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-metric{
  background:var(--ff88-metal)!important;border-color:#b6cfe7!important;box-shadow:var(--ff88-shadow)!important;
}
html[data-bs-theme="light"] body#ff79-workspace-route.ff-route-dashboard-workspace :is(.ff-light-action-row a,.ff-light-wallet-actions a,.ff-light-icon-action){box-shadow:inset 0 1px #fff,0 3px 10px rgba(30,85,144,.10)}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace{background:#071827!important;color:#eaf5ff!important}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .content-wrapper{
  background:radial-gradient(ellipse 88% 420px at 95% 0%,rgba(39,101,153,.21),transparent),linear-gradient(125deg,#071827,#0b2237)!important;
}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-page.ff-dashboard{color:#eaf5ff!important}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-topbar{border-bottom-color:#42607a!important}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-search{
  background:#0e2b44!important;border:1px solid #456983!important;color:#edf7ff!important;
}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-live-search :is(input,button){color:#dff0ff!important}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-topbar>.ff-action{color:#e7f5ff!important}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-panel,
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-metric{
  background:var(--ff88-metal)!important;border:1px solid rgba(152,199,235,.35)!important;
  box-shadow:var(--ff88-shadow)!important;color:#edf6ff!important;
}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace :is(.ff-light-panel-head h2,.ff-light-metric strong,.ff-light-identity-copy strong,.ff-light-audience-legend b,.ff-light-rate-list b,.ff-light-donut strong){color:#f1f8ff!important}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace :is(.ff-light-panel-head p,.ff-light-metric small,.ff-light-identity-copy>span,.ff-light-audience-legend small,.ff-light-rate-list small,.ff-light-donut small){color:#a6c3d9!important}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace :is(.ff-light-panel-head a,.ff-light-rate-list a,.ff-light-action-row a){color:#b5dcff!important}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-identity-actions :is(a,button){border-color:#5f849d!important}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace :is(.ff-light-icon-action,.ff-light-upload-tile,.ff-light-wallet-actions a,.ff-light-action-row a,.ff79-period-form select){
  color:#e9f6ff!important;background:linear-gradient(142deg,#1d3e59,#0d253a)!important;border-color:#527490!important;
  box-shadow:inset 0 1px rgba(255,255,255,.11),0 4px 11px rgba(0,8,20,.22)!important;
}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-donut:after{background:#0f2c44!important}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-activity-chart svg path:first-of-type{stroke:#52738c}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-activity-chart svg polyline{stroke:#78c5ff!important}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-rate-list a{border-bottom-color:#476780!important}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff79-empty-earnings{background:#102b43dd;color:#e3f2ff}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-media-empty-state{color:#a7c7de}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff79-workspace-banner{
  background:linear-gradient(111deg,#081d35,#143b5e 28%,#0b263f 72%,#0a192d)!important;border-color:#628ab0!important;
  box-shadow:var(--ff88-shadow)!important;
}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff79-workspace-banner-copy :is(h2,p,span){color:#ecf7ff!important}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff79-workspace-footer{background:#071928!important;color:#c8dcec}

/* Internal cards and forms: same finish in Vault, Settings, Feed, Messages, Finance. */
body.fansflex-app:not(.ff-route-dashboard):not(.ff-route-dashboard-workspace) :is(
  .ff19-panel,.ff19-stat,.ff-widget,.ff-surface,.vault-card,.ff-feed-post,
  .ff79-activity-card,.ff79-wallet-card,.settings-content .card,.account-settings-content .card
){
  border-color:var(--ff88-edge)!important;
  box-shadow:var(--ff88-shadow)!important;
  background-image:linear-gradient(135deg,rgba(255,255,255,.09),transparent 55%),linear-gradient(180deg,var(--ff88-highlight),transparent 3px)!important;
}
body.fansflex-app :is(.modal-content,.offcanvas,.dropdown-menu){border-color:var(--ff88-edge);box-shadow:var(--ff88-shadow)}
body.fansflex-app :is(.form-control,.form-select,.selectize-input):focus-visible,
body.fansflex-app :is(button,a,[role="button"]):focus-visible{outline:2px solid #4b9beb;outline-offset:2px}
body.fansflex-app :is(.ff77-card,.ff77-stat,.ff-light-panel,.ff-light-metric,.ff19-panel,.vault-card) {min-width:0}
/* Do not sacrifice readability, touch target size, layout, or user motion settings for gloss. */
@media(max-width:520px){
  body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-top-actions{gap:6px}
  body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-search{min-width:95px;width:auto;flex:1}
  body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-topbar{gap:6px}
  body#ff79-workspace-route .ff-topbar{gap:5px}
  body#ff79-workspace-route .ff-search{min-width:85px;flex:1}
}
@media(prefers-reduced-motion:reduce){
  body.fansflex-app .ff88-theme-toggle{transition:none!important}
}
/* The older workspace header allocated 93px to Create plus two 46px icons.
   Compact actions rather than hiding navigation or clipping the whole page. */
@media(max-width:520px){
  body#ff79-workspace-route.ff-route-dashboard-workspace .ff-topbar{width:100%;min-width:0;overflow:visible;gap:5px!important}
  body#ff79-workspace-route.ff-route-dashboard-workspace .ff-topbar>.ff-action{
    font-size:0!important;min-width:29px!important;width:30px!important;flex:0 0 30px!important;
    padding:4px!important;margin:0!important;display:grid!important;place-items:center;
  }
  body#ff79-workspace-route.ff-route-dashboard-workspace .ff-topbar>.ff-action ion-icon{font-size:20px!important}
  body#ff79-workspace-route.ff-route-dashboard-workspace .ff-search{
    min-width:0!important;max-width:none!important;width:auto!important;flex:1 1 75px!important;
  }
  body#ff79-workspace-route.ff-route-dashboard-workspace .ff-topbar>.d-inline-flex{min-width:30px;flex:0 0 30px!important}
  body#ff79-workspace-route.ff-route-dashboard-workspace .ff-topbar .ff-avatar{width:30px;height:30px}
}
/* The third reference uses a narrow navy icon rail in Light; do not leave an
   empty 255px desktop column after legacy Light CSS hides menu labels. */
@media(min-width:768px){
  html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .main-wrapper>.col-2{
    width:90px!important;max-width:90px!important;min-width:90px!important;flex:0 0 90px!important;
    padding:12px 7px!important;
  }
  html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .main-wrapper>.content-wrapper{
    width:calc(100% - 90px)!important;max-width:calc(100% - 90px)!important;flex:1 1 calc(100% - 90px)!important;
  }
  html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .side-menu :is(.ff-side-brand-full,.side-menu-account,.side-menu-label){display:none!important}
  html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .side-menu .ff-side-brand-mark{display:block!important;max-width:43px;margin:0 auto}
  html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .side-menu .user-side-menu .nav-link{
    display:flex!important;align-items:center;justify-content:center!important;
    width:55px!important;min-height:48px!important;height:48px!important;margin:6px auto!important;padding:0!important;
  }
  html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff85-command-side{
    width:53px!important;min-width:53px!important;margin:0 auto 18px!important;padding:11px!important;justify-content:center!important;
  }
  html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff85-command-side :is(.ff85-command-side-label,kbd){display:none!important}
  html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-footer{
    margin-left:0!important;width:100%!important;padding:16px 18px!important;
  }
}
/* Accessible links for the reversed chart/wallet surfaces. */
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff80-export-dark{
  color:#fff!important;background:linear-gradient(180deg,#246cae,#0c3e72)!important;
  border-color:#1c619c!important;box-shadow:inset 0 1px rgba(255,255,255,.36);
}
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff80-daily-details summary{
  color:#135793!important;
}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff80-export-light{
  color:#f6dc9f!important;background:linear-gradient(140deg,#254763,#0b2a44)!important;
  border:1px solid #a18a60!important;box-shadow:inset 0 1px rgba(255,255,255,.13);
}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff80-daily-details summary{color:#c4def3!important}
/* The generic header-link rule must not recolor the CSV button's white label. */
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-card-header>a.ff80-export-dark,
html[data-bs-theme="light"] body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .ff77-chart-head>a.ff80-export-dark{
  color:#fff!important;
}
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff-light-panel-head>a.ff80-export-light,
html[data-bs-theme="dark"] body#ff79-workspace-route.ff-route-dashboard-workspace .ff79-panel-heading>a.ff80-export-light{
  color:#ffe2a2!important;
}
