/* ===== Portfolio · desktop metaphor =================================== */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #f1efed;
  overflow: hidden;
  color: #1d1d1f;
  user-select: none;
  -webkit-user-select: none;
}

/* ---- custom pixel cursors: white = normal, black = pressed ---- */
*, *::before, *::after { cursor: url('../assets/cursor-white.png') 2 1, auto !important; }
input, textarea, [contenteditable], [contenteditable="true"] { cursor: text !important; }
:active { cursor: url('../assets/cursor-black.png') 2 1, auto !important; }

/* ---- desktop ---- */
#desktop {
  position: fixed; inset: 0; overflow: hidden;
  background: #fcfcfb;
}
/* fixed-aspect design canvas — keeps the curated portrait + icon composition
   pixel-identical at any window size (uniformly scaled to fit) */
#iconlayer {
  position: absolute; left: 50%; top: 50%;
  width: 1440px; height: 1000px;
  transform: translate(-50%, -50%) scale(var(--icon-scale, 1));
  transform-origin: center center;
  z-index: 1; --icon-cscale: 1;
}
/* portrait photo, fit to the canvas, softly blurred behind the icons */
#iconlayer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('../assets/portrait.png') no-repeat center / contain;
  filter: blur(2px); opacity: .97;
}

/* ---- centre portrait placeholder (hidden — real photo is the background) ---- */
#portrait { display: none; }
#portrait.legacy {
  position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%);
  width: min(46vw, 540px); height: min(64vh, 760px); pointer-events: none;
}
#portrait .head {
  position: absolute; left: 8%; top: 2%; width: 84%; height: 60%;
  border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
  background: linear-gradient(180deg, #d8d3ce 0%, #b9a89c 45%, #6b5a50 78%, #241c18 100%);
  filter: blur(2px); opacity: .92;
}
#portrait .shoulders {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 64%;
  border-radius: 50% 50% 38% 38% / 70% 70% 30% 30%;
  background: linear-gradient(180deg, rgba(40,30,24,0) 0%, #241c18 60%, #120d0a 100%);
  filter: blur(3px);
}
#portrait .hint {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  font: 500 11px ui-monospace, monospace; color: rgba(255,255,255,.5);
  letter-spacing: .08em; text-align: center; width: 60%;
}
#portrait img { width: 100%; height: 100%; object-fit: contain; }

/* ---- project icons ---- */
.icon {
  position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer; touch-action: none; width: 130px;
  opacity: 0; transform: translate(-50%, -50%) scale(var(--icon-cscale, 1));
  transition: opacity .45s ease;
}
.icon.in { opacity: 1; }
.icon.wide { width: 260px; }

.thumb {
  position: relative; width: 74px; height: 74px; border-radius: 14px; overflow: hidden;
  background-size: cover; background-position: center;
  box-shadow: 0 7px 16px rgba(0,0,0,.2), inset 0 0 0 .5px rgba(255,255,255,.18);
}
.icon.wide .thumb { width: 250px; }
.thumb.placeholder::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 9px, rgba(255,255,255,0) 9px 18px);
}
.thumb .glyph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.thumb .glyph .lens {
  width: 18px; height: 14px; border: 1.5px solid rgba(255,255,255,.85); border-radius: 3px; position: relative;
}
.thumb .glyph .lens::after {
  content: ""; position: absolute; left: 2px; bottom: 2px; width: 6px; height: 6px;
  border-radius: 50%; background: rgba(255,255,255,.9);
}
.thumb .glyph span { font: 600 8px ui-monospace, monospace; color: rgba(255,255,255,.85); letter-spacing: .05em; }

/* macOS-style document icon (doc:true projects with no image) */
.docicon { position: relative; width: 62px; height: 78px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.16)); }
.docicon .page { position: absolute; inset: 0; background: #fff; border-radius: 8px;
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.docicon .fold { position: absolute; right: 0; top: 0; width: 28%; height: 22%;
  background: #dcd7d2; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.docicon .band { position: absolute; left: 0; bottom: 0; width: 100%; height: 26%;
  border-radius: 0 0 8px 8px; display: flex; align-items: center; justify-content: center;
  color: #fff; font: 700 10px -apple-system; letter-spacing: .06em; }

.icon .pulsebox {
  width: 74px; height: 74px; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 7px 16px rgba(0,0,0,.3), inset 0 0 0 .5px rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
}
.icon .pulsebox span {
  font-family: 'Press Start 2P', ui-monospace, monospace; font-size: 9px; line-height: 1.7;
  text-align: center; letter-spacing: 0;
  background: linear-gradient(180deg, #ffa524 0%, #ff6a1a 48%, #e21d1d 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@keyframes pulseGlow { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }

.icon .label {
  font: 600 11px/1.15 -apple-system; letter-spacing: .04em; text-transform: uppercase;
  text-align: center; color: #fff; max-width: 130px;
  text-shadow: 0 1px 4px rgba(0,0,0,.55), 0 0 1px rgba(0,0,0,.4);
}

/* ---- info windows ---- */
.window {
  position: absolute; border-radius: 12px; overflow: hidden; background: #eee9e6;
  display: flex; flex-direction: column;
  box-shadow: 0 26px 70px rgba(0,0,0,.30), 0 4px 14px rgba(0,0,0,.14), inset 0 0 0 .5px rgba(0,0,0,.06);
  animation: winIn .22s cubic-bezier(.2,.8,.3,1) both; max-width: 92vw;
}
@keyframes winIn { from { opacity:0; transform: scale(.94) translateY(8px); } to { opacity:1; transform: none; } }
.titlebar {
  flex: none;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: grab;
  background: linear-gradient(180deg, #efeae7, #e6e0dc); border-bottom: .5px solid rgba(0,0,0,.10);
  touch-action: none;
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); }
.lights .r { background: #ff5f57; cursor: pointer; }
.lights .y { background: #febc2e; }
.lights .g { background: #28c840; }
.titlebar .title {
  flex: 1; text-align: center; font: 600 13px -apple-system; color: #3a3a3c;
  margin-right: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.wbody { padding: 16px 18px; max-height: 64vh; overflow: auto; flex: 1 1 auto; min-height: 0; }
.window.sized .wbody, .window.sized .sticky, .window.sized .pviewport { max-height: none; }
.window.sized .sticky, .window.sized .pviewport { flex: 1 1 auto; min-height: 0; }
.whead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.whead .chip { width: 48px; height: 48px; flex: none; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.18); }

/* now-playing (Music) */
.nowcard { display: flex; gap: 14px; background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.nowart { width: 96px; height: 96px; flex: none; border-radius: 8px; background: #ece9e6 center/cover no-repeat; box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.nowmeta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nowstatus { font: 700 11px -apple-system; color: #1db954; letter-spacing: .03em; display: flex; align-items: center; gap: 6px; text-transform: uppercase; }
.nowtrack { font: 700 16px -apple-system; color: #1d1d1f; }
.nowartist { font: 400 13px -apple-system; color: #6b6b70; }
.nowgenres { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.gtag { font: 500 10px -apple-system; color: #555; background: rgba(0,0,0,.06); border-radius: 20px; padding: 3px 8px; }
.nowlink { margin-top: 7px; font: 600 12px -apple-system; color: #1db954; text-decoration: none; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.eq i { width: 3px; background: #1db954; animation: eqbar .9s ease-in-out infinite; transform-origin: bottom; }
.eq i:nth-child(1) { height: 6px; animation-delay: 0s; }
.eq i:nth-child(2) { height: 11px; animation-delay: .25s; }
.eq i:nth-child(3) { height: 8px; animation-delay: .45s; }
@keyframes eqbar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.whead .h { font: 700 16px -apple-system; }
.whead .s { font: 400 13px -apple-system; color: #8a8a8e; }
.wcard { background: #fff; border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; }
.wcard p { margin: 0 0 10px; font: 400 14px/1.5 -apple-system; color: #2c2c2e; }
.wcard p:last-child { margin-bottom: 0; }
.wmeta { display: flex; gap: 8px; font: 400 13px -apple-system; color: #3a3a3c; padding: 2px 4px 12px; }
.wmeta .k { color: #8a8a8e; }

/* photos gallery window — carousel → rising-blob → 3D sphere cloud */
.pviewport { position: relative; height: 470px; max-height: 64vh; overflow: hidden; background: #fcfcfb; transition: background .08s linear; }
.pblob { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 175%; height: 0%; opacity: 0;
  border-radius: 50% 50% 0 0 / 46% 46% 0 0; filter: blur(18px); pointer-events: none; z-index: 4; will-change: height, opacity;
  background: radial-gradient(125% 100% at 50% 122%, #07070a 56%, #b3381c 76%, #ff7e2c 90%, rgba(255,150,60,0) 100%); }
.pbar { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; pointer-events: none; }
.plib { font: 600 12px -apple-system; color: #6b6b70; letter-spacing: .02em; }
.pviewport.dark .plib { color: rgba(255,255,255,.82); }
.pbtns { display: flex; gap: 7px; pointer-events: auto; }
.pbtn { height: 30px; min-width: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; background: rgba(0,0,0,.06); color: #333; font: 600 15px -apple-system; padding: 0 8px; }
.pbtn.wide { padding: 0 11px; font-size: 12px; }
.pviewport.dark .pbtn { background: rgba(255,255,255,.16); color: #f0f0f0; }
.pbar3 { width: 14px; height: 3px; border-radius: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; }
.pcirc { width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; box-sizing: border-box; }
.pgrid { width: 10px; height: 10px; background:
  linear-gradient(currentColor,currentColor) 0 0/4px 4px no-repeat, linear-gradient(currentColor,currentColor) 6px 0/4px 4px no-repeat,
  linear-gradient(currentColor,currentColor) 0 6px/4px 4px no-repeat, linear-gradient(currentColor,currentColor) 6px 6px/4px 4px no-repeat; }
.pline { position: absolute; inset: 0; z-index: 2; overflow: hidden; perspective: 1500px; will-change: opacity, transform; }
.pline-stage { position: absolute; left: 50%; top: 50%; width: 740px; height: 470px; transform: translate(-50%,-50%); transform-origin: center; transform-style: preserve-3d; }
.lcard { position: absolute; left: 0; top: 0; width: 186px; height: 236px; overflow: hidden; transform-origin: top left; will-change: transform, opacity; backface-visibility: hidden;
  box-shadow: 16px 22px 48px rgba(0,0,0,.16); outline: .5px solid rgba(0,0,0,.06); }
.pscene { position: absolute; inset: 0; z-index: 5; opacity: 0; cursor: grab; will-change: opacity, transform; }
.pscene-stage { position: absolute; left: 50%; top: 50%; width: 740px; height: 470px; transform: translate(-50%,-50%); transform-origin: center; }
.scard { position: absolute; left: 0; top: 0; width: 62px; height: 62px; border-radius: 6px; overflow: hidden; cursor: pointer; will-change: transform, opacity; backface-visibility: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.18); outline: .5px solid rgba(0,0,0,.06); }
.pscene.snapping .scard { transition: transform .5s cubic-bezier(.2,.8,.25,1), opacity .45s ease; }
.scard:hover { outline: 2px solid #1d6fff; }
.pc-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.pc-ph { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 11px, rgba(255,255,255,0) 11px 22px); }
.phint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font: 500 11px ui-monospace, monospace; color: #a8a8a8; letter-spacing: .1em; z-index: 4; }
.phint.dark { color: #b0b0b0; font-size: 10px; }
.pspot { position: absolute; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center; cursor: zoom-out;
  background: rgba(250,250,249,.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pspot.open { display: flex; }
.pspot-card { position: relative; width: 330px; height: 330px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.28); outline: .5px solid rgba(0,0,0,.08); }

/* stickies canvas window */
.sticky { position: relative; height: 640px; max-height: 80vh; overflow: hidden; background: #faf9f6; }
.sboard { position: absolute; inset: 0; cursor: grab; touch-action: none;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.07) 1px, transparent 1px);
  background-size: 46px 46px; background-position: 0 0; }
.scanvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.sstrokes { position: absolute; left: 0; top: 0; width: 3000px; height: 3000px; overflow: visible; pointer-events: none; }
.sitems { position: absolute; left: 0; top: 0; }
.sitem { position: absolute; cursor: grab; }
.si-note { position: absolute; inset: 0; border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.18); padding: 10px; box-sizing: border-box; }
.si-text { width: 100%; height: 100%; outline: none; font: 500 13px -apple-system; color: #2a2a28; overflow: hidden; cursor: text; word-break: break-word; white-space: pre-wrap; }
.si-textfree { position: absolute; inset: 0; outline: none; font: 600 18px -apple-system; cursor: text; overflow: hidden; white-space: pre-wrap; word-break: break-word; text-shadow: 0 1px 2px rgba(255,255,255,.5); }
.si-shape { position: absolute; inset: 0; box-shadow: 0 4px 12px rgba(0,0,0,.14); }
.si-img { position: absolute; inset: 0; border-radius: 3px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.2);
  background: #fff center/cover no-repeat; }
.si-resize { position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border-radius: 4px;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3), inset 0 0 0 1px rgba(0,0,0,.08); cursor: nwse-resize;
  opacity: 0; transition: opacity .12s; z-index: 3; }
.sitem:hover .si-resize { opacity: 1; }
.si-del { position: absolute; top: -9px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center;
  font: 700 11px -apple-system; color: #d2483a; cursor: pointer; }
.snote { position: absolute; top: 14px; left: 18px; z-index: 4; font: 500 12px -apple-system; color: rgba(0,0,0,.34); pointer-events: none; }
.stoolbar { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); z-index: 5; max-height: calc(100% - 20px);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; padding: 8px 7px; border-radius: 18px;
  background: rgba(253,253,251,.95); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0,0,0,.13), inset 0 0 0 .5px rgba(0,0,0,.07);
  overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.stoolbar::-webkit-scrollbar { display: none; }
.stoolbar > * { flex: none; }
.stools { display: flex; flex-direction: column; gap: 4px; flex: none; }
.stool { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font: 500 15px -apple-system; color: #555; transition: background .12s, color .12s; flex: none; }
.stool.sel { background: #1d1d1f; color: #fff; }
.ssep { width: 22px; height: 1px; background: rgba(0,0,0,.1); margin: 3px 0; }
.spal { display: grid; grid-template-columns: 14px 14px; gap: 5px; }
.sswatch { width: 14px; height: 14px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.sswatch.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1d1d1f; }
.szoom { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.sundo { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.szbtn.off { opacity: .28; pointer-events: none; }
.szbtn { width: 30px; height: 24px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #555; font: 600 16px -apple-system; }
.szpct { font: 600 9px -apple-system; color: #9a9a9a; }
.sclear { width: 30px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #d2483a; background: rgba(210,72,58,.09); font: 700 16px -apple-system; }
.wlabel { font: 400 13px -apple-system; color: #8a8a8e; padding: 0 4px 8px; }
.rhandle { display: flex; align-items: center; justify-content: center; }
.rind { position: fixed; z-index: 9999; transform: translate(-50%,-50%); pointer-events: none;
  filter: drop-shadow(0 0 2px rgba(255,255,255,.95)); opacity: 0; transition: opacity .1s; }
.rind svg { display: block; }
.rind.h { transform: translate(-50%,-50%) rotate(90deg); }
.rind.d1 { transform: translate(-50%,-50%) rotate(-45deg); }
.rind.d2 { transform: translate(-50%,-50%) rotate(45deg); }
.rind.on { opacity: 1; }.preview { height: 200px; border-radius: 8px; position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); background-size: cover; background-position: center; }
.preview.placeholder::before { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 12px, rgba(255,255,255,0) 12px 24px); }
.preview .ptext { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 500 12px ui-monospace, monospace; color: rgba(255,255,255,.8); letter-spacing: .06em; }

/* about window */
.about { display: flex; max-height: 62vh; }
.about .side { width: 150px; flex: none; padding: 18px 10px; border-right: .5px solid rgba(0,0,0,.08);
  display: flex; flex-direction: column; gap: 2px; }
.about .tab { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 7px;
  font: 500 13px -apple-system; color: #1d1d1f; }
.about .tab.active { background: rgba(0,0,0,.06); }
.about .tab .n { color: #8a8a8e; }
.about .main { flex: 1; padding: 18px 20px; overflow: auto; background: #fff; }
.about .main p { margin: 0 0 12px; font: 400 14px/1.5 -apple-system; }
.about .main h4 { margin: 16px 0 10px; font: 600 14px -apple-system; }
.svc { display: flex; flex-direction: column; gap: 9px; }
.svc .row { display: flex; align-items: center; gap: 9px; font: 400 14px -apple-system; }
.svc .check { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #f5a623; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }

/* ---- dock ---- */
#dock {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%) scale(var(--dock-scale, 1)); transform-origin: bottom center; z-index: 9000;
  display: flex; align-items: flex-end; gap: 7px; padding: 8px 12px 9px; border-radius: 22px;
  background: rgba(60,60,67,.42); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 12px 40px rgba(0,0,0,.28), inset 0 0 0 .5px rgba(255,255,255,.18);
}
#dock .app {
  width: 50px; height: 50px; flex: none; border-radius: 13px; position: relative; display: flex; align-items: center;
  justify-content: center; color: #fff; font: 700 15px -apple-system; cursor: pointer;
  will-change: transform; transform-origin: bottom center;
  transition: transform .32s cubic-bezier(.34,1.3,.5,1);
  box-shadow: 0 4px 10px rgba(0,0,0,.22), inset 0 0 0 .5px rgba(255,255,255,.2);
}
#dock.active .app { transition: transform .05s linear; }
#dock .divider { width: 1px; height: 46px; align-self: center; background: rgba(255,255,255,.22); margin: 0 3px; }
#dock .app.img { overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,.22); }
#dock .app.img img { position: absolute; inset: -9%; width: 118%; height: 118%; object-fit: cover; display: block; }
#dock .app.card { overflow: hidden; box-shadow: 0 5px 13px rgba(0,0,0,.30); }
#dock .app.card img { inset: 0; width: 100%; height: 100%; }
#dock .app.card.contain img { object-fit: contain; padding: 9px; }
#dock .app.plain { overflow: visible; box-shadow: none; background: transparent; }
#dock .app.plain img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px);
  object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.32)); }

/* ---- Spotlight / Finder search ---- */
#search { position: fixed; inset: 0; z-index: 99999; display: none;
  align-items: flex-start; justify-content: center; padding-top: 11vh;
  background: rgba(20,18,16,.20); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#search.open { display: flex; }
.spotlight { width: 600px; max-width: 92vw; border-radius: 16px; overflow: hidden;
  background: rgba(248,246,244,.84); backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 30px 80px rgba(0,0,0,.34), inset 0 0 0 .5px rgba(255,255,255,.55);
  animation: winIn .18s cubic-bezier(.2,.8,.3,1) both; }
.spotlight .field { display: flex; align-items: center; gap: 13px; padding: 16px 20px;
  border-bottom: .5px solid rgba(0,0,0,.08); }
.spotlight .field svg { color: #86868b; flex: none; }
.spotlight input { flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font: 400 21px -apple-system, system-ui; color: #1d1d1f; }
.spotlight .esc { font: 500 11px -apple-system; color: #a0a0a5; border: .5px solid rgba(0,0,0,.14);
  border-radius: 5px; padding: 3px 7px; }
.spotlight .results { max-height: 54vh; overflow: auto; padding: 8px; }
.spotlight .grouphead { font: 600 11px -apple-system; letter-spacing: .06em; text-transform: uppercase;
  color: #a0a0a5; padding: 8px 12px 6px; }
.spotlight .grouphead.spaced { padding-top: 14px; }
.spotlight .row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.spotlight .row:hover { background: rgba(0,0,0,.055); }
.spotlight .row .ico { width: 36px; height: 36px; flex: none; border-radius: 8px;
  background-size: cover; background-position: center; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.1); }
.spotlight .row .meta { min-width: 0; flex: 1; }
.spotlight .row .meta .t { font: 600 14px -apple-system; color: #1d1d1f; }
.spotlight .row .meta .s { font: 400 12px -apple-system; color: #86868b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spotlight .row .chev { color: #c4c4c8; flex: none; }
.spotlight .empty { padding: 34px 12px; text-align: center; font: 400 14px -apple-system; color: #a0a0a5; }

/* ---- mobile fallback ---- */
@media (max-width: 720px) {
  body { overflow: auto; }
  #desktop { position: static; min-height: 100vh; padding-bottom: 100px; }
  #portrait { display: none; }
  .icon { position: static !important; transform: none !important; opacity: 1 !important;
    flex-direction: row; width: auto !important; gap: 14px; justify-content: flex-start;
    padding: 12px 16px; border-bottom: .5px solid rgba(0,0,0,.06); }
  .icon .label { color: #1d1d1f; text-shadow: none; text-align: left; max-width: none; }
  .icon.wide .thumb { width: 74px; }
  .window { position: fixed !important; left: 4vw !important; top: 4vh !important; width: 92vw !important; }
  #dock { gap: 4px; padding: 6px 8px; }
  #dock .app { width: 40px; height: 40px; }
}
