/* The demo's frame: the strip on top, the tour in the corner, the toast. The app's own look is untouched. */
:root { --demo-strip: 52px; }
body { padding-top: var(--demo-strip) !important; }
.bcnav { top: var(--demo-strip) !important; }
@media (max-width: 900px) { .bcnav { top: 0 !important; } }

#demoStrip { position: fixed; z-index: 1000; top: 0; left: 0; right: 0; height: var(--demo-strip); display: flex; align-items: center; gap: 12px;
  padding: 0 18px; background: #121619; color: #fff; font: 14px/1.2 Inter, system-ui, "Segoe UI", sans-serif; box-sizing: border-box; }
#demoStrip b { font-weight: 600; white-space: nowrap; }
#demoStrip .ds-muted { color: rgba(255,255,255,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#demoStrip .ds-back { color: #fff; text-decoration: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.1); }
#demoStrip .ds-sp { flex: 1; }
#demoStrip .ds-pill { font: inherit; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: rgba(255,255,255,.9); cursor: pointer; }
#demoStrip .ds-go { padding: 8px 18px; border-radius: 999px; background: #1d56d8; color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 760px) { #demoStrip .ds-muted { display: none; } }

#demoTour { position: fixed; z-index: 999; right: 22px; bottom: 22px; width: 360px; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(10,14,20,.28), 0 0 0 1px rgba(0,0,0,.05); font: 14px/1.4 Inter, system-ui, "Segoe UI", sans-serif; color: #121619; }
#demoTour .dt-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; }
#demoTour .dt-head b { font-size: 16px; } #demoTour .dt-head span { color: #8a929c; margin-left: auto; }
#demoTour .dt-min { border: 0; background: #f1f3f6; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; color: #5b6470; }
#demoTour .dt-body p { margin: 0; padding: 0 18px 10px; color: #5b6470; }
#demoTour .dt-bar { margin: 0 18px 10px; height: 6px; border-radius: 3px; background: #edf0f4; }
#demoTour .dt-bar i { display: block; height: 100%; border-radius: 3px; background: #1d56d8; transition: width .4s; }
#demoTour .dt-step { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid #eef0f3; color: inherit; text-decoration: none; }
#demoTour .dt-step:hover { background: #f7f9fc; }
#demoTour .dt-step .ic { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9ced6; flex: none; position: relative; box-sizing: border-box; }
#demoTour .dt-step.done .ic { background: #1a9a55; border-color: #1a9a55; }
#demoTour .dt-step.done .ic::after { content: "✓"; color: #fff; font-size: 12px; position: absolute; inset: 0; display: grid; place-items: center; }
#demoTour .dt-step.done span:nth-child(2) { color: #8a929c; text-decoration: line-through; }
#demoTour .dt-step.next { background: #f5f8ff; } #demoTour .dt-step.next span:nth-child(2) { font-weight: 600; }
#demoTour .dt-step .arr { margin-left: auto; color: #9aa1aa; }
#demoTour .dt-cta { display: block; margin: 8px 18px 16px; padding: 11px; text-align: center; border-radius: 999px; background: #1d56d8; color: #fff; font-weight: 600; text-decoration: none; }
#demoTour.min .dt-body { display: none; } #demoTour.min { width: 230px; } #demoTour.min .dt-head { padding-bottom: 14px; }
@media (max-width: 760px) { #demoTour { left: 12px; right: 12px; width: auto; bottom: 12px; } }

#demoToast { position: fixed; z-index: 1001; left: 50%; bottom: 26px; transform: translateX(-50%); max-width: 560px; padding: 11px 16px; border-radius: 10px;
  background: #121619; color: #fff; font: 14px/1.4 Inter, system-ui, sans-serif; box-shadow: 0 8px 28px rgba(0,0,0,.28); opacity: 0; pointer-events: none; transition: opacity .2s; }
#demoToast.show { opacity: 1; }
.demo-note { margin: 6px 0 0; color: #5b6470; font-size: 13px; }
.demo-pulse { outline: 3px solid #1d56d8 !important; outline-offset: 2px; animation: demoPulse 1s ease-in-out 4; }
@keyframes demoPulse { 50% { outline-color: rgba(29,86,216,.25); } }

/* setup tools (importing files from the register or a price book) aren't part of the demo */
#openImport, #openPricebook, #openSales { display: none !important; }
