/* Customer-only themes. Classic intentionally uses the base stylesheet unchanged. */

/* Marketplace ------------------------------------------------------------ */
html[data-store-theme="marketplace"] {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --text: #142033;
  --muted: #667085;
  --line: #e3e8ef;
  --primary: #1457d9;
  --primary-hover: #0f46b4;
  --accent: #1457d9;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(24, 39, 75, .08);
}
html[data-store-theme="marketplace"] body { background: linear-gradient(180deg, #f8faff 0, #f5f7fb 300px); }
html[data-store-theme="marketplace"] .container { width: min(1240px, calc(100% - 40px)); }
html[data-store-theme="marketplace"] .site-header { background: rgba(255,255,255,.96); color: var(--text); box-shadow: 0 1px 0 #e5eaf1; backdrop-filter: blur(12px); }
html[data-store-theme="marketplace"] .header-row { min-height: 72px; gap: 26px; }
html[data-store-theme="marketplace"] .brand { color: #101828; font-size: 22px; letter-spacing: -.025em; }
html[data-store-theme="marketplace"] .main-nav { justify-content: center; }
html[data-store-theme="marketplace"] .main-nav a { color: #475467; border-radius: 999px; padding: 9px 13px; }
html[data-store-theme="marketplace"] .main-nav a:hover,
html[data-store-theme="marketplace"] .main-nav a.active { background: #eef4ff; color: #1849a9; }
html[data-store-theme="marketplace"] .user-menu { color: #344054; }
html[data-store-theme="marketplace"] .page { padding-top: 34px; }
html[data-store-theme="marketplace"] .card { border-color: #e5eaf1; }
html[data-store-theme="marketplace"] .btn { border-radius: 10px; }
html[data-store-theme="marketplace"] body[data-page="store"] .toolbar { min-height: 190px; margin-bottom: 22px; padding: 34px 38px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 82% 20%, rgba(111,168,255,.42), transparent 28%), linear-gradient(125deg, #102a56, #174ea6 70%, #2674ea); box-shadow: 0 22px 48px rgba(29,78,216,.18); }
html[data-store-theme="marketplace"] body[data-page="store"] .page-title { font-size: clamp(36px, 5vw, 58px); letter-spacing: -.045em; }
html[data-store-theme="marketplace"] body[data-page="store"] .page-subtitle { max-width: 620px; margin: 8px 0 0; color: #dbeafe; font-size: 17px; }
html[data-store-theme="marketplace"] body[data-page="store"] .results-count { align-self: flex-end; padding: 7px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.1); font-size: 14px; }
html[data-store-theme="marketplace"] .store-information-message { border: 0; border-left: 4px solid #7c3aed; border-radius: 12px; background: #f4f0ff; color: #4c1d95; box-shadow: none; }
html[data-store-theme="marketplace"] .store-filter-card { margin-bottom: 24px; padding: 18px; border-radius: 18px; box-shadow: 0 8px 24px rgba(24,39,75,.06); }
html[data-store-theme="marketplace"] .catalog-toolbar { grid-template-columns: minmax(260px,1.4fr) minmax(170px,.7fr) minmax(170px,.7fr) auto; gap: 14px; }
html[data-store-theme="marketplace"] .catalog-toolbar label { color: #475467; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
html[data-store-theme="marketplace"] .catalog-toolbar input,
html[data-store-theme="marketplace"] .catalog-toolbar select { min-height: 46px; border-color: #d7deea; background: #f9fbfd; }
html[data-store-theme="marketplace"] .catalog-toolbar .btn { min-height: 46px; padding-inline: 24px; }
html[data-store-theme="marketplace"] .store-table,
html[data-store-theme="marketplace"] .store-table tbody { display: block; width: 100%; }
html[data-store-theme="marketplace"] .store-table thead { display: none; }
html[data-store-theme="marketplace"] .store-table tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
html[data-store-theme="marketplace"] .store-table tr { display: flex; min-width: 0; min-height: 290px; flex-direction: column; overflow: hidden; border: 1px solid #e1e7ef; border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(24,39,75,.07); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
html[data-store-theme="marketplace"] .store-table tr:hover { transform: translateY(-4px); border-color: #b9c8e7; box-shadow: 0 18px 38px rgba(24,39,75,.12); }
html[data-store-theme="marketplace"] .store-table td { display: block; width: 100%; border: 0; padding: 0 20px; }
html[data-store-theme="marketplace"] .store-table td::before { display: none; }
html[data-store-theme="marketplace"] .store-table td:nth-child(1) { padding-top: 24px; }
html[data-store-theme="marketplace"] .store-table td:nth-child(2) { margin-top: 14px; color: #667085; line-height: 1.6; }
html[data-store-theme="marketplace"] .store-table td:nth-child(3) { margin-top: auto; padding-top: 22px; font-size: 23px; color: #101828; }
html[data-store-theme="marketplace"] .store-table td:nth-child(4) { padding-top: 14px; padding-bottom: 22px; }
html[data-store-theme="marketplace"] .store-table td:nth-child(4) .btn { width: 100%; min-height: 43px; }
html[data-store-theme="marketplace"] .store-table .product-name { color: #101828; font-size: 20px; line-height: 1.3; }
html[data-store-theme="marketplace"] .table-wrap { overflow: visible; background: transparent; }
html[data-store-theme="marketplace"] .category-chip { background: #eef4ff; color: #1849a9; }
html[data-store-theme="marketplace"] .pagination { margin-top: 28px; }
html[data-store-theme="marketplace"] body[data-page="dashboard"] .page-title { font-size: clamp(34px,4vw,50px); letter-spacing: -.035em; }
html[data-store-theme="marketplace"] body[data-page="dashboard"] .page-subtitle { font-size: 17px; }
html[data-store-theme="marketplace"] body[data-page="dashboard"] .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
html[data-store-theme="marketplace"] .dashboard-link { min-height: 210px; padding: 28px; border-radius: 20px; }
html[data-store-theme="marketplace"] .dashboard-link h2 { font-size: 25px; }
html[data-store-theme="marketplace"] .dashboard-link::after { width: 170px; height: 170px; right: -55px; bottom: -70px; background: #eef4ff; }
html[data-store-theme="marketplace"] .product-shell { grid-template-columns: minmax(0,1fr) 360px; gap: 28px; }
html[data-store-theme="marketplace"] .product-main-card { border-radius: 22px; }
html[data-store-theme="marketplace"] .product-hero { padding: 42px; background: linear-gradient(135deg,#f5f9ff,#fff 68%); }
html[data-store-theme="marketplace"] .product-hero h1 { font-size: clamp(38px,5vw,60px); letter-spacing: -.04em; }
html[data-store-theme="marketplace"] .product-content-section { padding: 34px 42px; }
html[data-store-theme="marketplace"] .product-buy-card { top: 96px; padding: 28px; border-radius: 20px; }
html[data-store-theme="marketplace"] .product-price-large { font-size: 38px; }
html[data-store-theme="marketplace"] .cart-summary-card,
html[data-store-theme="marketplace"] body[data-page="checkout"] .card { border-radius: 20px; }
html[data-store-theme="marketplace"] .auth-shell { position: relative; overflow: hidden; background: linear-gradient(120deg,#edf4ff 0 48%,#f8faff 48%); }
html[data-store-theme="marketplace"] .auth-shell::before { content: ""; position: absolute; width: 46vw; height: 46vw; left: -12vw; top: -13vw; border-radius: 50%; background: radial-gradient(circle,#9ec5ff,#2864d7 65%,#173d84); opacity: .95; }
html[data-store-theme="marketplace"] .auth-card { position: relative; z-index: 1; margin-left: min(42vw,520px); border: 0; border-radius: 22px; padding: 36px; box-shadow: 0 24px 70px rgba(24,39,75,.15); }

/* Library ---------------------------------------------------------------- */
html[data-store-theme="library"] {
  --bg: #f4f1e9;
  --surface: #fffefa;
  --surface-soft: #f8f5ee;
  --text: #1f2933;
  --muted: #69716e;
  --line: #ddd8cc;
  --primary: #1d5c55;
  --primary-hover: #164842;
  --accent: #1d5c55;
  --radius: 8px;
  --shadow: 0 5px 18px rgba(52, 61, 58, .06);
}
html[data-store-theme="library"] body { background: #f4f1e9; }
html[data-store-theme="library"] .site-header { position: fixed; inset: 0 auto 0 0; width: 248px; background: #17212d; color: #fff; box-shadow: none; }
html[data-store-theme="library"] .site-header .header-row { width: 100%; height: 100%; min-height: 100vh; margin: 0; padding: 28px 18px; flex-direction: column; align-items: stretch; gap: 24px; }
html[data-store-theme="library"] .brand { padding: 0 10px; font-family: Georgia, 'Times New Roman', serif; font-size: 27px; letter-spacing: -.02em; white-space: normal; }
html[data-store-theme="library"] .main-nav { flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 3px; }
html[data-store-theme="library"] .main-nav a { color: #d8e1e8; padding: 11px 12px; border-radius: 6px; }
html[data-store-theme="library"] .main-nav a:hover,
html[data-store-theme="library"] .main-nav a.active { background: #263747; color: #fff; }
html[data-store-theme="library"] .user-menu { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid #334454; flex-direction: column; align-items: stretch; color: #c8d3dc; }
html[data-store-theme="library"] .user-menu .btn { width: 100%; }
html[data-store-theme="library"] .page { margin-left: 248px; padding: 42px 0 64px; }
html[data-store-theme="library"] .page > .container { width: min(1080px, calc(100% - 52px)); }
html[data-store-theme="library"] .page-title { font-family: Georgia, 'Times New Roman', serif; font-size: 36px; font-weight: 700; letter-spacing: -.025em; }
html[data-store-theme="library"] .page-subtitle { color: #6b746f; }
html[data-store-theme="library"] .card { border-color: #ddd8cc; border-radius: 9px; box-shadow: 0 4px 14px rgba(52,61,58,.045); }
html[data-store-theme="library"] body[data-page="store"] .toolbar { align-items: end; padding-bottom: 18px; border-bottom: 1px solid #d7d1c5; }
html[data-store-theme="library"] body[data-page="store"] .page-title { font-size: clamp(40px,5vw,58px); }
html[data-store-theme="library"] body[data-page="store"] .results-count { color: #68716e; font-family: Georgia, 'Times New Roman', serif; font-size: 15px; font-weight: 400; }
html[data-store-theme="library"] .store-information-message { border-color: #cfbf9d; background: #fff9e9; color: #5f4b26; box-shadow: none; }
html[data-store-theme="library"] .store-catalog-layout { display: grid; grid-template-columns: 238px minmax(0,1fr); gap: 24px; align-items: start; }
html[data-store-theme="library"] .store-filter-card { position: sticky; top: 24px; margin: 0; padding: 18px; background: #ebe7dc; border: 0; box-shadow: none; }
html[data-store-theme="library"] .catalog-toolbar { display: grid; grid-template-columns: 1fr; gap: 13px; }
html[data-store-theme="library"] .catalog-toolbar label { color: #4d5652; font-family: Georgia, 'Times New Roman', serif; font-size: 14px; }
html[data-store-theme="library"] .catalog-toolbar input,
html[data-store-theme="library"] .catalog-toolbar select { background: #fffefa; border-color: #cfc8b9; border-radius: 6px; }
html[data-store-theme="library"] .catalog-toolbar .btn { width: 100%; }
html[data-store-theme="library"] .store-table thead { display: none; }
html[data-store-theme="library"] .store-table,
html[data-store-theme="library"] .store-table tbody { display: block; width: 100%; }
html[data-store-theme="library"] .store-table tr { display: grid; grid-template-columns: minmax(0,1fr) 130px; gap: 8px 18px; margin-bottom: 12px; padding: 20px 20px 18px; border: 1px solid #ddd8cc; border-radius: 8px; background: #fffefa; }
html[data-store-theme="library"] .store-table td { display: block; width: auto; padding: 0; border: 0; }
html[data-store-theme="library"] .store-table td::before { display: none; }
html[data-store-theme="library"] .store-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
html[data-store-theme="library"] .store-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: #67706d; line-height: 1.55; }
html[data-store-theme="library"] .store-table td:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; }
html[data-store-theme="library"] .store-table td:nth-child(4) { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; }
html[data-store-theme="library"] .store-table .product-name { color: #17212d; font-family: Georgia, 'Times New Roman', serif; font-size: 21px; }
html[data-store-theme="library"] .table-wrap { overflow: visible; background: transparent; }
html[data-store-theme="library"] .category-chip { background: #e3eee9; color: #285c53; border-radius: 4px; }
html[data-store-theme="library"] .format-chip { border-radius: 4px; background: #f0ebe0; color: #625846; }
html[data-store-theme="library"] .pagination { margin-top: 22px; }
html[data-store-theme="library"] body[data-page="dashboard"] .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
html[data-store-theme="library"] .dashboard-link { min-height: 160px; border-radius: 8px; box-shadow: none; border-color: #d9d3c7; }
html[data-store-theme="library"] .dashboard-link::after { display: none; }
html[data-store-theme="library"] .dashboard-link h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 24px; }
html[data-store-theme="library"] .dashboard-link:hover { transform: none; border-color: #8da49e; box-shadow: inset 4px 0 #1d5c55; }
html[data-store-theme="library"] .dashboard-card-kicker { color: #1d5c55; }
html[data-store-theme="library"] .dashboard-count { border-radius: 4px; background: #e3eee9; color: #285c53; }
html[data-store-theme="library"] .product-shell { grid-template-columns: minmax(0,1fr) 280px; }
html[data-store-theme="library"] .product-main-card { box-shadow: none; }
html[data-store-theme="library"] .product-hero { background: #fffefa; border-bottom-color: #ddd8cc; }
html[data-store-theme="library"] .product-hero h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px,5vw,56px); }
html[data-store-theme="library"] .product-content-section + .product-content-section { border-top-color: #ddd8cc; }
html[data-store-theme="library"] .product-buy-card { border-top: 4px solid #1d5c55; box-shadow: none; }
html[data-store-theme="library"] .product-price-large { font-family: Georgia, 'Times New Roman', serif; }
html[data-store-theme="library"] .auth-shell { background: linear-gradient(90deg,#17212d 0 31%,#f4f1e9 31%); }
html[data-store-theme="library"] .auth-card { margin-left: 22vw; border-radius: 8px; border-color: #d9d3c7; box-shadow: 0 16px 45px rgba(52,61,58,.09); }
html[data-store-theme="library"] .auth-card h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 34px; }
html[data-store-theme="library"] .guest-custom-page-main { margin-left: 248px; background: #f4f1e9; }
html[data-store-theme="library"] .guest-custom-content { border-radius: 8px; border-color: #d9d3c7; box-shadow: none; }
html[data-store-theme="library"] .guest-custom-content h1,
html[data-store-theme="library"] .guest-custom-content h2 { font-family: Georgia, 'Times New Roman', serif; }

@media (max-width: 980px) {
  html[data-store-theme="marketplace"] .store-table tbody { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html[data-store-theme="marketplace"] .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  html[data-store-theme="marketplace"] .catalog-toolbar .btn { grid-column: 2; }
  html[data-store-theme="library"] .store-catalog-layout { grid-template-columns: 210px minmax(0,1fr); gap: 18px; }
}

@media (max-width: 820px) {
  html[data-store-theme="library"] .site-header { position: sticky; inset: auto; width: auto; }
  html[data-store-theme="library"] .site-header .header-row { width: min(100% - 20px,1180px); min-height: 60px; height: auto; margin: 0 auto; padding: 9px 0; flex-direction: initial; align-items: center; gap: 0 10px; }
  html[data-store-theme="library"] .brand { padding: 0; font-size: 22px; white-space: nowrap; }
  html[data-store-theme="library"] .main-nav { flex: 1; flex-direction: row; align-items: center; }
  html[data-store-theme="library"] .user-menu { margin-top: 0; padding: 0; border-top: 0; flex-direction: row; align-items: center; }
  html[data-store-theme="library"] .page,
  html[data-store-theme="library"] .guest-custom-page-main { margin-left: 0; }
  html[data-store-theme="library"] .auth-shell { background: #f4f1e9; }
  html[data-store-theme="library"] .auth-card { margin-left: 0; }
  html[data-store-theme="library"] .page > .container { width: min(100% - 24px,1080px); }
  html[data-store-theme="library"] .store-catalog-layout { grid-template-columns: 1fr; }
  html[data-store-theme="library"] .store-filter-card { position: static; }
  html[data-store-theme="library"] .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  html[data-store-theme="library"] .catalog-toolbar .form-group:first-child { grid-column: 1 / -1; }
  html[data-store-theme="library"] .catalog-toolbar .btn { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  html[data-store-theme="marketplace"] .container { width: min(100% - 20px,1240px); }
  html[data-store-theme="marketplace"] .site-header { background: #fff; }
  html[data-store-theme="marketplace"] .mobile-nav-toggle { border-color: #d0d5dd; background: #f9fafb; color: #344054; }
  html[data-store-theme="marketplace"] .main-nav { border-top-color: #e4e7ec; }
  html[data-store-theme="marketplace"] .main-nav > a { color: #344054; }
  html[data-store-theme="marketplace"] .main-nav > a:hover,
  html[data-store-theme="marketplace"] .main-nav > a.active { background: #eef4ff; color: #1849a9; }
  html[data-store-theme="marketplace"] .user-menu { border-top-color: #e4e7ec; color: #475467; }
  html[data-store-theme="marketplace"] .user-menu [data-user-name] { color: #667085; }
  html[data-store-theme="marketplace"] body[data-page="store"] .toolbar { min-height: 0; padding: 26px 22px; border-radius: 18px; }
  html[data-store-theme="marketplace"] body[data-page="store"] .results-count { align-self: auto; }
  html[data-store-theme="marketplace"] .catalog-toolbar,
  html[data-store-theme="marketplace"] .catalog-toolbar .btn { grid-template-columns: 1fr; grid-column: auto; }
  html[data-store-theme="marketplace"] .store-table tbody { grid-template-columns: 1fr; }
  html[data-store-theme="marketplace"] .store-table tr { min-height: 0; }
  html[data-store-theme="marketplace"] body[data-page="dashboard"] .grid-4 { grid-template-columns: 1fr; }
  html[data-store-theme="marketplace"] .auth-shell { background: #edf4ff; }
  html[data-store-theme="marketplace"] .auth-shell::before { width: 100vw; height: 100vw; left: -45vw; top: -55vw; opacity: .45; }
  html[data-store-theme="marketplace"] .auth-card { margin-left: 0; }

  html[data-store-theme="library"] .main-nav { flex-direction: column; align-items: stretch; }
  html[data-store-theme="library"] .user-menu { margin-top: 8px; padding: 10px 4px 1px; border-top: 1px solid rgba(255,255,255,.13); align-items: center; }
  html[data-store-theme="library"] .catalog-toolbar { grid-template-columns: 1fr; }
  html[data-store-theme="library"] .catalog-toolbar .form-group:first-child,
  html[data-store-theme="library"] .catalog-toolbar .btn { grid-column: auto; }
  html[data-store-theme="library"] .store-table tr { grid-template-columns: 1fr; }
  html[data-store-theme="library"] .store-table td:nth-child(1),
  html[data-store-theme="library"] .store-table td:nth-child(2),
  html[data-store-theme="library"] .store-table td:nth-child(3),
  html[data-store-theme="library"] .store-table td:nth-child(4) { grid-column: 1; grid-row: auto; justify-self: start; }
  html[data-store-theme="library"] .store-table td:nth-child(3) { margin-top: 6px; }
  html[data-store-theme="library"] body[data-page="dashboard"] .grid-4 { grid-template-columns: 1fr; }
  html[data-store-theme="library"] .product-shell { grid-template-columns: 1fr; }
}

/* USD.2.5b theme-wide customer component palettes -------------------------
   These overrides keep shared customer components from falling back to
   Classic colours. Status colours remain semantically distinct, but each is
   tuned to the active customer theme. */

/* Marketplace shared components */
html[data-store-theme="marketplace"] {
  --success: #137a5b;
  --danger: #b42318;
  --warning: #a85b0b;
}
html[data-store-theme="marketplace"].auth-pending,
html[data-store-theme="marketplace"].route-pending { background: #f8faff; }
html[data-store-theme="marketplace"].auth-pending::before,
html[data-store-theme="marketplace"].route-pending::before { border-color: #d8e4f7; border-top-color: #1457d9; }
html[data-store-theme="marketplace"].auth-pending::after,
html[data-store-theme="marketplace"].route-pending::after { color: #52647d; }
html[data-store-theme="marketplace"] .card,
html[data-store-theme="marketplace"] .stat,
html[data-store-theme="marketplace"] .payment-choice,
html[data-store-theme="marketplace"] .file-row,
html[data-store-theme="marketplace"] .folder-download,
html[data-store-theme="marketplace"] .folder-child,
html[data-store-theme="marketplace"] .auth-card { background: #fff; border-color: #e1e7ef; }
html[data-store-theme="marketplace"] .table-wrap { background: #fff; }
html[data-store-theme="marketplace"] th { background: #f7f9fc; color: #344054; border-bottom-color: #cfd8e6; }
html[data-store-theme="marketplace"] .summary-row { border-bottom-color: #e3e8ef; }
html[data-store-theme="marketplace"] .btn-secondary { background: #fff; border-color: #cbd6e5; color: #344054; }
html[data-store-theme="marketplace"] .btn-secondary:hover { background: #f1f5fb; border-color: #aebed4; color: #17345f; }
html[data-store-theme="marketplace"] .user-menu .btn-secondary { background: #fff; border-color: #d0d9e6; color: #344054; }
html[data-store-theme="marketplace"] .input,
html[data-store-theme="marketplace"] input[type=text],
html[data-store-theme="marketplace"] input[type=email],
html[data-store-theme="marketplace"] input[type=password],
html[data-store-theme="marketplace"] input[type=number],
html[data-store-theme="marketplace"] input[type=file],
html[data-store-theme="marketplace"] select,
html[data-store-theme="marketplace"] textarea { background: #fbfcfe; border-color: #cbd6e5; color: #142033; }
html[data-store-theme="marketplace"] .input:focus,
html[data-store-theme="marketplace"] input:focus,
html[data-store-theme="marketplace"] select:focus,
html[data-store-theme="marketplace"] textarea:focus { outline-color: #c9dcff; border-color: #1457d9; }
html[data-store-theme="marketplace"] .notice-info { background: #edf4ff; border-color: #b7d1ff; color: #173e79; }
html[data-store-theme="marketplace"] .notice-success { background: #ecf8f3; border-color: #a7dfca; color: #176b50; }
html[data-store-theme="marketplace"] .notice-warning { background: #fff7e8; border-color: #f2d49b; color: #814807; }
html[data-store-theme="marketplace"] .notice-error { background: #fff1f0; border-color: #f2b8b5; color: #8f2d26; }
html[data-store-theme="marketplace"] .badge-green,
html[data-store-theme="marketplace"] .badge-success { background: #e8f7f0; border-color: #a7dfca; color: #176b50; }
html[data-store-theme="marketplace"] .badge-yellow,
html[data-store-theme="marketplace"] .badge-warning { background: #fff3d8; border-color: #efd196; color: #814807; }
html[data-store-theme="marketplace"] .badge-blue { background: #e8f1ff; color: #174ea6; }
html[data-store-theme="marketplace"] .badge-red { background: #fdeceb; color: #9b2c24; }
html[data-store-theme="marketplace"] .badge-purple { background: #f0ecff; color: #5540a3; }
html[data-store-theme="marketplace"] .badge-gray { background: #eef1f5; color: #475467; }
html[data-store-theme="marketplace"] .toast-success { background: #137a5b; }
html[data-store-theme="marketplace"] .toast-error { background: #b42318; }
html[data-store-theme="marketplace"] .toast-info { background: #1457d9; }
html[data-store-theme="marketplace"] .dashboard-count { background: #e8f1ff; color: #174ea6; }
html[data-store-theme="marketplace"] .category-chip { background: #eef4ff; color: #1849a9; }
html[data-store-theme="marketplace"] .category-chip:hover { background: #dfeaff; color: #123e8a; }
html[data-store-theme="marketplace"] .format-chip { background: #eaf7f5; color: #176b63; }
html[data-store-theme="marketplace"] .product-description { color: #344054; }
html[data-store-theme="marketplace"] .product-description h2,
html[data-store-theme="marketplace"] .product-description h3,
html[data-store-theme="marketplace"] .product-description h4 { color: #101828; }
html[data-store-theme="marketplace"] .product-section-icon,
html[data-store-theme="marketplace"] .product-section-icon-download { background: #eaf2ff; color: #1457d9; }
html[data-store-theme="marketplace"] .product-section-icon-sample { background: #eef0ff; color: #4355c5; }
html[data-store-theme="marketplace"] .sample-file-row { background: #f8fbff; }
html[data-store-theme="marketplace"] .payment-choice { background: #fff; border-color: #d7e0ec; }
html[data-store-theme="marketplace"] .payment-choice:has(input:checked) { border-color: #1457d9; box-shadow: 0 0 0 2px #d7e5ff; }
html[data-store-theme="marketplace"] .folder-download { background: #f8fbff; }
html[data-store-theme="marketplace"] .folder-download-contents { border-top-color: #e1e7ef; }
html[data-store-theme="marketplace"] .folder-child { background: #fff; }
html[data-store-theme="marketplace"] .copy-field code { background: #eef4fb; color: #263b59; }
html[data-store-theme="marketplace"] .qr-box { background: #fff; border-color: #d7e0ec; }
html[data-store-theme="marketplace"] .file-icon-file,
html[data-store-theme="marketplace"] .file-icon-code { background: #f2f4f7; color: #475467; border-color: #dfe3e8; }
html[data-store-theme="marketplace"] .file-icon-pdf { background: #fff1f0; color: #b42318; border-color: #f7c3bf; }
html[data-store-theme="marketplace"] .file-icon-video { background: #eef4ff; color: #2e5db7; border-color: #c8d9ff; }
html[data-store-theme="marketplace"] .file-icon-archive,
html[data-store-theme="marketplace"] .file-icon-folder { background: #fff7e8; color: #a85b0b; border-color: #f0d39b; }
html[data-store-theme="marketplace"] .file-icon-image { background: #f3efff; color: #6941c6; border-color: #ddd1ff; }
html[data-store-theme="marketplace"] .file-icon-audio { background: #fff0f6; color: #a83566; border-color: #f4c8d9; }
html[data-store-theme="marketplace"] .file-icon-spreadsheet { background: #ebf8f3; color: #14735a; border-color: #b8dfd0; }
html[data-store-theme="marketplace"] .file-icon-document { background: #edf4ff; color: #1457d9; border-color: #bfd4f8; }
html[data-store-theme="marketplace"] .file-icon-presentation { background: #fff3ed; color: #b54708; border-color: #f4c9b0; }
html[data-store-theme="marketplace"] .store-information-message a { color: #5d3db3; }
html[data-store-theme="marketplace"] .guest-custom-page-main { background: radial-gradient(circle at top right, rgba(20,87,217,.16), transparent 35%), linear-gradient(180deg,#f8faff 0%,#edf3fb 100%); }
html[data-store-theme="marketplace"] .guest-custom-content { background: rgba(255,255,255,.97); border-color: #d8e3f2; box-shadow: 0 24px 70px rgba(24,39,75,.14); }
html[data-store-theme="marketplace"] .guest-custom-content h1 { color: #101828; }
html[data-store-theme="marketplace"] .guest-custom-content h2 { color: #263b59; }
html[data-store-theme="marketplace"] .guest-custom-content p { color: #52647d; }
html[data-store-theme="marketplace"] .guest-custom-content blockquote { background: #f1f6ff; color: #425673; border-left-color: #1457d9; }
html[data-store-theme="marketplace"] .contact-embed,
html[data-store-theme="marketplace"] .contact-embed iframe { background: #fff; }

/* Library shared components */
html[data-store-theme="library"] {
  --success: #1d5c55;
  --danger: #8b3f36;
  --warning: #8a6322;
}
html[data-store-theme="library"].auth-pending,
html[data-store-theme="library"].route-pending { background: #f4f1e9; }
html[data-store-theme="library"].auth-pending::before,
html[data-store-theme="library"].route-pending::before { border-color: #d8d1c4; border-top-color: #1d5c55; }
html[data-store-theme="library"].auth-pending::after,
html[data-store-theme="library"].route-pending::after { color: #69716e; }
html[data-store-theme="library"] .card,
html[data-store-theme="library"] .stat,
html[data-store-theme="library"] .payment-choice,
html[data-store-theme="library"] .file-row,
html[data-store-theme="library"] .folder-download,
html[data-store-theme="library"] .folder-child,
html[data-store-theme="library"] .auth-card { background: #fffefa; border-color: #d9d3c7; }
html[data-store-theme="library"] .table-wrap { background: #fffefa; }
html[data-store-theme="library"] th { background: #eee9df; color: #3d4844; border-bottom-color: #c8c0b2; }
html[data-store-theme="library"] .summary-row { border-bottom-color: #ddd8cc; }
html[data-store-theme="library"] .btn-secondary { background: #fffefa; border-color: #c8c0b2; color: #33433f; }
html[data-store-theme="library"] .btn-secondary:hover { background: #f0ece3; border-color: #9da99f; color: #1d4d46; }
html[data-store-theme="library"] .user-menu .btn-secondary { background: #f4f1e9; border-color: #f4f1e9; color: #17212d; }
html[data-store-theme="library"] .user-menu .btn-secondary:hover { background: #fffefa; border-color: #fffefa; color: #17212d; }
html[data-store-theme="library"] .input,
html[data-store-theme="library"] input[type=text],
html[data-store-theme="library"] input[type=email],
html[data-store-theme="library"] input[type=password],
html[data-store-theme="library"] input[type=number],
html[data-store-theme="library"] input[type=file],
html[data-store-theme="library"] select,
html[data-store-theme="library"] textarea { background: #fffefa; border-color: #c8c0b2; color: #1f2933; }
html[data-store-theme="library"] .input:focus,
html[data-store-theme="library"] input:focus,
html[data-store-theme="library"] select:focus,
html[data-store-theme="library"] textarea:focus { outline-color: #c5d9d0; border-color: #1d5c55; }
html[data-store-theme="library"] .notice-info { background: #edf4f0; border-color: #b7cfc5; color: #254f48; }
html[data-store-theme="library"] .notice-success { background: #e8f2ed; border-color: #a9c8bb; color: #214f46; }
html[data-store-theme="library"] .notice-warning { background: #fbf2df; border-color: #dfc791; color: #6f5420; }
html[data-store-theme="library"] .notice-error { background: #f8ece8; border-color: #ddb8ae; color: #7b3b33; }
html[data-store-theme="library"] .badge-green,
html[data-store-theme="library"] .badge-success { background: #e5efe9; border-color: #a9c8bb; color: #28584d; }
html[data-store-theme="library"] .badge-yellow,
html[data-store-theme="library"] .badge-warning { background: #f7edd6; border-color: #dfc791; color: #725721; }
html[data-store-theme="library"] .badge-blue { background: #e7efed; color: #315e58; }
html[data-store-theme="library"] .badge-red { background: #f3e6e2; color: #7b3b33; }
html[data-store-theme="library"] .badge-purple { background: #eee9ed; color: #66545f; }
html[data-store-theme="library"] .badge-gray { background: #eeeae1; color: #5f625f; }
html[data-store-theme="library"] .toast-success { background: #1d5c55; }
html[data-store-theme="library"] .toast-error { background: #8b3f36; }
html[data-store-theme="library"] .toast-info { background: #3d665f; }
html[data-store-theme="library"] .category-chip { background: #e3eee9; color: #285c53; }
html[data-store-theme="library"] .category-chip:hover { background: #d2e3dc; color: #1f4c45; }
html[data-store-theme="library"] .format-chip { background: #f0ebe0; color: #625846; }
html[data-store-theme="library"] .product-description { color: #394440; }
html[data-store-theme="library"] .product-description h2,
html[data-store-theme="library"] .product-description h3,
html[data-store-theme="library"] .product-description h4 { color: #17212d; }
html[data-store-theme="library"] .product-section-icon,
html[data-store-theme="library"] .product-section-icon-download { background: #e5efe9; color: #285c53; }
html[data-store-theme="library"] .product-section-icon-sample { background: #f2ece0; color: #725d36; }
html[data-store-theme="library"] .sample-file-row { background: #fbfaf5; }
html[data-store-theme="library"] .payment-choice { background: #fffefa; border-color: #d2ccbf; }
html[data-store-theme="library"] .payment-choice:has(input:checked) { border-color: #1d5c55; box-shadow: 0 0 0 2px #d4e4dd; }
html[data-store-theme="library"] .folder-download { background: #fbfaf5; }
html[data-store-theme="library"] .folder-download-contents { border-top-color: #ddd8cc; }
html[data-store-theme="library"] .folder-child { background: #fffefa; }
html[data-store-theme="library"] .copy-field code { background: #eeeae1; color: #414a46; }
html[data-store-theme="library"] .qr-box { background: #fffefa; border-color: #d2ccbf; }
html[data-store-theme="library"] .file-icon-file,
html[data-store-theme="library"] .file-icon-code { background: #efede7; color: #5d635f; border-color: #d9d4ca; }
html[data-store-theme="library"] .file-icon-pdf { background: #f5e9e5; color: #8b443a; border-color: #ddbbb2; }
html[data-store-theme="library"] .file-icon-video { background: #e6efeb; color: #2f6258; border-color: #bad0c7; }
html[data-store-theme="library"] .file-icon-archive,
html[data-store-theme="library"] .file-icon-folder { background: #f8efdc; color: #8a6322; border-color: #dfc791; }
html[data-store-theme="library"] .file-icon-image { background: #f1eaee; color: #765a68; border-color: #d8c5cf; }
html[data-store-theme="library"] .file-icon-audio { background: #f4e8e6; color: #884d48; border-color: #dcbdb8; }
html[data-store-theme="library"] .file-icon-spreadsheet { background: #e5efe8; color: #32624f; border-color: #b7cdbf; }
html[data-store-theme="library"] .file-icon-document { background: #e8efed; color: #3e625b; border-color: #bdcfca; }
html[data-store-theme="library"] .file-icon-presentation { background: #f5ebe4; color: #8c5135; border-color: #dfc2b1; }
html[data-store-theme="library"] .store-information-message a { color: #4f695f; }
html[data-store-theme="library"] .guest-custom-page-main { background: #f4f1e9; }
html[data-store-theme="library"] .guest-custom-content { background: #fffefa; border-color: #d9d3c7; color: #1f2933; }
html[data-store-theme="library"] .guest-custom-content h1 { color: #17212d; }
html[data-store-theme="library"] .guest-custom-content h2 { color: #394440; }
html[data-store-theme="library"] .guest-custom-content p { color: #626b67; }
html[data-store-theme="library"] .guest-custom-content blockquote { background: #f0ece3; color: #4d5752; border-left-color: #1d5c55; }
html[data-store-theme="library"] .contact-embed,
html[data-store-theme="library"] .contact-embed iframe { background: #fffefa; }

@media (max-width: 680px) {
  html[data-store-theme="library"] .mobile-nav-toggle { border-color: #526170; background: #223140; color: #f4f1e9; }
  html[data-store-theme="library"] .mobile-nav-toggle:hover { background: #2b3d4d; }
}

/* Keep the Marketplace information panel inside the blue storefront palette. */
html[data-store-theme="marketplace"] .store-information-message {
  border: 0;
  border-left: 4px solid #1457d9;
  background: #eef4ff;
  color: #173e79;
}
html[data-store-theme="marketplace"] .dashboard-link:hover { border-color: #9db8e8; }
