:root {
  --xp-blue: #1662d7;
  --xp-dark-blue: #0a4bc1;
  --xp-light-blue: #dfebff;
  --xp-luna-blue: #2d73df;
  --xp-border: #0b4a9c;
  --xp-white: #fff;
  --xp-gray: #ece9d8;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: #000;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 70%, rgba(255, 255, 255, 0.25) 0 3px, transparent 4px),
    linear-gradient(135deg, #61a9dd 0%, #3d91ce 55%, #2675b7 100%);
}

button,
input,
textarea {
  font-family: inherit;
}

button {
  color: #000;
}

.desktop {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.window {
  width: min(980px, calc(100vw - 56px));
  height: min(680px, calc(100vh - 56px));
  min-height: 420px;
  display: grid;
  grid-template-rows: 32px 24px 42px minmax(0, 1fr) 24px;
  overflow: hidden;
  border: 1px solid #083a82;
  border-radius: 8px 8px 2px 2px;
  background: #ece9d8;
  box-shadow: 0 10px 28px rgba(0, 51, 102, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 4px 3px 7px;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 1px #174f9b;
  background:
    linear-gradient(180deg, #0d64de 0, #1768df 48%, #3a90ef 52%, #0b53c1 100%);
  border-radius: 7px 7px 0 0;
}

.title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.title-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 12px;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.25));
}

.window-controls {
  display: flex;
  gap: 3px;
}

.window-controls button {
  width: 22px;
  height: 20px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 3px;
  color: #fff;
  font: bold 13px Arial, sans-serif;
  line-height: 15px;
  background: linear-gradient(135deg, #69aff9 0 45%, #1b65cc 46%);
  box-shadow: inset -1px -1px 1px #073d96, inset 1px 1px 1px #dff1ff;
}

.window-controls .close {
  background: linear-gradient(135deg, #ff9d80 0 45%, #dd3a1b 46%);
}

.menubar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 6px;
  background: #ece9d8;
  border-bottom: 1px solid #aca899;
}

.menubar button {
  height: 21px;
  border: 0;
  background: transparent;
}

.menubar button:hover {
  background: #316ac5;
  color: #fff;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  background: #ece9d8;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #aca899;
}

.toolbar button {
  width: 31px;
  height: 31px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  font-size: 18px;
}

.toolbar button:hover {
  border-color: #91b4dd;
  background: #fff;
}

.address {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 5px;
}

.address > span {
  color: #555;
}

.address > div {
  height: 25px;
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  padding: 2px 6px;
  background: #fff;
  border: 1px solid #7f9db9;
  box-shadow: inset 1px 1px 2px #c6c6c6;
}

.address-icon {
  flex: none;
}

#addressText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content {
  min-height: 0;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  background: #fff;
}

.sidebar {
  padding: 12px 8px;
  overflow: auto;
  background:
    linear-gradient(180deg, #7ba2ea 0, #dbe7ff 110px, #fff 100%);
}

.sidebar-panel {
  overflow: hidden;
  border: 1px solid #91aedd;
  border-radius: 5px;
  background: #fff;
  box-shadow: 1px 1px 2px rgba(63, 103, 157, 0.18);
}

.sidebar-panel h2 {
  margin: 0;
  padding: 7px 9px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(90deg, #2155d2, #78a1ed);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  padding: 7px;
}

.sidebar-links button {
  border: 0;
  padding: 5px 3px;
  text-align: left;
  color: #215dc6;
  background: transparent;
  cursor: pointer;
}

.sidebar-links button:hover {
  color: #4a72b5;
  text-decoration: underline;
}

.main-area {
  min-width: 0;
  overflow: auto;
  padding: 26px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(45deg, #edf4ff 0 1px, #fff 1px 12px);
}

.view-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d7d2c4;
}

.view-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #c1bca7;
  background: linear-gradient(135deg, #fff 0, #ece9d8 100%);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.12);
  font-size: 28px;
}

.view-header h1 {
  margin: 0;
  color: #0046b8;
  font-size: 20px;
}

.view-header p {
  margin: 4px 0 0;
  color: #555;
}

.info-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid #b9b69f;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 2px 2px 0 #dedbd0;
}

.card h2,
.card h3 {
  margin: 0;
  padding: 8px 10px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(90deg, #2d73df, #78a1e8);
}

.card-body {
  padding: 12px;
  line-height: 1.55;
}

.card a {
  color: #1555c2;
}

.skills-list {
  display: grid;
  gap: 10px;
}

.skill-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.progress {
  height: 14px;
  border: 1px solid #777;
  background: #fff;
  box-shadow: inset 1px 1px 2px #aaa;
}

.progress span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, #54a6ef 0 9px, #2d73d4 9px 11px);
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 5px;
  background: #ece9d8;
  border-top: 1px solid #fff;
  color: #444;
}

.resize-grip {
  width: 13px;
  height: 13px;
  border-right: 2px solid #8a8676;
  border-bottom: 2px solid #8a8676;
  background: linear-gradient(135deg, transparent 40%, #fff 41% 52%, #8a8676 53% 64%, transparent 65%);
}

@media (max-width: 720px) {
  .desktop {
    padding: 10px;
  }

  .window {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
  }

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

  .sidebar {
    display: none;
  }

  .main-area {
    padding: 18px;
  }

  .menubar button {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .toolbar button {
    display: none;
  }

  .address {
    margin-left: 0;
  }

  .main-area {
    padding: 12px;
  }
}
