/* Demo mode: the DEMO banner across the top of every page, and the email pop-up. */
:root{--demo-h:48px}
html.demo-mode body{padding-top:var(--demo-h)}
html.demo-mode.demo-app body{padding-top:calc(var(--demo-h) + 44px)} /* clear space between the banner and the app's top bar */
.demo-bar{position:fixed;top:0;left:0;right:0;z-index:2147483000;height:var(--demo-h);display:flex;align-items:center;gap:14px;padding:0 max(16px,env(safe-area-inset-left,0px));
  background:repeating-linear-gradient(-45deg,#F5B921 0 18px,#EFAE0C 18px 36px);color:#1F1300;font:600 14px/1.2 Inter,system-ui,-apple-system,sans-serif;
  box-shadow:0 2px 0 #C98F06,0 8px 18px -10px rgba(0,0,0,.45)}
.demo-tag{flex:none;padding:5px 12px;border-radius:8px;background:#111827;color:#F5B921;font-weight:900;font-size:15px;letter-spacing:.22em}
.demo-msg{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.demo-acts{flex:none;display:flex;gap:8px}
.demo-btn{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border:2px solid #111827;border-radius:999px;background:rgba(255,255,255,.32);color:#111827;font:inherit;font-weight:700;font-size:13.5px;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background-color .2s,transform .15s}
.demo-btn:hover{background:rgba(255,255,255,.55)}
.demo-btn:active{transform:scale(.97)}
.demo-btn.pri{background:#111827;color:#fff}
.demo-btn.pri:hover{background:#1F2937}
.demo-btn:focus-visible{outline:3px solid #111827;outline-offset:2px}
@media (max-width:720px){.demo-msg{display:none}.demo-bar{justify-content:space-between}}
@media (max-width:380px){.demo-btn{padding:0 10px;font-size:12.5px}.demo-tag{letter-spacing:.14em;padding:5px 9px}}
/* the app: keep its sticky side panels clear of the banner, and drop its own sample-data notes */
html.demo-mode .cfside{top:calc(var(--demo-h) + 14px)}
html.demo-mode #demo,html.demo-mode #cfdemo,html.demo-mode #cfdemo2{display:none!important}
/* email pop-up */
.demo-dlg .demo-moni{top:-104px} /* taller picture (hat on), feet stay on the card */
@media (max-width:520px){.demo-dlg .demo-moni{top:-80px}}
.demo-dlg .legal{margin-top:12px;font-size:13px;color:var(--mute,#5B6475);text-align:center}
.demo-dlg .err:empty{display:none}
/* motion: the bar slides down on arrival, its stripes keep drifting, and the DEMO tag gives a soft pulse */
@media (prefers-reduced-motion:no-preference){
  .demo-bar{animation:demo-in .6s cubic-bezier(.16,1,.3,1) both,demo-stripes 2.4s linear infinite}
  .demo-tag{animation:demo-pulse 2.4s ease-in-out infinite}
  .demo-acts{animation:demo-fade .5s .25s ease both}
  @keyframes demo-in{from{transform:translateY(-100%)}}
  @keyframes demo-stripes{to{background-position:calc(36px * 1.41421) 0}}
  @keyframes demo-pulse{0%,100%{box-shadow:0 0 0 0 rgba(17,24,39,.35)}50%{box-shadow:0 0 0 5px rgba(17,24,39,0)}}
  @keyframes demo-fade{from{opacity:0;transform:translateY(-4px)}}
}
/* the name in the pop-up title, coloured like the logo */
.demo-wm{color:#111827}.demo-wm span{color:#1A6DFF}
