:root {
  --bar: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.14);
  --stroke: rgba(255, 255, 255, 0.38);
  --ink: rgba(0, 0, 0, 0.12);
  --text: #1d1d1f;
  --muted: #3a3a3c;
  --shadow: 0 18px 50px rgba(20, 12, 40, 0.32);
  --red: #ff5f57;
  --yellow: #febc2e;
  --green: #28c840;
  --lx: 50%;
  --ly: 0%;
}

.filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.glass {
  --lg-blur: 18px;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0.16) 100%);
  backdrop-filter: blur(var(--lg-blur)) saturate(190%) brightness(1.08);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(190%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 10px 40px rgba(12, 8, 28, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 1px rgba(255, 255, 255, 0.12),
    inset 1px 0 1px rgba(255, 255, 255, 0.28),
    inset -1px 0 1px rgba(255, 255, 255, 0.16);
}

.glass::before,
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 6;
}

.glass::before {
  display: none;
}

.glass::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.1));
  mix-blend-mode: overlay;
  opacity: 0.85;
}

@supports (backdrop-filter: url(#lg-refract)) {
  .glass {
    backdrop-filter: blur(7px) saturate(200%) brightness(1.12) url(#lg-refract);
    -webkit-backdrop-filter: blur(7px) saturate(200%) brightness(1.12) url(#lg-refract);
  }

  .dock.glass {
    backdrop-filter: blur(8px) saturate(210%) brightness(1.14) url(#lg-dock);
    -webkit-backdrop-filter: blur(8px) saturate(210%) brightness(1.14) url(#lg-dock);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  overflow: hidden;
  background: #0b1a2a;
}

button,
input,
textarea {
  font: inherit;
}

.lock-screen,
.desktop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 20% 10%, #ffb37a 0%, transparent 50%),
    radial-gradient(900px 600px at 80% 20%, #7a4dff 0%, transparent 45%),
    linear-gradient(180deg, #4a7cff 0%, #c46bff 32%, #ff8a5b 58%, #2a1a4a 100%);
}

.lock-screen::after,
.desktop::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(12, 8, 28, 0.55));
  pointer-events: none;
}

.lock-screen {
  display: grid;
  place-content: start center;
  padding-top: 18vh;
  color: white;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.lock-time {
  font-size: clamp(64px, 12vw, 112px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.lock-date {
  font-size: 22px;
  opacity: 0.92;
  margin-bottom: 18vh;
}

.lock-user {
  display: grid;
  justify-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.lock-user small {
  opacity: 0.8;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fff, #c9d7ff);
  color: #31407a;
  font-weight: 700;
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.avatar.lg {
  width: 96px;
  height: 96px;
  font-size: 36px;
  flex-shrink: 0;
}

.menu-bar {
  z-index: 50;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  font-size: 13px;
  --lg-blur: 22px;
}

.menu-left,
.menu-right,
.menu-items {
  display: flex;
  align-items: center;
  gap: 14px;
}

.apple-btn,
.menu-items button {
  background: none;
  border: 0;
  padding: 0 4px;
  cursor: pointer;
  border-radius: 4px;
}

.apple-btn {
  font-size: 16px;
}

.apple-btn:hover,
.menu-items button:hover {
  background: rgba(0, 0, 0, 0.08);
}

.app-name {
  font-weight: 650;
}

.menu-clock {
  font-variant-numeric: tabular-nums;
}

.apple-menu {
  position: absolute;
  top: 36px;
  left: 8px;
  z-index: 60;
  width: 228px;
  padding: 8px;
  border-radius: 16px;
  overflow: hidden;
}

.apple-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.apple-menu button:hover {
  background: #0a84ff;
  color: white;
}

.apple-menu hr {
  border: 0;
  border-top: 1px solid var(--stroke);
  margin: 4px 6px;
}

.desktop-icons {
  position: absolute;
  top: 48px;
  right: 18px;
  display: grid;
  gap: 18px;
  z-index: 2;
}

.desk-icon {
  width: 88px;
  background: none;
  border: 0;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  font-size: 12px;
  cursor: pointer;
}

.icon-tile,
.dock-ic {
  display: block;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.icon-tile {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
}

.finder-tile,
.finder-ic {
  background:
    linear-gradient(135deg, #6ec8ff, #2b7cff 55%, #1a4fd8);
}

.safari-tile,
.safari-ic {
  background:
    conic-gradient(from 210deg, #1aa7ff, #0b5fff, #34c759, #ffd60a, #ff375f, #1aa7ff);
}

.notes-tile,
.notes-ic {
  background: linear-gradient(#fff6a8, #f4d03f);
}

.mail-tile,
.mail-ic {
  background: linear-gradient(#6ec6ff, #147afc);
}

.calendar-widget {
  position: absolute;
  top: 52px;
  left: 22px;
  width: 188px;
  padding: 14px 16px;
  border-radius: 26px;
  overflow: hidden;
  z-index: 2;
}

.w-day {
  color: #ff3b30;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.w-num {
  font-size: 52px;
  line-height: 1;
  font-weight: 600;
}

.calendar-widget ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 12px;
}

.calendar-widget li {
  display: flex;
  gap: 8px;
  margin: 6px 0;
}

.calendar-widget span {
  color: #0a84ff;
  font-weight: 600;
}

.window {
  position: absolute;
  top: 72px;
  left: 220px;
  width: min(720px, calc(100vw - 40px));
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  z-index: 10;
  --lg-blur: 24px;
}

.window.wide {
  width: min(860px, calc(100vw - 40px));
}

.window.extra-wide {
  width: min(920px, calc(100vw - 32px));
  top: 64px;
  left: 80px;
}

.window.tall {
  width: min(640px, calc(100vw - 40px));
}

.window.maximized {
  top: 28px !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100% - 28px - 80px) !important;
  border-radius: 0;
}

.window.minimized {
  transform: translateY(120vh) scale(0.2);
  opacity: 0;
  pointer-events: none;
}

.titlebar {
  height: 42px;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  cursor: grab;
  user-select: none;
}

.titlebar.dark {
  background: linear-gradient(180deg, rgba(40, 40, 44, 0.55), rgba(22, 22, 24, 0.42));
  color: #eee;
  border-color: rgba(255, 255, 255, 0.08);
}

.titlebar.safari-bar {
  grid-template-columns: 70px 1fr 16px;
}

.traffic {
  display: flex;
  gap: 8px;
  padding-left: 12px;
}

.tl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
}

.tl.close { background: var(--red); }
.tl.min { background: var(--yellow); }
.tl.max { background: var(--green); }

.title {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.omnibox {
  height: 26px;
  margin: 0 40px 0 0;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), inset 0 1px 2px rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  line-height: 26px;
  color: var(--muted);
}

.about-mac,
.finder,
.safari,
.notes,
.mail {
  background: rgba(255, 255, 255, 0.18);
}

.term {
  background: rgba(16, 16, 18, 0.55);
}

.titlebar,
.about-mac,
.finder,
.safari,
.notes,
.mail,
.term,
.apple-menu button {
  position: relative;
  z-index: 1;
}

.about-mac {
  padding: 36px 28px 28px;
  text-align: center;
}

.imac-glow {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 22px;
  background: linear-gradient(160deg, #9ad0ff, #5b8cff 40%, #c084fc);
  box-shadow: 0 12px 30px rgba(80, 80, 200, 0.35);
}

.chip {
  color: var(--muted);
  margin-top: -8px;
}

.about-mac dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  max-width: 360px;
  margin: 20px auto 0;
  text-align: left;
  font-size: 13px;
}

.about-mac dt {
  color: var(--muted);
}

.finder {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 420px;
}

.sidebar {
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.side-label {
  margin: 10px 8px 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
}

.side-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.side-item.active,
.side-item:hover {
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.finder-body {
  padding: 22px 24px 28px;
}

.profile {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.role {
  color: var(--muted);
  margin-top: -8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span,
.card-art {
  border-radius: 999px;
}

.tags span {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  font-size: 13px;
}

.row {
  background: rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 10px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.row span {
  float: right;
  color: var(--muted);
  font-size: 13px;
}

.photos,
.cards {
  display: grid;
  gap: 14px;
}

.photos {
  grid-template-columns: 1fr 1fr;
}

.ph,
.card-art {
  height: 110px;
  border-radius: 14px;
}

.p1, .a1 { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.p2, .a2 { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); }
.p3, .a3 { background: linear-gradient(135deg, #f6d365, #fda085); }
.p4 { background: linear-gradient(135deg, #cfd9df, #e2ebf0); }

.safari {
  padding: 24px;
  min-height: 380px;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

.cards article {
  background: rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cards h3,
.cards p {
  margin: 10px 14px;
}

.cards p {
  color: var(--muted);
  font-size: 13px;
}

.notes {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 320px;
}

.notes aside {
  background: rgba(255, 236, 140, 0.35);
  padding: 10px;
}

.note-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.note-item.active {
  background: rgba(255, 204, 0, 0.45);
}

.notes article {
  padding: 18px 22px;
  background: rgba(255, 252, 220, 0.28);
}

.notes time {
  color: var(--muted);
  font-size: 12px;
}

.mail {
  display: grid;
  gap: 8px;
  padding: 16px 18px 18px;
}

.mail label {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.mail input,
.mail textarea {
  border: 0;
  border-bottom: 1px solid var(--stroke);
  background: transparent;
  padding: 8px 4px;
  outline: none;
}

.mail textarea {
  min-height: 140px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.38);
}

.mail button {
  justify-self: end;
  background: #0a84ff;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
}

.term {
  margin: 0;
  min-height: 280px;
  padding: 14px 16px;
  color: #d7ffd0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  white-space: pre-wrap;
}

.dock {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 12px 10px;
  border-radius: 28px;
  --lg-blur: 20px;
}

.dock button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.dock button::before {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 10;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: white;
  background: rgba(30, 30, 34, 0.78);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 5px) scale(0.96);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.dock button:hover::before,
.dock button:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.dock-ic {
  width: 52px;
  height: 52px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.dock-ic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 42%);
  pointer-events: none;
}

.dock button:hover .dock-ic {
  transform: translateY(-10px) scale(1.18);
}

.term-ic {
  background: #1c1c1e;
  box-shadow: inset 0 0 0 2px #3a3a3c;
}

.settings-ic {
  background: conic-gradient(#c8c8cc, #8e8e93, #d1d1d6, #aeaeb2);
}

.trash-ic {
  background: linear-gradient(#f2f2f7, #c7c7cc);
}

.dock-sep {
  width: 1px;
  height: 40px;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 4px 6px;
}

.toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 16px;
  z-index: 80;
  font-size: 13px;
  overflow: hidden;
}

.avatar {
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(160%);
}

@media (max-width: 800px) {
  .finder,
  .notes,
  .cards {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .notes aside {
    display: none;
  }

  .window,
  .window.wide,
  .window.extra-wide {
    left: 12px;
    top: 44px;
  }

  .calendar-widget {
    display: none;
  }
}

/* Migrated portfolio apps */
[hidden] { display: none !important; }

.desktop-icons {
  grid-template-columns: repeat(2, 82px);
  gap: 12px 6px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  scrollbar-width: none;
}

.desktop-icons::-webkit-scrollbar { display: none; }

.desk-icon {
  display: block;
  padding: 0;
  text-align: center;
  text-decoration: none;
  line-height: 1.25;
}

.icon-tile,
.dock-ic {
  object-fit: cover;
  color: white;
  font-weight: 750;
  text-shadow: 0 1px 3px rgba(0,0,0,.28);
}

.icon-tile {
  display: grid;
  place-items: center;
  font-size: 24px;
}

.experience-tile, .experience-ic { background: linear-gradient(135deg, #f093fb, #f5576c); }
.food-tile, .food-ic { background: linear-gradient(135deg, #14b8a6, #f59e0b); }
.resume-tile, .resume-ic { background: linear-gradient(135deg, #ef4444, #f97316); font-size: 12px; }
.music-tile, .music-ic { background: #1db954; font-size: 28px; }
.shop-tile { background: linear-gradient(135deg, #111827, #10b981); font-size: 15px; }
.mail-tile, .mail-ic { display: grid; place-items: center; font-size: 25px; }
.notes-tile, .notes-ic { display: grid; place-items: center; color: #755800; font-size: 28px; text-shadow: none; }
.term-ic, .settings-ic, .trash-ic { display: grid; place-items: center; color: white; font: 700 15px ui-monospace, monospace; }
.settings-ic { font-size: 24px; color: #555; }
.trash-ic { color: #68686d; font-size: 24px; }

.window {
  max-height: calc(100vh - 126px);
}

.finder {
  min-height: 450px;
}

.finder-body,
.experience-app,
.notes article,
.food-app,
.photos-app {
  overflow: auto;
}

.finder-body {
  max-height: min(560px, calc(100vh - 170px));
}

.quick-facts {
  font-size: 13px;
  line-height: 1.65;
  color: #444;
}

.pane h2 { margin-top: 0; }
.pane h3 { margin: 22px 0 8px; font-size: 15px; }

.open-app-button {
  border: 0;
  border-radius: 9px;
  color: white;
  background: #0a84ff;
  padding: 8px 12px;
  cursor: pointer;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.photo-preview img {
  width: 100%;
  height: 125px;
  object-fit: cover;
  border-radius: 12px;
}

.experience-app {
  min-height: 420px;
  max-height: calc(100vh - 170px);
  padding: 24px;
  background: rgba(255,255,255,.22);
}

.experience-app > h2 { margin-top: 0; }

.experience-list {
  display: grid;
  gap: 11px;
}

.experience-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 15px;
  box-shadow: inset 0 1px rgba(255,255,255,.65);
}

.experience-list h3 { margin: 1px 0 5px; font-size: 15px; }
.experience-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.experience-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: white;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 7px 16px rgba(0,0,0,.13);
}

.experience-icon.blue { background: linear-gradient(135deg,#1c98f7,#0d7bd4); }
.experience-icon.green { background: linear-gradient(135deg,#43e97b,#14a98a); }
.experience-icon.purple { background: linear-gradient(135deg,#667eea,#764ba2); }
.experience-icon.pink { background: linear-gradient(135deg,#f093fb,#f5576c); }
.experience-icon.orange { background: linear-gradient(135deg,#fbbf24,#f97316); }

.notes {
  min-height: 420px;
  height: min(590px, calc(100vh - 145px));
}

.notes aside { overflow-y: auto; }

.note-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.notes article { padding: 18px 24px 34px; }
.note-content h2 { margin-top: 5px; }
.note-content h3 { margin: 18px 0 4px; font-size: 14px; }
.note-content p { line-height: 1.55; font-size: 13px; }

.contact-app {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: rgba(255,255,255,.18);
  min-height: 410px;
}

.contact-list {
  padding: 14px;
  border-right: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
}

.contact-list > a,
.contact-list > div {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px;
  color: inherit;
  text-decoration: none;
  border-radius: 11px;
}

.contact-list > a:hover { background: rgba(255,255,255,.36); }
.contact-list strong, .contact-list small { display: block; }
.contact-list small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.contact-symbol {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg,#4facfe,#0a84ff);
  color: white;
  font-weight: 700;
}

.contact-list.compact {
  border: 0;
  padding: 0;
  background: none;
}

.contact-list.compact a {
  justify-content: space-between;
  background: rgba(255,255,255,.28);
  margin: 8px 0;
}

.contact-app .mail { padding-top: 20px; }

.food-app {
  min-height: 420px;
  max-height: calc(100vh - 170px);
  padding: 24px;
  background: rgba(255,255,255,.2);
}

.food-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.food-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.food-heading h2 { margin: 4px 0 0; }
.food-heading > span { color: var(--muted); font-size: 13px; }

.food-list {
  list-style-position: inside;
  margin: 18px 0 0;
  padding: 0;
}

.food-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 9px 0;
  padding: 13px 15px;
  background: rgba(255,255,255,.36);
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 13px;
}

.food-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.food-list b { padding: 7px 9px; border-radius: 9px; color: white; background: #14a36d; }

#win-resume,
#win-music {
  display: flex;
  flex-direction: column;
  height: min(650px, calc(100vh - 126px));
  background: rgba(28, 28, 30, 0.96);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none;
}

#win-resume::after,
#win-music::after {
  display: none;
}

#win-music {
  width: min(560px, calc(100vw - 40px));
}

#win-resume > .titlebar,
#win-music > .titlebar {
  flex: 0 0 42px;
}

.resume-app {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  background: rgba(40,40,44,.38);
}
.resume-toolbar { height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: white; font-size: 13px; }
.resume-toolbar a { display: inline-block; margin-left: 8px; padding: 6px 10px; border-radius: 7px; color: white; background: #0a84ff; text-decoration: none; }
.resume-app iframe { display: block; width: 100%; height: calc(100% - 45px); border: 0; background: white; }

.photos-app {
  max-height: calc(100vh - 170px);
  padding: 16px;
  background: rgba(245,245,247,.28);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 9px;
}

.photo-grid button {
  height: 170px;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
  background: rgba(255,255,255,.25);
}

.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.photo-grid button:hover img { transform: scale(1.04); }

.music-app {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: hidden;
  padding: 14px;
  background: #121212;
}

.music-app iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 11px;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 50px;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(16px);
}

.photo-lightbox img {
  max-width: 94vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

.photo-lightbox button {
  position: fixed;
  top: 18px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(255,255,255,.18);
  font-size: 30px;
  cursor: pointer;
}

.dock { max-width: calc(100vw - 20px); }
.dock-ic { display: grid; place-items: center; }

@media (max-width: 1100px) {
  .desktop-icons { grid-template-columns: 76px; }
  .dock { gap: 5px; padding-inline: 8px; }
  .dock-ic { width: 43px; height: 43px; border-radius: 13px; }
}

@media (max-width: 800px) {
  .menu-items { display: none; }
  .desktop-icons, .calendar-widget { display: none; }

  .window,
  .window.wide,
  .window.extra-wide,
  .window.tall {
    top: 38px !important;
    left: 8px !important;
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 116px);
  }

  .finder { display: block; min-height: 0; }
  .sidebar {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.22);
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .side-label { display: none; }
  .side-item { width: auto; white-space: nowrap; }
  .finder-body { max-height: calc(100vh - 210px); padding: 16px; }
  .profile { display: block; }
  .profile .avatar { margin-bottom: 14px; }

  .notes { display: block; height: calc(100vh - 124px); }
  .notes aside {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 8px;
  }
  .note-item { min-width: 150px; }
  .notes article { height: calc(100% - 64px); }

  .contact-app { display: block; max-height: calc(100vh - 124px); overflow: auto; }
  .contact-list { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.28); }
  .experience-app, .food-app, .photos-app { max-height: calc(100vh - 124px); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .photo-grid button { height: 150px; }

  #win-resume,
  #win-music {
    height: calc(100vh - 124px);
  }

  .dock {
    justify-content: flex-start;
    overflow-x: auto;
    bottom: 8px;
    max-width: calc(100vw - 12px);
    scrollbar-width: none;
  }
  .dock::-webkit-scrollbar { display: none; }
  .dock-ic { width: 39px; height: 39px; border-radius: 11px; }
  .dock-sep { display: none; }
}
