
:root{
  --demo-navy:#17233C;
  --demo-navy-deep:#111C30;
  --demo-gold:#C99A45;
  --demo-gold-bright:#E7AB36;
  --demo-white:#FFFFFF;
  --demo-bar-height:46px;
}
.demo-mode-body{padding-top:var(--demo-bar-height)}
.demo-mode-body .app-shell{min-height:calc(100vh - var(--demo-bar-height))}
.demo-mode-body .sidebar{top:var(--demo-bar-height)}
.demo-mode-body .topbar{top:var(--demo-bar-height)}
.demo-mode-body.auth-body .auth-shell{min-height:calc(100vh - var(--demo-bar-height))}

.demo-bar{
  position:fixed;inset:0 0 auto 0;height:var(--demo-bar-height);z-index:1000;
  display:flex;align-items:center;gap:18px;padding:0 14px;
  background:linear-gradient(90deg,var(--demo-navy-deep),var(--demo-navy));
  color:#fff;border-bottom:1px solid rgba(201,154,69,.5);
  box-shadow:0 5px 18px rgba(11,20,36,.16);
  font-size:13px;
}
.demo-bar.is-host{background:linear-gradient(90deg,#111C30,#20304E)}
.demo-bar-brand{display:flex;align-items:center;gap:8px;min-width:max-content}
.demo-bar-brand img{width:28px;height:28px;object-fit:contain}
.demo-bar-brand strong{font-size:16px;letter-spacing:.01em}
.demo-mode-badge{
  margin-left:3px;padding:3px 7px;border-radius:999px;
  border:1px solid rgba(231,171,54,.65);color:#F6C869;
  font-size:9px;font-weight:800;letter-spacing:.12em;
}
.demo-role-switcher{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid rgba(255,255,255,.13);border-radius:10px;background:rgba(255,255,255,.05)}
.demo-role-switcher form,.demo-bar-actions form{margin:0}
.demo-role-button,.demo-bar-button,.demo-host-signin{
  appearance:none;border:0;text-decoration:none;white-space:nowrap;
  display:inline-flex;align-items:center;justify-content:center;
  min-height:30px;border-radius:8px;padding:6px 11px;
  color:#F5F7FB;background:transparent;font:inherit;font-weight:700;cursor:pointer;
}
.demo-role-button:hover,.demo-bar-button:hover,.demo-host-signin:hover{background:rgba(255,255,255,.09);color:#fff}
.demo-role-button.active{
  color:var(--demo-navy-deep);background:var(--demo-gold-bright);
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}
.demo-bar-actions{display:flex;align-items:center;gap:4px;margin-left:auto;min-width:max-content}
.demo-bar-button{border:1px solid rgba(255,255,255,.16)}
.demo-bar-button.gold{border-color:rgba(231,171,54,.75);color:#FFD884}
.demo-bar-button.subtle,.demo-host-signin{border-color:transparent;color:#C8D0DC;font-size:12px}
.demo-bar-button:disabled{opacity:.48;cursor:default}
.demo-bar-button:disabled:hover{background:transparent}
.demo-guide-running .guide-toggle{background:rgba(231,171,54,.14);border-color:var(--demo-gold-bright);color:#FFD884}

.demo-guide-marker{
  position:fixed;width:12px;height:12px;border-radius:50%;
  background:var(--demo-navy);z-index:1220;transform:translate(-50%,-50%);
  box-shadow:0 2px 7px rgba(0,0,0,.25);pointer-events:none;
}
.demo-guide-marker::before,.demo-guide-marker::after{
  content:"";position:absolute;left:50%;top:50%;border-radius:50%;
  transform:translate(-50%,-50%);border:1.5px solid var(--demo-gold-bright);
}
.demo-guide-marker::before{width:24px;height:24px}
.demo-guide-marker::after{width:36px;height:36px;opacity:.9;animation:demoMarkerPulse 1.9s ease-in-out infinite}
@keyframes demoMarkerPulse{0%,100%{transform:translate(-50%,-50%) scale(.94);opacity:.72}50%{transform:translate(-50%,-50%) scale(1.08);opacity:1}}

.demo-guide-line{
  position:fixed;inset:0;width:100vw;height:100vh;z-index:1205;pointer-events:none;overflow:visible;
}
.demo-guide-line line{stroke:var(--demo-gold-bright);stroke-width:1.7;stroke-dasharray:5 6;stroke-linecap:round;filter:drop-shadow(0 1px 1px rgba(0,0,0,.15))}

.demo-guide-card{
  position:fixed;z-index:1215;width:min(360px,calc(100vw - 32px));min-height:150px;
  padding:24px 24px 20px;border-radius:22px;
  background:rgba(20,32,53,.95);color:#fff;
  box-shadow:0 22px 55px rgba(8,15,28,.34);
  backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);
}
.demo-guide-card::before{
  content:"";position:absolute;inset:6px;border:1px solid rgba(231,171,54,.95);
  border-radius:16px;pointer-events:none;
}
.demo-guide-card>*{position:relative;z-index:1}
.demo-guide-card h3{margin:0 0 8px;color:#fff;font-size:19px;line-height:1.25}
.demo-guide-card p{margin:0;color:#E8EDF5;line-height:1.55;font-size:14px;white-space:pre-line}
.demo-guide-card-footer{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:18px}
.demo-guide-progress{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#BAC5D4}
.demo-guide-next{
  border:0;border-radius:10px;padding:8px 14px;background:var(--demo-gold-bright);
  color:#17233C;font-weight:800;cursor:pointer;
}
.demo-guide-next:hover{filter:brightness(1.04)}

.demo-host-picker-banner{
  position:fixed;left:50%;top:calc(var(--demo-bar-height) + 14px);transform:translateX(-50%);
  z-index:1280;background:#fff;color:var(--demo-navy);border:1px solid var(--demo-gold);
  box-shadow:0 12px 32px rgba(17,28,48,.18);border-radius:14px;padding:10px 14px;
  display:flex;align-items:center;gap:12px;font-size:13px;font-weight:700;
}
.demo-host-picker-banner button{border:0;background:#EEF2F7;border-radius:8px;padding:6px 9px;font-weight:700;cursor:pointer}
body.demo-pick-mode .content *,body.demo-pick-mode .sidebar-nav *{cursor:crosshair!important}
.demo-picker-hover{outline:2px dashed var(--demo-gold-bright)!important;outline-offset:3px!important}

.demo-host-modal-backdrop{
  position:fixed;inset:var(--demo-bar-height) 0 0 0;z-index:1290;
  background:rgba(9,16,28,.36);display:grid;place-items:center;padding:20px;
}
.demo-host-modal{
  width:min(620px,100%);max-height:min(760px,calc(100vh - 90px));overflow:auto;
  background:#fff;border:1px solid #DFE5ED;border-radius:22px;box-shadow:0 24px 70px rgba(12,22,39,.28);
  padding:24px;
}
.demo-host-modal.wide{width:min(760px,100%)}
.demo-host-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.demo-host-modal-head h2{margin:0;font-size:22px}
.demo-host-modal-head p{margin:4px 0 0;color:#6E7788}
.demo-host-modal-close{border:0;background:#F1F4F8;border-radius:9px;width:34px;height:34px;font-size:20px;cursor:pointer}
.demo-host-modal textarea{min-height:120px;resize:vertical}
.demo-host-role-checks{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 18px}
.demo-host-role-checks label{display:flex;align-items:center;gap:6px;background:#F5F7FA;border:1px solid #E1E6ED;border-radius:10px;padding:8px 10px}
.demo-host-role-checks input{width:auto}
.demo-host-note-list{display:grid;gap:10px}
.demo-host-note-item{border:1px solid #E1E6ED;border-radius:14px;padding:13px;display:grid;grid-template-columns:34px 1fr auto;gap:12px;align-items:start}
.demo-host-note-order{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#F2F5F8;font-weight:800;color:#566174}
.demo-host-note-item h3{margin:0 0 4px;font-size:15px}
.demo-host-note-item p{margin:0;color:#6E7788;font-size:13px;line-height:1.4}
.demo-host-note-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.demo-host-note-actions button{border:1px solid #DDE3EA;background:#fff;border-radius:8px;padding:6px 8px;cursor:pointer;font-size:12px}
.demo-host-note-empty{padding:28px;text-align:center;border:1px dashed #CFD6E0;border-radius:14px;color:#6E7788}

.demo-host-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.demo-host-stat span{display:block;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.demo-host-stat strong{display:block;font-size:24px;color:var(--navy);margin:7px 0}
.demo-host-stat small{display:block;line-height:1.45;color:var(--muted)}
.demo-host-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:18px 0}
.demo-host-callout{margin-top:16px;padding:13px 15px;border-radius:12px;background:#FFF8E8;border:1px solid #F0D293;color:#5B4720}

@media(max-width:1050px){
  .demo-host-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .demo-bar{gap:8px;padding:0 8px;overflow-x:auto}
  .demo-bar::-webkit-scrollbar{display:none}
  .demo-mode-badge{display:none}
}
@media(max-width:720px){
  :root{--demo-bar-height:48px}
  .demo-bar-brand strong{display:none}
  .demo-bar-brand img{width:27px;height:27px}
  .demo-role-button,.demo-bar-button,.demo-host-signin{padding:6px 9px}
  .demo-host-signin{font-size:0;width:30px}
  .demo-host-signin::before{content:"Host";font-size:10px}
  .demo-guide-card{width:min(330px,calc(100vw - 24px))}
  .demo-host-summary-grid{grid-template-columns:1fr}
  .demo-host-link-grid{grid-template-columns:1fr}
}
