/* AMPLIFY Studio shell: calm surfaces, clear hierarchy, task-first controls. */
:root{--studio-bg:#F3EBDD;--studio-surface:#FFFBF4;--studio-surface-2:#FFFFFF;--studio-line:#D8C7A8;--studio-text:#2A221C;--studio-muted:#6B5D53;--studio-accent:#B4561E;--studio-blue:#1E4D7B;--studio-green:#36612B;--studio-red:#9E2B2B;--studio-radius:16px}
body.studio-shell{background:var(--studio-bg);color:var(--studio-text)}
.studio-shell .amp-nav{background:var(--cream);border-bottom:1px solid var(--studio-line);backdrop-filter:none}
.studio-shell .amp-links a{border-radius:9px;color:var(--studio-muted)}
.studio-shell .amp-links a:hover,.studio-shell .amp-links a.active{background:var(--tan-soft);color:var(--studio-text);text-decoration:none}
.studio-shell .amp-links{justify-content:flex-start;gap:6px;min-width:0;overflow:visible}
.studio-shell .amp-links a{flex:0 0 auto}
.studio-shell .nav-more-trigger{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--studio-line);border-radius:9px;background:var(--cream);color:var(--studio-muted);font:inherit;cursor:pointer;white-space:nowrap}
.studio-shell .nav-more-trigger:hover,.studio-shell .nav-more-trigger[aria-expanded="true"]{color:var(--studio-text);background:var(--tan-soft)}
.studio-shell .nav-chevron{font-size:14px;color:var(--studio-accent)}
.studio-shell .nav-more-menu{position:absolute;top:calc(100% + 8px);right:120px;min-width:220px;padding:8px;background:var(--white);border:1px solid var(--studio-line);border-radius:12px;box-shadow:0 16px 40px rgba(42,34,28,.14);z-index:600}
.studio-shell .nav-more-menu a,.studio-shell .nav-menu-settings{display:flex;align-items:center;gap:9px;width:100%;padding:10px 11px;border:0;border-radius:8px;background:transparent;color:var(--studio-muted);font:inherit;text-align:left;cursor:pointer}
.studio-shell .nav-more-menu a:hover,.studio-shell .nav-menu-settings:hover{background:var(--tan-soft);color:var(--studio-text);text-decoration:none}
.studio-shell .nav-more-menu a.active{color:var(--studio-accent);background:var(--blue-soft)}
.studio-shell .nav-menu-label{padding:6px 11px 4px;color:var(--ink-mute);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}
.studio-shell .nav-menu-divider{height:1px;background:var(--studio-line);margin:6px 4px}
.studio-shell .dr-section-label{padding:8px 11px 3px;color:var(--ink-mute);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.studio-shell .project-dot{width:8px;height:8px;border-radius:50%;background:var(--studio-accent);box-shadow:0 0 0 3px rgba(30,77,123,.13);flex:0 0 auto}
.studio-shell .nav-project{display:inline-flex;align-items:center;gap:7px;margin-left:auto;color:var(--studio-muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap}
.studio-shell .nav-project select{min-width:150px;min-height:38px;padding:6px 28px 6px 10px;font-size:13px;font-weight:650;text-transform:none;letter-spacing:0}
.studio-shell .amp-nav{overflow:visible}.studio-shell .amp-links{flex:1 1 auto}.studio-shell .amp-links>a,.studio-shell .nav-more-trigger{white-space:nowrap}
.studio-shell .amp-links a.active:after{background:var(--studio-accent);height:3px}
.studio-shell .wrap{max-width:1440px;padding:30px 28px}
.studio-shell .card{background:var(--studio-surface);border:1px solid var(--studio-line);box-shadow:0 8px 24px rgba(42,34,28,.10);border-radius:var(--studio-radius)}
.studio-shell .btn{border-radius:10px;box-shadow:none;transform:none!important}
.studio-shell .btn:not(.ghost):not(.danger){background:var(--studio-accent);color:#fff}
.studio-shell .btn.ghost{background:var(--white);border:1px solid var(--tan);color:var(--studio-text)}
.studio-shell .btn:hover{filter:brightness(1.08)}
.studio-shell input,.studio-shell textarea,.studio-shell select{background:var(--white);border:1px solid var(--tan);color:var(--studio-text);border-radius:9px}
.studio-shell input:focus,.studio-shell textarea:focus,.studio-shell select:focus,.studio-shell button:focus-visible,.studio-shell a:focus-visible{outline:3px solid rgba(30,77,123,.55);outline-offset:2px}
.studio-shell .studio-skip{position:fixed;left:12px;top:-48px;z-index:1000;background:var(--studio-accent);color:#fff;padding:10px 14px;border-radius:8px;font-weight:700}.studio-shell .studio-skip:focus{top:12px}
.studio-demo{position:fixed;left:0;right:0;top:64px;z-index:390;padding:6px;text-align:center;background:var(--blue-soft);color:var(--blue-deep);font-size:12px;font-weight:700;letter-spacing:.02em}
.studio-shell:has(.studio-demo){padding-top:calc(var(--nav-h) + 28px)}
.studio-shell .studio-page{display:grid;gap:22px}.studio-shell .studio-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:24px}.studio-shell .studio-kicker{color:var(--studio-accent);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.studio-shell h1{font-size:clamp(28px,4vw,44px);letter-spacing:-.03em;margin:5px 0 4px}.studio-shell .studio-sub{color:var(--studio-muted);max-width:680px}
.studio-shell .studio-actions{display:flex;gap:10px;flex-wrap:wrap}.studio-shell .studio-actions .btn{min-height:44px}
.studio-shell .studio-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.studio-shell .studio-stat{padding:18px}.studio-shell .studio-stat .value{font-size:30px;font-weight:800}.studio-shell .studio-stat .label{color:var(--studio-muted);font-size:13px;margin-top:4px}.studio-shell .studio-stat .hint{color:var(--studio-blue);font-size:12px;margin-top:10px}
.studio-shell .studio-columns{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.8fr);gap:18px}.studio-shell .studio-panel{padding:20px}.studio-shell .studio-panel h2{font-size:19px;margin-bottom:4px}.studio-shell .studio-panel .panel-help{color:var(--studio-muted);font-size:13px;margin-bottom:16px}
.studio-shell .studio-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.studio-shell .studio-project-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.studio-shell .studio-project-card{display:block;padding:15px;border:1px solid var(--studio-line);border-radius:12px;background:var(--cream);color:var(--studio-text);transition:transform .15s ease,border-color .15s ease,background .15s ease}.studio-shell .studio-project-card:hover{transform:translateY(-2px);border-color:var(--tan-deep);background:var(--white);text-decoration:none}.studio-shell .project-card-top{display:flex;align-items:center;gap:9px}.studio-shell .project-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--burnt-soft);color:var(--studio-accent);font-weight:800}.studio-shell .project-card-name{font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio-shell .project-card-arrow{margin-left:auto;color:var(--studio-accent)}.studio-shell .project-card-next{margin-top:15px;font-weight:700;font-size:13px}.studio-shell .project-card-meta{margin-top:6px;color:var(--studio-muted);font-size:11px;line-height:1.4}
.studio-shell .move-card{display:grid;grid-template-columns:34px 1fr auto;gap:12px;align-items:start;padding:14px 0;border-top:1px solid var(--studio-line)}.studio-shell .move-card:first-child{border-top:0}.studio-shell .move-priority{width:28px;height:28px;border-radius:8px;background:var(--burnt-soft);color:var(--studio-accent);display:grid;place-items:center;font-weight:800;font-size:12px}.studio-shell .move-title{font-weight:750}.studio-shell .move-body{color:var(--studio-muted);font-size:13px;line-height:1.45;margin-top:4px}.studio-shell .move-source{color:var(--ink-mute);font-size:11px;margin-top:7px}.studio-shell .move-card .btn{white-space:nowrap}.studio-shell .upcoming-row{display:grid;grid-template-columns:72px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--studio-line)}.studio-shell .upcoming-date{font-variant-numeric:tabular-nums;color:var(--studio-blue);font-weight:700}.studio-shell .upcoming-hook{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio-shell .upcoming-meta{font-size:12px;color:var(--studio-muted);margin-top:3px}.studio-shell .status-dot{font-size:11px;color:var(--studio-muted)}
.studio-shell .empty-state{padding:28px 10px;text-align:center;color:var(--studio-muted)}.studio-shell .empty-state strong{display:block;color:var(--studio-text);margin-bottom:5px}
.cal-project-filter{display:inline-flex;align-items:center;gap:8px;color:var(--ink-dim);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.cal-project-filter select{min-width:190px;min-height:42px;padding:8px 34px 8px 12px;font-size:14px;font-weight:650;text-transform:none;letter-spacing:0}
.queue-project-filter{margin:0 0 16px;padding:10px 12px;border:1px solid var(--studio-line);border-radius:12px;background:var(--studio-surface);}
.guide-toolbar{display:flex;align-items:center;gap:18px}.guide-columns{align-items:start}.guide-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.guide-fields label,.guide-columns aside>label{display:grid;gap:6px;color:var(--studio-muted);font-size:13px;font-weight:700}.guide-fields label:nth-child(3),.guide-fields label:nth-child(4),.guide-fields label:nth-child(5),.guide-fields label:nth-child(6),.guide-fields label:nth-child(7),.guide-fields label:nth-child(8),.guide-fields label:nth-child(9),.guide-fields label:nth-child(11),.guide-fields label:nth-child(12){grid-column:1/-1}.guide-fields input,.guide-fields textarea,.guide-columns aside textarea{width:100%;padding:10px;font-size:14px;font-weight:400;resize:vertical}.guide-output{margin-top:16px;padding:16px;min-height:130px;border:1px solid var(--studio-line);border-radius:12px;background:var(--white)}.guide-result p{margin:10px 0;color:var(--studio-muted);line-height:1.5}.guide-result small{color:var(--ink-mute)}.guide-columns summary{cursor:pointer;color:var(--studio-accent);font-weight:700}
@media(max-width:650px){.guide-fields{grid-template-columns:1fr}.guide-fields label{grid-column:1!important}.guide-toolbar{align-items:flex-start;flex-direction:column}}
@media(max-width:900px){.studio-shell .studio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-shell .studio-columns{grid-template-columns:1fr}.studio-shell .studio-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:900px){.studio-shell .studio-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1380px) and (min-width:1201px){.studio-shell .nav-project{display:none}.studio-shell .amp-links a{padding-left:10px;padding-right:10px}.studio-shell .amp-links{gap:2px}}
@media(max-width:560px){.studio-shell .wrap{padding:22px 14px}.studio-shell .studio-grid{gap:9px}.studio-shell .studio-stat{padding:13px}.studio-shell .studio-stat .value{font-size:25px}.studio-shell .move-card{grid-template-columns:28px 1fr}.studio-shell .move-card .btn{grid-column:2;justify-self:start}.studio-shell .upcoming-row{grid-template-columns:62px 1fr}.studio-shell .upcoming-row .status-dot{grid-column:2}.studio-shell .studio-project-grid{grid-template-columns:1fr}.studio-shell .studio-section-head{flex-direction:column}}
@media(max-width:1200px){.studio-shell .nav-more-trigger,.studio-shell .nav-project{display:none}.studio-shell .nav-more-menu{display:none!important}}

/* Header sizing must include async account controls and long project names. */
.studio-shell .amp-nav{gap:12px;padding-inline:24px}
.studio-shell .amp-wordmark{flex:0 0 176px;font-size:20px;letter-spacing:.12em}
.studio-shell .amp-wordmark small{max-width:176px;overflow:hidden;text-overflow:ellipsis}
.studio-shell .amp-links{position:relative;flex:0 0 auto;align-items:center}
.studio-shell .amp-links>a{padding:10px 12px}
.studio-shell .nav-more-menu{top:calc(100% + 14px);right:0;width:250px;max-height:calc(100dvh - 100px);overflow:auto}
.studio-shell .nav-more-menu[hidden]{display:none!important}
.studio-shell .nav-more-menu .nav-sig{display:none}
.studio-shell .nav-project{flex:0 1 240px;min-width:0;max-width:240px;margin-left:auto}
.studio-shell .nav-project select{width:100%;min-width:0;text-overflow:ellipsis}
.studio-shell .amp-nav>.plan-pill{display:none}
.studio-shell .amp-cmdk-btn,.studio-shell .amp-gear,.studio-shell .amp-logout{flex-shrink:0}
.studio-shell .studio-demo{top:var(--nav-h)}
.studio-shell:has(.studio-demo) .cal2-bar{top:calc(var(--nav-h) + 28px)}
.studio-shell .upcoming-row{grid-template-columns:72px minmax(0,1fr) auto}
.studio-shell .upcoming-hook{color:var(--studio-text)}
@media(max-width:1380px) and (min-width:1201px){
 .studio-shell .nav-project{display:inline-flex;flex-basis:190px}
 .studio-shell .nav-project>span{display:none}
 .studio-shell .amp-logout span{display:none}
}
@media(max-width:1200px){
 .studio-shell .amp-nav{padding-inline:16px}
 .studio-shell .nav-project{display:none}
}
@media(max-width:560px){
 .studio-shell .amp-wordmark{flex-basis:160px}
 .studio-shell .upcoming-row{grid-template-columns:62px minmax(0,1fr)}
 .studio-shell .studio-demo{font-size:10px}
}

.studio-shell .studio-composer{width:min(1080px,96vw);max-width:1080px;padding:28px;max-height:92dvh;overflow:auto}
.composer-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;margin-top:20px}
.composer-grid label{display:block;margin:12px 0 6px;font-size:13px;font-weight:650}
.composer-grid input,.composer-grid textarea,.composer-grid select{width:100%;padding:10px;font:inherit}
.composer-grid aside{padding:18px;background:var(--studio-bg);border:1px solid var(--studio-line);border-radius:12px}
.composer-grid article{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:18px 0}
.composer-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.composer-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
#sc-message{margin-top:16px;white-space:pre-wrap}
@media(max-width:720px){.composer-grid{grid-template-columns:1fr}.studio-shell .studio-composer{padding:20px}}

.account-overview{padding:20px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:22px}
.account-overview>div{flex:1;min-width:220px}.account-overview p{margin-top:6px}
#account-check-result{flex-basis:100%}
.account-verdict{margin:16px 0;padding:14px;border:1px solid var(--studio-line);border-radius:10px;background:var(--studio-bg)}
.account-verdict p{font-size:13px;line-height:1.5;color:var(--studio-muted);margin-top:5px}
.account-details{border-top:1px solid var(--studio-line);padding:14px 0}
.account-details summary{cursor:pointer;font-weight:650;font-size:13px}
.account-details[open]>summary{margin-bottom:14px}
.studio-shell .wiz-grid{align-items:start}

.studio-shell .gs-cta{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;text-align:left;padding:16px}
.studio-shell .gs-cta-main{grid-column:1;font-size:14px;line-height:1.4}
.studio-shell .gs-cta-sub{grid-column:1;font-size:12px;line-height:1.5}
.studio-shell .gs-cta-go{grid-column:2;grid-row:1/3;align-self:center}

/* Persistent task navigation. Top bar contains only location and account tools. */
.studio-sidebar{display:none}
.studio-shell .studio-location{font-size:15px;font-weight:700;color:var(--studio-text);margin-right:auto}
.studio-shell .amp-nav .amp-links{display:none!important}
.studio-shell .amp-nav .amp-gear{display:none!important}
.studio-shell .amp-nav .amp-wordmark .wm-sig{display:none}
@media(min-width:1101px){
 body.studio-shell{padding-left:248px}
 .studio-sidebar{position:fixed;inset:0 auto 0 0;width:248px;z-index:410;display:flex;flex-direction:column;gap:3px;padding:26px 16px 16px;background:var(--sand-2);border-right:1px solid var(--tan);overflow:auto}
 .sidebar-brand{display:block;padding:0 12px 22px;color:var(--maroon);font-size:23px;font-weight:800;letter-spacing:.09em}
 .sidebar-brand span{display:block;font-size:9px;letter-spacing:.18em;margin-top:6px;color:var(--ink-mute)}
 .studio-sidebar>a:not(.sidebar-brand),.sidebar-footer>a,.sidebar-footer>button{display:flex;align-items:center;gap:12px;padding:11px 12px;min-height:44px;color:var(--ink-dim-2);font-size:14px;font-weight:550;border:0;background:transparent;border-radius:8px;text-decoration:none;white-space:normal}
 .studio-sidebar>a:hover,.sidebar-footer>a:hover,.sidebar-footer>button:hover{background:var(--tan-soft);color:var(--ink-2)}
 .studio-sidebar>a.active{background:var(--blue-soft);color:var(--ink-2);box-shadow:inset 3px 0 var(--burnt-btn)}
 .sidebar-section{font-size:10px;font-weight:750;letter-spacing:.12em;color:var(--ink-mute);padding:22px 12px 8px}
 .sidebar-footer{margin-top:auto;padding-top:24px;border-top:1px solid var(--tan)}
 .sidebar-footer>button{width:100%;cursor:pointer}
 .studio-shell .sidebar-project-slot .nav-project{display:flex;flex-direction:column;align-items:stretch;width:100%;max-width:none;margin:0;padding:12px;background:var(--white);border:1px solid var(--tan);border-radius:10px;gap:8px;flex:none}
 .studio-shell .sidebar-project-slot .nav-project>span{display:block;font-size:10px}
 .studio-shell .sidebar-project-slot select{width:100%;min-width:0;font-size:13px}
 .studio-shell .amp-nav{left:248px;padding-inline:28px;gap:12px}
 .studio-shell .amp-nav>.amp-wordmark,.studio-shell .amp-nav>.amp-burger{display:none!important}
 .studio-shell .amp-nav>.amp-logout{display:inline-flex!important}
 .studio-shell .amp-logout span{display:inline}
 .studio-shell .studio-demo{left:248px}
 .studio-shell .studio-columns{grid-template-columns:minmax(0,1.35fr) minmax(280px,.8fr)}
 .studio-shell .studio-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1100px){
 .studio-shell .amp-nav{padding-inline:16px}
 .studio-shell .amp-nav>.amp-wordmark{flex-basis:138px;font-size:18px}
 .studio-shell .amp-nav .amp-wordmark small{font-size:8px;max-width:138px}
 .studio-shell .amp-nav>.amp-burger{display:inline-flex!important}
 .studio-shell .studio-location{display:none}
}
/* V23: the bottom tab bar is back on phones (≤820px portrait, app.css gates
   it); tablets and landscape phones between 821–1100px keep the burger. */
@media(max-width:1100px) and (min-width:821px),(max-width:1100px) and (orientation:landscape){
 .studio-shell .amp-tabbar{display:none!important}
 body.studio-shell{padding-bottom:20px}
}
@media(min-width:1101px) and (max-width:1280px){
 .studio-shell .studio-columns{grid-template-columns:1fr}
 .studio-shell .studio-hero{align-items:flex-start;flex-direction:column}
}
/* ---------- Set Up Accounts (2026-09-24): first sidebar entry + Today banner ---------- */
.studio-sidebar>a.sidebar-setup{margin:0 0 6px;color:var(--maroon);background:linear-gradient(120deg,rgba(200,99,43,.16),rgba(123,45,58,.14));border:1px solid rgba(200,99,43,.32);box-shadow:0 0 18px rgba(200,99,43,.10)}
.studio-sidebar>a.sidebar-setup:hover{color:var(--ink-2);background:linear-gradient(120deg,rgba(200,99,43,.26),rgba(123,45,58,.22))}
.studio-sidebar>a.sidebar-setup.active{box-shadow:inset 3px 0 var(--burnt-btn),0 0 22px rgba(200,99,43,.18)}
.setup-banner{display:flex;align-items:center;gap:14px;padding:16px 20px;border-radius:16px;text-decoration:none;color:var(--studio-text,#2A221C);
 background:linear-gradient(115deg,rgba(200,99,43,.20),rgba(123,45,58,.20) 60%,rgba(30,77,123,.14));border:1px solid rgba(200,99,43,.42);
 box-shadow:0 0 0 1px rgba(200,99,43,.08) inset,0 10px 30px rgba(200,99,43,.10);transition:transform .18s ease,box-shadow .18s ease}
.setup-banner[hidden]{display:none}
.setup-banner:hover{text-decoration:none;transform:translateY(-2px);box-shadow:0 0 0 1px rgba(200,99,43,.18) inset,0 14px 36px rgba(200,99,43,.18)}
.setup-banner:focus-visible{outline:2px solid var(--burnt-btn);outline-offset:3px}
.setup-banner-ico{display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;border-radius:12px;background:linear-gradient(135deg,var(--burnt-btn),var(--maroon));color:#fff;font-weight:900;box-shadow:0 0 16px rgba(200,99,43,.45)}
.setup-banner-text{flex:1;min-width:0;font-size:15px}
.setup-banner-text b{font-size:20px;color:var(--maroon)}
.setup-banner-cta{flex:0 0 auto;font-weight:800;color:#fff;background:var(--burnt-btn);border-radius:10px;padding:9px 14px;white-space:nowrap}
@media(max-width:560px){.setup-banner{flex-wrap:wrap}.setup-banner-cta{width:100%;text-align:center}}
@media(prefers-reduced-motion:reduce){.setup-banner{transition:none}.setup-banner:hover{transform:none}}

/* ==========================================================================
   V23 (2026-09-27) — BRAND WORKSPACE SHELL
   --brand / --brand2 are set on <html> by ampCtxApply() from the current
   brand's palette (luminance-guarded: always luminous enough to glow on the
   navy chrome). No brand (portfolio) → the house gold/violet below.
   ========================================================================== */
:root{--brand:#1E4D7B;--brand2:#7B2D3A;--brand-rgb:30,77,123;--brand2-rgb:123,45,58;--brand-ink:#fff;--brand-deep:#163A5C}
/* pages with their own brand <select> hide it while a brand is set */
html.amp-has-brand .amp-local-brand-picker{display:none!important}

/* ---- avatars: logo, or initial on the brand's own colours ---- */
.amp-av{position:relative;display:inline-grid;place-items:center;flex:0 0 auto;overflow:hidden;border-radius:30%;
 background:linear-gradient(135deg,var(--av1,var(--brand)),var(--av2,var(--brand2)));color:var(--avi,var(--brand-ink));
 font-weight:900;letter-spacing:0;line-height:1;
 box-shadow:0 0 0 1px rgba(42,34,28,.14) inset,0 0 16px rgba(var(--avr,var(--brand-rgb)),.38)}
.amp-av b{font-weight:900}
.amp-av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--white)}
.amp-av-all{--av1:#1E4D7B;--av2:#7B2D3A;--avi:#fff;--avr:30,77,123}
.amp-av-all svg{stroke-width:2.2}
.amp-av-new{background:rgba(42,34,28,.04);color:var(--brand);border:1px dashed rgba(var(--brand-rgb),.6);box-shadow:none}

/* ---- the switcher button ---- */
.amp-bs-btn{display:flex;align-items:center;gap:11px;min-width:0;cursor:pointer;font:inherit;text-align:left;color:var(--studio-text,#2A221C);
 border:1px solid rgba(var(--brand-rgb),.38);border-radius:14px;
 background:linear-gradient(135deg,rgba(var(--brand-rgb),.18),rgba(var(--brand2-rgb),.08) 60%,rgba(42,34,28,.02));
 box-shadow:0 1px 0 rgba(42,34,28,.06) inset,0 10px 28px rgba(var(--brand-rgb),.12);
 transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
.amp-bs-btn:hover{transform:translateY(-1px);border-color:rgba(var(--brand-rgb),.6);
 box-shadow:0 1px 0 rgba(42,34,28,.08) inset,0 14px 34px rgba(var(--brand-rgb),.2),0 0 0 3px rgba(var(--brand-rgb),.08)}
.amp-bs-btn[aria-expanded="true"]{border-color:rgba(var(--brand-rgb),.75);box-shadow:0 0 0 3px rgba(var(--brand-rgb),.16),0 14px 34px rgba(var(--brand-rgb),.22)}
.amp-bs-btn:focus-visible{outline:3px solid rgba(var(--brand-rgb),.7);outline-offset:2px}
.amp-bs-txt{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}
.amp-bs-txt small{font-size:9.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:rgba(var(--brand-rgb),.95);white-space:nowrap}
.amp-bs-txt b{font-size:15px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink-2)}
.amp-bs-chev{display:inline-flex;color:rgba(42,34,28,.7);transition:transform .2s ease}
.amp-bs-btn[aria-expanded="true"] .amp-bs-chev{transform:rotate(180deg);color:var(--brand)}
.sidebar-bs-slot{padding:0 0 6px}
.sidebar-bs-slot .amp-bs-btn{width:100%;padding:10px 11px}
.sidebar-bs-slot .amp-bs-txt b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.2}
.amp-nav .amp-bs-top{display:none}

/* ---- the popover ---- */
.amp-bs-pop{position:fixed;z-index:700;display:flex;flex-direction:column;gap:2px;overflow:auto;padding:10px;
 border-radius:18px;border:1px solid rgba(42,34,28,.1);
 background:radial-gradient(420px 180px at 0 0,rgba(var(--brand-rgb),.16),transparent 70%),linear-gradient(165deg,var(--cream),var(--white));
 box-shadow:0 24px 60px rgba(42,34,28,.18),0 0 0 1px rgba(var(--brand-rgb),.12),0 0 40px rgba(var(--brand-rgb),.12);
 opacity:0;transform:translateY(-6px) scale(.98);transform-origin:top left;transition:opacity .16s ease,transform .18s cubic-bezier(.2,.8,.25,1)}
.amp-bs-pop.open{opacity:1;transform:none}
.amp-bs-pop[hidden]{display:none!important}
.amp-bs-head{display:flex;flex-direction:column;gap:3px;padding:6px 8px 10px}
.amp-bs-head b{font-size:14px;color:var(--ink-2)}
.amp-bs-head span{font-size:12px;line-height:1.4;color:var(--studio-muted,#6B5D53)}
.amp-bs-list{display:flex;flex-direction:column;gap:2px}
.amp-bs-item{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:8px 10px;border:1px solid transparent;border-radius:12px;
 background:transparent;color:var(--studio-text,#2A221C);font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer;text-decoration:none;
 transition:background .15s ease,border-color .15s ease}
.amp-bs-item:hover,.amp-bs-item:focus-visible{background:rgba(42,34,28,.06);text-decoration:none;outline:none;border-color:rgba(42,34,28,.08)}
.amp-bs-item.on{background:linear-gradient(90deg,rgba(var(--brand-rgb),.2),rgba(var(--brand2-rgb),.06));border-color:rgba(var(--brand-rgb),.35)}
.amp-bs-iname{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.amp-bs-iname small{font-size:11.5px;font-weight:500;color:var(--studio-muted,#6B5D53);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.amp-bs-chip{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:3px 7px;border-radius:999px;
 color:var(--amber,#ffb347);background:rgba(184,134,11,.12);border:1px solid rgba(184,134,11,.35)}
.amp-bs-tick{display:inline-flex;color:var(--brand);filter:drop-shadow(0 0 6px rgba(var(--brand-rgb),.6))}
.amp-bs-div{height:1px;margin:8px 4px;background:linear-gradient(90deg,transparent,rgba(42,34,28,.12),transparent)}
.amp-bs-new{color:var(--brand)}
.amp-bs-new:hover{background:rgba(var(--brand-rgb),.08)}
.amp-bs-empty{padding:14px 10px;color:var(--studio-muted,#6B5D53);font-size:13px}

/* ---- sidebar in brand colours ---- */
@media(min-width:1101px){
 .studio-sidebar{background:radial-gradient(260px 240px at 0 0,rgba(var(--brand-rgb),.13),transparent 70%),linear-gradient(180deg,var(--sand-2),var(--sand))}
 .studio-sidebar::after{content:'';position:fixed;top:0;bottom:0;left:247px;width:1px;pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(var(--brand-rgb),.65) 18%,rgba(var(--brand2-rgb),.45) 60%,transparent);
  box-shadow:0 0 14px rgba(var(--brand-rgb),.45)}
 .sidebar-brand{padding-bottom:16px;color:var(--maroon)}
 .sidebar-brand span{color:var(--ink-mute)}
 .studio-sidebar .sidebar-section{padding-top:16px}
 .studio-sidebar>a.sidebar-link .ico,.studio-sidebar>a.nav-admin .ico{display:inline-flex;transition:color .15s ease,filter .15s ease}
 .studio-sidebar>a.active{background:linear-gradient(90deg,rgba(var(--brand-rgb),.24),rgba(var(--brand2-rgb),.07) 70%,transparent);color:var(--ink-2);
  box-shadow:inset 3px 0 var(--brand),0 0 24px rgba(var(--brand-rgb),.1)}
 .studio-sidebar>a.active .ico{color:var(--brand);filter:drop-shadow(0 0 6px rgba(var(--brand-rgb),.7))}
 .studio-sidebar>a:hover .ico{color:var(--brand)}
 .studio-sidebar>a.needs-brand{opacity:.78}
 .studio-sidebar>a.needs-brand:hover::after{content:'pick a brand →';margin-left:auto;font-size:10.5px;font-weight:700;color:var(--brand);white-space:nowrap}
 /* operator links (superadmin) — calm violet, never louder than the brand */
 .studio-sidebar>a.sidebar-setup,.studio-sidebar>a.sidebar-admin{margin:0;color:var(--maroon);background:transparent;border:0;box-shadow:none}
 .studio-sidebar>a.sidebar-setup:hover,.studio-sidebar>a.sidebar-admin:hover{background:rgba(123,45,58,.12);color:var(--ink-2)}
 .studio-sidebar>a.sidebar-setup.active,.studio-sidebar>a.sidebar-admin.active{background:linear-gradient(90deg,rgba(123,45,58,.24),transparent);box-shadow:inset 3px 0 var(--maroon);color:var(--ink-2)}
 .studio-sidebar .sidebar-ops-label{color:var(--ink-mute)}
}

/* ---- top bar: "Brand / Page", brand hairline ---- */
.studio-shell .amp-nav::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;pointer-events:none;
 background:linear-gradient(90deg,transparent,rgba(var(--brand-rgb),.55) 25%,rgba(var(--brand2-rgb),.4) 70%,transparent)}
.studio-shell .studio-location{align-items:baseline;gap:9px;min-width:0;white-space:nowrap}
@media(min-width:1101px){.studio-shell .studio-location{display:flex}}
.studio-shell .studio-location .loc-brand{font-weight:800;background:linear-gradient(100deg,var(--brand),var(--brand2));
 -webkit-background-clip:text;background-clip:text;color:transparent;overflow:hidden;text-overflow:ellipsis;max-width:40vw}
.studio-shell .studio-location .loc-sep{color:rgba(42,34,28,.3);font-weight:400}
.studio-shell .studio-location .loc-page{color:var(--studio-text,#2A221C)}

/* ≤1100px: compact switcher takes the top-left; the AMPLIFY wordmark steps aside */
@media(max-width:1100px){
 .studio-shell .amp-nav>.amp-wordmark{display:none!important}
 .amp-nav .amp-bs-top{display:flex;flex:0 1 auto;max-width:calc(100vw - 132px);height:46px;padding:6px 10px 6px 7px;gap:9px;margin-right:auto;border-radius:13px}
 .amp-nav .amp-bs-top .amp-bs-txt small{font-size:8.5px;letter-spacing:.12em}
 .amp-nav .amp-bs-top .amp-bs-txt b{font-size:14px}
}
@media(max-width:820px) and (orientation:portrait){
 .amp-nav .amp-bs-top{max-width:calc(100vw - 88px)}
 /* the tab bar's More opens the drawer — no second burger on phones */
 .studio-shell .amp-nav>.amp-burger{display:none!important}
}

/* ---- drawer: brand card + brand-coloured active link ---- */
.dr-brand{display:flex;align-items:center;gap:12px;flex:0 0 auto;margin:0 0 10px;padding:12px;border-radius:16px;
 border:1px solid rgba(var(--brand-rgb),.35);
 background:linear-gradient(135deg,rgba(var(--brand-rgb),.2),rgba(var(--brand2-rgb),.08) 65%,rgba(42,34,28,.02));
 box-shadow:0 10px 28px rgba(var(--brand-rgb),.12)}
.dr-brand-txt{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}
.dr-brand-txt small{font-size:9.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--brand)}
.dr-brand-txt b{font-size:16px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dr-switch{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border-radius:999px;cursor:pointer;font:inherit;font-size:12.5px;font-weight:750;
 color:var(--brand-ink);background:linear-gradient(135deg,var(--brand),var(--brand2));border:0;box-shadow:0 0 16px rgba(var(--brand-rgb),.4)}
.studio-shell .dr-link.active{color:var(--ink-2);background:linear-gradient(90deg,rgba(var(--brand-rgb),.22),rgba(var(--brand2-rgb),.06));border-color:rgba(var(--brand-rgb),.4);
 box-shadow:inset 3px 0 var(--brand)}
.studio-shell .dr-link.active .ico{color:var(--brand);filter:drop-shadow(0 0 6px rgba(var(--brand-rgb),.6))}
.studio-shell .dr-link.needs-brand{opacity:.8}

/* ---- phone tab bar: brand glow indicator, Create as the hero tab ---- */
@media(max-width:820px) and (orientation:portrait){
 .studio-shell .amp-tabbar{background:linear-gradient(180deg,rgba(255,251,244,.96),var(--cream));border-top:1px solid rgba(var(--brand-rgb),.22)}
 .studio-shell .amp-tabbar::before{content:'';position:absolute;left:0;right:0;top:-1px;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(var(--brand-rgb),.7),rgba(var(--brand2-rgb),.5),transparent)}
 .studio-shell .amp-tabbar a,.studio-shell .amp-tabbar .tab-more{position:relative;min-height:54px;justify-content:center}
 .studio-shell .amp-tabbar a.active,.studio-shell .amp-tabbar .tab-more.active{color:var(--brand)}
 .studio-shell .amp-tabbar a.active::before{content:'';position:absolute;top:-6px;left:26%;right:26%;height:3px;border-radius:0 0 4px 4px;
  background:linear-gradient(90deg,var(--brand),var(--brand2));box-shadow:0 0 12px rgba(var(--brand-rgb),.8)}
 .studio-shell .amp-tabbar a.active .ico{filter:drop-shadow(0 0 7px rgba(var(--brand-rgb),.7))}
 .studio-shell .amp-tabbar .ico{display:inline-flex;align-items:center;justify-content:center}
 .studio-shell .amp-tabbar a[data-amp-extra="create=1"] .ico{width:34px;height:28px;border-radius:10px;color:var(--brand-ink);
  background:linear-gradient(135deg,var(--brand),var(--brand2));box-shadow:0 0 14px rgba(var(--brand-rgb),.5)}
 .studio-shell .amp-tabbar a[data-amp-extra="create=1"] .ico svg{width:19px;height:19px}
}
/* the ≤340px icon-only rule in app.css hides every span — keep the icon */
@media(max-width:340px) and (orientation:portrait){
 .studio-shell .amp-tabbar a .ico,.studio-shell .amp-tabbar .tab-more .ico{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
 .studio-shell .amp-tabbar a[data-amp-extra="create=1"] .ico{width:34px;height:28px}
}
@media(prefers-reduced-motion:reduce){
 .amp-bs-btn,.amp-bs-pop,.amp-bs-chev{transition:none}
 .amp-bs-btn:hover{transform:none}
}
