/* ==========================================================================
   dadigitaldiamond · the desktop (index.html, the homepage)
   A Mac, as closely as a web page can be one: wallpaper, menu bar, widgets,
   files on the desktop, windows with their three lights, sheets, a dock.
   Loaded after site.css, which brings the fonts and the gilded frame. The look
   here is the system's (its font, its colours, its capitals).
   ========================================================================== */

:root {
  /* Wallpapers: soft fields of colour, in the manner of the system's own. */
  --wallpaper:
    radial-gradient(58% 72% at 10% 6%, #57b6ff 0%, rgba(87, 182, 255, 0) 62%),
    radial-gradient(52% 64% at 92% 10%, #2a3cff 0%, rgba(42, 60, 255, 0) 64%),
    radial-gradient(64% 70% at 84% 96%, #8a3df5 0%, rgba(138, 61, 245, 0) 60%),
    radial-gradient(56% 60% at 12% 98%, #12c2f5 0%, rgba(18, 194, 245, 0) 60%),
    radial-gradient(44% 52% at 52% 52%, #1b12e0 0%, rgba(27, 18, 224, 0) 72%),
    linear-gradient(160deg, #0e22b4 0%, #1807da 46%, #0a0b63 100%);
  --wp-blue: var(--wallpaper);
  --wp-dusk:
    radial-gradient(60% 74% at 8% 8%, #ffb054 0%, rgba(255, 176, 84, 0) 62%),
    radial-gradient(54% 66% at 94% 10%, #ff4f8f 0%, rgba(255, 79, 143, 0) 64%),
    radial-gradient(66% 72% at 86% 98%, #6b3bff 0%, rgba(107, 59, 255, 0) 60%),
    radial-gradient(56% 60% at 10% 98%, #1f3bff 0%, rgba(31, 59, 255, 0) 60%),
    linear-gradient(160deg, #ff7a59 0%, #c0368a 45%, #2a1a8f 100%);
  --wp-graphite:
    radial-gradient(60% 74% at 12% 6%, #6f7f9b 0%, rgba(111, 127, 155, 0) 62%),
    radial-gradient(60% 70% at 90% 96%, #2d3a5c 0%, rgba(45, 58, 92, 0) 60%),
    linear-gradient(160deg, #3d4558 0%, #20242f 55%, #0f1117 100%);
  --wp-gallery: radial-gradient(ellipse 85% 78% at 40% 34%, #ffffff 0%, #fbfaf8 44%, #f1f0ec 100%);
}
html[data-wallpaper="dusk"] { --wallpaper: var(--wp-dusk); }
html[data-wallpaper="graphite"] { --wallpaper: var(--wp-graphite); }
html[data-wallpaper="gallery"] { --wallpaper: var(--wp-gallery); }

html { background: #1320b8; }

.mac {
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sys-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --accent: #007aff;
  --label: rgba(0, 0, 0, 0.86);
  --label-2: rgba(0, 0, 0, 0.5);
  --label-3: rgba(0, 0, 0, 0.28);
  --hair: rgba(0, 0, 0, 0.1);
  --menubar: 1.5rem;

  /* what sits straight on the wallpaper */
  --desk-ink: #ffffff;
  --desk-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 8px rgba(0, 0, 0, 0.28);
  --bar-bg: rgba(255, 255, 255, 0.16);
  --bar-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
  --shade: 0, 4, 34;

  --z-dock: 55;
  --z-menubar: 60;
  --z-banner: 70;
  --z-spotlight: 80;
  --z-ctx: 90;
  --z-lock: 100;

  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: var(--label);
  font-family: var(--sys);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}
html[data-wallpaper="gallery"] .mac {
  --desk-ink: rgba(0, 0, 0, 0.86);
  --desk-shadow: none;
  --bar-bg: rgba(255, 255, 255, 0.55);
  --bar-shadow: none;
  --shade: 10, 8, 70;
}

.mac::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  .05 0 0 0 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 220px 220px,
    var(--wallpaper);
}

.mac :focus-visible { outline: 3px solid rgba(0, 122, 255, 0.55); outline-offset: 1px; border-radius: 0.3rem; }
.mac ::selection { background: #b3d7ff; color: inherit; }
.mac [contenteditable]:focus, .mac [contenteditable]:focus-visible { outline: none; }

.sprite { position: absolute; }

/* a control shows the glyph for its state (site.js sets data-state) */
.when-sounding, .when-paused { display: none; }
[data-state="sounding"] .when-sounding, [data-state="paused"] .when-paused { display: block; }
[data-state="sounding"] .when-muted, [data-state="paused"] .when-playing { display: none; }

/* push buttons and text fields, as the system draws them */
.btn {
  appearance: none;
  min-width: 4.6rem;
  padding: 0.2rem 0.75rem 0.24rem;
  border: 0;
  border-radius: 0.38rem;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.14), 0 0.5px 1.5px rgba(0, 0, 0, 0.26);
  color: var(--label);
  font: inherit;
  line-height: 1.3;
  text-align: center;
  cursor: default;
}
.btn:active { background: #ededed; }
.btn--default { background: linear-gradient(#3c9cff, #0a6cff); color: #fff; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 0.5px 1.5px rgba(0, 60, 160, 0.5); }
.btn--default:active { filter: brightness(0.92); }
.field {
  width: 100%;
  padding: 0.22rem 0.45rem 0.26rem;
  border: 0;
  border-radius: 0.34rem;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 0.5px 1px rgba(0, 0, 0, 0.12) inset;
  color: var(--label);
  font: inherit;
}
.field:focus { outline: 3px solid rgba(0, 122, 255, 0.5); outline-offset: 0; }
.switch {
  appearance: none;
  position: relative;
  width: 2.4rem;
  height: 1.45rem;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.16);
  cursor: default;
  transition: background-color 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  left: 0.12rem;
  top: 0.12rem;
  width: 1.21rem;
  height: 1.21rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
.switch[data-state="sounding"] { background: #34c759; }
.switch[data-state="sounding"]::after { transform: translateX(0.95rem); }

/* --------------------------------------------------------------------------
   Lock screen
   -------------------------------------------------------------------------- */

.lock {
  position: fixed;
  inset: 0;
  z-index: var(--z-lock);
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  padding: clamp(2.5rem, 8svh, 5.5rem) 1.5rem clamp(2rem, 6svh, 4rem);
  background: linear-gradient(rgba(0, 0, 20, 0.1), rgba(0, 0, 20, 0.3)), var(--wallpaper);
  color: var(--desk-ink);
  text-align: center;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.22);
  cursor: default;
  transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
html[data-wallpaper="gallery"] .lock { background: var(--wallpaper); text-shadow: none; }
.lock.is-open { opacity: 0; transform: translateY(-2.5%); pointer-events: none; }
.lock[hidden] { display: none; }
.lock:focus, .lock:focus-visible { outline: none; }

.lock__date { font-size: 1.35rem; font-weight: 600; }
.lock__time {
  font-family: var(--sys-round);
  font-size: clamp(5.5rem, 15vw, 11rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.lock__who { align-self: end; display: grid; justify-items: center; gap: 0.3rem; }
.lock__name { margin-top: 0.45rem; font-size: 1.05rem; font-weight: 600; }
.lock__hint { font-size: 0.8125rem; opacity: 0.8; }

.avatar {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(#1d2046, #0a0b1c);
  color: #5b93ff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.avatar svg { width: 48%; height: 48%; }
.avatar--big { width: 4.4rem; height: 4.4rem; }

/* --------------------------------------------------------------------------
   Menu bar
   -------------------------------------------------------------------------- */

.menubar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-menubar);
  height: var(--menubar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.4rem;
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  color: var(--desk-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  text-shadow: var(--bar-shadow);
}
.menubar__menus, .menubar__status { display: flex; align-items: center; height: 100%; }

.menubar__item {
  appearance: none;
  display: inline-flex;
  align-items: center;
  height: 1.375rem;
  padding: 0 0.58rem;
  border: 0;
  border-radius: 0.28rem;
  background: none;
  color: inherit;
  font: inherit;
  text-shadow: inherit;
  white-space: nowrap;
  cursor: default;
}
.menubar__item:hover { background: rgba(128, 128, 128, 0.22); }
.menubar__item[aria-expanded="true"] { background: rgba(128, 128, 128, 0.38); }
.menubar__app { font-weight: 700; }
.menubar__logo svg { width: 0.95rem; height: 0.95rem; }
.menubar__glyph { display: inline-flex; align-items: center; height: 1.375rem; padding: 0 0.42rem; }
.menubar__glyph svg { width: 1.1rem; height: 0.92rem; }
.menubar__glyph .glyph-battery { width: 1.6rem; }
.menubar__glyph .glyph-search { width: 0.85rem; height: 0.85rem; }
.menubar__clock { padding: 0 0.45rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menubar__clock--short { display: none; }

.menu {
  position: fixed;
  top: var(--menubar);
  left: var(--menu-x, 0.5rem);
  z-index: var(--z-menubar);
  min-width: 13.5rem;
  padding: 0.3rem;
  background: rgba(246, 246, 246, 0.82);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  backdrop-filter: blur(40px) saturate(1.8);
  border-radius: 0.42rem;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 10px 36px rgba(0, 0, 0, 0.3);
  color: var(--label);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.3;
  text-shadow: none;
}
.menu[hidden] { display: none; }
.menu__item {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 0.2rem 0.65rem 0.24rem;
  border: 0;
  border-radius: 0.28rem;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: default;
}
.menu__item:hover, .menu__item:focus-visible { background: var(--accent); color: #fff; outline: none; }
.menu__item:disabled { color: var(--label-3); background: none; }
.menu__key { color: var(--label-3); }
.menu__item:hover .menu__key, .menu__item:focus-visible .menu__key { color: rgba(255, 255, 255, 0.75); }
.menu hr { margin: 0.3rem 0.65rem; border: 0; border-top: 1px solid var(--hair); }

/* the right-click menu is the same thing, wherever the pointer is */
.ctx { z-index: var(--z-ctx); min-width: 12rem; border-radius: 0.5rem; }

/* --------------------------------------------------------------------------
   The desktop: the framed reel, widgets on the left, files on the right
   -------------------------------------------------------------------------- */

.desktop {
  position: fixed;
  inset: var(--menubar) 0 0 0;
  z-index: 1;
}

.desktop__piece {
  position: absolute;
  left: calc(50% + 2.5rem);
  top: calc(50% - 3.4rem);
  width: min(62vw, 105rem, max(18rem, (100svh - 16.5rem) * 1.5853));
  transform: translate(-50%, -50%);
}

/* the wall label under the frame: what will hang here */
.placard {
  position: absolute;
  left: 0;
  top: calc(100% + 1rem);
  width: 15.5rem;
  padding: 0.6rem 0.75rem 0.7rem;
  background: #fdfdfb;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 6px 16px rgba(0, 0, 0, 0.22);
  color: #151515;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.3;
  cursor: text;
}
.placard__name { font-weight: 400; }
.placard__soon { margin-top: 0.45em; color: var(--blue); }

/* a rubber band when you drag across the desktop */
.marquee {
  position: absolute;
  z-index: 4;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  pointer-events: none;
}
html[data-wallpaper="gallery"] .marquee { background: rgba(0, 0, 0, 0.08); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3) inset; }

/* widgets */

.widgets { position: absolute; left: 1rem; top: 1rem; z-index: 3; width: 10.6rem; display: grid; gap: 0.75rem; }
.widget {
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.56);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  border-radius: 1.25rem;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.5) inset, 0 10px 30px rgba(0, 0, 0, 0.18);
  color: var(--label);
}
.widget--date { aspect-ratio: 1; display: flex; flex-direction: column; }
.widget__day { color: #ff3b30; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.widget__num { margin-top: 0.05rem; font-size: 3.3rem; font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.widget__sub { margin-top: auto; color: var(--label-2); font-size: 0.75rem; }

.widget--playing { padding: 0.7rem; }
.playing__art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.6rem; }
.playing__title { margin-top: 0.5rem; font-weight: 600; line-height: 1.2; }
.playing__by { color: var(--label-2); font-size: 0.75rem; }
.playing__keys { display: flex; justify-content: space-between; margin-top: 0.55rem; }
.key {
  appearance: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  color: var(--label);
  cursor: default;
}
.key:hover { background: rgba(0, 0, 0, 0.14); }
.key svg { width: 0.95rem; height: 0.95rem; }

/* files on the desktop: a column down the right, as a Mac arranges them */

.icons { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.icon {
  position: absolute;
  right: calc(0.7rem + var(--col, 0) * 6.5rem);
  top: calc(0.7rem + var(--n, 0) * 5.85rem);
  width: 6.2rem;
  display: grid;
  justify-items: center;
  gap: 0.18rem;
  padding: 0.2rem;
  color: var(--desk-ink);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  text-shadow: var(--desk-shadow);
  cursor: default;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}
.icon[hidden] { display: none; }
.icon__art {
  position: relative;
  display: block;
  width: 4rem;
  height: 4rem;
  padding: 0.2rem;
  border-radius: 0.45rem;
}
.icon__art > svg:first-child { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28)); }
.icon__lock { position: absolute; right: 0.05rem; bottom: 0.1rem; width: 1.45rem; height: 1.45rem; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); display: none; }
.icon.is-locked .icon__lock { display: block; }
.icon__name { max-width: 100%; padding: 0.08em 0.4em 0.14em; border-radius: 0.25rem; text-align: center; overflow-wrap: anywhere; }
.icon--hidden .icon__art > svg:first-child { opacity: 0.6; }
.icon--hidden .icon__name { opacity: 0.75; }
.icon.is-dragging { z-index: 5; opacity: 0.85; }
.icon:focus-visible { outline: none; }
.icon:focus-visible .icon__art, .icon.is-selected .icon__art { background: rgba(0, 0, 0, 0.26); box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.3) inset; }
.icon:focus-visible .icon__name, .icon.is-selected .icon__name { background: var(--accent); color: #fff; text-shadow: none; }
.icon.is-renaming .icon__name { background: #fff; color: #000; text-shadow: none; box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.7); user-select: text; cursor: text; }

/* sticky notes: type on them, drag them by the top */

.sticky {
  --note: #fef3a0;
  --note-bar: #f5e36a;
  position: absolute;
  left: 1rem;
  bottom: 5.4rem;
  z-index: 6;
  width: 12.5rem;
  background: var(--note);
  color: rgba(0, 0, 0, 0.84);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22), 0 12px 26px rgba(0, 0, 0, 0.24);
  font-size: 0.8rem;
  line-height: 1.35;
}
.sticky--pink { --note: #ffd2dc; --note-bar: #ffaec0; }
.sticky--blue { --note: #bfeaff; --note-bar: #8fd6fb; }
.sticky--green { --note: #c9f7b8; --note-bar: #a2e98c; }
.sticky__bar { display: flex; align-items: center; height: 0.95rem; padding: 0 0.25rem; background: var(--note-bar); cursor: grab; touch-action: none; }
.sticky.is-dragging .sticky__bar { cursor: grabbing; }
.sticky__close { appearance: none; position: relative; width: 0.55rem; height: 0.55rem; padding: 0; border: 1px solid rgba(0, 0, 0, 0.45); background: none; cursor: default; }
.sticky__close::after { content: ""; position: absolute; inset: -0.5rem; }
.sticky__body { min-height: 4.5rem; padding: 0.5rem 0.75rem 0.85rem; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; }

/* --------------------------------------------------------------------------
   Windows
   -------------------------------------------------------------------------- */

.win {
  position: absolute;
  left: 22vw;
  top: 3rem;
  z-index: 20;
  width: min(var(--ww, 34rem), 100vw - 1.5rem);
  max-height: min(44rem, 100svh - var(--menubar) - 6rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: var(--label);
  border-radius: 0.65rem;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3), 0 22px 70px rgba(0, 0, 0, 0.42);
}
.win[hidden] { display: none; }
.win:focus, .win:focus-visible { outline: none; }
.win.is-back { box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 10px 30px rgba(0, 0, 0, 0.24); }
.win.is-zoomed {
  left: 0.5rem !important;
  top: 0.5rem !important;
  width: calc(100vw - 1rem) !important;
  height: calc(100svh - var(--menubar) - 5.6rem) !important;
  max-height: none !important;
}
/* the bottom right corner resizes; everything inside gives way */
.win__grip { position: absolute; right: 0; bottom: 0; z-index: 3; width: 1rem; height: 1rem; cursor: nwse-resize; touch-action: none; }
.win.is-zoomed .win__grip { display: none; }
.win > .win__body, .win > .finder, .win > .settings, .win > .player { flex: 1 1 auto; min-height: 0; }

.win__bar {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.75rem;
  padding: 0 4.4rem;
  background: linear-gradient(#f7f7f7, #e9e9e9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  cursor: default;
  touch-action: none;
  user-select: none;
}
.win.is-back .win__bar { background: #f4f4f4; }
.win__bar--bare { background: none; border-bottom: 0; }
.win.is-back .win__bar--bare { background: none; }
.win__title { overflow: hidden; color: rgba(0, 0, 0, 0.8); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.win.is-back .win__title { color: var(--label-3); }
.win__sub { margin-left: 0.6em; color: var(--label-2); font-weight: 400; }
.win__done { display: none; }

/* the three lights */
.lights { position: absolute; left: 0.5rem; top: 50%; display: flex; gap: 0.5rem; transform: translateY(-50%); }
.light {
  appearance: none;
  position: relative;
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  border: 0.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  cursor: default;
}
.light--close { background: #ff5f57; }
.light--min { background: #febc2e; }
.light--zoom { background: #28c840; }
.light::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(0, 0, 0, 0.55);
  font: 700 0.62rem/1 var(--sys);
  opacity: 0;
}
.light--close::before { content: "\00d7"; }
.light--min::before { content: "\2212"; }
.light--zoom::before { content: "+"; }
.lights:hover .light::before { opacity: 1; }
.light::after { content: ""; position: absolute; inset: -0.4rem -0.22rem; }   /* a kinder target */
.win.is-back .lights:not(:hover) .light { background: #dcdcdc; }

.win__body { overflow: auto; overscroll-behavior: contain; }

/* documents are the studio's own words, set in its own type; you can type in them */
.doc {
  padding: 1.6rem 1.9rem 1.9rem;
  color: #111;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.45;
  cursor: text;
}
.doc > * + * { margin-top: 0.85em; }
.doc__lead { font-size: 1.25rem; line-height: 1.3; }
.doc__label { margin-top: 1.6em !important; color: var(--blue); font-size: 0.9375rem; }
.doc__label + * { margin-top: 0.4em; }
.doc a { color: var(--blue); }
.doc.quote footer { color: #111; }

/* Finder-like windows */
.finder { flex: 1; min-height: 0; display: grid; grid-template-columns: 10rem minmax(0, 1fr); }
.finder__side { overflow: auto; padding: 0.6rem 0.5rem; background: #ececee; border-right: 1px solid var(--hair); }
.finder__head { padding: 0.2rem 0.5rem 0.25rem; color: var(--label-3); font-size: 0.69rem; font-weight: 700; }
.finder__item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.28rem 0.5rem;
  border: 0;
  border-radius: 0.35rem;
  background: none;
  color: var(--label);
  font: inherit;
  text-align: left;
  cursor: default;
}
.finder__item svg { flex: none; width: 1.05rem; height: 1.05rem; }
.finder__item:hover { background: rgba(0, 0, 0, 0.05); }
.finder__item.is-here { background: rgba(0, 0, 0, 0.1); }
.finder__main { overflow: auto; overscroll-behavior: contain; background: #fff; }
.finder__main--icons { padding: 1.1rem 1.2rem 1.4rem; }
.finder__status {
  flex: none;
  padding: 0.3rem 0.8rem 0.35rem;
  background: #f6f6f6;
  border-top: 1px solid var(--hair);
  color: var(--label-2);
  font-size: 0.72rem;
  text-align: center;
}
.finder__status--tools { display: flex; align-items: center; justify-content: space-between; padding-block: 0.4rem; }
.finder__status--tools .btn { font-size: 0.8125rem; }
.empty { display: grid; place-items: center; min-height: 9rem; padding: 2rem 1rem; color: var(--label-3); font-size: 1rem; font-weight: 600; text-align: center; }
.empty[hidden] { display: none; }
.trash__list { padding: 0.3rem 0; }
.trash__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 0.3rem 1rem; }
.trash__list li:nth-child(even) { background: #f5f5f7; }
.trash__list span:last-child { color: var(--label-2); }

/* list view: case studies unfold like a folder's contents */
.list__head, .fold > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem 3.5rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.9rem 0.34rem 1.9rem;
}
.list__head { position: sticky; top: 0; z-index: 1; background: #fff; border-bottom: 1px solid var(--hair); color: var(--label-2); font-size: 0.72rem; font-weight: 600; }
.fold > summary { position: relative; list-style: none; cursor: default; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  margin-top: -0.26rem;
  border-left: 0.4rem solid var(--label-2);
  border-block: 0.26rem solid transparent;
  transition: transform 0.15s;
}
.fold[open] > summary::before { transform: rotate(90deg); }
.fold:nth-of-type(even) > summary { background: #f5f5f7; }
.fold > summary span:not(.fold__name) { color: var(--label-2); }
.fold[open] > summary { background: var(--accent); color: #fff; }
.fold[open] > summary::before { border-left-color: #fff; }
.fold[open] > summary span:not(.fold__name) { color: rgba(255, 255, 255, 0.85); }
.fold__name { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.fold__name svg { flex: none; width: 1.05rem; height: 1.05rem; }
.fold__body { padding: 1.1rem 1.4rem 1.6rem 1.9rem; border-bottom: 1px solid var(--hair); }
.fold__body img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.3rem; }
.facts { display: grid; gap: 0.7em; }
.facts div { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 0 1rem; }
.facts dt { color: var(--blue); font-style: italic; }

/* icon view: the work */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.9rem 0.6rem; }
.thumb {
  appearance: none;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.35rem;
  border: 0;
  border-radius: 0.4rem;
  background: none;
  color: var(--label);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
  cursor: default;
}
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.2rem; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.18); }
.thumb span { padding: 0.06em 0.45em 0.14em; border-radius: 0.25rem; }
.thumb:hover { background: rgba(0, 0, 0, 0.05); }
.thumb:focus-visible { outline: none; background: rgba(0, 0, 0, 0.08); }
.thumb:focus-visible span { background: var(--accent); color: #fff; }

/* the player */
.win--player { background: #000; }
.win--player .win__bar { background: linear-gradient(#3c3c3e, #2c2c2e); border-bottom-color: #000; }
.win--player.is-back .win__bar { background: #323234; }
.win--player .win__title { color: rgba(255, 255, 255, 0.92); }
.win--player.is-back .win__title { color: rgba(255, 255, 255, 0.4); }
.win--player .win__sub { color: rgba(255, 255, 255, 0.5); }
.player { aspect-ratio: 16 / 9; background: #000; }
.player > * { display: block; width: 100%; height: 100%; object-fit: contain; }

/* the contact card */
.card { display: grid; justify-items: center; padding: 1.6rem 1.4rem 1.5rem; text-align: center; }
.card__name { margin-top: 0.8rem; font-size: 1.05rem; font-weight: 700; }
.card__role { color: var(--label-2); }
.card__rows { width: 100%; margin-top: 1.1rem; border-top: 1px solid var(--hair); text-align: left; }
.card__rows div { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.8rem; padding: 0.5rem 0.2rem; border-bottom: 1px solid var(--hair); }
.card__rows dt { align-self: center; color: var(--label-2); font-size: 0.75rem; text-align: right; }
.card__rows a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.card__rows a:hover { text-decoration: underline; }
.push {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.28rem 0.95rem 0.32rem;
  border-radius: 0.4rem;
  background: linear-gradient(#3b9bff, #0a6cff);
  box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}
.push:hover { color: #fff; filter: brightness(1.07); }

/* "About This Desktop" */
.win--about { background: #f3f3f5; }
.aboutmac { display: grid; justify-items: center; padding: 0.2rem 1.4rem 1.4rem; text-align: center; }
.aboutmac__icon { width: 6rem; height: 6rem; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25)); }
.aboutmac__name { margin-top: 0.5rem; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.aboutmac__sub { color: var(--label-2); }
.aboutmac__rows { margin: 1rem 0 1.1rem; font-size: 0.75rem; }
.aboutmac__rows div { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.1rem 0; }
.aboutmac__rows dt { text-align: right; font-weight: 600; }
.aboutmac__rows dd { text-align: left; color: var(--label-2); }

/* System Settings */
.win--settings .win__bar { height: 2.25rem; }
.settings { flex: 1; min-height: 18rem; display: grid; grid-template-columns: 12rem minmax(0, 1fr); }
.settings__side { padding: 0.6rem 0.5rem; background: #ececee; border-right: 1px solid var(--hair); }
.settings__me { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0.4rem 0.8rem; }
.settings__me .avatar { width: 2.4rem; height: 2.4rem; box-shadow: none; }
.settings__me b { display: block; font-weight: 600; }
.settings__me span span, .settings__me p span { color: var(--label-2); font-size: 0.72rem; }
.settings__item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.25rem 0.45rem;
  border: 0;
  border-radius: 0.35rem;
  background: none;
  color: var(--label);
  font: inherit;
  text-align: left;
  cursor: default;
}
.settings__item.is-here { background: var(--accent); color: #fff; }
.chip { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 0.32rem; }
.chip--teal { background: linear-gradient(135deg, #57b6ff, #1807da 60%, #8a3df5); }
.chip--pink { background: linear-gradient(#ff6b8b, #ff2d55); }
.chip--black { background: linear-gradient(#48484a, #1c1c1e); }
.chip--grey { background: linear-gradient(#aeaeb2, #8e8e93); }
.settings__main { padding: 1.1rem 1.4rem 1.5rem; background: #fff; overflow: auto; }
.settings__main > section[hidden] { display: none; }
.settings__title { margin-bottom: 0.9rem; font-size: 1.1rem; font-weight: 700; }
.walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 0.9rem 0.8rem; }
.wall { appearance: none; display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--label); font: inherit; font-size: 0.75rem; text-align: center; cursor: default; }
.wall i { display: block; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 0.35rem; border-radius: 0.45rem; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.wall[aria-pressed="true"] i { box-shadow: 0 0 0 2px #fff, 0 0 0 4.500px var(--accent); }
.wall--blue i { background: var(--wp-blue); }
.wall--dusk i { background: var(--wp-dusk); }
.wall--graphite i { background: var(--wp-graphite); }
.wall--gallery i { background: var(--wp-gallery); }
.rows { border-radius: 0.5rem; background: #f5f5f7; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08); }
.rows__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.4rem; padding: 0.35rem 0.8rem; }
.rows__row + .rows__row { border-top: 1px solid var(--hair); }
.rows__value { color: var(--label-2); }
.rows__value a { color: var(--accent); text-decoration: none; }

/* Chess */
.chess { padding: 0.9rem; background: #ececee; }
.chess__board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  aspect-ratio: 1;
  border-radius: 0.3rem;
  overflow: hidden;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.25);
  user-select: none;
}
.sq {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ead9b8;
  font: 400 clamp(1.4rem, 7.4cqw, 2.9rem)/1 "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif;
  cursor: default;
}
.chess__board { container-type: inline-size; }
.sq--dark { background: #b08a5b; }
.sq--from, .sq--to { box-shadow: inset 0 0 0 100vmax rgba(255, 221, 51, 0.38); }
.sq--pick { box-shadow: inset 0 0 0 100vmax rgba(0, 122, 255, 0.35); }
.sq--check { box-shadow: inset 0 0 0 100vmax rgba(255, 59, 48, 0.5); }
.sq--goal::after { content: ""; width: 26%; height: 26%; border-radius: 50%; background: rgba(0, 0, 0, 0.28); grid-area: 1 / 1; }
.sq--goal.sq--full::after { width: 86%; height: 86%; background: none; box-shadow: inset 0 0 0 0.24rem rgba(0, 0, 0, 0.28); }
.piece-w, .piece-b { grid-area: 1 / 1; pointer-events: none; }
.piece-w { color: #fff; text-shadow: 0 0 1px #000, 0 0 1px #000, 0 1px 2px rgba(0, 0, 0, 0.6); }
.piece-b { color: #1d1d1f; text-shadow: 0 0 1px rgba(255, 255, 255, 0.5), 0 1px 1px rgba(255, 255, 255, 0.25); }
.sq:focus-visible { outline: none; box-shadow: inset 0 0 0 3px rgba(0, 122, 255, 0.8); }
.chess__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0.1rem 0; }
.chess__status { font-weight: 600; }
.chess__engine { color: var(--label-2); font-size: 0.72rem; }
.chess__engine a { color: inherit; }
.chess__buttons { display: flex; gap: 0.5rem; flex: none; }

/* Facets */
.game { background: #0a0b1c; }
.game canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: none; }

/* --------------------------------------------------------------------------
   The password sheet
   -------------------------------------------------------------------------- */

.alert {
  width: 17rem;
  max-width: calc(100vw - 2rem);
  padding: 0;
  border: 0;
  border-radius: 0.8rem;
  background: rgba(246, 246, 246, 0.94);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  backdrop-filter: blur(40px) saturate(1.8);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3), 0 26px 80px rgba(0, 0, 0, 0.5);
  color: var(--label);
  font-family: var(--sys);
  font-size: 0.8125rem;
  text-transform: none;
}
.alert::backdrop { background: rgba(0, 0, 0, 0.18); }
.alert__box { display: grid; justify-items: center; gap: 0.5rem; padding: 1.3rem 1.1rem 1.1rem; text-align: center; }
.alert__icon { width: 3.6rem; height: 3.6rem; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }
.alert__title { font-size: 0.8125rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.alert__text { margin-top: -0.25rem; font-size: 0.72rem; }
.alert__hint { margin-top: -0.15rem; color: var(--label-2); font-size: 0.72rem; }
.alert__hint[hidden] { display: none; }
.alert__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; width: 100%; margin-top: 0.4rem; }
.alert__buttons .btn { padding-block: 0.3rem 0.34rem; }
.alert.is-checking .field { opacity: 0.6; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-0.75rem); }
  35% { transform: translateX(0.65rem); }
  55% { transform: translateX(-0.45rem); }
  75% { transform: translateX(0.3rem); }
  90% { transform: translateX(-0.12rem); }
}
.alert.is-shaking { animation: shake 0.42s ease-in-out; }

/* --------------------------------------------------------------------------
   Notifications
   -------------------------------------------------------------------------- */

.banners { position: fixed; right: 0.65rem; top: calc(var(--menubar) + 0.65rem); z-index: var(--z-banner); display: grid; gap: 0.5rem; width: min(21.500rem, calc(100vw - 1.3rem)); pointer-events: none; }
.banner {
  appearance: none;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.8rem 0.7rem 0.7rem;
  border: 0;
  border-radius: 1rem;
  background: rgba(246, 246, 246, 0.82);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  backdrop-filter: blur(40px) saturate(1.8);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.16), 0 10px 30px rgba(0, 0, 0, 0.26);
  color: var(--label);
  font: inherit;
  text-align: left;
  cursor: default;
  pointer-events: auto;
}
.banner svg { width: 2.4rem; height: 2.4rem; }
.banner b { display: block; font-weight: 600; }
.banner span span { display: block; line-height: 1.3; }
@keyframes banner-in { from { transform: translateX(110%); } }

/* --------------------------------------------------------------------------
   Spotlight
   -------------------------------------------------------------------------- */

.spotlight { position: fixed; inset: 0; z-index: var(--z-spotlight); display: grid; justify-items: center; align-content: start; padding-top: min(22svh, 12rem); }
.spotlight[hidden] { display: none; }
.spotlight__box {
  width: min(38rem, calc(100vw - 2rem));
  border-radius: 1rem;
  background: rgba(246, 246, 246, 0.84);
  -webkit-backdrop-filter: blur(50px) saturate(1.8);
  backdrop-filter: blur(50px) saturate(1.8);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 30px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.spotlight__field { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1.1rem; }
.spotlight__field svg { flex: none; width: 1.35rem; height: 1.35rem; color: var(--label-2); }
.spotlight__field input { flex: 1; min-width: 0; border: 0; background: none; color: var(--label); font: 300 1.5rem/1.2 var(--sys); outline: none; }
.spotlight__field input:focus-visible { outline: none; }
.spotlight__field input::placeholder { color: var(--label-3); }
.spotlight__list { padding: 0.35rem; border-top: 1px solid var(--hair); }
.spotlight__list:empty { display: none; }
.spotlight__hit { appearance: none; display: grid; grid-template-columns: 1.9rem minmax(0, 1fr) auto; align-items: center; gap: 0.65rem; width: 100%; padding: 0.3rem 0.6rem; border: 0; border-radius: 0.45rem; background: none; color: var(--label); font: inherit; font-size: 0.9rem; text-align: left; cursor: default; }
.spotlight__hit svg { width: 1.9rem; height: 1.9rem; }
.spotlight__hit small { color: var(--label-2); font-size: 0.75rem; }
.spotlight__hit.is-on { background: var(--accent); color: #fff; }
.spotlight__hit.is-on small { color: rgba(255, 255, 255, 0.8); }

/* --------------------------------------------------------------------------
   Dock
   -------------------------------------------------------------------------- */

.dock {
  position: fixed;
  left: 50%;
  bottom: 0.4rem;
  z-index: var(--z-dock);
  display: flex;
  align-items: flex-end;
  gap: 0.1rem;
  padding: 0.28rem 0.35rem 0.34rem;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  border-radius: 1.4rem;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.45) inset, 0 0 0 0.5px rgba(0, 0, 0, 0.14), 0 12px 36px rgba(0, 0, 0, 0.26);
  transform: translateX(-50%);
}
.dock__item {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--label);
  font: inherit;
  cursor: default;
  transform-origin: 50% 100%;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dock__item svg { width: 3.4rem; height: 3.4rem; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.dock__item:hover, .dock__item:focus-visible { transform: scale(1.3); outline: none; }
.dock__item:hover + .dock__item, .dock__item:has(+ .dock__item:hover) { transform: scale(1.12); }
.dock__item::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  padding: 0.2rem 0.6rem 0.24rem;
  background: rgba(240, 240, 240, 0.94);
  border-radius: 0.35rem;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 3px 12px rgba(0, 0, 0, 0.25);
  color: var(--label);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.12s;
}
.dock__item:hover::after, .dock__item:focus-visible::after { opacity: 1; }
.dock__item.is-open::before, .dock__item.is-busy::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.2rem;
  width: 0.24rem;
  height: 0.24rem;
  margin-left: -0.12rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
}
.dock__gap { align-self: stretch; width: 1px; margin: 0.4rem 0.35rem; background: rgba(255, 255, 255, 0.45); }

/* an app bounces while it "opens" */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  18%, 62% { transform: translateY(-1.15rem); }
  40%, 84% { transform: translateY(0); }
}
.dock__item.is-launching svg { animation: bounce 0.95s ease-in-out; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes win-in { from { transform: scale(0.96); } }

@media (prefers-reduced-motion: no-preference) {
  .win:not([hidden]) { animation: win-in 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
  .win.is-dragging, .win.is-zoomed { animation: none; }
  .banner { animation: banner-in 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .dock__item { transition: none; }
  .dock__item.is-launching svg, .alert.is-shaking { animation: none; }
}

@media (max-height: 44rem) {
  .placard { display: none; }
}

/* --------------------------------------------------------------------------
   Small screens: the desktop becomes a home screen. Nothing floats; windows
   open as full sheets with a Done button.
   -------------------------------------------------------------------------- */

@media (max-width: 56rem) {
  .mac { height: auto; overflow: visible; }

  .menubar__extra, .menubar__glyph--still, .menubar__clock--full { display: none; }
  .menubar__clock--short { display: block; }

  .desktop {
    position: static;
    display: grid;
    gap: 1.4rem;
    padding: calc(var(--menubar) + 1.1rem) 0.6rem 6rem;
  }
  .desktop__piece { position: static; width: 100%; transform: none; }
  .placard { display: block; position: static; width: auto; max-width: 20rem; margin-top: 1rem; }

  .icons { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: 0.5rem 0.1rem; pointer-events: auto; }
  .icon { position: static !important; width: 100%; touch-action: auto; }

  .widgets { position: static; width: auto; grid-template-columns: 1fr 1fr; align-items: start; }
  .sticky { position: static !important; width: auto; max-width: 22rem; }
  .sticky__bar { cursor: default; }

  .win, .win.is-zoomed {
    position: fixed;
    inset: var(--menubar) 0 0 0 !important;
    z-index: 58;
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 0;
  }
  .win__grip { display: none; }
  .win__bar, .win--settings .win__bar { height: 2.75rem; }
  .lights { left: 0.9rem; }
  .win__done {
    appearance: none;
    display: block;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    padding: 0.4rem 0.5rem;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-weight: 600;
    transform: translateY(-50%);
  }
  .win--player .win__done { color: #4aa8ff; }
  .win__body, .finder__main, .settings__main { padding-bottom: 5.5rem; }
  .finder, .settings { grid-template-columns: minmax(0, 1fr); }
  .finder__side, .finder__status:not(.finder__status--tools) { display: none; }
  .settings__side { display: flex; flex-wrap: wrap; gap: 0.3rem; border-right: 0; border-bottom: 1px solid var(--hair); }
  .settings__me { display: none; }
  .settings__item { width: auto; }
  .list__head, .fold > summary { grid-template-columns: minmax(0, 1fr) 5.5rem 3rem; }
  .chess__foot { flex-direction: column; align-items: stretch; }
  .chess__buttons { justify-content: flex-end; }

  .dock { z-index: 59; max-width: calc(100vw - 0.6rem); }
  .dock__item, .dock__item svg { width: 2.25rem; height: 2.25rem; }
  .dock__item:hover, .dock__item:focus-visible { transform: none; }
  .dock__item:hover + .dock__item, .dock__item:has(+ .dock__item:hover) { transform: none; }
  .dock__gap { margin-inline: 0.15rem; }
}
