/*
 * Studio Finder — account theme layer V4 "Night Petrol"
 * Reference: approved dark-mode render 2026-09-03.
 * Visual overlay only. No application/business logic is changed.
 */

html[data-sf-theme="dark"]{
  color-scheme:dark;

  /* Approved render palette */
  --sf-dark-page:#071119;
  --sf-dark-page-2:#09151d;
  --sf-dark-surface:#0e1820;
  --sf-dark-surface-2:#111e26;
  --sf-dark-surface-3:#15242c;
  --sf-dark-line:rgba(164,194,202,.22);
  --sf-dark-line-soft:rgba(164,194,202,.12);
  --sf-dark-text:#f3f7f8;
  --sf-dark-muted:#92a2a9;
  --sf-dark-muted-2:#71848c;
  --sf-dark-accent:#078da4;
  --sf-dark-accent-2:#06a6b7;
  --sf-dark-shadow:0 16px 36px rgba(0,0,0,.20);

  /* Common legacy tokens */
  --sf-bg:var(--sf-dark-page)!important;
  --sf-bg-soft:var(--sf-dark-page-2)!important;
  --sf-surface:var(--sf-dark-surface)!important;
  --sf-surface-2:var(--sf-dark-surface-2)!important;
  --sf-surface-3:var(--sf-dark-surface-3)!important;
  --sf-border:var(--sf-dark-line)!important;
  --sf-border-soft:var(--sf-dark-line-soft)!important;
  --sf-text:var(--sf-dark-text)!important;
  --sf-muted:var(--sf-dark-muted)!important;
  --sf-accent:var(--sf-dark-accent-2)!important;

  --bg:var(--sf-dark-page)!important;
  --background:var(--sf-dark-page)!important;
  --page-bg:var(--sf-dark-page)!important;
  --surface:var(--sf-dark-surface)!important;
  --surface-2:var(--sf-dark-surface-2)!important;
  --card:var(--sf-dark-surface)!important;
  --panel:var(--sf-dark-surface)!important;
  --white:var(--sf-dark-surface)!important;
  --ink:var(--sf-dark-text)!important;
  --text:var(--sf-dark-text)!important;
  --text-primary:var(--sf-dark-text)!important;
  --text-secondary:var(--sf-dark-muted)!important;
  --muted:var(--sf-dark-muted)!important;
  --line:var(--sf-dark-line)!important;
  --border:var(--sf-dark-line)!important;
  --border-color:var(--sf-dark-line)!important;
}

html[data-sf-theme="dark"],
html[data-sf-theme="dark"] body{
  background:var(--sf-dark-page)!important;
  color:var(--sf-dark-text)!important;
}

/* -------------------------------------------------------------------------
   GLOBAL CANVAS
   ------------------------------------------------------------------------- */
html[data-sf-theme="dark"] :where(
  .app-layout,.dashboard-layout,.shell,.sf-shell,.sfph-shell,.home-shell,
  .forms-shell,.profile-management-shell,.sf-marketing-page,.sf-news-main,
  .booking-main,.search-layout,.search-main-panel,.search-left-panel,
  .calendar-layout,.notification-layout,.profile-layout,.services-layout,
  .page-grid,.layout-grid,.container-main,.main-content,.content,.sf-content,
  .sf-page,.page-content,.dashboard-content,.sf-studio-main,.hub-main,
  .sf-marketing-content,.sf-minimal-search-shell,main,.main,.page,.page-wrapper,
  .wrapper,.dashboard,.dashboard-main,.studio-dashboard,.artist-dashboard,
  .booking-shell,.quote-shell,.quote-page,.payment-page,.settings-page,
  .profile-page,.analytics-page,.marketing-page,.notifications-page,
  .bookings-page,.favorites-page,.tracks-page
){
  background-color:var(--sf-dark-page)!important;
  color:var(--sf-dark-text)!important;
}

/* Page chrome */
html[data-sf-theme="dark"] :where(
  .topbar,.page-header,.home-topbar,.sfph-topbar,.sf-iphone-topbar,
  .sf-iphone-legacy-topbar,.sf-marketing-header,.match-inline-header,
  .sf-filter-drawer-header,.modal-head,.modal-header,.sf-card-head,.card-head,
  .toolbar,.utility-bar,.subnav,.tabs,.tab-bar,.section-header
){
  background-color:transparent!important;
  border-color:var(--sf-dark-line-soft)!important;
  color:var(--sf-dark-text)!important;
}

/* Reusable surfaces */
html[data-sf-theme="dark"] :where(
  .sf-card,.card,.card-box,.card-body,.profile-card,.quick-card,.stat-card,
  .feature-card,.plan-card,.auth-card,.panel,.box,.content-card,.settings-card,
  .filter-panel,.filters-panel,.notification-card,.booking-card,.booking-row,
  .booking-row-main,.studio-mini-card,.artist-mini-card,.track-card,.folder-row,
  .folder-row-main,.sf-featured-body,.sf-upload-modal-card,.audio-modal-card,
  .modal-card,.modal-content,.booking-details-modal-card,.sf-news-modal-dialog,
  .match-modal,.match-modal-content,.popover,.dropdown-menu,
  .sf-filter-drawer-content,.sf-pwa-sheet,.sf-iphone-sheet,.container-box,
  .empty-state,.notice,.alert:not(.alert-danger):not(.alert-success),.summary,
  .summary-box,.details-box,.recap,.recap-box,.payment-summary,.quote-summary,
  .info-box
){
  background:var(--sf-dark-surface)!important;
  border-color:var(--sf-dark-line)!important;
  color:var(--sf-dark-text)!important;
  box-shadow:var(--sf-dark-shadow)!important;
}

/* Legacy white blocks: use a surface, do not flatten the whole page. */
html[data-sf-theme="dark"] :where(
  div[style*="background:#fff"],div[style*="background: #fff"],
  section[style*="background:#fff"],section[style*="background: #fff"],
  article[style*="background:#fff"],article[style*="background: #fff"]
){
  background-color:var(--sf-dark-surface)!important;
  border-color:var(--sf-dark-line)!important;
  color:var(--sf-dark-text)!important;
}

/* Typography */
html[data-sf-theme="dark"] :where(h1,h2,h3,h4,h5,h6,label,legend,strong,.title,.card-title,.sf-title){
  color:var(--sf-dark-text)!important;
}
html[data-sf-theme="dark"] :where(
  p,small,.muted,.subtitle,.description,.note,.sf-muted,.sf-help,.helper,.meta,
  .card-subtitle,.sf-setting-copy span,.sf-profile-subtitle,.page-subtitle
){
  color:var(--sf-dark-muted)!important;
}

/* Forms */
html[data-sf-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-sf-theme="dark"] select,
html[data-sf-theme="dark"] textarea,
html[data-sf-theme="dark"] :where(.sf-control,.form-control,.input,.select,.textarea){
  background:var(--sf-dark-page-2)!important;
  border-color:var(--sf-dark-line)!important;
  color:var(--sf-dark-text)!important;
  box-shadow:none!important;
}
html[data-sf-theme="dark"] input::placeholder,
html[data-sf-theme="dark"] textarea::placeholder{
  color:#7f9199!important;
  opacity:1!important;
}
html[data-sf-theme="dark"] :where(input,select,textarea):focus{
  border-color:rgba(6,166,183,.72)!important;
  outline-color:var(--sf-dark-accent-2)!important;
  box-shadow:0 0 0 3px rgba(6,166,183,.10)!important;
}
html[data-sf-theme="dark"] select option{background:var(--sf-dark-surface);color:var(--sf-dark-text);}

/* Neutral buttons. Branded/primary CTA colors are intentionally preserved. */
html[data-sf-theme="dark"] :where(
  .sf-btn-soft,.btn-secondary,.secondary-button,button.secondary,
  .filter-chip:not(.active),.chip:not(.active),.sf-small-btn,.sf-iphone-topbar-button
){
  background:var(--sf-dark-surface-2)!important;
  border-color:var(--sf-dark-line)!important;
  color:var(--sf-dark-text)!important;
}
html[data-sf-theme="dark"] :where(.sf-profile-tab:not(.is-active),.tab:not(.active)){
  color:var(--sf-dark-muted)!important;
}

/* Tables */
html[data-sf-theme="dark"] :where(table,thead,tbody,tr,th,td){border-color:var(--sf-dark-line)!important;}
html[data-sf-theme="dark"] th{background:var(--sf-dark-page-2)!important;color:var(--sf-dark-text)!important;}
html[data-sf-theme="dark"] td{color:#dce7ea!important;}
html[data-sf-theme="dark"] tr:nth-child(even) td{background:rgba(255,255,255,.012);}
html[data-sf-theme="dark"] :where(hr,.divider,.separator){border-color:var(--sf-dark-line-soft)!important;background-color:var(--sf-dark-line-soft)!important;}

/* Drawers / overlay */
html[data-sf-theme="dark"] :where(.modal-overlay,.modal-backdrop,.match-modal-backdrop){background:rgba(0,0,0,.66)!important;}

/* Links */
html[data-sf-theme="dark"] a:not(.sf-btn):not(.btn):not([class*="button"]){color:#7acbd8;}

/* Maps: UI chrome only, map tiles stay unchanged. */
html[data-sf-theme="dark"] .leaflet-container{background:#0b171e;}
html[data-sf-theme="dark"] :where(
  .leaflet-control-zoom a,.leaflet-control-layers,.leaflet-popup-content-wrapper,.leaflet-popup-tip
){
  background:var(--sf-dark-surface)!important;
  color:var(--sf-dark-text)!important;
  border-color:var(--sf-dark-line)!important;
}

/* Media / brand assets must remain untouched. */
html[data-sf-theme="dark"] :where(img,video,canvas,svg){filter:none;}
html[data-sf-theme="dark"] *{scrollbar-color:#334a54 var(--sf-dark-page-2);}

/* Studio/artist global popovers */
html[data-sf-theme="dark"] :where(
  .sf-studio-global-bell,.sf-studio-global-popover,.sf-studio-global-account-panel,
  .sf-studio-global-notification-panel,.sf-iphone-more-card,.sf-iphone-more-header
){
  background:var(--sf-dark-surface)!important;
  border-color:var(--sf-dark-line)!important;
  color:var(--sf-dark-text)!important;
  box-shadow:var(--sf-dark-shadow)!important;
}

/* -------------------------------------------------------------------------
   ARTIST SIDEBAR — same Studio Finder identity as approved render
   ------------------------------------------------------------------------- */
html[data-sf-theme="dark"] .sf-artist-sidebar{
  background:
    radial-gradient(circle at 20% 0%,rgba(0,119,145,.08),transparent 34%),
    linear-gradient(180deg,#0a1721 0%,#0b1721 58%,#0a151f 100%)!important;
  border-right:1px solid rgba(164,194,202,.18)!important;
  box-shadow:none!important;
}
html[data-sf-theme="dark"] .sf-artist-nav-item.active,
html[data-sf-theme="dark"] .sf-artist-nav-item.is-active{
  background:linear-gradient(135deg,#0a5369,#075e74)!important;
  border-color:rgba(6,166,183,.24)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.12)!important;
}
html[data-sf-theme="dark"] .sf-artist-nav-item:hover{
  background:rgba(255,255,255,.055)!important;
}

/* =========================================================================
   CERCA STUDIO — pixel-oriented dark treatment based on approved render
   ========================================================================= */

/* Main page and section rhythm */
html[data-sf-theme="dark"] .search-layout,
html[data-sf-theme="dark"] .search-left-panel,
html[data-sf-theme="dark"] .results-section,
html[data-sf-theme="dark"] .popular-studios-section,
html[data-sf-theme="dark"] .featured-top-section{
  background:transparent!important;
  border-color:var(--sf-dark-line-soft)!important;
}
html[data-sf-theme="dark"] .results-title-row,
html[data-sf-theme="dark"] .section-header{
  border-color:var(--sf-dark-line-soft)!important;
}
html[data-sf-theme="dark"] .results-title-row h2,
html[data-sf-theme="dark"] .section-header h2{
  color:#f7fafb!important;
  text-shadow:none!important;
}
html[data-sf-theme="dark"] .sf-recommendation-explainer{
  color:#8c9ba3!important;
}

/* Search container — override the light !important rules from cerca_studio.php */
@media (min-width:981px){
  html[data-sf-theme="dark"]:not(.sf-iphone-app-v2) .sf-minimal-search-shell{
    background:linear-gradient(180deg,#0e1a22,#0c1820)!important;
    border:1px solid rgba(151,183,192,.13)!important;
    box-shadow:0 12px 30px rgba(0,0,0,.16)!important;
  }
  html[data-sf-theme="dark"]:not(.sf-iphone-app-v2) .sf-minimal-search-field{
    background:#0a151c!important;
    border:1px solid rgba(151,183,192,.22)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.015)!important;
  }
  html[data-sf-theme="dark"]:not(.sf-iphone-app-v2) .sf-minimal-search-field:focus-within{
    border-color:rgba(6,166,183,.58)!important;
    box-shadow:0 0 0 3px rgba(6,166,183,.07)!important;
  }
  html[data-sf-theme="dark"]:not(.sf-iphone-app-v2) .sf-search-leading-icon{
    color:#a9bbc1!important;
    opacity:.92!important;
  }
  html[data-sf-theme="dark"]:not(.sf-iphone-app-v2) .sf-minimal-search-field input{
    background:transparent!important;
    color:#e7eef0!important;
  }
  html[data-sf-theme="dark"]:not(.sf-iphone-app-v2) .sf-minimal-search-field input::placeholder{
    color:#8c9ba2!important;
  }
  html[data-sf-theme="dark"]:not(.sf-iphone-app-v2) .sf-minimal-search-submit{
    background:linear-gradient(180deg,#089ab0,#067f97)!important;
    color:#fff!important;
    box-shadow:0 5px 14px rgba(0,117,139,.18)!important;
  }
  html[data-sf-theme="dark"]:not(.sf-iphone-app-v2) .sf-pwa-filter-strip{
    background:#0b171e!important;
    border:1px solid rgba(151,183,192,.14)!important;
  }
  html[data-sf-theme="dark"]:not(.sf-iphone-app-v2) .sf-pwa-filter-strip .sf-minimal-filter-button{
    background:linear-gradient(180deg,#0a637a,#07566d)!important;
    color:#f7fbfc!important;
    border-color:rgba(6,166,183,.24)!important;
  }
  html[data-sf-theme="dark"]:not(.sf-iphone-app-v2) .sf-pwa-filter-strip .sf-minimal-match-button,
  html[data-sf-theme="dark"]:not(.sf-iphone-app-v2) .sf-pwa-filter-strip .sf-minimal-map-button{
    background:#0d1a21!important;
    color:#e7eef0!important;
    border:1px solid rgba(151,183,192,.15)!important;
  }
  html[data-sf-theme="dark"]:not(.sf-iphone-app-v2) .sf-pwa-filter-strip .sf-minimal-match-button:hover,
  html[data-sf-theme="dark"]:not(.sf-iphone-app-v2) .sf-pwa-filter-strip .sf-minimal-map-button:hover{
    background:#12232b!important;
    border-color:rgba(6,166,183,.30)!important;
  }
}

/* Search shell on tablet/mobile/PWA */
@media (max-width:980px){
  html[data-sf-theme="dark"] .sf-minimal-search-shell{
    background:#0d1921!important;
    border:1px solid rgba(151,183,192,.14)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.15)!important;
  }
  html[data-sf-theme="dark"] .sf-minimal-search-field{
    background:#09151c!important;
    border-color:rgba(151,183,192,.20)!important;
  }
  html[data-sf-theme="dark"] .sf-pwa-filter-strip{
    background:#0b171e!important;
    border-color:rgba(151,183,192,.13)!important;
  }
}

/* Studio cards */
html[data-sf-theme="dark"] .studio-card,
html[data-sf-theme="dark"] .featured-slider .studio-card,
html[data-sf-theme="dark"] .studio-grid-results .studio-card,
html[data-sf-theme="dark"] .sf-horizontal-track .studio-card,
html[data-sf-theme="dark"] .popular-studios-section .studio-card{
  background:#0e1921!important;
  border:1px solid rgba(159,190,199,.30)!important;
  box-shadow:0 9px 22px rgba(0,0,0,.15)!important;
}
html[data-sf-theme="dark"] .studio-card:hover{
  transform:translateY(-2px)!important;
  border-color:rgba(72,153,171,.48)!important;
  box-shadow:0 14px 28px rgba(0,0,0,.22)!important;
}
html[data-sf-theme="dark"] .studio-card-body{
  background:#0e1921!important;
  color:var(--sf-dark-text)!important;
}
html[data-sf-theme="dark"] .studio-title{
  color:#f7fafb!important;
  font-weight:900!important;
}
html[data-sf-theme="dark"] .studio-location{
  color:#84969e!important;
}
html[data-sf-theme="dark"] #searchResultsTrack .sf-recommendation-summary{
  color:#91a2aa!important;
}
html[data-sf-theme="dark"] .studio-description,
html[data-sf-theme="dark"] .studio-booking-note{
  color:#788b93!important;
}

/* Pills like the approved render: compact, neutral, readable. */
html[data-sf-theme="dark"] .studio-meta-pill,
html[data-sf-theme="dark"] .tag,
html[data-sf-theme="dark"] .studio-match-reason{
  background:#253238!important;
  border-color:rgba(180,204,210,.12)!important;
  color:#eef4f5!important;
  box-shadow:none!important;
}
html[data-sf-theme="dark"] .studio-meta-pill.match{
  background:rgba(0,111,128,.22)!important;
  border-color:rgba(6,166,183,.30)!important;
  color:#a7dfe7!important;
}
html[data-sf-theme="dark"] .studio-meta-pill.popular-bookings{
  background:rgba(126,63,31,.14)!important;
  border-color:rgba(202,107,62,.42)!important;
  color:#eeb28d!important;
}

/* Studio card CTAs */
html[data-sf-theme="dark"] .studio-card .btn-secondary-soft,
html[data-sf-theme="dark"] .studio-card .studio-actions .btn-secondary-soft{
  background:#0d1920!important;
  border:1px solid rgba(166,196,204,.28)!important;
  color:#f0f5f6!important;
  box-shadow:none!important;
}
html[data-sf-theme="dark"] .studio-card .btn-secondary-soft:hover{
  background:#14252d!important;
  border-color:rgba(74,158,176,.45)!important;
}
html[data-sf-theme="dark"] .studio-card .btn-main,
html[data-sf-theme="dark"] .studio-card .studio-actions .btn-main{
  background:linear-gradient(180deg,#089ab0,#07859c)!important;
  border:1px solid rgba(23,179,198,.26)!important;
  color:#fff!important;
  box-shadow:0 5px 14px rgba(0,103,123,.16)!important;
}
html[data-sf-theme="dark"] .studio-card .studio-booking-unavailable,
html[data-sf-theme="dark"] .studio-actions .studio-booking-unavailable{
  background:#263137!important;
  border:1px solid rgba(166,196,204,.12)!important;
  color:#e5ecee!important;
  box-shadow:none!important;
}

/* Carousel controls */
html[data-sf-theme="dark"] .section-scroll-button{
  background:#0c1820!important;
  color:#eef4f5!important;
  border:1px solid rgba(159,190,199,.18)!important;
  box-shadow:none!important;
}
html[data-sf-theme="dark"] .section-scroll-button:hover{
  background:#14242c!important;
  border-color:rgba(6,166,183,.32)!important;
}

/* Section separator seen in the approved render. */
html[data-sf-theme="dark"] .popular-studios-section{
  border-top:1px solid rgba(159,190,199,.16)!important;
}

/* Filter drawer uses the same Night Petrol hierarchy. */
html[data-sf-theme="dark"] .sf-filter-drawer-content,
html[data-sf-theme="dark"] .filter-side-box{
  background:#0e1921!important;
  border-color:rgba(159,190,199,.18)!important;
}
html[data-sf-theme="dark"] .side-filter-control,
html[data-sf-theme="dark"] .service-chip span{
  background:#0a151c!important;
  border-color:rgba(159,190,199,.18)!important;
  color:#dfe8ea!important;
}
html[data-sf-theme="dark"] .service-chip input:checked + span{
  background:rgba(4,113,134,.24)!important;
  border-color:rgba(6,166,183,.40)!important;
  color:#dff8fb!important;
}

/* PWA / phone search cards: same colors, no redesign. */
html[data-sf-theme="dark"].sf-iphone-app-v2.sf-iphone-role-artist.sf-iphone-page-cerca-studio .studio-card,
html[data-sf-theme="dark"].sf-iphone-app-v2.sf-iphone-role-artist.sf-iphone-page-cerca-studio .studio-card-body{
  background:#0e1921!important;
  border-color:rgba(159,190,199,.24)!important;
}
html[data-sf-theme="dark"].sf-iphone-app-v2.sf-iphone-role-artist.sf-iphone-page-cerca-studio .studio-booking-unavailable{
  background:#263137!important;
  color:#e5ecee!important;
  border-color:rgba(166,196,204,.12)!important;
}

/* Light mode: use the native Studio Finder styles unchanged. */
html[data-sf-theme="light"]{color-scheme:light;}


/* =========================================================================
   HOME ARTISTA — extend Night Petrol treatment to dashboard modules
   ========================================================================= */
html[data-sf-theme="dark"] .artist-hero,
html[data-sf-theme="dark"] .artist-hero-compact,
html[data-sf-theme="dark"] .artist-hero-efficient{
  box-shadow:0 14px 34px rgba(0,0,0,.22)!important;
}
html[data-sf-theme="dark"] .card-box,
html[data-sf-theme="dark"] .activity-hub,
html[data-sf-theme="dark"] .activity-column,
html[data-sf-theme="dark"] .discover-column,
html[data-sf-theme="dark"] .notification-shell,
html[data-sf-theme="dark"] .library-summary,
html[data-sf-theme="dark"] .library-toolbar,
html[data-sf-theme="dark"] .booking-toolbar,
html[data-sf-theme="dark"] .summary-strip,
html[data-sf-theme="dark"] .page-header,
html[data-sf-theme="dark"] .sf-growth-chip,
html[data-sf-theme="dark"] .sf-callout,
html[data-sf-theme="dark"] .sf-method,
html[data-sf-theme="dark"] .sf-profile-hero,
html[data-sf-theme="dark"] .sf-quality,
html[data-sf-theme="dark"] .sf-empty-payments,
html[data-sf-theme="dark"] .sf-payment-layout,
html[data-sf-theme="dark"] .sf-settings-grid,
html[data-sf-theme="dark"] .sf-layout{
  background:var(--sf-dark-surface)!important;
  border:1px solid rgba(159,190,199,.18)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
}
html[data-sf-theme="dark"] .activity-column-head,
html[data-sf-theme="dark"] .discover-column-head,
html[data-sf-theme="dark"] .notification-toolbar,
html[data-sf-theme="dark"] .card-head,
html[data-sf-theme="dark"] .sf-card-head,
html[data-sf-theme="dark"] .sf-profile-topbar,
html[data-sf-theme="dark"] .sf-profile-tabs,
html[data-sf-theme="dark"] .library-toolbar,
html[data-sf-theme="dark"] .booking-toolbar,
html[data-sf-theme="dark"] .page-header,
html[data-sf-theme="dark"] .summary-strip{
  border-color:rgba(159,190,199,.16)!important;
}
html[data-sf-theme="dark"] .compact-empty,
html[data-sf-theme="dark"] .compact-empty-session,
html[data-sf-theme="dark"] .compact-empty-task,
html[data-sf-theme="dark"] .discover-empty,
html[data-sf-theme="dark"] .empty-state,
html[data-sf-theme="dark"] .filter-empty,
html[data-sf-theme="dark"] .empty-message,
html[data-sf-theme="dark"] .sf-empty-payments{
  background:#101c24!important;
  border:1px dashed rgba(159,190,199,.22)!important;
  color:#dce7ea!important;
}
html[data-sf-theme="dark"] .activity-column-title,
html[data-sf-theme="dark"] .discover-column-title,
html[data-sf-theme="dark"] .page-title,
html[data-sf-theme="dark"] .notification-title,
html[data-sf-theme="dark"] .booking-studio-name,
html[data-sf-theme="dark"] .track-title,
html[data-sf-theme="dark"] .sf-hero-name,
html[data-sf-theme="dark"] .sf-modal-head,
html[data-sf-theme="dark"] .sf-card h3{
  color:#f4f8f9!important;
}
html[data-sf-theme="dark"] .activity-column-copy,
html[data-sf-theme="dark"] .discover-row-text,
html[data-sf-theme="dark"] .discover-row-meta,
html[data-sf-theme="dark"] .task-text,
html[data-sf-theme="dark"] .page-subtitle,
html[data-sf-theme="dark"] .notification-preview,
html[data-sf-theme="dark"] .notification-meta,
html[data-sf-theme="dark"] .booking-services-preview,
html[data-sf-theme="dark"] .booking-time,
html[data-sf-theme="dark"] .track-subtitle,
html[data-sf-theme="dark"] .track-info-line,
html[data-sf-theme="dark"] .sf-hero-meta,
html[data-sf-theme="dark"] .sf-hint,
html[data-sf-theme="dark"] .small-note{
  color:#91a3aa!important;
}
html[data-sf-theme="dark"] .discover-list,
html[data-sf-theme="dark"] .discover-row,
html[data-sf-theme="dark"] .discover-row-content,
html[data-sf-theme="dark"] .booking-list,
html[data-sf-theme="dark"] .notifications-list,
html[data-sf-theme="dark"] .tracks-grid{
  background:transparent!important;
}
html[data-sf-theme="dark"] .discover-row-content,
html[data-sf-theme="dark"] .notification-card,
html[data-sf-theme="dark"] .booking-card,
html[data-sf-theme="dark"] .track-card,
html[data-sf-theme="dark"] .sf-method,
html[data-sf-theme="dark"] .detail-box{
  background:#0f1b23!important;
  border:1px solid rgba(159,190,199,.20)!important;
  box-shadow:none!important;
}
html[data-sf-theme="dark"] .discover-row-arrow,
html[data-sf-theme="dark"] .notification-action-arrow{
  background:#12232b!important;
  color:#f1f7f8!important;
  border:1px solid rgba(159,190,199,.18)!important;
}
html[data-sf-theme="dark"] .hero-focus,
html[data-sf-theme="dark"] .hero-focus-compact{
  background:rgba(17,36,73,.48)!important;
  border:1px solid rgba(127,168,255,.16)!important;
  box-shadow:none!important;
}
html[data-sf-theme="dark"] .hero-focus-label{color:#9fb6da!important;}
html[data-sf-theme="dark"] .hero-focus-value{color:#ffffff!important;}
html[data-sf-theme="dark"] .hero-focus-meta{color:#c0d3ea!important;}
html[data-sf-theme="dark"] .home-icon-action,
html[data-sf-theme="dark"] .activity-column-icon,
html[data-sf-theme="dark"] .discover-column-icon,
html[data-sf-theme="dark"] .compact-empty-icon,
html[data-sf-theme="dark"] .notification-type-icon,
html[data-sf-theme="dark"] .empty-icon,
html[data-sf-theme="dark"] .sf-avatar{
  background:#eaf0f2!important;
  color:#233842!important;
}
html[data-sf-theme="dark"] .task-count-badge,
html[data-sf-theme="dark"] .header-unread-pill,
html[data-sf-theme="dark"] .new-file-badge,
html[data-sf-theme="dark"] .sf-chip,
html[data-sf-theme="dark"] .hero-focus-link{
  background:#1f2f36!important;
  color:#eef5f7!important;
  border:1px solid rgba(159,190,199,.16)!important;
}

/* CTA / chips on dark pages */
html[data-sf-theme="dark"] .btn-main,
html[data-sf-theme="dark"] .sf-btn-primary,
html[data-sf-theme="dark"] .hero-primary,
html[data-sf-theme="dark"] .sf-save,
html[data-sf-theme="dark"] .artist-feedback-approve,
html[data-sf-theme="dark"] .track-download{
  background:linear-gradient(180deg,#089ab0,#067f97)!important;
  border-color:rgba(23,179,198,.28)!important;
  color:#fff!important;
}
html[data-sf-theme="dark"] .btn-secondary-soft,
html[data-sf-theme="dark"] .hero-secondary,
html[data-sf-theme="dark"] .sf-btn-soft,
html[data-sf-theme="dark"] .track-download-locked,
html[data-sf-theme="dark"] .btn-danger-soft,
html[data-sf-theme="dark"] .sf-btn-ghost{
  background:#111e26!important;
  border:1px solid rgba(159,190,199,.18)!important;
  color:#eef5f7!important;
  box-shadow:none!important;
}

/* =========================================================================
   I TUOI BRANI
   ========================================================================= */
html[data-sf-theme="dark"] .warning-message,
html[data-sf-theme="dark"] .sf-audio-feedback-success,
html[data-sf-theme="dark"] .artist-feedback-box{
  background:#111e26!important;
  border:1px solid rgba(159,190,199,.18)!important;
  color:#dce7ea!important;
}
html[data-sf-theme="dark"] .track-player audio{
  filter:invert(1) hue-rotate(180deg) saturate(.7);
}
html[data-sf-theme="dark"] .track-chip,
html[data-sf-theme="dark"] .library-filter,
html[data-sf-theme="dark"] .filter-tab,
html[data-sf-theme="dark"] .sf-profile-tab,
html[data-sf-theme="dark"] .section-toggle{
  background:#111e26!important;
  border:1px solid rgba(159,190,199,.18)!important;
  color:#d6e1e4!important;
}
html[data-sf-theme="dark"] .track-chip.active,
html[data-sf-theme="dark"] .library-filter.active,
html[data-sf-theme="dark"] .filter-tab.active,
html[data-sf-theme="dark"] .sf-profile-tab.is-active,
html[data-sf-theme="dark"] .section-toggle.active{
  background:linear-gradient(180deg,#0a637a,#07566d)!important;
  border-color:rgba(6,166,183,.30)!important;
  color:#fff!important;
}
html[data-sf-theme="dark"] .status-pill,
html[data-sf-theme="dark"] .booking-state .status-pill{
  background:#1f2f36!important;
  border:1px solid rgba(159,190,199,.16)!important;
  color:#edf4f6!important;
}
html[data-sf-theme="dark"] .status-pill.is-paid,
html[data-sf-theme="dark"] .status-pill.is-completed,
html[data-sf-theme="dark"] .status-pill.success{
  background:rgba(23,121,90,.20)!important;
  border-color:rgba(68,180,134,.28)!important;
  color:#b9f0d8!important;
}

/* =========================================================================
   NOTIFICHE
   ========================================================================= */
html[data-sf-theme="dark"] .notification-shell,
html[data-sf-theme="dark"] .notifications-body{
  background:var(--sf-dark-surface)!important;
  border:1px solid rgba(159,190,199,.18)!important;
}
html[data-sf-theme="dark"] .filter-tabs{background:transparent!important;}
html[data-sf-theme="dark"] .notification-title-row,
html[data-sf-theme="dark"] .notification-card,
html[data-sf-theme="dark"] .notification-modal-head,
html[data-sf-theme="dark"] .notification-modal-body,
html[data-sf-theme="dark"] .notification-modal-card{
  border-color:rgba(159,190,199,.16)!important;
}
html[data-sf-theme="dark"] .notification-card:hover{border-color:rgba(72,153,171,.40)!important;}
html[data-sf-theme="dark"] .notification-new-dot{background:#08b8cd!important;box-shadow:0 0 0 4px rgba(8,184,205,.14)!important;}
html[data-sf-theme="dark"] .notification-action-label,
html[data-sf-theme="dark"] .notification-modal-action{color:#7acbd8!important;}

/* =========================================================================
   LE TUE PRENOTAZIONI / STORICO
   ========================================================================= */
html[data-sf-theme="dark"] .summary-item,
html[data-sf-theme="dark"] .summary-divider,
html[data-sf-theme="dark"] .booking-main,
html[data-sf-theme="dark"] .booking-details,
html[data-sf-theme="dark"] .booking-actions,
html[data-sf-theme="dark"] .booking-review-box,
html[data-sf-theme="dark"] .booking-review-form{
  border-color:rgba(159,190,199,.16)!important;
}
html[data-sf-theme="dark"] .summary-item{background:#111e26!important;}
html[data-sf-theme="dark"] .summary-label,
html[data-sf-theme="dark"] .detail-label,
html[data-sf-theme="dark"] .booking-payment,
html[data-sf-theme="dark"] .booking-date,
html[data-sf-theme="dark"] .summary-date{color:#94a6ad!important;}
html[data-sf-theme="dark"] .summary-value,
html[data-sf-theme="dark"] .detail-value,
html[data-sf-theme="dark"] .booking-amount{color:#f5f8f9!important;}
html[data-sf-theme="dark"] .booking-main{background:#0f1b23!important;}
html[data-sf-theme="dark"] .booking-details{background:#13212a!important;}

/* =========================================================================
   PROFILO ARTISTA
   ========================================================================= */
html[data-sf-theme="dark"] .sf-profile-topbar,
html[data-sf-theme="dark"] .sf-profile-page,
html[data-sf-theme="dark"] .sf-profile-hero,
html[data-sf-theme="dark"] .sf-card,
html[data-sf-theme="dark"] .sf-card-body,
html[data-sf-theme="dark"] .sf-modal,
html[data-sf-theme="dark"] .sf-modal-body,
html[data-sf-theme="dark"] .sf-modal-head{
  background:var(--sf-dark-surface)!important;
  border-color:rgba(159,190,199,.18)!important;
}
html[data-sf-theme="dark"] .sf-profile-page .sf-profile-tabs{background:#101c24!important;border:1px solid rgba(159,190,199,.18)!important;}
html[data-sf-theme="dark"] .sf-progress{background:#112028!important;}
html[data-sf-theme="dark"] .sf-progress > span,
html[data-sf-theme="dark"] .sf-progress .fill{background:linear-gradient(90deg,#089ab0,#06a6b7)!important;}
html[data-sf-theme="dark"] .sf-quality-checks .sf-chip{background:#15252c!important;color:#dbe8ea!important;}
html[data-sf-theme="dark"] .sf-file-input,
html[data-sf-theme="dark"] .sf-location-status{
  background:#111e26!important;
  border:1px solid rgba(159,190,199,.18)!important;
  color:#dce7ea!important;
}
html[data-sf-theme="dark"] .sf-bio-count{color:#8ca0a8!important;}

/* =========================================================================
   V6 readability refinements — Notifiche + Le tue prenotazioni
   ========================================================================= */

/* ---------- NOTIFICHE ---------- */
html[data-sf-theme="dark"] .page-header.page-header-compact{
  background:#0d1820!important;
  border:1px solid rgba(159,190,199,.18)!important;
  border-radius:18px!important;
  padding:18px 20px!important;
  box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
html[data-sf-theme="dark"] .page-eyebrow{
  color:#17aecd!important;
  letter-spacing:.06em!important;
}
html[data-sf-theme="dark"] .page-title-row h1,
html[data-sf-theme="dark"] .page-title-row .page-title{
  color:#f7fafb!important;
}
html[data-sf-theme="dark"] .header-unread-pill{
  background:#1a2b33!important;
  border:1px solid rgba(159,190,199,.16)!important;
  color:#f1f6f7!important;
}
html[data-sf-theme="dark"] .page-actions .btn-secondary-soft{
  background:#12212a!important;
  border:1px solid rgba(159,190,199,.18)!important;
  color:#eef5f7!important;
}
html[data-sf-theme="dark"] .notification-shell{
  background:#0e1921!important;
  border-radius:20px!important;
  overflow:hidden!important;
}
html[data-sf-theme="dark"] .notification-toolbar{
  background:#13212a!important;
  border-bottom:1px solid rgba(159,190,199,.16)!important;
}
html[data-sf-theme="dark"] .notification-toolbar :where(h2,h3,strong){
  color:#f5f8f9!important;
}
html[data-sf-theme="dark"] .notification-toolbar p{
  color:#97a9b0!important;
}
html[data-sf-theme="dark"] .filter-tabs{
  background:#0f1b23!important;
  border:1px solid rgba(159,190,199,.14)!important;
  border-radius:14px!important;
  padding:4px!important;
}
html[data-sf-theme="dark"] .filter-tab{
  background:transparent!important;
  color:#b9c8cd!important;
  border:1px solid transparent!important;
}
html[data-sf-theme="dark"] .filter-tab.active{
  background:#123543!important;
  color:#ffffff!important;
  border-color:rgba(6,166,183,.28)!important;
  box-shadow:0 4px 10px rgba(0,0,0,.14)!important;
}
html[data-sf-theme="dark"] .notifications-list{padding:10px!important;gap:10px!important;}
html[data-sf-theme="dark"] .notification-card{
  background:#10202a!important;
  border:1px solid rgba(159,190,199,.18)!important;
  border-radius:18px!important;
  padding:16px 14px!important;
}
html[data-sf-theme="dark"] .notification-card:hover{
  background:#122631!important;
  box-shadow:0 10px 22px rgba(0,0,0,.18)!important;
}
html[data-sf-theme="dark"] .notification-type-icon{
  background:#eef4f6!important;
  color:#203743!important;
  border:none!important;
}
html[data-sf-theme="dark"] .notification-title,
html[data-sf-theme="dark"] .notification-sender{
  color:#f4f8f9!important;
}
html[data-sf-theme="dark"] .notification-preview,
html[data-sf-theme="dark"] .notification-meta{
  color:#93a5ac!important;
}
html[data-sf-theme="dark"] .notification-date{
  color:#bfd0d6!important;
  font-weight:800!important;
}
html[data-sf-theme="dark"] .notification-action-side{
  gap:10px!important;
}
html[data-sf-theme="dark"] .notification-action-label{
  color:#8fd6e1!important;
  font-weight:900!important;
}
html[data-sf-theme="dark"] .notification-action-arrow{
  width:36px!important;height:36px!important;border-radius:12px!important;
  background:#14303c!important;
  border-color:rgba(6,166,183,.24)!important;
}

/* ---------- LE TUE PRENOTAZIONI ---------- */
html[data-sf-theme="dark"] .summary-strip{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  gap:0!important;
}
html[data-sf-theme="dark"] .summary-item{
  background:#0f1b23!important;
  border:1px solid rgba(159,190,199,.18)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.14)!important;
}
html[data-sf-theme="dark"] .summary-item:first-child{border-top-left-radius:16px!important;border-bottom-left-radius:16px!important;}
html[data-sf-theme="dark"] .summary-item:last-child{border-top-right-radius:16px!important;border-bottom-right-radius:16px!important;}
html[data-sf-theme="dark"] .summary-label{
  color:#92a5ad!important;
  font-weight:800!important;
}
html[data-sf-theme="dark"] .summary-value{
  color:#f7fafb!important;
  font-weight:950!important;
}
html[data-sf-theme="dark"] .card-box{
  background:#0e1921!important;
  border:1px solid rgba(159,190,199,.18)!important;
  border-radius:22px!important;
  box-shadow:0 14px 32px rgba(0,0,0,.16)!important;
  overflow:hidden!important;
}
html[data-sf-theme="dark"] .card-head{
  background:#10202a!important;
  border-bottom:1px solid rgba(159,190,199,.16)!important;
}
html[data-sf-theme="dark"] .card-head :where(h2,h3,strong){color:#f5f8f9!important;}
html[data-sf-theme="dark"] .card-head p{color:#95a8af!important;}
html[data-sf-theme="dark"] .booking-toolbar{
  background:#0f1b23!important;
  border-bottom:1px solid rgba(159,190,199,.14)!important;
}
html[data-sf-theme="dark"] .booking-search input{
  background:#0a151c!important;
  border:1px solid rgba(159,190,199,.20)!important;
  color:#eef4f5!important;
}
html[data-sf-theme="dark"] .booking-search input::placeholder{color:#7f9199!important;}
html[data-sf-theme="dark"] .booking-list{padding:14px!important;gap:14px!important;background:#0d1820!important;}
html[data-sf-theme="dark"] .booking-card{
  background:#10202a!important;
  border:1px solid rgba(159,190,199,.18)!important;
  border-radius:18px!important;
  overflow:hidden!important;
  box-shadow:0 10px 22px rgba(0,0,0,.14)!important;
}
html[data-sf-theme="dark"] .booking-main{
  background:#10202a!important;
  padding:16px 16px 12px!important;
}
html[data-sf-theme="dark"] .booking-studio-name,
html[data-sf-theme="dark"] .booking-amount{color:#f7fafb!important;}
html[data-sf-theme="dark"] .booking-services-preview,
html[data-sf-theme="dark"] .booking-time,
html[data-sf-theme="dark"] .booking-payment{color:#97a9b0!important;}
html[data-sf-theme="dark"] .booking-date{color:#dce7ea!important;font-weight:850!important;}
html[data-sf-theme="dark"] .booking-details{
  background:#142631!important;
  border-top:1px solid rgba(159,190,199,.14)!important;
  padding:11px 16px!important;
}
html[data-sf-theme="dark"] .detail-box{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
}
html[data-sf-theme="dark"] .detail-label{color:#b6c6cc!important;font-weight:900!important;}
html[data-sf-theme="dark"] .detail-value{color:#8fd6e1!important;font-weight:900!important;}
html[data-sf-theme="dark"] .booking-actions{
  background:#142631!important;
  border-top:1px solid rgba(159,190,199,.14)!important;
}
html[data-sf-theme="dark"] .booking-actions .detail-value,
html[data-sf-theme="dark"] .booking-actions a,
html[data-sf-theme="dark"] .booking-actions button{
  color:#8fd6e1!important;
  font-weight:900!important;
}
html[data-sf-theme="dark"] .booking-state .status-pill{
  background:#243840!important;
  color:#eef5f7!important;
  border:1px solid rgba(159,190,199,.16)!important;
}
html[data-sf-theme="dark"] .booking-state .status-pill.pending,
html[data-sf-theme="dark"] .booking-state .status-pill.is-pending{
  background:rgba(9,112,130,.22)!important;
  color:#c7f0f6!important;
  border-color:rgba(6,166,183,.24)!important;
}

/* =========================================================================
   V7 — White button refinement for bookings page readability
   ========================================================================= */
html[data-sf-theme="dark"] .top-actions .btn-secondary-soft,
html[data-sf-theme="dark"] .page-actions .btn-secondary-soft,
html[data-sf-theme="dark"] .booking-actions .btn-secondary-soft{
  background:#f4f8f9!important;
  color:#14303c!important;
  border:1px solid #d9e5e8!important;
  box-shadow:0 6px 14px rgba(0,0,0,.12)!important;
}
html[data-sf-theme="dark"] .top-actions .btn-secondary-soft:hover,
html[data-sf-theme="dark"] .page-actions .btn-secondary-soft:hover,
html[data-sf-theme="dark"] .booking-actions .btn-secondary-soft:hover{
  background:#ffffff!important;
  color:#0f2c37!important;
}
html[data-sf-theme="dark"] .booking-toolbar .filter-tab,
html[data-sf-theme="dark"] .filter-tabs .filter-tab{
  background:#f4f8f9!important;
  color:#17333f!important;
  border:1px solid #d8e4e7!important;
  box-shadow:0 4px 10px rgba(0,0,0,.10)!important;
}
html[data-sf-theme="dark"] .booking-toolbar .filter-tab:hover,
html[data-sf-theme="dark"] .filter-tabs .filter-tab:hover{
  background:#ffffff!important;
  color:#102c37!important;
}
html[data-sf-theme="dark"] .booking-toolbar .filter-tab.active,
html[data-sf-theme="dark"] .filter-tabs .filter-tab.active{
  background:linear-gradient(180deg,#089ab0,#067f97)!important;
  color:#ffffff!important;
  border-color:rgba(6,166,183,.30)!important;
  box-shadow:0 8px 18px rgba(0,0,0,.16)!important;
}
html[data-sf-theme="dark"] .booking-review-box > summary,
html[data-sf-theme="dark"] .booking-review-trigger,
html[data-sf-theme="dark"] .booking-actions button{
  color:#14303c!important;
}

/* =========================================================================
   V8 — Booking details toggle readability
   ========================================================================= */
html[data-sf-theme="dark"] .booking-details{
  background:#142631!important;
  border-top:1px solid rgba(159,190,199,.14)!important;
}
html[data-sf-theme="dark"] .booking-details > summary{
  background:#f4f8f9!important;
  color:#17333f!important;
  border-top:1px solid #d8e4e7!important;
  padding:11px 15px!important;
  font-weight:950!important;
  list-style:none!important;
  transition:background .15s ease,color .15s ease!important;
}
html[data-sf-theme="dark"] .booking-details > summary:hover{
  background:#ffffff!important;
  color:#102c37!important;
}
html[data-sf-theme="dark"] .booking-details > summary::after{
  color:#067f97!important;
  font-weight:950!important;
}
html[data-sf-theme="dark"] .booking-details[open] > summary{
  background:#eaf4f6!important;
  color:#14303c!important;
  border-bottom:1px solid #d8e4e7!important;
}
html[data-sf-theme="dark"] .booking-details[open] > summary::after{
  color:#056384!important;
}

/* =========================================================================
   V9 — Booking details: dark row + compact white Apri/Chiudi button
   ========================================================================= */
html[data-sf-theme="dark"] .booking-details{
  background:#13242d!important;
  border-top:1px solid rgba(159,190,199,.14)!important;
  padding:0!important;
}
html[data-sf-theme="dark"] .booking-details > summary,
html[data-sf-theme="dark"] .booking-details[open] > summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  min-height:48px!important;
  padding:8px 12px 8px 15px!important;
  background:#13242d!important;
  color:#f2f7f8!important;
  border:0!important;
  border-bottom:0!important;
  list-style:none!important;
  font-size:12px!important;
  font-weight:900!important;
  transition:background .15s ease!important;
}
html[data-sf-theme="dark"] .booking-details > summary:hover,
html[data-sf-theme="dark"] .booking-details[open] > summary:hover{
  background:#162a34!important;
  color:#ffffff!important;
}
html[data-sf-theme="dark"] .booking-details > summary::after,
html[data-sf-theme="dark"] .booking-details[open] > summary::after{
  float:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  min-width:62px!important;
  min-height:32px!important;
  padding:0 12px!important;
  border-radius:9px!important;
  background:#f5f8f9!important;
  color:#15323d!important;
  border:1px solid #d8e4e7!important;
  box-shadow:0 4px 10px rgba(0,0,0,.12)!important;
  font-size:11px!important;
  font-weight:950!important;
  line-height:1!important;
  transition:background .15s ease,transform .15s ease!important;
}
html[data-sf-theme="dark"] .booking-details > summary:hover::after,
html[data-sf-theme="dark"] .booking-details[open] > summary:hover::after{
  background:#ffffff!important;
  color:#0e2933!important;
  transform:translateY(-1px)!important;
}
html[data-sf-theme="dark"] .booking-details[open] > summary{
  border-bottom:1px solid rgba(159,190,199,.14)!important;
}
html[data-sf-theme="dark"] .booking-details-grid{
  background:#0f1d25!important;
  padding:14px 15px 15px!important;
}
