.demo { width: min(1080px, 100%); margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.demo .mac { width: 100%; margin-top: 0 !important; }
.seg3 { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 980px; background: rgba(66,66,69,.55); }
.seg3 button, .controls button { border: 0; cursor: pointer; font: inherit; color: var(--fg); border-radius: 980px; }
.seg3 button { background: none; font-size: 14px; font-weight: 600; padding: 8px 18px; transition: background .3s; }
.seg3 button[aria-checked="true"] { background: var(--blue); }
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.controls button { background: var(--tile-2); font-size: 14px; padding: 9px 18px; transition: transform .15s, background .2s; }
.controls button:hover { background: #2c2c2e; } .controls button:active { transform: scale(.95); }

.scr { position: relative; aspect-ratio: 1512 / 982; overflow: hidden; border-radius: 12px 12px 4px 4px; container-type: inline-size; background: #000; text-align: left; letter-spacing: 0; user-select: none; line-height: 1.3; }
.scr button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lock, .desk { position: absolute; inset: 0; transition: opacity .55s, transform .7s cubic-bezier(.2,.8,.2,1), visibility .55s; }
.lock { display: flex; flex-direction: column; align-items: center; padding-top: 17cqw; text-shadow: 0 .2cqw 1cqw rgba(0,0,0,.6); }
.l-date { font-size: 1.9cqw; font-weight: 600; opacity: .85; }
.l-time { font-size: 10cqw; font-weight: 700; line-height: 1; letter-spacing: -.035em; opacity: .93; }
.l-user { margin-top: auto; margin-bottom: 2.2cqw; display: flex; flex-direction: column; align-items: center; gap: .55cqw; }
.l-avatar { width: 5cqw; height: 5cqw; border-radius: 50%; background: rgba(255,255,255,.22); overflow: hidden; }
.l-avatar svg { width: 100%; height: 100%; fill: rgba(255,255,255,.85); }
.l-name { font-size: max(8px, 1.3cqw); font-weight: 600; }
.scr .l-touch { font-size: max(7px, 1.15cqw); background: rgba(255,255,255,.18); backdrop-filter: blur(10px); border-radius: 980px; padding: .5cqw 2.4cqw; }
.l-hint { font-size: max(7px, 1cqw); opacity: .6; }
.desk { opacity: 0; visibility: hidden; transform: scale(1.05); }
.scr[data-view="desk"] .lock { opacity: 0; visibility: hidden; transform: translateY(-7%); }
.scr[data-view="desk"] .desk { opacity: 1; visibility: visible; transform: none; }

.bar { position: absolute; inset: 0 0 auto; height: 2.116cqw; display: flex; align-items: center; gap: 1.4cqw; padding: 0 1.1cqw; font-size: max(7px, .96cqw); background: rgba(20,20,24,.45); backdrop-filter: blur(16px); z-index: 3; }
.scr .app-name { font-weight: 700; }
.bar .right { margin-left: auto; display: flex; align-items: center; gap: 1.1cqw; }
.bar .right > svg { width: 1.6cqw; height: 1.3cqw; }
.scr .fu { display: grid; place-items: center; } .fu svg { width: 1.5cqw; height: 1.5cqw; }
.scr .m[aria-expanded="true"] { background: rgba(255,255,255,.18); border-radius: .5cqw; }
.menu { position: absolute; z-index: 8; top: 2.4cqw; left: .8cqw; min-width: 20cqw; padding: .5cqw; border-radius: 1cqw; background: rgba(44,44,48,.9); backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 1.5cqw 3cqw rgba(0,0,0,.5); font-size: max(8px, 1.2cqw); }
.menu.right-menu { left: auto; right: 12cqw; }
.menu button { display: flex; justify-content: space-between; gap: 2cqw; width: 100%; text-align: left; padding: .45cqw .9cqw; border-radius: .6cqw; }
.menu button:hover { background: #0a84ff; }
.menu hr { border: 0; border-top: 1px solid rgba(255,255,255,.14); margin: .4cqw .6cqw; }
.menu p { padding: .3cqw .9cqw; color: var(--muted); }
.menu kbd { font: inherit; color: var(--soft); }

.dk { position: absolute; z-index: 3; bottom: .8cqw; left: 50%; translate: -50% 0; display: flex; align-items: flex-end; gap: .35cqw; padding: .5cqw .6cqw; border-radius: 1.8cqw; background: rgba(60,60,66,.45); backdrop-filter: blur(22px); border: 1px solid rgba(255,255,255,.16); }
.scr .dk button { position: relative; width: 4.6cqw; height: 4.6cqw; padding: 0; transition: width .12s, height .12s; }
.dk img { width: 100%; height: 100%; display: block; }
.dk button span { position: absolute; bottom: 112%; left: 50%; translate: -50% 0; white-space: nowrap; font-size: max(8px, 1.1cqw); background: rgba(40,40,44,.95); border-radius: .6cqw; padding: .3cqw .8cqw; opacity: 0; pointer-events: none; }
.dk button:hover span, .dk button:focus-visible span { opacity: 1; }
.dk button.running::after { content: ""; position: absolute; bottom: -.45cqw; left: 50%; width: .35cqw; height: .35cqw; margin-left: -.17cqw; border-radius: 50%; background: #ddd; }

.win2 { position: absolute; border-radius: 1.4cqw; overflow: hidden; background: rgba(32,32,36,.97); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 2cqw 5cqw rgba(0,0,0,.6); animation: pop .32s cubic-bezier(.2,1.3,.4,1); display: flex; flex-direction: column; }
@keyframes pop { from { scale: .85; opacity: 0; } }
.win2 header { display: flex; align-items: center; gap: .6cqw; padding: 1cqw 1.2cqw; cursor: grab; touch-action: none; font-size: max(8px, 1.2cqw); }
.win2 header b { margin-left: 1cqw; }
.scr .win2 header button { width: 1.1cqw; height: 1.1cqw; padding: 0; border-radius: 50%; background: #ff5f57; }
.win2 header i { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #febc2e; } .win2 header i + i { background: #28c840; }
.win2 .body { flex: 1; min-height: 0; padding: 1.4cqw; font-size: max(8px, 1.15cqw); color: var(--soft); overflow: hidden; }
.win2 .body.flush { padding: 0; } .win2 .body.flush img { width: 100%; display: block; }
.win2 .grid2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqw; text-align: center; color: var(--fg); }
.win2 .grid2 svg { width: 5cqw; height: 4cqw; display: block; margin: 0 auto .3cqw; }
.setup-body { display: flex; flex-direction: column; align-items: center; gap: .8cqw; text-align: center; color: var(--fg); }
.setup-body svg { width: 20cqw; height: 20cqw; border-radius: 1.75cqw; background: #121214; overflow: hidden; }
.setup-body p { min-height: 2.6em; }

/* The camera housing, at its real size on a 1512 x 982 point screen. */
.nub { position: absolute; z-index: 6; top: 0; left: 50%; translate: -50% 0; width: 12.235cqw; height: 2.116cqw; background: #000; border-radius: 0 0 .73cqw .73cqw; }
.scr[data-kind="island"] .nub { top: .463cqw; width: 4.1cqw; height: 1.455cqw; border-radius: 9cqw; }
.scr[data-kind="island"] .nub::after { content: ""; position: absolute; right: .55cqw; top: .45cqw; width: .55cqw; height: .55cqw; border-radius: 50%; background: #14202e; }
.scr[data-kind="plain"] .nub { display: none; }

@media (max-width: 620px) { .seg3 { border-radius: 18px; } .seg3 button { font-size: 12px; padding: 7px 10px; } .dk button span { display: none; } }
@media (prefers-reduced-motion: reduce) { .lock, .desk { transition: none; } .win2 { animation: none; } }
