/* Demo access layer styles, shared by all six demos. Uses --brand from demo-config.js. */
body.demo-public .pbar { display: none !important; }
/* Dashboards: no prototype bar either, and the app moves up into its space */
.pbar { display: none !important; }
body:not(.demo-public) .app { top: 0 !important; }
body:not(.demo-public) .scrim { top: 0 !important; }
body.demo-locked { overflow: hidden; }
/* Role comes from the login, so the free role and screen switchers are hidden */
.pbar label:has(#role), .pbar label:has(#jump), .pbar #role, .pbar #jump { display: none !important; }
#demo-acct { display: none; font-family: 'IBM Plex Sans', system-ui, sans-serif; }
body[data-demo-role]:not(.demo-public) #demo-acct { display: block; }
#demo-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
#demo-chip b { font-weight: 700; }
#demo-chip button { font: inherit; font-size: 12px; font-weight: 600; margin-left: auto; padding: 5px 11px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
#demo-chip button:hover { background: rgba(127,127,127,.15); }
/* Docked in the sidebar */
#demo-acct.docked { flex: none; margin-top: 10px; padding: 12px 10px 2px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); color: inherit; }
#demo-acct.docked #demo-acct-btn { display: none; }
/* Floating, when there is no column sidebar (phones, phone-style screens) */
#demo-acct:not(.docked) { position: fixed; top: 10px; right: 12px; z-index: 300; }
#demo-acct-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; background: var(--brand); color: #fff; font: 700 15px/1 Manrope, 'IBM Plex Sans', sans-serif; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
#demo-acct:not(.docked) #demo-acct-menu { display: none; position: absolute; right: 0; top: 44px; min-width: 230px; padding: 12px 14px; border-radius: 12px; background: #fff; color: #0f172a; box-shadow: 0 12px 32px rgba(15,23,42,.22); border: 1px solid #e2e8f0; }
#demo-acct.open:not(.docked) #demo-acct-menu { display: block; }

#demo-login { position: fixed; inset: 0; z-index: 9999; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; font-family: 'IBM Plex Sans', system-ui, sans-serif; color: #0f172a; }
#demo-login[hidden] { display: none; }
#demo-login .dl-l { background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand) 85%, #fff) 0%, var(--brand) 45%, color-mix(in srgb, var(--brand) 55%, #000) 100%); color: #fff; padding: clamp(32px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
#demo-login .dl-brand { display: flex; align-items: center; gap: 14px; font-family: Manrope, 'IBM Plex Sans', sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
#demo-login .dl-brand svg { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
#demo-login h2 { font-family: Manrope, sans-serif; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin: 0; max-width: 16ch; }
#demo-login ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; max-width: 42ch; }
#demo-login li { padding-left: 28px; position: relative; }
#demo-login li::before { content: ''; position: absolute; left: 0; top: 5px; width: 14px; height: 8px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
#demo-login .dl-note { font-size: 13px; opacity: .85; margin: 0; }
#demo-login .dl-r { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
#demo-login form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 8px; }
#demo-login h1 { font-family: Manrope, sans-serif; font-size: 30px; letter-spacing: -.02em; margin: 0; }
#demo-login .dl-muted { color: #64748b; margin: 0 0 12px; }
#demo-login .dl-small { font-size: 13px; margin-top: 8px; }
#demo-login label { font-size: 13px; font-weight: 600; margin-top: 8px; }
#demo-login input { height: 48px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 0 14px; font: inherit; font-size: 16px; }
#demo-login input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
#demo-login button[type=submit] { height: 50px; margin-top: 16px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
#demo-login button[type=submit]:hover { filter: brightness(1.08); }
#demo-login #dl-err { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 8px 0 0; }
#demo-login #dl-back { text-align: center; margin-top: 12px; color: var(--brand); font-weight: 600; text-decoration: none; }
@media (max-width: 820px) {
  #demo-login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: auto; }
  #demo-login .dl-l { padding: 28px 20px; gap: 14px; }
  #demo-login .dl-l ul, #demo-login .dl-l .dl-note { display: none; }
  #demo-login h2 { font-size: 24px; }
}
#demo-login button[type=submit] { display: flex; align-items: center; justify-content: center; }
/* Small honest label on the public website */
#demo-pill { position: fixed; left: 16px; bottom: 16px; z-index: 9000; display: none; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; background: rgba(15, 23, 42, .88); color: #fff; font: 600 12px/1 'IBM Plex Sans', system-ui, sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.18); backdrop-filter: blur(6px); }
#demo-pill svg { width: 20px; height: 20px; border-radius: 5px; }
#demo-pill button { font: inherit; color: #fff; background: rgba(255,255,255,.14); border: 0; border-radius: 999px; padding: 5px 9px; cursor: pointer; }
body.demo-public #demo-pill { display: inline-flex; }
@media print { #demo-pill, #demo-login, #demo-acct, .pbar { display: none !important; } }
