/* =====================================================
   Lab page — page-specific styles
   Depends on: style.css (common base)
   ===================================================== */

/* ----- Lab page (textured minimal grid + colour switcher) ----- */

body.lab-page {
  --lab-base:    #0f6b43;
  --lab-mid:     #0f7347;
  --lab-dark:    #0b5f3b;
  --lab-grid:    rgba(255, 255, 255, 0.055);
  --lab-hi:      rgba(255, 255, 255, 0.075);
  --lab-shadow:  rgba(0, 0, 0, 0.11);
  --lab-noise-opacity: 0.038;
  min-height: 100vh;
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  transition: background-color 0.35s ease;
  background-color: var(--lab-base);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"),
    radial-gradient(circle at 18% 14%, var(--lab-hi),    transparent 32%),
    radial-gradient(circle at 82% 84%, var(--lab-shadow), transparent 44%),
    repeating-linear-gradient(0deg,  var(--lab-grid) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, var(--lab-grid) 0 1px, transparent 1px 36px),
    linear-gradient(160deg, var(--lab-dark) 0%, var(--lab-mid) 45%, var(--lab-dark) 100%);
  background-blend-mode: overlay, normal, normal, normal, normal, normal;
  background-size: 200px 200px, auto, auto, auto, auto, auto;
}

body.lab-page[data-mat-color="green"] {
  --lab-base:   #0f6b43;
  --lab-mid:    #0f7347;
  --lab-dark:   #0b5f3b;
  --lab-grid:   rgba(255, 255, 255, 0.055);
  --lab-hi:     rgba(255, 255, 255, 0.075);
  --lab-shadow: rgba(0, 0, 0, 0.11);
}

body.lab-page[data-mat-color="blue"] {
  --lab-base:   #1a3a6b;
  --lab-mid:    #1e4880;
  --lab-dark:   #142d55;
  --lab-grid:   rgba(255, 255, 255, 0.06);
  --lab-hi:     rgba(255, 255, 255, 0.07);
  --lab-shadow: rgba(0, 0, 0, 0.14);
}

body.lab-page[data-mat-color="black"] {
  --lab-base:   #141414;
  --lab-mid:    #1c1c1c;
  --lab-dark:   #0a0a0a;
  --lab-grid:   rgba(255, 255, 255, 0.045);
  --lab-hi:     rgba(255, 255, 255, 0.04);
  --lab-shadow: rgba(0, 0, 0, 0.4);
}

/* Full-viewport desktop canvas — icons are absolutely positioned inside */
body.lab-page .lab-main {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

/* ============================================================
   Lab Desktop Icon — component system
   ============================================================
   Shell:  .lab-desktop-icon > .lab-icon-figure
   Label:  .lab-icon-label  (below the icon)
   Icons:  any inline SVG or <img> inside .lab-icon-figure
           Icon sources live in lab/icons/
   Drag:   JS in lab/index.html writes left/top in px
============================================================ */

body.lab-page .lab-desktop-icon {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  z-index: 2;
  /* Force each icon into its own GPU compositor layer — prevents
     iOS Safari paint artifacts (trails) when icons are dragged */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

body.lab-page .lab-desktop-icon:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 6px;
  border-radius: var(--spacing-04);
}

/* Fixed-square icon container — all icon types align to this grid */
body.lab-page .lab-icon-figure {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
}

body.lab-page .lab-icon-figure > svg,
body.lab-page .lab-icon-figure > img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* macOS-style name label — wraps to 2 lines max */
body.lab-page .lab-icon-label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  max-width: 88px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  pointer-events: none;
}

/* Decorative props (e.g. AirPods) — larger than standard 78px icons */
body.lab-page .lab-desktop-icon--prop .lab-icon-figure {
  width: clamp(160px, 24vw, 220px);
  height: clamp(160px, 24vw, 220px);
}

/* ============================================================
   Learning video card widget
============================================================ */

body.lab-page .lab-learning-card {
  position: absolute;
  z-index: 3;
  gap: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(258px, calc(100vw - 32px));
  max-width: min(258px, calc(100vw - 32px));
  padding: 8px 4px 8px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.717);
  -webkit-backdrop-filter: blur(4px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: -12px 12px 32px rgba(0, 0, 0, 0.16);
  font-family: 'Urbanist', system-ui, sans-serif;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* Whole card is the drag surface */
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  transition: width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              max-width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

body.lab-page .lab-learning-card.is-grabbing,
body.lab-page .lab-learning-card.is-grabbing * {
  cursor: grabbing;
}

/* "Currently learning" chip */
body.lab-page .lab-learning-card__chip {
  display: flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.25rem;
  background-color: #ffeb3b;
  border-radius: 4px;
  overflow: hidden;
}

/* Minimise / maximise button — top-right corner, no chrome, blue icons */
body.lab-page .lab-learning-card__min-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5200ff;
  cursor: pointer;
}

body.lab-page .lab-learning-card__min-btn:hover {
  background: rgba(82, 0, 255, 0.1);
}

body.lab-page .lab-learning-card__min-btn:focus-visible {
  outline: 2px solid #5200ff;
  outline-offset: 2px;
}

body.lab-page .lab-learning-card__icon {
  display: block;
}

/* Maximised → show the "minimise" glyph; minimised → show the "restore" glyph */
body.lab-page .lab-learning-card__icon--max {
  display: none;
}

body.lab-page .lab-learning-card.is-minimized .lab-learning-card__icon--min {
  display: none;
}

body.lab-page .lab-learning-card.is-minimized .lab-learning-card__icon--max {
  display: block;
}

/* Collapsible body (player + info) — animates on minimise/maximise.
   grid-template-rows 1fr→0fr animates to the natural content height. */
body.lab-page .lab-learning-card__body {
  display: grid;
  grid-template-rows: 1fr;
  width: 100%;
  opacity: 1;
  transition: grid-template-rows 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.24s ease;
}

body.lab-page .lab-learning-card__body-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

/* Minimised keeps the same width as maximised — only the body collapses */
body.lab-page .lab-learning-card.is-minimized {
  gap: 0;
}

body.lab-page .lab-learning-card.is-minimized .lab-learning-card__body {
  grid-template-rows: 0fr;
  opacity: 0;
}

/* Suppress the open/close animation during initial page layout */
.lab-no-anim body.lab-page .lab-learning-card,
.lab-no-anim body.lab-page .lab-learning-card__body {
  transition: none !important;
}

body.lab-page .lab-learning-card__marquee {
  position: relative;
  width: 120px;
  max-width: 100%;
  overflow: hidden;
}

body.lab-page .lab-learning-card__marquee-track {
  position: relative;
  display: flex;
  width: fit-content;
  animation: lab-learning-marquee 14s linear infinite;
}

body.lab-page .lab-learning-card__marquee-text {
  flex-shrink: 0;
  padding-right: 1.5rem;
  font-family: 'Urbanist', system-ui, sans-serif;
  font-size: clamp(13px, 3.2vw, 14px);
  font-weight: 900;
  line-height: 1.29;
  color: #5200ff;
  -webkit-text-stroke: 1px #ffffff;
  paint-order: stroke fill;
  white-space: nowrap;
}

body.lab-page .lab-learning-card__marquee-text[aria-hidden="true"] {
  position: absolute;
  left: 100%;
  top: 0;
}

@keyframes lab-learning-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 1.5rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.lab-page .lab-learning-card__marquee-track {
    animation: none;
    width: 100%;
    justify-content: flex-start;
  }

  body.lab-page .lab-learning-card__marquee-text[aria-hidden="true"] {
    display: none;
  }

  body.lab-page .lab-learning-card,
  body.lab-page .lab-learning-card__body {
    transition: none;
  }
}

body.lab-page .lab-learning-card__player {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 246 / 138;
  border-radius: 8px;
  overflow: hidden;
  background: #3e3e3e;
  flex-shrink: 0;
}

body.lab-page .lab-learning-card__thumb-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #3e3e3e;
  cursor: pointer;
}

body.lab-page .lab-learning-card__thumb-btn:focus-visible {
  outline: 2px solid rgba(255, 0, 0, 0.85);
  outline-offset: 2px;
}

body.lab-page .lab-learning-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

body.lab-page .lab-learning-card__play {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 18vw, 68px);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

body.lab-page .lab-learning-card__play svg {
  width: 100%;
  height: auto;
  display: block;
}

body.lab-page .lab-learning-card__player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

body.lab-page .lab-learning-card__player.is-playing iframe {
  position: absolute;
  inset: 0;
}

body.lab-page .lab-learning-card__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  gap: 4px;
}

body.lab-page .lab-learning-card__title {
  margin: 0;
  font-size: clamp(11px, 2.8vw, 12px);
  font-weight: 700;
  line-height: 1.33;
  color: #000;
}

body.lab-page .lab-learning-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: clamp(9px, 2.4vw, 10px);
  font-weight: 600;
  line-height: 1.2;
  color: var(black-500);
}

/* ============================================================
   macOS Window system
   .mac-window
     ├── .mac-window-titlebar
     │     ├── .mac-window-controls   (.mac-btn × 3)
     │     ├── .mac-window-urlbar     (browser variant)
     │     ├── .mac-window-title      (finder / preview variant)
     │     └── .mac-titlebar-right    (preview nav)
     └── .mac-window-body
           ├── .mac-window-iframe     (browser)
           ├── .mac-finder-grid       (finder)
           └── .mac-preview-canvas    (preview)
           + .mac-preview-toolbar     (preview — bottom bar)

   ── Animation config (edit these to change window feel) ──
   --win-open-dur     open animation duration
   --win-open-ease    open easing (spring-ish by default)
   --win-close-dur    close / minimize duration
   --win-close-ease   close easing
   --win-size-dur     maximize / restore transition duration
   --win-size-ease    maximize easing
============================================================ */

:root {
  --win-open-dur:   220ms;
  --win-open-ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --win-close-dur:  150ms;
  --win-close-ease: cubic-bezier(0.4, 0, 1, 1);
  --win-size-dur:   260ms;
  --win-size-ease:  cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes mac-win-open {
  from { opacity: 0; scale: 0.94; }
  to   { opacity: 1; scale: 1; }
}
@keyframes mac-win-close {
  from { opacity: 1; scale: 1; }
  to   { opacity: 0; scale: 0.94; }
}
@keyframes mac-win-minimize {
  from { opacity: 1; scale: 1;   translate: 0 0; }
  to   { opacity: 0; scale: 0.4; translate: 0 50px; }
}

.mac-window {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 88vw);
  height: min(640px, 78vh);
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.65),
    0 2px 6px rgba(0, 0, 0, 0.28),
    0 22px 70px rgba(0, 0, 0, 0.55);
  z-index: 60;
  will-change: scale, opacity;
}

.mac-window[hidden] { display: none; }

/* ── Animation states ───────────────────────────────────── */

.mac-window.is-opening {
  animation: mac-win-open var(--win-open-dur) var(--win-open-ease) both;
}
.mac-window.is-closing,
.mac-window.is-minimizing {
  pointer-events: none;
}
.mac-window.is-closing {
  animation: mac-win-close var(--win-close-dur) var(--win-close-ease) both;
}
.mac-window.is-minimizing {
  animation: mac-win-minimize var(--win-close-dur) var(--win-close-ease) both;
}

/* Smooth size transition while maximizing / restoring */
.mac-window.is-resizing {
  will-change: left, top, width, height, border-radius;
  transition:
    left          var(--win-size-dur) var(--win-size-ease),
    top           var(--win-size-dur) var(--win-size-ease),
    width         var(--win-size-dur) var(--win-size-ease),
    height        var(--win-size-dur) var(--win-size-ease),
    border-radius var(--win-size-dur) var(--win-size-ease);
}

.mac-window.is-maximized {
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
}

/* ── Title bar — dark frosted glass ────────────────────── */

.mac-window-titlebar {
  position: relative;
  flex-shrink: 0;
  height: 44px;
  min-height: 44px;
  background: rgba(24, 24, 26, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden; /* prevents pill from busting out */
}

/* ── Traffic lights ─────────────────────────────────────── */

.mac-window-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.mac-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: filter 0.12s;
}

.mac-btn--close { background: #ff5f57; }
.mac-btn--max   { background: #28c840; }

.mac-window-titlebar:hover .mac-btn--close::after {
  content: '×';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
  color: rgba(80, 0, 0, 0.75);
}

/* ── URL bar (browser windows) ──────────────────────────── */

.mac-window-urlbar {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.mac-nav-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
}

.mac-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.mac-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.mac-urlbar-pill {
  flex: 1 1 0;
  min-width: 0;
  height: 28px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  cursor: default;
  overflow: hidden;
}

.mac-urlbar-lock {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.38);
}

.mac-urlbar-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Finder / Preview title — three-column flex centering ── */

/* Both side slots grow equally so the centre title is always exact-centre */
.mac-window--finder .mac-window-controls,
.mac-window--preview .mac-window-controls {
  flex: 1;
  justify-content: flex-start;
}

.mac-window-title {
  flex: 0 1 auto;   /* shrinks before the side columns do */
  min-width: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Window body ────────────────────────────────────────── */

.mac-window-body {
  flex: 1;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

.mac-window-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Finder variant ─────────────────────────────────────── */

.mac-window--finder .mac-window-body {
  background: rgba(22, 22, 24, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
}

.mac-finder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 10px;
}

.mac-finder-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  transition: background 0.14s;
}

.mac-finder-thumb:hover  { background: rgba(255, 255, 255, 0.08); }
.mac-finder-thumb:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.mac-finder-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 100%;
}

.mac-finder-thumb--landscape img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ── Free wallpapers — single row, shared thumb height ─────── */

#win-free-wallpapers {
  width: min(620px, 92vw);
  height: min(340px, 72vh);
}

#win-free-wallpapers .mac-finder-grid {
  display: flex;
  flex-wrap: wrap;                 /* wrap into rows — never clip/overflow */
  align-items: flex-start;
  align-content: flex-start;
  gap: 16px 14px;
}

/* Uniform tiles so long filenames can't stretch a cell wider than its
   thumbnail (the bug). Each wallpaper is shown in full via contain. */
#win-free-wallpapers .mac-finder-thumb {
  flex: 0 0 auto;
  width: 128px;
  max-width: 128px;
  padding: 4px;
}

#win-free-wallpapers .mac-finder-thumb img {
  width: 100%;
  max-width: 100%;
  height: 78px;
  aspect-ratio: auto;
  object-fit: contain;            /* show the whole wallpaper, any orientation */
  object-position: center;
  background: rgba(0, 0, 0, 0.32);
}

#win-free-wallpapers .mac-finder-thumb span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
}

.mac-finder-thumb span {
  font-size: 10px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  word-break: break-word;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Finder list view (Code credits, Visual Explorations) ── */

#win-credits,
#win-visual {
  width: min(640px, 88vw);
  height: min(420px, 70vh);
}

#win-credits .mac-window-body,
#win-visual .mac-window-body {
  padding: 0;
  overflow-y: auto;
}

.mac-finder-list {
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

/* Column header row */
.mac-finder-list__head {
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 16px;
  background: rgba(28, 28, 30, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.42);
}

/* Each row is a clickable link (<a>) or folder (<button>) */
.mac-finder-list__row {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 9px 16px;
  text-align: left;
  text-decoration: none;
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.12s ease;
}

.mac-finder-list__row--folder { cursor: pointer; }

.mac-finder-list__row:nth-child(even) {
  background: rgba(255, 255, 255, 0.022);
}

.mac-finder-list__row:hover {
  background: rgba(10, 110, 230, 0.32);
}

.mac-finder-list__row:focus-visible {
  outline: 2px solid rgba(90, 160, 255, 0.8);
  outline-offset: -2px;
}

/* Columns */
.mac-finder-list__col {
  display: flex;
  align-items: center;
  min-width: 0;
}

.mac-finder-list__col--name {
  flex: 0 0 44%;
  gap: 8px;
  padding-right: 12px;
}

.mac-finder-list__col--url {
  flex: 1 1 56%;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-finder-list__row:hover .mac-finder-list__col--url {
  color: rgba(255, 255, 255, 0.78);
}

.mac-finder-list__icon {
  flex-shrink: 0;
  color: #5aa0ff;
}

.mac-finder-list__row:hover .mac-finder-list__icon {
  color: #ffffff;
}

.mac-finder-list__name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Folder rows (Visual Explorations) */
.mac-finder-list__folder-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.mac-finder-list__col--kind {
  flex: 1 1 56%;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.mac-finder-list__row:hover .mac-finder-list__col--kind {
  color: rgba(255, 255, 255, 0.78);
}

/* Empty-state (placeholder folders) */
.mac-finder-grid--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.mac-finder-empty {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Mixed-media thumbnail grid (Visual explorations) ───── */
.mac-finder-grid--media {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 16px;
}

.mac-finder-thumb--media img,
.mac-finder-thumb--media video {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  max-width: 100%;
}

.mac-finder-thumb--media span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 520px) {
  .mac-finder-list__col--name { flex-basis: 50%; }
  .mac-finder-list__col--url,
  .mac-finder-list__col--kind { font-size: 11px; }
}

/* ── Titlebar right slot (preview nav, etc.) ────────────── */

.mac-titlebar-right {
  flex: 1;   /* matches .mac-window-controls flex:1 on finder/preview windows */
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: flex-end;
}

/* ── Preview variant ────────────────────────────────────── */

.mac-window--preview {
  width: min(520px, 88vw);
  height: min(820px, 88vh);
}

.mac-window--preview .mac-window-body {
  background: rgba(20, 20, 22, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative; /* img uses absolute positioning inside */
}

/*
 * Absolutely fill the body minus 20px inset on each side.
 * This sidesteps the "max-height:100% on flex child" ambiguity
 * that can prevent the image from rendering in some browsers.
 */
.mac-preview-img {
  display: block;
  position: absolute;
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  object-fit: contain;
  border-radius: 3px;
}

/* Bottom toolbar — same frosted glass as titlebar */
.mac-preview-toolbar[hidden] { display: none; }

/* Image slide transition when navigating prev / next */
@keyframes img-enter-right { from { transform: translateX(36px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes img-enter-left  { from { transform: translateX(-36px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.mac-preview-img.img-slide-next { animation: img-enter-right 0.22s ease both; }
.mac-preview-img.img-slide-prev { animation: img-enter-left  0.22s ease both; }

.mac-preview-toolbar {
  flex-shrink: 0;
  height: 48px;
  min-height: 48px;
  background: rgba(24, 24, 26, 0.78);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}

.mac-preview-counter {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.mac-preview-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  padding: 6px 10px;
  min-height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.mac-preview-dl:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}


/* Image viewer is now a .mac-window--preview (see above) */

/* ── "Open in new tab" floating button (browser windows) ─── */

.mac-open-tab-btn {
  flex-shrink: 0;
  height: 28px;
  margin-left: 8px;
  padding: 0 12px;
  border: 1px solid rgba(100, 160, 255, 0.50);
  border-radius: 8px;
  background: rgba(40, 100, 240, 0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.mac-open-tab-btn:hover {
  background: rgba(30, 80, 200, 0.28);
  border-color: rgba(80, 140, 255, 0.30);
  color: rgba(160, 200, 255, 0.90);
}

/* --- Close-all-windows button --- */

#close-all-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 500;
  background: rgba(22, 22, 24, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

#close-all-btn:hover {
  background: rgba(50, 50, 54, 0.92);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

#close-all-btn[hidden] { display: none; }

/* --- colour switcher dock --- */

.lab-color-switcher {
  position: fixed;
  bottom: var(--spacing-24);
  right: var(--spacing-24);
  display: flex;
  gap: 6px;
  z-index: 200;
}

.lab-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.40);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
}

.lab-swatch[data-color="green"]  { background: #0f7347; }
.lab-swatch[data-color="blue"]   { background: #1e4880; }
.lab-swatch[data-color="black"]  { background: #141414; }

.lab-swatch[aria-pressed="true"] {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.32), 0 1px 6px rgba(0, 0, 0, 0.28);
}

.lab-swatch:hover {
  opacity: 0.85;
}

/* ============================================================
   Responsive overrides
============================================================ */

@media (max-width: 520px) {
  body.lab-page {
    width: 100%;
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* When the terminal is open, lock page scroll so only the terminal's
     own output scrolls (prevents glitchy double-scroll on mobile).
     NB: no touch-action:none here — it would propagate and block the
     terminal iframe's own touch scrolling. */
  body.lab-page.lab-terminal-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  /* ── Terminal window — half-height on mobile, pinned to the top so the
     on-screen keyboard never covers it ── */
  #win-terminal.mac-window {
    height: 50dvh !important;
    top: 42px !important;
    bottom: auto !important;
  }

  /* ── Icon canvas — scrollable on mobile; items stay absolutely
     positioned (curated by layoutMobileItems) so they remain draggable ── */
  body.lab-page .lab-main {
    width: 100%;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100dvh;
  }

  body.lab-page .lab-icon-figure {
    width: 70px;
    height: 70px;
  }

  body.lab-page .lab-icon-label {
    font-size: 11px;
    max-width: 80px;
  }

  /* ── macOS windows — fixed inset on mobile ── */
  .mac-window {
    width: calc(100vw - 40px) !important;   /* 20px gap each side */
    height: calc(100dvh - 84px) !important; /* 42px gap top + bottom */
    top: 42px !important;
    left: 20px !important;
    bottom: auto !important;
    transform: none !important;
    border-radius: 14px !important;
  }

  #win-free-wallpapers .mac-finder-grid {
    justify-content: center;
  }

  #win-free-wallpapers .mac-finder-thumb {
    width: 104px;
    max-width: 104px;
  }

  #win-free-wallpapers .mac-finder-thumb img {
    height: 64px;
  }

  /* Hide maximise — window already fills the allowed inset */
  .mac-btn--max { display: none; }

  .mac-window-titlebar {
    height: 48px;
    min-height: 48px;
  }

  /* URL bar stays in one row — pill truncates text */
  .mac-window-urlbar {
    flex-wrap: nowrap;
    gap: 2px;
  }

  .mac-urlbar-pill {
    flex: 1 1 0;
    min-width: 0;
  }

  .mac-window--preview {
    width: calc(100vw - 40px) !important;
    height: calc(100dvh - 84px) !important;
  }

  .mac-preview-dl span { display: none; } /* icon only on mobile */
  .mac-preview-dl {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 8px;
  }

  .lab-color-switcher {
    bottom: var(--spacing-16);
    right: var(--spacing-16);
    gap: 8px;
  }

  /* ── Learning video card — proportionally smaller on mobile ── */
  body.lab-page .lab-learning-card {
    width: min(190px, calc(100vw - 32px));
    max-width: min(190px, calc(100vw - 32px));
  }

  body.lab-page .lab-learning-card__marquee-text {
    font-size: 11px;
  }

  body.lab-page .lab-learning-card__title {
    font-size: 10px;
  }

  body.lab-page .lab-learning-card__meta {
    font-size: 8px;
  }

  body.lab-page .lab-desktop-icon--prop .lab-icon-figure {
    width: clamp(130px, 38vw, 170px);
    height: clamp(130px, 38vw, 170px);
  }

  body.lab-page .lab-power-btn {
    --pb-size: 40px;
  }
}

/* ============================================================
   Top lamp — fixed-height stage, width = viewport only
   ============================================================ */

body.lab-page .lab-lamp {
  /* ── Lamp controls (all in px — width is the only viewport-relative part) ──
     --lab-lamp-lift     UP/DOWN for the glow (main knob)
                         more negative = glow sits higher (e.g. -60px)
                         more positive = glow sits lower  (e.g.  20px)
     --lab-lamp-glow-h   height of the outer wash
     --lab-lamp-glow-sm  height of the inner bright core
     --lab-lamp-blur     how far the outer glow bleeds (visual spread)
     --lab-lamp-h        stage box height (usually leave as-is) */
  --lab-lamp-h: 300px;
  --lab-lamp-glow-h: 190px;
  --lab-lamp-glow-sm: 130px;
  --lab-lamp-lift: -100px;
  --lab-lamp-blur: 72px;
  --lab-lamp-blur-sm: 22px;
  /* colors */
  --lab-lamp-line: #ffd900;
  --lab-lamp-glow: #fae58a;
  --lab-lamp-glow-bright: #ff0000;

  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--lab-lamp-h);
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

body.lab-page[data-mat-color="green"] .lab-lamp {
  --lab-lamp-line: #ffffff;
  --lab-lamp-glow: #ffbb00;
  --lab-lamp-glow-bright: #ffffff;
}

body.lab-page[data-mat-color="black"] .lab-lamp {
  --lab-lamp-line: #b8dcff;
  --lab-lamp-glow: #7ec8ff;
  --lab-lamp-glow-bright: #d4ecff;
}

body.lab-page[data-mat-color="blue"] .lab-lamp {
  --lab-lamp-line: #ffffff;
  --lab-lamp-glow: #dce8ff;
  --lab-lamp-glow-bright: #ffffff;
}

body.lab-page .lab-lamp__stage {
  position: relative;
  width: 100%;
  height: 100%;
}

body.lab-page .lab-lamp__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--lab-lamp-line);
  box-shadow: 0 0 8px 1px var(--lab-lamp-line);
  transform-origin: center;
  animation: lab-lamp-line-grow 1s ease-out forwards;
}

body.lab-page .lab-lamp__glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: var(--lab-lamp-glow-h);
  background: var(--lab-lamp-glow);
  transform: translate(-50%, var(--lab-lamp-lift));
  filter: blur(var(--lab-lamp-blur));
  opacity: 0.8;
  mix-blend-mode: plus-lighter;
  z-index: 3;
}

body.lab-page .lab-lamp__glow--small {
  height: var(--lab-lamp-glow-sm);
  background: var(--lab-lamp-glow-bright);
  filter: blur(var(--lab-lamp-blur-sm));
  opacity: 1;
  z-index: 2;
  transform-origin: center top;
  animation: lab-lamp-glow-grow 1s ease-out forwards;
}

body.lab-page .lab-lamp__line,
body.lab-page .lab-lamp__glow {
  transition: opacity 0.35s ease;
}

body.lab-page .lab-lamp.is-off .lab-lamp__line,
body.lab-page .lab-lamp.is-off .lab-lamp__glow {
  opacity: 0 !important;
}

@keyframes lab-lamp-line-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes lab-lamp-glow-grow {
  from { transform: translate(-50%, var(--lab-lamp-lift)) scaleX(0.3); opacity: 0; }
  to   { transform: translate(-50%, var(--lab-lamp-lift)) scaleX(1);   opacity: 0.7; }
}

/* ============================================================
   Lab intro — staggered drop (synced to lamp 1s ease-out)
   ============================================================ */

@keyframes lab-drop-in {
  from {
    opacity: 0;
    filter: blur(var(--lab-drop-blur, 10px));
    transform: translateY(var(--lab-drop-y, -10px));
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes lab-drop-in-icon {
  from {
    opacity: 0;
    filter: blur(var(--lab-drop-blur, 10px));
    transform: translateY(var(--lab-drop-y, -10px)) translateZ(0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) translateZ(0);
  }
}

/* Hidden until intro starts (covers static + manifest icons) */
body.lab-page:not(.lab-intro-done) #lab-power-btn,
body.lab-page:not(.lab-intro-done) #lab-main .lab-desktop-icon,
body.lab-page:not(.lab-intro-done) #lab-main [data-widget-id],
body.lab-page:not(.lab-intro-done) .lab-color-switcher {
  opacity: 0;
  filter: blur(var(--lab-drop-blur, 10px));
  transform: translateY(var(--lab-drop-y, -10px));
  pointer-events: none;
}

body.lab-page:not(.lab-intro-done) #lab-main .lab-desktop-icon {
  transform: translateY(var(--lab-drop-y, -10px)) translateZ(0);
}

body.lab-page.lab-intro-done .lab-intro-target {
  animation: lab-drop-in var(--lab-drop-dur, 0.38s) ease-out both;
  animation-delay: var(--lab-drop-delay, 0ms);
  pointer-events: auto;
}

body.lab-page.lab-intro-done .lab-intro-target.lab-desktop-icon {
  animation-name: lab-drop-in-icon;
}

@media (prefers-reduced-motion: reduce) {
  body.lab-page:not(.lab-intro-done) #lab-power-btn,
  body.lab-page:not(.lab-intro-done) #lab-main .lab-desktop-icon,
  body.lab-page:not(.lab-intro-done) #lab-main [data-widget-id],
  body.lab-page:not(.lab-intro-done) .lab-color-switcher {
    opacity: 1;
    filter: none;
    transform: none;
    pointer-events: auto;
  }

  body.lab-page.lab-intro-done .lab-intro-target {
    animation: none;
  }
}

@media (max-width: 520px) {
  body.lab-page .lab-lamp {
    --lab-lamp-h: 260px;
    --lab-lamp-glow-h: 165px;
    --lab-lamp-glow-sm: 112px;
    --lab-lamp-lift: -90px;
    --lab-lamp-blur: 58px;
    --lab-lamp-blur-sm: 18px;
  }
}

/* ============================================================
   Lamp power switch — red push button (top-left)
   ============================================================ */

body.lab-page .lab-power-btn {
  --pb-size: 46px;
  position: absolute;
  z-index: 5;
  width: var(--pb-size);
  height: var(--pb-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background-image: linear-gradient(45deg, #ffffff 0%, #1b2845 74%);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.lab-page .lab-power-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

body.lab-page .lab-power-btn__core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  border-radius: 50%;
  background-image: linear-gradient(90deg, #ff2b2b, #b00000);
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8))
    drop-shadow(0 -2px 2px #ffadad)
    drop-shadow(0 0 4px #655555);
  transition: filter 0.25s ease, background-image 0.25s ease;
  display: grid;
  place-items: center;
}

body.lab-page .lab-power-btn__inner {
  width: 92%;
  height: 92%;
  border-radius: 50%;
  background-image: linear-gradient(45deg, #ff2b2b, #b00000);
  transition: width 0.25s ease, height 0.25s ease,
              background-image 0.25s ease, box-shadow 0.25s ease;
}

body.lab-page .lab-power-btn:hover .lab-power-btn__core {
  filter: drop-shadow(0 0 6px #ff2b2b);
}

body.lab-page .lab-power-btn:hover .lab-power-btn__inner {
  width: 96%;
  height: 96%;
}

/* ON state — light is on: darker red, pressed-in, warm active glow */
body.lab-page .lab-power-btn.is-on .lab-power-btn__core {
  background-image: linear-gradient(90deg, #7a0000, #240000);
  filter: drop-shadow(0 0 7px rgba(255, 184, 0, 0.85));
}

body.lab-page .lab-power-btn.is-on .lab-power-btn__inner {
  width: 86%;
  height: 86%;
  background-image: linear-gradient(45deg, #7a0000, #240000);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65);
}

body.lab-page .lab-power-btn.is-on:hover .lab-power-btn__inner {
  width: 90%;
  height: 90%;
}

/* ── Terminal window — centered title, iframe body ── */
#win-terminal .mac-window-body {
  padding: 0;
  overflow: hidden;
}

/* ============================================================
   Sleep commits — GitHub-style contribution graph widget
   Grid technique: https://bitsofco.de/github-contribution-graph-css-grid/
============================================================ */

body.lab-page .lab-commits {
  --square-size: clamp(3px, 1vw, 4.5px);
  --square-gap: 1px;
  --week-width: calc(var(--square-size) + var(--square-gap));
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: fit-content;
  max-width: calc(100vw - 32px);
  font-family: 'Urbanist', system-ui, sans-serif;
  color: #fff;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Label inside commits widget — single line, unconstrained width */
body.lab-page .lab-commits .lab-icon-label {
  max-width: none;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
  white-space: nowrap;
  text-align: left;
}

body.lab-page .lab-commits.is-grabbing,
body.lab-page .lab-commits.is-grabbing * {
  cursor: grabbing;
}

/* Whole-year graph: every track is fr-based so it always fits its
   container — no horizontal scroll at any width. */
body.lab-page .lab-commits .graph {
  display: inline-grid;
  grid-template-areas:
    "empty months"
    "days squares";
  grid-template-columns: auto auto;
  gap: 4px 5px;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  margin: 0;
  border-radius: 8px;
  background: rgba(22, 22, 24, 0.92);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

body.lab-page .lab-commits ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Month labels spread proportionally to each month's week count */
body.lab-page .lab-commits .months {
  grid-area: months;
  display: grid;
  grid-template-columns:
    calc(var(--week-width) * 4)  /* Jan */
    calc(var(--week-width) * 4)  /* Feb */
    calc(var(--week-width) * 4)  /* Mar */
    calc(var(--week-width) * 5)  /* Apr */
    calc(var(--week-width) * 4)  /* May */
    calc(var(--week-width) * 4)  /* Jun */
    calc(var(--week-width) * 5)  /* Jul */
    calc(var(--week-width) * 4)  /* Aug */
    calc(var(--week-width) * 4)  /* Sep */
    calc(var(--week-width) * 5)  /* Oct */
    calc(var(--week-width) * 4)  /* Nov */
    calc(var(--week-width) * 5); /* Dec */
  font-size: clamp(6px, 1vw, 8px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.6);
}

body.lab-page .lab-commits .months li {
  min-width: 0;
  white-space: nowrap;
}

body.lab-page .lab-commits .days {
  grid-area: days;
  display: grid;
  grid-template-rows: repeat(7, var(--square-size));
  gap: var(--square-gap);
  font-size: clamp(6px, 1vw, 8px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.6);
}

body.lab-page .lab-commits .days li {
  display: flex;
  align-items: center;
  line-height: 1;
}

body.lab-page .lab-commits .days li:nth-child(odd) {
  visibility: hidden;
}

body.lab-page .lab-commits .squares {
  grid-area: squares;
  display: grid;
  grid-template-rows: repeat(7, var(--square-size));
  grid-auto-flow: column;
  grid-auto-columns: var(--square-size);
  gap: var(--square-gap);
}

body.lab-page .lab-commits .squares li {
  border-radius: 1px;
  background-color: rgba(255, 255, 255, 0.08);
}

body.lab-page .lab-commits .squares li[data-level="1"] { background-color: #3b1f6b; }
body.lab-page .lab-commits .squares li[data-level="2"] { background-color: #7c3aed; }
body.lab-page .lab-commits .squares li[data-level="3"] { background-color: #a779f0; }
