/* ==================================================================
   Portfolio OS — a macOS-flavoured desktop, written from scratch.

   Metrics below (menu bar 40px, dock 78px w/ 60px icons, 77px desktop
   tiles, 24px window radius, 11px traffic lights) were measured off the
   reference site so the proportions feel right. The implementation and
   all artwork here are original — icons are generated SVG, wallpapers
   are CSS gradients.
   ================================================================== */

/* Mona Sans — GitHub's open-source typeface (SIL OFL 1.1) */
@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/font-3a4f8ebb.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/font-84826476.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/font-03e88cfd.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --menubar-h: 40px;
  --dock-h: 78px;
  --dock-gap: 24px;

  /* palette */
  --red: #fd5d5c;
  --yellow: #fac900;
  --green: #34c75a;
  --gray-1: #fafafa;
  --gray-2: #e5e5ea;
  --gray-3: #8c8c8c;
  --gray-4: #86868b;
  --gray-5: #4d4d4d;
  --ink: #252525;
  --accent: #0a84ff;

  --text: #f5f5f7;
  --text-dim: rgba(245, 245, 247, 0.62);
  --glass-dark: rgba(30, 30, 34, 0.62);
  --stroke: rgba(255, 255, 255, 0.16);

  --shadow-win: 0 0 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-tile: 0 4px 4px rgba(0, 0, 0, 0.12), 0 1px 6px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

/* author styles set `display`, so [hidden] needs to outrank them */
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background: #0b0b0d;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ---------------------------- desktop ----------------------------- */

.desktop { position: fixed; inset: 0; }

.wallpaper {
  position: absolute;
  inset: 0;
  background: var(--wall, #123);
  background-size: cover;
  transition: background 0.6s ease;
}
.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.2) 100%);
}

/* ---------------------------- menu bar ---------------------------- */

/* Metrics measured off the reference bar at 1440px:
   40px tall · 12px side padding · no blur, no border
   name 16px/500 · date+time 13px/500 · icons 18px boxes, 8px apart */
.menubar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 400;
  height: var(--menubar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #fff;
  background: rgba(87, 87, 87, 0.12);
}
.menubar__name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}
.menubar__right { display: flex; align-items: center; gap: 16px; }

.menubar__links { display: flex; align-items: center; gap: 8px; }
.menubar__links a {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}
.menubar__links a:hover { opacity: 1; }
.menubar__links svg { display: block; }

.menubar__clock {
  display: flex;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

/* ------------------------- desktop icons -------------------------- */

.surface { position: absolute; inset: var(--menubar-h) 0 0 0; }

.icon {
  position: absolute;
  width: 100px;
  padding: 6px 4px 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #fff;
  touch-action: none;
  user-select: none;
}
.icon:hover { background: rgba(255, 255, 255, 0.1); }
.icon.is-selected { background: rgba(10, 132, 255, 0.32); border-color: rgba(255, 255, 255, 0.35); }
/* PNG tiles bring their own rounded shape, so the shadow has to follow
   the alpha channel — a box-shadow would draw a square behind them. */
.icon img, .icon svg {
  width: 77px; height: 77px;
  display: block;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.12)) drop-shadow(0 1px 6px rgba(0, 0, 0, 0.08));
  pointer-events: none;
}
.icon span {
  font-size: 13px; line-height: 1.25; text-align: center;
  padding: 2px 6px; border-radius: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.icon.is-selected span { background: var(--accent); }

/* ----------------------------- windows ---------------------------- */

.window {
  position: absolute;
  min-width: 320px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-win);
  color: var(--ink);
  overflow: hidden;
  animation: win-in 0.24s var(--ease);
  transition: opacity 0.2s ease, transform 0.28s var(--ease);
}
@keyframes win-in { from { opacity: 0; transform: scale(0.94) translateY(10px); } }
.window.is-blurred { box-shadow: 0 0 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.16); }
.window.is-minimized { opacity: 0; transform: scale(0.2) translateY(40vh); pointer-events: none; }
.window.is-max { border-radius: 0; }

/* title bar: traffic lights at 16/19 with a 16px pitch, like the reference */
.titlebar {
  flex: 0 0 49px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #fff;
  cursor: default;
  touch-action: none;
  user-select: none;
}
.lights { display: flex; gap: 5px; }
.light {
  width: 11px; height: 11px; padding: 0;
  border: 0; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 8px; line-height: 1; color: rgba(0, 0, 0, 0.5);
}
.light span { opacity: 0; }
.lights:hover .light span { opacity: 1; }
.light--close { background: var(--red); }
.light--min   { background: var(--yellow); }
.light--max   { background: var(--green); }
.window.is-blurred .light { background: var(--gray-2); }

.titlebar__title { flex: 1; text-align: center; font-size: 14px; font-weight: 500; color: var(--gray-4); margin: 0; }
.titlebar__tools { display: flex; gap: 4px; }
.titlebar__tool {
  width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 6px; background: none; color: var(--gray-3);
  display: grid; place-items: center;
}
.titlebar__tool:hover { background: var(--gray-2); color: var(--gray-5); }

.window__body { flex: 1; overflow: auto; background: #fff; }
.window__resize {
  position: absolute; right: 0; bottom: 0;
  width: 20px; height: 20px;
  cursor: nwse-resize; touch-action: none;
}

/* ------------------------- window contents ------------------------ */

.pane { padding: 8px 32px 32px; }
.pane__title { margin: 0 0 6px; font-size: 24px; font-weight: 500; letter-spacing: -0.2px; }
.pane h2 { font-size: 24px; font-weight: 500; margin: 0 0 6px; }
.pane h3 { font-size: 15px; font-weight: 600; margin: 22px 0 8px; }
.pane p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; }
.muted { color: var(--gray-4); }
.small { font-size: 13px; }
.list { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.75; }

.pane--split { display: grid; grid-template-columns: 210px 1fr; gap: 28px; }
.profile { text-align: center; }
.profile h2 { margin: 14px 0 2px; font-size: 18px; }
.profile__avatar {
  width: 110px; height: 110px; margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.profile__avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.chip {
  font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: var(--gray-1); border: 1px solid var(--gray-2); color: var(--gray-5);
}

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-top: 16px; }
.card {
  display: block;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--gray-2);
  background: var(--gray-1);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1); }
.card__head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.card__dot { width: 10px; height: 10px; border-radius: 3px; }
.card__name { font-weight: 600; font-size: 16px; }
.card__tag { margin-left: auto; font-size: 12px; color: var(--gray-4); }
.card p { font-size: 14px; margin: 0 0 12px; }
.card__tech { display: flex; flex-wrap: wrap; gap: 6px; }
.card__tech span { font-size: 12px; padding: 4px 9px; border-radius: 7px; background: #fff; border: 1px solid var(--gray-2); }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-top: 16px; }
.shot {
  margin: 0;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray-2);
  cursor: zoom-in;
  transition: transform 0.2s var(--ease);
}
.shot img {
  width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;
}
.shot:hover { transform: scale(1.03); }

.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  padding: 40px 24px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  width: auto; height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  object-fit: contain;
  cursor: default;
  animation: lightboxIn 0.22s var(--ease);
}
.lightbox__close {
  position: absolute; top: 18px; right: 22px;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.24); }
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.pane--dark { background: #121215; color: var(--text); min-height: 100%; }
.pane--dark .muted { color: rgba(245, 245, 247, 0.6); }
.player { display: grid; gap: 14px; }
.player__stage {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  display: grid; place-items: center;
  background: radial-gradient(80% 80% at 50% 40%, #2a2a30, #08080a);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.player__play {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 18px;
}
.player__bar { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.player__progress { width: 38%; height: 100%; background: #fff; }
.player__meta { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, 0.65); }

.music { text-align: center; }
.music__art {
  width: 160px; height: 160px; margin: 6px auto 16px;
  border-radius: 20px;
  background: conic-gradient(from 210deg, #ff375f, #ff9f0a, #ffd60a, #0a84ff, #bf5af2, #ff375f);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}
.music__title { margin: 0 0 2px; font-size: 17px; }
.music__bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 46px; margin: 20px 0; }
.music__bars i {
  width: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.75);
  animation: eq 1.1s ease-in-out infinite alternate;
}
.music__bars i:nth-child(3n)   { animation-duration: 0.75s; }
.music__bars i:nth-child(3n+1) { animation-duration: 1.4s; }
@keyframes eq { from { height: 6%; } to { height: 100%; } }
.music__controls { display: flex; justify-content: center; align-items: center; gap: 20px; }
.music__controls button { border: 0; background: none; font-size: 17px; color: inherit; }
.music__controls .big { font-size: 28px; }

.entry { margin-bottom: 14px; }
.entry span { float: right; font-size: 13px; color: var(--gray-4); }
.entry p { margin: 4px 0 0; font-size: 14px; }

.pane--note { background: #fffbe6; min-height: 100%; }
.note__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.note__status { font-size: 12px; color: #0a8f4d; }
.note__status.is-typing { color: var(--gray-4); }
.btn--ghost {
  margin-top: 12px;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--gray-5);
  padding: 8px 16px;
  font-size: 13px;
}
.btn--ghost:hover { background: rgba(0, 0, 0, 0.05); }
.notepad {
  width: 100%; min-height: 220px; margin-top: 12px;
  padding: 14px; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  resize: vertical; font-size: 15px; line-height: 1.6;
}

.pane--term {
  background: #0c0c0f; color: #d6ffd6; min-height: 100%;
  display: flex; flex-direction: column; padding: 16px 20px;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
}
.term { flex: 1; overflow: auto; white-space: pre-wrap; line-height: 1.6; }
.term__input { display: flex; gap: 8px; align-items: center; padding-top: 6px; }
.term__prompt { color: #5be49b; }
.term__input input { flex: 1; border: 0; background: none; outline: none; font: inherit; color: #d6ffd6; }

/* ---------------------------- youtube ----------------------------- */

.videos { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 16px 0 22px; }
.video { display: grid; gap: 8px; }
.video__thumb, .video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.video__thumb { padding: 0; border: 0; display: block; width: 100%; cursor: pointer; }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s var(--ease), opacity 0.2s; }
.video__thumb:hover img { transform: scale(1.04); opacity: 0.85; }
.video__play {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 40px; border-radius: 10px;
  background: rgba(220, 32, 32, 0.92);
  display: grid; place-items: center;
  transition: background 0.2s;
}
.video__play::after {
  content: ""; width: 0; height: 0;
  border-left: 14px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 3px;
}
.video__thumb:hover .video__play { background: #ff0000; }
.video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video__meta { display: flex; flex-direction: column; gap: 2px; }
.video__title { font-size: 15px; font-weight: 550; }
.video__meta a { font-size: 12px; color: rgba(245, 245, 247, 0.6); text-decoration: none; }
.video__meta a:hover { color: #fff; }

.btn--yt {
  display: inline-block;
  background: #ff0000;
  text-decoration: none;
}
.btn--yt:hover { background: #d40000; }

/* ---------------------------- watchlist --------------------------- */

.nf__row { margin-top: 22px; }
.nf__row h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.nf__strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.nf__card { display: grid; gap: 6px; }
.nf__poster {
  width: 72px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  display: flex; align-items: flex-end;
  padding: 8px;
  font-size: 11px; font-weight: 600; line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nf__card:hover .nf__poster { transform: scale(1.04); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5); }
.nf__meta { margin: 0; font-size: 11px; color: rgba(245, 245, 247, 0.55); }
.nf__note { margin: 0; font-size: 12px; line-height: 1.45; color: rgba(245, 245, 247, 0.78); }

/* ------------------------------ trash ----------------------------- */

.trash__list { margin: 12px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.8; }

.pane--empty { display: grid; place-items: center; min-height: 100%; }

.form { display: grid; gap: 14px; margin: 18px 0; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--gray-4); }
.form input, .form textarea {
  padding: 11px 13px;
  border: 1px solid var(--gray-2);
  border-radius: 10px;
  background: var(--gray-1);
  font-size: 15px; color: var(--ink);
  outline: none;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18); }
.btn {
  justify-self: start;
  padding: 11px 24px; border: 0; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500;
}
.btn:hover { background: #000; }
.form__note { font-size: 14px; color: #0a8f4d; margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.links a { color: var(--accent); text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* ------------------------------ dock ------------------------------ */

.dock {
  position: absolute;
  left: 50%;
  bottom: var(--dock-gap);
  transform: translateX(-50%);
  z-index: 350;
  max-width: 96vw;
}
.dock__glass {
  height: var(--dock-h);
  display: flex;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(3px) saturate(150%);
  -webkit-backdrop-filter: blur(3px) saturate(150%);
}
.dock__items { display: flex; align-items: flex-end; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dock__item { position: relative; }
.dock__btn {
  width: 60px; height: 60px;
  padding: 0; border: 0; background: none;
  transform-origin: bottom center;
  transition: transform 0.16s var(--ease);
}
.dock__btn img, .dock__btn svg {
  width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.12)) drop-shadow(0 1px 6px rgba(0, 0, 0, 0.08));
}
.dock__item--bounce .dock__btn { animation: bounce 0.55s ease 2; }
@keyframes bounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }
.dock__dot {
  position: absolute; left: 50%; bottom: -6px;
  width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.9);
  opacity: 0; transition: opacity 0.2s;
}
.dock__item.is-running .dock__dot { opacity: 1; }

/* dock entries that open a website don't get a running dot */
.dock__item--link .dock__dot { display: none; }

/* trash highlights while you drag an icon over it */
.dock__item--trash.is-target .dock__btn { transform: scale(1.35) translateY(-8px); }
.dock__item--trash.is-target::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.28);
}
.dock__label {
  position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  padding: 5px 11px; border-radius: 8px; white-space: nowrap;
  background: rgba(30, 30, 34, 0.8); color: #fff; font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.dock__item:hover .dock__label { opacity: 1; }
.dock__sep { width: 1px; align-self: stretch; margin: 4px 5px; background: rgba(255, 255, 255, 0.3); }

/* --------------------------- spotlight ---------------------------- */

.spotlight {
  position: absolute; inset: 0; z-index: 600;
  display: grid; place-items: start center;
  padding-top: 16vh;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(3px);
}
.spotlight__panel {
  width: min(580px, 90vw);
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--glass-dark);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: pop 0.16s var(--ease);
}
.spotlight__field { display: flex; align-items: center; gap: 12px; padding: 15px 18px; }
.spotlight__field input { flex: 1; border: 0; background: none; outline: none; font-size: 20px; color: #fff; }
.spotlight__results { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow: auto; }
.spotlight__results:not(:empty) { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.spotlight__results li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 18px; font-size: 15px; cursor: default;
}
.spotlight__results li img, .spotlight__results li svg { width: 28px; height: 28px; display: block; }
.spotlight__results li.is-active { background: var(--accent); }
.spotlight__results small { margin-left: auto; color: var(--text-dim); font-size: 12px; }

/* ------------------------- context menu --------------------------- */

.context {
  position: absolute; z-index: 550;
  min-width: 200px; padding: 6px;
  border-radius: 12px; border: 1px solid var(--stroke);
  background: var(--glass-dark);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  animation: pop 0.12s var(--ease);
}
.context button {
  display: block; width: 100%; padding: 7px 11px;
  border: 0; border-radius: 7px; background: none;
  font-size: 14px; text-align: left;
}
.context button:hover { background: var(--accent); }
.context hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); margin: 5px 8px; }

/* ---------------------------- responsive -------------------------- */

@media (max-width: 820px) {
  :root { --menubar-h: 34px; }
  .menubar__name { font-size: 14px; }
  .menubar__right { gap: 12px; }
  .menubar__clock { gap: 8px; font-size: 12px; }
  .menubar__clock span:first-child { display: none; }   /* time only, like iOS */
  .icon { width: 84px; }
  .icon svg { width: 62px; height: 62px; }

  /* windows become full-screen sheets */
  .window {
    inset: 8px 8px calc(var(--dock-h) + var(--dock-gap) + 12px) 8px !important;
    width: auto !important; height: auto !important;
    border-radius: 18px;
    animation: sheet-in 0.26s var(--ease);
  }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(20px); } }
  .window__resize { display: none; }
  .pane { padding: 6px 20px 24px; }
  .pane--split { grid-template-columns: 1fr; }

  .dock { max-width: calc(100vw - 12px); }
  .dock__items { overflow-x: auto; scrollbar-width: none; }
  .dock__items::-webkit-scrollbar { display: none; }
  .dock__btn { width: 50px; height: 50px; }
  .dock__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
