:root {
  --blue-950: #08285f;
  --blue-850: #0d429d;
  --blue-700: #1d65c8;
  --blue-550: #2d8ce6;
  --blue-250: #b7dcff;
  --green-700: #207b24;
  --green-500: #55b245;
  --aqua-200: #b9eff6;
  --cream: #f4f1df;
  --paper: #fbfbf6;
  --panel: #ece9d8;
  --line: #aaa898;
  --line-dark: #7b7c70;
  --ink: #101824;
  --muted: #4f6074;
  --shadow: rgba(0, 0, 0, 0.34);
  --wallpaper-dim: 18%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Tahoma, Verdana, Segoe UI, Arial, sans-serif;
  font-size: 14px;
  background:
    linear-gradient(rgba(10, 35, 90, 0.08), rgba(8, 33, 82, 0.18)),
    url("assets/retro-wallpaper.png") center / cover fixed no-repeat;
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: #0a4ea5;
}

.desktop {
  --taskbar-height: 44px;
  min-height: 100vh;
  position: relative;
  padding: 58px 18px calc(var(--taskbar-height) + 14px);
  overflow: hidden;
  isolation: isolate;
}

.desktop::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: rgb(0 20 58 / var(--wallpaper-dim));
}

.desktop::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: soft-light;
}

.desktop-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 62% 38%, transparent 0 42%, rgba(0, 0, 0, 0.14) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.16), transparent 22%);
}

.desktop-topbar {
  height: 42px;
  position: fixed;
  top: 10px;
  left: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 8px 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 7px;
  color: #ffffff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.28), transparent 54%),
    rgba(12, 58, 133, 0.72);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.34),
    0 12px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.workspace-brand,
.start-menu-header {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.workspace-brand strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(90deg, #f4554e 0 50%, #47b75a 50%),
    linear-gradient(#4d91ef 0 50%, #f0d14c 50%);
  background-blend-mode: screen;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.workspace-contact {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-shortcuts {
  width: 92px;
  position: fixed;
  top: 76px;
  left: 18px;
  z-index: 3;
  display: grid;
  gap: 16px;
}

.shortcut {
  width: 82px;
  min-height: 74px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 5px 4px;
  color: #ffffff;
  background: transparent;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.84);
  cursor: pointer;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.shortcut:hover,
.shortcut:focus-visible {
  outline: 0;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(12, 74, 154, 0.34);
  transform: translateY(-1px);
}

.shortcut-icon,
.titlebar-icon,
.taskbar-icon {
  position: relative;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.8),
    1px 1px 0 rgba(0, 0, 0, 0.22);
}

.shortcut-icon {
  width: 42px;
  height: 34px;
}

.folder-icon {
  border-color: #b88200;
  background: linear-gradient(#ffe07b 0 33%, #f4ac24 33% 100%);
}

.folder-icon::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 5px;
  width: 20px;
  height: 9px;
  border: 1px solid #b88200;
  border-bottom: 0;
  background: #fff0a1;
}

.doc-icon {
  border-color: #67748d;
  background:
    linear-gradient(135deg, transparent 0 12px, #dbe8ff 12px),
    repeating-linear-gradient(to bottom, #ffffff 0 6px, #e5ecf6 6px 8px);
}

.app-icon {
  background:
    linear-gradient(135deg, #3e91ee 0 48%, #efca42 49%),
    linear-gradient(90deg, #e84c4c 0 50%, #45a864 50%);
  background-blend-mode: screen;
}

.settings-icon {
  border-radius: 4px;
  background:
    radial-gradient(circle at center, #ffffff 0 18%, transparent 19%),
    conic-gradient(#b8c0cc 0 12%, #596678 12% 24%, #b8c0cc 24% 36%, #596678 36% 48%, #b8c0cc 48% 60%, #596678 60% 72%, #b8c0cc 72% 84%, #596678 84%);
}

.terminal-icon {
  border-color: #172315;
  background:
    linear-gradient(#64f27b 0 0) 9px 10px / 14px 3px no-repeat,
    linear-gradient(#64f27b 0 0) 20px 20px / 12px 3px no-repeat,
    #141d19;
}

.paint-icon {
  border-color: #4b5563;
  background:
    radial-gradient(circle at 28% 34%, #e84f5f 0 4px, transparent 5px),
    radial-gradient(circle at 54% 24%, #f2b705 0 4px, transparent 5px),
    radial-gradient(circle at 70% 48%, #2f9e44 0 4px, transparent 5px),
    radial-gradient(circle at 42% 64%, #4c6ef5 0 4px, transparent 5px),
    #f8fafc;
  border-radius: 50% 50% 46% 54%;
}

.contact-icon {
  border-color: #36649a;
  background:
    linear-gradient(145deg, transparent 0 48%, rgba(0, 0, 0, 0.12) 49%),
    linear-gradient(#ffffff 0 28%, #b9dcff 29% 100%);
}

.contact-icon::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 8px;
  height: 10px;
  border: 2px solid #36649a;
  border-top: 0;
  transform: rotate(0deg) skewY(-18deg);
}

.fluid-icon {
  border-color: #1f6f8b;
  background:
    radial-gradient(circle at 34% 66%, rgba(255, 255, 255, 0.82) 0 4px, transparent 5px),
    radial-gradient(circle at 68% 44%, rgba(255, 255, 255, 0.68) 0 3px, transparent 4px),
    linear-gradient(180deg, transparent 0 40%, #39b8f2 41% 100%),
    #e8fbff;
  border-radius: 4px 4px 12px 12px;
}

.fluid-icon::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: -5px;
  height: 8px;
  border: 1px solid #1f6f8b;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #e8fbff;
}

.black-hole-icon {
  border-color: #1c1b36;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #050509 0 20%, transparent 21%),
    conic-gradient(from 18deg, #6cf2ff, #3a63ff, #ee4dd0, #ffbe52, #6cf2ff);
}

.black-hole-icon::before {
  content: "";
  position: absolute;
  inset: 19%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.aquarium-icon {
  border-color: #176074;
  border-radius: 5px 5px 9px 9px;
  background:
    radial-gradient(circle at 25% 24%, rgba(255, 255, 255, 0.78) 0 3px, transparent 4px),
    linear-gradient(#d9fbff 0 18%, #56c7e6 19% 100%);
}

.aquarium-icon::before {
  content: "";
  position: absolute;
  left: 20%;
  top: 48%;
  width: 44%;
  height: 22%;
  border-radius: 60% 42% 42% 60%;
  background: #f2b447;
  box-shadow: 13px -7px 0 -5px #ff7066;
}

.aquarium-icon::after {
  content: "";
  position: absolute;
  left: 58%;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #f2b447;
}

.portal-icon {
  border-color: #432776;
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 35% 50%, #101824 0 16%, transparent 17%),
    radial-gradient(ellipse at 70% 50%, #101824 0 16%, transparent 17%),
    linear-gradient(135deg, #7be9ff, #8758ff 48%, #ff8ec7);
}

.portal-icon::before,
.portal-icon::after {
  content: "";
  position: absolute;
  top: 25%;
  width: 28%;
  height: 50%;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(67, 39, 118, 0.3);
}

.portal-icon::before {
  left: 16%;
}

.portal-icon::after {
  right: 16%;
}

.window-layer {
  position: fixed;
  inset: 58px 12px calc(var(--taskbar-height) + 8px) 118px;
  z-index: 2;
}

.app-window {
  min-width: 330px;
  min-height: 260px;
  position: absolute;
  display: grid;
  grid-template-rows: auto auto 1fr;
  border: 1px solid #0646a5;
  border-radius: 8px 8px 3px 3px;
  background: var(--panel);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  overflow: hidden;
  transform-origin: 50% 100%;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease,
    opacity 180ms ease,
    filter 180ms ease;
}

.app-window.is-active {
  box-shadow:
    0 30px 86px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.app-window:not(.is-active) {
  filter: saturate(0.92) brightness(0.96);
}

.app-window.is-opening {
  animation: window-in 260ms cubic-bezier(0.2, 0.9, 0.22, 1);
}

.app-window.is-closing {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
}

.app-window.is-minimized {
  pointer-events: none;
  opacity: 0;
  transform: translateY(70px) scale(0.86);
}

.app-window.is-maximized {
  border-radius: 8px 8px 3px 3px;
}

@keyframes window-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.titlebar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 8px 6px 12px;
  color: #ffffff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.48), transparent 45%),
    linear-gradient(90deg, #0b3d96, #2d87ec 56%, #63b5ff);
  border-bottom: 1px solid #0646a5;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.44);
  user-select: none;
  cursor: grab;
}

.app-window.is-active .titlebar {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent 45%),
    linear-gradient(90deg, #073184, #2d87ec 56%, #69c5ff);
}

.titlebar:active {
  cursor: grabbing;
}

.titlebar-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.titlebar h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.titlebar-icon,
.taskbar-icon {
  width: 18px;
  height: 18px;
}

.window-controls {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}

.window-controls button {
  width: 23px;
  height: 22px;
  border: 1px solid rgba(0, 0, 0, 0.42);
  border-radius: 3px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.1) 45%, rgba(0, 0, 0, 0.16)),
    #2f84df;
  position: relative;
  cursor: pointer;
}

.window-controls button:hover {
  filter: brightness(1.12);
}

.window-controls button:nth-child(1)::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 2px;
  background: #ffffff;
}

.window-controls button:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: 5px 6px 6px;
  border: 2px solid #ffffff;
}

.window-controls button:nth-child(3) {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.06) 45%, rgba(0, 0, 0, 0.2)),
    #d9442f;
}

.window-controls button:nth-child(3)::before,
.window-controls button:nth-child(3)::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 5px;
  width: 12px;
  height: 2px;
  background: #ffffff;
}

.window-controls button:nth-child(3)::before {
  transform: rotate(45deg);
}

.window-controls button:nth-child(3)::after {
  transform: rotate(-45deg);
}

.menubar {
  display: flex;
  gap: 2px;
  padding: 3px 6px;
  background: #f4f1df;
  border-bottom: 1px solid #c7c5b2;
  overflow: visible;
  position: relative;
  z-index: 3;
}

.menubar button {
  border: 1px solid transparent;
  padding: 3px 9px;
  color: #111a28;
  background: transparent;
  cursor: pointer;
}

.menubar button:hover,
.menubar button:focus-visible {
  border-color: #9ab6df;
  outline: 0;
  background: #dbeafe;
}

.menu-group {
  position: relative;
}

.menu-popover {
  min-width: 154px;
  position: absolute;
  left: 0;
  top: calc(100% + 3px);
  z-index: 20;
  display: grid;
  border: 1px solid #888575;
  background: #f6f3e4;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    0 12px 28px rgba(0, 0, 0, 0.26);
}

.menu-popover button {
  width: 100%;
  min-height: 28px;
  border: 0;
  border-bottom: 1px solid #d1d0be;
  padding: 5px 12px;
  text-align: left;
  white-space: nowrap;
}

.menu-popover button:last-child {
  border-bottom: 0;
}

.resize-handle {
  position: absolute;
  z-index: 4;
}

.resize-n,
.resize-s {
  left: 12px;
  right: 12px;
  height: 8px;
  cursor: ns-resize;
}

.resize-n {
  top: -4px;
}

.resize-s {
  bottom: -4px;
}

.resize-e,
.resize-w {
  top: 48px;
  bottom: 8px;
  width: 8px;
  cursor: ew-resize;
}

.resize-e {
  right: -4px;
}

.resize-w {
  left: -4px;
}

.resize-ne,
.resize-nw,
.resize-se,
.resize-sw {
  width: 16px;
  height: 16px;
}

.resize-ne {
  top: -5px;
  right: -5px;
  cursor: nesw-resize;
}

.resize-nw {
  top: -5px;
  left: -5px;
  cursor: nwse-resize;
}

.resize-se {
  right: -5px;
  bottom: -5px;
  cursor: nwse-resize;
}

.resize-sw {
  left: -5px;
  bottom: -5px;
  cursor: nesw-resize;
}

.app-window.is-resizing {
  user-select: none;
}

.is-window-interacting iframe {
  pointer-events: none;
}

.window-content {
  min-height: 0;
  padding: 16px;
  overflow: auto;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #ffffff, #a6aaa2) border-box;
}

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #b2b6aa;
  background: linear-gradient(#fbfbf4, #e8e4cf);
  box-shadow: inset 1px 1px 0 #ffffff;
}

.app-toolbar h1,
.profile-panel h2,
.about-copy h2,
.project-editor h2,
.project-detail h2,
.settings-panel h2 {
  margin: 0;
}

.app-toolbar h1 {
  font-size: 24px;
}

.app-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 3px;
  color: #245f9f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.toolbar-actions,
.contact-row,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.retro-button,
.project-actions a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #8d8a79;
  border-radius: 2px;
  padding: 5px 12px;
  color: #15243a;
  background: linear-gradient(#ffffff, #d8d3bb);
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #9c9887;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 120ms ease,
    filter 120ms ease;
}

.retro-button.primary {
  color: #ffffff;
  border-color: #0d5a14;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.42), transparent 48%),
    linear-gradient(#68bf54, #238229);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

.retro-button:hover,
.project-actions a:hover {
  filter: brightness(1.04);
}

.retro-button:active,
.project-actions a:active {
  box-shadow:
    inset -1px -1px 0 #ffffff,
    inset 1px 1px 0 #8d8a79;
  transform: translate(1px, 1px);
}

.about-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 16px;
}

.profile-panel,
.resume-block,
.project-card,
.status-grid article,
.settings-panel,
.project-editor,
.project-detail,
.empty-state {
  min-width: 0;
  border: 1px solid #b2b6aa;
  background: linear-gradient(#ffffff, #f0f2ea);
  box-shadow:
    inset 1px 1px 0 #ffffff,
    1px 1px 0 rgba(0, 0, 0, 0.08);
}

.profile-panel {
  padding: 18px;
  overflow-wrap: break-word;
}

.avatar {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid #7c9fd6;
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.95) 0 18%, transparent 19%),
    linear-gradient(145deg, #4c96ed, #70c56a);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.65),
    inset -2px -2px 0 rgba(0, 0, 0, 0.14);
}

.avatar span {
  margin-top: 34px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.46);
}

.role {
  margin: 5px 0 16px;
  color: #405064;
  font-weight: 700;
}

.info-list {
  margin: 0;
  border: 1px solid #c8cabb;
  background: #fbfbf5;
}

.info-list div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  border-bottom: 1px solid #d7d9cd;
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list dt,
.info-list dd {
  margin: 0;
  padding: 8px;
}

.info-list dt {
  color: #36495f;
  font-weight: 700;
  background: #e9eef9;
}

.about-copy {
  min-width: 0;
  padding: 6px 2px;
}

.about-copy p {
  max-width: 74ch;
  line-height: 1.62;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-heading span {
  width: 28px;
  height: 28px;
  border: 1px solid #477dbb;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.08)),
    #5fa7f1;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.status-grid article {
  padding: 14px;
}

.status-grid h3,
.resume-block h3,
.project-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.status-grid p,
.project-card p {
  margin: 0 0 12px;
  line-height: 1.45;
}

.meter {
  height: 16px;
  padding: 2px;
  border: 1px solid #8e9aa7;
  background: #ffffff;
}

.meter span {
  display: block;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.28) 0 7px,
      transparent 7px 10px
    ),
    linear-gradient(#7bd36b, #249748);
}

.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}

.resume-main,
.resume-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.resume-block {
  padding: 14px;
}

.resume-block p {
  line-height: 1.58;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  padding-left: 14px;
  border-left: 4px solid #2f84df;
}

.timeline-item strong,
.timeline-item span,
.timeline-item time {
  display: block;
}

.timeline-item span,
.timeline-item time {
  color: #536276;
}

.timeline-item p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
}

.skill-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.tag-cloud,
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-cloud span,
.project-meta span {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border: 1px solid #aeb5b6;
  border-radius: 2px;
  padding: 2px 8px;
  background: #eff7f8;
}

.resume-document {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid #b2b6aa;
  padding: 24px;
  background: #ffffff;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    1px 1px 0 rgba(0, 0, 0, 0.08);
}

.resume-contact {
  border-bottom: 2px solid #d9ddcf;
  padding-bottom: 14px;
  text-align: center;
}

.resume-contact h2,
.resume-contact p,
.resume-section h3,
.resume-company,
.resume-entry p {
  margin: 0;
}

.resume-contact h2 {
  font-size: 26px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.resume-contact p {
  margin-top: 4px;
  color: #445367;
}

.resume-section {
  display: grid;
  gap: 12px;
}

.resume-section h3 {
  border-bottom: 1px solid #c8cabb;
  padding-bottom: 5px;
  color: #1b4f8f;
  font-size: 16px;
  text-transform: uppercase;
}

.resume-entry,
.resume-role,
.resume-bullet-group {
  display: grid;
  gap: 8px;
}

.resume-entry {
  gap: 12px;
}

.resume-company {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
}

.resume-company strong,
.resume-entry-heading strong {
  color: #111a28;
}

.resume-company span,
.resume-entry-heading time {
  color: #536276;
}

.resume-entry-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
}

.resume-entry-heading span,
.resume-entry-heading time {
  display: block;
}

.resume-group-heading {
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

.resume-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 21px;
  line-height: 1.48;
}

.app-window-iframe .window-content {
  padding: 0;
  overflow: hidden;
  background: #101824;
}

.app-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.compact-toolbar {
  margin-bottom: 12px;
}

.compact-toolbar h1 {
  margin: 0;
}

.about-resume-layout {
  display: grid;
  justify-items: center;
  align-items: start;
}

.about-resume-layout .resume-document {
  width: min(980px, 100%);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 22px;
  align-items: start;
  padding: 6px;
}

.portfolio-app {
  min-height: 112px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px 6px;
  color: #102033;
  background: transparent;
  text-align: center;
  cursor: pointer;
}

.portfolio-app:hover,
.portfolio-app:focus-visible {
  outline: 0;
  border-color: #9ab6df;
  background: #dbeafe;
}

.portfolio-app-icon {
  width: 58px;
  height: 58px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.78),
    inset -1px -1px 0 rgba(0, 0, 0, 0.18);
}

.portfolio-app span:last-child {
  line-height: 1.25;
}

.contact-window {
  display: grid;
  gap: 12px;
}

.contact-line {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #b2b6aa;
  padding: 12px;
  color: #101824;
  background: linear-gradient(#ffffff, #f0f2ea);
  text-decoration: none;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    1px 1px 0 rgba(0, 0, 0, 0.08);
}

.contact-line span {
  color: #245f9f;
  font-weight: 700;
}

.contact-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.help-modal-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 18, 54, 0.28);
  pointer-events: auto;
}

.help-modal {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  border: 1px solid #0646a5;
  border-radius: 8px 8px 3px 3px;
  padding: 18px;
  background: #f6f3e2;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.help-modal p {
  margin: 0;
  line-height: 1.5;
}

.help-modal button {
  justify-self: end;
}

.terminal-movie {
  display: none;
  margin: 8px 0 0;
  color: #9ef5a4;
  font: inherit;
  line-height: 1;
  white-space: pre;
}

.terminal-movie.is-active {
  display: block;
}

.taskbar-icon.folder-icon::before,
.titlebar-icon.folder-icon::before {
  top: -4px;
  left: 2px;
  width: 9px;
  height: 5px;
}

.taskbar-icon.contact-icon::before,
.titlebar-icon.contact-icon::before,
.taskbar-icon.fluid-icon::before,
.titlebar-icon.fluid-icon::before {
  display: none;
}

.portfolio-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 14px;
}

.portfolio-browser {
  min-width: 0;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;
  margin-bottom: 12px;
}

.search-box,
.select-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box span,
.select-box span {
  font-weight: 700;
}

.search-box input,
.select-box select,
.settings-panel input,
.settings-panel textarea,
.project-editor input,
.project-editor textarea {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  border: 1px solid #878b82;
  border-radius: 0;
  padding: 5px 8px;
  color: #102033;
  background: #ffffff;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.18);
}

textarea {
  resize: vertical;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-card {
  min-height: 174px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 1px 1px 0 #ffffff,
    0 9px 24px rgba(0, 0, 0, 0.16);
}

.project-card.is-hidden {
  display: none;
}

.project-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.project-card-body,
.project-icon {
  position: relative;
  z-index: 2;
}

.project-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.project-title-row span {
  flex: 0 0 auto;
  border: 1px solid #b5b8aa;
  padding: 2px 6px;
  color: #36506a;
  background: #f5f6ec;
}

.project-icon,
.project-icon-large {
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 4px;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.78),
    inset -1px -1px 0 rgba(0, 0, 0, 0.18);
}

.project-icon {
  width: 46px;
  height: 46px;
}

.project-icon-large {
  width: 108px;
  height: 108px;
}

.analytics-icon {
  background:
    linear-gradient(90deg, transparent 0 11px, rgba(255, 255, 255, 0.85) 11px 14px, transparent 14px),
    linear-gradient(to top, #2668bb 0 24%, #58a5f4 24% 54%, #8bd85e 54%);
}

.task-icon {
  background:
    linear-gradient(#ffffff 0 0) 12px 12px / 22px 4px no-repeat,
    linear-gradient(#ffffff 0 0) 12px 22px / 18px 4px no-repeat,
    linear-gradient(#ffffff 0 0) 12px 32px / 24px 4px no-repeat,
    #49a965;
}

.map-icon {
  background:
    radial-gradient(circle at 58% 38%, #dc3d2c 0 6px, transparent 7px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent 34%),
    #66b3ee;
}

.notebook-icon {
  background:
    repeating-linear-gradient(to bottom, #ffffff 0 5px, #cbdaf0 5px 6px),
    linear-gradient(90deg, #2d70c7 0 10px, transparent 10px);
}

.budget-icon {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 10px, #f8f8f0 11px 13px, transparent 14px),
    conic-gradient(#44a85f 0 38%, #f0c545 38% 64%, #2d86dd 64%);
}

.calendar-icon {
  background:
    linear-gradient(#d74438 0 26%, transparent 26%),
    repeating-linear-gradient(90deg, transparent 0 14px, #bdd0e8 14px 15px),
    repeating-linear-gradient(to bottom, #ffffff 0 14px, #bdd0e8 14px 15px);
}

.project-editor,
.project-detail,
.empty-state {
  padding: 14px;
}

.project-editor form,
.settings-grid,
.settings-panel {
  display: grid;
  gap: 10px;
}

.project-editor label,
.settings-panel label {
  display: grid;
  gap: 5px;
  color: #34475c;
  font-weight: 700;
}

.project-editor textarea,
.settings-panel textarea {
  min-height: 74px;
}

.project-detail {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
}

.project-detail p {
  line-height: 1.6;
}

.settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.settings-grid-appearance {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-panel {
  padding: 14px;
}

.toggle-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
}

.toggle-row input {
  width: auto;
  min-height: 0;
  box-shadow: none;
}

.terminal {
  height: 100%;
  min-height: 260px;
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid #172315;
  background: #101712;
  color: #9ef5a4;
  font-family: Consolas, "Courier New", monospace;
}

.terminal-screen {
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.terminal-screen p {
  margin: 0 0 5px;
  white-space: pre-wrap;
}

.terminal-form {
  display: flex;
  gap: 8px;
  border-top: 1px solid #254429;
  padding: 10px 12px;
}

.terminal-form input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #9ef5a4;
  background: transparent;
  font-family: inherit;
}

.start-menu {
  width: 264px;
  position: fixed;
  left: 6px;
  bottom: 48px;
  z-index: 20;
  border: 1px solid #0646a5;
  border-radius: 8px 8px 2px 2px;
  overflow: hidden;
  background: #f3f0df;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  animation: start-in 160ms ease;
}

.start-menu[hidden] {
  display: none;
}

@keyframes start-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.start-menu-header {
  padding: 12px;
  color: #ffffff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.28), transparent 48%),
    linear-gradient(90deg, #0b3d96, #2d87ec);
}

.start-menu-header span:not(.brand-mark) {
  display: block;
  opacity: 0.86;
  font-size: 12px;
}

.start-menu-body {
  display: grid;
}

.start-menu button {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #d1d0be;
  padding: 8px 12px;
  color: #15243a;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.start-menu button:hover,
.start-menu button:focus-visible {
  outline: 0;
  background: #dbeafe;
}

.taskbar {
  height: var(--taskbar-height);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.35), transparent 48%),
    linear-gradient(90deg, #0a3b96, #1e76d4 52%, #0a3b96);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 -2px 9px rgba(0, 0, 0, 0.2);
}

.start-button {
  min-width: 96px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #0d5a14;
  border-radius: 18px 6px 6px 18px;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.42), transparent 48%),
    linear-gradient(#75c95b, #207b24);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.64);
  cursor: pointer;
}

.start-button span {
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(90deg, #f4554e 0 50%, #47b75a 50%),
    linear-gradient(#4d91ef 0 50%, #f0d14c 50%);
  background-blend-mode: screen;
}

.taskbar-apps {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.taskbar-apps::-webkit-scrollbar {
  display: none;
}

.taskbar-item {
  min-width: 148px;
  max-width: 240px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 36, 96, 0.72);
  border-radius: 3px;
  padding: 0 10px;
  color: #ffffff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.28), transparent),
    #1d65c8;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.taskbar-item.is-active {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.36), transparent),
    #0e52b0;
  box-shadow:
    inset 1px 1px 3px rgba(0, 0, 0, 0.28),
    inset -1px -1px 0 rgba(255, 255, 255, 0.22);
}

.taskbar-item span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-tray {
  height: 32px;
  min-width: 144px;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  margin-left: auto;
  padding: 0 10px;
  color: #ffffff;
  border-left: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(91, 180, 236, 0.34);
}

.tray-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #82f37c;
  box-shadow: 0 0 8px #82f37c;
}

.toast-region {
  position: fixed;
  right: 14px;
  bottom: 58px;
  z-index: 25;
  display: grid;
  gap: 8px;
}

.toast {
  max-width: 320px;
  border: 1px solid #0646a5;
  border-radius: 5px;
  padding: 9px 12px;
  color: #102033;
  background: #f6f3e2;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  animation: toast-in 180ms ease;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.compact-mode .window-content {
  padding: 10px;
}

.compact-mode .app-toolbar,
.compact-mode .resume-block,
.compact-mode .profile-panel,
.compact-mode .settings-panel,
.compact-mode .project-card,
.compact-mode .project-editor {
  padding: 10px;
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 1ms !important;
  transition-duration: 1ms !important;
  scroll-behavior: auto !important;
}

@media (max-width: 1060px) {
  .window-layer {
    inset: 58px 10px calc(var(--taskbar-height) + 8px) 106px;
  }

  .about-layout,
  .about-resume-layout,
  .resume-grid,
  .portfolio-workbench,
  .settings-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    overflow: hidden;
    font-size: 13px;
  }

  .desktop {
    padding-top: 54px;
  }

  .desktop-topbar {
    left: 8px;
    right: 8px;
    top: 8px;
    gap: 8px;
  }

  .workspace-brand {
    flex: 0 1 150px;
    max-width: 38%;
  }

  .desktop-shortcuts {
    display: none;
  }

  .window-layer {
    inset: 54px 6px calc(var(--taskbar-height) + 6px);
  }

  .app-window {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    border-radius: 7px 7px 3px 3px;
  }

  .resize-handle {
    display: none;
  }

  .titlebar h2 {
    font-size: 13px;
  }

  .window-controls button {
    width: 28px;
  }

  .window-content {
    padding: 10px;
  }

  .app-toolbar,
  .filter-row,
  .timeline-item,
  .project-detail {
    grid-template-columns: 1fr;
    display: grid;
  }

  .app-toolbar h1 {
    font-size: 21px;
  }

  .toolbar-actions,
  .retro-button {
    width: 100%;
  }

  .retro-button {
    flex: 1 1 130px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .contact-line,
  .resume-entry-heading {
    grid-template-columns: 1fr;
  }

  .taskbar-item {
    min-width: 48px;
    max-width: 54px;
    justify-content: center;
  }

  .taskbar-item span:last-child {
    display: none;
  }

  .system-tray {
    min-width: 82px;
    padding: 0 6px;
  }

  .start-menu {
    width: calc(100vw - 12px);
  }
}

@media print {
  body {
    overflow: visible;
    background: #ffffff;
  }

  .desktop {
    padding: 0;
  }

  .desktop-topbar,
  .desktop-shortcuts,
  .taskbar,
  .start-menu,
  .toast-region,
  .menubar,
  .titlebar,
  .window-controls {
    display: none !important;
  }

  .window-layer {
    position: static;
    inset: auto;
  }

  .app-window {
    display: none;
  }

  .app-window:has(.resume-document) {
    display: block;
    position: static;
    width: 100% !important;
    height: auto !important;
    border: 0;
    box-shadow: none;
  }

  .window-content {
    overflow: visible;
    padding: 0;
  }
}
