/* Warm glass theme: a slowly drifting golden backdrop, frosted panels, gold accents. Loaded after every other stylesheet so it
   re-skins the app without touching its markup. Status colours (running, failed, and so on) keep their meaning. */
:root{
  --bg:#f3e6cf;--paper:rgba(255,255,255,.66);--ink:#2b2217;--muted:#7a6850;--line:rgba(140,104,50,.18);
  --green:#8a5a12;--green-dark:#6b430a;--mint:rgba(255,255,255,.86);
  --gold:#d9a23e;--gold-light:#f3d387;--gold-deep:#8a5a12;
  --glass:rgba(255,251,243,.6);--glass-strong:rgba(255,252,246,.82);--glass-edge:rgba(255,255,255,.72);
  --shadow:0 10px 34px rgba(122,84,22,.1);--blur:22px;
}
body{background:#eedab8;color:var(--ink)}

/* ---- Moving gradients: two soft layers of golden light that drift in opposite directions ---- */
body::before,body::after{content:'';position:fixed;inset:-25%;z-index:-1;pointer-events:none;will-change:transform}
body::before{
  background:
    radial-gradient(46% 42% at 14% 8%,rgba(240,176,78,.92),transparent 70%),
    radial-gradient(40% 46% at 92% 10%,rgba(224,128,76,.55),transparent 70%),
    radial-gradient(52% 50% at 76% 94%,rgba(196,140,62,.8),transparent 70%),
    radial-gradient(40% 40% at 4% 90%,rgba(255,224,164,.95),transparent 70%);
  animation:drift-a 34s ease-in-out infinite alternate;
}
body::after{
  background:
    radial-gradient(30% 30% at 56% 26%,rgba(255,246,222,.8),transparent 70%),
    radial-gradient(34% 32% at 30% 72%,rgba(226,160,74,.5),transparent 70%),
    radial-gradient(28% 34% at 94% 60%,rgba(214,120,72,.34),transparent 70%),
    radial-gradient(26% 26% at 48% 62%,rgba(255,232,180,.55),transparent 70%);
  animation:drift-b 46s ease-in-out infinite alternate;
}
@keyframes drift-a{0%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(4%,3%,0) scale(1.08) rotate(1.5deg)}100%{transform:translate3d(-3%,5%,0) scale(1.03) rotate(-1deg)}}
@keyframes drift-b{0%{transform:translate3d(3%,-2%,0) scale(1.05)}50%{transform:translate3d(-4%,3%,0) scale(1)}100%{transform:translate3d(2%,5%,0) scale(1.1) rotate(-2deg)}}

/* ---- Glass surfaces ---- */
.sidebar{background:var(--glass);-webkit-backdrop-filter:blur(28px) saturate(1.5);backdrop-filter:blur(28px) saturate(1.5);border-right:1px solid var(--glass-edge);box-shadow:8px 0 40px rgba(122,84,22,.07)}
.topbar{background:rgba(255,251,243,.5);-webkit-backdrop-filter:blur(20px) saturate(1.4);backdrop-filter:blur(20px) saturate(1.4);border-bottom:1px solid var(--glass-edge)}
.panel,.stat-card,.note-card,.result-callout{background:var(--glass);border:1px solid var(--glass-edge);-webkit-backdrop-filter:blur(var(--blur)) saturate(1.3);backdrop-filter:blur(var(--blur)) saturate(1.3);box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.85)}
.panel .panel{background:rgba(255,255,255,.5);box-shadow:none}
.panel-header{border-bottom-color:var(--line)}
.stat-card,.panel{border-radius:16px}
dialog{background:var(--glass-strong);-webkit-backdrop-filter:blur(32px) saturate(1.4);backdrop-filter:blur(32px) saturate(1.4);border:1px solid var(--glass-edge);border-radius:20px;box-shadow:0 30px 110px rgba(80,52,10,.32)}
dialog::backdrop{background:rgba(74,50,14,.32);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.modal-footer{background:transparent;border-top-color:var(--line)}
.editor-dialog .modal-footer{background:var(--glass-strong)}
.info-box{background:rgba(255,248,232,.7);border:1px solid rgba(217,162,62,.35);color:#6b5230;border-radius:12px}
.preview-panel{background:rgba(255,248,232,.6);border-color:rgba(217,162,62,.35)}
.main-shell{background:transparent}

/* ---- Navigation ---- */
.brand-mark{background:linear-gradient(135deg,#f3cf80,#d9a23e 55%,#b9832a);box-shadow:0 4px 14px rgba(185,131,42,.4),inset 0 1px 0 rgba(255,255,255,.5)}
.brand-dot{color:var(--gold)}
.nav-item{color:#6f5d45;transition:background .2s,box-shadow .2s,color .2s}
.nav-item:hover{background:rgba(255,255,255,.5)}
.nav-item.selected{background:rgba(255,255,255,.9);color:var(--ink);font-weight:600;box-shadow:0 6px 18px rgba(122,84,22,.13),inset 0 1px 0 #fff}
.nav-item.selected .nav-icon{color:var(--gold-deep)}
.nav-count{background:rgba(217,162,62,.24);color:#7a4f0d}
.nav-label,.site-switcher label{color:#a08862}
.workspace-nav{border-top-color:var(--line)}
.user-button:hover{background:rgba(255,255,255,.5)}
.avatar{background:linear-gradient(135deg,#fbe7b8,#efc770);color:#6b430a;border-color:#fff;outline-color:rgba(217,162,62,.4)}
.site-switcher .site-select,.site-select,.search,select,.field input,.field textarea,.field select,.preview-url input{background:rgba(255,255,255,.72);border:1px solid rgba(140,104,50,.26)}
.check-option,.editor-tab{background:rgba(255,255,255,.55);border-color:var(--line)}
.editor-tab.active{background:rgba(255,255,255,.95);color:var(--gold-deep)}
.tab.selected,nav.tabs .tab.selected{color:var(--gold-deep);border-bottom-color:var(--gold)}
.tab:hover,nav.tabs .tab:hover{color:var(--gold-deep)}
.tab.active{background:rgba(255,255,255,.9);border-color:rgba(255,255,255,.9);box-shadow:0 4px 14px rgba(122,84,22,.1)}
.switcher-status:hover,.text-button:hover{color:var(--gold-deep)}
a{color:inherit}

/* ---- Buttons: gold with a slow sheen on hover ---- */
.button.primary{background:linear-gradient(120deg,#f4d488 0%,#dba63f 45%,#c98d2a 60%,#e8bb58 100%);background-size:220% 100%;color:#2b1c05;font-weight:600;border:1px solid rgba(150,98,18,.35);box-shadow:0 8px 22px rgba(201,141,42,.34),inset 0 1px 0 rgba(255,255,255,.6);transition:background-position .7s ease,box-shadow .25s,transform .25s}
.button.primary:hover{background:linear-gradient(120deg,#f4d488 0%,#dba63f 45%,#c98d2a 60%,#e8bb58 100%);background-size:220% 100%;background-position:100% 0;transform:translateY(-1px);box-shadow:0 12px 28px rgba(201,141,42,.42),inset 0 1px 0 rgba(255,255,255,.65)}
.button.primary:active{transform:translateY(0)}
.button.secondary{background:rgba(255,255,255,.62);border:1px solid rgba(140,104,50,.24);color:var(--ink);transition:background .2s,box-shadow .2s,transform .2s}
.button.secondary:hover{background:rgba(255,255,255,.95);box-shadow:0 6px 18px rgba(122,84,22,.12)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.nav-item:focus-visible,.tab:focus-visible,.user-button:focus-visible,.switcher-status:focus-visible,.site-switcher .site-select:focus-visible{outline:2px solid #20201e;outline-offset:2px}

/* ---- Content ---- */
.eyebrow{color:#a2782e}
h1{letter-spacing:-.03em}
.muted,.subtitle,.stat-foot,.panel-header small,td .muted{color:var(--muted)}
th{background:rgba(255,248,232,.55);color:#8a7657;border-bottom-color:var(--line)}
td{border-bottom-color:var(--line)}
tbody tr:hover{background:rgba(255,255,255,.4)}
.table-footer{background:rgba(255,248,232,.4);border-top-color:var(--line);color:#8a7657}
.badge{background:rgba(120,90,40,.1);color:#7d6a4e}
.badge.paused{background:rgba(243,211,135,.4);color:#7a5410}
.wb-tag{background:rgba(217,162,62,.18);color:#7a4f0d}
.stat-icon{color:var(--gold-deep)}
.code-block{background:linear-gradient(160deg,#33281a,#251c11);color:#f1e6d2;border:1px solid rgba(255,255,255,.08)}
.inline-code{background:rgba(217,162,62,.16)}
.status-dot.green,.online-dot{background:#4f9a72}

/* Code editors and their help text (the editor sets !important on its colours, so these must too). */
.code-editor{background:#242424!important;color:#ededed!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:10px!important}
.code-editor::placeholder{color:#a8977d}
.editor-help{background:rgba(255,248,232,.7);color:#7a6440;border:1px solid var(--line);border-radius:10px}
.editor-help code{color:#8a5a12}
.editor-section{background:rgba(255,255,255,.34);border-color:var(--line);border-radius:14px}
.wb-empty h3{color:var(--ink)}

/* ---- Highlights: the first stat and the setup card carry a slow moving glow ---- */
.stat-card:first-child{position:relative;overflow:hidden;background:linear-gradient(135deg,rgba(255,232,178,.92),rgba(238,196,104,.78));border-color:rgba(255,255,255,.75)}
.stat-card:first-child::after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%);transform:translateX(-120%);animation:sheen 9s ease-in-out infinite;pointer-events:none}
@keyframes sheen{0%,55%{transform:translateX(-120%)}85%,100%{transform:translateX(120%)}}
.onboarding{background:linear-gradient(140deg,rgba(255,240,200,.9),rgba(245,214,140,.7),rgba(255,236,190,.85));background-size:200% 200%;animation:warm-shift 16s ease-in-out infinite alternate;border:1px solid rgba(255,255,255,.75);border-radius:16px;box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.85)}
@keyframes warm-shift{0%{background-position:0% 0%}100%{background-position:100% 100%}}
.onboarding-icon{background:rgba(255,255,255,.7);border-color:rgba(217,162,62,.4);color:var(--gold-deep)}
.onboarding>p,.check-step{color:#8a6f42}
.check-step b{color:#4d3915}
.step-circle{border-color:rgba(160,120,50,.5)}
.step-circle.done{background:#b9832a;border-color:#b9832a}

/* ---- No outlines: modules are separated by soft shadow and blur, not lines ---- */
.panel,.stat-card,.note-card,.result-callout,.onboarding,.info-box,.preview-panel,.editor-section,.integration-card,.integration-card.enabled,.website-card,.asset-card,.variation-card,.wb-empty,dialog,.sidebar,.topbar,.tab.active,.nav-item.selected{border:0}
.sidebar{border-right:0}.topbar{border-bottom:0}
.panel,.stat-card,.note-card,.result-callout,.onboarding{box-shadow:0 12px 36px rgba(122,84,22,.11),0 2px 6px rgba(122,84,22,.05)}
.sidebar{box-shadow:10px 0 44px rgba(122,84,22,.08)}
.topbar{box-shadow:0 8px 30px rgba(122,84,22,.06)}
.editor-section{box-shadow:none}
/* Dividers inside a module stay, but only just visible. */
.panel-header,.modal-footer,.table-footer,.workspace-nav,td,th,.modal-heading{border-color:rgba(140,104,50,.09)}
nav.tabs{border-bottom-color:rgba(140,104,50,.12)}

/* ---- Layout: open navigation beside one calmer glass sheet for the content ---- */
:root{--sheet:rgba(255,251,244,.74);--sidebar-glass:rgba(255,246,228,.3);--card:rgba(255,255,255,.7);--gap:26px}
.sidebar{inset:var(--gap) auto var(--gap) var(--gap);width:calc(var(--sidebar) + 8px);border-radius:28px;padding-bottom:10px;
  background:linear-gradient(165deg,rgba(255,250,238,.5),var(--sidebar-glass) 55%,rgba(255,236,200,.24));
  -webkit-backdrop-filter:blur(30px) saturate(1.7);backdrop-filter:blur(30px) saturate(1.7);
  box-shadow:0 24px 60px rgba(110,70,16,.16),inset 0 1px 0 rgba(255,255,255,.55)}
.sidebar{padding:32px 22px 14px}
.sidebar .nav-item{gap:10px}
.sidebar .nav-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.nav-label,.site-switcher label{color:#8a6d3f}
.nav-item{color:#5c4a30}
.nav-item:hover{background:rgba(255,255,255,.4)}
.site-switcher .site-select{background:rgba(255,255,255,.5)}
.switcher-status,.user-button small{color:#7a6238}
.main-shell{margin:var(--gap) var(--gap) var(--gap) calc(var(--gap) + var(--sidebar) + 8px + 24px);min-height:calc(100vh - var(--gap) * 2);border-radius:28px;
  background:var(--sheet);-webkit-backdrop-filter:blur(26px) saturate(1.25);backdrop-filter:blur(26px) saturate(1.25);
  box-shadow:0 24px 70px rgba(110,70,16,.14),inset 0 1px 0 rgba(255,255,255,.7)}
.topbar{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;border-radius:28px 28px 0 0}
/* Inside the sheet the cards are calmer and lighter, so they do not blur the blur. */
.panel,.stat-card,.note-card,.result-callout{background:var(--card);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 8px 26px rgba(122,84,22,.08),0 1px 3px rgba(122,84,22,.05)}
.panel .panel{background:rgba(255,255,255,.55);box-shadow:none}
.stat-card:first-child{background:linear-gradient(135deg,rgba(255,232,178,.95),rgba(238,196,104,.85))}
.onboarding{-webkit-backdrop-filter:none;backdrop-filter:none}
@media(max-width:720px){
  :root{--gap:10px}
  .sidebar{position:static;inset:auto;width:auto;margin:var(--gap) var(--gap) 0;border-radius:22px}
  .main-shell{margin:var(--gap);min-height:0;border-radius:22px}
  .topbar{border-radius:22px 22px 0 0}
}

/* ---- Porcelain surfaces: white cards against a quiet neutral sheet ---- */
:root{
  --sheet:#f7f6f4;--card:#fff;--paper:#fff;
  --ink:#20201e;--muted:#73716d;--line:rgba(40,38,34,.1);
  --glass:rgba(255,255,255,.94);--glass-strong:#fff;
}
body{background:#e9e2d7}
body::before{opacity:.48}
body::after{opacity:.38}
.main-shell{
  background:var(--sheet);
  -webkit-backdrop-filter:none;backdrop-filter:none;
  box-shadow:0 18px 60px rgba(45,37,25,.08),inset 0 1px 0 #fff;
}
.panel,.stat-card,.note-card,.result-callout,.integration-card,.website-card,.asset-card,.variation-card{
  background:#fff;
  box-shadow:0 4px 18px rgba(35,31,25,.035);
}
.panel .panel{background:#fff}
.info-box,.preview-panel,.editor-help,.editor-section{background:#fff;color:#625e57}
.sidebar .nav-item.selected{background:#fff;color:#20201e}
.nav-item{color:#393733}
.nav-label,.site-switcher label{color:#6d675e}
.switcher-status,.user-button small{color:#686257}
.site-switcher .site-select,.site-select,.search,select,.field input,.field textarea,.field select,.preview-url input{
  background:#fff;border-color:#e5e2dc;color:var(--ink);
}
.button.secondary{background:#fff;border-color:#e5e2dc;color:#292824}
.button.secondary:hover{background:#faf9f7;box-shadow:0 3px 12px rgba(35,31,25,.06)}
th,.table-footer{background:#f5f4f2;color:#75716b}
td,.panel-header,.modal-heading,.modal-footer,.table-footer{border-color:#efeeeb}
tbody tr:hover{background:#faf9f7}
.eyebrow{color:#837664}
h1{color:#191918}
.stat-card:first-child{background:linear-gradient(135deg,#fff5d6,#f7d77d)}
.onboarding{background:linear-gradient(140deg,#fff9e8,#ffe6a0);box-shadow:0 4px 18px rgba(35,31,25,.035)}
dialog,.editor-dialog .modal-footer{background:#fff}

/* Flat controls and tighter corners keep the white surfaces crisp. */
:root{--radius-control:5px;--radius-card:10px;--radius-shell:16px}
.main-shell{border-radius:var(--radius-shell)}
.topbar{border-radius:var(--radius-shell) var(--radius-shell) 0 0}
.panel,.stat-card,.note-card,.onboarding,.info-box,.preview-panel,.editor-section,
.integration-card,.website-card,.asset-card,.variation-card,.wb-empty,dialog{
  border-radius:var(--radius-card);
}
.button,.menu-toggle,.sidebar .nav-item,.user-button,.editor-tab,.check-option,
.site-switcher .site-select,.site-select,.search,.field input,.field textarea,.field select{
  border-radius:var(--radius-control);
}
.button{
  min-height:38px;padding:9px 16px;font-size:12px;line-height:1.4;
  font-weight:500;letter-spacing:0;box-shadow:none;
  transition:background-color .18s,color .18s,border-color .18s;
}
.button.primary{
  background:#262824;color:#fff;border:1px solid #262824;
  box-shadow:none;font-weight:500;
}
.button.primary:hover{background:#41443d;border-color:#41443d;box-shadow:none;transform:none}
.button.primary:active{background:#171915;transform:none}
.button.secondary,.menu-toggle{background:#fff;color:#30322e;border:1px solid #dedfda;box-shadow:none}
.button.secondary:hover,.menu-toggle:hover{background:#f0f1ed;border-color:#bfc3b9;box-shadow:none}
.button:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.onboarding{animation:none}
.stat-card:first-child::after{display:none}

/* Two centered pools of light stretch and overlap into a changing organic glow. */
body{background:#fff;isolation:isolate}
body::before{
  inset:-25%;opacity:1;transform-origin:50% 50%;
  background:radial-gradient(ellipse 44% 40% at 50% 50%,
    #edc987 0%,#f6dfb1 25%,rgba(251,239,217,.8) 48%,rgba(255,250,240,.3) 70%,transparent 100%);
  animation:glow-morph 22s ease-in-out infinite alternate;
}
body::after{
  display:block;inset:-25%;opacity:.75;transform-origin:50% 50%;
  background:radial-gradient(ellipse 36% 44% at 50% 50%,
    #f0d39b 0%,rgba(249,228,186,.8) 32%,rgba(255,245,223,.35) 65%,transparent 100%);
  animation:glow-counter-morph 29s ease-in-out infinite alternate;
}
@keyframes glow-morph{
  0%{transform:translate3d(-3%,0,0) rotate(-12deg) scale(1.05,.85)}
  50%{transform:translate3d(3%,-4%,0) rotate(8deg) scale(.88,1.18)}
  100%{transform:translate3d(0,4%,0) rotate(-6deg) scale(1.14,.94)}
}
@keyframes glow-counter-morph{
  0%{transform:translate3d(4%,2%,0) rotate(15deg) scale(.9,1.08)}
  50%{transform:translate3d(-4%,3%,0) rotate(-10deg) scale(1.2,.84)}
  100%{transform:translate3d(1%,-4%,0) rotate(12deg) scale(.96,1.16)}
}

/* ---- Comfort and accessibility ---- */
@media(max-width:720px){:root{--blur:14px}.sidebar,.topbar{-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3)}}
@media(prefers-reduced-motion:reduce){body::before,body::after,.stat-card:first-child::after,.onboarding{animation:none}.button.primary,.button.secondary,.nav-item{transition:none}}
@media(prefers-reduced-transparency:reduce){
  :root{--sheet:#f7f6f4;--sidebar-glass:#f6ead2;--card:#fff}
  .sidebar{background:#f6ead2}.main-shell{background:#f7f6f4}
  :root{--glass:#fff;--glass-strong:#fff;--paper:#fff}
  .sidebar,.topbar,.panel,.stat-card,dialog{-webkit-backdrop-filter:none;backdrop-filter:none}
  body::before,body::after{display:none}
}
@media(prefers-contrast:more){
  :root{--sheet:#fbf6ec;--sidebar-glass:#f3e4c4;--card:#fffdf8}
  .sidebar{background:#f3e4c4}.main-shell{background:#fbf6ec}
  .panel,.stat-card,.note-card,.onboarding,.info-box,dialog,.sidebar,.topbar{border:1px solid var(--line)}
  :root{--glass:#fbf6ec;--glass-strong:#fdf9f1;--muted:#5c4a33;--line:rgba(80,56,20,.45)}
  .panel,.stat-card,.sidebar,.topbar{-webkit-backdrop-filter:none;backdrop-filter:none}
  .nav-item{color:#3f3120}.eyebrow{color:#7a5410}
}
/* Without backdrop-filter support the glass would be see-through text on a busy gradient, so it becomes solid. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  :root{--sheet:#fbf6ec;--sidebar-glass:#f6ead2;--card:#fffdf8}
  .sidebar{background:#f6ead2}.main-shell{background:#fbf6ec}
  :root{--glass:#fbf6ec;--glass-strong:#fdf9f1}
  .topbar{background:#faf3e6}dialog{background:#fdf9f1}
}

/* Navigation sits on the page background, including on mobile and in fallback modes.
   Only individual controls receive a surface; the sidebar is not another panel. */
.sidebar{
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.sidebar .nav-item.selected{box-shadow:none}

/* Variations form one continuous list, with edge-to-edge separators. */
.wb-panel:has(>.variation-card){padding:0}
.wb-panel:has(>.variation-card)>.wb-title{padding:20px 23px;margin:0}
.wb-panel>.variation-card{
  margin:0;padding:18px 23px;
  background:transparent;border:0;border-top:1px solid #e8e7e3;
  border-radius:0;box-shadow:none;
}
.variation-card>div{min-width:0;overflow-wrap:anywhere}

/* Center the entire workspace on ultrawide displays, including its open sidebar. */
@media(min-width:1920px){
  :root{--workspace-offset:calc((100vw - 1920px) / 2)}
  .sidebar{left:calc(var(--workspace-offset) + var(--gap))}
  .main-shell{
    margin-left:calc(var(--workspace-offset) + var(--gap) + var(--sidebar) + 8px + 24px);
    margin-right:calc(var(--workspace-offset) + var(--gap));
  }
}
/* Keep the dashboard aligned within the bounded workspace. */
.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.page-heading .page-actions .button{margin:0;white-space:nowrap}
.page-heading>div:first-child{min-width:0}
.topbar{flex-shrink:0}
.content-grid>*{min-width:0}
@media(min-width:1500px){
  main{max-width:none;margin:0 auto;padding:36px clamp(36px,2.5vw,80px) 48px}
  .topbar{padding-inline:clamp(36px,2.5vw,80px)}
  .content-grid{grid-template-columns:minmax(0,1fr) clamp(280px,19vw,360px);gap:24px}
  .stats-grid{gap:20px}
}
/* A wide display may still have limited vertical space, especially with browser zoom. */
@media(min-width:721px) and (max-height:850px){
  .sidebar{padding-top:14px;padding-bottom:0;scrollbar-width:thin}
  .sidebar .brand{padding-top:0;padding-bottom:0}
  .site-switcher{margin:16px 0 10px}
  .sidebar .nav-item{padding-top:8px;padding-bottom:8px;margin-bottom:2px}
  .workspace-nav{padding-top:8px}
  .workspace-footer{padding:6px 0}
  .sidebar .user-button{padding-top:6px;padding-bottom:6px}
}
@media(max-width:720px){
  .page-heading:has(.page-actions){flex-wrap:wrap}
  .page-actions{justify-content:flex-start}
  .toolbar .tabs{flex-wrap:wrap}
}

/* ---- Page tabs: a quiet segmented control, and room under filter rows ---- */
nav.tabs{
  display:flex;width:fit-content;max-width:100%;gap:2px;padding:4px;margin:-8px 0 26px;
  border:0;border-radius:calc(var(--radius-control) + 5px);background:rgba(140,104,50,.09);
}
nav.tabs .tab{
  margin:0;padding:8px 16px;border:0;border-radius:calc(var(--radius-control) + 2px);
  font-size:13px;font-weight:500;color:#6d675e;transition:background .18s,color .18s,box-shadow .18s;
}
nav.tabs .tab:hover{color:var(--ink);background:rgba(255,255,255,.55)}
nav.tabs .tab.selected{background:#fff;color:var(--gold-deep);font-weight:600;box-shadow:0 1px 2px rgba(35,31,25,.08),0 3px 10px rgba(122,84,22,.1)}
nav.tabs .tab:focus-visible{outline-offset:-2px}
main > .form-row{margin-bottom:20px;align-items:end}
main > .form-row .field input,main > .form-row .field select{height:38px;box-sizing:border-box}
@media(prefers-reduced-motion:reduce){nav.tabs .tab{transition:none}}

/* ---- Dropdowns: one look everywhere (chevron, soft focus ring, and a styled list where the browser allows it) ---- */
select,.site-switcher .site-select,.field select{
  -webkit-appearance:none;appearance:none;padding-right:34px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%2320201e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;background-size:11px 7px;
  transition:border-color .18s,box-shadow .18s;
}
/* No outlines: a dropdown is a soft tinted field, and hover and focus only change its fill. */
select,.site-switcher .site-select,.field select{border-color:transparent;outline:0;background-color:#edeae4}
select:hover:not(:disabled),.site-switcher .site-select:hover,.field select:hover:not(:disabled){background-color:#e7e3db}
select:focus,select:focus-visible,.site-switcher .site-select:focus-visible,.field select:focus-visible{outline:0;border-color:transparent;background-color:#fff;box-shadow:0 4px 16px rgba(122,84,22,.14)}
.site-switcher .site-select{background-color:#fff;box-shadow:0 2px 10px rgba(122,84,22,.1)}
.site-switcher .site-select:hover{background-color:#fffdf9}
select:disabled{opacity:.55;cursor:not-allowed}
option{background:#fff;color:#20201e}
@media(prefers-reduced-motion:reduce){select{transition:none}}
/* Chromium's customisable select: the open list becomes a soft white card with a gold check on the chosen item. */
@supports (appearance:base-select){
  select,.site-switcher .site-select,.field select,::picker(select){-webkit-appearance:base-select;appearance:base-select}
  select,.site-switcher .site-select,.field select{background-image:none}
  select,.site-switcher .site-select,.field select{justify-content:space-between;align-items:center;text-align:left}
  select,.site-switcher .site-select,.field select{padding-right:14px}
  select::picker-icon{content:'';width:7px;height:7px;margin-left:8px;flex:none;border:solid var(--gold-deep);border-width:0 1.8px 1.8px 0;transform:translateY(-2px) rotate(45deg);transition:transform .18s}
  select:open::picker-icon{transform:translateY(2px) rotate(225deg)}
  select:disabled::picker-icon{opacity:.5}
  ::picker(select){
    padding:6px;margin-block:6px;border:0;border-radius:12px;background:#fff;
    box-shadow:0 18px 50px rgba(80,52,10,.2);outline:0;
  }
  select option{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;font-size:13px;color:var(--ink);cursor:pointer}
  select option:hover,select option:focus-visible{background:rgba(217,162,62,.16);outline:0}
  select option:checked{background:rgba(217,162,62,.24);color:var(--gold-deep);font-weight:600}
  select option::checkmark{color:var(--gold-deep);order:1;margin-left:auto}
}

/* Flat interior: softly rounded sections, with spacing and dividers instead of shadows. */
:is(main,dialog) :is(.panel,.stat-card,.note-card,.result-callout,.onboarding,
  .info-box,.preview-panel,.editor-section,.integration-card,.website-card,
  .asset-card,.variation-card,.wb-empty,.table-wrap){
  border-radius:6px;box-shadow:none;
}
.wb-panel>.variation-card{border-radius:0}
:is(main,dialog) :is(.button,.tab,.editor-tab,.check-option,.search,input,textarea,select),
main nav.tabs,main nav.tabs .tab{border-radius:3px}
:is(main,dialog) :is(.button.primary,.button.secondary,.field select,.tab.active,
  .editor-tab,.check-option,input,textarea,select),
:is(main,dialog) :is(.button.primary,.button.secondary):hover,
:is(main,dialog) select:is(:focus,:focus-visible),
:is(main,dialog) .field select:is(:focus,:focus-visible),
main nav.tabs .tab.selected{box-shadow:none}
:is(main,dialog) select:focus-visible,
:is(main,dialog) .field select:focus-visible{outline:2px solid #20201e;outline-offset:2px}
@supports (appearance:base-select){
  :is(main,dialog) select::picker(select){border-radius:3px;box-shadow:none;border:1px solid #dedfda}
  :is(main,dialog) select option{border-radius:2px}
}

/* ---- Experiment builder: a page of its own, with the save bar kept in reach ---- */
.builder-page{max-width:980px}
.builder-page .editor-body{padding:0;gap:22px}
.builder-page .editor-section{padding:24px}
.builder-actions{
  position:sticky;bottom:16px;z-index:5;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;
  margin-top:24px;padding:12px 16px;border-radius:var(--radius-card);
  background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:0 10px 34px rgba(80,52,10,.16);
}
.builder-actions .form-error{margin:0 auto 0 0}
@media(max-width:720px){.builder-page .editor-section{padding:16px}.builder-actions{bottom:10px}}

/* Rows that open something show it: a pointer, and the arrow lifts on hover. */
tr.clickable-row{cursor:pointer}
tr.clickable-row .row-arrow{transition:transform .18s,color .18s}
tr.clickable-row:hover .row-arrow{color:var(--gold-deep);transform:translate(2px,-2px)}

/* Neutral interface palette. Gold belongs to the ambient artwork and highlight panels. */
:root{
  --bg:#f7f7f5;--sheet:#f7f7f5;--paper:#fff;--card:#fff;
  --ink:#20201e;--muted:#737373;--line:#e7e7e3;
  --green:#20201e;--green-dark:#111;--mint:#f0f0ee;--gold-deep:#20201e;
}
.main-shell{background:var(--sheet)}
.brand-mark{background:#20201e;box-shadow:none}
.brand-dot{color:#20201e}
.nav-item,.sidebar .nav-item.selected,.nav-item.selected .nav-icon,.stat-icon,
.switcher-add,.text-button,.editor-help code{color:#20201e}
.nav-label,.site-switcher label,.switcher-status,.user-button small,.eyebrow,
.note-card .eyebrow,.subtitle,.stat-foot,.wb-small,.wb-muted-cell{color:#737373}
.nav-count,.wb-tag,.badge:not(.running):not(.completed):not(.paused){background:#eeeeeb;color:#555}
.avatar{background:#ededeb;color:#444;border-color:#fff;outline-color:#dededb}
.info-box,.preview-panel,.editor-help,.editor-section{color:#555}
.inline-code{background:#f0f0ee;color:#444}
.code-block{background:#242424;color:#ededed}
.code-editor::placeholder{color:#a3a3a3}
.onboarding>p,.check-step{color:#666}
.check-step b{color:#30302e}
.onboarding-icon{color:#20201e;border-color:#deded8;background:#ffffffb3}
.step-circle{border-color:#b8b8ae;color:#555}
.step-circle.done{background:#30302e;border-color:#30302e;color:#fff}
.panel-header,.modal-footer,.table-footer,.workspace-nav,.workspace-footer,td,th,
.modal-heading,.wb-panel>.variation-card{border-color:#e7e7e3}
th,.table-footer{background:#f3f3f1;color:#737373}
nav.tabs{background:#eaeae7}
nav.tabs .tab{color:#737373}
nav.tabs .tab.selected,nav.tabs .tab:hover,.tab.selected{color:#20201e}
select,.site-switcher .site-select,.field select{background-color:#eeeeeb;color:#20201e}
select:hover:not(:disabled),.site-switcher .site-select:hover,.field select:hover:not(:disabled){background-color:#e5e5e2}
.site-switcher .site-select{background-color:#fff;box-shadow:none}
select:focus,select:focus-visible,.site-switcher .site-select:focus-visible,.field select:focus-visible{
  background-color:#fff;box-shadow:none;outline:2px solid #20201e;outline-offset:2px;
}
.button.secondary,.menu-toggle,.field input,.field textarea,.search{border-color:#e0e0dc;color:#20201e}
.button.secondary:hover,.menu-toggle:hover{background:#f0f0ee;border-color:#bfbfba}
.builder-actions{box-shadow:none;border-top:1px solid #e7e7e3}
@supports (appearance:base-select){
  select option:hover,select option:focus-visible{background:#f0f0ed}
  select option:checked{background:#e8e8e4;color:#20201e}
  select option::checkmark{color:#20201e}
  ::picker(select){box-shadow:none;border:1px solid #deded9}
}
@media(prefers-contrast:more){
  :root{--muted:#505050;--line:#888}
  .nav-item,.eyebrow,.nav-label,.site-switcher label{color:#303030}
}

/* Shared proportions: readable labels, consistent controls, compact content groups. */
body{font-size:14px;line-height:1.5}
h1{font-size:32px;line-height:1.2;letter-spacing:-1px;margin-bottom:8px}
h2{font-size:18px;line-height:1.35;letter-spacing:-.35px}
h3{font-size:15px;line-height:1.4}
.subtitle{font-size:14px;line-height:1.6;max-width:720px}
.page-heading{gap:24px;margin-bottom:24px}
.topbar{height:64px;font-size:13px}
main{padding-top:28px}
.sidebar .nav-item,.sidebar .workspace-nav .nav-item{font-size:14px;line-height:20px;padding:10px 12px;gap:12px}
.sidebar .nav-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:0 0 20px;line-height:1}
.sidebar .nav-item .nav-icon{font-size:18px}
.nav-label,.site-switcher label{font-size:11px;letter-spacing:1px}
.site-switcher .site-select{font-size:14px;min-height:40px}
.switcher-status,.switcher-add{font-size:12px}
.user-button strong{font-size:13px}.user-button small{font-size:11px}
.button,.detail-actions .button,.page-heading>.button,.menu-toggle{font-size:13px;line-height:20px;min-height:40px;padding:9px 15px}
.field{font-size:13px;gap:6px}
.field input,.field select,.field textarea,.preview-url input,.search{font-size:13px;padding:10px 12px;line-height:20px}
.field select{padding-right:34px}
.field small,.form-note,.editor-help{font-size:12px;line-height:1.6}
.search{max-width:260px}
.stats-grid{gap:16px;margin-bottom:24px}
.stat-card{padding:20px}
.stat-top{font-size:13px;line-height:20px;color:var(--muted)}
.stat-icon{font-size:18px;line-height:20px}
.stat-value{font-size:34px;line-height:1.15;letter-spacing:-1px;margin:10px 0 6px}
.stat-foot{font-size:12px;line-height:1.5}
.panel-header{padding:16px 20px}
.panel-header small,.legend,.chart-day label{font-size:12px}
.wb-panel,.padded,.activity-inner{padding:20px}
.wb-title{margin-bottom:14px}
.wb-small,.wb-subtitle,.wb-muted-cell,.info-box,.definition{font-size:13px;line-height:1.6}
.definition{grid-template-columns:90px minmax(0,1fr);gap:12px}
.wb-aside .definition{grid-template-columns:65px minmax(0,1fr)}
.wb-tag,.badge{font-size:11px;line-height:16px;padding:3px 7px}
th,.variant-table th{font-size:11px;letter-spacing:.65px;line-height:18px;padding:12px 18px}
td,.variant-table td{font-size:13px;line-height:20px;padding:16px 18px}
.experiment-name,.variation-card strong{font-size:14px;line-height:20px;margin-bottom:3px}
.experiment-path,.variation-card small,.table-footer{font-size:12px;line-height:18px}
.table-footer{padding:12px 18px}
.wb-panel:has(>.variation-card)>.wb-title{padding:16px 20px}
.wb-panel>.variation-card{padding:16px 20px;gap:12px}
.variant-chip{width:28px;height:28px;flex-shrink:0;font-size:12px}
.variation-card .variation-weight{font-size:14px}
.tab,nav.tabs .tab{font-size:13px;line-height:20px;padding:8px 12px}
.tab-count{font-size:11px}
.onboarding{padding:20px}
.onboarding h2{font-size:18px;line-height:1.35}
.onboarding>p,.check-step,.check-step b,.note-card p{font-size:13px;line-height:1.5}
.check-step{margin:16px 0;gap:10px}
.step-circle{width:20px;height:20px;font-size:11px}
.back-button{font-size:13px;margin-bottom:20px}
.inline-code{font-size:12px}
@media(min-width:1500px){main{padding-top:28px}.stats-grid{gap:16px}}
@media(min-width:721px) and (max-height:850px){
  .sidebar .nav-item,.sidebar .workspace-nav .nav-item{padding-block:7px}
}
@media(max-width:1100px){
  .preview-controls{grid-template-columns:140px minmax(0,1fr)}
  .preview-controls>.button{justify-self:start}
}
@media(max-width:720px){
  h1{font-size:27px}.subtitle{font-size:14px;max-width:none}
  .topbar{height:56px;font-size:12px}
  main{padding:24px 18px}
  .page-heading{gap:16px;margin-bottom:20px}
  .stats-grid{gap:12px}.stat-card{padding:16px}
  .stat-top{font-size:12px}.stat-value{font-size:30px}
  .stat-foot{font-size:12px}
  .panel-header{flex-wrap:wrap;gap:10px}
  .preview-controls{grid-template-columns:minmax(0,1fr)}
  .legend{flex-wrap:wrap;gap:10px}
  .toolbar .search{max-width:none}
}



/* The Setup / Results switch on an experiment reuses the tab strip, placed under the heading. */
nav.tabs.page-tabs{margin:18px 0 26px}

/* The experiment list is the overview; performance stays within each test. */
.experiment-overview{min-width:0}
.experiment-overview .toolbar{gap:16px;flex-wrap:wrap;margin-bottom:18px}
.experiment-overview .tabs{flex-wrap:wrap;gap:4px}
.experiment-overview .tab{font-size:13px;padding:8px 12px;box-shadow:none;border:0}
.experiment-overview .tab.active{background:#e8e8e5;color:#20201e;box-shadow:none}
.experiment-overview .tab-count{color:#737373;margin-left:6px}
.overview-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;margin-bottom:20px;background:#fff;border-radius:6px;border-left:2px solid #bdbdb6}
.overview-notice strong{font-size:13px;display:block}
.overview-notice span{font-size:12px;color:#737373}
.overview-goal{max-width:240px;white-space:normal}
.overview-progress{display:flex;align-items:center;gap:10px;min-width:140px;margin-bottom:3px;font-size:12px}
.overview-track{width:90px;height:4px;background:#e9e9e5;border-radius:2px;overflow:hidden}
.overview-track i{display:block;height:100%;background:#53574e}
.experiment-overview .table-footer{gap:16px;flex-wrap:wrap}
@media(max-width:720px){.overview-notice{align-items:flex-start;flex-direction:column}.experiment-overview .search{max-width:none}}

/* Bright white content with contrast carried by text and fine dividers. */
:root{--sheet:#fff;--paper:#fff;--card:#fff;--ink:#20201e;--muted:#626262;--line:#e9e9e6}
.main-shell{background:#fff}
.topbar{background:transparent}
th,.variant-table th,.table-footer{background:#fafaf9;color:#555}
td,.panel-header,.table-footer,.wb-panel>.variation-card{border-color:#e9e9e6}
.stat-top,.field,.definition dt{color:#454545}
.subtitle,.wb-small,.wb-subtitle,.wb-muted-cell,.stat-foot,.muted,
.panel-header small,.experiment-path,.table-footer,.overview-notice span{color:#626262}
.nav-label,.site-switcher label,.switcher-status,.user-button small,.eyebrow{color:#626262}
.stat-card{border:1px solid #ededeb}
.stat-card:first-child{border-color:transparent}
nav.tabs{background:#f7f7f5;border:1px solid #ededeb}
nav.tabs .tab{color:#555}
nav.tabs .tab.selected{background:#fff;color:#20201e}
.experiment-overview .tab.active{background:#f2f2ef;color:#20201e}
.badge:not(.running):not(.completed):not(.paused),.wb-tag{background:#f3f3f0;color:#505050}
select,.field select{background-color:#f5f5f2;color:#20201e}
select:hover:not(:disabled),.field select:hover:not(:disabled){background-color:#ededeb}
@media(prefers-contrast:more){:root{--muted:#444;--line:#888}th,.variant-table th{color:#303030}}

/* Informational notices need a gentle surface against the white page. */
.overview-notice,.info-box,.editor-help{
  background:#f5f5f2;
  color:#555;
  box-shadow:none;
}
.overview-notice{border-left-color:#c6c6bd}
.overview-notice strong{color:#20201e}
/* Experiment results: a clear reading order, with detail on demand. */
.result-summary{background:#fff8e2;border:1px solid #f3e8c7;border-radius:6px;padding:20px 24px;margin:24px 0 0}
.result-eyebrow{display:block;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#626262;margin-bottom:8px}
.result-summary h2,.result-recommendation>strong{display:block;font-size:21px;line-height:1.35;color:#20201e;letter-spacing:-.4px}
.result-recommendation ul{font-size:13px;line-height:1.7;padding:0}
.result-summary>.wb-small{margin:12px 0 0}
.result-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:24px 0 30px;border-bottom:1px solid #e9e9e6;padding-bottom:24px;gap:24px}
.result-metrics>div{padding-left:24px;border-left:1px solid #e9e9e6}
.result-metrics>div:first-child{padding-left:0;border:0}
.result-metrics span,.result-metrics small{display:block;font-size:13px;color:#626262}
.result-metrics strong{display:block;font-size:32px;font-weight:600;letter-spacing:-1px;line-height:1.3;margin:8px 0 4px;font-variant-numeric:tabular-nums}
.result-metrics em{font-size:22px;font-style:normal;margin-left:2px}
.result-comparison{border:1px solid #e9e9e6;border-radius:6px;padding:24px;background:white}
.result-comparison h2{font-size:18px;margin:0}
.result-comparison .wb-title{margin-bottom:20px}
.result-variation{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,1fr) 150px;align-items:center;gap:28px;padding:20px 0;border-top:1px solid #eeeeeb}
.result-variation-name{display:flex;align-items:center;gap:12px}
.result-key{display:grid;place-items:center;background:#f4f4f1;width:32px;height:32px;flex-shrink:0;border-radius:4px;font-size:13px}
.result-variation strong{font-size:14px;font-weight:600}
.result-variation small{display:block;font-size:12px;color:#626262;margin-top:5px}
.result-rate>strong{font-size:24px;font-variant-numeric:tabular-nums;letter-spacing:-.6px}
.result-bar{height:6px;background:#f0f0ed;border-radius:3px;margin-top:9px;overflow:hidden}
.result-bar i{display:block;height:100%;background:#30342d;border-radius:3px}
.result-bar i.baseline{background:#b8bcb2}
.result-lift{text-align:right}
.result-caption{margin:12px 0 20px;font-size:12px}
.result-details{border-top:1px solid #e9e9e6;padding:16px 0 0}
.result-details>summary{cursor:pointer;font-size:14px;font-weight:600;color:#30302e;list-style-position:inside;padding:4px 0}
.result-details>summary:focus-visible{outline:2px solid #555;outline-offset:4px}
.result-details>summary span{font-size:12px;font-weight:400;color:#626262;margin-left:12px}
.result-details[open]>summary{margin-bottom:18px}
.result-secondary,.result-checks{margin-top:24px;padding:18px 20px;border:1px solid #e9e9e6;border-radius:6px}
.result-secondary .goal-metrics{margin-top:16px}
.result-secondary .wb-panel{border:1px solid #e9e9e6}
@media(max-width:760px){.result-summary,.result-comparison{padding:18px}.result-metrics{gap:12px}.result-metrics>div{padding-left:12px}.result-metrics strong{font-size:26px}.result-metrics span,.result-metrics small{font-size:12px}.result-variation{grid-template-columns:minmax(0,1fr) 110px;gap:16px}.result-variation-name{grid-column:1/-1}.result-comparison>.wb-title{align-items:flex-start;gap:12px;flex-direction:column}}
@media(max-width:420px){.result-metrics{grid-template-columns:1fr}.result-metrics>div{padding:0 0 12px;border:0;border-bottom:1px solid #eee}.result-metrics>div:first-child{border-bottom:1px solid #eee}}
.result-recommendation ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
.result-followup{margin-top:16px;padding:18px 20px;border:1px solid #e9e9e6;border-radius:6px}
.result-followup>.panel{margin-top:0!important;padding:0;border:0}
@media(max-width:760px){.result-recommendation ul{grid-template-columns:1fr}}
/* Results use the same type, neutral surfaces and modest corners as abdriven. */
.result-summary.has-insight-cards{padding:0;border:0;background:transparent}
.insight-cards{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:16px}
.insight-card{min-width:0;display:flex;flex-direction:column;padding:22px;border:1px solid #e8e8e5;border-radius:6px;background:#fff;color:var(--ink);box-shadow:none}
.insight-label{font-size:13px;color:#626262;margin-bottom:18px}
.result-summary .insight-card h2{font-family:inherit;font-size:21px;font-weight:600;line-height:1.3;letter-spacing:-.5px;margin:0 0 12px}
.insight-card p{font-size:13px;line-height:1.55;color:#626262;margin:0 0 18px}
.insight-status{align-self:flex-start;font-size:12px;font-weight:600;color:#30302e;background:#fff1c4;border-radius:3px;padding:6px 9px;margin-top:auto}
.insight-rate-pair{display:grid;grid-template-columns:1fr 24px 1fr;gap:10px;align-items:start;margin:2px 0 20px}
.insight-rate-pair strong{font-size:32px;letter-spacing:-1px;line-height:1.15;font-weight:600;font-variant-numeric:tabular-nums}
.insight-rate-pair>div>span{display:block;font-size:12px;color:#626262;line-height:1.4;margin-top:7px;overflow-wrap:anywhere}
.insight-arrow{color:#999;font-size:20px;padding-top:7px}
.insight-card .insight-lift-copy{font-size:14px;color:#252523;font-weight:500;margin-bottom:12px}
.insight-foot{font-size:11px;line-height:1.5;color:#626262;margin-top:auto;padding-top:12px}
.insight-plan-row{margin-top:10px}
.insight-plan-row>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:8px}
.insight-plan-row strong{font-weight:500;font-variant-numeric:tabular-nums}
.insight-track{height:4px;background:#ededeb;border-radius:2px;overflow:hidden}
.insight-track i{display:block;height:100%;background:#30302e;border-radius:2px}
@media(max-width:1100px){.insight-cards{gap:12px}.insight-card{padding:18px}.insight-rate-pair strong{font-size:27px}}
@media(max-width:760px){.insight-cards{grid-template-columns:1fr}.insight-card{padding:20px}.insight-rate-pair{max-width:350px}.insight-rate-pair strong{font-size:32px}}
.result-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:420px){.result-metrics{grid-template-columns:1fr}}

/* A quiet, cursor-led data texture on the connection notice. */
.overview-notice{position:relative;isolation:isolate;overflow:hidden;--notice-x:50%;--notice-y:50%}
.overview-notice> *{position:relative;z-index:1}
.overview-notice::before,.overview-notice::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;opacity:0;transition:opacity .5s ease}
.overview-notice::before{background:radial-gradient(ellipse 210px 100px at var(--notice-x) var(--notice-y),rgba(245,210,112,.25),rgba(241,222,163,.12) 48%,transparent 78%)}
.overview-notice::after{display:none}
@media(hover:hover) and (pointer:fine){.overview-notice:hover::before,.overview-notice:hover::after{opacity:1}}
@media(prefers-reduced-motion:reduce){.overview-notice::before,.overview-notice::after{display:none;transition:none}}

.overview-notice>.notice-data-block{position:absolute;z-index:0;pointer-events:none;border-radius:1px;background:#a89c64;opacity:0;animation:notice-block-life var(--block-life) ease-in-out forwards}
@keyframes notice-block-life{0%{opacity:0;transform:translateY(3px) scaleX(.7)}30%{opacity:.18;transform:translateY(0) scaleX(1)}65%{opacity:.12}100%{opacity:0;transform:translateY(-3px) scaleX(.85)}}
@media(prefers-reduced-motion:reduce){.overview-notice>.notice-data-block{display:none;animation:none}}

/* Both conversion bars share a labelled scale starting at zero. */
.insight-rate-bars{margin:0 0 16px}
.insight-rate-row+.insight-rate-row{margin-top:14px}
.insight-rate-row>div:first-child{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:7px}
.insight-rate-row span{font-size:12px;color:#626262;overflow-wrap:anywhere}
.insight-rate-row strong{font-size:21px;line-height:1.2;letter-spacing:-.5px;font-variant-numeric:tabular-nums;white-space:nowrap}
.insight-rate-track{height:12px;border-radius:3px;background:#f3f3f1;overflow:hidden}
.insight-rate-track i{display:block;height:100%;background:#292b27;border-radius:3px}
.insight-rate-track i.baseline{background:#b9bcb5}
.insight-rate-axis{display:flex;justify-content:space-between;margin-top:7px;font-size:10px;color:#737373}

.result-data-note{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 9px;margin:14px 0 24px;font-size:12px;line-height:1.6;color:#626262}
.result-data-note strong{font-size:inherit;font-weight:600;color:#30302e;font-variant-numeric:tabular-nums}
@media(max-width:600px){.result-data-note{display:block}.result-data-note>span{margin-right:6px}}

/* Colour is reserved for result bars; all other elements stay neutral. */
.insight-cards{--result-green:#14804a;--result-red:#c9363e}
.insight-rate-row[data-tone="positive"] .insight-rate-track i{background:var(--result-green)}
.insight-rate-row[data-tone="negative"] .insight-rate-track i{background:var(--result-red)}

.result-variation[data-tone="positive"] .result-bar i{background:#14804a}
.result-variation[data-tone="negative"] .result-bar i{background:#c9363e}
.result-secondary + .result-comparison{margin-top:24px}
.revenue-scenario{margin:18px 0 24px;padding:20px;background:#fafaf8;border:1px solid #e9e9e5;border-radius:6px}
.revenue-scenario-heading{display:flex;justify-content:space-between;align-items:center;gap:24px}
.revenue-scenario-heading h3{font-size:18px;margin:0}
.revenue-scenario-heading .field{width:220px;flex-shrink:0}
.revenue-scenario-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px;margin:18px 0}
.revenue-scenario-card{padding:20px;background:white;border:1px solid #e7e7e3;border-radius:6px}
.revenue-scenario-card h4{font-size:14px;margin:0 0 10px}
.revenue-scenario-value{display:block;font-size:32px;letter-spacing:-.8px;line-height:1.3;margin:8px 0 18px;font-variant-numeric:tabular-nums}
.revenue-scenario-card dl{margin:0;font-size:12px}
.revenue-scenario-card dl>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #eee}
.revenue-scenario-card dt{color:#626262}.revenue-scenario-card dd{margin:0;text-align:right}
.revenue-scenario-note{font-size:11px;line-height:1.6;color:#626262;margin:0}
@media(max-width:760px){.revenue-scenario-heading{align-items:stretch;flex-direction:column;gap:14px}.revenue-scenario-heading .field{width:100%}.revenue-scenario{padding:16px}}

/* Revenue projection is an optional extra beneath the observed results. */
details.revenue-scenario{margin:16px 0 0;padding:12px 0 0;background:transparent;border:0;border-top:1px solid #e9e9e5;border-radius:0}
details.revenue-scenario>summary{font-size:13px;font-weight:500;color:#626262}
details.revenue-scenario .revenue-scenario-value{font-size:25px}
/* A single container for revenue/goals, with flat internal sections. */
.result-secondary .goal-metrics>.wb-panel{border:0;border-radius:0;background:transparent;box-shadow:none;padding:0}
.result-secondary .goal-metrics>.wb-panel+.wb-panel{border-top:1px solid #e9e9e6;padding-top:22px;margin-top:6px}
.result-secondary .goal-metrics .table-wrap{border:0;border-radius:0;box-shadow:none}
.result-secondary .revenue-scenario-grid{gap:20px}
.result-secondary .revenue-scenario-card{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.result-secondary .revenue-scenario-card+.revenue-scenario-card{border-left:1px solid #e9e9e6;padding-left:20px}
@media(max-width:760px){.result-secondary .revenue-scenario-grid{grid-template-columns:1fr}.result-secondary .revenue-scenario-card+.revenue-scenario-card{border-left:0;border-top:1px solid #e9e9e6;padding:18px 0 0}}

/* ---- Sidebar: a rail of websites beside the selected website's menu ---- */
:root{--sidebar:304px}
@media(max-width:1200px){:root{--sidebar:280px}}
.sidebar{display:grid;grid-template-columns:64px minmax(0,1fr);gap:0;padding:0;overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* The rail: one tile per website, the way a chat app shows its workspaces. */
.rail{display:flex;flex-direction:column;align-items:center;gap:12px;padding:28px 0 18px;overflow-y:auto;scrollbar-width:none}
.rail::-webkit-scrollbar{display:none}
.rail-brand{display:grid;place-items:center;width:40px;height:40px;margin-bottom:8px}
.rail-sites{display:flex;flex-direction:column;align-items:center;gap:10px}
.rail-site{position:relative;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:11px;display:grid;place-items:center;
  background:#fff;box-shadow:0 1px 3px rgba(35,31,25,.12);color:#20201e;font-size:16px;font-weight:600;transition:border-radius .15s,background .15s}
.rail-site:hover{background:#fff;border-radius:14px}
.rail-site.selected{background:#20201e;color:#fff;border-radius:14px;box-shadow:none}
.rail-site.selected::before{content:'';position:absolute;left:-12px;top:10px;width:4px;height:20px;border-radius:0 4px 4px 0;background:#20201e}
.rail-site .live{position:absolute;right:-3px;bottom:-3px;width:11px;height:11px;border-radius:50%;background:#4f9a72;box-shadow:0 0 0 2px rgba(255,255,255,.9)}
.rail-add{flex:none;width:40px;height:40px;padding:0;border:1.5px dashed rgba(32,32,30,.3);border-radius:11px;background:transparent;color:#403f3b;font-size:20px;line-height:1;transition:background .15s,border-color .15s}
.rail-add:hover{background:rgba(255,255,255,.6);border-color:rgba(32,32,30,.5)}
.rail button:focus-visible,.rail a:focus-visible{outline:2px solid #20201e;outline-offset:2px}

/* The panel: the selected website, a search, and its menu. */
.side-panel{display:flex;flex-direction:column;min-width:0;min-height:0;padding:28px 18px 10px 4px;overflow-y:auto;scrollbar-width:thin}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:14px}
.site-title{min-width:0}
.site-title strong{display:block;font-size:17px;line-height:1.3;letter-spacing:-.3px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-title .switcher-status{margin:2px 0 0;padding:2px 0}
.nav-search{position:relative;display:block;margin-bottom:14px}
.nav-search[hidden]{display:none}
.nav-search::before{content:'';position:absolute;left:12px;top:50%;width:14px;height:14px;transform:translateY(-50%);opacity:.55;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2320201e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") center/contain no-repeat}
.nav-search input{width:100%;height:38px;padding:0 12px 0 34px;border:0;border-radius:var(--radius-control);background:rgba(255,255,255,.6);color:#20201e;font-size:13px;box-shadow:none}
.nav-search input::placeholder{color:#737373}
.nav-search input:hover{background:rgba(255,255,255,.8)}
.nav-search input:focus{background:#fff;outline:2px solid #20201e;outline-offset:1px}
.nav-empty{padding:14px 4px;color:#737373;font-size:13px}
.nav-empty p{margin:0 0 12px}

/* A group opens to show its screens as sub-points, indented under a guide line. */
.nav-group{margin-bottom:3px}
.group-head{width:100%;text-align:left}
.group-head.active{color:#20201e;font-weight:600}
.group-head .chev{flex:none;width:7px;height:7px;margin:0 3px 0 auto;border:solid #737373;border-width:0 1.7px 1.7px 0;transform:rotate(-45deg);transition:transform .15s}
.nav-group.open .group-head .chev{transform:rotate(45deg)}
.subnav{display:grid;gap:1px;margin:2px 0 8px 22px;padding-left:12px;border-left:1px solid rgba(32,32,30,.14)}
.subnav[hidden]{display:none}
.sub-item{padding:7px 10px;border:0;border-radius:var(--radius-control);background:none;text-align:left;font-size:13.5px;font-weight:500;color:#4a4945}
.sub-item:hover{background:rgba(255,255,255,.5)}
.sub-item.selected{background:#fff;color:#20201e;font-weight:600}
.sub-item:focus-visible{outline:2px solid #20201e;outline-offset:1px}
.side-panel .menu-toggle{display:none}

/* On a narrow screen the rail runs along the top and the menu opens under one button. */
@media(max-width:720px){
  .sidebar{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;padding:12px 14px;overflow:visible}
  .rail{flex-direction:row;width:100%;padding:0 0 12px;overflow-x:auto;overflow-y:visible;gap:10px}
  .rail-brand{margin:0 6px 0 0}
  .rail-sites{flex-direction:row}
  .rail-site.selected::before{display:none}
  .side-panel{padding:0;overflow:visible}
  .panel-head{margin-bottom:0}
  .side-panel .menu-toggle{display:inline-flex;order:0}
  .sidebar:not(.menu-open) .nav-search{display:none}
  .sidebar.menu-open .nav-search{margin:12px 0 8px}
  .sidebar .project-nav,.sidebar .workspace-nav{padding-top:8px}
}

/* The revenue estimate sits on the same line as the revenue goal's title, quietly, at the right. */
.goal-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;margin-bottom:12px}
.goal-head>h3{margin:0}
.revenue-inline{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;min-width:0;font-size:12px;color:#8a8a84}
.rv-field{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:400;color:#8a8a84}
.rv-field select{width:auto;min-width:150px;height:28px;min-height:0;padding-top:0;padding-bottom:0;font-size:12px;font-weight:500;color:#30302e}
.rv-results{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px}
.rv-chip{display:inline-flex;align-items:baseline;gap:6px;color:#737373}
.rv-chip b{font-weight:500}
.rv-chip strong{font-size:14px;font-weight:600;letter-spacing:-.2px;color:#30302e;font-variant-numeric:tabular-nums}
.rv-chip strong.pos{color:#3b6f52}
.rv-chip strong.neg{color:#b44c3e}
.rv-note{color:#8a8a84}
.rv-info{display:inline-grid;place-items:center;flex:none;width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 1px #c9c9c3;color:#8a8a84;font:600 10px/1 Inter,-apple-system,"Segoe UI",sans-serif;cursor:help}
.rv-info:hover,.rv-info:focus-visible{color:#20201e;box-shadow:inset 0 0 0 1px #20201e}
.rv-info:focus-visible{outline:2px solid #20201e;outline-offset:2px}
@media(max-width:760px){.goal-head{align-items:flex-start;flex-direction:column}}

/* Dropdowns never get an outline: focusing or opening one only deepens its fill. */
select:focus,select:focus-visible,select:open,.site-switcher .site-select:focus-visible,.field select:focus-visible,
:is(main,dialog) select:focus-visible,:is(main,dialog) .field select:focus-visible{outline:0;box-shadow:none;background-color:#e2e2de}
.site-switcher .site-select:focus-visible{background-color:#fff}

/* In the extra-goal tables, a variation that beats the original on a measure reads green, and one that trails it reads red. */
td.metric-up{color:#2f7a52;font-weight:600}
td.metric-down{color:#b44c3e;font-weight:600}

/* ---- Integrations: each tool is a card with its own mark, a state, tags, and its docs and switch at the foot ---- */
.integrations-grid{gap:20px}
main .integrations-grid .integration-card{display:flex;flex-direction:column;min-height:0;padding:22px 22px 20px;border:1px solid #e3e3df;border-radius:8px;
  box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;transition:border-color .15s}
main .integrations-grid .integration-card:hover{box-shadow:none;transform:none;border-color:#c9c9c3}
.int-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.int-logo{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1px #ebebe7}
.int-logo svg,.int-logo img{display:block;max-width:26px;max-height:26px;border-radius:5px}
.int-logo svg{border-radius:0}
.int-mark{font-size:14px;font-weight:700;color:#20201e}
.int-state{padding:5px 11px;border-radius:7px;font-size:12px;font-weight:500;color:#8a8a84;box-shadow:inset 0 0 0 1px #e6e6e2}
.int-state.on{background:#e8f3ec;color:#2f7a52;box-shadow:none}
.integration-card h2{margin:0 0 6px;font-size:20px;line-height:1.3;letter-spacing:-.4px}
.integration-card p{flex:0 0 auto;margin:0 0 14px;font-size:13px;line-height:1.55;color:#737373}
.int-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.int-tag{padding:6px 11px;border-radius:8px;background:#eeeeeb;color:#30302e;font-size:12px;font-weight:500}
.integration-card .int-status{margin:0 0 14px}
.int-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:16px;border-top:1px solid #ecece8}
.int-foot .integration-links{margin:0;font-size:12px;color:#737373}
.int-foot .integration-links:hover{color:#20201e}
.int-foot .button{align-self:auto;min-height:38px;padding:8px 18px}

/* A website's own favicon as its rail tile, and a small badge when it is recognised as a Shopify store. */
.rail-site.has-logo{background:#fff}
.rail-site.has-logo img{display:block;width:26px;height:26px;object-fit:contain;border-radius:6px}
.rail-site.has-logo.selected{background:#fff;color:#20201e;box-shadow:0 0 0 2px #20201e}
.platform-badge{display:inline-block;margin:0 0 2px;padding:1px 7px;border-radius:4px;background:#e6f0e2;color:#3c6b2b;font-size:11px;font-weight:600;letter-spacing:.2px}
.platform-badge[hidden]{display:none}



/* First-party tracking: the DNS steps and the buttons beside the subdomain field. */
.tracking-actions{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.wb-steps{margin:14px 0 4px;padding-left:20px;display:grid;gap:8px;font-size:13px;line-height:1.6;color:#4a4945}
.wb-tag.good{background:#e8f3ec;color:#2f7a52}

/* ---- Experiment filters: text tabs with an underline for the current one and a coloured count for each status ---- */
main .toolbar{align-items:flex-end;gap:16px;margin-bottom:18px;border-bottom:1px solid var(--line,#e7e7e3)}
main .toolbar .search{align-self:center;margin-bottom:6px}
main .toolbar .tabs{display:flex;flex-wrap:wrap;gap:6px;padding:0;background:none;border-radius:0}
main .toolbar .tabs .tab{display:inline-flex;align-items:center;gap:10px;padding:12px 12px 13px;margin-bottom:-1px;border:0;border-bottom:2px solid transparent;border-radius:0;
  background:none;box-shadow:none;color:#737373;font-size:15px;font-weight:500;line-height:24px}
main .toolbar .tabs .tab:hover{background:none;color:#20201e}
main .toolbar .tabs .tab.active{background:none;box-shadow:none;color:#20201e;font-weight:600;border-bottom-color:#20201e}
main .toolbar .tabs .tab:focus-visible{outline:2px solid #20201e;outline-offset:-2px;border-radius:3px}
main .toolbar .tab-count{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 8px;margin:0;border-radius:999px;background:#eeeeeb;color:#555;font-size:13px;font-weight:600;line-height:1}
main .toolbar .tab[data-filter="all"] .tab-count{background:#edf1f7;color:#33415c}
main .toolbar .tab[data-filter="running"] .tab-count{background:#d9f7e4;color:#1d8a4a}
main .toolbar .tab[data-filter="paused"] .tab-count{background:#fde2e2;color:#d02f2f}
main .toolbar .tab[data-filter="completed"] .tab-count{background:#ece8fb;color:#5d4a8a}
main .toolbar .tab[data-filter="attention"] .tab-count{background:#ffefc2;color:#b26100}
main .toolbar .tab[data-filter="draft"] .tab-count{background:#eeeeeb;color:#555}
@media(max-width:720px){main .toolbar{flex-wrap:wrap}main .toolbar .tabs{overflow-x:auto;flex-wrap:nowrap;width:100%}main .toolbar .tabs .tab{white-space:nowrap}main .toolbar .search{width:100%;max-width:none;margin-bottom:12px}}

/* Language switch beside the user card. */
.workspace-footer{display:flex;align-items:center;gap:8px}
.workspace-footer .user-button{flex:1;min-width:0}
.lang-switch{order:2;display:flex;gap:2px;padding:2px;border-radius:6px;background:rgba(32,32,30,.08)}
.lang-switch button{min-height:0;padding:4px 7px;border:0;border-radius:4px;background:transparent;color:#737373;font-size:11px;font-weight:600;letter-spacing:.3px}
.lang-switch button:hover{color:#20201e}
.lang-switch button.on{background:#fff;color:#20201e;box-shadow:0 1px 2px rgba(35,31,25,.1)}
/* The name in the footer stays on one line beside the language switch, however long the language makes it */
.workspace-footer .user-button>span:last-child{min-width:0}
.workspace-footer .user-button strong,.workspace-footer .user-button small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Name above, language switch below: the name is never cut short by the switch */
.workspace-footer{flex-direction:column;align-items:stretch;gap:6px}
.workspace-footer .lang-switch{align-self:flex-start;margin-left:8px}

/* Info icons with a shared tooltip, the Shopify quick-start banner, and the duplicate button in library rows. */
.info{display:inline-grid;place-items:center;flex:none;width:15px;height:15px;margin-left:5px;border-radius:50%;box-shadow:inset 0 0 0 1px #c3c3bd;color:#8a8a84;font:600 10px/1 Inter,-apple-system,"Segoe UI",sans-serif;letter-spacing:0;text-transform:none;cursor:help;vertical-align:1px}
.info:hover,.info:focus-visible{color:#20201e;box-shadow:inset 0 0 0 1px #20201e}
.info:focus-visible{outline:2px solid #20201e;outline-offset:2px}
#tooltip{position:fixed;inset:auto;margin:0;max-width:300px;padding:10px 12px;border:0;border-radius:6px;background:#20201e;color:#fff;font-size:12px;font-weight:400;line-height:1.55;letter-spacing:0;text-transform:none;box-shadow:0 10px 30px rgba(0,0,0,.25);pointer-events:none}
.quickstart{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 16px;padding:16px 18px;border-radius:10px;background:#f1f6ee}
.quickstart strong{display:block;margin-bottom:2px;color:#2f5a22}
.quickstart p{margin:0;font-size:13px;line-height:1.55;color:#4f5f49}
.wb-row-actions{white-space:nowrap}
.wb-row-actions .button+.button{margin-left:6px}
[data-wb="duplicate-library"]{display:inline-grid;place-items:center;width:40px;padding:0}
@media(max-width:760px){.quickstart{flex-direction:column;align-items:flex-start}}


/* ---- Experiment builder as a short sequence of steps ---- */
.builder-page{max-width:820px}
.stepper{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 26px;padding:0;list-style:none}
.step-pill{display:inline-flex;align-items:center;gap:8px;min-height:0;padding:7px 15px 7px 7px;border-radius:999px;background:#eeeeeb;color:#737373;font-size:13px;font-weight:500}
.step-pill .num{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#737373;font-size:12px;font-weight:600}
.step-pill:hover:not(.current){background:#e5e5e2}
.step-pill.current{background:#20201e;color:#fff}
.step-pill.current .num{background:#fff;color:#20201e}
.step-pill.done{background:#e8f3ec;color:#2f7a52}
.step-pill.done .num{background:#2f7a52;color:#fff}
.wizard-step{display:grid;gap:18px}
.wizard-step[hidden]{display:none!important}
.step-title{margin:0;font-size:22px;line-height:1.3;letter-spacing:-.5px}
.step-title.step-sub{margin-top:14px;padding-top:26px;border-top:1px solid #ecece8;font-size:18px}
.step-help{margin:4px 0 0;color:#737373;font-size:14px;line-height:1.6}
.step-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px 16px}
.pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.pick-card{position:relative;display:block;cursor:pointer}
.pick-card input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.pick-body{position:relative;display:grid;gap:3px;padding:13px 14px 13px 44px;border-radius:8px;background:#fff;box-shadow:inset 0 0 0 1px #e3e3df;transition:box-shadow .15s,background .15s}
.pick-body::before{content:'';position:absolute;left:14px;top:15px;width:18px;height:18px;border-radius:5px;background:#fff;box-shadow:inset 0 0 0 1.5px #b9b9b3}
.pick-card:hover .pick-body{background:#fafaf8}
.pick-card input:checked + .pick-body{background:#f4f8f2;box-shadow:inset 0 0 0 2px #2f7a52}
.pick-card input:checked + .pick-body::before{background:#2f7a52 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.2 2.4 2.4 4.6-5'/%3E%3C/svg%3E") center/12px no-repeat;box-shadow:none}
.pick-card input:focus-visible + .pick-body{outline:2px solid #20201e;outline-offset:2px}
.pick-body strong{font-size:14px;font-weight:600}
.pick-body small{color:#737373;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.pick-empty{padding:18px;border-radius:8px;background:#f5f5f3;color:#737373;font-size:14px;line-height:1.6}
.wb-more{border-radius:8px;background:#fff;box-shadow:inset 0 0 0 1px #e6e6e2}
.wb-more>summary{display:flex;align-items:center;gap:9px;padding:13px 16px;list-style:none;cursor:pointer;font-size:13px;font-weight:600;color:#4a4945}
.wb-more>summary::-webkit-details-marker{display:none}
.wb-more>summary::before{content:'';width:7px;height:7px;border:solid #737373;border-width:0 1.6px 1.6px 0;transform:rotate(-45deg);transition:transform .15s}
.wb-more[open]>summary::before{transform:rotate(45deg)}
.more-body{display:grid;gap:14px;padding:4px 16px 16px}
.review{padding:16px 18px;border-radius:8px;background:#f5f5f3}
.review h3{margin:0 0 8px;font-size:12px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;color:#737373}
.review .definition{margin:0}
@media(max-width:720px){.step-pill span:last-child{display:none}.step-pill.current span:last-child{display:inline}}

.field[hidden]{display:none!important}

/* Who made a change, on each line of the activity log. */
.activity-who{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 0}
.activity-who:empty{display:none}
.activity-who .who{display:inline-flex;align-items:center;gap:8px;font-size:12px}
.activity-who .who strong{font-weight:600}
.activity-who .who.system{color:#737373}
.activity-who .avatar{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#ededeb;color:#444;font-size:11px;font-weight:600}

/* ---- Learnings: each experiment is its own bordered card, with its parts set apart by fine lines ---- */
#learning-list{display:grid;gap:16px;margin-top:20px}
.learning{border:1px solid #e0e0db;border-radius:10px;background:#fff;overflow:hidden}
.learning-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px}
.learning-head h3{margin:0;font-size:15px;font-weight:600;letter-spacing:-.1px}
.learning-outcome{flex:none;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:500;white-space:nowrap}
.learning-meta{padding:9px 20px;border-top:1px solid #ecece8;background:#fafaf8;color:#737373;font-size:12px}
.learning-row{margin:0;padding:12px 20px;border-top:1px solid #ecece8;font-size:13px;line-height:1.6;color:#30302e}
.learning-row:has(>b){display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px}
.learning-row>b{color:#737373;font-weight:500}
.learning-hypothesis{color:#4a4945}
.learning-hypothesis em{font-style:normal}
.learning-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-top:1px solid #ecece8;background:#fafaf8}
.learning-tags{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
@media(max-width:560px){.learning-row:has(>b){grid-template-columns:1fr;gap:2px}}

/* Authentication has its own layout; workspace chrome waits for a valid session. */
body:not([data-auth="signed-in"]) .sidebar,
body:not([data-auth="signed-in"]) .topbar{display:none!important}
body:not([data-auth="signed-in"]) .main-shell{width:100%;max-width:none;margin:0;min-height:100svh;border:0;border-radius:0;background:transparent;box-shadow:none}
body:not([data-auth="signed-in"]) #main{display:grid;place-items:center;min-height:100svh;width:100%;max-width:none;margin:0;padding:32px 20px;box-sizing:border-box}
body:not([data-auth="signed-in"]) .auth-panel{width:100%;max-width:440px;margin:0;padding:36px;background:#fff;border:1px solid #e9e9e4;border-radius:10px;box-shadow:none;box-sizing:border-box}
.auth-brand{display:inline-flex;align-items:center;gap:10px;margin-bottom:28px;font-size:25px;font-weight:750;letter-spacing:-1px;color:#242622;text-decoration:none}
.auth-brand .brand-mark{width:30px;height:30px;border-radius:7px}
body:not([data-auth="signed-in"]) .auth-panel h1{font-size:25px;line-height:1.25}
body:not([data-auth="signed-in"]) .auth-panel>p{margin:10px 0 24px;color:#6b6b68}
@media(max-width:480px){body:not([data-auth="signed-in"]) #main{padding:24px 16px}body:not([data-auth="signed-in"]) .auth-panel{padding:28px 22px}}

/* ---- "New experiment" dialog: a website picker with search, and a hint beside a label ---- */
.field-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.field-aside{color:#737373;font-size:12px;font-weight:400}
.req{margin-left:2px;color:#b44c3e}
.site-combo{position:relative}
.combo-trigger{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:6px 12px;border:1px solid transparent;border-radius:3px;background:#f5f5f2;color:#20201e;text-align:left;cursor:pointer;transition:background .15s}
.combo-trigger:hover{background:#efefeb}
.combo-trigger[aria-expanded="true"],.combo-trigger:focus-visible{border-color:#20201e;background:#fff;outline:0}
.combo-logo{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:4px;background:#20201e;color:#fff;font-size:12px;font-weight:600}
.combo-logo.has-logo{background:#fff;box-shadow:inset 0 0 0 1px #e6e6e2}
.combo-logo img{display:block;max-width:20px;max-height:20px}
.combo-text{display:grid;flex:1;min-width:0;line-height:1.35}
.combo-text strong{overflow:hidden;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.combo-text small{overflow:hidden;color:#737373;font-size:12px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}
.combo-chevron{flex:none;width:7px;height:7px;margin:0 3px 3px 0;border:solid #20201e;border-width:0 1.6px 1.6px 0;transform:rotate(45deg)}
.combo-trigger[aria-expanded="true"] .combo-chevron{margin:3px 3px 0 0;transform:rotate(-135deg)}
.combo-panel{position:absolute;z-index:6;top:calc(100% + 4px);left:0;right:0;padding:8px;border:1px solid #e0e0dc;border-radius:4px;background:#fff;box-shadow:0 10px 28px rgba(35,31,25,.12)}
.combo-panel[hidden]{display:none}
.combo-search{width:100%;height:38px;margin:0 0 6px;padding:8px 10px;border:1px solid #e0e0dc;border-radius:3px;background:#fff;font-size:13px}
.combo-search:focus{border-color:#20201e;outline:0}
.combo-list{max-height:236px;margin:0;padding:0;overflow:auto;list-style:none}
.combo-option{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:3px;cursor:pointer}
.combo-option:hover,.combo-option.active{background:#f5f5f2}
.combo-option[aria-selected="true"]::after{content:'';flex:none;width:5px;height:10px;margin-right:4px;border:solid #2f7a52;border-width:0 2px 2px 0;transform:rotate(45deg)}
.combo-empty{padding:12px 10px;color:#737373;font-size:13px}
