/* ═══════════════════════════════════════════════════════════════════════
   JSI Distribute — Design System  (v3)
   Direction: premium editorial music technology. Purple is identity,
   gold marks the one important action, everything else is neutral.

   This file is the single source of truth for tokens and shared components.
   It loads AFTER jsi-frontend.css. Component classes keep their legacy names
   so no PHP/JS contract changes. No blur, no gradients, no glow.

   Scale:  4/8 spacing · radius 6 / 8 / 12 · type 12 13 14 16 18 22 30
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ─────────────────────────────────────────────────────
   Dark = true black everywhere (page, header, sidebar, bottom bar).
   Light = true white everywhere. Purple is the one accent. No gold.   */
.jsi-site-body, .jsi-site, .jsi-shell, .jsi-ui-layer,
.jsi-global-drawer, .jsi-app-global-header, .jsi-bottom-nav {
	--jsi-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--jsi-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

	--jsi-brand: #3B0066;
	--jsi-purple: #35105A;
	--jsi-purple-glow: transparent;
	--jsi-fill-1: #35105A;   /* filled card colours */
	--jsi-fill-2: #9333EA;
	--jsi-fill-3: #180A27;
	--jsi-fill-4: #4C1D95;

	--jsi-bg: #000000;
	--jsi-bg-alt: #000000;
	--jsi-panel: transparent;          /* no boxed sections: content sits on the canvas */
	--jsi-panel-hover: rgba(255,255,255,.05);
	--jsi-field: #0A0A0A;
	--jsi-pop: #0A0A0A;              /* opaque: menus, dialogs, tooltips only */

	/* legacy token names (--jsi-gold) now carry the PURPLE accent */
	--jsi-gold: #9333EA;
	--jsi-gold-ink: #B07CFA;
	--jsi-gold-dim: rgba(147,51,234,.18);
	--jsi-gold-line: rgba(168,85,247,.55);
	--jsi-on-gold: #FFFFFF;
	--jsi-accent: var(--jsi-gold);
	--jsi-accent-hover: #A855F7;

	--jsi-text: #FFFFFF;
	--jsi-text-dim: rgba(255,255,255,.78);
	--jsi-text-soft: rgba(255,255,255,.58);
	--jsi-line: rgba(255,255,255,.12);
	--jsi-line-strong: rgba(255,255,255,.24);

	--jsi-success: #4CB88A;  --jsi-success-soft: rgba(76,184,138,.12);
	--jsi-error:   #EF7A76;  --jsi-error-soft:   rgba(239,122,118,.12);
	--jsi-warn:    #E0A84F;  --jsi-warn-soft:    rgba(224,168,79,.12);

	--jsi-r-sm: 8px; --jsi-r-md: 12px; --jsi-r-lg: 16px;
	--jsi-sidebar-w: 248px;
	--jsi-ease: cubic-bezier(.2,.7,.2,1);
}
html[data-jsi-theme="light"] .jsi-site-body, html[data-jsi-theme="light"] .jsi-site,
html[data-jsi-theme="light"] .jsi-shell, html[data-jsi-theme="light"] .jsi-ui-layer,
html[data-jsi-theme="light"] .jsi-global-drawer, html[data-jsi-theme="light"] .jsi-app-global-header,
html[data-jsi-theme="light"] .jsi-bottom-nav {
	--jsi-bg: #FFFFFF;
	--jsi-bg-alt: #FFFFFF;
	--jsi-panel: transparent;
	--jsi-panel-hover: rgba(0,0,0,.05);
	--jsi-field: #F5F5F5;
	--jsi-pop: #FFFFFF;

	--jsi-gold: #9333EA;
	--jsi-gold-ink: #7E22CE;
	--jsi-gold-dim: rgba(147,51,234,.12);
	--jsi-gold-line: rgba(91,33,182,.5);
	--jsi-accent-hover: #7E22CE;

	--jsi-text: #000000;
	--jsi-text-dim: rgba(0,0,0,.76);
	--jsi-text-soft: rgba(0,0,0,.58);
	--jsi-line: rgba(0,0,0,.12);
	--jsi-line-strong: rgba(0,0,0,.26);

	--jsi-success: #25845B;  --jsi-success-soft: rgba(37,132,91,.10);
	--jsi-error:   #C34C48;  --jsi-error-soft:   rgba(195,76,72,.10);
	--jsi-warn:    #8F5F12;  --jsi-warn-soft:    rgba(180,123,36,.12);
}

/* ── 2. Base ───────────────────────────────────────────────────────── */
.jsi-site-body { background: var(--jsi-bg); color: var(--jsi-text); font-family: var(--jsi-font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.jsi-site { background: var(--jsi-bg); }
.jsi-shell { background: transparent; border: 0; border-radius: 0; box-shadow: none; max-width: 1120px; font-family: var(--jsi-font); }
.jsi-shell h1, .jsi-shell h2, .jsi-shell h3, .jsi-shell h4 { background: none; -webkit-text-fill-color: currentColor; color: var(--jsi-text); font-family: var(--jsi-font); letter-spacing: -.01em; }
.jsi-shell h2 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.jsi-shell h3 { font-size: 16px; font-weight: 600; }
.jsi-shell p { color: var(--jsi-text-dim); }
.jsi-shell a { color: var(--jsi-gold-ink); }
.jsi-shell a.jsi-btn-primary { color: var(--jsi-on-gold); }
.jsi-muted { color: var(--jsi-text-soft); }
.jsi-num, .jsi-card-value, .jsi-earn-num, td.is-num { font-variant-numeric: tabular-nums; }
.jsi-mono, .jsi-isrc, .jsi-upc, code, .jsi-referral-code { font-family: var(--jsi-mono); }
:where(.jsi-shell, .jsi-global-drawer, .jsi-app-global-header, .jsi-bottom-nav) :focus-visible { outline: 2px solid var(--jsi-gold-ink); outline-offset: 2px; }

/* ── 3. Buttons ────────────────────────────────────────────────────── */
.jsi-btn { font-family: var(--jsi-font); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--jsi-r-md); transition: background-color .15s var(--jsi-ease), border-color .15s var(--jsi-ease); transform: none; box-shadow: none; }
.jsi-btn:hover { transform: none; box-shadow: none; }
.jsi-btn-primary { background: var(--jsi-gold); color: var(--jsi-on-gold); border-color: var(--jsi-gold); }
.jsi-btn-primary:hover { background: var(--jsi-accent-hover); border-color: var(--jsi-accent-hover); }
.jsi-btn-secondary { background: transparent; color: var(--jsi-text); border: 1px solid var(--jsi-line-strong); }
.jsi-btn-secondary:hover { background: var(--jsi-panel-hover); border-color: var(--jsi-line-strong); }
.jsi-btn-block { display: flex; width: 100%; }
.jsi-btn-link { background: none; border: 0; padding: 0; color: var(--jsi-gold-ink); font: inherit; font-weight: 600; cursor: pointer; }
.jsi-btn-link:hover { text-decoration: underline; }

/* ── 4. Forms ──────────────────────────────────────────────────────── */
.jsi-field { margin-bottom: 20px; }
.jsi-field label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--jsi-text); margin-bottom: 6px; }
.jsi-field input[type=text], .jsi-field input[type=email], .jsi-field input[type=password], .jsi-field input[type=tel],
.jsi-field input[type=url], .jsi-field input[type=number], .jsi-field input[type=date], .jsi-field select, .jsi-field textarea {
	min-height: 46px; padding: 11px 14px; font-size: 14px; font-family: var(--jsi-font);
	background: var(--jsi-field); color: var(--jsi-text);
	border: 1px solid var(--jsi-line-strong); border-radius: var(--jsi-r-md);
	transition: border-color .15s var(--jsi-ease);
}
.jsi-field textarea { min-height: 96px; }
.jsi-field input:hover, .jsi-field select:hover, .jsi-field textarea:hover { border-color: var(--jsi-text-soft); }
.jsi-field input:focus, .jsi-field select:focus, .jsi-field textarea:focus,
.jsi-field input:focus-visible, .jsi-field select:focus-visible, .jsi-field textarea:focus-visible { outline: 0; border-color: var(--jsi-gold); box-shadow: 0 0 0 3px var(--jsi-gold-dim); }
.jsi-field input::placeholder, .jsi-field textarea::placeholder { color: var(--jsi-text-soft); opacity: .8; }
.jsi-field input[disabled], .jsi-field select[disabled], .jsi-field textarea[disabled] { opacity: .55; cursor: not-allowed; }
.jsi-field-hint { font-size: 12px; color: var(--jsi-text-soft); margin-top: 6px; }
.jsi-field-errors .jsi-error-line, .jsi-field .is-error + .jsi-field-hint { color: var(--jsi-error); font-size: 12.5px; }
.jsi-field input.is-error, .jsi-field select.is-error, .jsi-field textarea.is-error { border-color: var(--jsi-error); }
.jsi-checkbox-label { font-size: 14px; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; display: flex !important; align-items: center; gap: 10px; cursor: pointer; }
.jsi-field input[type=checkbox], .jsi-field input[type=radio] { accent-color: var(--jsi-gold); width: 18px; height: 18px; }
.jsi-switch input:checked + i, .jsi-release-wizard .jsi-qp-bar i { background: var(--jsi-gold); }

/* ── 5. Notices, badges, status ────────────────────────────────────── */
.jsi-notice { border-radius: var(--jsi-r-md); padding: 12px 14px; font-size: 13.5px; background: var(--jsi-panel); border: 1px solid var(--jsi-line); color: var(--jsi-text); }
.jsi-notice-success { background: var(--jsi-success-soft); color: var(--jsi-success); border-color: transparent; border-left: 3px solid var(--jsi-success); }
.jsi-notice-warning { background: var(--jsi-warn-soft); color: var(--jsi-warn); border-color: transparent; border-left: 3px solid var(--jsi-warn); }
.jsi-notice-error   { background: var(--jsi-error-soft); color: var(--jsi-error); border-color: transparent; border-left: 3px solid var(--jsi-error); }
.jsi-badge { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; padding: 3px 8px; border-radius: var(--jsi-r-sm); }
.jsi-badge-role { background: var(--jsi-gold-dim); color: var(--jsi-gold-ink); border-color: transparent; }

/* Status: dot + text. Used for release status everywhere. */
.jsi-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--jsi-text); white-space: nowrap; }
.jsi-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--jsi-text-soft); flex: none; }
.jsi-status.is-live::before   { background: var(--jsi-success); }
.jsi-status.is-review::before { background: #9C84D6; }
.jsi-status.is-pay::before    { background: var(--jsi-gold); }
.jsi-status.is-fix::before    { background: var(--jsi-error); }

/* ── 6. Surfaces: flat, bordered, no sheen ─────────────────────────── */
.jsi-card, .jsi-panel, .jsi-type-card, .jsi-package-card, .jsi-cat-card, .jsi-release-card, .jsi-dsp-category, .jsi-plan-banner, .jsi-auth-card, .jsi-bank-account-box {
	background: var(--jsi-panel); border: 1px solid var(--jsi-line); border-radius: var(--jsi-r-lg); box-shadow: none;
}
.jsi-card::before, .jsi-developer-docs::before, .jsi-account-security::before { display: none; }
.jsi-cards .jsi-card:hover, .jsi-cat-card:hover, .jsi-package-card:hover, .jsi-type-card:hover { transform: none; box-shadow: none; border-color: var(--jsi-line-strong); }
.jsi-card-value { font-family: var(--jsi-font); font-weight: 600; letter-spacing: -.02em; color: var(--jsi-text); }
.jsi-card-label { font-size: 13px; color: var(--jsi-text-soft); text-transform: none; letter-spacing: 0; }
.jsi-live-preview, .jsi-co-summary, .jsi-co-cover.is-empty, .jsi-file-picker-button { background: var(--jsi-panel); }
.jsi-progress-fill::after, .jsi-plan-progress-fill::after, .jsi-ui-bar-fill::after { display: none; }
.jsi-ui-bar-fill, .jsi-progress-fill, .jsi-plan-progress-fill { background: var(--jsi-gold); }
.jsi-view-btn.is-active, .jsi-page-btn.is-active, .jsi-package-badge, .jsi-package-card.is-featured .jsi-package-badge { background: var(--jsi-gold) !important; color: var(--jsi-on-gold) !important; border-radius: var(--jsi-r-sm); }

/* ── 7. Tables ─────────────────────────────────────────────────────── */
.jsi-release-table { border-collapse: collapse; width: 100%; font-size: 13.5px; margin-top: 0; }
.jsi-release-table th { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 500; color: var(--jsi-text-soft); text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--jsi-line); white-space: nowrap; }
.jsi-release-table td { padding: 14px 16px; border-bottom: 1px solid var(--jsi-line); color: var(--jsi-text); vertical-align: middle; }
.jsi-release-table tbody tr:last-child td { border-bottom: 0; }
.jsi-release-table tbody tr:hover td { background: var(--jsi-panel-hover); }
.jsi-release-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── 8. Modals & app dialogs ───────────────────────────────────────── */
.jsi-modal-overlay, .jsi-ui-overlay { background: rgba(10,6,14,.72); }
.jsi-modal, .jsi-ui-dialog { background: var(--jsi-panel); color: var(--jsi-text); border: 1px solid var(--jsi-line-strong); border-radius: var(--jsi-r-lg); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.jsi-modal-header span { font-family: var(--jsi-font); font-size: 16px; font-weight: 600; color: var(--jsi-text); }
.jsi-modal-footer { border-top: 1px solid var(--jsi-line); }
.jsi-modal-item.is-selected { background: var(--jsi-gold-dim); color: var(--jsi-gold-ink); }

/* ── 9. Auth screens ───────────────────────────────────────────────── */
.jsi-auth-shell { min-height: calc(100dvh - 120px); padding: 48px 20px; align-items: flex-start; }
.jsi-auth-card { width: 100%; max-width: 420px; margin: 0 auto; padding: 32px; }
.jsi-auth-card h2 { font-size: 22px; margin: 0 0 6px; }
.jsi-auth-card > .jsi-muted { margin-bottom: 24px; }
.jsi-auth-links { justify-content: space-between; }
.jsi-auth-links a { color: var(--jsi-gold-ink); font-weight: 500; }
.jsi-auth-links span { display: none; }

/* ═════════ 10. App shell — one navigation system ═════════════════════
   Desktop: fixed sidebar (the former "drawer") + slim top bar.
   Mobile:  top bar with menu, slide-in drawer, bottom tab bar.        */
.jsi-app-global-header { position: sticky; top: 0; z-index: 900; background: var(--jsi-bg); border-bottom: 1px solid var(--jsi-line); }
.jsi-app-global-header-inner { width: 100%; max-width: 1440px; min-height: 60px; padding: 0 32px; gap: 12px; }
.jsi-global-menu-toggle { width: 40px; height: 40px; flex-basis: 40px; border-radius: var(--jsi-r-md); background: transparent; border: 1px solid var(--jsi-line-strong); color: var(--jsi-text); }
.jsi-global-menu-toggle:hover { background: var(--jsi-panel-hover); border-color: var(--jsi-line-strong); }
.jsi-app-global-brand { color: var(--jsi-text); gap: 10px; }
.jsi-app-global-brand .jsi-site-mark { width: 32px; height: 32px; border: 0; border-radius: var(--jsi-r-sm); background: transparent; overflow: hidden; }
.jsi-app-global-brand-copy strong { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.jsi-app-global-brand-copy small { display: none; }
.jsi-app-global-title { font-size: 15px; font-weight: 600; color: var(--jsi-text); margin: 0; }
.jsi-app-global-actions .jsi-bell-btn { color: var(--jsi-text-dim); background: transparent; border: 1px solid transparent; border-radius: var(--jsi-r-md); width: 40px; height: 40px; }
.jsi-app-global-actions .jsi-bell-btn:hover { background: var(--jsi-panel-hover); color: var(--jsi-text); }
.jsi-app-global-avatar { background: var(--jsi-brand); border: 1px solid var(--jsi-line-strong); color: #fff; font-weight: 600; width: 36px; height: 36px; overflow: hidden; }
.jsi-app-global-avatar img { width: 100%; height: 100%; object-fit: cover; }
.jsi-bell-panel { background: var(--jsi-panel); border: 1px solid var(--jsi-line-strong); border-radius: var(--jsi-r-lg); box-shadow: 0 16px 40px rgba(0,0,0,.35); }

.jsi-global-drawer { background: var(--jsi-bg-alt); border-right: 1px solid var(--jsi-line); box-shadow: none; padding: 0; display: flex; flex-direction: column; }
.jsi-global-drawer.is-open { box-shadow: 24px 0 60px rgba(0,0,0,.4); }
.jsi-global-drawer-scrim { background: rgba(10,6,14,.6); }
.jsi-global-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; min-height: 60px; border-bottom: 1px solid var(--jsi-line); }
.jsi-global-drawer-head .jsi-app-global-brand strong { font-size: 15px; }
.jsi-global-drawer-close { color: var(--jsi-text); }
.jsi-global-drawer nav { display: block; padding: 8px 12px 20px; flex: 1; overflow-y: auto; }
.jsi-gnav-group { margin-top: 16px; }
.jsi-gnav-label { display: block; padding: 0 10px 6px; font-size: 12px; font-weight: 500; color: var(--jsi-text-soft); text-transform: none; letter-spacing: 0; }
.jsi-global-drawer nav a, .jsi-global-drawer nav button.jsi-global-theme-toggle {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 10px; margin: 1px 0;
	font: inherit; font-size: 14px; font-weight: 500; color: var(--jsi-text-dim); background: transparent; border: 0; border-radius: var(--jsi-r-md);
	text-align: left; cursor: pointer; position: relative;
}
.jsi-global-drawer nav a:hover, .jsi-global-drawer nav button.jsi-global-theme-toggle:hover { background: var(--jsi-panel-hover); color: var(--jsi-text); }
.jsi-global-drawer nav a.is-active { background: var(--jsi-panel-hover); color: var(--jsi-text); }
.jsi-global-drawer nav a.is-active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--jsi-gold); }
.jsi-global-drawer nav a.is-create { background: var(--jsi-gold); color: var(--jsi-on-gold); font-weight: 600; justify-content: center; margin: 12px 0 4px; min-height: 44px; }
.jsi-global-drawer nav a.is-create:hover { background: var(--jsi-accent-hover); color: var(--jsi-on-gold); }
.jsi-global-drawer nav a.is-logout { color: var(--jsi-error); }
.jsi-global-drawer .jsi-nav-icon svg { width: 18px; height: 18px; stroke-width: 1.7; }
.jsi-gnav-ext::after { content: '↗'; margin-left: auto; font-size: 12px; color: var(--jsi-text-soft); }

@media (min-width: 1024px) {
	body.jsi-has-sidebar .jsi-site { padding-left: var(--jsi-sidebar-w); }
	body.jsi-has-sidebar .jsi-global-drawer { transform: none; width: var(--jsi-sidebar-w); z-index: 950; box-shadow: none; }
	body.jsi-has-sidebar .jsi-global-drawer-scrim, body.jsi-has-sidebar .jsi-global-menu-toggle,
	body.jsi-has-sidebar .jsi-global-drawer-close, body.jsi-has-sidebar .jsi-app-global-header .jsi-app-global-brand { display: none; }
	body.jsi-has-sidebar .jsi-app-global-header-inner { padding: 0 32px; }
	.jsi-bottom-nav { display: none !important; }
}
@media (max-width: 1023.98px) {
	.jsi-app-global-header-inner { padding: 0 16px; min-height: 56px; }
	.jsi-app-global-title { display: none; }
	body.jsi-has-sidebar .jsi-site { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* Bottom tab bar — five equal destinations, flat */
.jsi-bottom-nav { background: var(--jsi-bg-alt); border-top: 1px solid var(--jsi-line); box-shadow: none; padding-bottom: env(safe-area-inset-bottom); }
.jsi-bottom-nav a { color: var(--jsi-text-soft); font-size: 11.5px; font-weight: 500; gap: 4px; text-transform: none; letter-spacing: 0; }
.jsi-bottom-nav a.is-active { color: var(--jsi-text); }
.jsi-bottom-nav a.is-active .jsi-bottom-nav-icon svg { stroke: var(--jsi-gold-ink); }
.jsi-bottom-nav a.is-fab { flex: 1 1 0; width: auto; margin-top: 0; color: var(--jsi-text); }
.jsi-bottom-nav a.is-fab span.jsi-bottom-nav-icon { width: 40px; height: 28px; margin: 0; border-radius: var(--jsi-r-md); background: var(--jsi-gold); box-shadow: none; display: inline-flex; align-items: center; justify-content: center; }
.jsi-bottom-nav a.is-fab span.jsi-bottom-nav-icon::before, .jsi-bottom-nav a.is-fab span.jsi-bottom-nav-icon::after { display: none; }
.jsi-bottom-nav a.is-fab span.jsi-bottom-nav-icon svg { stroke: var(--jsi-on-gold); width: 20px; height: 20px; }

/* Sidebar was a second navigation on the dashboard — removed from markup; this guard
   keeps any cached/legacy markup from showing two menus. */
.jsi-dashboard > .jsi-nav { display: none; }
.jsi-dashboard { display: block; min-height: 0; }

@media (prefers-reduced-motion: reduce) { .jsi-site-body *, .jsi-site-body *::before { animation: none !important; transition: none !important; } }

/* Primary CTAs never glow */
.jsi-global-drawer nav a.is-create, .jsi-btn-new-release, .jsi-nav-item-cta { box-shadow: none; animation: none; }
.jsi-btn-new-release b { display: none; }

/* All text-like inputs fill their field (legacy rule skipped password/email/number/tel) */
.jsi-field input[type=text], .jsi-field input[type=email], .jsi-field input[type=password], .jsi-field input[type=tel],
.jsi-field input[type=url], .jsi-field input[type=number], .jsi-field input[type=date], .jsi-field select, .jsi-field textarea { width: 100%; box-sizing: border-box; }


/* ═══ Flat canvas ═══════════════════════════════════════════════════
   One background per theme. No boxed sections, no container-in-container.
   Structure comes from spacing, hairline dividers and type — not boxes.
   Filled colour is reserved for hero / promo tiles and the primary action. */
.jsi-card, .jsi-panel, .jsi-type-card, .jsi-package-card, .jsi-cat-card, .jsi-release-card, .jsi-dsp-category,
.jsi-plan-banner, .jsi-bank-account-box, .jsi-live-preview, .jsi-co-summary, .jsi-repeat-row, .jsi-review-media-item,
.jsi-label-artist-row, .jsi-checklist, .jsi-dev-card, .jsi-account-security > section, .jsi-developer-docs {
	background: transparent; border-radius: 0; box-shadow: none;
}
.jsi-card, .jsi-panel, .jsi-cat-card, .jsi-release-card, .jsi-plan-banner, .jsi-bank-account-box, .jsi-co-summary, .jsi-live-preview {
	border: 0; border-bottom: 1px solid var(--jsi-line);
}
.jsi-auth-card { background: transparent; border: 0; box-shadow: none; padding: 8px 0; }
.jsi-card:hover, .jsi-cat-card:hover { background: transparent; }

/* selectable tiles (package type, DSP, release type): outlined, purple when chosen */
.jsi-type-card, .jsi-package-card { border: 1px solid var(--jsi-line-strong); border-radius: var(--jsi-r-md); }
.jsi-type-card.is-selected, .jsi-package-card.is-selected, .jsi-package-card.is-featured, .jsi-type-card:has(input:checked) { border-color: var(--jsi-gold); background: var(--jsi-gold-dim); }

/* floating surfaces stay opaque */
.jsi-modal, .jsi-ui-dialog, .jsi-bell-panel, .jsi-info-tip, .jsi-more-menu, .jsi-artist-results, .jsi-ui-x { background: var(--jsi-pop); }

/* tables: no outer box, just row dividers */
.jsi-surface, .jsi-table-scroll { background: transparent; border: 0; border-radius: 0; }
.jsi-release-table tbody tr:hover td { background: var(--jsi-panel-hover); }

/* fields keep a quiet fill so inputs stay findable on the canvas */
.jsi-field input[type=text], .jsi-field input[type=email], .jsi-field input[type=password], .jsi-field input[type=tel],
.jsi-field input[type=url], .jsi-field input[type=number], .jsi-field input[type=date], .jsi-field select, .jsi-field textarea { background: var(--jsi-field); border-color: transparent; }
.jsi-field input:hover, .jsi-field select:hover, .jsi-field textarea:hover { border-color: var(--jsi-line-strong); }

/* inline SVG icon (replaces emoji) */
.jsi-i { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Type scale (Poppins): big where it leads, light where it supports ── */
.jsi-shell h1 { font-weight: 700; letter-spacing: -.03em; }
.jsi-shell h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.jsi-shell h3 { font-size: 16px; font-weight: 600; }
.jsi-field label { font-weight: 500; }
.jsi-btn { font-weight: 600; }

/* Bottom tabs: icon over label, active = accent + filled glyph (fintech tab bar) */
.jsi-bottom-nav a { font-size: 11px; font-weight: 500; }
.jsi-bottom-nav a.is-active { color: var(--jsi-text); font-weight: 600; }
.jsi-bottom-nav a.is-active .jsi-bottom-nav-icon svg { stroke: var(--jsi-gold-ink); fill: var(--jsi-gold-dim); }
.jsi-bottom-nav .jsi-bottom-nav-icon svg { width: 24px; height: 24px; stroke-width: 1.7; }
.jsi-bottom-nav a.is-fab span.jsi-bottom-nav-icon { width: 46px; height: 32px; border-radius: 12px; }
.jsi-bottom-nav a.is-fab span.jsi-bottom-nav-icon svg { stroke: #fff; fill: none; }


/* ═══ 11. Notification centre ════════════════════════════════════════
   Popover under the bell on desktop, bottom sheet with a scrim on phones.
   Same surface, radius, hairlines and type as the app dialogs.        */
.jsi-bell-btn { position: relative; }
.jsi-bell-badge {
	position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 8px; border: 2px solid var(--jsi-bg); background: var(--jsi-gold); color: #fff;
	font: 600 10px/1 var(--jsi-font); animation: none;
}
.jsi-bell-panel {
	display: none; position: fixed; z-index: 10000; width: 380px; max-width: calc(100vw - 24px);
	max-height: min(560px, calc(100dvh - 96px)); flex-direction: column; overflow: hidden;
	background: var(--jsi-pop); color: var(--jsi-text); font-family: var(--jsi-font);
	border: 1px solid var(--jsi-line-strong); border-radius: var(--jsi-r-lg); box-shadow: 0 16px 40px rgba(0,0,0,.35);
	-webkit-font-smoothing: antialiased;
}
html[data-jsi-theme="light"] .jsi-bell-panel { box-shadow: 0 16px 40px rgba(18,8,28,.14); }
.jsi-bell-panel.is-open { display: flex; animation: jsi-bell-in .16s var(--jsi-ease) both; }
.jsi-bell-panel *, .jsi-bell-panel *::before, .jsi-bell-panel *::after { box-sizing: border-box; }
.jsi-bell-handle { display: none; width: 40px; height: 4px; border-radius: 99px; background: var(--jsi-line-strong); margin: 10px auto 0; flex: none; }

.jsi-bell-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px; border: 0; flex: none; }
.jsi-bell-panel-header strong { font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--jsi-text); }
.jsi-bell-markall { background: none; border: 0; padding: 4px 0; margin: 0; min-height: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--jsi-gold-ink); cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none; }
.jsi-bell-markall:hover { text-decoration: underline; }
.jsi-bell-markall[hidden] { display: none; }

.jsi-bell-tabs { display: flex; gap: 4px; padding: 0 16px 12px; border-bottom: 1px solid var(--jsi-line); flex: none; }
.jsi-bell-tab { min-height: 32px; padding: 0 14px; margin: 0; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13px; font-weight: 500; color: var(--jsi-text-soft); cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none; }
.jsi-bell-tab:hover { background: var(--jsi-panel-hover); color: var(--jsi-text); }
.jsi-bell-tab.is-active { background: var(--jsi-gold-dim); color: var(--jsi-gold-ink); font-weight: 600; }

.jsi-bell-panel-body { overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; padding: 6px 8px 8px; }

.jsi-bell-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 8px; margin: 0; border: 0; border-radius: var(--jsi-r-md); background: transparent; color: var(--jsi-text-dim); font-size: 13.5px; line-height: 1.45; text-decoration: none; cursor: pointer; position: relative; }
a.jsi-bell-item, a.jsi-bell-item:hover { color: var(--jsi-text-dim); text-decoration: none; }
.jsi-bell-item:hover { background: var(--jsi-panel-hover); }
.jsi-bell-item:focus-visible { outline: 2px solid var(--jsi-gold-ink); outline-offset: -2px; }
.jsi-bell-item.is-unread { background: transparent; color: var(--jsi-text); }
.jsi-bell-item.is-unread:hover { background: var(--jsi-panel-hover); }
.jsi-bell-item.is-unread .jsi-bell-msg { color: var(--jsi-text); font-weight: 500; }

.jsi-bell-ico { flex: none; width: 36px; height: 36px; border-radius: var(--jsi-r-md); display: inline-flex; align-items: center; justify-content: center; background: var(--jsi-gold-dim); color: var(--jsi-gold-ink); }
.jsi-bell-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jsi-bell-item.is-success .jsi-bell-ico { background: var(--jsi-success-soft); color: var(--jsi-success); }
.jsi-bell-item.is-warn .jsi-bell-ico { background: var(--jsi-warn-soft); color: var(--jsi-warn); }
.jsi-bell-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jsi-bell-msg { overflow-wrap: anywhere; }
.jsi-bell-item .jsi-bell-time { display: block; margin: 0; font-size: 12px; color: var(--jsi-text-soft); }
.jsi-bell-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--jsi-gold); }

.jsi-bell-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 24px 36px; text-align: center; font-size: 13px; color: var(--jsi-text-soft); }
.jsi-bell-empty strong { font-size: 15px; font-weight: 600; color: var(--jsi-text); margin-top: 8px; }
.jsi-bell-empty-icon { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--jsi-gold-dim); color: var(--jsi-gold-ink); }
.jsi-bell-empty-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* loading skeleton rows */
.jsi-bell-skel { display: grid; gap: 4px; padding: 4px 0; }
.jsi-bell-skel i { display: block; height: 60px; border-radius: var(--jsi-r-md); background: linear-gradient(90deg, var(--jsi-panel-hover) 0%, var(--jsi-line) 50%, var(--jsi-panel-hover) 100%); background-size: 200% 100%; animation: jsi-bell-skel 1.3s linear infinite; }

.jsi-bell-scrim { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(10,6,14,.6); }
.jsi-bell-scrim.is-on { display: block; }

@keyframes jsi-bell-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes jsi-bell-sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes jsi-bell-skel { to { background-position: -200% 0; } }

@media (max-width: 720px) {
	.jsi-bell-panel {
		top: auto !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: auto; max-width: none;
		max-height: 82dvh; border-radius: 20px 20px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px);
	}
	.jsi-bell-panel.is-open { animation: jsi-bell-sheet .28s var(--jsi-ease) both; }
	.jsi-bell-handle { display: block; }
	.jsi-bell-panel-header { padding-top: 12px; }
	.jsi-bell-item { padding: 14px 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.jsi-bell-panel.is-open, .jsi-bell-skel i { animation: none !important; }
}


/* ═══ 12. Feedback surfaces: toasts, notices, dialogs ═══════════════
   Native-app conventions: one flat opaque surface, hairline border, a single
   semantic colour on the glyph only. No coloured edge stripes, no tinted
   icon discs, no spring/bounce motion.                                   */

/* Toasts (snackbars) */
.jsi-ui-toasts { gap: 8px; width: min(calc(100vw - 32px), 400px); }
.jsi-ui-toast {
	align-items: center; gap: 10px; padding: 10px 8px 10px 14px; min-height: 48px;
	border: 0; border-radius: var(--jsi-r-md);
	background: var(--jsi-pop); color: var(--jsi-text); font-size: 13.5px; font-weight: 500; line-height: 1.4;
	box-shadow: 0 8px 24px rgba(0,0,0,.32);
	transform: translateY(8px); transition: opacity .18s var(--jsi-ease), transform .2s var(--jsi-ease);
}
html[data-jsi-theme="light"] .jsi-ui-toast { box-shadow: 0 8px 24px rgba(18,8,28,.14); }
.jsi-ui-toast.is-in { transform: none; }
.jsi-ui-toast.is-success, .jsi-ui-toast.is-error { border: 0; }
.jsi-ui-toast-icon, .jsi-ui-toast.is-success .jsi-ui-toast-icon, .jsi-ui-toast.is-error .jsi-ui-toast-icon {
	flex: none; width: 20px; height: 20px; margin: 0; border-radius: 0; background: none; color: var(--jsi-gold-ink);
}
.jsi-ui-toast.is-success .jsi-ui-toast-icon { color: var(--jsi-success); }
.jsi-ui-toast.is-error .jsi-ui-toast-icon { color: var(--jsi-error); }
.jsi-ui-toast-icon svg { display: block; }
.jsi-ui-toast-close { flex: none; width: 28px; height: 28px; padding: 0; margin: 0; border: 0; border-radius: 8px; background: none; color: var(--jsi-text-soft); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none; min-height: 0; }
.jsi-ui-toast-close:hover { background: var(--jsi-panel-hover); color: var(--jsi-text); }
.jsi-ui-toast-close svg { width: 14px; height: 14px; }
.jsi-ui-toast.is-bump { animation: jsi-toast-bump .22s var(--jsi-ease); }
@keyframes jsi-toast-bump { 50% { transform: translateY(-3px); } }

/* Inline notices: tinted field, no edge stripe */
.jsi-notice-success, .jsi-notice-warning, .jsi-notice-error { border: 1px solid transparent; border-left: 1px solid transparent; border-radius: var(--jsi-r-md); }
.jsi-notice-success { border-color: color-mix(in srgb, var(--jsi-success) 28%, transparent); }
.jsi-notice-warning { border-color: color-mix(in srgb, var(--jsi-warn) 30%, transparent); }
.jsi-notice-error   { border-color: color-mix(in srgb, var(--jsi-error) 30%, transparent); }

/* Dialogs: calmer, smaller, no overshoot */
.jsi-ui-dialog { border-radius: var(--jsi-r-lg); max-width: 400px; padding: 28px 24px 22px; box-shadow: 0 24px 64px rgba(0,0,0,.5); animation: jsi-ui-pop .2s var(--jsi-ease) both; }
.jsi-ui-title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.jsi-ui-message { font-size: 13.5px; line-height: 1.55; }
.jsi-ui-icon { width: 48px; height: 48px; margin-bottom: 16px; }
.jsi-ui-icon.is-upload { animation: none; }
.jsi-ui-actions { margin-top: 22px; gap: 8px; }
.jsi-ui-x { border-radius: var(--jsi-r-sm); }
.jsi-btn-danger { box-shadow: none; }
.jsi-btn-danger:hover { filter: none; background: #F28C88; }
@media (max-width: 720px) {
	.jsi-ui-dialog { border-radius: 20px 20px 0 0; animation: jsi-ui-sheet .3s var(--jsi-ease) both; }
}
