/* ================================================================
   Mac OS X Mountain Lion (10.8) skin
   ================================================================ */
.mac {
  position: fixed; inset: 0;
  font: 13px/1.4 var(--font-mac);
  color: #222;
  user-select: none;
  -webkit-user-select: none;
}
.mac ::selection { background: #b5d5ff; }
.mac .selectable { user-select: text; -webkit-user-select: text; }

/* wallpaper: galaxy painted on a canvas by app.js, gradient as fallback */
.mac-wallpaper {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 62% 42%, rgba(196, 142, 214, .45), transparent 60%),
    radial-gradient(ellipse 40% 26% at 60% 44%, rgba(255, 226, 238, .4), transparent 60%),
    radial-gradient(ellipse at 30% 70%, #1d2a5c, transparent 60%),
    linear-gradient(160deg, #0b0f2a, #1a1640 45%, #070a1c);
}
.mac-wallpaper canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------------- menu bar ---------------- */
.menubar {
  position: absolute; left: 0; right: 0; top: 0; height: 22px; z-index: 9000;
  display: flex; align-items: stretch;
  background: linear-gradient(rgba(255,255,255,.92), rgba(232,232,232,.88));
  box-shadow: 0 1px 0 rgba(0,0,0,.35), 0 1px 6px rgba(0,0,0,.25);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  font-size: 14px;
  color: #111;
}
.menubar .menu-root { position: relative; display: flex; }
.menubar .mb-item {
  display: flex; align-items: center; height: 22px; padding: 0 10px;
  white-space: nowrap;
}
.menubar .mb-item.app { font-weight: 700; }
.menubar .mb-item.logo { padding: 0 12px 0 16px; }
.menubar .mb-item.logo .glyph {
  display: block;
  width: 15px; height: 15px; border-radius: 4px;
  background: linear-gradient(#3a3a3a, #111);
  color: #fff; font: 700 11px/15px var(--font-ios); text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.menubar .mb-item:hover, .menubar .mb-item.open {
  background: linear-gradient(#5e8ef0, #2f62e0);
  color: #fff;
}
.menubar .mb-item:hover .glyph, .menubar .mb-item.open .glyph { background: #fff; color: #2f62e0; }
.menubar .spacer { flex: 1; }
.menubar .status { display: flex; align-items: center; }
.menubar .flag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 15px; padding: 0 4px; border-radius: 3px;
  font: 700 10px/15px var(--font-ios); letter-spacing: .03em;
  background: linear-gradient(#777, #444); color: #fff;
}
.menubar .mb-item:hover .flag, .menubar .mb-item.open .flag { background: #fff; color: #2f62e0; }
.menubar .clock { padding-right: 16px; }

/* dropdown menus */
.dropdown {
  position: absolute; top: 22px; left: 0; min-width: 220px; z-index: 9100;
  padding: 4px 0;
  background: rgba(246, 246, 246, .97);
  border-radius: 0 0 5px 5px;
  box-shadow: 0 8px 22px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.14);
  font-size: 14px; color: #111;
  animation: menuIn .12s ease-out;
}
.dropdown.right { left: auto; right: 0; }
@keyframes menuIn { from { opacity: 0; } }
.dropdown button, .dropdown a {
  display: flex; width: 100%; align-items: center; gap: 8px;
  padding: 2px 22px; text-align: left; text-decoration: none; white-space: nowrap;
}
.dropdown button:hover, .dropdown a:hover, .dropdown button:focus-visible, .dropdown a:focus-visible {
  background: linear-gradient(#5e8ef0, #2f62e0); color: #fff; outline: none;
}
.dropdown .check { width: 10px; margin-left: -14px; }
.dropdown .kbd { margin-left: auto; padding-left: 24px; color: #888; }
.dropdown button:hover .kbd { color: #fff; }
.dropdown hr { border: 0; border-top: 1px solid #dcdcdc; margin: 5px 1px; }
.dropdown .disabled { color: #aaa; pointer-events: none; }

/* ---------------- desktop icons & widgets ---------------- */
.desktop { position: absolute; inset: 22px 0 0 0; }
.desk-icons {
  position: absolute; right: 70px; top: 430px;
  display: grid; gap: 18px; justify-items: center;
}
.desk-icon {
  width: 92px; display: grid; justify-items: center; gap: 4px;
  padding: 4px; border-radius: 4px;
}
.desk-icon .icon { --s: 64px; }
.desk-icon span {
  color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2;
  padding: 1px 5px; border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,.9);
}
.desk-icon:focus-visible { outline: none; }
.desk-icon.selected .icon, .desk-icon:focus-visible .icon { filter: brightness(.82); outline: 2px solid rgba(255,255,255,.35); outline-offset: 2px; border-radius: 6px; }
.desk-icon.selected span, .desk-icon:focus-visible span { background: #3875d7; text-shadow: none; }

/* Stickies note */
.stickie {
  position: absolute; right: 24px; top: 30px; width: 224px;
  background: linear-gradient(#fff9a8, #fdf07b);
  box-shadow: 0 10px 24px rgba(0,0,0,.45), inset 0 0 0 1px rgba(190, 170, 40, .35);
  color: #333;
  transform: rotate(1.2deg);
}
.stickie .bar { height: 14px; background: linear-gradient(#f6e862, #e9d846); border-bottom: 1px solid rgba(160, 140, 20, .4); }
.stickie .body { padding: 10px 14px 14px; font: 15px/1.35 var(--font-marker); }
.stickie .body b { display: block; font-size: 17px; margin-bottom: 4px; }
.stickie a { color: #1a4fa8; }

/* Dashboard-style clock widget */
.widget-clock {
  position: absolute; right: 60px; top: 262px; width: 150px; text-align: center;
  color: #fff; font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.9);
}
.widget-clock .face {
  position: relative; width: 132px; height: 132px; margin: 0 auto 6px; border-radius: 50%;
  background:
    radial-gradient(circle, #fdfdfd 0 62%, #e6e6e6 68%, transparent 69%),
    linear-gradient(#5a5a5a, #111);
  box-shadow: 0 8px 18px rgba(0,0,0,.55), inset 0 2px 3px rgba(255,255,255,.4);
}
.widget-clock .face::before {
  content: ""; position: absolute; inset: 11%; border-radius: 50%;
  background: repeating-conic-gradient(from -1deg, #333 0 2deg, transparent 2deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 0 80%, #000 81%);
          mask: radial-gradient(circle, transparent 0 80%, #000 81%);
}
.widget-clock .face::after { /* glass */
  content: ""; position: absolute; left: 14%; right: 14%; top: 8%; height: 44%;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0));
}
.widget-clock .hand { position: absolute; left: 50%; top: 50%; transform-origin: 50% 100%; border-radius: 3px; background: #1d1d1d; }
.widget-clock .hand.h { width: 5px; height: 30px; margin: -30px 0 0 -2.5px; }
.widget-clock .hand.m { width: 4px; height: 44px; margin: -44px 0 0 -2px; }
.widget-clock .hand.s { width: 1.5px; height: 48px; margin: -48px 0 0 -.75px; background: #d0021b; }
.widget-clock .pin { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #d0021b; }

/* ---------------- windows ---------------- */
.win {
  position: absolute; min-width: 320px; min-height: 160px;
  display: flex; flex-direction: column;
  border-radius: 5px 5px 4px 4px;
  background: #ececec;
  box-shadow: 0 22px 56px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.32);
  transition: box-shadow .2s;
  transform-origin: 50% 100%;
  animation: winIn .32s var(--ease-out);
  will-change: transform;
}
.win.inactive { box-shadow: 0 12px 30px rgba(0,0,0,.38), 0 0 0 1px rgba(0,0,0,.24); }
@keyframes winIn { from { opacity: 0; transform: scale(.94); } }
.win.closing { animation: winOut .18s ease-in forwards; }
@keyframes winOut { to { opacity: 0; transform: scale(.94); } }
.win.minimizing { transition: transform .45s cubic-bezier(.6,.05,.4,1), opacity .45s; opacity: 0; }

.titlebar {
  position: relative; flex: none; height: 23px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(#ebebeb, #d5d5d5 50%, #c7c7c7);
  border-bottom: 1px solid #999;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  cursor: default;
  touch-action: none;
}
.win.has-toolbar .titlebar { border-bottom: 0; }
.win.inactive .titlebar { background: linear-gradient(#f6f6f6, #ececec); border-bottom-color: #c2c2c2; }
.titlebar .title {
  font-size: 13px; color: #3b3b3b; text-shadow: 0 1px 0 rgba(255,255,255,.75);
  max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.win.inactive .titlebar .title { color: #a6a6a6; }

.lights { position: absolute; left: 8px; top: 4px; display: flex; gap: 7px; }
.light {
  width: 14px; height: 14px; border-radius: 50%;
  position: relative;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.6);
}
.light::after { /* gloss */
  content: ""; position: absolute; left: 3px; right: 3px; top: 1px; height: 6px; border-radius: 50%;
  background: linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,.1));
}
.light.close { background: radial-gradient(circle at 50% 75%, #ff9a8a, #e0443a 55%, #a3221b); }
.light.min { background: radial-gradient(circle at 50% 75%, #ffe08a, #e8a21a 55%, #a86a06); }
.light.zoom { background: radial-gradient(circle at 50% 75%, #b9f08a, #4cae2c 55%, #2a7414); }
/* glyphs are drawn, not typed: font glyphs sit off-centre in a 14px circle */
.light .x { position: absolute; inset: 0; opacity: 0; z-index: 2; color: rgba(70, 0, 0, .8); }
.light .x::before, .light .x::after {
  content: ""; position: absolute; left: 3px; top: 6px; width: 8px; height: 2px;
  border-radius: 1px; background: currentColor;
}
.light.close .x::before { transform: rotate(45deg); }
.light.close .x::after { transform: rotate(-45deg); }
.light.min .x { color: rgba(110, 60, 0, .85); }
.light.min .x::after { display: none; }
.light.zoom .x { color: rgba(0, 70, 0, .8); }
.light.zoom .x::after { transform: rotate(90deg); }
.lights:hover .light .x { opacity: 1; }
.win.inactive .light { background: radial-gradient(circle at 50% 75%, #f2f2f2, #cfcfcf 55%, #a9a9a9); }
.win.inactive .lights:hover .light.close { background: radial-gradient(circle at 50% 75%, #ff9a8a, #e0443a 55%, #a3221b); }
.win.inactive .lights:hover .light.min { background: radial-gradient(circle at 50% 75%, #ffe08a, #e8a21a 55%, #a86a06); }
.win.inactive .lights:hover .light.zoom { background: radial-gradient(circle at 50% 75%, #b9f08a, #4cae2c 55%, #2a7414); }

/* unified toolbar (Mail, App Store, System Preferences) */
.toolbar {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 2px 10px 7px;
  background: linear-gradient(#c7c7c7, #a8a8a8);
  border-bottom: 1px solid #6e6e6e;
}
.win.inactive .toolbar { background: linear-gradient(#ececec, #dcdcdc); border-bottom-color: #b5b5b5; }
.aqua-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 22px; padding: 0 12px; border-radius: 4px;
  font-size: 12px; color: #222; text-decoration: none; white-space: nowrap;
  background: linear-gradient(#ffffff, #f1f1f1 50%, #e4e4e4 51%, #f4f4f4);
  box-shadow: 0 1px 0 rgba(255,255,255,.55), 0 0 0 1px rgba(0,0,0,.38), inset 0 1px 0 #fff;
}
.aqua-btn:active { background: linear-gradient(#c6d6f0, #a8c0ea 50%, #8eaee6 51%, #b8d0f6); }
.aqua-btn.primary {
  color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.25);
  background: linear-gradient(#a9d0ff, #5ba2f5 50%, #2f86f0 51%, #6fb5ff);
  box-shadow: 0 1px 0 rgba(255,255,255,.55), 0 0 0 1px rgba(10, 50, 120, .65), inset 0 1px 0 rgba(255,255,255,.6);
}
.aqua-btn:focus-visible { outline: 3px solid rgba(80, 150, 255, .6); outline-offset: 1px; }
.segmented { display: inline-flex; border-radius: 4px; box-shadow: 0 1px 0 rgba(255,255,255,.5), 0 0 0 1px rgba(0,0,0,.38); overflow: hidden; }
.segmented button {
  height: 22px; padding: 0 12px; font-size: 12px;
  background: linear-gradient(#ffffff, #f1f1f1 50%, #e4e4e4 51%, #f4f4f4);
  border-left: 1px solid rgba(0,0,0,.25);
}
.segmented button:first-child { border-left: 0; }
.segmented button[aria-pressed="true"] { background: linear-gradient(#6c6c6c, #8a8a8a); color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.4); box-shadow: inset 0 1px 3px rgba(0,0,0,.45); }

.win-body { position: relative; flex: 1; min-height: 0; overflow: auto; border-radius: 0 0 4px 4px; }
.win-body.selectable { cursor: auto; }

/* resize grip */
.grip { position: absolute; right: 0; bottom: 0; width: 15px; height: 15px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 0 55%, rgba(0,0,0,.25) 55% 60%, transparent 60% 70%, rgba(0,0,0,.25) 70% 75%, transparent 75% 85%, rgba(0,0,0,.25) 85% 90%, transparent 90%);
}

/* ---------------- Contacts (About) ---------------- */
.contacts {
  display: grid; grid-template-columns: 140px 1fr; height: 100%;
  background: linear-gradient(90deg, #6b4a2d, #8a6240 6px, #6b4a2d 12px);
  padding: 10px;
  gap: 0;
}
.contacts .page {
  background: #fbfaf6;
  box-shadow: inset 0 0 18px rgba(120, 90, 40, .12);
}
.contacts .page.left {
  border-radius: 4px 0 0 4px; border-right: 1px solid #d8d1c2;
  background: linear-gradient(90deg, #f4f1e8, #fbfaf6 80%, #ebe6da);
  padding: 12px 0;
  font-size: 12px;
}
.contacts .page.left .group { padding: 2px 14px; color: #8b8270; font-weight: 700; font-size: 11px; text-transform: none; }
.contacts .page.left .person { margin-top: 6px; padding: 3px 14px; background: linear-gradient(#6d9ae0, #3f74cc); color: #fff; font-weight: 700; text-shadow: 0 -1px 0 rgba(0,0,0,.2); }
.contacts .page.left .letter { padding: 1px 14px; color: #9a917e; border-bottom: 1px solid #e7e1d4; font-weight: 700; font-size: 11px; margin-top: 10px; }
.contacts .page.right { border-radius: 0 4px 4px 0; padding: 22px 26px; overflow: auto; }
.card-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.monogram {
  width: 72px; height: 72px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  font: 300 30px/1 var(--font-ios); color: #fff; letter-spacing: .02em;
  background: linear-gradient(#9bb4d6, #5e7ea8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 0 1px rgba(0,0,0,.2), 0 2px 4px rgba(0,0,0,.2);
  text-shadow: 0 -1px 0 rgba(0,0,0,.25);
}
.card-head h1 { margin: 0; font-size: 22px; font-weight: 700; color: #2c2c2c; letter-spacing: -.01em; }
.card-head p { margin: 2px 0 0; color: #6c6c6c; }
.fields { display: grid; grid-template-columns: 110px 1fr; gap: 7px 14px; align-items: baseline; }
.fields dt { text-align: right; color: #8f8f8f; font-size: 11px; font-weight: 700; }
.fields dd { margin: 0; color: #222; }
.fields a { color: #2a5db0; text-decoration: none; }
.fields a:hover { text-decoration: underline; }
.fields .summary { max-width: 52ch; }

/* ---------------- Notes (Experience) ---------------- */
.notes { display: grid; grid-template-columns: 210px 1fr; height: 100%; background: #6b4426; }
.notes .list {
  background: #f8f5ea; border-right: 1px solid #b19b6c; overflow: auto;
  box-shadow: inset -6px 0 10px -8px rgba(0,0,0,.4);
}
.notes .list .head {
  padding: 8px 12px; font-size: 11px; color: #7a6a48; font-weight: 700;
  background: linear-gradient(#efe8d4, #e2d7bb); border-bottom: 1px solid #c9b88f;
}
.notes .list button {
  display: block; width: 100%; text-align: left; padding: 9px 12px;
  border-bottom: 1px solid #e3dac3; font-size: 12px;
}
.notes .list button b { display: block; font-size: 13px; color: #3a2e18; }
.notes .list button span { color: #8a7c5e; }
.notes .list button[aria-selected="true"] { background: linear-gradient(#f9e48a, #f2d35c); }
.notes .paper {
  position: relative; overflow: auto;
  padding: 18px 26px 26px 54px;
  font: 17px/26px var(--font-marker);
  color: #2b2410;
  background:
    linear-gradient(90deg, transparent 0 40px, rgba(214, 75, 75, .5) 40px 41px, transparent 41px 44px, rgba(214, 75, 75, .5) 44px 45px, transparent 45px),
    repeating-linear-gradient(to bottom, transparent 0 25px, rgba(130, 170, 210, .55) 25px 26px),
    linear-gradient(#fff6b8, #fbec93);
  background-attachment: local;
  background-position: 0 0, 0 18px, 0 0;
}
.notes .paper .date { font-family: var(--font-mac); font-size: 11px; color: #a08a4a; text-align: center; line-height: 26px; }
.notes .paper h2 { margin: 0; font-size: 22px; line-height: 26px; font-weight: 400; }
.notes .paper h3 { margin: 26px 0 0; font-size: 17px; line-height: 26px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.notes .paper p, .notes .paper ul { margin: 0; }
.notes .paper ul { padding-left: 18px; }
.notes .paper li::marker { content: "-  "; }
.notes .paper a { color: #1a4fa8; }
.notes .paper .apps { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.notes .paper .apps a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.notes .paper .apps img { width: 26px; height: 26px; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.35); }

/* ---------------- System Preferences (Skills) ---------------- */
.prefs { background: #ececec; min-height: 100%; }
.prefs .row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 14px 18px; }
.prefs .row + .row { border-top: 1px solid #d3d3d3; background: #e4e4e4; }
.pref-tile { display: grid; justify-items: center; gap: 6px; padding: 8px 4px; border-radius: 6px; font-size: 11.5px; text-align: center; }
.pref-tile:hover { background: rgba(0,0,0,.06); }
.pref-tile:focus-visible { outline: 3px solid rgba(80, 150, 255, .6); }
.pref-pane { padding: 18px 26px 24px; }
.pref-pane h2 { margin: 0 0 4px; font-size: 13px; }
.pref-pane .box {
  margin-top: 10px; padding: 10px 16px;
  background: #e3e3e3; border-radius: 5px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.25), 0 1px 0 rgba(255,255,255,.8);
  columns: 2; column-gap: 24px;
}
.check-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; break-inside: avoid; font-size: 12.5px; }
.aqua-check {
  width: 14px; height: 14px; border-radius: 3px; flex: none; position: relative;
  background: linear-gradient(#a9d0ff, #5ba2f5 50%, #2f86f0 51%, #6fb5ff);
  box-shadow: 0 0 0 1px rgba(10, 50, 120, .6), inset 0 1px 0 rgba(255,255,255,.6);
}
.aqua-check::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(40deg); filter: drop-shadow(0 -1px 0 rgba(0,0,0,.3)); }

/* pref-pane icons (glossy orbs) */
.orb { --s: 34px; width: var(--s); height: var(--s); border-radius: 50%; position: relative; display: grid; place-items: center;
  font: 700 13px/1 var(--font-ios); color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.35);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.45);
}
.orb::after { content: ""; position: absolute; left: 16%; right: 16%; top: 5%; height: 45%; border-radius: 50%; background: linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,.08)); }
.orb.o-kmp { background: linear-gradient(135deg, #8f5df2, #e46c3a); }
.orb.o-android { background: radial-gradient(circle at 50% 70%, #a6e05c, #5d9a1f); }
.orb.o-ios { background: radial-gradient(circle at 50% 70%, #9bd2ff, #2a7ad8); }
.orb.o-data { background: radial-gradient(circle at 50% 70%, #ffd06a, #d98a0e); }
.orb.o-backend { background: radial-gradient(circle at 50% 70%, #7fd7c6, #20806f); }
.orb.o-bots { background: radial-gradient(circle at 50% 70%, #8ad4ff, #1f8bd0); }
.orb.o-pay { background: radial-gradient(circle at 50% 70%, #b6e37a, #4f9a22); }
.orb.o-lang { background: radial-gradient(circle at 50% 70%, #ff9c8a, #c7382a); }
.orb.o-release { background: radial-gradient(circle at 50% 70%, #c7cbd1, #5d636b); }
.orb.o-practice { background: radial-gradient(circle at 50% 70%, #f6a8d2, #b8467d); }

/* ---------------- App Store ---------------- */
.store { background: linear-gradient(#f7f7f7, #ececec 220px); min-height: 100%; padding: 18px 22px 24px; }
.store h2 { margin: 0 0 12px; font-size: 15px; color: #333; }
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.store-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px;
  background: #fff; border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
}
.store-card .app-icon { width: 96px; height: 96px; border-radius: 20px; overflow: hidden; position: relative; box-shadow: 0 3px 6px rgba(0,0,0,.35); }
.store-card .app-icon img { width: 100%; height: 100%; object-fit: cover; }
.store-card .app-icon::after { content: ""; position: absolute; left: -20%; right: -20%; top: -55%; height: 100%; border-radius: 50%; background: linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.04)); }
.store-card h3 { margin: 2px 0 0; font-size: 15px; }
.store-card .seller { color: #888; font-size: 11.5px; }
.store-card p { margin: 6px 0 10px; font-size: 12px; color: #444; }
.store-card .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.store .company { margin-top: 18px; font-size: 11.5px; color: #888; }

/* ---------------- Bookshelf (Education) ---------------- */
.shelf {
  min-height: 100%;
  padding: 26px 28px;
  background:
    linear-gradient(transparent 0 calc(100% - 22px), #4a2a12 calc(100% - 22px)),
    repeating-linear-gradient(92deg, rgba(0,0,0,.06) 0 3px, transparent 3px 9px),
    linear-gradient(#b27a45, #8c5a2c);
  display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: start;
  color: #fff8ee;
}
.book {
  width: 150px; height: 210px; border-radius: 3px 8px 8px 3px; position: relative;
  background:
    linear-gradient(90deg, rgba(0,0,0,.3) 0 9px, rgba(255,255,255,.15) 9px 10px, transparent 10px),
    linear-gradient(#20406e, #12284a);
  box-shadow: 4px 0 0 #efe6d0, 5px 1px 0 #d8cdb3, 8px 8px 14px rgba(0,0,0,.5);
  padding: 22px 14px 14px 22px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.book .crest { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #d9b45a; display: grid; place-items: center; color: #d9b45a; font: 700 15px/1 Georgia, serif; }
.book .t { font: 700 13px/1.25 Georgia, "Times New Roman", serif; color: #ecd28a; }
.book .y { font: 11px/1 var(--font-mac); color: #c7b27a; }
.edu-text { text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.edu-text h2 { margin: 0 0 2px; font-size: 18px; }
.edu-text .sub { opacity: .85; margin-bottom: 14px; }
.edu-text dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.edu-text dt { opacity: .7; font-size: 11px; font-weight: 700; padding-top: 2px; }
.edu-text dd { margin: 0; }
.edu-text .langs { margin-top: 18px; }

/* ---------------- Mail compose ---------------- */
.compose { background: #fff; height: 100%; display: flex; flex-direction: column; }
.compose label { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-bottom: 1px solid #e2e2e2; color: #888; font-size: 12.5px; }
.compose label span { width: 62px; text-align: right; flex: none; }
.compose input, .compose textarea { font: 13px/1.45 var(--font-mac); color: #111; border: 0; outline: none; background: transparent; flex: 1; min-width: 0; }
.compose .fixed { color: #111; }
.compose .token { background: linear-gradient(#e2ebfa, #c9daf6); border: 1px solid #9db7e3; border-radius: 10px; padding: 0 8px; color: #1d3f7c; }
.compose textarea { padding: 12px 14px; resize: none; flex: 1; user-select: text; -webkit-user-select: text; }
.compose input:focus-visible, .compose textarea:focus-visible { box-shadow: inset 0 0 0 2px rgba(80, 150, 255, .5); border-radius: 3px; }
.compose .hint { padding: 6px 14px 10px; font-size: 11.5px; color: #666; }

/* About This Site sheet */
.about-site { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 22px 26px 18px; background: #ececec; height: 100%; }
.about-site .icon { --s: 72px; }
.about-site h2 { margin: 6px 0 0; font-size: 15px; }
.about-site p { margin: 0; font-size: 12px; color: #444; max-width: 38ch; }

/* ---------------- Dock ---------------- */
.dock-wrap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; z-index: 8000; pointer-events: none; }
.dock { position: relative; display: flex; align-items: flex-end; gap: 2px; padding: 0 14px 12px; pointer-events: auto; }
.dock::before { /* the glass shelf */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38px; z-index: -1;
  transform: perspective(240px) rotateX(48deg); transform-origin: 50% 100%;
  background: linear-gradient(rgba(235, 240, 250, .7), rgba(180, 192, 212, .62) 70%, rgba(130, 140, 160, .75));
  border: 1px solid rgba(255,255,255,.55);
  border-bottom-color: rgba(255,255,255,.8);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 6px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.65);
}
.dock::after { /* front edge */
  content: ""; position: absolute; left: -3px; right: -3px; bottom: -4px; height: 5px; z-index: -1;
  background: linear-gradient(rgba(255,255,255,.75), rgba(170,180,200,.6));
  border-radius: 1px;
  box-shadow: 0 2px 4px rgba(0,0,0,.4);
}
.dock-item { position: relative; display: grid; justify-items: center; padding: 0 3px; }
.dock-item .icon {
  --s: 56px;
  transition: transform .18s var(--ease-out);
  transform-origin: 50% 100%;
  -webkit-box-reflect: below 1px linear-gradient(transparent 62%, rgba(255,255,255,.28));
  position: relative; z-index: 1;
}
.dock-item:active .icon { filter: brightness(.7); }
.dock-item .tip {
  position: absolute; bottom: calc(100% + 20px); left: 50%; transform: translateX(-50%);
  padding: 2px 11px; border-radius: 12px; white-space: nowrap;
  background: rgba(30, 30, 30, .78); color: #fff; font-size: 13px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25);
  opacity: 0; transition: opacity .12s; pointer-events: none;
  z-index: 5;
}
.dock-item:hover .tip, .dock-item:focus-visible .tip { opacity: 1; }
.dock-item:focus-visible { outline: none; }
.dock-item:focus-visible .icon { filter: brightness(1.15) drop-shadow(0 0 6px rgba(140, 190, 255, .9)); }
.dock-item .lamp {
  position: absolute; bottom: -9px; width: 6px; height: 4px; border-radius: 50%;
  background: radial-gradient(#fff, rgba(140, 200, 255, .9) 40%, transparent 72%);
  box-shadow: 0 0 6px 2px rgba(120, 190, 255, .75);
  opacity: 0; transition: opacity .2s;
}
.dock-item.running .lamp { opacity: 1; }
.dock-item.bounce .icon { animation: dockBounce .5s ease-in-out 2; }
@keyframes dockBounce { 50% { transform: translateY(-22px); } }
.dock-sep { width: 1px; align-self: stretch; margin: 6px 6px 0; background: linear-gradient(transparent, rgba(255,255,255,.65)); }

/* toast (Growl-ish HUD) */
.hud {
  position: absolute; right: 18px; top: 36px; z-index: 9500;
  padding: 10px 16px; border-radius: 10px;
  background: rgba(20, 20, 20, .8); color: #fff; font-size: 13px;
  box-shadow: 0 6px 18px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.18);
  animation: hudIn .25s var(--ease-out);
}
@keyframes hudIn { from { opacity: 0; transform: translateY(-6px); } }

.pref-ico { width: 40px; height: 40px; }
.pref-pane .pref-ico { width: 36px; height: 36px; }

.compose .token { white-space: nowrap; }
/* narrow desktops: windows need the room more than the desktop widgets do */
@media (max-width: 1099px) { .stickie, .widget-clock { display: none; } }
