@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

/* Shared typography and control language. Product themes retain their saved palettes. */
:root{
  --ds-font-body:'DM Sans',Arial,sans-serif;
  --ds-font-display:Manrope,'DM Sans',Arial,sans-serif;
  --ds-space-1:4px;--ds-space-2:8px;--ds-space-3:12px;--ds-space-4:16px;
  --ds-space-6:24px;--ds-space-8:32px;--ds-space-12:48px;--ds-space-16:64px;
  --ds-radius-control:8px;--ds-radius-surface:14px;--ds-radius-feature:20px;
  --ds-focus:#cc694d;--ds-motion:160ms ease;
}
:root[data-branding=custom]{--ds-focus:var(--brand-secondary)}
html{scroll-behavior:smooth}
body{font-family:var(--brand-body-font,var(--ds-font-body));-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,.brand,.logo,.legal-brand{font-family:var(--brand-heading-font,var(--ds-font-display))}
:where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--ds-focus);outline-offset:3px}
:where(button,a,input,select,textarea){-webkit-tap-highlight-color:transparent}
:where(button,input,select,textarea){font-family:inherit}
:where(button,.primary,.secondary,.small-button,.theme-button,.button){transition:background-color var(--ds-motion),border-color var(--ds-motion),color var(--ds-motion),transform var(--ds-motion)}
:where(button,.primary,.secondary,.small-button,.theme-button,.button):disabled{cursor:not-allowed;opacity:.55;transform:none}
:where(button,.primary,.secondary,.small-button,.theme-button,.button):active:not(:disabled){transform:translateY(1px)}
:where(input,select,textarea){min-width:0;max-width:100%}
:where(p,li,td,.notice){overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}:where(*, *::before, *::after){scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Artist and staff workspace: clearer hierarchy without replacing saved themes. */
body:has(.shell) > aside{width:244px;padding:24px 14px;border-right:1px solid var(--border)}
body:has(.shell) .shell{margin-left:244px}
body:has(.shell) > aside .brand{font-size:24px;letter-spacing:-.055em;padding:0 10px}
body:has(.shell) .brand-icon{border-radius:var(--ds-radius-control);box-shadow:none}
body:has(.shell) > aside .workspace{margin:30px 8px 20px;border-radius:var(--ds-radius-control)}
body:has(.shell) > aside .nav-label{padding-left:16px;font-size:10px;letter-spacing:.13em}
body:has(.shell) > aside nav{gap:2px}
body:has(.shell) > aside nav a{min-height:42px;padding:9px 13px;border-radius:var(--ds-radius-control);font-size:17px;line-height:1.3}
body:has(.shell) > aside nav a span{font-size:13px}
body:has(.shell) > aside nav a.active{box-shadow:inset 3px 0 0 currentColor}
body:has(.shell) .help-card{border-radius:var(--ds-radius-control);padding:14px;margin:20px 8px}
body:has(.shell) .shell>header{min-height:70px;height:auto;padding:12px clamp(20px,3vw,42px);gap:20px}
body:has(.shell) .shell main{padding:clamp(24px,3vw,42px);max-width:1500px}
body:has(.shell) .breadcrumb{font-size:12px;letter-spacing:.01em}
body:has(.shell) .header-right{gap:12px}
body:has(.shell) .demo-pill{border-radius:4px;letter-spacing:.1em}
body:has(.shell) .page-heading{align-items:flex-end;margin-bottom:26px}
body:has(.shell) .page-heading h1{font-size:clamp(25px,2.4vw,35px);line-height:1.16;letter-spacing:-.045em}
body:has(.shell) .panel h2{font-size:clamp(19px,1.8vw,24px);letter-spacing:-.035em}
body:has(.shell) :where(.panel,.stat,.integration-card,.track-editor,.partner-fields,.branding-preview){border-radius:var(--ds-radius-surface);box-shadow:none}
body:has(.shell) :where(.primary,.secondary,.theme-button){min-height:42px;padding:9px 16px;border-radius:var(--ds-radius-control);font-weight:700;font-size:13px;line-height:1.35}
body:has(.shell) .secondary:hover{border-color:var(--violet)}
body:has(.shell) :where(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){border-radius:var(--ds-radius-control);min-height:42px}
body:has(.shell) textarea{min-height:100px;line-height:1.5}
body:has(.shell) :where(.notice,.local-banner){border-radius:var(--ds-radius-control);padding:13px 16px;line-height:1.55}
body:has(.shell) .table-wrap{overflow-x:auto;max-width:100%}
body:has(.shell) :where(th,td){padding-block:12px}
body:has(.shell) .status{border-radius:5px;font-size:11px;letter-spacing:.02em}
body:has(.shell) :where(.rank-row,.asset-row,.history-item){border-color:var(--border)}
body:has(.shell) .shell footer{border-top:1px solid var(--border)}
body:has(.shell) .shell footer .footer-legal{gap:8px 16px}
@media(max-width:820px){
  body:has(.shell) > aside{width:auto;padding:12px 18px}
  body:has(.shell) .shell{margin-left:0}
  body:has(.shell) > aside .brand{padding:0}
  body:has(.shell) > aside nav{display:flex;gap:4px;overflow-x:auto;scrollbar-width:thin;padding:3px 0 7px}
  body:has(.shell) > aside nav a{flex:none;white-space:nowrap;min-height:44px}
  body:has(.shell) .shell>header{padding:14px 20px}
  body:has(.shell) .shell main{padding:24px 20px}
}
@media(max-width:560px){
  body:has(.shell) .shell>header{gap:8px}
  body:has(.shell) .header-right{gap:10px}
  body:has(.shell) .page-heading{align-items:flex-start}
  body:has(.shell) .shell main{padding:20px 16px}
  body:has(.shell) .panel{padding:20px 16px}
  body:has(.shell) .form-grid{grid-template-columns:minmax(0,1fr)}
  body:has(.shell) .table-wrap{margin-inline:-16px;padding-inline:16px}
}

/* Sign-in is a two-column editorial page, with the form carrying the visual weight. */
.auth-page{--violet:#563e5c;--coral:#d66a4f;--yellow:#f4ce82;background:#f5f1e9;color:#28232b}
.auth-layout{max-width:1210px;min-height:calc(100dvh - 100px);grid-template-columns:minmax(0,1fr) minmax(360px,450px);gap:clamp(38px,7vw,110px);align-items:start;padding:clamp(30px,6vw,72px) 28px}
.auth-intro .brand{margin-bottom:clamp(70px,11vw,180px);font-size:29px}
.auth-page .brand-icon{background:var(--coral);color:#28232b;border-radius:7px}
.auth-intro .eyebrow{font-size:11px;letter-spacing:.15em;color:#8b493b}
.auth-intro h1{font-size:clamp(42px,4.9vw,72px);line-height:1.08;letter-spacing:-.065em;max-width:680px}
.auth-intro>p:not(.notice){max-width:460px;font-size:17px;color:#615a61;line-height:1.65}
.auth-intro .notice{max-width:500px;margin-top:36px;border-radius:0;border-left:2px solid var(--coral);background:transparent;color:#615a61;padding:4px 0 4px 15px}
.auth-card{align-self:start;padding:clamp(24px,3vw,42px);border:1px solid #d9d2ca;border-radius:var(--ds-radius-feature);box-shadow:0 16px 45px #2b22310c;background:#fff}
.auth-card h2{font-size:29px;letter-spacing:-.045em;margin-bottom:8px}
.auth-card :where(input,select){border-radius:var(--ds-radius-control);background:#fff;color:#28232b;min-height:46px}
.auth-card .primary{min-height:46px;border-radius:var(--ds-radius-control);background:#352a3b;color:#fff}
.auth-card .primary:hover{background:#513951}
.auth-card .auth-links{gap:8px 17px;border-top:1px solid #e9e2da;padding-top:18px}
.auth-card .auth-links button{padding:4px 0;color:#6d4a61;text-align:left}
.auth-card .auth-links button:hover{text-decoration:underline}
.auth-card .notice{border-radius:var(--ds-radius-control)}
.auth-footer{background:#f5f1e9}
@media(max-width:800px){.auth-layout{grid-template-columns:minmax(0,1fr);min-height:0;gap:20px;padding:26px 20px}.auth-intro .brand{margin-bottom:38px}.auth-intro h1{max-width:610px}.auth-card{width:100%;max-width:600px}.auth-intro .notice{margin-top:20px}}
@media(max-width:520px){.auth-layout{padding:20px 16px}.auth-intro h1{font-size:40px}.auth-card{padding:24px 20px}}

/* Documentation pages share the same quiet paper, rules and type scale. */
.help-page,.help-page .help-center{background:#f5f1e9;color:#28232b}
.help-center{max-width:1180px;padding:34px 30px 100px;font-family:var(--ds-font-body)}
.help-center header{padding:0 0 22px;border-bottom:1px solid #d8d0c9}
.help-center header strong{font-family:var(--ds-font-display);letter-spacing:-.05em}
.help-center h1{font-family:var(--ds-font-display);font-size:clamp(35px,4.5vw,58px);letter-spacing:-.06em;max-width:780px;margin:54px 0 16px}
.help-center .intro{max-width:720px;font-size:17px;line-height:1.65;color:#645d63}
.help-center .help-links{gap:0;margin:35px 0 50px;border-block:1px solid #d8d0c9}
.help-center .help-links a{border:0;border-radius:0;padding:14px 16px 14px 0;margin-right:20px;color:#403442;font-weight:600;font-size:13px}
.help-center .help-links a:hover{text-decoration:underline}
.help-center section{max-width:860px;padding:26px 0;margin:0;border:0;border-top:1px solid #d8d0c9;border-radius:0;background:transparent;scroll-margin-top:24px}
.help-center section h2{font-family:var(--ds-font-display);font-size:23px;letter-spacing:-.035em}
.help-center section :where(p,li){color:#4e484e;line-height:1.7}
.help-center a{color:#6e3f54}
.help-center .status-note{border-radius:0;background:#eee6dc;border-left:3px solid var(--coral)}
.help-center footer{max-width:860px;margin-top:35px;border-top:1px solid #d8d0c9}
@media(max-width:600px){.help-center{padding:20px 18px 90px}.help-center h1{margin-top:35px}.help-center .help-links{margin:26px 0 32px}.help-center .help-links a{padding:10px 12px 10px 0;margin-right:10px}.help-center section{padding:22px 0}}

.legal-shell{max-width:1180px}
body:has(.legal-shell),body.maintenance-page{--ink:#28232b;--muted:#645d63;--line:#d9d1ca;--surface:#fffdf9;--pale:#eee7dd;--violet:#563e5c;--coral:#d66a4f;background:#f5f1e9;color:var(--ink)}
.legal-header nav a,.legal-card a,.legal-footer a{color:#563e5c}
.legal-card{max-width:930px;border-radius:var(--ds-radius-feature);box-shadow:none}
.legal-card h1{letter-spacing:-.055em}
.legal-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px}
.legal-links a{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:19px 0}
.legal-links a:hover{transform:none;border-color:var(--violet)}
.legal-header{border-bottom:1px solid var(--line)}
.maintenance-card{border-radius:var(--ds-radius-feature);box-shadow:none}
@media(max-width:640px){.legal-links{grid-template-columns:minmax(0,1fr)}}

/* Support stays legible above all page surfaces and theme colors. */
.dt-help-launch{border-radius:var(--ds-radius-surface);background:#352a3b;box-shadow:0 8px 24px #1e172c25}
.dt-help-panel{border-radius:var(--ds-radius-feature);font-family:var(--ds-font-body);box-shadow:0 18px 48px #1e172c24}
.dt-help-panel :where(input,select,textarea,.dt-help-tabs button,.dt-help-form button){border-radius:var(--ds-radius-control)}

/* Workspace session states keep private navigation out of the signed-out shell. */
body[data-workspace-state="loading"] > aside,
body[data-workspace-state="signed-out"] > aside,
body[data-workspace-state="load-error"] > aside,
body[data-workspace-state="loading"] .shell > header,
body[data-workspace-state="signed-out"] .shell > header,
body[data-workspace-state="load-error"] .shell > header,
body[data-workspace-state="loading"] .shell > footer,
body[data-workspace-state="signed-out"] .shell > footer,
body[data-workspace-state="load-error"] .shell > footer{display:none!important}
body[data-workspace-state="loading"] .shell,
body[data-workspace-state="signed-out"] .shell,
body[data-workspace-state="load-error"] .shell{margin-left:0;min-height:100dvh;display:grid;place-items:center}
body[data-workspace-state="loading"] .shell main,
body[data-workspace-state="signed-out"] .shell main,
body[data-workspace-state="load-error"] .shell main{width:min(100%,620px);padding:32px 22px}
.workspace-auth-card{padding:clamp(28px,4vw,48px);border:1px solid var(--border);background:var(--surface);border-radius:18px}
.workspace-auth-card h1{font-size:clamp(29px,3vw,42px);letter-spacing:-.05em;line-height:1.13;margin:14px 0}
.workspace-auth-card p{color:var(--muted);line-height:1.6;margin-bottom:24px}
.workspace-auth-card :where(.primary,.secondary){display:inline-flex;align-items:center;justify-content:center;margin:0 10px 10px 0}
.workspace-route-loading{display:flex;align-items:center;gap:14px;min-height:180px;color:var(--muted);font-weight:600}
.workspace-loader{width:24px;height:24px;border:3px solid var(--border);border-top-color:var(--violet);border-radius:50%;animation:workspace-spin .7s linear infinite}
@keyframes workspace-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.workspace-loader{animation:none}}

/* Calm, clearly separated workspace navigation and account actions. */
body[data-workspace-state="ready"] > aside nav a.active{background:color-mix(in srgb,var(--violet) 12%,var(--surface));color:var(--ink);box-shadow:inset 3px 0 0 var(--violet)}
body[data-workspace-state="ready"] .shell > header{position:sticky;top:0;z-index:4;backdrop-filter:blur(16px);background:color-mix(in srgb,var(--surface) 92%,transparent)}
body:has(.shell) .header-right a.text-button{min-height:36px;display:inline-flex;align-items:center;padding:7px 11px;border:1px solid transparent;border-radius:8px;font-size:12px;font-weight:700;white-space:nowrap;line-height:1.2}
body:has(.shell) .header-right a.text-button:hover{background:var(--soft);border-color:var(--border);text-decoration:none}
body:has(.shell) .header-right a[href="/auth.html"]{border-color:var(--border);color:var(--muted)}
body:has(.shell) .header-right a[aria-disabled="true"]{pointer-events:none;opacity:.6}
body:has(.shell) .breadcrumb strong{font-size:13px;letter-spacing:-.01em}
@media(max-width:560px){body:has(.shell) .header-right a.text-button{min-height:34px;padding:7px 8px;font-size:11px}}
@media(max-width:560px){
  body[data-workspace-state="ready"] .shell>header{display:block;min-height:54px;padding:8px 14px}
  body[data-workspace-state="ready"] .shell>header .breadcrumb{display:none}
  body[data-workspace-state="ready"] .shell>header .header-right{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:4px;width:100%}
  body[data-workspace-state="ready"] .shell>header .theme-button{width:36px;min-width:36px;height:36px;min-height:36px;padding:0;overflow:hidden;font-size:0;flex:none}
  body[data-workspace-state="ready"] .shell>header .theme-button::before{content:'◐';font-size:18px}
  body[data-workspace-state="ready"] .header-right a.text-button{font-size:11px;padding:7px 6px}
}
@media(max-width:560px){
  body:has(.shell) .dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  body:has(.shell) .dashboard-stats .stat{min-width:0;padding:14px 11px}
  body:has(.shell) .dashboard-stats .stat-title{font-size:11px;line-height:1.25;min-height:28px}
  body:has(.shell) .dashboard-stats .stat-value{font-size:26px;line-height:1.1;margin:6px 0 0}
  body:has(.shell) .dashboard-stats .stat-foot{display:none}
}
@media(max-width:820px){
  body:has(.shell)>aside{position:relative;inset:auto;width:100%;height:auto;display:flex;flex-direction:column;align-items:stretch;gap:9px;overflow:hidden;padding:12px 20px}
  body:has(.shell)>aside .brand{font-size:22px}
  body:has(.shell)>aside nav{margin-top:0;max-width:100%}
  body:has(.shell)>aside nav a span{display:inline;font-size:13px}
  body:has(.shell)>aside .brand-icon{font-size:26px}
}
