/* The demo page (app/pages/demo.html): a Windows 11 desktop and a phone, both drawn in
   the page. The desktop is laid out at a fixed 1024 x 640 and scaled to fit by
   js/demo.js, so its proportions are a real screen's at any width. Everything here is
   under .demo; the rest of the site is in site.css. */

.demo-sprite { position: absolute; }
.demo [hidden] { display: none !important; }
.demo { background: var(--wash); padding: 2.2rem 0 4.5rem; }
.demo-head { padding-bottom: 3.2rem; }
.demo-wrap { width: 100%; max-width: 1520px; margin: 0 auto; padding: 0 var(--gut); }
.demo button, .demo input { font: inherit; color: inherit; }
.demo button { cursor: pointer; }
.demo svg { display: block; }

/* What to try, and what to do next. */
.demo-guide { position: sticky; top: calc(var(--top-h) + 8px); z-index: 15; box-shadow: 0 10px 24px -18px rgba(12, 20, 36, .5); display: grid; gap: 1rem 1.6rem; align-items: center; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.demo-tabs button { min-height: 40px; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 600; font-size: .93rem; color: var(--ink-2); }
.demo-tabs button:hover { border-color: var(--ink-2); }
.demo-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.demo-hint { display: flex; gap: .8rem; align-items: baseline; font-size: 1rem; line-height: 1.45; min-height: 2.9em; }
.demo-next { flex: none; font: 500 .74rem var(--mono); color: var(--amber-deep); background: #fff3d1; padding: .2rem .5rem; border-radius: 4px; }
.demo-guide-act { display: flex; gap: .5rem; }
.demo-btn { min-height: 40px; padding: .4rem 1rem; border: 1px solid transparent; border-radius: 8px; background: var(--amber); color: var(--ink); font-weight: 600; font-size: .93rem; white-space: nowrap; }
.demo-btn:hover { background: #ffd467; }
.demo-btn:disabled { opacity: .45; cursor: default; }
.demo-btn.quiet { background: #fff; border-color: var(--line); color: var(--ink-2); }
.demo-btn.quiet:hover { border-color: var(--ink-2); background: #fff; }
.demo-noscript { margin-top: 1rem; padding: 1rem 1.2rem; background: #fff3d1; border-radius: 10px; }

.demo-stage { display: grid; gap: 2rem; margin-top: 1.6rem; }
.demo-pane { min-width: 0; }
.demo-cap { font-size: .9rem; line-height: 1.45; color: var(--ink-2); margin-bottom: .8rem; min-height: 2.9em; }
.demo-cap strong { display: block; font: 500 .78rem var(--mono); color: var(--blue); }
.demo-fine { max-width: 60em; }

/* The computer ------------------------------------------------------------------------ */

.pc { position: relative; aspect-ratio: 1024 / 640; border-radius: 10px; overflow: hidden; background: #02060f; box-shadow: 0 0 0 9px #0b0d12, 0 0 0 10px #2a2f3a, 0 34px 60px -30px rgba(12, 20, 36, .7); margin: 9px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pc-screen {
  --w-text: #fff; --w-text-2: rgba(255, 255, 255, .78); --w-text-3: rgba(255, 255, 255, .55);
  --w-accent: #60cdff; --w-line: rgba(255, 255, 255, .09); --w-fill: rgba(255, 255, 255, .06);
  --w-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  position: absolute; left: 0; top: 0; width: 1024px; height: 640px; transform-origin: 0 0; overflow: hidden;
  font: 13px/1.4 var(--w-ui); color: var(--w-text); background: #02060f url(/img/site/demo-wallpaper.svg) center / cover;
}
.pc-screen p { margin: 0; }
.pc-screen button { border: 0; background: none; padding: 0; text-align: inherit; }
.pc-screen input { user-select: text; -webkit-user-select: text; }
.pc-screen :focus-visible { outline: 2px solid #fff; outline-offset: 1px; border-radius: 4px; }

/* Icons on the desktop. */
.w-desk { position: absolute; inset: 0 0 44px 0; padding: 8px 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pc-screen .w-icon { width: 80px; padding: 6px 2px 5px; display: grid; justify-items: center; gap: 3px; border: 1px solid transparent; border-radius: 4px; text-align: center; font-size: 12px; line-height: 1.25; text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .7); }
.w-icon svg { width: 40px; height: 40px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.w-icon:hover { background: rgba(255, 255, 255, .1); }
.w-icon.on { background: rgba(255, 255, 255, .17); border-color: rgba(255, 255, 255, .22); }

/* The taskbar. */
.w-taskbar { position: absolute; inset: auto 0 0 0; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(26, 28, 34, .82); -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5); border-top: 1px solid rgba(255, 255, 255, .08); }
.w-task-mid { display: flex; align-items: center; gap: 4px; }
.pc-screen .w-task { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 5px; }
.w-task svg { width: 22px; height: 22px; }
button.w-task:hover { background: rgba(255, 255, 255, .08); }
.w-task.running::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 14px; height: 3px; margin-left: -7px; border-radius: 2px; background: var(--w-accent); }
.w-task-search { display: flex; align-items: center; gap: 8px; width: 170px; height: 30px; padding: 0 12px; margin: 0 4px; border-radius: 15px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .06); color: var(--w-text-2); font-size: 12.5px; }
.w-task-search svg { width: 15px; height: 15px; }
.w-tray { position: absolute; right: 8px; top: 0; height: 100%; display: flex; align-items: center; gap: 9px; font-size: 11.5px; }
.w-tray-i { width: 15px; height: 15px; }
.w-tray-group { display: flex; gap: 7px; }
.w-tray-pam svg { width: 16px; height: 16px; }
.w-clock { display: grid; justify-items: end; line-height: 1.3; padding: 0 4px 0 2px; }

/* A window, and the command prompt in it. */
.w-win { position: absolute; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; overflow: hidden; box-shadow: 0 22px 50px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4); }
.w-term { left: 176px; top: 62px; width: 660px; height: 392px; display: flex; flex-direction: column; background: #0c0c0c; }
.w-titlebar { flex: none; display: flex; align-items: center; height: 32px; background: #1f1f1f; font-size: 12px; }
.w-title-icon { width: 16px; height: 16px; margin: 0 9px 0 10px; }
.w-title { flex: 1; }
.pc-screen .w-caption { width: 46px; height: 32px; display: grid; place-items: center; color: #fff; border-radius: 0; }
.w-caption svg { width: 16px; height: 16px; }
button.w-caption:hover { background: rgba(255, 255, 255, .08); }
button.w-caption.close:hover { background: #c42b1c; }
.w-term-body { flex: 1; overflow-y: auto; padding: 6px 8px; font: 13.5px/1.35 "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, Menlo, monospace; color: #cccccc; cursor: text; scrollbar-width: thin; scrollbar-color: #4d4d4d transparent; user-select: text; -webkit-user-select: text; }
.w-term-body pre { margin: 0; font: inherit; white-space: pre-wrap; word-break: break-all; }
.w-term-line { display: flex; }
.w-term-line span { flex: none; white-space: pre; }
.pc-screen .w-term-line input { flex: 1; min-width: 0; border: 0; padding: 0; margin: 0; background: none; font: inherit; color: inherit; caret-color: #ccc; outline: 0; }

/* Start. */
.w-start { position: absolute; left: 50%; bottom: 54px; width: 520px; margin-left: -260px; padding: 26px 0 0; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(36, 38, 44, .93); -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.w-start-search { display: flex; align-items: center; gap: 12px; height: 34px; margin: 0 28px 20px; padding: 0 14px; border-radius: 17px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .08); border-bottom-color: rgba(255, 255, 255, .3); color: var(--w-text-3); }
.w-start-search svg { width: 15px; height: 15px; color: var(--w-text-2); }
.pc-screen .w-start-head { margin: 0 44px 8px; font-weight: 600; font-size: 13px; }
.w-start-grid { display: grid; grid-template-columns: repeat(6, 1fr); padding: 0 28px; margin-bottom: 22px; }
.w-start-grid button { display: grid; justify-items: center; gap: 6px; padding: 10px 2px; border-radius: 4px; font-size: 11.5px; text-align: center; }
.w-start-grid button:hover { background: rgba(255, 255, 255, .08); }
.w-start-grid svg { width: 30px; height: 30px; }
.pc-screen .w-start-none { margin: 0 44px 70px; color: var(--w-text-3); font-size: 12px; }
.w-start-foot { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 40px; background: rgba(0, 0, 0, .22); border-top: 1px solid rgba(255, 255, 255, .06); }
.w-start-user { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.pc-screen .w-start-power { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 4px; }
.w-start-power:hover { background: rgba(255, 255, 255, .08); }
.w-start-power svg { width: 17px; height: 17px; }
.w-avatar { width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); color: #fff; }
.w-avatar svg { width: 56%; height: 56%; }
.w-avatar.small { width: 30px; height: 30px; flex: none; }
.w-avatar.pam { background: none; }
.w-avatar.pam svg { width: 100%; height: 100%; }

/* A right-click menu. */
.w-menu { position: absolute; z-index: 40; min-width: 236px; padding: 4px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(44, 44, 44, .97); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.pc-screen .w-menu button { display: flex; align-items: center; gap: 12px; width: 100%; height: 32px; padding: 0 12px; border-radius: 4px; font-size: 13px; white-space: nowrap; }
.w-menu button:hover, .w-menu button:focus-visible { background: rgba(255, 255, 255, .08); }
.w-menu button.bold { font-weight: 600; }
.w-menu svg, .w-menu i { flex: none; width: 16px; height: 16px; }
.w-menu small { margin-left: auto; padding-left: 24px; color: var(--w-text-3); font-size: 12px; }
.w-menu hr { height: 1px; margin: 4px -4px; border: 0; background: rgba(255, 255, 255, .09); }
.w-menu .note { padding: 6px 12px; color: var(--w-text-3); font-size: 12px; }

/* Notifications from PAM's tray app. */
.w-toasts { position: absolute; z-index: 30; right: 12px; bottom: 56px; display: grid; gap: 8px; width: 340px; }
.w-toast { padding: 12px 16px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(40, 42, 48, .97); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); animation: w-toast-in .28s cubic-bezier(.2, .8, .2, 1); }
.w-toast.out { opacity: 0; transform: translateX(30px); transition: opacity .25s, transform .25s; }
.w-toast-app { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--w-text-2); margin-bottom: 8px; }
.w-toast-app svg { width: 16px; height: 16px; }
.w-toast strong { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.w-toast span { color: var(--w-text-2); }
@keyframes w-toast-in { from { opacity: 0; transform: translateX(40px); } }

/* Controls. */
.pc-screen .w-btn { min-width: 96px; height: 32px; padding: 0 16px; border-radius: 4px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-top-color: rgba(255, 255, 255, .14); font-size: 13.5px; text-align: center; }
.pc-screen .w-btn:hover { background: rgba(255, 255, 255, .11); }
.pc-screen .w-btn.default { border-color: #fff; }
.pc-screen .w-input { display: block; width: 100%; height: 32px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .1); border-bottom-color: rgba(255, 255, 255, .55); border-radius: 4px; background: rgba(255, 255, 255, .06); font-size: 13.5px; color: #fff; outline: 0; }
.pc-screen .w-input::placeholder { color: var(--w-text-3); }
.pc-screen .w-input:focus { background: rgba(0, 0, 0, .3); border-bottom: 2px solid var(--w-accent); }

/* The secure desktop: the administrator prompt, and PAM beside it. */
.w-secure { position: absolute; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; gap: 10px; padding-top: 108px; background: rgba(0, 0, 0, .68); animation: w-fade .18s; }
.w-uac { width: 432px; border-radius: 8px; overflow: hidden; background: #2b2b2b; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 70px rgba(0, 0, 0, .7); animation: w-pop .2s cubic-bezier(.2, .8, .2, 1); }
.w-uac-main { padding: 20px 24px 22px; }
.pc-screen .w-uac-title { font-size: 12.5px; margin-bottom: 14px; }
.pc-screen .w-uac-ask { font: 600 19px/1.3 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; margin-bottom: 20px; }
.pc-screen .w-uac-app { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.w-uac-app svg { width: 32px; height: 32px; }
.pc-screen .w-uac-pub { font-size: 13.5px; margin-bottom: 14px; }
.pc-screen .w-uac-more { font-size: 13.5px; color: var(--w-accent); }
.pc-screen .w-uac-need { font-size: 13.5px; margin: 18px 0 10px; }
.w-uac .w-input { margin-bottom: 8px; }
.pc-screen .w-uac-domain { font-size: 13px; color: var(--w-text-2); margin-top: 4px; }
.pc-screen .w-uac-error { font-size: 13px; color: #ff99a4; margin-top: 8px; }
.w-uac-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 22px 24px; background: #202020; border-top: 1px solid rgba(0, 0, 0, .3); }
.w-dock { width: 278px; padding: 16px 16px 14px; border-radius: 8px; background: #202020; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 60px rgba(0, 0, 0, .65); animation: w-dock-in .32s .12s cubic-bezier(.2, .8, .2, 1) backwards; }
.pc-screen .w-dock-head { font-weight: 700; font-size: 13.5px; margin-bottom: 12px; }
.pc-screen .w-dock button { display: block; width: 100%; height: 30px; margin-bottom: 10px; border-radius: 4px; background: #333; border: 1px solid #6d6d6d; font-size: 12.5px; text-align: center; }
.pc-screen .w-dock button:hover { background: #404040; border-color: #9a9a9a; }
.pc-screen .w-dock p:last-child { font-size: 12px; line-height: 1.4; color: #cfcfcf; margin-top: 4px; }
@keyframes w-fade { from { opacity: 0; } }
@keyframes w-pop { from { opacity: 0; transform: scale(.96); } }
@keyframes w-dock-in { from { opacity: 0; transform: translateX(-14px); } }

/* PAM's own windows. One is a Windows task dialog, which is always light. */
.w-dialog-layer { position: absolute; inset: 0 0 44px 0; z-index: 20; display: grid; place-items: center; }
.w-task-dialog { width: 512px; border-radius: 8px; overflow: hidden; background: #fff; color: #000; border: 1px solid rgba(0, 0, 0, .35); box-shadow: 0 22px 50px rgba(0, 0, 0, .55); font-size: 12px; animation: w-pop .18s; }
.w-td-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding-left: 9px; font-size: 12px; }
.w-td-bar svg { width: 15px; height: 15px; }
.w-td-bar button { margin-left: auto; width: 44px; height: 30px; display: grid; place-items: center; }
.w-td-bar button:hover { background: #c42b1c; color: #fff; }
.w-td-main { display: flex; gap: 10px; padding: 10px 12px 12px; }
.w-td-shield { flex: none; width: 32px; height: 32px; }
.pc-screen .w-td-head { font-size: 16px; color: #003399; margin: 4px 0 12px; }
.pc-screen .w-td-main p { margin-bottom: 12px; }
.pc-screen .w-td-link { display: flex; gap: 8px; width: 432px; padding: 9px 10px 11px; border: 1px solid transparent; border-radius: 3px; color: #0b5cad; }
.pc-screen .w-td-link:first-of-type { border-color: #c8c8c8; }
.pc-screen .w-td-link:hover { background: #e5f1fb; border-color: #9ccbee; }
.w-td-link svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.w-td-link strong { display: block; font-size: 16px; font-weight: 400; line-height: 1.3; }
.w-td-buttons { display: flex; justify-content: flex-end; padding: 11px 12px; background: #f0f0f0; border-top: 1px solid #dfdfdf; }
.pc-screen .w-td-buttons button { width: 70px; height: 22px; border: 1px solid #adadad; border-radius: 3px; background: #e1e1e1; text-align: center; font-size: 12px; }
.pc-screen .w-td-buttons button:hover { background: #e5f1fb; border-color: #0078d7; }
.w-td-foot { padding: 9px 12px 10px; background: #f0f0f0; border-top: 1px solid #dfdfdf; }

.w-reason { width: 462px; border-radius: 8px; overflow: hidden; background: #202020; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 22px 50px rgba(0, 0, 0, .6); animation: w-pop .18s; }
.w-reason-bar { display: flex; align-items: center; gap: 8px; height: 31px; padding-left: 10px; background: #1b2233; font-size: 12px; }
.w-reason-bar svg { width: 15px; height: 15px; }
.w-reason-bar button { margin-left: auto; width: 44px; height: 31px; display: grid; place-items: center; }
.w-reason-bar button:hover { background: #c42b1c; }
.w-reason-main { padding: 24px 24px 26px; }
.pc-screen .w-reason-head { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.pc-screen .w-reason-main p { font-size: 12px; color: #cfcfcf; }
.w-reason .w-input { margin-top: 14px; border-radius: 0; border-color: #7a7a7a; background: #1a1a1a; height: 27px; }
.w-reason-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 24px; background: #2b2b2b; border-top: 1px solid #111; }

/* The sign-in screen. */
.w-lock { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; overflow: hidden; animation: w-fade .25s; }
.w-lock::before { content: ""; position: absolute; inset: -40px; background: url(/img/site/demo-wallpaper.svg) center / cover; filter: blur(22px) brightness(.62) saturate(1.2); }
.w-lock-mid { position: relative; display: grid; justify-items: center; margin-top: -44px; }
.pc-screen .w-lock-name { font: 400 25px/1.2 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; margin: 14px 0 18px; }
.w-lock-pass { display: flex; width: 252px; }
.w-lock-pass .w-input { border-radius: 4px 0 0 4px; background: rgba(0, 0, 0, .45); height: 34px; }
.pc-screen .w-lock-pass button { width: 36px; height: 34px; display: grid; place-items: center; border-radius: 0 4px 4px 0; background: rgba(255, 255, 255, .18); }
.w-lock-pass button:hover { background: rgba(255, 255, 255, .28); }
.w-lock-pass svg { width: 16px; height: 16px; }
.pc-screen .w-lock-small { margin-top: 16px; font-size: 12.5px; color: var(--w-text-2); }
.w-qr { width: 172px; height: 172px; padding: 5px; border-radius: 6px; background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }
.w-qr svg, .ph-finder-qr svg { width: 100%; height: 100%; shape-rendering: crispEdges; }
.w-qr.new { animation: w-pop .25s; }
.pc-screen .w-lock-status { font-size: 13.5px; margin: -6px 0 16px; min-height: 1.4em; }
.w-lock-users { position: absolute; left: 16px; bottom: 16px; display: grid; gap: 2px; }
.pc-screen .w-lock-users button { display: flex; align-items: center; gap: 12px; width: 210px; padding: 9px 10px; border-radius: 4px; font-size: 13px; }
.w-lock-users button:hover { background: rgba(255, 255, 255, .1); }
.w-lock-users button[aria-pressed="true"] { background: rgba(255, 255, 255, .18); }
.w-lock-sys { position: absolute; right: 22px; bottom: 22px; display: flex; gap: 20px; }
.w-lock-sys svg { width: 20px; height: 20px; }
.pc-screen .w-lock-wait { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.w-lock-wait i { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: w-spin .8s linear infinite; }
@keyframes w-spin { to { transform: rotate(360deg); } }

/* The phone ---------------------------------------------------------------------------- */

.ph { position: relative; width: 100%; max-width: 340px; height: 660px; margin: 0 auto; border: 10px solid #05080f; border-radius: 40px; background: #05080f; overflow: hidden; box-shadow: 0 34px 60px -30px rgba(12, 20, 36, .7); font: 14px/1.42 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #17202b; }
.ph p, .ph ol { margin: 0; }
.ph button { border: 0; background: none; padding: 0; }
.ph-status { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 20px; background: #fff; border-radius: 30px 30px 0 0; font-size: 12px; font-weight: 600; }
.ph-status i { width: 76px; height: 18px; border-radius: 10px; background: #05080f; }
.ph-status-r { display: flex; gap: 5px; }
.ph-status svg { width: 14px; height: 14px; }
.ph-app { position: relative; display: flex; flex-direction: column; height: calc(100% - 30px); background: #f4f6f9; border-radius: 0 0 30px 30px; overflow: hidden; }
.ph-top { flex: none; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 14px; background: #fff; border-bottom: 1px solid #dde3ea; font-size: 15px; }
.ph-top svg { width: 26px; height: 26px; }
.ph-msp { margin-left: 4px; padding: 5px 10px; border: 1px solid #dde3ea; border-radius: 9px; font-weight: 700; font-size: 13px; }
.ph-views { flex: 1; overflow-y: auto; padding: 16px 14px 20px; scrollbar-width: thin; }
.ph-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ph-title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.ph-sub { color: #5d6b7c; font-size: 13px; margin: 8px 0 14px !important; }
.ph-muted { color: #5d6b7c; font-size: 13px; }
.ph .ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 6px 13px; border: 1px solid #c9d2dd; border-radius: 9px; background: #fff; font-weight: 600; font-size: 13.5px; color: #17202b; }
.ph .ph-btn:hover { border-color: #5d6b7c; }
.ph .ph-btn.primary { background: #0f5fd7; border-color: #0f5fd7; color: #fff; }
.ph .ph-btn.primary:hover { background: #0c52bd; }
.ph .ph-btn.danger { border-color: #c0271e; color: #c0271e; }
.ph-btn svg { width: 16px; height: 16px; }
.ph-card { padding: 14px; margin-bottom: 12px; background: #fff; border: 1px solid #dde3ea; border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.ph-card.new { animation: ph-card-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes ph-card-in { from { opacity: 0; transform: translateY(-10px); } 60% { box-shadow: 0 0 0 3px #b9d3fb; } }
.ph-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 4px !important; font-size: 15px; }
.ph-card-head .when { margin-left: auto; color: #5d6b7c; font-size: 12px; }
.ph-chip { padding: 2px 8px; border-radius: 10px; background: #f0f3f7; color: #5d6b7c; font-size: 12px; font-weight: 600; }
.ph-chip.blue { background: #e4eefc; color: #0f5fd7; }
.ph-who { margin: 8px 0 !important; }
.ph-who a { color: #0f5fd7; text-decoration: none; }
.ph-quote { margin: 8px 0 !important; padding: 8px 10px; border-left: 3px solid #0f5fd7; border-radius: 0 8px 8px 0; background: #e4eefc; }
.ph-checks { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 12px; }
.ph-checks span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 5px; border: 1px solid #dde3ea; border-radius: 12px; font-size: 11.5px; font-weight: 600; }
.ph-checks svg { width: 13px; height: 13px; padding: 1px; border-radius: 50%; background: #e0f4e8; color: #14804a; }
.ph-acts { display: flex; gap: 8px; margin-top: 12px; }
.ph-acts.end { justify-content: flex-end; }
.ph-none { padding: 26px 14px; border: 1px dashed #c9d2dd; border-radius: 12px; text-align: center; color: #5d6b7c; font-size: 13.5px; }
.ph-seg { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 0 10px; border: 1px solid #c9d2dd; border-radius: 9px; overflow: hidden; }
.ph-seg label { position: relative; cursor: pointer; }
.ph-seg label + label { border-left: 1px solid #c9d2dd; }
.ph-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ph-seg span { display: block; padding: 8px 2px; text-align: center; font-weight: 600; font-size: 13px; }
.ph-seg input:checked + span { background: #0f5fd7; color: #fff; }
.ph-seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: -3px; }
.ph-audit { padding: 0; list-style: none; }
.ph-audit li { display: grid; grid-template-columns: 58px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid #dde3ea; font-size: 13px; }
.ph-audit li.new { animation: ph-card-in .45s; }
.ph-audit time { color: #5d6b7c; font-size: 12px; padding-top: 1px; }
.ph-audit i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #5d6b7c; }
.ph-audit i.good { background: #14804a; }
.ph-audit i.bad { background: #c0271e; }
.ph-audit i.ask { background: #e0a100; }
.ph-nav { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); height: 60px; background: #fff; border-top: 1px solid #dde3ea; }
.ph .ph-nav button { display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 11.5px; color: #5d6b7c; }
.ph .ph-nav button[aria-selected="true"] { color: #0f5fd7; font-weight: 600; }
.ph-nav-i { position: relative; }
.ph-nav svg { width: 22px; height: 22px; }
.ph-nav b { position: absolute; top: -5px; right: -11px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #c0271e; color: #fff; font-size: 11px; line-height: 17px; text-align: center; }
.ph .ph-push { position: absolute; z-index: 5; top: 6px; left: 8px; right: 8px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .97); box-shadow: 0 10px 30px rgba(16, 24, 40, .28), 0 0 0 1px rgba(16, 24, 40, .06); text-align: left; font-size: 13px; animation: ph-push-in .35s cubic-bezier(.2, .8, .2, 1); }
.ph-push svg { flex: none; width: 30px; height: 30px; }
.ph-push strong { display: block; }
@keyframes ph-push-in { from { opacity: 0; transform: translateY(-60px); } }
.ph-sheet { position: absolute; z-index: 6; inset: 0; display: flex; align-items: flex-end; background: rgba(16, 24, 40, .5); animation: w-fade .2s; }
.ph-sheet-box { width: 100%; max-height: 94%; overflow-y: auto; padding: 18px 14px 16px; border-radius: 18px 18px 0 0; background: #fff; animation: ph-sheet-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes ph-sheet-in { from { transform: translateY(60%); } }
.ph-sheet-title { font-size: 17px; font-weight: 700; }
.ph-facts { margin: 12px 0; padding: 2px 12px; border: 1px solid #dde3ea; border-radius: 10px; font-size: 12.5px; }
.ph-facts div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 8px 0; }
.ph-facts div + div { border-top: 1px solid #dde3ea; }
.ph-facts span:first-child { color: #5d6b7c; }
.ph-facts .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 11.5px; word-break: break-all; }
.ph-pick { display: flex; gap: 10px; padding: 11px 12px; margin-bottom: 8px; border: 1px solid #dde3ea; border-radius: 10px; cursor: pointer; }
.ph-pick:has(input:checked) { border-color: #0f5fd7; background: #e4eefc; }
.ph-pick input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: #0f5fd7; }
.ph-pick strong { display: block; font-size: 14px; }
.ph-pick span span { color: #5d6b7c; font-size: 12.5px; }
.ph-pick.plain { border: 0; padding: 8px 2px; margin: 4px 0 0; background: none !important; }
.ph-scan { position: absolute; z-index: 7; inset: 0; display: grid; justify-items: center; align-content: center; gap: 18px; padding: 20px; background: #0b0e13; color: #fff; text-align: center; animation: w-fade .2s; }
.ph-scan-head { font-weight: 700; font-size: 16px; }
.ph-finder { position: relative; width: 210px; height: 210px; display: grid; place-items: center; border-radius: 14px; background: #1a1f27; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.ph-finder-qr { width: 130px; height: 130px; padding: 5px; background: #e9edf2; transform: rotate(-5deg); animation: ph-find 1.7s ease-out; }
.ph-finder-qr:empty { display: none; }
.ph-finder i { position: absolute; left: 10px; right: 10px; top: 12px; height: 2px; background: #5b9bff; box-shadow: 0 0 12px 2px #5b9bff; animation: ph-line 1.5s ease-in-out infinite alternate; }
@keyframes ph-line { to { top: 196px; } }
@keyframes ph-find { from { transform: rotate(-11deg) translate(34px, 26px) scale(.8); filter: blur(3px); } }
.ph-scan-text { font-size: 13.5px; color: #c5ceda; min-height: 3em; max-width: 240px; }
.ph-scan .ph-btn { background: none; color: #fff; border-color: #5d6b7c; }

/* Wider screens ------------------------------------------------------------------------ */

@media (min-width: 1000px) {
  .demo-guide { grid-template-columns: auto minmax(0, 1fr) auto; padding: .8rem 1rem; }
  .demo-stage { grid-template-columns: minmax(0, 1fr) 340px; gap: 2.4rem; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .demo * { animation: none !important; }
}

/* On a narrow screen the guide sits under the two screens and stays at the foot of the
   window, so the next step is in reach while either of them is being looked at. */
@media (max-width: 999px) {
  .demo-wrap { display: flex; flex-direction: column; }
  .demo-stage { margin-top: 0; }
  .demo-guide { order: 5; top: auto; bottom: 10px; margin-top: 1.4rem; padding: .7rem .8rem; gap: .55rem; box-shadow: 0 10px 30px -8px rgba(12, 20, 36, .45); }
  .demo-fine { order: 6; }
  .demo-tabs button { min-height: 34px; padding: .25rem .65rem; font-size: .82rem; }
  .demo-hint { font-size: .92rem; min-height: 0; }
  .demo-guide-act .demo-btn { flex: 1; }
  .demo-cap { min-height: 0; }
}
