:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#191c1e;background:#f7f9fb;font-synthesis:none;--blue:#003ec7;--muted:#565e74;--line:#e0e3eb}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input{font:inherit}button,a,input{outline-offset:4px}button{border:1px solid #c3c5d9;border-radius:9px;background:white;color:#26334a;padding:11px 16px;cursor:pointer;font-weight:600}button:hover{background:#f2f4f6}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--blue);border-color:var(--blue);color:white}.primary:hover{background:#0036ad}.full{width:100%}.topbar{height:88px;padding:0 5%;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:white}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#191c1e;font-size:21px;font-weight:750;letter-spacing:-.5px}.brand-mark{background:var(--blue);color:white;border-radius:10px;width:35px;height:35px;display:grid;place-items:center;font-size:23px}.header-actions{display:flex;align-items:center;gap:15px}.pilot-label,.badge{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--blue);font-weight:700}.badge{padding:8px 14px;background:#e7eeff;border-radius:20px}main{max-width:1240px;margin:auto;padding:28px 40px 60px}.notice{font-size:14px;color:var(--muted);min-height:22px;margin:0 0 25px}.notice.error{color:#ba1a1a}.welcome{display:grid;grid-template-columns:1.1fr 1fr;gap:9%;align-items:center;min-height:590px}.eyebrow,.step{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--blue);margin:0 0 20px}h1{font-size:48px;line-height:1.12;letter-spacing:-1.7px;margin:0 0 24px;font-weight:750}h2{font-size:23px;letter-spacing:-.5px;margin:0 0 16px}h3{font-size:18px;letter-spacing:-.35px;margin:18px 0 10px}.lead{color:var(--muted);font-size:18px;line-height:1.7;max-width:460px;margin:0}.scope{display:flex;flex-wrap:wrap;gap:8px;margin:30px 0}.scope span{background:#eceff5;border-radius:6px;padding:8px 10px;font-size:12px;color:#434656}.subtle{font-size:14px;line-height:1.7;color:var(--muted)}.fine{font-size:12px;line-height:1.7;color:var(--muted);margin:16px 0 0}.login-card{background:white;border:1px solid var(--line);border-radius:16px;padding:38px;box-shadow:0 14px 50px #23354f07}.login-card h2{margin-bottom:28px}.login-card .eyebrow{font-size:10px}label{font-size:13px;display:block;font-weight:600;margin:0 0 9px}input{width:100%;padding:13px;border:1px solid #b9bfd0;border-radius:8px;background:white;margin-bottom:18px;color:#191c1e}#code{letter-spacing:.45em;font-size:24px}.divider{display:flex;align-items:center;gap:15px;font-size:12px;color:var(--muted);margin:22px 0}.divider:before,.divider:after{content:"";height:1px;background:var(--line);flex:1}.text-button{border:0;padding:14px 0;background:transparent;color:var(--blue);font-size:12px}.workspace-heading{display:flex;justify-content:space-between;align-items:flex-start;margin:15px 0 35px}.workspace-heading h1{font-size:36px;margin-bottom:12px}.workspace-heading .lead{max-width:none;font-size:16px}.workspace-heading .eyebrow{margin-bottom:12px}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:28px}.step{font-size:10px;margin-bottom:16px}.store-list{display:grid;gap:10px;margin-top:20px}.store{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:9px;padding:14px}.store.selected{border-color:#8eaef8;background:#f5f8ff}.store strong{display:block;font-size:14px;overflow-wrap:anywhere}.store small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.store button{font-size:12px;padding:8px 12px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:40px 0 20px}.section-heading .eyebrow{font-size:10px;margin-bottom:10px}.section-heading h2{margin:0}.tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}.tiles article{background:white;border:1px solid var(--line);border-radius:11px;padding:21px 18px;display:flex;flex-direction:column}.tile-number{font-size:11px;color:var(--blue);font-weight:700}.tiles p{font-size:13px;line-height:1.65;color:var(--muted);margin:0 0 24px}.coming{font-size:10px;text-transform:uppercase;letter-spacing:.045em;color:#656d7c;margin-top:auto;padding-top:15px;border-top:1px solid var(--line)}dl{margin:20px 0 0}dl div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #eef0f5;padding:10px 0;font-size:13px}dt{color:var(--muted)}dd{margin:0;text-align:right}footer{max-width:1160px;margin:auto;border-top:1px solid var(--line);padding:24px 0;color:#737688;font-size:12px}footer span{padding:0 12px}.page-key-dialog{max-width:850px;width:calc(100% - 32px);max-height:85vh;border:1px solid var(--line);border-radius:14px;padding:25px;color:#191c1e}.page-key-dialog::backdrop{background:#19233375}.page-key-head{display:flex;justify-content:space-between;gap:20px}.page-key-head p{color:var(--muted);font-size:14px;line-height:1.6}.page-key-close{align-self:flex-start}.page-key-list{padding-left:20px;font-size:14px;line-height:1.7}.page-key-list li{margin-bottom:12px}.page-key-section h3{color:var(--blue)}@media(max-width:1050px){.tiles{grid-template-columns:repeat(3,1fr)}.welcome{gap:35px}h1{font-size:40px}.login-card{padding:28px}}@media(max-width:700px){.topbar{height:72px;padding:0 20px}.brand{font-size:18px}.pilot-label{display:none}.header-actions{gap:8px}.header-actions button{padding:8px 12px}main{padding:24px 20px 40px}.welcome,.setup-grid{grid-template-columns:1fr}.welcome{min-height:0;gap:32px}.welcome-copy h1{font-size:38px}.welcome-copy .scope{margin:20px 0}.welcome-copy .subtle{display:none}.login-card{padding:26px}.tiles{grid-template-columns:1fr 1fr}.workspace-heading h1{font-size:30px}.section-heading{align-items:flex-start;flex-direction:column;gap:10px}.panel{padding:22px}footer{margin:0 20px;line-height:1.7}.notice{margin-bottom:20px}}@media(max-width:420px){.tiles{grid-template-columns:1fr}.store{align-items:flex-start}.brand-mark{display:none}}
.store.shopify-setup{flex-wrap:wrap}.shopify-consent{display:flex;align-items:flex-start;gap:8px;max-width:400px;line-height:1.5;margin:12px 0}.shopify-consent input{width:18px;height:18px;flex:none;padding:0;margin:1px 0 0;accent-color:var(--blue)}

/* Store choices stay available across the workspace without repeating setup. */
.topbar{height:auto;min-height:88px;gap:16px;flex-wrap:wrap;padding-top:16px;padding-bottom:16px}
.topbar .brand{flex-shrink:0;max-width:100%}
.topbar .header-actions{flex-wrap:wrap;min-width:0;max-width:100%}
.topbar .header-actions>a[data-store-navigation-link]{font-size:13px;color:var(--blue);text-decoration:none;white-space:nowrap}
.topbar .header-actions>a[data-store-navigation-link]:hover{text-decoration:underline}
.store-navigation{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%;font-size:12px}
.store-navigation:empty{display:none}
.store-navigation label{display:inline-flex;align-items:center;gap:7px;margin:0;font-size:12px;min-width:0}
.store-navigation select{font:inherit;color:#26334a;background:white;border:1px solid #b9bfd0;border-radius:6px;padding:7px 9px;min-height:34px;width:240px;min-width:0;max-width:100%;outline-offset:4px}
.store-navigation a{font-size:13px;color:var(--blue);text-decoration:none;white-space:nowrap}
.store-navigation a:hover{text-decoration:underline}
@media(max-width:700px){.topbar{min-height:72px;padding-top:12px;padding-bottom:12px;gap:12px}.topbar .header-actions{flex-basis:100%;gap:8px 12px}.store-navigation{flex-basis:100%}.store-navigation select{width:240px;max-width:calc(100vw - 100px)}}

/* Commercial tiled homepage */
body[data-page-key="commercial-home.html"]{padding-bottom:48px;background:#f7f9fb;color:#191c1e}
.home-skip{position:absolute;top:8px;left:16px;z-index:100;padding:10px 14px;border:1px solid #003ec7;border-radius:4px;background:#fff;color:#003ec7;transform:translateY(-180%)}
.home-skip:focus{transform:translateY(0)}
.home-header.topbar{display:block;padding:0;background:#f3f2ed;border-bottom:1px solid #e0e3e5}
.home-header-inner{width:min(1240px,calc(100% - 48px));min-height:104px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0}
.home-header .home-brand{display:block;flex-shrink:0;color:#102549;font-size:29px;letter-spacing:-1.1px}
.home-brand span{display:block;margin-top:4px;color:#58677c;font-size:11px;font-weight:600;letter-spacing:.065em;text-transform:uppercase}
.home-header .header-actions{justify-content:flex-end;gap:12px 18px}
.home-header .header-actions>a[data-store-navigation-link]{font-size:12px}
.home-header .header-actions button{min-height:36px;border-radius:6px;padding:8px 12px;font-size:12px;background:rgba(255,255,255,.8)}
.home-header .store-navigation select{width:224px;background:rgba(255,255,255,.8)}
.home-page{width:min(1240px,calc(100% - 48px));max-width:none;margin:auto;padding:0}
.home-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.46fr);gap:64px;align-items:end;padding:56px 0 44px;border-bottom:1px solid #dfe4ea}
.home-eyebrow{margin:0 0 14px;color:#006b91;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;line-height:1.5}
.home-hero h1{max-width:750px;margin:0;color:#102549;font-size:clamp(36px,4.8vw,56px);font-weight:750;line-height:1.06;letter-spacing:-.045em}
.home-intro{max-width:630px;margin:20px 0 0;color:#58677c;font-size:16px;line-height:1.65}
.home-workspace{min-width:0;padding:18px 0 2px;border-top:3px solid #08a8bd}
.home-workspace-label{margin:0 0 10px;color:#69778a;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.home-account{margin:0 0 7px;color:#102549;font-size:15px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.home-store{margin:0;color:#465469;font-size:13px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.home-workspace-note{margin:13px 0 0;color:#69778a;font-size:12px;line-height:1.6}
.home-status{min-height:20px;margin:18px 0 0;color:#58677c;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.home-status:empty{min-height:0;margin-top:0}
.home-data-last-success{margin:4px 0 0;color:#69778a;font-size:12px;line-height:1.5}
.home-data-last-success:empty{display:none}
.home-status.error{color:#a82723}
.home-recovery{margin-top:24px;padding:24px;border:1px solid #dfe4ea;border-radius:8px;background:#fff}
.home-recovery h2{margin:0 0 10px;color:#15294b;font-size:20px;line-height:1.4}
.home-recovery p{margin:0 0 18px;color:#58677c;font-size:14px;line-height:1.6}
.home-recovery-link{display:inline-flex;align-items:center;gap:8px;color:#0052b8;font-size:13px;font-weight:700;text-decoration:none}
.home-recovery-link:hover{text-decoration:underline}
.home-section{padding-top:36px}
.home-section-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:0 0 18px}
.home-section-kicker{margin:0 0 7px;color:#68768a;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;line-height:1.5}
.home-section-heading h2{margin:0;color:#15294b;font-size:23px;font-weight:700;letter-spacing:-.02em;line-height:1.3}
.home-section-note{max-width:430px;margin:0;color:#69778a;font-size:12px;line-height:1.6;text-align:right}
.home-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.home-tool-grid-planning{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-tool{--home-accent:#087d96;--home-icon-bg:#e8f7f8;position:relative;display:flex;flex-direction:column;min-height:222px;overflow:hidden;padding:22px;background:#fff;border:1px solid #dfe4eb;border-radius:8px;color:inherit;text-decoration:none;box-shadow:0 1px 2px rgba(15,35,65,.025);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.home-tool::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--home-accent);opacity:0;transition:opacity .16s ease}
.home-tool:hover{transform:translateY(-2px);border-color:#b9c6d6;box-shadow:0 10px 24px rgba(22,45,78,.08);color:inherit}
.home-tool:hover::before{opacity:1}
.home-tool:focus-visible{outline:3px solid #0052b8;outline-offset:3px;border-color:#0052b8}
.home-tool-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.home-tool-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:7px;background:var(--home-icon-bg);color:var(--home-accent);flex-shrink:0}
.home-tool-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-tool-meta{color:#68768a;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;text-align:right;line-height:1.5}
.home-tool h3{margin:0 0 9px;color:#182b4c;font-size:18px;font-weight:700;letter-spacing:-.01em;line-height:1.3}
.home-tool p{margin:0 0 22px;color:#58677c;font-size:13px;line-height:1.6}
.home-tool p.home-tool-status{padding-top:10px;border-top:1px solid #e4e9ef;margin:0 0 16px;font-size:12px;color:#41536b}
.home-tool-action{display:flex;align-items:center;gap:7px;margin-top:auto;color:#0052b8;font-size:12px;font-weight:700;line-height:1.5}
.home-tool-action span{transition:transform .16s ease}
.home-tool:hover .home-tool-action span{transform:translateX(3px)}
.home-tool-violet{--home-accent:#6959c8;--home-icon-bg:#f0edfb}
.home-tool-green{--home-accent:#18825f;--home-icon-bg:#e7f5ef}
.home-tool-blue{--home-accent:#1e63d5;--home-icon-bg:#eaf1fd}
.home-tool-amber{--home-accent:#a15e0a;--home-icon-bg:#fbf1df}
.home-page .home-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:none;margin:44px 0 0;padding:22px 0 0;border-top:1px solid #dfe4ea;color:#69778a;font-size:12px;line-height:1.6}
.home-footer strong{color:#40506a;font-weight:650}
.home-page .home-footer span{padding:0}
@media(max-width:1060px){.home-header-inner{flex-wrap:wrap;gap:18px}.home-header .header-actions{flex:1 1 auto}.home-hero{grid-template-columns:minmax(0,1fr) minmax(220px,.48fr);gap:36px}.home-section-note{max-width:350px}}
@media(max-width:820px){.home-hero{grid-template-columns:1fr;gap:28px;padding:42px 0 34px}.home-workspace{max-width:560px}.home-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-section-note{display:none}.home-tool{min-height:215px}.home-section{padding-top:32px}}
@media(max-width:620px){body[data-page-key="commercial-home.html"]{padding-bottom:28px}.home-header-inner,.home-page{width:calc(100% - 32px)}.home-header-inner{min-height:88px;padding:18px 0;gap:18px}.home-header .home-brand{font-size:26px}.home-header .header-actions{justify-content:flex-start;flex-basis:100%;gap:10px 14px}.home-header .store-navigation{flex-basis:100%}.home-header .store-navigation select{width:256px;max-width:calc(100vw - 90px)}.home-header .header-actions button{padding:8px 12px}.home-hero{padding:34px 0 28px;gap:24px}.home-hero h1{font-size:36px}.home-intro{font-size:15px}.home-tool-grid,.home-tool-grid-planning{grid-template-columns:1fr}.home-tool{min-height:195px;padding:21px}.home-section-heading h2{font-size:22px}.home-section-heading{gap:12px}.home-page .home-footer{display:block;margin-top:34px;padding-top:20px}.home-footer span{display:block;margin-top:6px}}
@media(prefers-reduced-motion:reduce){.home-tool,.home-tool::before,.home-tool-action span{transition:none}.home-tool:hover{transform:none}}

/* Shared MerchClarity artwork: preserve the supplied lockup and its aspect ratio. */
.topbar .brand{flex-shrink:0;max-width:100%;line-height:0}
.brand-logo{display:block;width:320px;max-width:100%;height:auto;border-radius:4px}
.topbar:not(.home-header){height:auto;min-height:112px;gap:16px 24px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}
.topbar:not(.home-header) .header-actions{flex-wrap:wrap}
@media(max-width:620px){.brand-logo{width:288px}.topbar:not(.home-header){padding-top:12px;padding-bottom:16px}.topbar:not(.home-header) .header-actions{gap:10px 14px}}

/* Reserve header space before authentication/status loads. Menus overlay the workspace. */
.topbar.compact-header{display:grid;grid-template-columns:210px minmax(140px,1fr) 146px auto;align-items:center;gap:20px;height:98px;min-height:98px;padding:10px 4%;position:relative;z-index:20;background:#fff;overflow:visible}
.compact-header .brand-logo{width:210px;height:auto}
.compact-header .store-navigation,.compact-header .store-navigation:empty{display:flex;width:100%;max-width:240px;height:52px;min-width:0;align-items:center}
.compact-header .store-navigation label{display:grid;gap:3px;width:100%;margin:0;font-size:11px;color:#565e74}
.compact-header .store-navigation select{width:100%;max-width:100%;height:34px;font-size:13px;margin:0}
.compact-header .store-navigation-status,.compact-header .store-navigation-loading{font-size:12px;line-height:1.4;max-height:50px;overflow:hidden}
.compact-header .header-actions{display:flex;flex-wrap:nowrap!important;justify-content:flex-end;align-items:center;gap:14px!important;min-width:0}
.compact-header .header-actions>a{font-size:13px;white-space:nowrap;color:#565e74;text-decoration:none}
.compact-header .header-actions>a:hover{text-decoration:underline}
.compact-header .header-key-slot{display:inline-flex;width:52px;min-height:40px;align-items:center;justify-content:center}
.compact-header .header-key-slot button{padding:8px 10px;font-size:13px;min-height:40px;border-radius:6px}
.compact-header .header-menu{position:relative;min-width:0}
.compact-header .header-menu>summary{list-style:none;display:flex;gap:8px;align-items:center;justify-content:center;min-height:40px;padding:8px 10px;font:400 13px/1.4 Inter,Segoe UI,Arial,sans-serif;color:#26334a;cursor:pointer;white-space:nowrap;border-radius:6px}
.compact-header .header-menu>summary::-webkit-details-marker{display:none}
.compact-header .header-menu>summary:hover,.compact-header .header-menu[open]>summary{background:#f1f4f9}
.compact-header .header-tools>summary{background:#e9efff;color:#003ec7;border:1px solid #cbd8ff;padding-inline:14px}
.compact-header .header-tools>summary:hover,.compact-header .header-tools[open]>summary{background:#dce6ff;border-color:#a6bfff}
.compact-header .store-data-menu>summary{border:1px solid #dfe5ef;width:146px}
.compact-header .store-data-indicator{font-size:17px;width:18px;line-height:1;text-align:center;color:#68758a}
.compact-header .store-data-menu[data-state="ready"] .store-data-indicator{color:#247651}
.compact-header .store-data-menu[data-state="updating"] .store-data-indicator{color:#003ec7}
.compact-header .store-data-menu[data-state="attention"] .store-data-indicator{color:#996a11}
.compact-header .header-popover{position:absolute;right:0;top:calc(100% + 10px);width:370px;max-width:calc(100vw - 32px);padding:20px;background:#fff;color:#191c1e;border:1px solid #dfe5ef;border-radius:10px;box-shadow:0 14px 38px #243b5a24;z-index:30;text-align:left;font:400 13px/1.5 Inter,Segoe UI,Arial,sans-serif}
.compact-header .store-data-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.compact-header .store-data-heading h2{font-size:18px;letter-spacing:-.2px;margin:0}
.compact-header .store-data-heading button{width:36px;height:36px;padding:4px;border:0;background:transparent;font-size:23px;color:#565e74}
.compact-header [data-data-store]{margin:6px 0 16px;color:#565e74;overflow-wrap:anywhere}
.compact-header .store-data-sources{margin:0}
.compact-header .store-data-sources>div{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:center;padding:12px 0;min-height:62px;border-bottom:1px solid #e0e3eb}
.compact-header .store-data-sources dt{color:#26334a;font-weight:600}
.compact-header .store-data-sources dd{font-size:12px;color:#565e74;white-space:pre-line;overflow-wrap:anywhere}
.compact-header .store-data-sources small{display:block;font-weight:400;font-size:11px;color:#565e74;margin-top:3px}
.compact-header .store-data-feedback{min-height:60px;margin:14px 0;color:#565e74;font-size:12px;line-height:1.6}
.compact-header .store-data-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.compact-header .store-data-actions a{font-size:13px;color:#003ec7}
.compact-header .store-data-actions button{width:167px;min-height:42px;padding:8px;font-size:13px;border-radius:6px}
.compact-header .header-tools .header-popover{width:230px;padding:8px;display:grid;gap:3px}
.compact-header .header-tools:not([open]) .header-popover{display:none}
.compact-header .header-tools .header-popover>a,.compact-header .header-tools .header-popover>button{display:block;padding:10px 12px;color:#26334a;font-size:13px;font-weight:400;text-decoration:none;text-align:left;border:0;background:transparent;border-radius:5px}
.compact-header .header-tools .header-popover>a:hover,.compact-header .header-tools .header-popover>a[aria-current]{background:#f1f4f9;color:#003ec7}
@media(max-width:960px){.topbar.compact-header{grid-template-columns:minmax(150px,1fr) 146px;grid-template-rows:64px 52px;height:152px;min-height:152px;gap:8px 16px;padding:10px 20px}.compact-header .brand{grid-column:1;grid-row:1}.compact-header .store-data-menu{grid-column:2;grid-row:1}.compact-header .store-navigation{grid-column:1;grid-row:2;max-width:280px}.compact-header .header-actions{grid-column:2;grid-row:2;gap:4px!important}.compact-header .header-popover{right:0}.compact-header .header-actions>a{font-size:12px}.compact-header .header-key-slot{width:43px}.compact-header .header-key-slot button{font-size:12px;padding:7px}.compact-header .header-tools>summary{padding:8px 6px;font-size:12px}}
@media(max-width:520px){.topbar.compact-header{grid-template-columns:minmax(0,1fr) 132px;padding:10px 12px;gap:8px 10px}.compact-header .brand-logo{width:168px}.compact-header .store-data-menu>summary{width:132px;font-size:12px;gap:6px}.compact-header .store-navigation select{font-size:16px;padding:5px;min-width:0}.compact-header .header-popover{width:calc(100vw - 24px);max-width:370px;padding:16px}.compact-header .header-tools .header-popover{right:-44px;width:230px}.compact-header .store-data-actions button{flex:1;min-width:150px}.compact-header .store-data-sources>div{gap:10px}.compact-header .header-key-slot{width:38px}}
@media(pointer:coarse){.compact-header .header-menu>summary,.compact-header .header-key-slot button,.compact-header .store-data-heading button{min-height:44px}.compact-header .store-data-heading button{width:44px}}

/* Settings joins Tools without squeezing links into the former data-menu cell. */
.compact-header .header-actions{grid-column:4}
.compact-header .header-menu{margin:0}
.compact-header .header-actions>a,.compact-header .header-actions>.header-menu,.compact-header .header-key-slot{flex-shrink:0}
@media(max-width:960px){.topbar.compact-header{grid-template-columns:minmax(150px,1fr) max-content}.compact-header .header-actions{grid-column:2;grid-row:2}.compact-header .store-data-menu{justify-self:end}}
@media(max-width:520px){.topbar.compact-header{grid-template-columns:minmax(0,1fr) 132px;grid-template-rows:56px 52px 44px;height:auto;min-height:188px}.compact-header .store-navigation{grid-column:1/-1;grid-row:2;max-width:none}.compact-header .header-actions{grid-column:1/-1;grid-row:3;width:100%;justify-content:flex-end}.compact-header .header-actions .header-popover{right:0}}
body[data-page-key="commercial-team.html"] input[type=checkbox],body[data-page-key="commercial-publishing.html"] input[type=checkbox]{width:auto;display:inline-block;vertical-align:middle;margin:0 8px 0 0}

/* Tools and Settings share the same readable, keyboard-accessible link list. */
.compact-header :is(.header-tools,.header-settings) .header-popover{width:250px;padding:8px;display:grid;gap:3px;max-height:calc(100dvh - 180px);overflow-y:auto}
.compact-header :is(.header-tools,.header-settings):not([open]) .header-popover{display:none}
.compact-header :is(.header-tools,.header-settings) .header-popover>a,.compact-header :is(.header-tools,.header-settings) .header-popover>button{display:block;padding:10px 12px;min-height:40px;color:#26334a;font-size:13px;font-weight:400;text-decoration:none;text-align:left;border:0;background:transparent;border-radius:5px;overflow-wrap:anywhere;white-space:normal}
.compact-header :is(.header-tools,.header-settings) .header-popover>:is(a,button):is(:hover,:focus-visible),.compact-header .header-settings .header-popover>a[aria-current]{background:#f1f4f9;color:#003ec7}
.compact-header .header-menu>summary:focus-visible,.compact-header .header-popover>:focus-visible{outline:2px solid #003ec7;outline-offset:2px}
.guided-return{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#edf2ff;border:1px solid #cbd8ff;border-radius:10px;padding:14px 18px;margin:0 0 22px;font-size:13px;line-height:1.6;color:#43516a}
.guided-return a{color:#003ec7;font-weight:700;text-decoration:none;white-space:nowrap}.guided-return a:hover{text-decoration:underline}
.welcome-steps{display:flex;flex-wrap:wrap;list-style:none;gap:12px 24px;margin:0 0 30px;padding:0;color:#68758a;font-size:13px}.welcome-steps li{padding:8px 0;border-bottom:2px solid #dfe5ef}.welcome-steps li[aria-current=step]{color:#003ec7;border-color:#003ec7;font-weight:700}.welcome-steps li[data-complete=true]{color:#247651}
.first-visit .setup-grid{grid-template-columns:minmax(0,700px)}.first-visit .workspace-heading .badge{display:none}
.first-visit :is(.manager-only,.store-navigation,.store-data-menu),.first-visit .header-actions>:is(a,.header-menu){display:none!important}
.first-visit .topbar.compact-header{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto;height:98px;min-height:98px}
.first-visit .compact-header .header-actions{grid-column:2;grid-row:1;width:auto}.first-visit .compact-header .brand{grid-column:1;grid-row:1}
.first-visit #first-account button{padding:8px 10px;font-size:13px;min-height:40px}.first-visit #stores:empty{margin:0}.first-visit #no-stores{color:#565e74;font-size:14px;line-height:1.7;margin:0 0 20px}
.home-setup-card{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:24px 0;background:#edf2ff;border-color:#cbd8ff}.home-setup-card h2{font-size:21px}.home-setup-card p{max-width:700px}.home-setup-card a{flex-shrink:0}
@media(max-width:520px){.compact-header .header-actions>.header-menu{position:static}.compact-header .header-actions .header-popover,.compact-header :is(.header-tools,.header-settings) .header-popover{right:12px;left:12px;top:calc(100% + 6px);width:auto;max-width:none;max-height:calc(100dvh - 215px)}.home-setup-card{align-items:flex-start;flex-direction:column}.welcome-steps{gap:4px 12px;font-size:12px}}

/* History stays in Data status, with its own controls and scrollable evidence. */
.compact-header .store-data-menu .header-popover{max-height:calc(100dvh - 130px);overflow-y:auto;overscroll-behavior:contain}
.markdown-history-panel{margin-top:20px;padding-top:16px;border-top:1px solid #dfe5ef;min-width:0;overflow-wrap:anywhere}
.markdown-history-panel>summary{font-size:14px;font-weight:650;color:#26334a;cursor:pointer;padding:6px 0}
.markdown-history-panel .history-state{display:inline-block;margin-left:5px;font-size:11px;font-weight:400;color:#78560d}
.markdown-history-panel summary:focus-visible{outline:2px solid #003ec7;outline-offset:3px}
.markdown-history-panel p{font-size:12px;line-height:1.6;margin:8px 0;color:#565e74}
.markdown-history-panel .history-notice{color:#78560d}
.markdown-history-panel .history-scope,.markdown-history-panel .history-storage{font-size:11px}
.history-datasets>section{padding:12px 0;border-bottom:1px solid #e0e3eb;min-width:0}
.history-datasets h3{font-size:13px;line-height:1.5;margin:0;color:#26334a}
.history-datasets p{margin:4px 0}
.history-datasets summary{font-size:12px;cursor:pointer;color:#43516a;padding:4px 0}
.history-datasets ul{margin:6px 0;padding-left:18px;font-size:12px;line-height:1.6;color:#565e74}
.history-datasets li+li{margin-top:4px}
.markdown-history-panel .history-limitations{margin:14px 0}
.history-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px;margin-top:16px}
.history-controls[hidden],.markdown-history-panel [hidden]{display:none!important}
.history-controls label{display:grid;gap:5px;font-size:12px;margin:0;min-width:0;color:#43516a}
.history-controls input{display:block;width:100%;max-width:100%;min-width:0;height:38px;box-sizing:border-box;padding:6px;font-size:13px;margin:0}
.history-controls .history-help,.history-buttons{grid-column:1/-1}
.history-controls .history-help{margin:0}
.history-buttons{display:flex;flex-wrap:wrap;gap:8px}
.history-buttons button{flex:1 1 130px;min-width:0;padding:8px 10px;min-height:42px;font-size:12px;line-height:1.5;border-radius:6px}
.history-buttons button:disabled{cursor:not-allowed;opacity:.6}
.markdown-history-panel .history-feedback{margin:12px 0 0}
@media(max-width:520px){.history-controls{grid-template-columns:minmax(0,1fr)}.history-controls input{font-size:16px}.history-buttons button{flex-basis:100%}}
