/* Maitreya Labs brand skin for every tool under maitreyalabs.com (owner, 17 Nov 2026: "the same UI UX, layout,
   colour palette and design aesthetics as the main website", Copy Desk excepted, so it is never loaded on /copy/).
   Injected by nginx (snippets/ml-skin.conf) into Studio (/studio/ and its pages at the root), /ads-audit/,
   /seo-audit/, /real-roas/, /ai-coworker/ and /account/. Tokens come from the brand site: paper #f5f4ef, ink #141413,
   red #b3261e, square corners, 1.5px ink borders with an offset ink shadow, Inter Tight and JetBrains Mono.
   Each app keeps its own markup; its colour, radius and font variables are re-pointed here, and the inline-styled
   apps (ads and SEO audit) get element rules. Remove the include in nginx to switch it off. */
@font-face{font-family:'ML Inter Tight';font-style:normal;font-weight:100 900;font-display:swap;src:url(/_ml/fonts/inter-tight-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'ML Inter Tight';font-style:normal;font-weight:100 900;font-display:swap;src:url(/_ml/fonts/inter-tight-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'ML JetBrains Mono';font-style:normal;font-weight:100 800;font-display:swap;src:url(/_ml/fonts/jetbrains-mono-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212}

:root{
  --ml-ink:#141413;--ml-paper:#f5f4ef;--ml-paper-2:#eeece5;--ml-card:#fff;--ml-soft:#dcd9cf;--ml-soft-2:#bdb9ad;
  --ml-mut:#5c5c58;--ml-red:#b3261e;--ml-red-d:#8f1e18;--ml-red-t:#fbe6e4;
  --ml-sans:'ML Inter Tight','Inter Tight',Inter,system-ui,-apple-system,'Segoe UI',sans-serif;
  --ml-mono:'ML JetBrains Mono','JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --ml-shadow:4px 4px 0 var(--ml-ink);--ml-shadow-s:3px 3px 0 var(--ml-ink);
  /* Studio design system (fonts, radii, paper and brand scales) */
  --font-display:var(--ml-sans);--font-sans:var(--ml-sans);--font-mono:var(--ml-mono);--font-heading:var(--ml-sans);
  --radius-xs:0px;--radius-sm:0px;--radius-md:0px;--radius-lg:0px;--radius-xl:0px;--radius-2xl:0px;--radius-3xl:0px;
  --paper-50:#f5f4ef;--paper-100:#eeece5;--paper-150:#f1efe9;--paper-200:#dcd9cf;--paper-300:#bdb9ad;
  --brand-900:#3d0d09;--brand-800:#6b1712;--brand-700:#8f1e18;--brand-600:#a2221b;--brand-550:#b3261e;--brand-500:#b3261e;
  --brand-400:#d9605a;--brand-300:#e8928d;--brand-200:#f2c3c0;--brand-100:#fbe6e4;--brand-050:#fdf3f2;
  /* AI Coworker */
  --brand:#b3261e;--brand-2:#8f1e18;--radius:0px;
  /* Account */
  --acc:#b3261e;
}
/* Light-theme colour names shared by Real ROAS, AI Coworker, Account and Studio; Studio's dark theme is left alone */
:root:not([data-theme="dark"]){
  --bg:#f5f4ef;--surface:#fff;--text:#141413;--muted:#5c5c58;--border:#dcd9cf;--primary:#141413;--primary-hover:#b3261e;--band:#eeece5;
  --fg:#141413;--line:#dcd9cf;--card:#fff;--ink:#141413;--mute:#5c5c58;
  --accent:#141413;--accent-hover:#b3261e;--accent-active:#8f1e18;--accent-subtle:#fbe6e4;--accent-border:#f2c3c0;--accent-text:#b3261e;
  --text-link:#b3261e;--text-strong:#141413;--bg-header:rgba(245,244,239,.92);
}

/* Type */
html body{font-family:var(--ml-sans);color:var(--ml-ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html body :is(h1,h2,h3,h4,h5,h6,p,a,li,dt,dd,td,th,label,button,input,select,textarea,summary,legend,blockquote,figcaption,small,strong,b,em,span,div,nav,header,footer,section,article,main):not([class*="mono"]):not([class*="code"]):not(code):not(pre):not(kbd):not(samp){font-family:var(--ml-sans)}
html body :is(code,pre,kbd,samp,[class*="mono"]){font-family:var(--ml-mono)}
html body :is(h1,h2){letter-spacing:-.025em;font-weight:750;color:var(--ml-ink)}
html body :is(h3,h4){letter-spacing:-.01em;font-weight:700}
html body ::selection{background:var(--ml-red);color:#fff}

/* Controls: square, ink edged, offset shadow like the brand site */
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea){border-radius:0;border:1.5px solid var(--ml-soft-2);background:#fff;color:var(--ml-ink)}
html body :is(input,select,textarea):focus{outline:2px solid var(--ml-ink);outline-offset:1px;border-color:var(--ml-ink)}
html body :is(input[type=checkbox],input[type=radio]){accent-color:var(--ml-red)}

/* Inline-styled apps (ads audit, SEO audit): their own purple goes, the brand palette comes in */
html body > header:first-of-type:not([class]){background:var(--ml-paper);color:var(--ml-ink);border-bottom:1.5px solid var(--ml-ink);letter-spacing:-.01em;font-size:17px}
html body > header:first-of-type:not([class]) :is(a,b,strong,span){color:var(--ml-ink)!important}
html body :is(button,.btn,a[class*="btn"],input[type=submit]):not([class*="dot"]):not([class*="avatar"]):not([class*="swatch"]):not([class*="switch"]){border-radius:0}
html body :is(button:not([class]),.btn:not([class*=" "]),input[type=submit]){background:var(--ml-ink);color:var(--ml-paper);border:1.5px solid var(--ml-ink);box-shadow:var(--ml-shadow-s);font-weight:700;transition:transform .12s,box-shadow .12s,background .12s}
html body :is(button:not([class]),.btn:not([class*=" "]),input[type=submit]):hover:not(:disabled){background:var(--ml-red);border-color:var(--ml-ink);transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--ml-ink)}
html body .card:not([class*="__"]){border-radius:0;border:1.5px solid var(--ml-ink);box-shadow:var(--ml-shadow)}
html body .steps span{border-radius:0;background:var(--ml-soft)}
html body .steps span.on{background:var(--ml-red)}
html body :is(code,.copy){background:var(--ml-paper-2);border-radius:0}
html body .hint{color:var(--ml-mut)}

/* Real ROAS, Account, AI Coworker buttons and cards keep their classes; square them and add the ink edge */
html body :is(.btn.primary,.btn-primary,a.primary,button.primary,button.on){border-radius:0;border:1.5px solid var(--ml-ink);box-shadow:var(--ml-shadow-s)}
html body :is(.btn.primary,.btn-primary,a.primary,button.primary){background:var(--ml-ink);color:var(--ml-paper)}
html body :is(.btn.primary,.btn-primary,a.primary,button.primary):hover{background:var(--ml-red);color:#fff}
html body :is(.btn:not(.primary),.btn-secondary,.btn-ghost){border-radius:0}

/* Page ground */
html:not([data-theme="dark"]) body{background-color:var(--ml-paper)}

/* The suite bar (brand-bar.js) */
.mlb{position:relative;z-index:2147483000;background:var(--ml-ink);color:var(--ml-paper);font:500 13.5px/1 var(--ml-sans);border-bottom:1.5px solid var(--ml-ink)}
.mlb *{box-sizing:border-box;font-family:var(--ml-sans)}
.mlb-w{max-width:1280px;margin:0 auto;padding:0 20px;height:40px;display:flex;align-items:center;gap:18px}
.mlb-logo{color:var(--ml-paper)!important;text-decoration:none!important;font-weight:750;letter-spacing:-.02em;font-size:15px;white-space:nowrap;display:flex;align-items:center;gap:8px}
.mlb-logo i{width:9px;height:9px;background:var(--ml-red);display:inline-block}
.mlb-nav{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0}
.mlb-nav::-webkit-scrollbar{display:none}
.mlb-nav a{color:#c9c7bf!important;text-decoration:none!important;padding:7px 9px;white-space:nowrap;border-bottom:2px solid transparent}
.mlb-nav a:hover{color:#fff!important}
.mlb-nav a[aria-current]{color:#fff!important;border-bottom-color:var(--ml-red)}
.mlb-cta{margin-left:auto;background:var(--ml-red);color:#fff!important;text-decoration:none!important;font-weight:700;padding:7px 13px;border:1.5px solid var(--ml-paper);white-space:nowrap}
.mlb-cta:hover{background:var(--ml-red-d)}
@media (max-width:720px){.mlb-w{gap:10px;padding:0 12px}.mlb-logo span{display:none}.mlb-cta{padding:7px 10px}}
@media print{.mlb{display:none}}

/* Under 480 px the bar keeps Home and the current page, so the page's one button never cuts a nav item */
@media (max-width:479px){.mlb-nav a:not([aria-current]):not(:first-child){display:none}}
