/* The home page's little exhibits, shared with the pages written for search: the
   screenshot search, keycaps, the iOS slider, the menu bar strip with walking pets, the
   pet zoo and the privacy orbit. Markup in the pages, behaviour in showcase.js. */
:root { --spring: linear(0, .06, .22 6%, .5 12%, .78 19%, .95 26%, 1.03 33%, 1.045 40%, 1.025 50%, 1.005 62%, .998 75%, 1); }
/* ---- stages: each video already contains its own wallpaper — no compositing in the page ---- */
.stage { position: relative; width: 100%; margin: 56px auto 0; border-radius: 28px; overflow: hidden; background: #1f2a9c; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.stage video, .stage img { display: block; width: 100%; height: auto; }
.stage.fadeb { -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); }

/* ---- figures: the settings' own line drawings, on their dark card ---- */
.fig { position: relative; width: 100%; max-width: 720px; margin: 44px auto 0; border-radius: 20px; overflow: hidden;
  background: #12141d; box-shadow: 0 0 0 1px rgba(121,121,254,.24), 0 30px 60px -30px rgba(0,0,0,.8); }
.fig video, .fig img { display: block; width: 100%; height: auto; }
.fig canvas { display: block; width: 100%; height: 140px; } /* DemoFigure: 140pt, the scene lays itself out across the width */

/* ---- live stages: the app's screens rebuilt in HTML, drawn at their own size and scaled to fit ---- */
.stage.live { aspect-ratio: var(--w) / var(--h); background: none; box-shadow: none; border-radius: 0; overflow: visible; }
/* exhibits, not apps: they play by themselves and take no clicks — only the clipboard menu is yours to try */
.stage.live iframe { pointer-events: none; }
.stage.live.try iframe { pointer-events: auto; }
/* a frame shows up only once its page has drawn, and fades in — no pop of the glow a second later */
.stage.live iframe { opacity: 0; transition: opacity .7s ease-out; }
.stage.live iframe.ready { opacity: 1; }
/* The glow: the desktop's colours as a real blur behind each live screen, drawn by the page — so it
   fades out on a gaussian, with no edge anywhere, and comes up with the frame. --gi places it on the
   component inside the frame; --go is its strength. */
.stage.live { isolation: isolate; }
.stage.live::before { content: ""; position: absolute; z-index: -1; inset: var(--gi, 12% 18%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 72% 18%, rgba(181,199,255,.95), rgba(181,199,255,0)),
    radial-gradient(ellipse 70% 70% at 35% 80%, rgba(92,102,255,.9), rgba(92,102,255,0)),
    linear-gradient(160deg, #4257eb, #1c21a1 60%, #0f126b);
  filter: blur(var(--gb, 56px)); opacity: 0; transition: opacity .9s ease-out; }
.stage.live.on::before { opacity: var(--go, 1); }
.stage.live iframe { position: absolute; left: 0; top: 0; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); border: 0;
  transform-origin: 0 0; transform: scale(var(--k, 1)); color-scheme: dark; }
/* .wide: a frame broader than the column (the clipboard menu centred, its preview opening to the left),
   centred on the page at full size (the page clips what spills past the window); only a phone scales it */
.stage.live.wide, .stage.live.phone { width: calc(var(--w) * var(--k, 1) * 1px); max-width: none; position: relative; left: 50%; translate: -50%; }
.stage.live.phone { max-width: none !important; }  /* inline max-widths are for the desktop column */  /* centring a frame wider than the column: left 50% + translate, which a flex parent would double */

/* ---- screenshot search: a query finds an image by the words in it ---- */
.ocr { width: min(420px, 100%); margin: 0 auto; text-align: left; font-weight: 400; }
.ocr .q { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; background: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); font-size: 15px; }
.ocr .q svg { width: 16px; height: 16px; fill: none; stroke: var(--faint); stroke-width: 2; }
.ocr .q i { width: 1.5px; height: 18px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ocr .hit { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(121,121,254,.14);
  box-shadow: inset 0 0 0 1px rgba(121,121,254,.35); }
.ocr .shot { flex: none; width: 112px; height: 72px; border-radius: 8px; background: #f4f5f8; padding: 9px 10px; display: grid; gap: 5px; align-content: start; }
.ocr .shot span { display: block; height: 5px; border-radius: 3px; background: #c9ccd6; }
.ocr .shot mark { display: block; height: 9px; border-radius: 3px; background: #ffd25e; color: #3a2b00; font: 600 7px/9px ui-monospace, Menlo, monospace; padding: 0 3px; }
.ocr .hit b { display: block; font-size: 14px; font-weight: 500; } .ocr .hit small { color: var(--faint); font-size: 12.5px; }

/* ---- keycaps ---- */
.keys { display: flex; gap: 12px; justify-content: center; }
.kc { position: relative; width: 74px; height: 74px; border-radius: 12px; flex: none;
  background: linear-gradient(#2c2c30, #1e1e21); color: #f2f2f7; font-weight: 400;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.1), 0 3px 0 #0a0a0b, 0 8px 18px rgba(0,0,0,.5);
  transition: transform .14s cubic-bezier(.2,.8,.3,1), box-shadow .14s cubic-bezier(.2,.8,.3,1); }
.kc .g { position: absolute; top: 9px; right: 11px; font-size: 17px; line-height: 1; }
.kc .w { position: absolute; bottom: 9px; right: 11px; font-size: 11px; line-height: 1; letter-spacing: .2px; color: #c7c7cc; }
.kc.l .g { left: 0; right: 0; top: 0; bottom: 0; display: grid; place-items: center; font-size: 24px; }
.kc.down { transform: translateY(2.5px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.06), 0 .5px 0 #0a0a0b, 0 3px 8px rgba(0,0,0,.5); }
.kc.down .g, .kc.down .w { color: #fff; }

/* ---- iOS slider: drag the knob, the track itself does not jump ---- */
.ios { position: relative; height: 28px; flex: 1; touch-action: none; outline: none; }
.ios .tr { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: rgba(120,120,128,.36); overflow: hidden; }
.ios .fi { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; }
.ios .kn { position: absolute; top: 0; width: 28px; height: 28px; margin-left: -14px; border-radius: 14px; background: #fff; cursor: grab;
  box-shadow: 0 .5px 4px rgba(0,0,0,.12), 0 6px 13px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04);
  transition: transform .45s var(--spring), background-color .2s; }
.ios.drag .kn { transform: scale(1.42, 1.08); background: rgba(255,255,255,.82); cursor: grabbing; }
.ios:focus-visible .kn { box-shadow: 0 0 0 3px rgba(10,132,255,.6), 0 6px 13px rgba(0,0,0,.12); }
.slider-row { display: flex; align-items: center; gap: 14px; color: var(--dim); }
.slider-row svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---- companion strip ---- */
.strip { position: relative; height: 64px; border-radius: 16px; overflow: hidden; margin-top: 48px; background: linear-gradient(170deg, #4a5ce6, #2230b0); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.strip .bar { position: absolute; inset: 0 0 auto 0; height: 30px; background: rgba(0,0,0,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; padding: 0 14px; gap: 14px; font-size: 12.5px; font-weight: 400; text-align: left; }
.strip .bar .r { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.strip .bar img { width: 16px; height: 16px; filter: invert(1); }
.strip .lane { position: absolute; left: 0; right: 0; top: 5px; height: 20px; }
.pet { position: absolute; top: 0; width: 32px; height: 20px; cursor: pointer; background-repeat: no-repeat; image-rendering: pixelated; image-rendering: crisp-edges; }
.pet .h { position: absolute; left: 34px; top: -1px; width: 7px; height: 6px; opacity: 0; transform: scale(.3); transition: opacity .15s, transform .35s var(--spring); }
.pet:hover .h { opacity: 1; transform: scale(1); }
.load { max-width: 380px; margin: 30px auto 0; font-size: 14px; }
.load b { font-weight: 400; color: #fff; width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.zoo { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 8px; margin-top: 46px; }
.zoo .p { width: 88px; text-align: center; cursor: pointer; }
.zoo .s { width: 64px; height: 40px; margin: 0 auto; background-repeat: no-repeat; image-rendering: pixelated; image-rendering: crisp-edges; transition: transform .4s var(--spring); }
.zoo .p:hover .s { transform: translateY(-3px); }
.zoo .n { font-size: 12.5px; color: var(--faint); margin-top: 6px; transition: color .2s; }
.zoo .p:hover .n { color: #fff; }
.zoo .n i { font-style: normal; color: var(--accent); font-size: 10px; margin-left: 3px; }

/* ---- secure & private: real app icons around Nekobar, one of them ignored ---- */
.orbit { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin: 0 auto; overflow: hidden; }
/* the spinning square is wider than itself when rotated; clipped, it never widens the page */
.orbit .ring { position: absolute; inset: 12%; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.orbit .core { position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; transform: translate(-50%, -50%); filter: drop-shadow(0 12px 24px rgba(0,0,0,.5)); }
.orbit .spin { position: absolute; inset: 0; animation: spin 90s linear infinite; will-change: transform; }
.orbit .app { position: absolute; left: 50%; top: 50%; width: 16.5%; height: 16.5%; margin: -8.25% 0 0 -8.25%; }
.orbit .app img { width: 100%; height: 100%; display: block; animation: spin 90s linear infinite reverse; filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); }
.orbit .app.off img { opacity: .35; filter: grayscale(1) drop-shadow(0 6px 12px rgba(0,0,0,.45)); }
.orbit .app.off::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%;
  background: #3a3a3c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11h8' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); box-shadow: 0 0 0 2px #000; animation: spin 90s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.legend { margin-top: 18px; font-size: 13px; color: var(--faint); text-align: center; }
/* ---- display dimming: the external display dims, the MacBook stays as it is ---- */
.desk { position: relative; max-width: 760px; margin: 56px auto 0; display: flex; align-items: flex-end; justify-content: center; gap: 4%; }
.ext { width: 64%; }
.ext .bz { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; padding: 1.4%; background: #0c0c0e; box-shadow: inset 0 0 0 1.5px #2e2e32; }
.ext .neck { width: 14%; height: 54px; margin: 0 auto; background: linear-gradient(90deg, #8a8a90, #c9c9ce 45%, #8a8a90); }
.ext .foot { width: 34%; height: 8px; margin: 0 auto; border-radius: 3px 3px 6px 6px; background: linear-gradient(#cfcfd4, #8a8a90); }
.lap { width: 34%; }
.lap .lid { border-radius: 4.2% / 6.6%; background: #0c0c0e; padding: 2.2% 2.2% 1.8%; box-shadow: inset 0 0 0 1.5px #2e2e32; }
.lap .base { height: 8px; margin: 0 -8%; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(#b8b8bd, #7b7b80); }
.scr { position: relative; width: 100%; height: 100%; border-radius: 4px; overflow: hidden; background: url(wallpaper.jpg) center / cover; }
.lap .scr { aspect-ratio: 16 / 10; height: auto; }
.scr .shade { position: absolute; inset: 0; background: #000; opacity: 0; }
.desk .lbl { margin-top: 14px; font-size: 12.5px; color: var(--faint); text-align: center; }
.dimctl { max-width: 420px; margin: 36px auto 0; }

/* narrow phones: nothing may be wider than the screen, or the browser zooms the page out */
@media (max-width: 400px) { .keys { gap: 8px; } .kc { width: 62px; height: 62px; } .kc .w { font-size: 10px; } }

/* ---- the 1.6.0 pages' exhibits: small working copies of the feature, playing by themselves
   until someone touches them (showcase.js, "exhibits that play themselves") ---- */
.fx { position: relative; max-width: 720px; margin: 48px auto 0; text-align: left; font-weight: 400; }
.fx .hint { text-align: center; font-size: 13px; color: var(--faint); margin-top: 14px; }
.fx-cur { position: absolute; left: 0; top: 0; z-index: 9; width: 17px; height: 24px; pointer-events: none; opacity: 0;
  transition: transform .6s var(--ease), opacity .3s, scale .12s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 24'%3E%3Cpath d='M1.5 1.5v18.2l4.4-4.2 2.9 6.8 3-1.3-2.9-6.7h6.2z' fill='%23000' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; }
.fx-win { position: relative; border-radius: 12px; background: #1e1e20; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px -20px rgba(0,0,0,.8);
  -webkit-user-select: none; user-select: none; }
.fx-win > .tb { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13px; color: #fff; }
.fx-win > .tb i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; flex: none; }
.fx-win > .tb i:nth-child(2) { background: #febc2e; } .fx-win > .tb i:nth-child(3) { background: #28c840; }
.fx-win > .tb span { margin-left: 10px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Monitor brightness: the monitor's own backlight, and its own on-screen bar */
.fx-ddc .scr { transition: filter .15s; }
.fx-ddc .osd { position: absolute; left: 50%; bottom: 12%; width: 46%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px;
  background: rgba(20,20,22,.85); box-shadow: 0 0 0 .5px rgba(255,255,255,.2); opacity: 0; transition: opacity .3s; }
.fx-ddc .osd.on { opacity: 1; }
.fx-ddc .osd svg { width: 14px; height: 14px; flex: none; fill: none; stroke: #fff; stroke-width: 1.6; }
.fx-ddc .osd u { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.fx-ddc .osd u i { display: block; height: 100%; background: #fff; }
.fx-ddc .slider-row b { width: 44px; text-align: right; font-weight: 400; color: #fff; font-variant-numeric: tabular-nums; }

/* SSH: the panel's hosts, folding groups, and the terminal a click opens */
.fx-ssh { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; -webkit-user-select: none; user-select: none; }
.fx-ssh .pan { position: relative; padding: 8px; border-radius: 14px; background: rgba(40,40,44,.95); box-shadow: 0 0 0 .5px rgba(255,255,255,.16), 0 20px 44px -16px rgba(0,0,0,.8); font-size: 13px; }
.fx-ssh .pan h5 { display: flex; align-items: center; gap: 8px; margin: 2px 8px 6px; font-size: 12px; font-weight: 600; color: var(--faint); }
.fx-ssh .gh, .fx-ssh .host, .fx-ssh .mng { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.fx-ssh .gh:hover, .fx-ssh .host:hover, .fx-ssh .mng:hover { background: rgba(255,255,255,.08); }
.fx-ssh .gh { font-weight: 500; } .fx-ssh .gh span { margin-left: auto; color: var(--faint); font-weight: 400; font-size: 12px; }
.fx-ssh .gh::before { content: ""; width: 6px; height: 6px; margin: 0 3px; border: solid var(--faint); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translate(-1px, -1px); transition: transform .3s var(--ease); }
.fx-ssh .grp.shut .gh::before { transform: rotate(-45deg); }
.fx-ssh .hosts { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s var(--ease); }
.fx-ssh .grp.shut .hosts { grid-template-rows: 0fr; } .fx-ssh .hosts > div { overflow: hidden; }
.fx-ssh .grp .host { padding-left: 28px; }
.fx-ssh .host::before { content: ""; width: 10px; height: 12px; flex: none; border-radius: 2px; background: linear-gradient(rgba(255,255,255,.55) 0 2px, transparent 2px 5px, rgba(255,255,255,.55) 5px 7px, transparent 7px 10px, rgba(255,255,255,.55) 10px); }
.fx-ssh .host small { margin-left: auto; color: var(--faint); font: 11px ui-monospace, Menlo, monospace; }
.fx-ssh .host.hit { background: var(--accent); } .fx-ssh .host.hit small { color: #fff; }
.fx-ssh .mng { color: var(--faint); border-top: 1px solid rgba(255,255,255,.08); border-radius: 0 0 7px 7px; margin-top: 4px; }
.fx-ssh .term { background: #141416; }
.fx-ssh pre { margin: 0; min-height: 250px; padding: 14px 16px; font: 12.5px/1.55 ui-monospace, Menlo, monospace; color: #e8e8ea; white-space: pre-wrap; overflow-wrap: anywhere; }
.fx-ssh pre::after { content: ""; display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: #e8e8ea; animation: caret 1s steps(1) infinite; }
@media (max-width: 640px) { .fx-ssh { grid-template-columns: 1fr; } .fx-ssh pre { min-height: 180px; } }

/* ---- macOS 26 itself, for the exhibits: a window, the sidebar, menus, the app's copy HUD.
   SF Symbols are masks from the system (assets/mac/sym), file icons the system's own ---- */
.fx s { display: inline-block; flex: none; width: 16px; height: 16px; background: currentColor; text-decoration: none;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.fx-cur { width: 20px; height: 28px; margin: -2px 0 0 -2px; background: none; transition: opacity .25s; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.45)); will-change: transform; }
.fx-cur svg { display: block; width: 100%; height: 100%; }
.fx-cur.cross { width: 32px; height: 32px; margin: -15px 0 0 -15px; filter: none; background: url(mac/cursor-shot.png) 0 0 / 100% no-repeat; }
.fx-cur.cross svg { display: none; }
.mac-win { position: relative; display: flex; border-radius: 16px; background: #1e1e1e; color: #fff; text-align: left; cursor: default;
  font: 13px/1.25 system-ui, -apple-system, BlinkMacSystemFont, sans-serif; -webkit-user-select: none; user-select: none;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.8), inset 0 0 0 .5px rgba(255,255,255,.14), 0 28px 70px rgba(0,0,0,.55); }
.mac-win .lights { display: flex; gap: 8px; padding: 7px 5px 0; }
.mac-win .lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.mac-win .lights i:nth-child(2) { background: #febc2e; } .mac-win .lights i:nth-child(3) { background: #28c840; }
.mac-win .sb { width: 180px; flex: none; margin: 8px 0 8px 8px; padding: 6px 8px; border-radius: 12px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.07); }
.mac-win .sb h6 { margin: 16px 8px 3px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.45); }
.mac-win .sb a { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 8px; border-radius: 8px; color: rgba(255,255,255,.88); text-decoration: none; white-space: nowrap; }
.mac-win .sb a s { width: 15px; height: 15px; color: var(--accent); }
.mac-win .sb a.on { background: rgba(255,255,255,.1); }
.mac-win .pane { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mac-win .tbar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px 0 14px; }
.mac-win .tbar b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mac-win .tbar .sp { flex: 1; }
.mac-win .cap { display: flex; align-items: center; height: 30px; padding: 0 3px; border-radius: 15px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12); }
.mac-win .cap s { width: 30px; height: 14px; color: rgba(255,255,255,.85); }
.mac-win .cap s.off { opacity: .3; }
.mac-files { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, 96px); align-content: start; gap: 12px 6px; padding: 12px 16px 48px; min-height: 270px; }
.mac-files .f { display: flex; flex-direction: column; align-items: center; font-size: 12px; text-align: center; }
.mac-files .f img { width: 64px; height: 64px; padding: 3px; border-radius: 6px; box-sizing: content-box; -webkit-user-drag: none; }
.mac-files .f span { margin-top: 2px; padding: 0 5px; border-radius: 4px; max-width: 92px; line-height: 16px; overflow-wrap: anywhere; }
.mac-files .f.sel img { background: rgba(255,255,255,.12); } .mac-files .f.sel span { background: var(--accent); }
.mac-files .f.cut img { opacity: .45; }
.mac-files .f.new { animation: fx-fade .25s ease-out; }
@keyframes fx-fade { from { opacity: 0; } }
.mac-menu { position: absolute; z-index: 10; min-width: 210px; padding: 5px 0; border-radius: 12px; font-size: 13px; color: #fff;
  background: rgba(36,36,38,.8); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.55), inset 0 0 0 .5px rgba(255,255,255,.17), 0 10px 32px rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .2s; }
.mac-menu.on { opacity: 1; pointer-events: auto; transition: none; }
.mac-menu .mi { position: relative; display: flex; align-items: center; gap: 8px; height: 24px; margin: 0 5px; padding: 0 9px; border-radius: 6px; white-space: nowrap; }
.mac-menu .mi > s, .mac-menu .mi > img { width: 15px; height: 15px; }
.mac-menu .mi > s.no { visibility: hidden; }
.mac-menu .mi > em { flex: 1; font-style: normal; }
.mac-menu .mi > s.chev { width: 9px; height: 9px; margin-left: 18px; opacity: .55; }
.mac-menu .mi.hl { background: var(--accent); } .mac-menu .mi.hl > s.chev { opacity: 1; }
.mac-menu hr { height: 1px; margin: 5px 14px; border: 0; background: rgba(255,255,255,.1); }
.mac-menu .mac-menu { display: none; left: 100%; top: -5px; margin-left: 4px; opacity: 1; pointer-events: auto; transition: none; }
.mac-menu .mac-menu.left { left: auto; right: 100%; margin: 0 4px 0 0; }
.mac-menu .mi.open > .mac-menu { display: block; }
.mac-hud { position: absolute; z-index: 15; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; color: #fff; white-space: nowrap;
  font: 500 12px/1.2 system-ui, -apple-system, sans-serif; background: rgba(46,46,48,.8); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12), 0 8px 24px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .3s; }
.mac-hud.on { opacity: 1; transition-duration: .15s; }
.mac-hud s { width: 14px; height: 14px; color: #30d158; }
.mac-hud i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
@media (max-width: 620px) { .mac-win .sb { display: none; } .mac-files { grid-template-columns: repeat(auto-fill, 84px); padding: 10px 10px 40px; } .mac-win .tbar .cap.v { display: none; } }

/* a piece of a Mac desktop at its real size (900×560 points), scaled to the column */
.mac-fit { --sw: 900; --sh: 560; position: relative; max-width: calc(var(--sw) * 1px); aspect-ratio: var(--sw) / var(--sh); margin: 48px auto 0; }
.mac-scene { position: absolute; left: 0; top: 0; width: calc(var(--sw) * 1px); height: calc(var(--sh) * 1px); transform-origin: 0 0; transform: scale(var(--k, 1)); overflow: hidden; border-radius: 14px;
  background: url(wallpaper.jpg) center / cover; color: #fff; text-align: left; cursor: default; -webkit-user-select: none; user-select: none;
  font: 13px/1.25 system-ui, -apple-system, BlinkMacSystemFont, sans-serif; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px -20px rgba(0,0,0,.8); }
.mac-scene .mac-win { position: absolute; z-index: 1; flex-direction: column; transition: opacity .15s; }
.mac-win.gone { opacity: 0; pointer-events: none; }
.mac-win .tt { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; flex: none; }
.mac-win .tt .lights { padding: 0; }
.mac-win .tt b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.mac-win .tt.thin { height: 32px; justify-content: center; position: relative; }
.mac-win .tt.thin .lights { position: absolute; left: 12px; } .mac-win .tt.thin b { font-size: 13px; font-weight: 600; }
.mac-win .body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.m-sec { color: rgba(235,235,245,.6); }
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; height: 24px; padding: 0 12px; border: 0; border-radius: 12px; color: #fff;
  font: 13px system-ui, -apple-system, sans-serif; white-space: nowrap; cursor: default; background: rgba(255,255,255,.14);
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.14), 0 .5px 1.5px rgba(0,0,0,.35); }
.m-btn.lg { height: 30px; padding: 0 15px; border-radius: 15px; } .m-btn.sm { height: 20px; padding: 0 9px; border-radius: 10px; font-size: 11px; }
.m-btn.def { background: var(--accent); }
.m-btn.press { filter: brightness(1.35); } .m-btn.off { opacity: .4; pointer-events: none; }
.m-btn s { width: 14px; height: 14px; } .m-btn.plain { background: none; box-shadow: none; padding: 0 4px; color: rgba(235,235,245,.6); }
.m-chk { flex: none; width: 14px; height: 14px; border-radius: 4px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25); display: grid; place-items: center; }
.m-chk.on { background: var(--accent); box-shadow: none; }
.m-chk.on::after { content: ""; width: 9px; height: 9px; background: #fff; -webkit-mask: url(mac/sym/checkmark.png) center / contain no-repeat; mask: url(mac/sym/checkmark.png) center / contain no-repeat; }
.m-tog { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.m-card { padding: 12px; border-radius: 10px; background: rgba(255,255,255,.045); }
.m-div { height: 1px; background: rgba(255,255,255,.09); }
.m-pop { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 5px 0 9px; border-radius: 10px; font-size: 11px; background: rgba(255,255,255,.14); box-shadow: inset 0 .5px 0 rgba(255,255,255,.14); }
.m-pop s { width: 8px; height: 10px; opacity: .7; }
.m-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: rgba(255,255,255,.8); animation: spin .8s linear infinite; }
.mac-scene .fx-cur.hid { opacity: 0 !important; }

/* Text from Screen: QuickTime with a paused talk, the Toolbox pane */
.qt { background: #000; overflow: hidden; }
.qt .tt.thin { position: absolute; inset: 0 0 auto; z-index: 2; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.qt .vid { position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 10%, rgba(255,159,10,.35), transparent 55%), linear-gradient(135deg, #22335c, #0f1526); }
.qt .slide { position: absolute; left: 46px; top: 58px; right: 40px; }
.qt .ln { display: block; width: fit-content; font-size: 19px; line-height: 32px; color: rgba(255,255,255,.88); }
.qt .ln.h { font-size: 30px; font-weight: 700; line-height: 46px; margin-bottom: 6px; color: #fff; }
.qt .ln.b::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 12px 3px 2px; border-radius: 50%; background: #ff9f0a; }
.qt .ctl { position: absolute; left: 50%; bottom: 16px; z-index: 2; transform: translateX(-50%); width: 300px; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 20px;
  background: rgba(40,40,42,.6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.15); font: 11px ui-monospace, Menlo, monospace; color: rgba(255,255,255,.8); }
.qt .ctl s { width: 14px; height: 14px; color: #fff; } .qt .ctl u { flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #fff 41%, rgba(255,255,255,.25) 41%); }
.m-shot { position: absolute; z-index: 30; display: none; pointer-events: none; background: rgba(160,160,160,.28); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.55); }
.m-dims { position: absolute; z-index: 31; display: none; pointer-events: none; font: 600 11px/13px system-ui, sans-serif; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.mac-scene.shooting, .mac-scene.shooting * { cursor: url(mac/cursor-shot.png) 15 15, crosshair; }
.tbx .ed { flex: 1; min-height: 0; position: relative; font: 12px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; overflow: hidden; }
.tbx .ed i { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px; font: 12px/1.45 system-ui, sans-serif; font-style: normal; text-align: center; color: rgba(235,235,245,.6); }

/* Color Picker: Preview with a picture, the system loupe, the pane */
.pv .body { padding: 0; } .pv canvas { display: block; flex: 1; min-height: 0; width: 100%; border-radius: 0 0 16px 16px; }
.m-loupe { position: absolute; z-index: 40; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; overflow: hidden; pointer-events: none; display: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.35), 0 8px 22px rgba(0,0,0,.45); }
.m-loupe canvas { display: block; width: 100%; height: 100%; }
.m-loupe::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(0,0,0,.45); }
.cpk .head { display: flex; align-items: center; gap: 14px; }
.cpk .head .sw { width: 64px; height: 64px; flex: none; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); background: rgba(255,255,255,.06); }
.cpk .head b { display: block; font: 600 15px ui-monospace, Menlo, monospace; } .cpk .head small { display: block; margin-top: 6px; font-size: 10px; }
.cpk .head .grow { flex: 1; min-width: 0; }
.cpk .fm { padding-top: 6px; padding-bottom: 6px; }
.cpk .fr { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.cpk .fr > span { width: 64px; flex: none; font-size: 10px; font-weight: 600; color: rgba(235,235,245,.6); }
.cpk .fr > code { flex: 1; min-width: 0; font: 12px ui-monospace, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpk .rh { display: flex; align-items: center; gap: 8px; } .cpk .rh > .t { flex: 1; font-size: 11px; font-weight: 600; color: rgba(235,235,245,.6); }
.cpk .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)); gap: 8px; margin-top: 8px; }
.cpk .grid i { height: 32px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.cpk .grid i.cur { box-shadow: inset 0 0 0 2px var(--accent); }

/* Uninstall App: Applications in Finder, the pane */
.mac-scene .mac-files { min-height: 0; padding-top: 4px; }
.uni .drop { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; border-radius: 14px; text-align: center; border: 2px dashed rgba(255,255,255,.15); }
.uni .drop.hot { border-color: var(--accent); } .uni .drop.hot > s { color: var(--accent); }
.uni .drop > s { width: 46px; height: 46px; color: rgba(235,235,245,.6); }
.uni .drop b { font-size: 15px; font-weight: 600; } .uni .drop p { max-width: 380px; margin: 0; font-size: 12px; line-height: 1.4; color: rgba(235,235,245,.6); }
.uni .ah { display: flex; align-items: center; gap: 12px; } .uni .ah img { width: 48px; height: 48px; }
.uni .ah b { display: block; font-size: 15px; font-weight: 600; } .uni .ah small { font: 10px ui-monospace, Menlo, monospace; color: rgba(235,235,245,.6); }
.uni .ah .grow, .uni .lr .grow { flex: 1; min-width: 0; }
.uni .list { flex: 1; min-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; }
.uni .lr { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12px; }
.uni .lr .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .uni .lr .sz { font-size: 10px; font-variant-numeric: tabular-nums; color: rgba(235,235,245,.6); }
.uni .lr s { width: 12px; height: 12px; color: rgba(235,235,245,.6); }
.uni .lr.me .grow { font-weight: 500; }
.uni .ft { display: flex; align-items: center; gap: 8px; font-size: 12px; } .uni .ft .grow { flex: 1; color: rgba(235,235,245,.6); }
.m-ghost { position: absolute; z-index: 35; width: 64px; height: 64px; opacity: .6; pointer-events: none; margin: -32px 0 0 -32px; }

/* Presentation Mode: the whole desktop */
.desk-mb { position: absolute; inset: 0 0 auto; z-index: 20; height: 24px; display: flex; align-items: center; gap: 18px; padding: 0 14px; font-size: 13px; font-weight: 500; text-shadow: 0 0 6px rgba(0,0,0,.3); white-space: nowrap; }
.desk-mb > span { font-weight: 400; } .desk-mb .r { margin-left: auto; display: flex; align-items: center; gap: 16px; font-weight: 500; }
.desk-mb s { width: 15px; height: 15px; color: #fff; } .desk-mb img { width: 20px; filter: invert(1); }
.desk-ic { position: absolute; z-index: 1; top: 34px; right: 10px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, 102px); grid-auto-columns: 104px; direction: rtl; transition: opacity .2s; }
.desk-ic.gone { opacity: 0; }
.desk-ic .f { direction: ltr; width: 104px; display: flex; flex-direction: column; align-items: center; font-size: 12px; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.desk-ic img { width: 64px; height: 64px; } .desk-ic span { max-width: 96px; line-height: 15px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.desk-cover { position: absolute; inset: 0; z-index: 2; background: #303032; opacity: 0; transition: opacity .2s; pointer-events: none; }
.desk-cover.on { opacity: 1; }
.kn .stage2 { flex: 1; display: grid; place-items: center; background: #232325; border-radius: 0 0 16px 16px; }
.kn .pg { width: 400px; aspect-ratio: 16 / 9; padding: 28px 32px; border-radius: 4px; background: linear-gradient(135deg, #f7f4ee, #e7e2d8); color: #1d1d1f; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.kn .pg b { display: block; font-size: 26px; font-weight: 700; } .kn .pg span { display: block; height: 7px; margin-top: 12px; border-radius: 4px; background: #c9c3b6; }
.fx-keys { margin-top: 28px; cursor: pointer; }

/* where each scene's windows stand: on a desktop as on a Mac; on a phone the scene is a
   narrower desk with the windows one above the other, so it scales down far less */
#fxPresent .w1 { left: 70px; top: 70px; width: 560px; height: 400px; z-index: 3; }
#fxOcr .w1 { left: 28px; top: 28px; width: 600px; height: 360px; } #fxOcr .w2 { left: 372px; top: 150px; width: 500px; height: 384px; }
#fxColor .w1 { left: 26px; top: 30px; width: 470px; height: 380px; } #fxColor .w2 { left: 420px; top: 64px; width: 456px; height: 484px; }
#fxUn .w1 { left: 24px; top: 36px; width: 430px; height: 340px; } #fxUn .w2 { left: 384px; top: 100px; width: 492px; height: 440px; }
@media (max-width: 640px) {
  .mac-fit { --sw: 480; }
  #fxPresent .mac-fit { --sh: 640; } #fxPresent .w1 { left: 14px; top: 360px; width: 452px; height: 260px; }
  #fxPresent .kn .pg { width: 300px; padding: 20px 24px; } #fxPresent .kn .pg b { font-size: 20px; }
  #fxPresent .desk-ic { grid-template-rows: repeat(3, 102px); }
  #fxPresent .desk-mb > span:nth-of-type(n+3) { display: none; } #fxPresent .desk-mb .r { gap: 12px; }
  #fxOcr .mac-fit { --sh: 650; } #fxOcr .w1 { left: 12px; top: 12px; width: 456px; height: 280px; } #fxOcr .w2 { left: 12px; top: 304px; width: 456px; height: 334px; }
  #fxOcr .qt .slide { left: 30px; top: 46px; } #fxOcr .qt .ln.h { font-size: 24px; line-height: 38px; } #fxOcr .qt .ln { font-size: 16px; line-height: 27px; } #fxOcr .qt .ctl { width: 260px; bottom: 12px; }
  #fxColor .mac-fit { --sh: 828; } #fxColor .w1 { left: 12px; top: 12px; width: 456px; height: 310px; } #fxColor .w2 { left: 12px; top: 334px; width: 456px; height: 484px; }
  #fxUn .mac-fit { --sh: 690; } #fxUn .w1 { left: 12px; top: 12px; width: 456px; height: 210px; } #fxUn .w2 { left: 12px; top: 236px; width: 456px; height: 442px; }
}
/* on a touch screen a drag in a scene is the scene's, not the page's scroll */
.mac-scene .apps .f, .mac-scene.shooting, .mac-scene.picking { touch-action: none; }
