/* peepbloom design system. Tokens, type, radii and motion follow the Poulo study (Projects/Poulo Study/rebuild). */
@font-face{font-family:"Geist";src:url(/fonts/geist-wght.woff2) format("woff2");font-weight:100 900;font-display:swap}
@property --glow-a{syntax:"<angle>";inherits:false;initial-value:0deg}

:root{
  --background:#fff;--foreground:#0a0a0a;--primary:#171717;--primary-foreground:#fafafa;
  --secondary:#f5f5f5;--secondary-foreground:#171717;--muted-foreground:#6b6b6b;
  --border:#e5e5e5;--border-strong:#a1a1a1;--ring:#737373;
  --fg5:color-mix(in oklab,var(--foreground) 5%,transparent);
  --fg6:color-mix(in oklab,var(--foreground) 6%,transparent);
  --fg10:color-mix(in oklab,var(--foreground) 10%,transparent);
  --fg15:color-mix(in oklab,var(--foreground) 15%,transparent);
  --fg40:color-mix(in oklab,var(--foreground) 60%,transparent);
  --fg70:color-mix(in oklab,var(--foreground) 70%,transparent);
  --fg80:color-mix(in oklab,var(--foreground) 80%,transparent);
  --ok-bg:color-mix(in oklab,#00bb7f 13%,transparent);--ok-fg:#00704c;
  --warn-bg:color-mix(in oklab,#f59e0b 15%,transparent);--warn-fg:#8a5206;
  --bad-fg:#c10030;
  --sans:"Geist",ui-sans-serif,system-ui,-apple-system,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,monospace; /* raw file contents only; everything else is Geist */
  --ease-loader:cubic-bezier(.76,0,.24,1);
  --ease-out-expo:cubic-bezier(.16,1,.3,1);
  --brand-mark:#3257c4;
  --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --dots:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 22'%3E%3Ccircle cx='8' cy='4' r='2'/%3E%3Ccircle cx='13' cy='7.5' r='1.6'/%3E%3Ccircle cx='6.4' cy='12' r='1.4'/%3E%3Ccircle cx='15.5' cy='13' r='2'/%3E%3Ccircle cx='10' cy='15.5' r='1.5'/%3E%3Ccircle cx='5' cy='18' r='1.2'/%3E%3C/svg%3E");
  --chevs:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 20' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 4 7 6-7 6'/%3E%3C/svg%3E");
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--background)}
body{margin:0;background:var(--background);color:var(--foreground);font-family:var(--sans);font-size:14px;line-height:1.5;overflow-x:clip;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit;text-underline-offset:3px;text-decoration-color:var(--fg15)}
a:hover{text-decoration-color:currentColor}
:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
h1{font-size:calc(32px*var(--lab-type,1));line-height:42px;font-weight:500;letter-spacing:-.02em;margin:4px 0 8px}
h2{font-size:18px;line-height:26px;font-weight:500;letter-spacing:-.01em;margin:0 0 8px}
h3{font-size:14px;line-height:22px;font-weight:500;margin:0 0 8px}
p{line-height:1.6}
small,.muted{color:var(--muted-foreground)}
strong{font-weight:500}
.icon{width:16px;height:16px;display:block;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}


/* Buttons */
button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:0;border-radius:999px;padding:8px 18px;background:var(--background);color:var(--foreground);font-weight:400;box-shadow:0 0 .5px rgba(0,0,0,.4),0 1px .5px rgba(0,0,0,.04),0 2px 2px rgba(0,0,0,.04);transition:background-color .15s,scale .2s var(--ease-out-expo),box-shadow .2s}
@media (hover:hover){button:hover{background:var(--secondary)}}
@media (hover:hover){.card button:hover{background:color-mix(in srgb,var(--background) 88%,var(--foreground))}}
button:active{scale:.98}
button:disabled{opacity:.42;cursor:not-allowed;scale:1}
button.primary,a.button.primary{position:relative;background:var(--primary);color:var(--primary-foreground);font-weight:500;padding-left:50px;padding-right:20px;box-shadow:0 10px 30px -12px rgba(0,0,0,.35);overflow:hidden}
button.primary::before,a.button.primary::before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:32px;border-radius:999px;background:var(--secondary);transition:width .5s var(--ease-out-expo)}
button.primary::after,a.button.primary::after{content:"";position:absolute;left:14px;top:50%;width:16px;height:18px;translate:0 -50%;background:var(--secondary-foreground);-webkit-mask:var(--dots) center/contain no-repeat;mask:var(--dots) center/contain no-repeat}
@media (hover:hover){button.primary:hover,a.button.primary:hover{background:color-mix(in srgb,var(--primary) 88%,var(--background))}}
@media (hover:hover){button.primary:hover::before,a.button.primary:hover::before{width:38px}}
@media (hover:hover){button.primary:hover::after,a.button.primary:hover::after{-webkit-mask-image:var(--chevs);mask-image:var(--chevs)}}
button.link{background:none;box-shadow:none;padding:4px 8px;min-height:32px;text-decoration:underline;text-decoration-color:var(--fg15)}
a.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:999px;padding:8px 18px;background:var(--background);text-decoration:none;box-shadow:0 0 .5px rgba(0,0,0,.4),0 1px .5px rgba(0,0,0,.04),0 2px 2px rgba(0,0,0,.04)}

/* Inputs */
input,select,textarea{width:100%;min-height:44px;border:1px solid var(--border);border-radius:14px;background:var(--background);padding:10px 14px;color:var(--foreground);transition:border-color .15s,box-shadow .15s}
@media (hover:hover){input:hover,select:hover,textarea:hover{border-color:var(--border-strong)}}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:0;border-color:var(--foreground);box-shadow:0 0 0 3px var(--fg10)}
input[type=checkbox]:focus-visible,input.toggle:focus-visible{outline:2px solid var(--ring);outline-offset:2px;box-shadow:none;border-color:transparent}
input[type=password]{font-family:ui-sans-serif,system-ui,-apple-system,sans-serif} /* Geist has no password dot; never rely on fallback for it */
input::placeholder,textarea::placeholder{color:var(--muted-foreground)}
select{appearance:none;-webkit-appearance:none;background-image:var(--chev);background-repeat:no-repeat;background-position:right 12px center;padding-right:36px;text-overflow:ellipsis}
textarea{min-height:96px;resize:vertical}
input[type=file]{padding:9px 12px;min-height:44px}
input[type=file]::file-selector-button{font:inherit;border:0;border-radius:999px;background:var(--secondary);color:inherit;padding:4px 12px;margin-right:10px;cursor:pointer}
input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--foreground)}
label{display:block;font-size:13px;font-weight:500;margin:16px 0 8px}
input.toggle{appearance:none;-webkit-appearance:none;display:block;flex:none;width:48px;height:28px;min-height:28px;padding:0;border:0;border-radius:999px;background:color-mix(in oklab,var(--foreground) 22%,transparent);position:relative;cursor:pointer;transition:background-color .3s}
input.toggle::before{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.25);transition:transform .45s var(--ease-out-expo)}
input.toggle:checked{background:var(--foreground)}
input.toggle:checked::before{transform:translateX(20px)}
input.toggle:disabled{opacity:.45;cursor:not-allowed}
.checks{display:flex;gap:10px;align-items:flex-start;margin:18px 0;font-size:13px;line-height:1.6}
.checks input{flex:none;margin:2px 0}
.checks label{margin:0;font-weight:400}
.inline-label{display:flex;gap:10px;align-items:center;margin:0}
.inline-label select{width:auto}

/* Shell */
.shell{display:grid;grid-template-columns:276px minmax(0,1fr);min-height:100vh;min-height:100svh}
.shell>div{min-width:0}
.sidebar{position:sticky;top:12px;margin:12px 0 12px 12px;height:calc(100vh - 24px);height:calc(100svh - 24px);padding:20px 12px 16px;border-radius:28px;display:flex;flex-direction:column;z-index:30}
.glass{border:1px solid rgba(255,255,255,.5);background:rgba(255,255,255,.35);box-shadow:0 10px 40px -10px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.7),inset 0 -1px 0 rgba(255,255,255,.15);-webkit-backdrop-filter:blur(40px) saturate(2);backdrop-filter:blur(40px) saturate(2)}
.brand{display:flex;align-items:center;gap:10px;padding:0 8px;font-size:20px;font-weight:600;letter-spacing:-.04em;line-height:1.1;text-decoration:none;color:var(--foreground)}
.brandmark{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;border-radius:12px;background:var(--brand-mark);color:#fff;font-size:20px;font-weight:600;letter-spacing:0}
.brand small{display:block;font-size:11px;font-weight:400;letter-spacing:0;margin-top:2px;line-height:1.2}
.workspace{margin:16px 4px 8px;font-size:12px;color:var(--muted-foreground)}
.workspace select{margin:6px 0 6px;font-size:13px;color:var(--foreground);background-color:color-mix(in srgb,var(--background) 60%,transparent);min-height:40px;padding-block:8px}
.nav-title{font-size:12px;color:var(--muted-foreground);margin:12px 12px 6px}
.sidebar nav{position:relative;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;padding:1px}
.sidebar nav::-webkit-scrollbar{display:none}
.nav-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-foot{flex:none;margin-top:10px;padding:12px 10px 0;border-top:1px solid var(--fg5);font-size:12px;line-height:1.5;color:var(--muted-foreground)}
.sidebar-foot p{margin:6px 0 10px}
.sidebar-user{display:flex;align-items:center;gap:8px;color:var(--foreground);min-width:0}
.sidebar-user span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-foot .pill{margin-bottom:2px}
.avatar{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:var(--fg10);color:var(--foreground);font-size:11px;font-weight:600}

/* Top bar: a floating pill */
.topbar{position:sticky;top:12px;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;margin:12px 24px 0;padding:6px 8px 6px 20px;border-radius:999px}
.topbar .row{flex-wrap:nowrap;gap:4px;min-width:0}
.topbar button:not(.icon-button){min-height:40px;padding:6px 16px;white-space:nowrap}
#campaign-select{width:190px;min-height:40px;padding-block:6px;font-size:13px;border-radius:999px;background-color:color-mix(in srgb,var(--background) 60%,transparent);margin-right:4px}
/* Progressive blur on the scrolling edge */
.edge{position:fixed;inset-inline:0;z-index:20;pointer-events:none}
.edge.top{top:0;height:96px}
.edge.bottom{bottom:0;height:56px}
.edge i{position:absolute;inset:0;display:block}

/* Page */
.main{max-width:1280px;margin:0 auto;padding:40px 24px 80px;outline:none}
.main.enter>*{animation:rise .7s var(--ease-out-expo) both}
.main.enter>*:nth-child(2){animation-delay:.05s}
.main.enter>*:nth-child(3){animation-delay:.1s}
.main.enter>*:nth-child(4){animation-delay:.15s}
.main.enter>*:nth-child(n+5){animation-delay:.2s}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.eyebrow{font-size:12px;line-height:18px;color:var(--fg40)}
.pagehead{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:32px}
.pagehead p{margin:0;color:var(--muted-foreground);font-size:16px;max-width:64ch}
.row{display:flex;align-items:center;gap:12px}
.between{justify-content:space-between;flex-wrap:wrap}
#print-report{white-space:nowrap}
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:var(--ok-bg);color:var(--ok-fg);padding:3px 10px;font-size:12px;line-height:18px;font-weight:500;white-space:nowrap}
.pill.amber{background:var(--warn-bg);color:var(--warn-fg)}
.pill.gray{background:var(--fg6);color:var(--fg70)}
.grid{display:grid;gap:16px}
.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}
.two{grid-template-columns:minmax(0,1.9fr) minmax(280px,1fr)}
.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{background:var(--secondary);border-radius:calc(var(--lab-radius,28px) - 4px);padding:24px;min-width:0}
.card .card{background:var(--background);border-radius:calc(var(--lab-radius,28px) - 8px)}
.stats .card{display:flex;flex-direction:column;justify-content:space-between;gap:28px;border:1px solid transparent;transition:translate .3s ease-out,background-color .3s ease-out,border-color .3s ease-out,box-shadow .3s ease-out}
@supports (grid-template-rows:subgrid){.grid.stats>.card{display:grid;grid-row:span 3;grid-template:subgrid/minmax(0,1fr);justify-content:stretch}}
.stat-label{font-size:14px;font-weight:500;color:var(--muted-foreground);transition:color .3s}
.stat-value{font-size:48px;line-height:1;font-weight:500;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.stat-note{font-size:12px;line-height:18px;color:var(--muted-foreground)}
@media (hover:hover){
  .stats .card:hover{translate:0 -4px;border-color:var(--border);background:var(--background);box-shadow:0 12px 30px -16px rgba(0,0,0,.25)}
  .stats .card:hover .stat-label{color:var(--foreground)}
}
.section{margin-top:16px}
.notice{border-radius:20px;background:var(--fg6);color:var(--fg80);padding:14px 18px;font-size:13px;line-height:1.6;margin:16px 0;overflow-wrap:anywhere}
.notice pre{white-space:pre-wrap;overflow-wrap:anywhere}
.error{color:var(--bad-fg);font-size:13px;margin:12px 0}
.empty{text-align:center;padding:48px 24px;color:var(--muted-foreground);font-size:14px}
.empty strong{display:block;font-size:18px;color:var(--foreground);margin:12px;font-weight:500}
.right{text-align:right}
.flex-end{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:20px}
.inline-form{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.full{grid-column:1/-1}
.upload{padding:36px 24px;border:1px dashed var(--border-strong);border-radius:20px;background:var(--background);text-align:center;margin-top:16px}
.upload input{max-width:420px;margin-inline:auto;display:block}
details{margin-top:12px}
summary{cursor:pointer;font-size:13px;padding-block:10px;margin-block:-4px}
pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--mono);font-size:12px;background:var(--background);padding:16px;border-radius:14px;max-height:300px;overflow:auto}
.page-footer{margin-top:40px;font-size:12px;color:var(--muted-foreground);display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 20px}

/* Tables and lists: the reference's hairline rows, set on an inner panel */
.table-wrap{overflow:auto;max-width:100%}
.card>.table-wrap,form>.table-wrap{background:var(--background);border-radius:18px;margin-top:12px;padding:2px 6px}
.card .card>.table-wrap{background:transparent;padding:0}
table{width:100%;border-collapse:collapse;font-size:13px}
th{text-align:left;color:var(--muted-foreground);font-size:12px;font-weight:400;padding:12px 10px;border-bottom:1px solid var(--fg6);white-space:nowrap}
td{padding:12px 10px;border-bottom:1px solid var(--fg5);vertical-align:middle;font-variant-numeric:tabular-nums}
tr:last-child td{border-bottom:0}
td strong{font-weight:500}
td .muted{font-size:12px;display:block;margin-top:2px}
td button{min-height:36px;padding:4px 14px;margin:2px}
tbody tr{transition:background-color .15s}
@media (hover:hover){tbody tr:hover{background:var(--fg5)}}
.mini-list{list-style:none;padding:0;margin:12px 0 0}
.mini-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--fg6);font-size:13px}
.mini-list li:last-child{border:0}
.saved-values dt{font-weight:500;margin-top:.5rem}
.saved-values dd{margin-left:0;overflow-wrap:anywhere}

/* Activity chart: stacked columns, one per recorded date. The file claims nothing between dates. */
:root{--s1:#2a78d6;--s2:#eb6834;--s3:#1baf7a;--s4:#eda100;--s5:#e87ba4;--s6:#008300;--s7:#6250d6;--s8:#e34948}
.s1{--c:var(--s1)}.s2{--c:var(--s2)}.s3{--c:var(--s3)}.s4{--c:var(--s4)}.s5{--c:var(--s5)}.s6{--c:var(--s6)}.s7{--c:var(--s7)}.s8{--c:var(--s8)}

.vz{margin:20px 0 4px;outline-offset:6px;border-radius:12px;color:var(--foreground)}
.vz-read{display:flex;flex-direction:column;gap:2px;min-height:82px;margin-bottom:14px}
.vz-k,.vz-p{font-size:12px;line-height:18px;color:var(--muted-foreground)}
.vz-big{font-size:34px;line-height:40px;font-weight:500;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.vz .chart-labels{margin-top:8px}
.vz-note{margin:10px 0 0;font-size:12px;line-height:18px;color:var(--muted-foreground)}
.vz-plot{position:relative;display:flex;align-items:flex-end;gap:clamp(1px,.35vw,3px);height:200px;touch-action:pan-y;cursor:crosshair}
.vz-col{position:relative;flex:1;min-width:0;height:100%;display:flex;flex-direction:column-reverse;gap:2px;transition:opacity .18s}
.vz-plot.scrubbing .vz-col:not(.on){opacity:.32}
.vz-col::after{content:"";position:absolute;inset:0 -1px}
.vz.anim .vz-col{animation:vz-rise .9s var(--ease-out-expo) both;animation-delay:calc(var(--i)*8ms);transform-origin:bottom}
@keyframes vz-rise{from{opacity:0;transform:scaleY(.04)}to{opacity:1;transform:none}}
.vz-legend{display:flex;flex-wrap:wrap;gap:6px 16px;list-style:none;margin:12px 0 0;padding:0;font-size:12px;color:var(--muted-foreground)}
.vz-legend li{display:flex;align-items:center;gap:6px}
.vz-legend i{display:block;width:10px;height:10px;border-radius:3px;background:var(--c)}

.vz-col i{display:block;height:var(--h);min-height:2px;border-radius:4px;background:var(--c)}

/* Category mix */
.vz-mix{margin-top:20px;padding-top:16px;border-top:1px solid var(--fg6)}
.vz-seg{display:flex;gap:2px;height:14px}
.vz-seg i{display:block;flex:var(--w) 1 0;min-width:4px;border-radius:4px;background:var(--c)}
.vz-mix.anim .vz-seg{animation:vz-grow 1s var(--ease-out-expo) both;transform-origin:left}
@keyframes vz-grow{from{transform:scaleX(.03);opacity:0}to{transform:none;opacity:1}}
.vz-mix-list{list-style:none;margin:12px 0 0;padding:0;font-size:13px}
.vz-mix-list li{display:grid;grid-template-columns:10px minmax(0,1fr) auto 52px;align-items:center;gap:10px;padding:6px 0}
.vz-mix-list i{display:block;width:10px;height:10px;border-radius:3px;background:var(--c)}
.vz-mix-list b{font-weight:500;font-variant-numeric:tabular-nums}
.vz-mix-list em{font-style:normal;text-align:right;color:var(--muted-foreground);font-variant-numeric:tabular-nums}
.chart-labels{display:flex;justify-content:space-between;font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted-foreground)}
.chart-controls{display:flex;gap:12px;margin-top:12px}
.chart-controls label{flex:1;font-weight:400;color:var(--muted-foreground);font-size:12px;margin:8px 0 0}
.chart-controls select{margin-top:6px}
.legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--muted-foreground);align-items:center}
.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:var(--foreground)}

/* Tasks */
.task-toolbar{flex-wrap:wrap}
.task-toolbar .list-tools{order:3}
.task-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.task-column{background:color-mix(in srgb,var(--background) 45%,transparent);border-radius:20px;padding:14px;min-width:0}
.task-column>h3{display:flex;justify-content:space-between;margin:2px 4px 0}
.task-item{background:var(--background);border:1px solid transparent;padding:16px;border-radius:18px;margin-top:10px;overflow-wrap:anywhere;transition:translate .3s ease-out,border-color .3s ease-out,box-shadow .3s ease-out}
@media (hover:hover){.task-item:hover{translate:0 -2px;border-color:var(--border);box-shadow:0 12px 30px -18px rgba(0,0,0,.3)}}
.task-item p{font-size:12px;margin:6px 0}
.task-item label{font-size:12px;margin:10px 0 6px}
.task-item select{min-height:38px;padding-block:6px;font-size:13px}
.task-item button{min-height:38px;padding:4px 14px;font-size:13px}
.list-tools{width:100%;margin:12px 0}
.list-tools .row{flex-wrap:wrap;gap:8px;margin-bottom:8px}
.list-tools input{flex:1 1 180px;min-width:0;width:auto;border-radius:999px}
.list-tools select{width:auto;max-width:100%;border-radius:999px}
.list-tools label{margin:0;font-size:12px;font-weight:400;color:var(--muted-foreground)}
.form-feedback{margin-bottom:1rem}

/* Support and notifications */
.conversation-link{display:block;width:100%;text-align:left;padding:16px;margin:10px 0;border-radius:18px}
.conversation-link>span{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:10px}
.message-list{max-height:600px;overflow-y:auto;padding:10px 0}
.message{background:var(--background);padding:16px;border-radius:18px;margin:10px 0;overflow-wrap:anywhere}
.message.internal{background:var(--warn-bg)}
.message p{white-space:normal}
.message small{font-size:12px}
.notification{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 10px;border-bottom:1px solid var(--fg6);overflow-wrap:anywhere}
.notification>div{min-width:0}
.notification.unread{box-shadow:inset 2px 0 0 var(--foreground);padding-left:18px}
.notification p{margin:6px 0}
.notification button{flex-shrink:0}
.checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.checklist button{justify-content:flex-start;text-align:left;font-size:13px;border-radius:16px}
.checklist button>.muted{margin-left:auto}
.check-circle{color:var(--muted-foreground);font-size:18px}
.check-circle.complete{color:var(--foreground)}

/* The character's backdrop on everything the public sees. Staff screens stay neutral. */
:root:has(.product,.login){--background:var(--lab-bg,#fffafc);--secondary:#fff;--secondary-foreground:#171717;--muted-foreground:#6d5660;--border:color-mix(in srgb,var(--background) 88%,#b4306b);--g1:#fdebf2;--g2:#fdebf2;--g3:#fff}

/* The sky and the character, shared by the sign-in and the product hero */
.scene{position:absolute;inset-inline:0;top:0;z-index:-10;overflow-x:clip;pointer-events:none}
.scene-clouds{position:absolute;inset:0;opacity:0;background:linear-gradient(to bottom,var(--g1,#e0f0fd),color-mix(in srgb,var(--g2,#eff7fe) 70%,transparent) 45%,transparent);-webkit-mask-image:linear-gradient(to bottom,#000 var(--lab-depth,55%),transparent);mask-image:linear-gradient(to bottom,#000 var(--lab-depth,55%),transparent)}
[data-scene=clouds] .scene-clouds{opacity:1}
.hero-cloud{position:absolute;left:0;top:calc(var(--t,10)*var(--lab-cloud-spread,1.48)*1%);height:96px;width:288px;scale:calc(var(--cloud-scale,1)*var(--lab-cloud-size,1.04));animation:hero-cloud-drift linear infinite paused}
[data-scene=clouds] .hero-cloud{animation-play-state:running}
.hero-cloud span{position:absolute;border-radius:999px;background:color-mix(in srgb,var(--g3,#fff) calc(var(--lab-cloud-op,1)*100%),transparent);filter:blur(var(--lab-cloud-blur,12px))}
.hero-cloud span:nth-child(1){left:24px;top:32px;height:56px;width:160px}
.hero-cloud span:nth-child(2){left:80px;top:8px;height:80px;width:112px}
.hero-cloud span:nth-child(3){left:144px;top:28px;height:56px;width:112px}
@keyframes hero-cloud-drift{0%{translate:-25vw}to{translate:110vw}}
.round{flex:none;display:inline-grid;place-items:center;width:52px;height:52px;min-height:52px;padding:0;border-radius:50%;color:var(--foreground);text-decoration:none;transition:scale .2s}
button.round{background:rgba(255,255,255,.35);box-shadow:0 10px 40px -10px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.7),inset 0 -1px 0 rgba(255,255,255,.15)}
.round:active{scale:.94}
.mascot{margin-inline:auto;width:calc(240px*var(--lab-guy,.81));max-width:100%;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.mascot svg{display:block;width:100%;height:auto;overflow:visible}
.av-halo{stroke:transparent;stroke-width:11}
.av-eyes{transition:transform .12s ease-out}
.av-lids{transform-box:fill-box;transform-origin:center}
.av-shut,.av-mouth.oops,.av-mouth.happy{display:none}
[data-mood=shy] .av-lids,[data-mood=oops] .av-mouth,[data-mood=happy] .av-mouth{display:none}
[data-mood=shy] .av-shut,[data-mood=oops] .av-mouth.oops,[data-mood=happy] .av-mouth.happy{display:block}
@media (min-width:640px){.mascot{width:calc(272px*var(--lab-guy,.81))}}
@media (min-width:1024px){.mascot{width:calc(296px*var(--lab-guy,.81))}}
@media (min-width:1280px){.mascot{width:calc(352px*var(--lab-guy,.81))}}

/* Sign-in: one light canvas, the product hero's opening screen with a form in it */
.login{position:relative;isolation:isolate;min-height:100vh;min-height:100svh;overflow:clip}
.login .scene{height:100%}
/* Brand and theme button in the corners, so this isn't the product page's centred dock */
.login-top{position:absolute;inset:20px 28px auto;z-index:3;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.login-top>*{pointer-events:auto}
.login-top .brand{padding:0}
.login-top .brandmark{border-radius:50%}
.login-top .icon-button{width:44px;height:44px;min-height:44px}
.login-in{--w:250px;display:grid;grid-template-columns:minmax(0,25rem);justify-content:center;align-content:center;width:100%;min-height:100vh;min-height:100svh;padding:84px 40px 28px}
/* He leans out from behind the card; the card sits in front of him */
.login-wrap{position:relative;min-width:0}
.login-stage{position:absolute;z-index:0;right:calc(100% - var(--w)*var(--lab-guy,.81)*.224);bottom:36px;width:calc(var(--w)*var(--lab-guy,.81));rotate:-7deg}
.login .mascot{width:100%;margin:0;animation:mascot-in .9s cubic-bezier(.34,1.56,.64,1) both}
.login .mascot svg{animation:mascot-float 6s ease-in-out .9s infinite}
@keyframes mascot-in{from{opacity:0;transform:translateY(36px) scale(.86)}to{opacity:1;transform:none}}
@keyframes mascot-float{50%{translate:0 -8px}}
.login-form{position:relative;z-index:1;width:100%}
.login-card{padding:28px;border-radius:var(--lab-radius,28px);background:color-mix(in srgb,var(--secondary) var(--lab-card,100%),transparent);box-shadow:0 24px 60px -28px rgba(0,0,0,.28);-webkit-backdrop-filter:blur(30px) saturate(1.6);backdrop-filter:blur(30px) saturate(1.6)}
.login-form h1{font-size:calc(24px*var(--lab-type,1));line-height:32px;font-weight:500;letter-spacing:-.02em;margin:0 0 4px}
.login-form button.primary{width:100%;margin-top:8px}
.login-form p{font-size:13px;margin:16px 0 0}
/* The error line always has its room, so the form doesn't jump when it appears */
.login-form #login-error{min-height:20px;margin:8px 0 0}
/* Tablet: no room beside the card, so he peeks over it */
@media (max-width:1179px){
  .login-in{--w:140px}
  .login-stage{position:relative;right:auto;bottom:auto;margin:0 0 -56px 18px;rotate:-5deg}
}
/* Short windows: tighter, so the page needn't scroll */
@media (min-width:821px) and (max-height:800px){
  .login-card{padding-block:20px}
  .login-in{padding-block:72px 16px}
}
@media (max-width:820px){
  .login-top{inset:12px 16px auto}
  .login-card{padding:20px}
  .login-in{--w:130px;grid-template-columns:minmax(0,30rem);align-content:start;padding:72px 16px 20px}
  .login-stage{margin:0 0 -52px 18px}
}

/* Toast */
#toast{position:fixed;bottom:20px;left:50%;translate:-50% 0;background:var(--primary);color:var(--primary-foreground);border-radius:999px;padding:12px 22px;max-width:min(520px,calc(100vw - 32px));box-shadow:0 24px 60px -20px rgba(0,0,0,.5);display:none;z-index:60;font-size:13px;text-align:center;animation:rise .45s var(--ease-out-expo) both}

/* Skip links */
.skip-link,.skip{position:fixed;top:-100px;left:1rem;z-index:1000;padding:.75rem 1rem;background:var(--background);color:var(--foreground);border-radius:12px}
.skip-link:focus,.skip:focus{top:1rem}
.skip-link:not(:focus),.skip:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap;padding:0}

/* Website pages shared with the app */
.site-content{max-width:1200px;margin:0 auto;padding:136px 24px 96px;min-height:65vh}
.site-content>h1{font-size:calc(clamp(36px,5vw,52px)*var(--lab-type,1));line-height:1.04;font-weight:600;letter-spacing:-.04em;margin:8px 0 16px;text-wrap:balance}
.site-lead{font-size:18px;color:var(--muted-foreground);max-width:760px;margin:0 0 40px}
.site-content .narrow{max-width:620px;margin:auto}
.readable-list{padding-left:20px;line-height:1.8}
.readable-list li{padding:6px}
.readable{max-width:850px}
.readable h2{margin-top:24px}
.readable h2:first-child{margin-top:0}
.enquiry-body{white-space:pre-line}
mark.ph{border-radius:5px;background:var(--warn-bg);color:var(--warn-fg);padding:0 .2em;font-weight:500}
.help-article{margin:10px 0}
.help-article summary{font-size:16px;font-weight:500}
.help-article p{margin-top:16px;line-height:1.8}
.help-article[hidden]{display:none}
#form-feedback a{font-weight:500}

/* Tablet content reflows beside a stable, labelled sidebar. */
@media (max-width:1180px){
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .two{grid-template-columns:minmax(0,1fr)}
  .topbar{margin-inline:12px}
  .main{padding-inline:12px}
  .task-board{grid-template-columns:minmax(0,1fr)}
}

/* v0.4.0 components: toolbar, sidebar sheet, dialogs, durable queue */
.toolbar-title{display:flex;align-items:center;gap:10px;min-width:0;white-space:nowrap;font-weight:500}
.toolbar-title small{font-weight:400;overflow:hidden;text-overflow:ellipsis}
.icon-button{display:inline-grid;place-items:center;flex:none;width:40px;min-height:40px;height:40px;padding:0;border-radius:50%;background:transparent;box-shadow:none;cursor:pointer;color:var(--foreground);transition:background-color .15s,scale .2s var(--ease-out-expo)}
@media (hover:hover){.icon-button:hover{background:var(--fg6)}}
.icon-button:active{scale:.94}
.toolbar-menu{position:relative;margin:0}
.toolbar-menu summary{list-style:none;font-size:inherit}
.toolbar-menu summary::-webkit-details-marker{display:none}
.toolbar-menu>div{position:absolute;right:0;top:calc(100% + 10px);z-index:50;display:flex;flex-direction:column;gap:2px;width:270px;padding:8px;border:1px solid var(--border);border-radius:20px;background:var(--background);box-shadow:0 24px 60px -20px rgba(0,0,0,.4);animation:rise .3s var(--ease-out-expo) both;font-size:13px}
.toolbar-menu label{display:flex;align-items:center;gap:10px;margin:0;padding:10px;font-weight:400;border-radius:14px;cursor:pointer}
@media (hover:hover){.toolbar-menu label:hover,.toolbar-menu a:hover{background:var(--secondary)}}
.toolbar-menu a{padding:10px;border-radius:14px;text-decoration:none}
.toolbar-menu small{padding:8px 10px;line-height:1.5}
.sidebar{overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
.sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sidebar nav a{position:relative;display:flex;align-items:center;gap:12px;min-height:40px;padding:8px 12px;border-radius:999px;color:var(--fg70);text-decoration:none}
.sidebar nav a.active{color:var(--foreground);font-weight:500}
.workspace small{display:block;margin-bottom:2px}
dialog{color:var(--foreground)}
dialog::backdrop{background:rgba(0,0,0,.4);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.confirm-dialog,.command-dialog{width:min(520px,calc(100vw - 32px));border:1px solid var(--border);border-radius:calc(var(--lab-radius,28px) - 4px);background:var(--background);padding:20px;box-shadow:0 24px 60px -20px rgba(0,0,0,.5);animation:rise .35s var(--ease-out-expo) both}
.command-dialog{padding:14px}
.command-dialog label{margin:2px 6px 8px;color:var(--muted-foreground);font-weight:400}
.command-dialog input{border-radius:999px}
.command-results{display:flex;flex-direction:column;gap:2px;margin-top:8px;max-height:50vh;overflow:auto}
.command-results button{justify-content:flex-start;gap:12px;background:none;box-shadow:none;min-height:42px;border-radius:14px}
.command-results button:hover,.command-results button:focus-visible{background:var(--secondary)}
.connection-strip{display:flex;align-items:center;gap:16px;margin-bottom:16px}
.connection-icon{display:grid;place-items:center;flex:none;width:56px;height:56px;border-radius:18px;background:var(--background)}
.connection-strip>div:nth-child(2){flex:1;min-width:0}
.connection-strip h2{margin:0}
.connection-strip p{margin:2px 0 0;color:var(--muted-foreground)}
.execution-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:16px;align-items:start}
.execution-layout>aside{display:flex;flex-direction:column;gap:16px;min-width:0}
.execution-layout>aside>*{margin:0}
.execution-meta{display:flex;flex-wrap:wrap;gap:12px 36px;margin:20px 0}
.execution-meta span{display:flex;flex-direction:column;font-size:12px;color:var(--muted-foreground)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.notice.alert{background:var(--warn-bg);color:var(--warn-fg)}
.pacing-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:20px}
.pacing-panel{border:1px solid var(--border);border-radius:18px;padding:16px 18px;margin:0;min-width:0}
.pacing-panel h3{margin:0 0 6px}
.pacing-panel p{margin:0 0 10px}
.pacing-wide{grid-column:1/-1}
.pacing-counts{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.pacing-kinds{border:0;padding:0;margin:12px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px 16px;min-width:0}
.pacing-kinds legend{padding:0;margin-bottom:6px;font-weight:500}
.pacing-card label.check{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
.pacing-activity{margin:0 0 12px}
.monthly-use{margin:6px 0 10px;padding-left:18px}
.monthly-account-use h4{margin:14px 0 4px;font-size:14px}
.pacing-reasons{margin:6px 0 0;padding-left:18px;font-size:13px;color:var(--muted-foreground)}
.execution-meta strong{font-size:32px;line-height:1.15;font-weight:500;letter-spacing:-.03em;color:var(--foreground);font-variant-numeric:tabular-nums}
.queue-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.queue-item{background:var(--background);border:1px solid transparent;border-radius:18px;padding:16px;overflow-wrap:anywhere;transition:translate .3s ease-out,border-color .3s ease-out,box-shadow .3s ease-out}
@media (hover:hover){.queue-item:hover{translate:0 -2px;border-color:var(--border);box-shadow:0 12px 30px -18px rgba(0,0,0,.3)}}
.queue-item.selected{border-color:var(--foreground)}
.queue-item>.row{flex-wrap:wrap}
.queue-item h3{margin:0;font-size:15px}
.queue-item p{margin:4px 0 10px;font-size:13px;color:var(--muted-foreground)}
.queue-item button{min-height:36px;padding:4px 14px;font-size:13px}
.quiet-details summary{color:var(--muted-foreground)}
.inspector{animation:rise .5s var(--ease-out-expo) both}
.evidence-list{list-style:none;margin:12px 0;padding:0}
.evidence-list li{position:relative;padding:0 0 16px 18px;border-left:1px solid var(--fg15);margin-left:4px}
.evidence-list li::before{content:"";position:absolute;left:-4px;top:7px;width:7px;height:7px;border-radius:50%;background:var(--foreground)}
.evidence-list li:last-child{border-left-color:transparent;padding-bottom:4px}
.evidence-list strong{display:block}
.evidence-list small{display:block;font-size:12px}
.evidence-list p{margin:4px 0 0;font-size:13px}
html[data-solid=true] .glass,html[data-solid=true] .edge i{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html[data-solid=true] .glass{background:var(--background)}
html[data-solid=true] .edge{display:none}
@media (prefers-reduced-transparency:reduce){
  .glass,.edge i,.toolbar-title{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .glass{background:var(--background)!important}
  .edge{display:none}
}

@media (max-width:1180px){.execution-layout{grid-template-columns:minmax(0,1fr)}}
/* Small screens keep the content toolbar separate from the fixed section links. */
@media (max-width:820px){
  .topbar{display:contents}
  .toolbar-title{position:sticky;top:8px;z-index:40;display:flex;width:auto;gap:6px;margin:8px 8px 0;padding:6px 16px 6px 6px;min-height:52px;border-radius:999px;border:1px solid rgba(255,255,255,.5);background:color-mix(in srgb,var(--background) 62%,transparent);box-shadow:0 10px 40px -10px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.7);-webkit-backdrop-filter:blur(40px) saturate(2);backdrop-filter:blur(40px) saturate(2)}
  html[data-solid=true] .toolbar-title{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--background)}
  .toolbar-title small{margin-left:auto;font-size:12px}
  .topbar>.row{display:flex;gap:2px;margin:10px 12px 0;justify-content:space-between}
  #campaign-select{flex:1;min-width:0;width:auto;margin-right:2px;min-height:38px;padding-left:12px;padding-right:30px;background-position:right 8px center}
  .topbar .icon-button{width:38px;height:38px;min-height:38px}
  .topbar button[data-action=logout]{padding-inline:12px;font-size:13px;min-height:38px}
  .topbar #command-open{display:none}
  .connection-strip>div:nth-child(2){order:3;flex:1 1 100%}
  .connection-strip .pill{margin-left:auto}
  .toolbar-menu>div{position:fixed;left:8px;right:8px;top:auto;width:auto;margin-top:8px}
  .main{padding:24px 8px 72px}
  .pagehead{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:24px}
  .pagehead p{font-size:15px}
  h1{font-size:calc(26px*var(--lab-type,1));line-height:34px}
  .card{padding:18px;border-radius:22px}
  .stats{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats .card{padding:16px;gap:18px}
  .stat-value{font-size:34px}
  .three,.inline-form,.two{grid-template-columns:minmax(0,1fr)}
  .chart-controls{flex-wrap:wrap}
  .connection-strip{flex-wrap:wrap}
  .notification{align-items:flex-start;flex-wrap:wrap}
  .conversation-link>span{flex-wrap:wrap}
  .message-list{max-height:450px}
  .site-content{padding:112px 16px 64px}
  .edge.top{height:64px}
  .list-tools .row{align-items:stretch}
  .list-tools .row>span{align-self:center}
  .list-tools input{flex-basis:100%}
  td,th{padding-inline:8px}
}


/* iOS zooms the whole page into any field under 16px */
@supports (-webkit-touch-callout:none){input,select,textarea{font-size:16px!important}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition:none!important}
  .hero-cloud{animation-duration:var(--d)!important;animation-delay:var(--dl)!important;animation-iteration-count:infinite!important;animation-play-state:paused!important}
}

@media print{
  :root{--background:#fff;--foreground:#0a0a0a;--secondary:#fff;--muted-foreground:#555;--border:#ddd;--fg5:#eee;--fg6:#eee;--ok-fg:#00704c;--warn-fg:#8a5206;--bad-fg:#c10030}
  .sidebar,.topbar,.pagehead,.page-footer,#toast,.edge,.main>.notice,.main>.card:not(.printable),.printable button{display:none!important}
  .shell{display:block;padding:0}
  .main{padding:0;max-width:none}
  .main.enter>*{animation:none}
  .printable{border:0;box-shadow:none;padding:0;background:#fff}
  .printable .card{padding:12px;border:1px solid #ddd}
  .printable .stat-value{font-size:24px}
  .vz,.vz *,.vz-mix,.vz-mix *{print-color-adjust:exact;-webkit-print-color-adjust:exact}
  body{background:#fff}
}

