/* CamuflaAds / application design system. Authored media and canvases are excluded. */
:root{
  --pd-bg:var(--custom-background,var(--bg,#0b0b0b));
  --pd-panel:var(--custom-surface,var(--panel,#141414));
  --pd-raised:var(--custom-raised,var(--panel-raised,#202020));
  --pd-border:color-mix(in srgb,var(--custom-border,var(--border,#303030)) 72%,transparent);
  --pd-text:var(--custom-text,var(--text,#f4f4f4));
  --pd-muted:var(--custom-muted,var(--muted,#a1a1a1));
  --pd-shadow:0 8px 28px #0000000d,0 1px 2px #00000012;
  --pd-radius:16px;
  --pd-hover:color-mix(in srgb,var(--pd-text) 5%,var(--pd-panel));
  --sidebar:248px;
}
html[data-color-mode=light]{--pd-shadow:0 5px 22px #15151506,0 1px 3px #15151505}
body{font-weight:450;-webkit-font-smoothing:antialiased}
.sidebar,.commerce-sidebar{
  width:248px;padding:25px 14px 16px;gap:0;
  border-right:1px solid var(--pd-border);overflow-y:auto;
  scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--pd-muted) 22%,transparent) transparent;
}
.app-shell,.commerce-shell{margin-left:248px}
.sidebar .brand,.commerce-sidebar .brand-lockup{padding:0 12px;font-size:24px;letter-spacing:-1px;flex-shrink:0}
.sidebar .brand img,.commerce-sidebar .brand-lockup img{width:32px;height:32px}
.workspace-label,.commerce-sidebar .workspace-switch{margin:28px 4px 22px;padding:13px 12px;border-radius:12px;gap:10px;box-shadow:inset 0 1px 0 #ffffff04}
.workspace-label strong,.workspace-switch strong{font-size:12px;line-height:1.4;font-weight:650}
.workspace-label div>span,.workspace-switch small{font-size:10px;line-height:1.5;margin-top:3px}
.workspace-avatar,.workspace-symbol{width:32px;height:32px;flex-shrink:0;border-radius:10px}
.sidebar .nav-caption,.commerce-sidebar .nav-caption{font-size:9px;font-weight:700;letter-spacing:1.65px;margin:0 15px 10px;color:var(--pd-muted)}
.sidebar .nav-links,.commerce-nav{display:grid;gap:4px}
.sidebar .nav-link,.sidebar .account-bridge-link,.commerce-nav>a{
  position:relative;display:flex;align-items:center;gap:11px;min-height:38px;padding:9px 13px;
  font-size:12px;font-weight:550;line-height:1.45;border-radius:9px;white-space:normal;
  transition:background .16s,color .16s,box-shadow .16s;
}
.sidebar .nav-link .icon,.sidebar .account-bridge-link svg,.commerce-nav>a .c-icon{width:17px;height:17px;opacity:.8;flex-shrink:0}
html:root .sidebar .nav-link.active,html:root .sidebar .account-bridge-link.active,html:root .commerce-nav>a.active{
  background:var(--pd-text)!important;color:var(--pd-bg)!important;box-shadow:0 2px 8px #00000010!important;font-weight:700;
}
html:root .sidebar .nav-link.active .icon,html:root .sidebar .account-bridge-link.active svg,html:root .commerce-nav>a.active .c-icon{color:inherit!important;opacity:1}
html:root .sidebar .nav-link.active .nav-dot{background:currentColor!important;width:4px;height:4px}
.sidebar .account-bridge-links{margin-top:20px;padding-top:16px}
.sidebar-bottom{padding-top:20px}
.sidebar .sidebar-note{display:none}
.sidebar .sidebar-signature,.sidebar-mini{margin-top:14px;padding:14px 12px 0;font-size:8px;letter-spacing:1px;color:var(--pd-muted);border-color:var(--pd-border)}
.sidebar-studio{border-radius:10px;font-size:12px;padding:12px}
.commerce-sidebar .nav-group{margin-bottom:22px}
.topbar,.commerce-topbar{height:72px;padding:0 32px;gap:20px;border-color:var(--pd-border)}
.breadcrumb,.breadcrumbs{font-size:12px;gap:12px}
.breadcrumb strong,.breadcrumbs strong{font-weight:650}
.topbar-actions,.topbar-right{gap:12px}
.topbar .service-badge{font-size:10px;padding:8px 11px;border:1px solid var(--pd-border);border-radius:30px}
.topbar .help-button,.topbar .color-mode-toggle,.commerce-topbar .color-mode-toggle{min-height:36px;border-radius:9px;font-size:11px}
.topbar .avatar,.topbar .account-bridge-avatar,.commerce-topbar .avatar{width:35px;height:35px;border-radius:11px;font-size:11px}
.topbar-date{font-size:11px}
.app-shell>main,.commerce-shell>.commerce-main{width:100%;max-width:1500px;margin-inline:auto;padding:30px 34px 0}
.app-shell>main>#account-access-panel{border:1px solid var(--pd-border);border-radius:10px;padding:10px 14px;font-size:11px;margin-bottom:20px;background:var(--pd-panel)}
.app-shell>main>footer,.commerce-footer{border-color:var(--pd-border);padding:26px 0;margin-top:30px;color:var(--pd-muted)}
.commerce-footer>span,.commerce-footer>a,.commerce-footer>button{font-size:10px}
/* A compact introduction keeps the working area close to the top of the page. */
.studio-hero{height:auto;min-height:252px;border-radius:var(--pd-radius);border-color:var(--pd-border);box-shadow:var(--pd-shadow)}
.hero-content{padding:28px 32px;max-width:650px}
.hero-content h1{font-size:34px;line-height:1.13;letter-spacing:-1.15px;margin:14px 0 12px;font-weight:700}
.hero-content>p{font-size:12px;line-height:1.6}
.hero-content>.eyebrow{font-size:9px;letter-spacing:1.5px}
.hero-specs{margin-top:16px;font-size:9px;gap:16px}
.hero-art{object-position:right center}
.hero-edition{font-size:8px}
.project-heading{margin:28px 0 18px}
.project-heading h2{font-size:24px;font-weight:650;letter-spacing:-.65px}
.project-heading .eyebrow{font-size:9px;font-weight:600;letter-spacing:1.4px}
.project-status{font-size:11px}
.workflow-banner{min-height:164px;border-radius:var(--pd-radius);margin-top:24px;padding:26px 30px;border-color:var(--pd-border)}
.workflow-content>h2{font-size:26px;font-weight:650;letter-spacing:-.6px;margin-top:8px}
.workflow-content>p{font-size:12px;line-height:1.7}
/* Shared account and administration surfaces, without touching editor canvases. */
.commerce-body .page-heading,.commerce-surface .page-heading{margin-bottom:28px;gap:24px}
.commerce-body .page-heading h1,.commerce-surface .page-heading h1{font-size:clamp(27px,2.7vw,36px);font-weight:700;line-height:1.2;letter-spacing:-1px;margin:10px 0}
.commerce-body .page-heading p,.commerce-surface .page-heading p{font-size:13px;line-height:1.7;max-width:680px}
.commerce-body .page-heading .eyebrow,.commerce-surface .page-heading .eyebrow{font-size:10px;letter-spacing:1.7px}
.commerce-body :is(.panel,.metric-card,.plan-card,.integration-card),.commerce-surface :is(.panel,.metric-card,.plan-card,.integration-card){border-radius:var(--pd-radius);border-color:var(--pd-border);box-shadow:var(--pd-shadow);overflow-wrap:anywhere}
.commerce-body .panel-head,.commerce-surface .panel-head{padding:22px 24px;gap:16px;border-color:var(--pd-border)}
.commerce-body .panel-head h2,.commerce-surface .panel-head h2{font-size:16px;letter-spacing:-.2px;font-weight:650}
.commerce-body .panel-head p,.commerce-surface .panel-head p{font-size:12px;line-height:1.6;margin-top:5px}
.commerce-body .panel-body,.commerce-surface .panel-body{padding:24px}
.commerce-body .metric-card,.commerce-surface .metric-card{padding:23px 24px}
.commerce-body .metric-top,.commerce-surface .metric-top{font-size:12px;line-height:1.5}
.commerce-body .metric-value,.commerce-surface .metric-value{font-size:32px;line-height:1.2;font-weight:650;letter-spacing:-1px;font-variant-numeric:tabular-nums;margin:17px 0 10px}
.commerce-body .metric-bottom,.commerce-surface .metric-bottom{font-size:11px;line-height:1.6}
.commerce-body .metric-top .c-icon,.commerce-surface .metric-top .c-icon{width:18px;height:18px;opacity:.7}
.commerce-body .button,.commerce-surface .button{min-height:39px;padding:10px 14px;border-radius:9px;font-size:12px;font-weight:650;gap:8px;transition:background .16s,border-color .16s,box-shadow .16s}
.commerce-body .button.small,.commerce-surface .button.small{min-height:32px;padding:7px 11px;font-size:11px}
.commerce-body .button.primary:not(:disabled),.commerce-surface .button.primary:not(:disabled){box-shadow:0 2px 6px #00000010}
.commerce-body .button:focus-visible,.commerce-surface .button:focus-visible{outline:2px solid var(--pd-text);outline-offset:3px}
.commerce-body .form-field>label,.commerce-surface .form-field>label{font-size:12px;font-weight:650}
.commerce-body .form-field :is(input:not([type=checkbox]):not([type=radio]),select,textarea),.commerce-surface .form-field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-radius:9px;min-height:43px;font-size:13px;padding:11px 13px}
.commerce-body .field-note,.commerce-surface .field-note{font-size:11px;line-height:1.7}
.commerce-body .data-table th,.commerce-surface .data-table th{padding:14px 20px;font-size:10px;font-weight:650;letter-spacing:.3px;background:var(--pd-panel);border-color:var(--pd-border)}
.commerce-body .data-table td,.commerce-surface .data-table td{padding:17px 20px;font-size:12px;border-color:var(--pd-border);line-height:1.6}
.commerce-body .data-table tbody tr:hover,.commerce-surface .data-table tbody tr:hover{background:var(--pd-hover)}
.commerce-body .table-toolbar,.commerce-surface .table-toolbar{padding:18px 22px;gap:12px}
.commerce-body .search-input,.commerce-surface .search-input{min-height:40px;border-radius:9px;font-size:12px}
.commerce-body .badge,.commerce-surface .badge{border-radius:30px;padding:4px 10px;font-size:10px;font-weight:600}
.commerce-body .empty-state,.commerce-surface .empty-state{padding:50px 24px;min-height:240px}
.commerce-body .empty-state h3,.commerce-surface .empty-state h3{font-size:18px;letter-spacing:-.3px}
.commerce-body .empty-state p,.commerce-surface .empty-state p{font-size:13px;line-height:1.8;max-width:420px}
.commerce-body .empty-icon,.commerce-surface .empty-icon{width:52px;height:52px;border-radius:16px;margin-bottom:18px}
.commerce-body .plan-card,.commerce-surface .plan-card{padding:28px}
.commerce-body .plan-card h2,.commerce-surface .plan-card h2{font-size:21px;font-weight:650}
.commerce-body .plan-price,.commerce-surface .plan-price{letter-spacing:-1.8px;font-weight:650}
.commerce-body .plan-features,.commerce-surface .plan-features{font-size:13px;line-height:1.65}
.commerce-dialog{border-radius:20px;border-color:var(--pd-border);box-shadow:0 28px 90px #00000045;max-height:calc(100dvh - 48px)}
.commerce-dialog::backdrop{background:#0008;backdrop-filter:blur(5px)}
.user-menu-popover{border-radius:13px;box-shadow:0 16px 50px #0003;border-color:var(--pd-border)}
.toast{border-radius:12px;box-shadow:var(--pd-shadow)}
/* Login keeps the same fields and authentication flow. */
.auth-layout{padding:16px;gap:16px;background:var(--pd-bg);grid-template-columns:minmax(0,1.06fr) minmax(400px,.94fr)}
.auth-story{border:1px solid var(--pd-border);border-radius:22px;padding:36px 42px;min-height:calc(100dvh - 32px)}
.auth-story-content{padding:52px 0 25px;max-width:600px}
.auth-story h1{font-size:clamp(42px,4.3vw,66px);font-weight:650;letter-spacing:-2.4px}
.auth-story-content>p{font-size:15px;line-height:1.8;max-width:390px}
.auth-story .story-labels>span{font-size:10px;border-radius:30px;padding:7px 12px}
.auth-art{height:215px;opacity:.85}
.auth-panel{border-radius:22px;background:transparent!important;padding:55px 36px}
.auth-card{max-width:395px;margin:42px 0 26px}
.auth-card h2{font-size:32px;font-weight:700;letter-spacing:-1px}
.auth-mark{width:48px;height:48px;border-radius:14px;margin-bottom:26px;box-shadow:var(--pd-shadow)}
.auth-card .auth-description{font-size:14px;line-height:1.7;margin-bottom:28px}
.auth-card .form-field{margin-bottom:20px}
.auth-card .button.primary{min-height:47px;margin-top:10px;border-radius:10px;font-size:13px}
.auth-toplink{font-size:12px}
.auth-switch{font-size:12px;line-height:1.8;margin-top:26px}
.auth-footnote{font-size:11px;max-width:370px}
.mobile-navigation{border-radius:20px 20px 0 0;border-color:var(--pd-border)}
.mobile-navigation .nav-link{min-height:44px;font-size:13px;padding:12px;border-radius:9px}
@media(min-width:980px) and (max-width:1199px){
  :root{--sidebar:220px}.sidebar,.commerce-sidebar{width:220px;padding-inline:11px}.app-shell,.commerce-shell{margin-left:220px}
  .sidebar .nav-link,.sidebar .account-bridge-link,.commerce-nav>a{font-size:11px;padding-inline:10px}
  .app-shell>main,.commerce-shell>.commerce-main{padding:25px 24px 0}.topbar,.commerce-topbar{padding-inline:24px}
  .topbar .service-badge{display:none}.hero-content{padding:25px}.hero-content h1{font-size:31px}
}
@media(max-width:979px){
  :root{--sidebar:0px}.app-shell{margin-left:0}.sidebar{display:none}
  .commerce-sidebar{width:248px}.topbar,.commerce-topbar{height:64px;padding-inline:22px}
  .app-shell>main,.commerce-shell>.commerce-main{padding:24px 22px 0}
  .auth-layout{grid-template-columns:1fr 1fr}.auth-story{padding:30px}.auth-panel{padding-inline:24px}.auth-story h1{font-size:45px}
}
/* Administration keeps its sidebar until its existing 760 px drawer boundary. */
@media(min-width:760px) and (max-width:979px){
  .commerce-body{--sidebar:220px}
  .commerce-sidebar{width:220px;padding-inline:11px}
  .commerce-shell{margin-left:220px}
}
@media(max-width:759px){
  .commerce-shell{margin-left:0}
  .auth-layout{display:block;padding:0}.auth-story{display:none}.auth-panel{min-height:100dvh;border-radius:0;padding:24px}
  .auth-card{margin:40px 0 24px}.auth-card h2{font-size:30px}.auth-panel>.color-mode-toggle{position:static}
  .auth-toplink{top:31px;right:24px}.auth-footnote{padding-bottom:12px}
  .commerce-body .form-field :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
  .commerce-surface .form-field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}
}
@media(max-width:739px){
  .app-shell>main,.commerce-shell>.commerce-main{padding:20px 16px 0}
  .topbar,.commerce-topbar{padding:0 16px;gap:10px}.topbar-actions,.topbar-right{gap:8px}
  .topbar .service-badge{display:none}.topbar .help-button{padding:9px;font-size:11px}
  .studio-hero{height:auto;min-height:218px}.hero-content{padding:25px 22px}.hero-content h1{font-size:31px}.hero-art{opacity:.45}
  .hero-content>.eyebrow{font-size:8px;letter-spacing:1.1px}.hero-specs{font-size:8px;gap:11px}.hero-edition{display:none}
  .project-heading{margin:24px 0 16px}.project-heading h2{font-size:22px}.project-status{font-size:10px}
  .workflow-banner{padding:24px;min-height:188px}.workflow-content>h2{font-size:24px}
  .commerce-body .page-heading,.commerce-surface .page-heading{gap:18px;margin-bottom:22px}
  .commerce-body .panel-head,.commerce-surface .panel-head{padding:20px}
  .commerce-body .panel-body,.commerce-surface .panel-body{padding:20px}
  .commerce-body .metric-card,.commerce-surface .metric-card{padding:20px}
  .commerce-body .metric-value,.commerce-surface .metric-value{font-size:29px}
  .commerce-body .plan-card,.commerce-surface .plan-card{padding:24px}
  .commerce-dialog{border-radius:16px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
}
@media(max-width:379px){
  .app-shell>main,.commerce-shell>.commerce-main{padding-inline:12px}.topbar,.commerce-topbar{padding-inline:12px}
  .hero-content{padding:22px 19px}.hero-content h1{font-size:28px}.hero-content>.eyebrow{font-size:7px}
  .topbar .help-button{font-size:10px;gap:5px}.topbar .help-button>.icon{width:13px}
  .project-status{max-width:120px;font-size:9px}.auth-panel{padding-inline:20px}.auth-toplink{right:20px}
}
@media(prefers-reduced-motion:reduce){
  .sidebar .nav-link,.sidebar .account-bridge-link,.commerce-nav>a,.commerce-body .button,.commerce-surface .button{transition:none}
}
