/* =========================================================
   Aqua desktop, circa Tiger / Leopard (2005-2009)
   Shell colours borrow from the candy iMac line.
   ========================================================= */

:root {
  --ui: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
  --doc: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: Monaco, Menlo, "Andale Mono", "Courier New", monospace;
  --menu-h: 22px;
}

/* Shell colours: hi / base / lo / edge / selection / wallpaper x3 */
[data-shell="aqua"], :root {
  --a-hi: #cfe7ff; --a: #3d8ee8; --a-lo: #1d63c6; --a-edge: #1b4f9c; --sel: #3875d7;
  --w1: #8ec9ff; --w2: #2a74d4; --w3: #08245e;
}
[data-shell="bondi"] {
  --a-hi: #c9f3f7; --a: #19a6c0; --a-lo: #0b7f99; --a-edge: #075e71; --sel: #1593ad;
  --w1: #86e3ec; --w2: #0b93ad; --w3: #03384a;
}
[data-shell="tangerine"] {
  --a-hi: #ffe2c2; --a: #ff8a1f; --a-lo: #e0600a; --a-edge: #a84300; --sel: #ea7412;
  --w1: #ffc684; --w2: #f2700f; --w3: #5e1f00;
}
[data-shell="grape"] {
  --a-hi: #ecdcff; --a: #8f4fd8; --a-lo: #6a2bb5; --a-edge: #4c1d86; --sel: #7d40c8;
  --w1: #c9a0f5; --w2: #6f2fc0; --w3: #230848;
}
[data-shell="lime"] {
  --a-hi: #e7ffc4; --a: #6cc61e; --a-lo: #4a9a0c; --a-edge: #356f06; --sel: #4f9e12;
  --w1: #bdf07e; --w2: #4ea312; --w3: #133502;
}
[data-shell="strawberry"] {
  --a-hi: #ffd6de; --a: #ef3d5f; --a-lo: #c81d3f; --a-edge: #8f0f2a; --sel: #d42a4d;
  --w1: #ff9cae; --w2: #d8244a; --w3: #460412;
}
[data-shell="graphite"] {
  --a-hi: #eef2f6; --a: #8e9aa8; --a-lo: #66717e; --a-edge: #4a525c; --sel: #6d7988;
  --w1: #c3ccd5; --w2: #6c7784; --w3: #1d2126;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 13px/1.4 var(--ui);
  color: #1a1a1a;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  background: var(--w3);
}
button { font: inherit; color: inherit; }
a { color: var(--a-lo); }
::selection { background: color-mix(in srgb, var(--a) 35%, white); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Wallpaper ---------- */
.wallpaper {
  position: fixed; inset: 0; overflow: hidden; z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 15%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(ellipse 110% 70% at 15% 110%, var(--w3), transparent 70%),
    linear-gradient(160deg, var(--w1) 0%, var(--w2) 48%, var(--w3) 100%);
  transition: background .4s;
}
.wallpaper::before, .wallpaper::after {
  content: ""; position: absolute; left: -20%; width: 140%; border-radius: 50%;
  filter: blur(18px);
}
.wallpaper::before {
  top: 34%; height: 30%;
  background: radial-gradient(ellipse at 40% 50%, rgba(255,255,255,.32), transparent 62%);
  transform: rotate(-14deg);
}
.wallpaper::after {
  top: 52%; height: 18%;
  background: radial-gradient(ellipse at 60% 50%, color-mix(in srgb, var(--a-hi) 45%, transparent), transparent 65%);
  transform: rotate(-8deg);
}

/* ---------- Menu bar ---------- */
.menubar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--menu-h); z-index: 10000;
  display: flex; align-items: center; justify-content: space-between; padding: 0 0 0 8px;
  background: linear-gradient(rgba(255,255,255,.93), rgba(228,228,228,.9));
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(0,0,0,.4);
  box-shadow: 0 1px 5px rgba(0,0,0,.3);
  font-size: 14px; user-select: none; -webkit-user-select: none;
}
.menus { display: flex; height: 100%; }
.menu { position: relative; height: 100%; }
.menu > button {
  height: 100%; padding: 0 10px; border: 0; background: none; color: #111; cursor: default;
}
.menu > button.app { font-weight: bold; }
.menu.logo > button { padding: 0 12px; }
.menu.logo svg { width: 16px; height: 16px; vertical-align: -3px; }
.menu.open > button, .dropdown button:hover, .dropdown a:hover, .dropdown button:focus-visible {
  background: linear-gradient(color-mix(in srgb, var(--sel) 70%, white), var(--sel));
  color: #fff; outline: none;
}
.dropdown {
  display: none; position: absolute; top: var(--menu-h); left: 0; min-width: 210px; padding: 4px 0;
  background: rgba(250,250,250,.96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,.25); border-top: 0; border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.menu.open .dropdown { display: block; }
.dropdown button, .dropdown a {
  display: block; width: 100%; padding: 2px 22px; border: 0; background: none;
  color: #111; text-align: left; text-decoration: none; cursor: default; font-size: 14px;
}
.dropdown hr { border: 0; border-top: 1px solid #d8d8d8; margin: 5px 1px; }
.menu-right { display: flex; align-items: center; height: 100%; gap: 12px; }
#clock { font-size: 14px; color: #111; }
.spot-btn {
  height: 100%; width: 30px; border: 0; padding: 0; cursor: default; color: #fff;
  background: linear-gradient(color-mix(in srgb, var(--a) 55%, white), var(--a) 55%, var(--a-lo));
  box-shadow: inset 1px 0 rgba(0,0,0,.25);
}
.spot-btn svg { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- Spotlight ---------- */
.spotlight {
  position: fixed; top: var(--menu-h); right: 0; width: 360px; z-index: 10001;
  background: rgba(246,246,246,.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,.3); border-top: 0; border-radius: 0 0 0 7px;
  box-shadow: 0 10px 28px rgba(0,0,0,.4); overflow: hidden;
}
.spot-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: linear-gradient(color-mix(in srgb, var(--a) 55%, white), var(--a) 55%, var(--a-lo));
  color: #fff; text-shadow: 0 -1px rgba(0,0,0,.3);
}
.spot-head input { flex: 1; }
.spot-group { display: grid; grid-template-columns: 96px 1fr; border-top: 1px solid #ddd; }
.spot-cat { padding: 5px 8px; text-align: right; color: #777; font-size: 11px; background: #ececec; }
.spot-group ul { list-style: none; margin: 0; padding: 2px 0; }
.spot-group button {
  display: block; width: 100%; text-align: left; padding: 3px 10px; border: 0; background: none;
  cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spot-group button:hover, .spot-group button:focus-visible {
  background: linear-gradient(color-mix(in srgb, var(--sel) 70%, white), var(--sel)); color: #fff; outline: none;
}
.spot-none { padding: 10px; color: #777; border-top: 1px solid #ddd; }

/* ---------- Desktop + icons ---------- */
.desktop { position: fixed; inset: var(--menu-h) 0 0 0; z-index: 1; }
.desk-icons {
  position: absolute; top: 14px; right: 14px; bottom: 100px;
  display: flex; flex-direction: column; flex-wrap: wrap-reverse; align-content: flex-start; gap: 10px;
}
.desk-icon {
  width: 90px; padding: 4px 2px; border: 0; background: none; cursor: default; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #fff; font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 2px rgba(0,0,0,.6);
  user-select: none; -webkit-user-select: none;
}
.desk-icon svg { width: 56px; height: 56px; padding: 2px; border-radius: 5px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.desk-icon span { padding: 0 6px; border-radius: 8px; line-height: 16px; }
.desk-icon.selected svg { background: rgba(0,0,0,.28); box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.desk-icon.selected span { background: var(--sel); text-shadow: none; }
.desk-icon:focus-visible { outline: none; }
.desk-icon:focus-visible span { outline: 1px dotted #fff; }

/* ---------- Windows ---------- */
.window {
  position: absolute; display: flex; flex-direction: column;
  min-width: 260px; min-height: 140px;
  background: #e8e8e8; border-radius: 6px 6px 5px 5px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.42), 0 18px 44px rgba(0,0,0,.55);
}
.window[hidden] { display: none; }
.window.inactive { box-shadow: 0 0 0 1px rgba(0,0,0,.28), 0 8px 22px rgba(0,0,0,.35); }
.window.opening { animation: win-open .2s cubic-bezier(.2,.8,.3,1); }
.window.closing { animation: win-close .16s ease-in forwards; pointer-events: none; }
.window.animating { transition: left .22s, top .22s, width .22s, height .22s; }
@keyframes win-open { from { transform: scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes win-close { to { transform: scale(.9); opacity: 0; } }

.titlebar {
  flex: none; position: relative; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(#ededed, #d6d6d6 55%, #c9c9c9);
  border-bottom: 1px solid #8e8e8e;
  box-shadow: inset 0 1px rgba(255,255,255,.95);
  cursor: default; touch-action: none; user-select: none; -webkit-user-select: none;
}
.window.unified .titlebar { border-bottom: 0; }
.window.inactive .titlebar { background: linear-gradient(#f4f4f4, #e6e6e6); }
.titlebar .title {
  margin: 0; font-size: 13px; font-weight: normal; color: #222;
  text-shadow: 0 1px rgba(255,255,255,.8); pointer-events: none;
  max-width: calc(100% - 150px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.window.inactive .title { color: #888; }

.traffic { position: absolute; left: 8px; top: 3px; display: flex; gap: 7px; }
.tl {
  position: relative; display: block; width: 14px; height: 14px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(0,0,0,.45); cursor: default;
  box-shadow: 0 1px 1px rgba(255,255,255,.6);
}
.tl::after {
  content: ""; position: absolute; left: 2px; right: 2px; top: 1px; height: 6px; border-radius: 50%;
  background: linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,.08));
}
.tl::before {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: bold 11px/1 var(--ui); color: rgba(60,0,0,.7); opacity: 0;
}
.tl.close { background: radial-gradient(circle at 50% 78%, #ffc0b0 0, #f2503b 48%, #b31a09 100%); }
.tl.min   { background: radial-gradient(circle at 50% 78%, #ffeaa8 0, #f5b324 48%, #b07205 100%); }
.tl.zoom  { background: radial-gradient(circle at 50% 78%, #d6f7ad 0, #5cc42d 48%, #2a850c 100%); }
.tl.close::before { content: "\00d7"; font-size: 13px; }
.tl.min::before   { content: "\2212"; color: rgba(90,50,0,.75); }
.tl.zoom::before  { content: "+"; color: rgba(0,60,0,.75); }
.traffic:hover .tl::before { opacity: 1; }
.window.inactive .traffic:not(:hover) .tl {
  background: radial-gradient(circle at 50% 78%, #fbfbfb, #d2d2d2 50%, #a8a8a8);
  border-color: rgba(0,0,0,.25);
}
.tl.off { pointer-events: none; opacity: .45; filter: grayscale(1); }

.win-body { flex: 1; min-height: 0; overflow: auto; position: relative; background: #fff; user-select: text; }
.pinstripe { background: repeating-linear-gradient(#fdfdfd 0 2px, #efefef 2px 4px); }

.grip {
  position: absolute; right: 0; bottom: 0; width: 15px; height: 15px; z-index: 2;
  cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg,
    transparent 0 52%, #7d7d7d 52% 57%, #fff 57% 62%, transparent 62% 68%,
    #7d7d7d 68% 73%, #fff 73% 78%, transparent 78% 84%, #7d7d7d 84% 89%, #fff 89% 94%, transparent 94%);
}

/* Toolbars and status bars */
.toolbar {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  background: linear-gradient(#d6d6d6, #bcbcbc);
  border-bottom: 1px solid #838383;
  user-select: none; -webkit-user-select: none;
}
.window.inactive .toolbar { background: linear-gradient(#e6e6e6, #dadada); }
.toolbar .spacer { flex: 1; }
.statusbar {
  flex: none; height: 20px; line-height: 19px; text-align: center; font-size: 11px; color: #333;
  background: linear-gradient(#d4d4d4, #b9b9b9); border-top: 1px solid #8a8a8a;
}

/* Brushed metal */
.window.metal {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.002 0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.28 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(#e9e9e9, #c9c9c9 30%, #bdbdbd 70%, #cfcfcf);
}
.window.metal .titlebar, .window.metal .toolbar, .window.metal .statusbar {
  background: transparent; border: 0; box-shadow: none;
}
.window.metal .statusbar { color: #222; text-shadow: 0 1px rgba(255,255,255,.6); }
.inset { margin: 0 8px; border: 1px solid #6a6a6a; background: #fff; box-shadow: 0 1px rgba(255,255,255,.55); }

/* ---------- Controls ---------- */
.aqua-btn {
  display: inline-block; min-width: 72px; padding: 2px 16px; text-align: center;
  font: 13px/18px var(--ui); color: #111; text-decoration: none; cursor: default;
  border-radius: 12px; border: 1px solid #7f7f7f;
  background: linear-gradient(#fdfdfd, #ececec 48%, #dadada 52%, #f6f6f6);
  box-shadow: 0 1px 2px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.9);
}
.aqua-btn:active { background: linear-gradient(#d8d8d8, #c6c6c6 50%, #b7b7b7 52%, #d8d8d8); }
.aqua-btn.default {
  border-color: var(--a-edge);
  background: linear-gradient(var(--a-hi), color-mix(in srgb, var(--a) 50%, white) 48%, var(--a) 52%, color-mix(in srgb, var(--a) 55%, var(--a-hi)));
  animation: pulse 1.8s ease-in-out infinite;
}
.aqua-btn.default:active { filter: brightness(.85); animation: none; }
@keyframes pulse { 50% { filter: brightness(1.14) saturate(.85); } }
.aqua-btn.small { min-width: 0; padding: 0 12px; font-size: 11px; line-height: 16px; }

.search {
  width: 170px; padding: 2px 8px 2px 22px; font: 12px var(--ui);
  border-radius: 11px; border: 1px solid #7a7a7a; outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='4.2' fill='none' stroke='%23666' stroke-width='1.6'/%3E%3Cpath d='M9.6 9.6l4 4' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 6px 50% / 12px no-repeat;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
  -webkit-appearance: none; appearance: none;
}
.search:focus { box-shadow: inset 0 1px 2px rgba(0,0,0,.35), 0 0 0 3px color-mix(in srgb, var(--a) 55%, transparent); }

/* ---------- Dock (Leopard glass shelf) ---------- */
.dock {
  position: fixed; left: 50%; bottom: 4px; transform: translateX(-50%); z-index: 9000;
  display: flex; align-items: flex-end; gap: 4px; height: 62px; padding: 0 16px 6px;
}
.dock::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; z-index: -1;
  background: linear-gradient(rgba(255,255,255,.62), rgba(205,212,224,.42) 60%, rgba(160,170,185,.5));
  border: 1px solid rgba(255,255,255,.75); border-bottom-color: rgba(120,130,145,.8); border-radius: 3px;
  transform: perspective(260px) rotateX(48deg); transform-origin: 50% 100%;
  box-shadow: 0 6px 14px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.dock-item {
  position: relative; flex: none; padding: 0; border: 0; background: none; cursor: default;
  width: calc(52px * var(--s, 1)); height: calc(52px * var(--s, 1));
  transition: width .09s ease-out, height .09s ease-out;
}
.dock-item > svg {
  display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
  -webkit-box-reflect: below 2px linear-gradient(transparent 62%, rgba(255,255,255,.22));
}
.dock-item:active > svg { filter: brightness(.55) drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.dock-item .tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  padding: 1px 12px; border-radius: 11px; white-space: nowrap; pointer-events: none;
  background: rgba(20,20,20,.75); color: #fff; font-size: 13px; opacity: 0; transition: opacity .1s;
}
.dock-item:hover .tip, .dock-item:focus-visible .tip { opacity: 1; }
.dock-item:focus-visible { outline: none; }
.dock-item.running::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 35%, color-mix(in srgb, var(--a) 60%, white) 60%, transparent 72%);
  box-shadow: 0 0 6px 2px color-mix(in srgb, var(--a-hi) 80%, transparent);
}
.dock-item.bounce { animation: bounce .55s ease-in-out 2; }
@keyframes bounce { 0%, 100% { transform: none; } 45% { transform: translateY(-20px); } }
.dock-sep { align-self: stretch; width: 1px; margin: 10px 6px 0; background: linear-gradient(transparent, rgba(255,255,255,.85) 60%, rgba(255,255,255,.4)); }

/* ---------- Alerts ---------- */
.alert-backdrop { position: fixed; inset: 0; z-index: 20000; background: rgba(0,0,0,.12); }
.alert {
  position: absolute; top: 120px; left: 50%; transform: translateX(-50%);
  width: min(440px, calc(100% - 24px)); padding: 18px 20px 16px 98px;
  background: repeating-linear-gradient(#fafafa 0 2px, #ededed 2px 4px);
  border-radius: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 18px 44px rgba(0,0,0,.55);
  animation: win-open .2s ease-out;
}
.alert-icon { position: absolute; left: 20px; top: 18px; width: 64px; height: 64px; }
.alert h3 { margin: 0 0 8px; font-size: 13px; }
.alert p { margin: 0 0 16px; font-size: 11px; color: #222; }
.alert-btns { display: flex; justify-content: flex-end; gap: 10px; }

/* Shut down / boot */
.shutdown, .boot { position: fixed; inset: 0; z-index: 30000; display: grid; place-items: center; cursor: default; }
.shutdown { background: #000; color: #444; animation: fade .9s; }
.boot { background: #bfbfbf; align-content: center; gap: 40px; }
.boot-logo { width: 90px; height: 90px; filter: grayscale(1) brightness(.55); }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  background: conic-gradient(#333 0 8%, transparent 8% 12.5%, #444 12.5% 20.5%, transparent 20.5% 25%, #555 25% 33%, transparent 33% 37.5%, #666 37.5% 45.5%, transparent 45.5% 50%, #777 50% 58%, transparent 58% 62.5%, #888 62.5% 70.5%, transparent 70.5% 75%, #999 75% 83%, transparent 83% 87.5%, #aaa 87.5% 95.5%, transparent 95.5%);
  -webkit-mask: radial-gradient(circle, transparent 42%, #000 44%); mask: radial-gradient(circle, transparent 42%, #000 44%);
  animation: spin .9s steps(8) infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }

/* =========================================================
   Window contents
   ========================================================= */

/* About */
.about { text-align: center; padding: 22px 22px 14px; }
.avatar {
  width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; font: bold 34px var(--ui); color: #fff;
  text-shadow: 0 -1px rgba(0,0,0,.35);
  background:
    radial-gradient(ellipse 70% 40% at 50% 18%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(circle at 50% 85%, var(--a-hi), var(--a) 55%, var(--a-lo));
  border: 1px solid var(--a-edge);
  box-shadow: 0 4px 10px rgba(0,0,0,.35), inset 0 -4px 10px rgba(0,0,0,.15);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.about h1 { margin: 0; font-size: 20px; letter-spacing: -.2px; }
.about .version { margin: 2px 0 14px; color: #555; font-size: 11px; }
.specs { margin: 18px 0 14px; font-size: 11px; text-align: left; }
.specs div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; margin: 3px 0; }
.specs dt { text-align: right; font-weight: bold; }
.specs dd { margin: 0; color: #333; }
.fine { margin: 0; font-size: 10px; color: #777; }

/* Finder (projects) */
.finder { flex: 1; min-height: 0; display: grid; grid-template-columns: 168px 1fr; }
.sidebar {
  overflow: auto; padding: 6px 0;
  background: #dde4ec; border-right: 1px solid #a8b0ba;
  user-select: none; -webkit-user-select: none;
}
.window.inactive .sidebar { background: #e8e8e8; }
.sidebar h4 {
  margin: 8px 0 2px; padding: 0 10px; font-size: 11px; text-transform: uppercase;
  color: #6c7a8c; text-shadow: 0 1px rgba(255,255,255,.75);
}
.side-item {
  display: flex; align-items: center; gap: 6px; width: 100%; padding: 2px 10px 2px 18px;
  border: 0; background: none; text-align: left; font-size: 12px; cursor: default;
}
.side-item svg { width: 16px; height: 16px; flex: none; }
.side-item.selected {
  background: linear-gradient(color-mix(in srgb, var(--sel) 70%, white), var(--sel));
  color: #fff; font-weight: bold; text-shadow: 0 1px rgba(0,0,0,.25);
}
.finder-main { min-width: 0; min-height: 0; display: grid; grid-template-columns: 1fr 230px; }
.list-wrap { overflow: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 12px; }
.list th {
  position: sticky; top: 0; z-index: 1; padding: 2px 8px; text-align: left; font-weight: normal; font-size: 11px;
  background: linear-gradient(#fff, #e2e2e2); border-bottom: 1px solid #a5a5a5; border-right: 1px solid #c8c8c8;
}
.list td { padding: 3px 6px; white-space: nowrap; cursor: default; }
.list tbody tr:nth-child(even) { background: #edf3fe; }
.list tbody tr.selected {
  background: linear-gradient(color-mix(in srgb, var(--sel) 72%, white), var(--sel)); color: #fff;
}
.list tbody tr:focus-visible { outline: 1px dotted var(--sel); outline-offset: -1px; }
.proj-icon {
  display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px;
  border-radius: 4px; font-size: 10px; font-weight: bold; color: #fff;
  background: linear-gradient(color-mix(in srgb, var(--c) 45%, white), var(--c) 55%, color-mix(in srgb, var(--c) 75%, black));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
}
.status { font-size: 11px; }
.preview { overflow: auto; padding: 18px 16px; border-left: 1px solid #c8c8c8; background: #fafafa; }
.preview .empty { color: #888; text-align: center; margin-top: 40%; }
.preview .proj-icon { display: grid; width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 16px; font-size: 32px; box-shadow: 0 3px 8px rgba(0,0,0,.25), inset 0 0 0 1px rgba(0,0,0,.2); }
.preview h3 { margin: 0; text-align: center; font-size: 15px; }
.preview .kind { margin: 2px 0 12px; text-align: center; color: #666; font-size: 11px; }
.preview p { font-size: 12px; }
.preview dl { font-size: 11px; margin: 0 0 12px; }
.preview dt { color: #777; }
.preview dd { margin: 0 0 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.tag {
  padding: 0 8px; border-radius: 9px; font-size: 10px; line-height: 16px; color: #234;
  background: linear-gradient(#fff, color-mix(in srgb, var(--a-hi) 70%, #ddd)); border: 1px solid #a9b4c2;
}
.links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* Blog (reader) */
.reader { flex: 1; min-height: 0; display: grid; grid-template-columns: 290px 1fr; background: #fff; }
.post-list { margin: 0; padding: 0; list-style: none; overflow: auto; border-right: 1px solid #a5a5a5; }
.post-list li + li { border-top: 1px solid #e3e3e3; }
.post-item {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 2px 4px; width: 100%;
  padding: 7px 10px 8px 6px; border: 0; background: none; text-align: left; cursor: default;
}
.post-item .dot { grid-row: span 2; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; }
.post-item.new .dot { background: radial-gradient(circle at 50% 30%, #fff 0, var(--a) 55%, var(--a-lo)); box-shadow: inset 0 0 0 1px var(--a-edge); }
.post-item strong { font-size: 12px; }
.post-item time { font-size: 11px; color: #3a6fb5; white-space: nowrap; }
.post-item .sum {
  grid-column: 2 / -1; font-size: 11px; color: #666;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-item.selected { background: linear-gradient(color-mix(in srgb, var(--sel) 72%, white), var(--sel)); color: #fff; }
.post-item.selected time, .post-item.selected .sum { color: #f2f6ff; }
.post-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.reader-empty { padding: 30px; color: #888; }

/* Compose (contact) */
.compose { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.tool-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 52px;
  padding: 0 4px; border: 0; background: none; font-size: 11px; color: #222; text-decoration: none; cursor: default;
  text-shadow: 0 1px rgba(255,255,255,.6);
}
.tool-btn svg { width: 30px; height: 30px; }
.tool-btn:active svg { filter: brightness(.6); }
.fields { border-bottom: 1px solid #c9c9c9; }
.field { display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-bottom: 1px solid #e6e6e6; }
.field span { width: 64px; text-align: right; color: #777; font-size: 12px; }
.field input { flex: 1; border: 0; outline: none; font: 13px var(--ui); background: transparent; padding: 2px 0; }
.compose textarea {
  flex: 1; border: 0; outline: none; resize: none; padding: 12px; font: 13px/1.5 var(--doc);
}

/* TextEdit document */
.ruler {
  flex: none; height: 26px; border-bottom: 1px solid #a5a5a5;
  background:
    repeating-linear-gradient(90deg, #999 0 1px, transparent 1px 10px) 0 18px / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, #777 0 1px, transparent 1px 50px) 0 14px / 100% 8px no-repeat,
    linear-gradient(#f4f4f4, #dcdcdc);
}
.doc { padding: 26px 40px 40px; font: 13px/1.6 var(--doc); color: #111; }
.doc h1 { font-size: 22px; margin: 0 0 4px; }
.doc h2 { font-size: 15px; margin: 22px 0 6px; padding-bottom: 3px; border-bottom: 1px solid #ddd; }
.doc h3 { font-size: 13px; margin: 14px 0 0; }
.doc .meta { margin: 0; color: #666; font-size: 12px; }
.doc ul { padding-left: 20px; margin: 6px 0; }
.doc li { margin: 2px 0; }
.doc code { font: 12px var(--mono); background: #f2f2f2; padding: 0 3px; border-radius: 3px; }
.doc pre { font: 12px/1.5 var(--mono); background: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; padding: 10px 12px; overflow: auto; }
.doc pre code { background: none; padding: 0; }
.doc blockquote { margin: 12px 0; padding: 4px 14px; border-left: 3px solid var(--a); color: #444; }
.doc img { max-width: 100%; }

/* Terminal */
.terminal {
  flex: 1; min-height: 0; overflow: auto; padding: 6px 8px;
  background: rgba(18,18,18,.94); color: #e8e8e8; font: 12px/1.45 var(--mono); user-select: text;
}
.terminal b { color: #8fd18f; font-weight: normal; }
.term-row { white-space: pre-wrap; word-break: break-word; }
.term-row .ps1, .term-line .ps1 { color: #8fd18f; }
.term-line { display: flex; gap: 8px; }
.term-line input { flex: 1; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; color: inherit; font: inherit; caret-color: #8fd18f; }

/* System Preferences */
.prefs { padding: 18px 24px; }
.prefs h3 { margin: 0 0 2px; font-size: 13px; }
.prefs .hint { margin: 0 0 18px; color: #555; font-size: 11px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 14px 8px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; font-size: 11px; cursor: default; }
.gumdrop {
  width: 46px; height: 46px; border-radius: 50%;
  background:
    radial-gradient(ellipse 60% 35% at 50% 20%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(circle at 50% 80%, color-mix(in srgb, var(--c) 40%, white), var(--c) 55%, color-mix(in srgb, var(--c) 65%, black));
  box-shadow: 0 3px 6px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.25);
  opacity: .92;
}
.swatch[aria-checked="true"] .gumdrop { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sel), 0 3px 6px rgba(0,0,0,.35); opacity: 1; }
.swatch[aria-checked="true"] { font-weight: bold; }
.swatch:focus-visible { outline: none; }
.swatch:focus-visible .gumdrop { box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 60%, transparent); }

/* =========================================================
   Standalone blog post page
   ========================================================= */
.post-page .doc-window { position: relative; margin: 40px auto; width: min(780px, calc(100% - 32px)); height: calc(100vh - 80px); }
.post-page .doc { padding: 34px 56px 60px; font-size: 14px; line-height: 1.7; }
.post-page .doc h1 { font-size: 26px; line-height: 1.25; margin-bottom: 6px; }
.post-page .post-meta { color: #777; font-size: 12px; margin: 0 0 24px; }
.post-page .back { display: inline-block; margin-top: 30px; font-size: 12px; }
html.embedded body { background: #fff; overflow: auto; }
html.embedded .wallpaper, html.embedded .doc-window > .titlebar, html.embedded .back { display: none; }
html.embedded .post-page .doc-window { margin: 0; width: 100%; height: 100vh; border-radius: 0; box-shadow: none; }
html.embedded .post-page .doc { padding: 22px 30px 40px; }

/* =========================================================
   Small screens: windows go full-screen, one at a time
   ========================================================= */
@media (max-width: 720px) {
  .menu:not(.logo):not(.keep) { display: none; }
  .desk-icons { left: 8px; right: 8px; bottom: auto; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .window { left: 0 !important; top: 0 !important; width: 100% !important; height: calc(100% - 74px) !important; border-radius: 0; }
  .grip, .tl.min, .tl.zoom { display: none; }
  .dock { gap: 2px; padding: 0 10px 6px; max-width: 100%; }
  .dock-item { width: 42px; height: 42px; }
  .dock-item .tip { display: none; }
  .finder { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .finder-main { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .preview { border-left: 0; border-top: 1px solid #c8c8c8; max-height: 45vh; }
  .preview .empty { margin: 0; }
  .reader { grid-template-columns: 1fr; grid-template-rows: 38% 1fr; }
  .post-list { border-right: 0; border-bottom: 1px solid #a5a5a5; }
  .doc { padding: 18px 18px 30px; }
  .post-page .doc-window { margin: 0; width: 100%; height: 100vh; border-radius: 0; }
  .post-page .doc { padding: 22px 20px 40px; }
  .spotlight { width: 100%; border-radius: 0; }
  .search { width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Browser window (Safari 3 on Leopard)
   ========================================================= */
.browser .titlebar, .browser .br-toolbar { background: linear-gradient(#e6e6e6, #cfcfcf); }
.browser .titlebar { box-shadow: inset 0 1px rgba(255,255,255,.95); }
.browser .br-toolbar { padding: 2px 8px 6px; gap: 6px; border-bottom: 1px solid #8c8c8c; background: linear-gradient(#cfcfcf, #b4b4b4); }
.browser.inactive .titlebar, .browser.inactive .br-toolbar { background: linear-gradient(#f0f0f0, #e3e3e3); }
.seg { display: flex; }
.seg button, .seg-single {
  height: 22px; min-width: 28px; padding: 0 7px; font-size: 11px; color: #333; cursor: default;
  border: 1px solid #6f6f6f; background: linear-gradient(#fdfdfd, #e2e2e2 50%, #d2d2d2 51%, #ececec);
  box-shadow: 0 1px rgba(255,255,255,.5);
}
.seg button:first-child { border-radius: 4px 0 0 4px; }
.seg button:last-child { border-radius: 0 4px 4px 0; border-left: 0; }
.seg-single { border-radius: 4px; font-size: 14px; line-height: 18px; }
.seg button:active:not(:disabled), .seg-single:active { background: linear-gradient(#cfcfcf, #b9b9b9 50%, #ababab 51%, #c6c6c6); }
.seg button:disabled { color: #aaa; }
.address {
  position: relative; flex: 1; min-width: 0; height: 22px; display: flex; align-items: center; overflow: hidden;
  background: #fff; border: 1px solid #6f6f6f; border-radius: 3px; box-shadow: inset 0 1px 2px rgba(0,0,0,.3);
}
.address .progress {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; opacity: 0;
  background: linear-gradient(color-mix(in srgb, var(--a) 25%, white), color-mix(in srgb, var(--a) 45%, white) 50%, color-mix(in srgb, var(--a) 35%, white) 51%, color-mix(in srgb, var(--a) 15%, white));
}
.address .progress.run { opacity: 1; width: 75%; transition: width 1.2s cubic-bezier(.1,.7,.3,1); }
.address .progress.done { opacity: 0; width: 100%; transition: width .15s, opacity .35s .15s; }
.address .fav { position: relative; width: 16px; height: 16px; margin: 0 4px 0 5px; border-radius: 3px; object-fit: cover; flex: none; }
.address input { position: relative; flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 12px var(--ui); color: #222; }
.address:focus-within { box-shadow: inset 0 1px 2px rgba(0,0,0,.3), 0 0 0 3px color-mix(in srgb, var(--a) 55%, transparent); }
.bookmarks {
  flex: none; display: flex; gap: 2px; padding: 2px 8px; overflow-x: auto; white-space: nowrap;
  background: linear-gradient(#d9d9d9, #c9c9c9); border-bottom: 1px solid #8c8c8c;
}
.bookmarks button {
  display: flex; align-items: center; gap: 5px; padding: 1px 9px; border: 0; border-radius: 9px;
  background: none; font-size: 11px; color: #222; cursor: default; text-shadow: 0 1px rgba(255,255,255,.6);
}
.bookmarks button img { width: 13px; height: 13px; border-radius: 3px; object-fit: cover; }
.bookmarks button:hover { background: rgba(0,0,0,.12); }
.bookmarks button.active { background: rgba(0,0,0,.28); color: #fff; text-shadow: 0 -1px rgba(0,0,0,.3); }
.br-frame { flex: 1; min-height: 0; width: 100%; border: 0; display: block; background: #fff; }
.br-status { text-align: left; padding-left: 10px; }

/* Project logos in Finder */
img.proj-icon { object-fit: cover; padding: 0; background: none; }
.preview img.proj-icon { display: block; }

/* Minimized window thumbnails in the Dock */
.dock-thumb { transition: width .32s ease, height .32s ease, opacity .32s ease, margin .32s ease; }
.dock-thumb.entering, .dock-thumb.leaving { width: 0; opacity: 0; margin: 0 -2px; }
.dock-thumb .thumb-box {
  position: absolute; inset: 0; pointer-events: none; opacity: .6; transition: opacity .2s;
  -webkit-box-reflect: below 2px linear-gradient(transparent 62%, rgba(255,255,255,.22));
}
.dock-thumb.ready .thumb-box { opacity: 1; }
.dock-thumb .thumb-box .window { min-width: 0; min-height: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 6px 16px rgba(0,0,0,.5); }
.dock-thumb .thumb-frame { flex: 1; background: #fff; }
.dock-thumb .thumb-badge {
  position: absolute; right: -3px; bottom: -3px; width: 46%; height: 46%; pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}
.dock-thumb:active .thumb-box { filter: brightness(.6); }

/* =========================================================
   Dashboard layer (start page)
   ========================================================= */
.dashboard {
  position: fixed; inset: var(--menu-h) 0 0 0; z-index: 9500;
  display: grid; place-items: center; overflow: auto; padding: 30px 20px 90px;
  background: radial-gradient(ellipse at 50% 40%, rgba(20,26,38,.45), rgba(5,8,14,.72));
  -webkit-backdrop-filter: blur(3px) saturate(120%); backdrop-filter: blur(3px) saturate(120%);
  animation: fade .3s ease-out;
}
.dashboard[hidden] { display: none; }
.dashboard.leaving { opacity: 0; transition: opacity .3s ease-in .15s; }
.dash-grid {
  display: grid; gap: 26px; align-items: start;
  grid-template-columns: 330px 300px 210px;
  grid-template-areas:
    "profile stats clock"
    "profile building note"
    "strip strip strip";
}
.widget {
  position: relative; border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.35);
  animation: dash-in .55s cubic-bezier(.2,1.35,.4,1) both; animation-delay: calc(var(--i) * 70ms);
  user-select: none; -webkit-user-select: none;
}
.dashboard.leaving .widget { animation: dash-out .32s ease-in both; animation-delay: calc(var(--i) * 30ms); }
@keyframes dash-in { from { opacity: 0; transform: scale(.35); } }
@keyframes dash-out { to { opacity: 0; transform: scale(1.18) translateY(-12px); } }
.widget h2 { margin: 0 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }

/* 1. Profile card: white glossy plastic */
.w-profile {
  grid-area: profile; text-align: center; padding: 24px 22px 22px;
  background: linear-gradient(#ffffff, #eceef2 45%, #dfe2e7);
  border: 1px solid rgba(255,255,255,.9);
}
.w-profile::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 70px; border-radius: 16px 16px 0 0;
  background: linear-gradient(color-mix(in srgb, var(--a) 60%, white), var(--a));
  box-shadow: inset 0 -1px rgba(0,0,0,.2);
}
.w-profile .avatar { position: relative; width: 92px; height: 92px; margin-top: 10px; border: 3px solid #fff; }
.w-profile h1 { margin: 0; font-size: 21px; letter-spacing: -.3px; }
.w-sub { margin: 2px 0 12px; color: #666; font-size: 12px; }
.w-pitch { margin: 0 0 18px; font-size: 13px; line-height: 1.55; color: #333; }
.w-btns { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.w-btns .aqua-btn { min-width: 0; }

/* 2. Stats: LCD in a graphite bezel */
.w-stats { grid-area: stats; background: linear-gradient(#61666e, #2f3339 60%, #24272c); border: 1px solid rgba(255,255,255,.18); }
.w-stats h2 { color: #d9dde3; text-shadow: 0 -1px rgba(0,0,0,.6); }
.lcd {
  position: relative; overflow: hidden; padding: 8px 14px; border-radius: 8px;
  background: linear-gradient(#d4e4bd, #aec493); color: #1d2a12; font-family: var(--mono);
  box-shadow: inset 0 2px 7px rgba(0,0,0,.5), 0 1px rgba(255,255,255,.18);
}
.lcd::after { content: ""; position: absolute; inset: 0 0 55% 0; background: linear-gradient(rgba(255,255,255,.35), transparent); pointer-events: none; }
.lcd div { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; border-top: 1px dashed rgba(29,42,18,.25); }
.lcd div:first-child { border-top: 0; }
.lcd b { min-width: 92px; font-size: 22px; letter-spacing: -.5px; text-shadow: 1px 1px rgba(29,42,18,.18); }
.lcd span { font-size: 10px; text-transform: uppercase; letter-spacing: .3px; opacity: .8; }

/* 4. Clock: chrome bezel, analog face */
.w-clock { grid-area: clock; justify-self: center; background: none; box-shadow: none; padding: 0; text-align: center; }
.clock-face {
  position: relative; width: 180px; height: 180px; border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 58%, #eef0f3 66%, transparent 67%),
    conic-gradient(from 30deg, #f6f6f6, #8d9096, #e9eaec, #6e7177, #f6f6f6, #8d9096, #f6f6f6);
  box-shadow: 0 12px 30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,0,0,.35);
}
.clock-face::after {
  content: ""; position: absolute; left: 22%; right: 22%; top: 12%; height: 30%; border-radius: 50%;
  background: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,0)); pointer-events: none;
}
.clock-face .ticks {
  position: absolute; inset: 26px; border-radius: 50%;
  background: repeating-conic-gradient(#333 0 1.2deg, transparent 1.2deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 84%, #000 85%); mask: radial-gradient(circle, transparent 84%, #000 85%);
}
.hand { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 3px; }
.hand.h { width: 6px; height: 38px; margin-left: -3px; background: #222; }
.hand.m { width: 4px; height: 56px; margin-left: -2px; background: #333; }
.hand.s { width: 2px; height: 62px; margin-left: -1px; background: var(--a); box-shadow: 0 0 1px rgba(0,0,0,.4); }
.cap { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #888); box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.clock-city { margin: 12px 0 0; color: #fff; font-weight: bold; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.clock-city span { font-weight: normal; opacity: .75; margin-left: 4px; }

/* 3. Latest post: sticky note */
.w-note { grid-area: note; padding: 0; background: none; box-shadow: none; }
.note {
  position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 22px 18px 16px;
  border: 0; text-align: left; cursor: default; color: #3a3210;
  background: linear-gradient(#fff9b8, #fbe86b);
  box-shadow: 0 14px 28px rgba(0,0,0,.5), inset 0 -18px 30px rgba(180,150,20,.12);
  transform: rotate(-2.5deg); transition: transform .15s;
  font-family: "Marker Felt", "Chalkboard SE", "Chalkboard", "Comic Sans MS", cursive;
}
.note:hover { transform: rotate(-1deg) scale(1.02); }
.note::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 76px; height: 22px; margin-left: -38px;
  background: rgba(255,255,255,.55); box-shadow: 0 1px 2px rgba(0,0,0,.15); transform: rotate(3deg);
}
.note-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; opacity: .65; }
.note strong { font-size: 19px; line-height: 1.2; }
.note-sum { font-size: 13px; line-height: 1.4; }
.note-more { align-self: flex-end; font-size: 13px; color: #8a6d00; }

/* 5. Currently building: smoked glass */
.w-building {
  grid-area: building; color: #eee;
  background: linear-gradient(rgba(70,72,82,.94), rgba(22,23,28,.96));
  border: 1px solid rgba(255,255,255,.22);
}
.w-building::before {
  content: ""; position: absolute; inset: 0 0 60% 0; border-radius: 16px 16px 0 0;
  background: linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,0)); pointer-events: none;
}
.w-building h2 { color: #bfc6d1; }
.w-building ul { list-style: none; margin: 0; padding: 0; }
.w-building button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px;
  background: none; color: inherit; text-align: left; cursor: default;
}
.w-building button:hover { background: linear-gradient(color-mix(in srgb, var(--sel) 70%, white), var(--sel)); }
.w-building img, .w-building .proj-icon { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; margin: 0; flex: none; font-size: 16px; }
.w-building strong { display: block; font-size: 13px; }
.w-building em { font-style: normal; font-size: 11px; opacity: .65; }
.w-building .none { font-size: 12px; opacity: .6; }

/* 6. Projects strip: chrome shelf */
.w-strip { grid-area: strip; background: linear-gradient(#fbfbfb, #d8dbe0 55%, #c5c9cf); border: 1px solid rgba(255,255,255,.9); padding-bottom: 26px; }
.w-strip h2 { color: #555; text-shadow: 0 1px #fff; }
.strip { display: flex; justify-content: space-around; gap: 12px; flex-wrap: wrap; }
.strip button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px;
  border: 0; background: none; cursor: default; font-size: 11px; color: #333;
}
.strip img, .strip .proj-icon {
  width: 60px; height: 60px; margin: 0; border-radius: 14px; object-fit: cover; font-size: 26px;
  box-shadow: 0 3px 8px rgba(0,0,0,.3); transition: transform .15s;
  -webkit-box-reflect: below 3px linear-gradient(transparent 65%, rgba(255,255,255,.3));
}
.strip button span { margin-top: 14px; }
.strip button:hover img, .strip button:hover .proj-icon { transform: translateY(-4px) scale(1.06); }

.dash-done {
  position: fixed; left: 22px; bottom: 22px; z-index: 1;
  padding: 6px 22px; border-radius: 16px; border: 1px solid rgba(255,255,255,.35); cursor: default;
  background: linear-gradient(rgba(90,94,104,.9), rgba(30,32,38,.92)); color: #fff; font-size: 13px;
  box-shadow: 0 6px 16px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.25);
  animation: fade .6s ease-out .4s both;
}
.dash-done:hover { background: linear-gradient(color-mix(in srgb, var(--a) 70%, white), var(--a-lo)); }

@media (max-width: 1000px) {
  .dash-grid {
    grid-template-columns: minmax(0, 330px) minmax(0, 300px);
    grid-template-areas: "profile stats" "profile clock" "note building" "strip strip";
  }
}
@media (max-width: 720px) {
  .dashboard { place-items: start center; padding: 18px 14px 90px; }
  .dash-grid { width: min(420px, 100%); grid-template-columns: 1fr; grid-template-areas: "profile" "stats" "note" "clock" "building" "strip"; gap: 20px; }
  .strip button { width: 80px; }
}
@media (max-width: 720px) {
  .dash-done { left: 50%; transform: translateX(-50%); }
}

