/* Blue ink on warm paper — Business Dashboard studio edition. */
:root{--brand:#2947ad;--brand-2:#203a94;--bg:#f7f2e6;--card:#fffcf4;--ink:#222a40;--muted:#6a6d78;--line:#d7d5cc;--good:#257253;--shadow:none}
body{background:var(--bg)}.topbar{background:var(--bg);border-bottom:1px solid var(--line)}.topbar h1{color:var(--brand);font-weight:650;letter-spacing:-.04em}.eyebrow{letter-spacing:.04em;font-weight:600}.sidebar{background:var(--bg);border-color:#cacbd3}.sidebar .nav-btn.active{background:var(--brand);color:#fffaf0}.sidebar .nav-btn:hover:not(.active){background:#e9e8ec}.sidebar .brand strong{color:var(--brand)}.brand-mark{background:var(--brand)}
.nav-icon svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;display:block}.primary{background:var(--brand);color:#fffbed}.primary:hover{background:#203a94}.secondary{background:#e7eaf6;color:var(--brand)}.ghost{border-color:#c5c9da}.primary,.secondary,.ghost{border-radius:12px}.icon-button,.close{color:var(--brand);background:var(--card)}button{transition:transform .16s ease,background-color .16s ease,box-shadow .16s ease}button:active{transform:scale(.97)}button:focus-visible,summary:focus-visible{outline:3px solid #8299ee;outline-offset:3px}
.card,.table-wrap,.pricing-panel{background:var(--card);border-color:var(--line);border-radius:15px}.summary-box{background:#f1eddf;border-color:var(--line)}input,select,textarea{background:#fffdf7;border-color:#c8cbd7;border-radius:10px}.pill{background:#e7eaf6;color:var(--brand)}th{background:#f0eddf}.auth-screen{background:var(--bg)}.auth-card{background:var(--card);border-color:#c5c9da}.auth-card h1{color:var(--brand);letter-spacing:-.04em}.auth-card .brand-mark{box-shadow:none}
.studio-welcome{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:25px 28px;background:var(--brand);color:#fffbed;border-radius:22px 22px 22px 5px;margin-bottom:20px;overflow:hidden}.studio-welcome .studio-label{font-size:10px;letter-spacing:.11em;margin:0 0 12px;color:#d4dcff}.studio-welcome h2{font-size:36px;line-height:1.05;letter-spacing:-.04em;font-weight:550;margin:0}.studio-welcome h2 em{font-family:Georgia,serif;font-weight:400}.studio-welcome p:last-child{font-size:13px;margin:14px 0 0;color:#e3e8ff}.studio-drawing{width:124px;height:138px;flex-shrink:0;transform:rotate(5deg);animation:paper-arrive .6s ease-out both}.drawing-star{transform-origin:114px 24px;animation:star-hello .8s .3s ease-out both}
.dashboard-metrics{background:var(--card);border-color:#bfc6de;border-radius:15px}.dashboard-metrics .metric-value{color:var(--brand);font-variant-numeric:tabular-nums}.dashboard-metrics>.card{background:transparent}.dashboard-metrics>.card:hover{background:#eeeef6}.simple-details{border-color:#c8cbd7}.simple-details>summary,.stock-secondary>summary{color:var(--brand)}.home-next{border-color:#a9b8ea}.simple-action-grid .ghost{background:transparent;color:var(--brand)}.stock-filters [aria-pressed="true"]{background:var(--brand);color:#fffbed;border-color:var(--brand)}.stock-item{background:transparent}.stock-item[open]{background:#fffaf0}.stock-item[open] .stock-item-details{animation:details-arrive .18s ease-out}.stock-item>summary:after{color:var(--brand)}.stock-item-quantity b{color:var(--brand)}.stock-secondary[open] .stock-settings{animation:details-arrive .18s ease-out}.recipe-card{border-color:#bfc6de}.recipe-card h2{color:var(--brand)}.toast{background:#222a40}
@keyframes paper-arrive{from{opacity:0;transform:translateY(10px) rotate(-5deg)}to{opacity:1;transform:translateY(0) rotate(5deg)}}@keyframes star-hello{from{transform:scale(.4) rotate(-25deg)}to{transform:scale(1) rotate(0)}}@keyframes details-arrive{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:761px){.studio-welcome{max-width:100%;padding:28px 34px}.studio-welcome h2{font-size:44px}.studio-drawing{width:150px;height:150px}}
@media(max-width:760px){.studio-welcome{padding:21px 18px}.studio-welcome h2{font-size:30px}.studio-drawing{width:94px;height:116px}.studio-welcome p:last-child{font-size:12px}.studio-welcome .studio-label{font-size:9px}.mobile-nav{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));height:64px;padding:5px;border:1px solid #b8bed2;border-radius:19px;background:#fffcf4;box-shadow:0 3px 12px #222a4010;align-items:stretch}.mobile-nav .nav-btn{border-radius:13px;gap:3px;padding:7px 1px;min-width:0;color:#5a6480}.mobile-nav .nav-btn.active{background:var(--brand);color:#fffbed}.mobile-nav .nav-icon{width:21px}.page{padding-bottom:110px}.toast{bottom:92px}.fab{bottom:90px;background:var(--brand)}dialog{border-radius:19px}.topbar{padding-top:max(14px,env(safe-area-inset-top))}}
@media(max-width:350px){.studio-welcome{padding:19px 14px}.studio-welcome h2{font-size:27px}.studio-drawing{width:73px}.studio-welcome p:last-child{max-width:170px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Per-account accent; preserve readable contrast even for pale colours. */
:root{--on-brand:#fff;--brand-ink:#2947ad}
.primary,.studio-welcome,.sidebar .nav-btn.active,.stock-filters [aria-pressed="true"]{color:var(--on-brand)}.primary:hover{background:var(--brand);filter:brightness(.94)}.studio-welcome .studio-label,.studio-welcome p:last-child{color:var(--on-brand);opacity:.86}.topbar h1,.sidebar .brand strong,.auth-card h1,.dashboard-metrics .metric-value,.simple-details>summary,.stock-secondary>summary,.stock-item-quantity b,.recipe-card h2,.simple-action-grid .ghost,.eyebrow{color:var(--brand-ink)}.secondary,.pill{background:color-mix(in srgb,var(--brand) 10%,var(--bg));color:var(--brand-ink)}.home-next{border-color:var(--brand)}.stock-filters [aria-pressed="true"]{border-color:var(--brand)}.studio-drawing{color:var(--on-brand)}.sidebar .nav-btn:hover:not(.active),.dashboard-metrics>.card:hover{background:color-mix(in srgb,var(--brand) 7%,var(--bg))}#businessColor{width:100%;max-width:180px;height:46px;padding:5px;cursor:pointer}
@media(max-width:760px){.mobile-nav .nav-btn.active{color:var(--on-brand)}}

#salesChannels .sales-channel-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:18px;border:1px solid var(--line);border-radius:14px;margin-bottom:14px}#salesChannels .sc-fee-note,#salesChannels .sc-extra{grid-column:1/-1}.sc-extra summary{cursor:pointer;padding:8px 0}.platform-methods{display:grid;grid-template-columns:1fr 1fr;gap:12px}.platform-product-breakdown{margin:20px 0}.platform-methods h4{margin:0 0 10px}@media(max-width:620px){#salesChannels .sales-channel-row,.platform-methods{grid-template-columns:minmax(0,1fr)}}
