/* The MacBook and the notch on the home page. A scaled replica of macOS and NotchStar, not site chrome: every size here is
   in points (1 point = 1 CSS pixel before /playground.js scales the whole device), so it is exempt from the site's spacing,
   type and gradient rules. Numbers come from the app: open panel 660 by 296, tab bar 30 high, content padding 30,
   header 32 high, notch shape radii 14 and 30. Colours come from the app's own renders. */

.mb-wrap { position: relative; width: min(100% - 32px, 1320px); margin-inline: auto; overflow: hidden; aspect-ratio: 1604 / 1066; }
/* The script sets this height after load (playground.js, layout()). The same proportions here reserve the space up front, so the page
   below does not jump: 1604 wide by 1066 high (1036 device + 30) at normal widths, 760 by 640 in the narrow, zoomed layout (under 760 px). */
@media (max-width: 791px) { .mb-wrap { aspect-ratio: 760 / 640; } }
.mb { position: absolute; left: 0; top: 0; width: 1604px; transform-origin: 0 0; transform: scale(0.8); -webkit-font-smoothing: antialiased;
  font: 13px/16px -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Helvetica Neue', sans-serif; color: #fff; }
.mb button { font: inherit; color: inherit; }

/* the machine: aluminium rim, black glass bezel, a screen with rounded corners, and the base with its finger lip */
.mb-lid { width: 1540px; margin: 0 auto; padding: 14px 14px 16px; border-radius: 28px 28px 6px 6px; background: #050506; border: 2px solid #a7aab1; box-shadow: inset 0 0 0 1px #202226; box-sizing: content-box; width: 1512px; }
.mb-screen { position: relative; width: 1512px; height: 982px; border-radius: 10px; overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; }
.mb-screen textarea { user-select: text; -webkit-user-select: text; }
.mb-base { position: relative; width: 1604px; height: 22px; margin: -2px auto 0; border-radius: 0 0 26px 26px / 0 0 22px 22px; background: linear-gradient(#dfe1e5, #c4c7cc 70%, #b4b7bd); }
.mb-base::before { content: ''; position: absolute; left: 50%; top: 0; width: 210px; height: 8px; margin-left: -105px; border-radius: 0 0 12px 12px; background: #a3a6ac; }
.mb::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -24px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,0.22), transparent); z-index: -1; }
.mb-wall { position: absolute; inset: 0; background: #a58d6e url('/playground/wallpaper.jpg') 50% 50% / cover no-repeat; }
/* webp is a quarter of the jpg size (186 KB to 40 KB, and 15 KB for phones); browsers without image-set keep the jpg above */
@supports (background-image: image-set(url('/a.webp') type('image/webp'))) {
  .mb-wall { background-image: image-set(url('/playground/wallpaper.webp') type('image/webp'), url('/playground/wallpaper.jpg') type('image/jpeg')); }
  @media (max-width: 791px) { .mb-wall { background-image: image-set(url('/playground/wallpaper-m.webp') type('image/webp'), url('/playground/wallpaper.jpg') type('image/jpeg')); } }
}

/* macOS menu bar: 32 high on a notched MacBook, translucent over the wallpaper */
.mb-menubar { position: absolute; inset: 0 0 auto 0; height: 32px; display: flex; align-items: center; gap: 20px; padding: 0 16px; background: rgba(28, 26, 34, 0.34); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); font-size: 13px; line-height: 32px; z-index: 2; }
.mb-menubar b { font-weight: 700; }
.mb-apple svg { width: 15px; height: 15px; display: block; }
.mb-extras { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.mb-extras > span { display: flex; align-items: center; height: 32px; }
.mb-extras svg { width: 19px; height: 19px; display: block; }
.mb-extras .mb-ns svg { width: 18px; height: 18px; }
.mb-wx { gap: 6px; } .mb-wx i { display: flex; } .mb-wx svg { width: 21px; height: 21px; }
.mb-extras i[data-clock] { font-style: normal; font-weight: 500; letter-spacing: 0.1px; margin-left: 2px; }

/* the notch: a black shape drawn by the script from the app's NotchShape, so it grows like the real one */
.nt { position: absolute; top: 0; left: 50%; width: 186px; height: 32px; transform: translateX(-50%); z-index: 5; }
.nt > svg { position: absolute; left: 0; top: 0; overflow: visible; }
.nt-shape path { fill: #000; }
.nt-shadow { opacity: 0; transition: opacity 50ms ease-out; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45)); pointer-events: none; }
.nt-shadow path { fill: #000; }
.nt[data-shadow='on'] .nt-shadow { opacity: 1; transition: opacity 200ms ease-out; }
.nt-cam { position: absolute; left: 50%; top: 10px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #1b2030, #07080b 70%); box-shadow: 0 0 0 1px #0c0d10; pointer-events: none; }
.nt-hit { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: default; border-radius: 0 0 9px 9px; }
.nt[data-open='true'] .nt-hit { display: none; }
.nt-hit:focus-visible { outline: 2px solid #4da3ff; outline-offset: 3px; }
.nt-open { position: absolute; left: 50%; top: 0; width: 660px; height: 296px; margin-left: -330px; display: flex; flex-direction: column; opacity: 0; transform-origin: 50% 0; will-change: transform, opacity; color: #fff; }
.nt-open[inert] { visibility: hidden; }

.nt-bar { height: 32px; flex: none; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; }
.nt-title { margin: 0; font-size: 13px; line-height: 16px; font-weight: 700; transition: opacity 100ms ease; }
.nt-hbtns { display: flex; gap: 6px; }
.nt-hb { appearance: none; border: 0; background: transparent; width: 30px; height: 26px; border-radius: 13px; display: grid; place-items: center; color: #98989d; cursor: default; padding: 0; transition: background-color 150ms ease, color 150ms ease; }
.nt-hb svg { width: 15px; height: 15px; }
.nt-hb:hover { background: rgba(255, 255, 255, 0.08); }
.nt-hb[aria-pressed='true'] { background: rgba(255, 255, 255, 0.16); color: #fff; }
.nt-hb:focus-visible, .nt-tab:focus-visible { outline: 2px solid #4da3ff; outline-offset: 1px; }

.nt-stage { flex: 1; min-height: 0; margin: 8px 30px 0; position: relative; }
.nt-pane { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 200ms cubic-bezier(0.32, 0.72, 0, 1); overflow: hidden; }
.nt-pane.on { opacity: 1; pointer-events: auto; }

.nt-tabs { flex: none; position: relative; display: flex; gap: 4px; height: 30px; margin: 8px auto 16px; }
.nt-pill { position: absolute; left: 0; top: 0; height: 30px; border-radius: 15px; background: rgba(255, 255, 255, 0.16); pointer-events: none; }
.nt-tab { position: relative; appearance: none; border: 0; background: transparent; height: 30px; padding: 0; display: flex; align-items: center; overflow: hidden; color: #98989d; cursor: default; border-radius: 15px; flex: none; }
.nt-tab[aria-selected='true'] { color: #fff; }
.nt-ic { position: relative; flex: none; width: 18px; height: 18px; margin-left: 10px; }
.nt-ic span { position: absolute; inset: 0; display: grid; place-items: center; }
.nt-ic svg { width: 18px; height: 18px; }
.nt-ic .on, .nt-tab[aria-selected='true'] .nt-ic .off { display: none; }
.nt-tab[aria-selected='true'] .nt-ic .on { display: grid; }
.nt-lbl { flex: none; margin-left: 6px; font-size: 10.5px; line-height: 14px; font-weight: 600; white-space: nowrap; transform-origin: 0 50%; opacity: 0; }

/* shared pieces */
.nt-pane { color: #fff; font-size: 13px; line-height: 16px; }
.nt-pane small, .sd { font-size: 11px; line-height: 13px; color: #98989d; }
.sd-h { margin: 0 0 6px; font-size: 12px; line-height: 15px; font-weight: 600; color: #98989d; }
.cd { background: rgba(255, 255, 255, 0.1); border-radius: 16px; }
.pbtn { appearance: none; border: 0; padding: 0; cursor: default; display: grid; place-items: center; color: #fff; transition: transform 150ms ease, background-color 150ms ease; }
.pbtn:active { transform: scale(0.94); }
.pbtn.blue { background: #2f7cff; }
.pbtn.blue:hover { background: #4a8dff; }
.pbtn.dim { background: rgba(255, 255, 255, 0.1); }
.pbtn.dim:hover { background: rgba(255, 255, 255, 0.16); }
.pbtn svg { display: block; }

/* home */
.hm-hello { display: flex; align-items: center; gap: 12px; height: 36px; margin-top: 0; }
.hm-star { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #0d0d0d; border: 1px solid #262626; }
.hm-star svg { width: 19px; height: 19px; }
.hm-hello b { display: block; font-size: 15px; line-height: 18px; font-weight: 600; }
.hm-row { display: grid; grid-template-columns: 394px 1fr; gap: 16px; margin-top: 8px; }
.hm-card { display: flex; gap: 14px; padding: 12px; height: 117px; box-sizing: border-box; }
.hm-art { flex: none; width: 84px; height: 84px; border-radius: 12px; position: relative; overflow: hidden; transition: background-color 300ms ease; }
.hm-art::before, .hm-art::after { content: ''; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, 0.16); }
.hm-art::before { width: 56px; height: 56px; } .hm-art::after { width: 26px; height: 26px; background: rgba(255, 255, 255, 0.24); }
.hm-meta { flex: 1; min-width: 0; padding-top: 2px; }
.hm-meta b { display: block; font-size: 15px; line-height: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-meta small { display: block; margin-top: 1px; font-size: 12px; line-height: 15px; }
.hm-prog { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 11px; line-height: 13px; color: #98989d; font-variant-numeric: tabular-nums; }
.hm-rail { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.hm-rail i { display: block; height: 100%; width: 0; background: #c4c4c8; border-radius: 3px; }
.hm-ctl { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 8px; }
.hm-ctl .pbtn { width: 40px; height: 30px; background: transparent; border-radius: 8px; color: #e9e9eb; }
.hm-ctl .pbtn svg { width: 24px; height: 24px; }
.hm-ctl .pbtn:hover { color: #fff; }
.hm-ev { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.hm-ev li { display: flex; gap: 8px; align-items: stretch; min-height: 27px; }
.hm-ev li::before { content: ''; flex: none; width: 3px; border-radius: 2px; background: var(--c); }
.hm-ev b { display: block; font-size: 13px; line-height: 15px; font-weight: 400; }
.rm { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rm button { appearance: none; border: 0; background: transparent; padding: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 16px; color: #fff; cursor: default; text-align: left; }
.rm button::before { content: ''; flex: none; width: 15px; height: 15px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid #8a8a90; transition: background-color 180ms ease, border-color 180ms ease; }
.rm button[aria-pressed='true'] { color: #6e6e73; }
.rm button[aria-pressed='true']::before { background: #2f7cff; border-color: #2f7cff; }

/* shelf */
.sh { display: grid; grid-template-columns: 150px 1fr; gap: 12px; height: 100%; }
.sh-air { display: grid; place-content: center; justify-items: center; text-align: center; gap: 4px; border: 0; color: #fff; cursor: default; padding: 0; transition: background-color 180ms ease, box-shadow 180ms ease; }
.sh-air svg { width: 34px; height: 34px; color: #b8b8bd; margin-bottom: 8px; }
.sh-air b { font-size: 15px; line-height: 18px; font-weight: 600; }
.sh-air small { font-size: 12px; }
.sh-air.over, .sh-box.over { background: rgba(47, 124, 255, 0.22); box-shadow: inset 0 0 0 1.5px #2f7cff; }
.sh-box { position: relative; border: 1px dashed #3a3a3c; border-radius: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 0 14px; transition: background-color 180ms ease; min-width: 0; }
.sh-files { display: flex; align-items: flex-start; gap: 22px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 14px 0; }
.sh-file { position: relative; flex: none; width: 72px; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12px; line-height: 14px; }
.sh-file em { font-style: normal; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-file button { position: absolute; top: -4px; right: 2px; width: 16px; height: 16px; border-radius: 50%; border: 0; background: #3a3a3c; color: #fff; padding: 0; display: grid; place-items: center; opacity: 0; transition: opacity 150ms ease; cursor: default; }
.sh-file:hover button, .sh-file button:focus-visible { opacity: 1; }
.sh-file button svg { width: 9px; height: 9px; }
.doc { position: relative; width: 28px; height: 36px; border-radius: 4px; background: #ececef; overflow: hidden; }
.doc::before { content: ''; position: absolute; top: 0; right: 0; width: 9px; height: 9px; background: #000; clip-path: polygon(0 0, 100% 100%, 0 100%); opacity: 0.18; }
.doc b { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 7px; line-height: 8px; color: #8a8a90; font-weight: 600; }
.doc i { position: absolute; left: 5px; right: 5px; top: 13px; height: 8px; background: repeating-linear-gradient(#c7c7cc 0 1px, transparent 1px 3px); }
.sh-side { flex: none; width: 96px; display: grid; justify-items: center; gap: 8px; }
.sh-send { width: 96px; height: 30px; border-radius: 15px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.sh-send svg { width: 15px; height: 15px; }
.sh-clear { height: 22px; padding: 0 12px; border-radius: 8px; font-size: 12px; }
.sh-empty { margin: 0; color: #98989d; font-size: 12px; line-height: 16px; text-align: center; flex: 1; padding: 0 12px; }
.sh-box[data-empty='true'] .sh-side { opacity: 0.4; pointer-events: none; }

/* clipboard */
.cb-search { display: flex; align-items: center; gap: 8px; height: 27px; padding: 0 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: #98989d; }
.cb-search svg { width: 15px; height: 15px; flex: none; }
.cb-search input { appearance: none; border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font: inherit; font-size: 13px; color: #fff; }
.cb-search input::placeholder { color: #98989d; }
.cb-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; max-height: 167px; overflow-y: auto; scrollbar-width: none; }
.cb-list button { appearance: none; border: 0; width: 100%; height: 28px; display: flex; align-items: center; gap: 12px; padding: 0 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 13px; text-align: left; cursor: default; transition: background-color 120ms ease; }
.cb-list button:hover { background: rgba(255, 255, 255, 0.16); }
.cb-list svg { width: 15px; height: 15px; flex: none; color: #b0b0b5; }
.cb-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-none { color: #98989d; padding: 10px 4px; }

/* calendar */
.ca { display: grid; grid-template-columns: 311px 1fr; padding-top: 12px; }
.ca .hm-ev { gap: 9px; margin-top: 8px; }
.ca .hm-ev li { min-height: 26px; }
.ca .rm { gap: 7px; margin-top: 10px; }
.ca .rm button { font-size: 14px; }
.ca .rm button::before { width: 16px; height: 16px; }

/* quick note */
.qn { width: 100%; height: 100%; box-sizing: border-box; padding: 13px; border: 0; outline: 0; resize: none; border-radius: 14px; background: rgba(255, 255, 255, 0.1); color: #fff; font: 13px/16px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; white-space: pre-wrap; }
.qn:focus, .qn:focus-visible { outline: 0; box-shadow: none; }

/* timers */
.tm { position: relative; height: 100%; }
.tm-seg { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); display: flex; padding: 2px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); }
.tm-seg button { appearance: none; border: 0; background: transparent; height: 20px; padding: 0 16px; border-radius: 7px; color: #e9e9eb; font-size: 13px; line-height: 20px; cursor: default; transition: background-color 150ms ease; }
.tm-seg button[aria-selected='true'] { background: rgba(255, 255, 255, 0.16); }
.tm-ring { position: absolute; left: 0; top: 56px; width: 124px; height: 124px; }
.tm-ring svg { width: 124px; height: 124px; transform: rotate(-90deg); display: block; }
.tm-ring circle { fill: none; stroke-width: 8; }
.tm-bg { stroke: #161616; } .tm-fg { stroke: #2f7cff; stroke-linecap: round; transition: stroke-dashoffset 300ms linear; }
.tm-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; line-height: 34px; font-weight: 300; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.tm-info { position: absolute; left: 140px; top: 46px; }
.tm-lab { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 20px; font-weight: 600; }
.tm-lab svg { width: 24px; height: 24px; }
.tm-info small { display: block; margin-top: 4px; font-size: 12px; line-height: 15px; }
.tm-dots { display: flex; gap: 6px; margin-top: 4px; }
.tm-dots i { width: 8px; height: 8px; border-radius: 50%; background: #333; transition: background-color 200ms ease; } .tm-dots i.on { background: #2f7cff; }
.tm-note { margin-top: 5px; color: #636366; font-size: 11px; line-height: 13px; }
.tm-ctl { position: absolute; left: 140px; top: 163px; display: flex; align-items: center; gap: 14px; }
.tm-ctl .pbtn.dim { width: 26px; height: 26px; border-radius: 50%; }
.tm-ctl .pbtn.blue { width: 38px; height: 38px; border-radius: 50%; }
.tm-ctl .pbtn svg { width: 14px; height: 14px; } .tm-ctl .pbtn.blue svg { width: 18px; height: 18px; }
.tm-pop { position: absolute; bottom: 4px; height: 24px; padding: 0 10px; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(255, 255, 255, 0.1); border: 0; color: #fff; font-size: 13px; cursor: default; }
.tm-pop svg { width: 11px; height: 11px; color: #c7c7cc; }
.tm-pop:hover { background: rgba(255, 255, 255, 0.16); }
.tm-pop.a { right: 124px; width: 107px; } .tm-pop.b { right: 0; width: 112px; }
.tm-adj { display: flex; gap: 8px; margin-left: 4px; }
.tm-adj .pbtn { width: 26px; height: 26px; border-radius: 50%; font-size: 16px; line-height: 1; }

/* teleprompter */
.tp { position: relative; height: 100%; }
.tp-view { position: absolute; left: 0; right: 0; top: 4px; height: 128px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%, #000 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 34%, #000 100%); }
.tp-text { padding: 36px 0; text-align: center; font-size: 22px; line-height: 26px; font-weight: 700; color: #d6d6d9; letter-spacing: -0.2px; will-change: transform; }
.tp-edit { position: absolute; left: 0; right: 0; top: 4px; height: 128px; box-sizing: border-box; padding: 10px 12px; border: 0; outline: 0; resize: none; border-radius: 12px; background: rgba(255, 255, 255, 0.1); color: #fff; font: 13px/17px -apple-system, system-ui, sans-serif; display: none; }
.tp[data-edit='true'] .tp-edit { display: block; } .tp[data-edit='true'] .tp-view { visibility: hidden; }
.tp-ctl { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.tp-ctl .pbtn.dim { width: 21px; height: 21px; border-radius: 50%; } .tp-ctl .pbtn.dim svg { width: 11px; height: 11px; }
.tp-ctl .pbtn.blue { width: 38px; height: 38px; border-radius: 50%; } .tp-ctl .pbtn.blue svg { width: 17px; height: 17px; }
.tp-ctl .pbtn.rs { width: 22px; height: 22px; border-radius: 50%; } .tp-ctl .pbtn.rs svg { width: 12px; height: 12px; }
.tp-ctl .gl { width: 19px; height: 19px; color: #8e8e93; } .tp-ctl .aa { width: 17px; height: 17px; color: #8e8e93; margin-left: 2px; }
.rg { appearance: none; -webkit-appearance: none; height: 20px; margin: 0; background: transparent; --v: 40%; }
.rg::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, #6d6d72 var(--v), #1c1c1e var(--v)); }
.rg::-moz-range-track { height: 6px; border-radius: 3px; background: #1c1c1e; } .rg::-moz-range-progress { height: 6px; border-radius: 3px; background: #6d6d72; }
.rg::-webkit-slider-thumb { -webkit-appearance: none; width: 21px; height: 16px; margin-top: -5px; border-radius: 8px; background: #e9e9eb; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.rg::-moz-range-thumb { width: 21px; height: 16px; border: 0; border-radius: 8px; background: #e9e9eb; }
.rg.s1 { width: 130px; } .rg.s2 { width: 110px; }
.rg:focus-visible { outline: 2px solid #4da3ff; outline-offset: 2px; border-radius: 8px; }

/* mirror */
.mi { height: 100%; box-sizing: border-box; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.08); background: radial-gradient(ellipse at 50% 0%, #484848, #262626 55%, #171717); display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; color: #98989d; }
.mi svg { width: 40px; height: 40px; }
.mi b { font-weight: 400; font-size: 14px; line-height: 17px; }

/* system */
.sy { height: 100%; display: flex; align-items: center; justify-content: center; gap: 16px; padding-bottom: 8px; }
.sy-g { width: 76px; text-align: center; }
.sy-g .rr { position: relative; width: 72px; height: 72px; margin: 0 auto 6px; }
.sy-g svg { width: 72px; height: 72px; transform: rotate(-90deg); display: block; }
.sy-g circle { fill: none; stroke-width: 7; } .sy-g .bg { stroke: #12275d; } .sy-g .fg { stroke: #2f7cff; stroke-linecap: round; stroke-dasharray: 188.5; transition: stroke-dashoffset 500ms cubic-bezier(0.32, 0.72, 0, 1); }
.sy-g.bat .bg { stroke: #4a4a4d; } .sy-g.bat .fg { stroke: #fff; }
.sy-g b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; line-height: 18px; font-weight: 600; color: #e4e4e6; font-variant-numeric: tabular-nums; }
.sy-g span { font-size: 12px; color: #98989d; }
.sy-n { margin-left: 8px; display: grid; gap: 12px; font-size: 14px; line-height: 17px; font-variant-numeric: tabular-nums; }
.sy-n div { display: flex; align-items: center; gap: 10px; } .sy-n svg { width: 12px; height: 12px; color: #98989d; }
.sy-n small { font-size: 12px; }

/* disk */
.dk { height: 100%; display: flex; flex-direction: column; }
.dk-tabs { display: flex; justify-content: center; gap: 2px; flex: none; height: 21px; }
.dk-tabs button { appearance: none; border: 0; background: transparent; padding: 0 12px; border-radius: 11px; color: #c7c7cc; font-size: 13px; line-height: 21px; cursor: default; transition: background-color 150ms ease, color 150ms ease; }
.dk-tabs button:hover { color: #fff; }
.dk-tabs button[aria-selected='true'] { background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 600; }
.dk-body { flex: 1; min-height: 0; margin-top: 10px; display: grid; grid-template-columns: 230px 1fr; gap: 0; position: relative; }
.dk-body.single { grid-template-columns: 1fr; }
.dk-l { padding-right: 18px; }
.dk-v b { display: block; font-size: 15px; line-height: 18px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.dk-v b svg { width: 13px; height: 13px; color: #c7c7cc; }
.dk-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); margin: 7px 0 6px; overflow: hidden; } .dk-bar i { display: block; height: 100%; background: #b4b4b8; border-radius: 4px; transition: width 400ms cubic-bezier(0.32, 0.72, 0, 1); }
.dk-v { margin-bottom: 12px; } .dk-v small { font-size: 13px; line-height: 16px; }
.dk-r { border-left: 1px solid #262626; padding-left: 18px; display: flex; flex-direction: column; min-height: 0; }
.dk-items { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: grid; gap: 8px; align-content: start; }
.dk-items li { display: flex; align-items: center; gap: 12px; padding: 0 12px; height: 36px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.dk-items li > button.ck { appearance: none; border: 0; width: 15px; height: 15px; border-radius: 50%; box-sizing: border-box; background: transparent; border: 1.5px solid #8a8a90; padding: 0; display: grid; place-items: center; color: #000; cursor: default; flex: none; }
.dk-items li > button.ck[aria-pressed='true'] { background: #a6a6ab; border-color: #a6a6ab; } .dk-items li > button.ck svg { width: 9px; height: 9px; opacity: 0; } .dk-items li > button.ck[aria-pressed='true'] svg { opacity: 1; }
.dk-items li div { flex: 1; min-width: 0; } .dk-items b { display: block; font-size: 13px; line-height: 15px; font-weight: 500; } .dk-items small { display: block; font-size: 11px; line-height: 13px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-items em { font-style: normal; color: #98989d; font-size: 13px; }
.dk-foot { flex: none; display: flex; align-items: center; justify-content: space-between; height: 38px; padding-top: 6px; }
.dk-foot button.t { appearance: none; border: 0; background: transparent; color: #98989d; font-size: 13px; padding: 0; cursor: default; } .dk-foot button.t:hover { color: #fff; }
.dk-foot .pbtn.blue { height: 30px; padding: 0 16px; border-radius: 15px; font-size: 13px; font-weight: 600; } .dk-foot .pbtn[disabled] { background: rgba(255, 255, 255, 0.12); color: #6e6e73; }
.dk-find { appearance: none; border: 0; outline: 0; height: 26px; border-radius: 9px; padding: 0 10px; background: rgba(255, 255, 255, 0.1); color: #fff; font: inherit; font-size: 13px; width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.dk-wide { display: flex; flex-direction: column; min-height: 0; }
.dk-bars li div { position: relative; } .dk-bars .bb { height: 4px; border-radius: 2px; background: #2f7cff; margin-top: 5px; }

/* desktop objects */
/* desktop objects: real macOS file icons and two ordinary windows */
.mb-icons { position: absolute; right: 24px; top: 52px; display: grid; gap: 10px; justify-items: center; z-index: 1; }
.mb-file { appearance: none; border: 0; background: transparent; width: 104px; padding: 4px 0; display: grid; justify-items: center; gap: 4px; color: #fff; cursor: default; border-radius: 6px; }
.mb-file em { font-style: normal; font-size: 12px; line-height: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75); padding: 1px 4px; border-radius: 4px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-file:hover em, .mb-file:focus-visible em { background: #2f7cff; text-shadow: none; }
.mb-file:focus-visible { outline: 2px solid #4da3ff; }
.mb-doc { position: relative; width: 64px; height: 64px; display: block; }
.mb-doc img { display: block; width: 64px; height: 64px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); pointer-events: none; }
.mb-doc b { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #86868b; font-size: 10px; line-height: 12px; font-weight: 700; letter-spacing: 0.4px; }
.mb-doc.thumb { display: grid; place-items: center; }
.mb-doc.thumb img { width: 62px; height: 42px; object-fit: cover; border-radius: 3px; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); filter: none; box-sizing: content-box; }
.mb-win { position: absolute; background: #fff; border-radius: 20px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3), 0 20px 44px rgba(0, 0, 0, 0.38); overflow: hidden; color: #1d1d1f; z-index: 1; display: flex; flex-direction: column; }
.mb-win.a { left: 170px; top: 372px; width: 560px; height: 330px; }
.mb-win.b { left: 790px; top: 420px; width: 560px; height: 330px; }
.mb-wintitle { position: relative; flex: none; display: flex; align-items: center; height: 44px; padding: 0 18px; background: #f7f7f8; border-bottom: 1px solid #e6e6e8; font-size: 13px; font-weight: 600; color: #3a3a3c; }
.mb-wintitle .tl { display: flex; gap: 8px; } .mb-wintitle .tl i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18); }
.tl .r { background: #ff5f57; } .tl .y { background: #febc2e; } .tl .g { background: #28c840; }
.mb-wintitle .tt { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
.mb-win textarea { display: block; flex: 1; width: 100%; box-sizing: border-box; border: 0; outline: 0; resize: none; padding: 14px 18px; background: #fff; color: #1d1d1f; font: 15px/22px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.mb-win textarea::selection { background: #b3d7ff; }
.mb-field { flex: none; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 16px; border-bottom: 1px solid #ececee; font-size: 13px; color: #86868b; }
.mb-field label { width: 56px; text-align: right; }
.mb-field input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 13px; color: #1d1d1f; background: transparent; }
.mb-dock { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 10px; padding: 9px 11px; border-radius: 30px; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(34px) saturate(1.6); backdrop-filter: blur(34px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.25); z-index: 1; }
.mb-dock img { width: 56px; height: 56px; display: block; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.28)); }
.mb-banner { position: absolute; right: 16px; top: 44px; width: 340px; box-sizing: border-box; padding: 12px 14px; border-radius: 16px; display: flex; gap: 10px; align-items: center; background: rgba(48, 48, 52, 0.82); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08); opacity: 0; transform: translateX(24px); transition: opacity 260ms cubic-bezier(0.32, 0.72, 0, 1), transform 260ms cubic-bezier(0.32, 0.72, 0, 1); pointer-events: none; z-index: 20; }
.mb-banner.on { opacity: 1; transform: none; }
.mb-bi { flex: none; width: 34px; height: 34px; border-radius: 8px; display: block; }
.mb-banner b { display: block; font-size: 13px; line-height: 16px; } .mb-banner span { display: block; font-size: 12px; line-height: 15px; color: #d1d1d6; }

@media (prefers-reduced-motion: reduce) { .nt-pane, .mb-banner { transition: none; } }

.mb-to { display: inline-block; margin-left: -8px; padding: 1px 8px; border-radius: 6px; background: #e6f0ff; color: #0a5bd6; text-decoration: none; font-size: 13px; cursor: pointer; transition: background-color 150ms ease; }
.mb-to:hover { background: #d3e5ff; }
.mb-to:focus-visible { outline: 2px solid #2f7cff; }

/* autopilot: the fake cursor, its click ripple, a key hint and the dragged file */
.mb-cursor { position: absolute; left: 0; top: 0; z-index: 40; pointer-events: none; opacity: 0; transition: opacity 260ms ease; will-change: transform; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.mb-cursor.on { opacity: 1; }
.mb-cursor svg { display: block; transition: transform 90ms ease; transform-origin: 3px 2px; }
.mb-cursor.down svg { transform: scale(0.9); }
.mb-ripple { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); opacity: 0; z-index: 39; pointer-events: none; }
.mb-ripple.go { animation: mb-rip 520ms cubic-bezier(0.32, 0.72, 0, 1); }
@keyframes mb-rip { 0% { opacity: 0.9; scale: 0.3; } 100% { opacity: 0; scale: 1.5; } }
.mb-keys { position: absolute; left: 50%; bottom: 120px; margin-left: -50px; width: 100px; box-sizing: border-box; padding: 10px 0; text-align: center; border-radius: 14px; background: rgba(30, 30, 32, 0.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; font-size: 22px; line-height: 26px; font-weight: 500; letter-spacing: 2px; opacity: 0; transform: translateY(8px); transition: opacity 200ms ease, transform 200ms ease; z-index: 38; pointer-events: none; }
.mb-keys.on { opacity: 1; transform: none; }
.mb-ghost { position: absolute; left: 0; top: 0; opacity: 0; z-index: 37; pointer-events: none; transition: opacity 150ms ease; }
.mb-ghost.on { opacity: 0.85; }
.mb-ghost .mb-doc { display: block; }
@media (prefers-reduced-motion: reduce) { .mb-cursor, .mb-keys, .mb-ghost { transition: none; } .mb-ripple.go { animation: none; } }

/* Screenshot Tray: the row that hangs under the closed notch (112 by 70 thumbnails, 12 padding, 10 gap, black, radii 10 and 18)
   and the compact row inside the open notch (52 by 40). Numbers come from ScreenshotLip.swift. */
.nt-strip { position: absolute; top: 32px; left: 50%; width: 186px; height: 102px; margin-left: -93px; z-index: 4; box-sizing: border-box; background: #000; border-radius: 10px 10px 18px 18px;
  opacity: 0; transform: translateY(-14px); pointer-events: none; transition: opacity 280ms cubic-bezier(0.32, 0.72, 0, 1), transform 280ms cubic-bezier(0.32, 0.72, 0, 1), width 280ms cubic-bezier(0.32, 0.72, 0, 1), margin-left 280ms cubic-bezier(0.32, 0.72, 0, 1); }
.nt-strip.on { opacity: 1; transform: none; pointer-events: auto; }
.nt-thumbs { display: flex; gap: 10px; padding: 12px; height: 100%; box-sizing: border-box; justify-content: center; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
.nt-thumbs.compact { gap: 8px; padding: 10px; }
.nt-lip { flex: none; height: 68px; padding: 0 12px; }
.shot { position: relative; flex: none; width: 112px; height: 78px; cursor: default; outline: 0; }
.nt-thumbs.compact .shot { width: 52px; height: 48px; }
.shot > img { display: block; width: 112px; height: 70px; object-fit: cover; box-sizing: border-box; border-radius: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); pointer-events: none; transition: border-color 120ms ease, border-width 120ms ease; }
.nt-thumbs.compact .shot > img { width: 52px; height: 40px; }
.shot.sel > img { border: 2.5px solid #2f7cff; }
.shot:focus-visible > img { border-color: #4da3ff; }
.shot .ck { position: absolute; right: -4px; bottom: 4px; width: 15px; height: 15px; border-radius: 50%; background: #2f7cff; color: #fff; display: none; place-items: center; box-shadow: 0 0 0 1.5px #fff; }
.shot .ck svg { width: 9px; height: 9px; }
.shot.sel .ck { display: grid; }
.shot .x { position: absolute; right: -5px; top: -5px; width: 15px; height: 15px; padding: 0; border: 0; border-radius: 50%; background: rgba(60, 60, 64, 0.95); color: #fff; display: none; place-items: center; cursor: default; }
.shot .x svg { width: 8px; height: 8px; }
.shot:hover .x, .shot.hov .x, .shot:focus-within .x { display: grid; }
.shot.in { animation: shot-in 420ms cubic-bezier(0.34, 1.4, 0.64, 1) both; transform-origin: 50% 0; }
.shot.out { animation: shot-out 240ms cubic-bezier(0.32, 0.72, 0, 1) both; transform-origin: 50% 0; }
@keyframes shot-in { from { opacity: 0; transform: translate(var(--dx, 0px), -26px) scale(0.35); } to { opacity: 1; transform: none; } }
@keyframes shot-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate(var(--dx, 0px), -26px) scale(0.35); } }
.nt-open[data-lip='true'] .nt-pane { overflow-y: auto; scrollbar-width: none; }

/* region selection (the macOS crosshair), the shutter flash, the preview window, and attachments in the message */
.mb-snap { position: absolute; inset: 0; z-index: 36; cursor: crosshair; touch-action: none; }
.mb-snap .sel { position: absolute; display: none; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
.mb-snap .dim { position: absolute; display: none; padding: 2px 7px; border-radius: 6px; background: rgba(30, 30, 32, 0.85); color: #fff; font-size: 12px; line-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mb-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 41; }
.mb-flash.go { animation: mb-flash 380ms ease-out; }
@keyframes mb-flash { 0% { opacity: 0.55; } 100% { opacity: 0; } }
.mb-prev { position: absolute; inset: 0; z-index: 37; display: grid; place-items: center; background: rgba(0, 0, 0, 0.25); }
.mb-prev[hidden] { display: none; }
.mb-prevwin { width: 760px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3), 0 28px 60px rgba(0, 0, 0, 0.5); color: #1d1d1f; }
.mb-prevwin img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #f2f2f4; }
.mb-prevwin .tl i { cursor: default; }
.mb-atts { flex: none; display: flex; gap: 10px; padding: 10px 16px 10px 80px; border-bottom: 1px solid #ececee; background: #fafafa; overflow-x: auto; scrollbar-width: none; }
.mb-atts[hidden] { display: none; }
.mb-att { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #dcdcde; }
.mb-att img { width: 48px; height: 32px; object-fit: cover; border-radius: 4px; display: block; }
.mb-att b { display: block; font-size: 12px; line-height: 14px; font-weight: 500; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mb-att small { display: block; font-size: 11px; line-height: 13px; color: #86868b; }
.mb-win.over { box-shadow: 0 0 0 3px #2f7cff, 0 20px 44px rgba(0, 0, 0, 0.38); }
.mb-ghost.shots { opacity: 0.95; }
.mb-ghost.shots img { display: block; width: 112px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); position: absolute; left: 0; top: 0; }
.mb-ghost.shots b { position: absolute; right: -8px; top: -8px; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 11px; background: #2f7cff; color: #fff; font-size: 12px; line-height: 22px; text-align: center; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .shot.in, .shot.out { animation: none; } .nt-strip { transition: none; } .mb-flash.go { animation: none; } }

.mb-win.b textarea { padding-left: 80px; }
.mb-field input { padding: 0; }

.mb-cursor .cr { display: none; } .mb-cursor.cross .ar { display: none; } .mb-cursor.cross .cr { display: block; }


/* a quiet offer that appears when the autopilot has finished, like any app notification */
.mb-offer { position: absolute; right: 16px; top: 44px; width: 340px; box-sizing: border-box; padding: 12px 14px; border-radius: 20px; display: flex; gap: 10px; align-items: center; background: rgba(48, 48, 52, 0.82); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08); color: #fff; opacity: 0; transform: translateX(24px); pointer-events: none; transition: opacity 320ms cubic-bezier(0.32, 0.72, 0, 1), transform 320ms cubic-bezier(0.32, 0.72, 0, 1); z-index: 21; }
.mb-offer.on { opacity: 1; transform: none; pointer-events: auto; }
.mb-offer div { flex: 1; min-width: 0; } .mb-offer b { display: block; font-size: 13px; line-height: 16px; } .mb-offer span { display: block; font-size: 12px; line-height: 15px; color: #d1d1d6; }
.mb-offer a { flex: none; padding: 5px 14px; border-radius: 14px; background: #2f7cff; color: #fff; font-size: 13px; line-height: 16px; font-weight: 600; text-decoration: none; }
.mb-offer a:hover { background: #4a8dff; } .mb-offer a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .mb-offer { transition: none; } }
