.bb-demo-banner{max-width:1320px;margin:20px auto;padding:16px 20px;border:1px solid #c1d8e4;border-left:5px solid #e7a94e;border-radius:10px;background:var(--surface,#fff);color:var(--foreground,#183442);font:inherit;font-size:14px;line-height:1.5;box-shadow:0 4px 20px #17394a08}.bb-demo-heading{display:grid;gap:3px;margin-bottom:12px}.bb-demo-heading strong{font-size:15px}.bb-demo-heading span{font-size:12px;color:var(--muted,#55717f)}.bb-demo-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.bb-demo-controls label{font-size:12px;font-weight:650}.bb-demo-controls select,.bb-demo-controls button,#bb-demo-sample{min-height:40px;border:1px solid var(--border,#c6dbe6);border-radius:7px;padding:9px 12px;font:inherit;font-size:13px;color:var(--foreground,#183442);background:var(--surface-secondary,#f0f7fb)}.bb-demo-controls select{max-width:300px;min-width:0}.bb-demo-controls button,#bb-demo-sample{cursor:pointer}.bb-demo-controls button:disabled,#bb-demo-sample:disabled{opacity:.55;cursor:default}.bb-demo-controls button:focus-visible,.bb-demo-controls select:focus-visible,#bb-demo-sample:focus-visible{outline:3px solid #089cbd;outline-offset:2px}.bb-demo-status{font-size:12px;margin:10px 0 0;white-space:pre-wrap}.bb-demo-status:empty{display:none}.bb-demo-status.error{color:var(--danger,#a53042)}#bb-demo-sample{margin-top:12px}.bb-demo-banner.is-unavailable{border-left-color:#b04355}.bb-demo-simulator{padding:16px 18px;border:1px solid #c7dce7;border-radius:10px;background:var(--surface,#fff);margin:0 0 20px}.bb-demo-simulator>strong{font-size:16px}.bb-demo-simulator>p{font-size:13px;line-height:1.6;color:var(--muted,#55717f);margin:6px 0 12px}.bb-demo-banner [hidden],.bb-demo-simulator[hidden],.bb-demo-simulator [hidden]{display:none!important}html[data-demo-mode=true] .bb-session-actions a[href^="/login"],html[data-demo-mode=true] .bb-session-actions a[href="/security.html"],html[data-demo-mode=true] #bb-team{display:none!important}@media(max-width:700px){.bb-demo-banner{margin:14px 17px;padding:14px}.bb-demo-controls{gap:8px}.bb-demo-controls label{flex-basis:100%}.bb-demo-controls select{width:100%;max-width:none;flex-basis:100%;font-size:16px}.bb-demo-controls button{flex:1 1 130px}.bb-demo-banner #bb-demo-exit{flex:0 1 auto}.bb-demo-simulator{padding:14px}}@media print{.bb-demo-banner,.bb-demo-simulator{display:none!important}}

.bb-demo-customer-review{margin-top:14px;padding:16px;border:1px solid #c7dce7;border-radius:9px;background:var(--surface-secondary,#f0f7fb)}.bb-demo-customer-review small{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#55717f)}.bb-demo-customer-review h3{font-size:19px;margin:6px 0}.bb-demo-customer-review p{font-size:13px;line-height:1.6}.bb-demo-customer-review #bb-demo-sim-approve{background:#145a49;color:#fff;border-color:#145a49}

.bb-demo-controls a{display:inline-flex;align-items:center;min-height:40px;border:1px solid var(--border,#c6dbe6);border-radius:7px;padding:9px 12px;font-size:13px;color:var(--foreground,#183442);background:var(--surface,#fff);text-decoration:none}.bb-demo-controls a:focus-visible{outline:3px solid #089cbd;outline-offset:2px}.bb-demo-revision-request{border-left:3px solid #c48a31;padding:8px 12px;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere}
html[data-demo-mode=true] body[data-bb-view=customer] #toggle-assessment-sidebar{display:none!important}

html[data-demo-mode=true] #view-home .hd-demo-upcoming{margin-top:0;margin-bottom:20px}html[data-demo-mode=true] #view-home .hd-brand-hero{margin-top:0}@media(max-width:600px){html[data-demo-mode=true] #view-home .hd-demo-upcoming{margin-bottom:16px}html[data-demo-mode=true] #view-home .hd-brand-hero{min-height:0}html[data-demo-mode=true] #view-home .hd-brand-actions{margin-top:0}}

/* Make the repeatable development reset distinct from the per-scenario reset. */
.bb-demo-banner #bb-demo-reset-all{border-color:#bd853e;font-weight:700}

/* Demo remains unmistakable without taking a full-width row above Home. */
html[data-demo-mode=true] .bb-demo-switch{
  display:inline-flex!important;align-items:center;justify-content:center;gap:6px;
  flex:none;min-width:62px;min-height:34px;padding:6px 9px;margin:0!important;
  border:1px solid #fff1a0!important;border-radius:8px!important;
  background:#ffd35a!important;color:#132437!important;
  box-shadow:0 0 0 2px #f6ad2240,0 0 17px #ffbc5080,inset 0 1px 0 #fff5b0;
  font:900 12px/1 'Hanken Grotesk',system-ui,sans-serif!important;
  letter-spacing:.11em;cursor:pointer;white-space:nowrap;
}
html[data-demo-mode=true] .bb-demo-switch::before{content:'';width:7px;height:7px;flex:none;border-radius:50%;background:#188659;box-shadow:0 0 0 2px #18865924,0 0 8px #1886598c}
html[data-demo-mode=true] .bb-demo-switch:hover,html[data-demo-mode=true] .bb-demo-switch[aria-expanded=true]{background:#ffe69b!important;box-shadow:0 0 0 3px #ffa91780,0 0 23px #ffbd55b3}
html[data-demo-mode=true] .bb-demo-switch:focus-visible{outline:3px solid #50d4ff!important;outline-offset:3px}
html[data-demo-mode=true] #bb-demo-banner{
  position:fixed!important;left:auto!important;right:10px;top:70px;
  display:block;width:min(360px,calc(100vw - 20px));max-width:none;
  max-height:calc(100dvh - 84px);overflow-y:auto;overscroll-behavior:contain;
  margin:0!important;padding:15px 16px!important;
  border:1px solid #b8cfdb;border-top:4px solid #ffd35a;border-left:1px solid #b8cfdb;
  border-radius:13px;background:#fff;color:#19354a;
  box-shadow:0 16px 44px #071a35a0;z-index:10050;
}
html[data-demo-mode=true] #bb-demo-banner[hidden]{display:none!important}
html[data-demo-mode=true] #bb-demo-banner .bb-demo-heading{gap:2px;margin-bottom:12px}
html[data-demo-mode=true] #bb-demo-banner .bb-demo-heading strong{font-size:15px;color:#17354b}
html[data-demo-mode=true] #bb-demo-banner .bb-demo-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html[data-demo-mode=true] #bb-demo-banner .bb-demo-controls label,
html[data-demo-mode=true] #bb-demo-banner .bb-demo-controls select,
html[data-demo-mode=true] #bb-demo-banner #bb-demo-reset-all{grid-column:1/-1}
html[data-demo-mode=true] #bb-demo-banner .bb-demo-controls select{width:100%;max-width:none;font-size:16px}
html[data-demo-mode=true] #bb-demo-banner .bb-demo-controls button{width:100%;min-width:0;font-size:12px;line-height:1.35}
html[data-demo-mode=true] #bb-demo-banner #bb-demo-reset-all{border-color:#d59b4b;background:#fff8e9;color:#77501d;font-weight:800}
html[data-demo-mode=true] #bb-demo-banner #bb-demo-exit{border-color:#bdcbd4;background:#f6f9fb}
html[data-demo-mode=true] #bb-demo-banner #bb-demo-status{margin-top:10px;line-height:1.45}
html[data-demo-mode=true] body.bb-assessment-app .hdr .bb-demo-switch{min-height:44px}
@media screen and (max-width:680px){
  html[data-demo-mode=true] body.bb-assessment-app .hdr .bb-demo-switch{grid-column:3/5;grid-row:2;justify-self:end}
  html[data-demo-mode=true] body.bb-assessment-app .hdr .assessment-home-back{grid-column:2;justify-self:end}
}
@media(max-width:680px){
  html[data-demo-mode=true] .bb-demo-switch{min-width:51px;min-height:32px;padding:6px 7px;font-size:10px!important;gap:4px}
  html[data-demo-mode=true] .bb-demo-switch::before{width:5px;height:5px}
  html[data-demo-mode=true] #bb-demo-banner{max-height:calc(100dvh - 70px);padding:14px!important}
  /* Reserve real space for the full brand instead of letting fixed artwork
     paint beneath the practice badge. All six controls retain touch targets. */
  html[data-demo-mode=true] .topbar .topbar-inner{display:grid!important;grid-template-columns:minmax(0,1fr) 58px 44px 44px;grid-template-rows:44px 44px;gap:4px 6px;padding:6px 12px;min-height:104px;align-items:center}
  html[data-demo-mode=true] .topbar .brand{grid-column:1;grid-row:1/3;width:100%;min-width:0}
  html[data-demo-mode=true] .topbar .bb-header-tools{display:contents!important}
  html[data-demo-mode=true] .topbar .bb-demo-switch{grid-column:2;grid-row:1;width:58px;min-height:44px}
  html[data-demo-mode=true] .topbar #bb-app-back{grid-column:3;grid-row:1}
  html[data-demo-mode=true] .topbar [data-bb-theme-toggle]{grid-column:4;grid-row:1}
  html[data-demo-mode=true] .topbar #fsbtn{grid-column:2;grid-row:2;justify-self:end}
  html[data-demo-mode=true] .topbar #hd-bell{grid-column:3;grid-row:2}
  html[data-demo-mode=true] .topbar .app-menu{grid-column:4;grid-row:2;margin:0}
  html[data-demo-mode=true] .topbar :is(#bb-app-back,[data-bb-theme-toggle],#fsbtn,#hd-bell,#app-menu-toggle){width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
}
@media print{html[data-demo-mode=true] .bb-demo-switch,html[data-demo-mode=true] #bb-demo-banner{display:none!important}}

/* Home puts the next action first. Move the existing display tools into the
   menu on phones; their original controls and listeners remain intact. */
html body .bb-header-tools .bb-control-name{display:none}
@media screen and (max-width:680px){
  html body:is([data-bb-view=home],:not([data-bb-view])) .topbar .topbar-inner{display:grid!important;grid-template-columns:minmax(0,1fr) auto 44px 44px;grid-template-rows:44px;gap:6px;padding:12px 14px;min-height:68px;height:68px;align-items:center}
  html body:is([data-bb-view=home],:not([data-bb-view])) .topbar .brand{grid-column:1;grid-row:1;width:100%;min-width:0;margin:0}
  html body:is([data-bb-view=home],:not([data-bb-view])) .topbar .brand img.biddaddy-logo-lockup{width:160px!important;max-width:100%!important}
  html body:is([data-bb-view=home],:not([data-bb-view])) .topbar .bb-demo-switch{grid-column:2;grid-row:1;width:auto;min-width:48px;min-height:44px;padding:7px;border:1px solid #ffb786!important;background:#fff2e8!important;color:#8b3100!important;box-shadow:none!important;font-size:9px!important;letter-spacing:.05em;gap:4px}
  html body:is([data-bb-view=home],:not([data-bb-view])) .topbar .bb-demo-switch::before{background:#b63d00;box-shadow:none;width:5px;height:5px}
  html body:is([data-bb-view=home],:not([data-bb-view])) .topbar #hd-bell{grid-column:3;grid-row:1}
  html body:is([data-bb-view=home],:not([data-bb-view])) .topbar .app-menu{grid-column:4;grid-row:1;margin:0}
  html body:is([data-bb-view=home],:not([data-bb-view])) .topbar :is(#hd-bell,#app-menu-toggle){width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;border-radius:12px!important}
  html body .topbar #app-menu-panel .bb-menu-display-controls{display:flex!important;flex-direction:column;align-items:stretch;gap:5px;border-top:1px solid var(--border,#dce3ea);margin:12px 0 0;padding-top:12px}
  html body .topbar #app-menu-panel .bb-menu-display-controls .bb-header-icon{display:flex;justify-content:flex-start;align-items:center;gap:12px;width:100%!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:10px 12px!important;color:var(--foreground,#14283d)!important;font-size:14px;border-radius:9px!important}
  html body .topbar #app-menu-panel .bb-menu-display-controls .bb-header-icon[hidden]{display:none!important}
  html body .topbar #app-menu-panel .bb-menu-display-controls .bb-control-name{display:inline}
  html body .topbar #app-menu-panel .bb-menu-display-controls .bb-header-icon svg{width:20px;height:20px;flex:none}
  html body .topbar #app-menu-panel .bb-menu-display-controls .bb-header-icon:hover{background:var(--surface-secondary,#eef3f7)!important}
  html body:is([data-bb-view=home],:not([data-bb-view])) #bb-demo-banner{top:calc(76px + env(safe-area-inset-top,0px));max-height:calc(100dvh - 90px - env(safe-area-inset-top,0px))}
  html:not([data-demo-mode=true]) body:is([data-bb-view=home],:not([data-bb-view])) .topbar .topbar-inner{grid-template-columns:minmax(0,1fr) 44px 44px}
  html:not([data-demo-mode=true]) body:is([data-bb-view=home],:not([data-bb-view])) .topbar #hd-bell{grid-column:2}
  html:not([data-demo-mode=true]) body:is([data-bb-view=home],:not([data-bb-view])) .topbar .app-menu{grid-column:3}
}
