/* ==============================
   Dark look of the logged-in pages (Profile > Appearance, User::appTheme): <body class="cp-studio"> in app.blade.php.
   The stylesheets keep the light colours as fallbacks: background: var(--cpd-card, #fff). This file only gives those
   names their dark values, plus the few things that need more than a colour. Without the body class nothing here applies.
   Demo Box / agreement specifics: resources/views/demo-box/partials/studio.blade.php.
   ============================== */
body.cp-studio {
  --cpd-card: #15151f;        /* cards, panels */
  --cpd-soft: #1e1e2a;        /* fields, quiet boxes */
  --cpd-soft-2: #272735;      /* chips, secondary buttons */
  --cpd-tint: rgba(255, 255, 255, .08);
  --cpd-ink: #f4f4f8;         /* headings */
  --cpd-text: #d2d2dc;
  --cpd-muted: #9494a6;
  --cpd-line: rgba(255, 255, 255, .08);
  --cpd-line-2: rgba(255, 255, 255, .16);
  --cpd-on: #fff;             /* the selected tab / chip ... */
  --cpd-on-ink: #0e0e16;      /* ... and its text */
  --cpd-ink-bg: #34344a;      /* other dark-on-light blocks: raised, white text stays readable */
  background: #0b0b12;
}
body.cp-studio .cp-app,
body.cp-studio .cp-promos,
body.cp-studio .cp-promo-page,
body.cp-studio .cp-promo-view,
body.cp-studio .cp-feedback {
  --cp-ink: #f4f4f8;
  --cp-text: #d2d2dc;
  --cp-muted: #9494a6;
  --cp-line: rgba(255, 255, 255, .08);
  --cp-card-line: rgba(255, 255, 255, .08);
  --cp-bg: #0b0b12;
  --cp-red-text: #ff5c7c;
  --cp-shadow: none;
  --cp-shadow-hover: 0 0 0 1px rgba(255, 255, 255, .14);
  color-scheme: dark;
}
/* the page: near black with a soft red glow top right */
body.cp-studio .cp-app,
body.cp-studio .cp-promos,
body.cp-studio .cp-promo-page {
  background: radial-gradient(900px 460px at 88% -120px, rgba(255, 0, 48, .20), rgba(255, 0, 48, 0) 70%), radial-gradient(700px 420px at -10% 10%, rgba(79, 107, 237, .10), rgba(79, 107, 237, 0) 70%), #0b0b12 !important;
}
/* fields (bootstrap .form-control and plain inputs inside the app pages) */
body.cp-studio .cp-app .form-control,
body.cp-studio .cp-promos .form-control,
body.cp-studio .cp-promo-page .form-control,
body.cp-studio .cp-app input[type=text], body.cp-studio .cp-app input[type=email], body.cp-studio .cp-app input[type=password],
body.cp-studio .cp-app input[type=search], body.cp-studio .cp-app input[type=number], body.cp-studio .cp-app input[type=url],
body.cp-studio .cp-app input[type=date], body.cp-studio .cp-app input[type=tel], body.cp-studio .cp-app select, body.cp-studio .cp-app textarea,
body.cp-studio .cp-promo-page textarea, body.cp-studio .cp-promo-page input[type=text] {
  /* a thin outline, so a field reads as a field also on a card of nearly the same colour (track rows, tables) */
  border-color: rgba(255, 255, 255, .13);
  background-color: #20202c;
  color: #fff;
}
body.cp-studio .cp-app .form-control:focus, body.cp-studio .cp-promos .form-control:focus, body.cp-studio .cp-promo-page .form-control:focus,
body.cp-studio .cp-app input:focus, body.cp-studio .cp-app select:focus, body.cp-studio .cp-app textarea:focus {
  border-color: #ff4c83;
}
body.cp-studio .cp-app ::placeholder, body.cp-studio .cp-promos ::placeholder, body.cp-studio .cp-promo-page ::placeholder { color: #8e8ea4; opacity: 1; }
body.cp-studio .cp-app label, body.cp-studio .cp-promo-page label { color: #d2d2dc; }
body.cp-studio .cp-app a:not([class]), body.cp-studio .cp-promo-page a:not([class]) { color: #f4f4f8; }
body.cp-studio .cp-app hr { border-color: rgba(255, 255, 255, .08); }
/* bootstrap tables and panels inside the app pages */
body.cp-studio .cp-app .table > thead > tr > th, body.cp-studio .cp-app .table > tbody > tr > td, body.cp-studio .cp-app .table > tbody > tr > th { border-color: rgba(255, 255, 255, .08); color: #d2d2dc; }
body.cp-studio .cp-app .table-striped > tbody > tr:nth-of-type(odd), body.cp-studio .cp-app .table-hover > tbody > tr:hover { background-color: rgba(255, 255, 255, .03); }
body.cp-studio .cp-app .panel, body.cp-studio .cp-app .panel-body, body.cp-studio .cp-app .well { border-color: rgba(255, 255, 255, .08); background-color: #15151f; color: #d2d2dc; }
body.cp-studio .cp-app .pagination > li > a, body.cp-studio .cp-app .pagination > li > span { border-color: transparent; background: #1e1e2a; color: #d2d2dc; }
body.cp-studio .cp-app .pagination > .active > a, body.cp-studio .cp-app .pagination > .active > span { background: #fff; color: #0e0e16; }

/* ---------- things that need more than a colour name ---------- */
/* notices (bootstrap alerts): tinted instead of pastel */
body.cp-studio .cp-app .alert, body.cp-studio .cp-promo-page .alert, body.cp-studio .cp-promos .alert { border: 0; background: rgba(255, 255, 255, .07); color: #d2d2dc; box-shadow: none; }
body.cp-studio .cp-app .alert-success, body.cp-studio .cp-promo-page .alert-success { background: rgba(74, 222, 128, .12); color: #86efac; }
body.cp-studio .cp-app .alert-danger, body.cp-studio .cp-promo-page .alert-danger { background: rgba(239, 68, 68, .14); color: #fca5a5; }
body.cp-studio .cp-app .alert-warning, body.cp-studio .cp-promo-page .alert-warning { background: rgba(245, 166, 35, .14); color: #fbc86a; }
body.cp-studio .cp-app .alert-info, body.cp-studio .cp-promo-page .alert-info { background: rgba(99, 125, 255, .14); color: #a9b8ff; }
body.cp-studio .cp-app .alert a, body.cp-studio .cp-promo-page .alert a { color: inherit; font-weight: 700; text-decoration: underline; }
/* links inside page intros and hints */
body.cp-studio .cp-app-header p a, body.cp-studio .cp-app .cp-hint a, body.cp-studio .cp-app .cp-card-sub a { color: #ff8fa8; }
/* billing: the plan cards (their own white cards in the light look) */
body.cp-studio .cp-billing .pricing-inner { border-color: rgba(255, 255, 255, .08); background: #15151f; box-shadow: none; }
body.cp-studio .cp-billing .pricing-main .pricing-inner, body.cp-studio .cp-billing .is-current .pricing-inner { border-color: #ff4c83; }
body.cp-studio .cp-billing .pricing-title, body.cp-studio .cp-billing .pricing-cost, body.cp-studio .cp-billing .pricing-list li b { color: #f4f4f8; }
body.cp-studio .cp-billing .pricing-list li, body.cp-studio .cp-billing .pricing-period, body.cp-studio .cp-billing .pricing-features { color: #b4b4c4; }
body.cp-studio .cp-billing .pricing-list li, body.cp-studio .cp-billing .pricing-list li:first-child { border-color: rgba(255, 255, 255, .06); }
/* smart link editor: the release box, "Fill in from one link", the reorder hint */
body.cp-studio .cp-release-box { background: rgba(230, 54, 80, .10); }
body.cp-studio .cp-release-box .cp-release-box-title { color: #ff8fa8; }
body.cp-studio .cp-release-box .cp-release-box-title span, body.cp-studio .cp-release-box .cp-release-box-note { color: #9494a6; }
body.cp-studio .cp-release-box .cp-prerelease-toggle { background: #1e1e2a; }
body.cp-studio .cp-lookup { border-color: rgba(255, 255, 255, .08); background: #1e1e2a; }
body.cp-studio .cp-lookup-head strong { color: #f4f4f8; }
body.cp-studio .cp-lookup-head span { color: #9494a6; }
body.cp-studio .cp-lookup .form-control { background-color: #272735; }
body.cp-studio .reorder-hint { border-color: rgba(255, 255, 255, .2); background: #1e1e2a; color: #d2d2dc; }
/* previews of what other people see keep their own look: the smart link phone, email previews */
body.cp-studio .phone-frame, body.cp-studio .cp-email-preview, body.cp-studio .cp-news-preview {
  --cpd-card: initial; --cpd-soft: initial; --cpd-soft-2: initial; --cpd-tint: initial; --cpd-ink: initial; --cpd-text: initial; --cpd-muted: initial;
  --cpd-line: initial; --cpd-line-2: initial; --cpd-on: initial; --cpd-on-ink: initial; --cpd-ink-bg: initial;
  --cp-ink: #0e0e16; --cp-text: #2b2b36; --cp-muted: #6b6b7b; --cp-line: #ececf2; --cp-card-line: #e3e4eb; --cp-bg: #eff0f4;
  color: #2b2b36; color-scheme: light;
}
/* the admin post / FAQ preview is the light live article: its red links and soft shadow too */
body.cp-studio .cp-news-preview { --cp-red-text: #d6002a; --cp-shadow: 0 1px 2px rgba(14,14,22,.04), 0 8px 24px rgba(14,14,22,.06); }
body.cp-studio .cp-news-preview a:not([class]) { color: #d6002a; }
/* the release description editor: pasted text can carry its own dark colour */
body.cp-studio .cp-release-form #description, body.cp-studio .cp-release-form #description * { color: #f4f4f8 !important; background-color: transparent !important; }
body.cp-studio .cp-release-form #description { background-color: #1e1e2a !important; border-color: transparent; }
/* cream note boxes */
body.cp-studio .cp-note-box, body.cp-studio .cp-app .cp-note { border-color: transparent; background: rgba(245, 166, 35, .12); color: #f1cf8f; }
body.cp-studio .cp-note-box p, body.cp-studio .cp-note-box strong, body.cp-studio .cp-app .cp-note a { color: inherit; }
body.cp-studio .cp-note-box .fa { color: #fbc86a; }
body.cp-studio .cp-release-box .cp-prerelease-toggle { border-color: rgba(255, 255, 255, .12); }
body.cp-studio .cp-release-box .cp-prerelease-toggle strong, body.cp-studio .cp-release-box .cp-prerelease-toggle b { color: #f4f4f8; }
body.cp-studio .cp-release-box .cp-prerelease-toggle, body.cp-studio .cp-release-box .cp-prerelease-toggle small, body.cp-studio .cp-release-box .cp-prerelease-toggle span { color: #b4b4c4; }
/* behind everything: what shows when the page is pulled past its top or bottom (rubber-band scrolling) */
html.cp-studio, html:has(body.cp-studio) { background: #0b0b12; }
/* plain bootstrap buttons (white in the light look), e.g. "Show hidden feedback": grey pill, light text */
body.cp-studio .cp-app .btn-default, body.cp-studio .cp-promo-page .btn-default, body.cp-studio .cp-promos .btn-default,
body.cp-studio .cp-comments .btn-default, body.cp-studio .cp-feedback .btn-default {
  border-color: transparent; background: #272735; color: #f4f4f8; text-shadow: none; box-shadow: none;
}
body.cp-studio .cp-app .btn-default:hover, body.cp-studio .cp-app .btn-default:focus,
body.cp-studio .cp-promo-page .btn-default:hover, body.cp-studio .cp-promo-page .btn-default:focus,
body.cp-studio .cp-comments .btn-default:hover, body.cp-studio .cp-comments .btn-default:focus { background: #34344a; color: #fff; }
/* the weekly chart is a picture made on the server (black on white): turned round so it is light on the dark panel */
body.cp-studio .cp-weekly-chart { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
/* the HTML legend under charts on phones */
body.cp-studio .cp-chart-legend { color: #d2d2dc; }
/* fields inside a quiet box (smart link tracking, release box, "Fill in from one link"): one step lighter than the box */
body.cp-studio .cp-app .cp-ads-box .form-control, body.cp-studio .cp-app .cp-release-box .form-control, body.cp-studio .cp-app .cp-lookup .form-control,
body.cp-studio .cp-app .cp-ads-box input[type], body.cp-studio .cp-app .cp-ads-box textarea,
body.cp-studio .cp-app .cp-release-box input[type=date], body.cp-studio .cp-app .cp-release-box input[type=text] { background-color: #272735; }
body.cp-studio .cp-ads-box label, body.cp-studio .cp-ads-box .text-muted, body.cp-studio .cp-app .text-muted { color: #9494a6; }
body.cp-studio .cp-ads-box label { color: #d2d2dc; }
/* QR codes are black on a clear background: they keep a white card so they stay scannable */
body.cp-studio .qr-code-section img, body.cp-studio .cp-app img[alt^="QR Code"] { padding: 6px; border-radius: 10px; background: #fff; }
/* upload rows (release form): file size and the progress track */
body.cp-studio .cp-release-form .size, body.cp-studio .cp-release-form .cp-tracks-card td { color: #d2d2dc; }
body.cp-studio .cp-release-form .cp-tracks-card .duration-td .size { color: #b4b4c4; }
body.cp-studio .cp-release-form .progress { background: #2e2e3e; }
/* AI check flags (track lists): tinted instead of pastel */
body.cp-studio .cp-ai-flag-likely_ai { background: rgba(239, 68, 68, .18); color: #fca5a5; }
body.cp-studio .cp-ai-flag-possible_ai { background: rgba(245, 166, 35, .18); color: #fbc86a; }
body.cp-studio .cp-ai-flag-no_signs { background: rgba(74, 222, 128, .14); color: #86efac; }
/* dropdown menus (bootstrap / bootstrap-select: mailing lists on Publish and Subscribers activity): dark panel, light items */
body.cp-studio .dropdown-menu, body.cp-studio .bootstrap-select .dropdown-menu, body.cp-studio .bootstrap-select .dropdown-menu.inner {
  border-color: rgba(255, 255, 255, .1); background-color: #1e1e2a; color: #f4f4f8; box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
}
body.cp-studio .dropdown-menu > li > a, body.cp-studio .dropdown-menu .dropdown-item,
body.cp-studio .bootstrap-select .dropdown-menu li a, body.cp-studio .bootstrap-select .dropdown-menu li a span.text { color: #f4f4f8; }
body.cp-studio .dropdown-menu > li > a:hover, body.cp-studio .dropdown-menu > li > a:focus,
body.cp-studio .bootstrap-select .dropdown-menu li a:hover, body.cp-studio .bootstrap-select .dropdown-menu li a:focus,
body.cp-studio .bootstrap-select .dropdown-menu li.active a, body.cp-studio .bootstrap-select .dropdown-menu li.selected a { background-color: #2e2e3e; color: #fff; }
body.cp-studio .bootstrap-select .dropdown-menu li.disabled a, body.cp-studio .bootstrap-select .dropdown-menu .dropdown-header { color: #9494a6; }
body.cp-studio .dropdown-menu .divider { background-color: rgba(255, 255, 255, .1); }
body.cp-studio .bootstrap-select .bs-searchbox .form-control, body.cp-studio .bootstrap-select .bs-actionsbox .btn { border-color: rgba(255, 255, 255, .13); background-color: #272735; color: #f4f4f8; }
/* the closed picker: a field like the others */
body.cp-studio .bootstrap-select > .dropdown-toggle, body.cp-studio .bootstrap-select > .dropdown-toggle.bs-placeholder {
  border-color: rgba(255, 255, 255, .13); background-color: #20202c; color: #f4f4f8;
}
body.cp-studio .bootstrap-select > .dropdown-toggle.bs-placeholder .filter-option-inner-inner { color: #8e8ea4; }
/* the default profile picture (dark head with headphones on a clear background): light grey on a dark tile,
   like the icons, wherever it shows (comments, feeds, contacts, profile header) */
body.cp-studio img[src$="/images/default-user.png"] { filter: invert(1) brightness(.62); background-color: #d8d8cd; }
/* the playing track (promos.js paints its cells #d8d7d7; promo-page.css turns that to near black): on a dark card it
   needs to be a step lighter than the card to stand out */
body.cp-studio .cp-promo-view #playlist-table tr.songs td[style*="216, 215, 215"],
body.cp-studio .cp-promo-view #playlist-table tr.songs td[style*="#d8d7d7"] { background-color: #262634 !important; }

/* ---------- admin pages: bootstrap parts that bring their own white (lists, cards, modals, code) ---------- */
body.cp-studio .cp-app .list-group-item { border-color: rgba(255, 255, 255, .08); background-color: #15151f; color: #d2d2dc; }
body.cp-studio .cp-app .list-group-item h3, body.cp-studio .cp-app .list-group-item h4 { color: #f4f4f8; }
body.cp-studio .cp-app .card, body.cp-studio .cp-app .card-header, body.cp-studio .cp-app .card-body { border-color: rgba(255, 255, 255, .08); background-color: transparent; color: #d2d2dc; }
body.cp-studio .modal-content { border-color: rgba(255, 255, 255, .1); background-color: #15151f; color: #d2d2dc; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
body.cp-studio .modal-header, body.cp-studio .modal-footer { border-color: rgba(255, 255, 255, .08); }
body.cp-studio .modal-title, body.cp-studio .modal-content h1, body.cp-studio .modal-content h2, body.cp-studio .modal-content h3, body.cp-studio .modal-content h4, body.cp-studio .modal-content h5 { color: #f4f4f8; }
body.cp-studio .modal-content .close { color: #f4f4f8; text-shadow: none; opacity: .7; }
body.cp-studio .modal-content .form-control { border-color: rgba(255, 255, 255, .13); background-color: #20202c; color: #fff; }
body.cp-studio .cp-app code { background-color: rgba(255, 255, 255, .08); color: #e4e4ee; }
body.cp-studio .cp-app .cp-maint-h2, body.cp-studio .cp-app .cp-maint-h3 { color: #f4f4f8; }
body.cp-studio .cp-app .cp-admin-cms .table > tbody > tr > td, body.cp-studio .cp-app .cp-admin-cms .table > tbody > tr > th, body.cp-studio .cp-app .cp-admin-cms .table > thead > tr > th { border-color: rgba(255, 255, 255, .08); color: #d2d2dc; }
/* admin: the notices, row dividers and titles their pages colour themselves */
body.cp-studio .cp-ai-disclaimer { background: rgba(245, 166, 35, .12); color: #f1cf8f; }
body.cp-studio .cp-ai-disclaimer strong { color: #fbc86a; }
body.cp-studio .cp-ae-flash { background: rgba(74, 222, 128, .12); color: #86efac; }
body.cp-studio .cp-admin-option-next { border-top-color: rgba(255, 255, 255, .08); }
body.cp-studio .cp-log-bar h2 { color: #f4f4f8; }
body.cp-studio .cp-admin-cms .table td p, body.cp-studio .cp-admin-cms .table td span:not([class]) { color: #d2d2dc; }
/* admin blog / FAQ previews: the post text and date use the site's dark article colours */
body.cp-studio .cp-admin-cms .blog-single, body.cp-studio .cp-admin-cms .post-content, body.cp-studio .cp-admin-cms .post-content p,
body.cp-studio .cp-admin-cms .post-content li, body.cp-studio .cp-admin-cms .blog-post p { color: #d2d2dc; }
body.cp-studio .cp-admin-cms .date-post { color: #9494a6; }
body.cp-studio .cp-admin-cms .post-content h1, body.cp-studio .cp-admin-cms .post-content h2, body.cp-studio .cp-admin-cms .post-content h3 { color: #f4f4f8; }
/* dashboard: the free / Pay As You Go Demo Box banner (home.blade.php) has a light pink gradient: a dark tint here */
body.cp-studio .cp-home-upgrade { border-color: rgba(255, 76, 131, .35); background: linear-gradient(120deg, rgba(255, 0, 48, .16) 0%, rgba(255, 140, 60, .08) 100%); }
body.cp-studio .cp-home-upgrade > i { color: #ff6b8a; }
body.cp-studio .cp-home-upgrade p { color: #d2d2dc; }
body.cp-studio .cp-home-upgrade p strong { color: #f4f4f8; }
/* dashboard: the free Demo Box offer for DJ / Smart Link accounts (home.blade.php) */
body.cp-studio .cp-home-offer { border-color: rgba(255, 76, 131, .35); background: linear-gradient(120deg, rgba(255, 0, 48, .16) 0%, rgba(255, 140, 60, .08) 100%); }
body.cp-studio .cp-home-offer .txt strong { color: #f4f4f8; }
body.cp-studio .cp-home-offer .txt p { color: #d2d2dc; }
body.cp-studio .cp-home-offer .close-offer { color: #9494a6; }
/* emoji picker (emojionearea: promo subject / preheader, digest settings). Its smiley button is a grey image made for
   white: lightened here so it reads as a smiley; the picker panel in the dark colours (the emojis keep their colours) */
/* the same smiley as on white, only light (the colour turned around): the filter is on the button, so the library
   still shows only the smiley (and the cross only while the picker is open) */
body.cp-studio .emojionearea .emojionearea-button { filter: invert(1); opacity: .7; }
body.cp-studio .emojionearea .emojionearea-button:hover { opacity: 1; }
body.cp-studio .emojionearea .emojionearea-picker { border-color: rgba(255, 255, 255, .12); background: #15151f; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
body.cp-studio .emojionearea .emojionearea-picker .emojionearea-wrapper:after { filter: invert(1) brightness(.2); }
body.cp-studio .emojionearea .emojionearea-picker .emojionearea-filters,
body.cp-studio .emojionearea .emojionearea-picker .emojionearea-search-panel,
body.cp-studio .emojionearea .emojionearea-picker .emojionearea-scroll-area .emojionearea-category-title { background: #15151f; color: #9494a6; border-color: rgba(255, 255, 255, .08); }
body.cp-studio .emojionearea .emojionearea-picker .emojionearea-filters .emojionearea-filter.active { background: #272735; }
body.cp-studio .emojionearea .emojionearea-picker .emojionearea-search > input { border-color: rgba(255, 255, 255, .14); background: #20202c; color: #fff; }
body.cp-studio .emojionearea .emojionearea-picker .emojionearea-scroll-area .emojibtn:hover { background: #272735; }
body.cp-studio .emojionearea .emojionearea-editor { color: #f4f4f8; }
