/* Madiyar XP — desktop shell */

:root {
  --taskbar-h: 34px;
  --xp-blue: #245edb;
  --xp-blue-dark: #0f2f7f;
  --xp-face: #ece9d8;
  --link-blue: #0046d5;
  --ui-font: Tahoma, "Segoe UI", Verdana, "Helvetica Neue", Arial, sans-serif;
  --title-font: "Trebuchet MS", "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: var(--ui-font);
  font-size: 11px;
  color: #0a0a0a;
  background: #245fae;
  -webkit-font-smoothing: antialiased;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico { display: block; flex: 0 0 auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #0046d5;
  padding: 8px 12px;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

.wallpaper {
  position: fixed;
  inset: 0;
  background: #5d9fd8 url("wallpaper.svg?v=9") center center / cover no-repeat;
  z-index: 0;
}

.desktop-area {
  position: fixed;
  inset: 0 0 var(--taskbar-h) 0;
  z-index: 1;
}

/* ---------- Desktop icons ---------- */

.desktop-icons {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84px;
  grid-template-rows: repeat(auto-fill, 78px);
  align-content: start;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-icons li { margin: 0; min-width: 0; }

.desk-icon,
button.desk-icon:not(:disabled):hover,
button.desk-icon:focus {
  box-shadow: none;
}

.desk-icon {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 76px;
  padding: 5px 2px 4px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-family: var(--ui-font);
  font-size: 11px;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 1px 1px 1px rgba(0, 0, 0, 0.8);
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

.desk-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.desk-icon:focus { outline: none; }

.desk-icon-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.4));
}

.desk-icon-art .ico { width: 32px; height: 32px; }

.shortcut-arrow {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
}

.desk-icon-label {
  max-width: 100%;
  padding: 1px 4px;
  border: 1px solid transparent;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.desk-icon:focus-visible .desk-icon-label,
.desk-icon.selected .desk-icon-label {
  background: #316ac5;
  color: #fff;
  text-shadow: none;
}

.desk-icon:focus-visible .desk-icon-label {
  border: 1px dotted rgba(255, 255, 255, 0.9);
}

.desk-icon:focus-visible .desk-icon-art,
.desk-icon.selected .desk-icon-art {
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.4)) brightness(0.9);
}

/* ---------- Windows ---------- */

.window {
  position: absolute;
  top: 24px;
  left: 124px;
  width: min(820px, calc(100vw - 150px));
  max-width: calc(100vw - 16px);
  max-height: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  padding: 3px;
  border-radius: 8px 8px 0 0;
  background: var(--xp-face);
  /* xp.css bevel insets, re-declared, plus an outer drop shadow */
  box-shadow:
    inset -1px -1px #00138c,
    inset 1px 1px #0831d9,
    inset -2px -2px #001ea0,
    inset 2px 2px #166aee,
    inset -3px -3px #003bda,
    inset 3px 3px #0855dd,
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.25);
  transform-origin: 50% 0;
}

.window[hidden] { display: none; }

.window:focus { outline: none; }

.window.is-opening {
  animation: window-open 140ms ease-out;
}

@keyframes window-open {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.window.is-maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0;
}

.window.is-maximized .title-bar { border-radius: 0; }

.window .title-bar {
  font-family: var(--title-font);
  font-size: 13px;
  cursor: default;
  user-select: none;
  touch-action: none;
  flex: 0 0 auto;
  min-width: 0;
  border-radius: 6px 6px 0 0;
}

.window .title-bar-text {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 8px;
  padding-left: 2px;
}

.window .title-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
}

.window .title-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.window .title-bar-controls { flex: 0 0 auto; }

/* Inactive window: pale, desaturated chrome. */
.window:not(.is-active) {
  box-shadow:
    inset -1px -1px #5a73b8,
    inset 1px 1px #6b86d4,
    inset -2px -2px #6e88cc,
    inset 2px 2px #93aae6,
    inset -3px -3px #7f98dc,
    inset 3px 3px #86a0e4,
    0 8px 22px rgba(0, 0, 0, 0.28),
    0 1px 4px rgba(0, 0, 0, 0.2);
}

.window:not(.is-active) .title-bar {
  background: linear-gradient(180deg, #a9bbee 0%, #7b96e0 8%, #7b96e0 40%, #a6b8ec 88%, #a6b8ec 93%, #8da6e6 95%, #7b96e0 96%, #7b96e0 100%);
  border-top-color: #6a86d4;
  border-left-color: #6a86d4;
  border-right-color: #5b74c0;
  text-shadow: 1px 1px #3f58a8;
}

.window:not(.is-active) .title-bar-text { color: rgba(255, 255, 255, 0.92); }

.window:not(.is-active) .title-icon { opacity: 0.8; }

.window:not(.is-active) .title-bar-controls button {
  filter: saturate(0.5) brightness(1.12);
  opacity: 0.85;
}

.window .window-body {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid #919b9c;
  border-top: 0;
}

.window .status-bar {
  flex: 0 0 auto;
  margin-top: 2px;
}

.window .status-bar-field {
  margin: 0;
  font-family: Tahoma, Verdana, "Segoe UI", sans-serif;
  font-size: 11px;
  line-height: 16px;
  color: #1a1a1a;
}

/* Mouse clicks focus buttons in Chrome. Hide the xp.css dotted outline unless the keyboard is used. */
button:is(.start-button, .tray-button, .task-button, .start-item, .pane-link, .desk-icon):focus:not(:focus-visible) {
  outline: none;
}

/* ---------- Command toolbar ---------- */

.cv-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  background: linear-gradient(180deg, #f8f7f1 0%, #ebe8d9 100%);
  border-left: 1px solid #919b9c;
  border-right: 1px solid #919b9c;
  border-bottom: 1px solid #d6d2c2;
}

.tb-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #1b1b1b;
  font-family: Tahoma, "Segoe UI", Verdana, Arial, sans-serif;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
  cursor: default;
}

.tb-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f3f1e6 100%);
  border-color: #c4c0a8;
}

.tb-btn:active {
  background: #e3dfcb;
  border-color: #b4b098;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.tb-btn:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -3px;
}

.tb-btn .ico { width: 16px; height: 16px; }

.tb-sep {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: #cdc9b4;
  box-shadow: 1px 0 0 #fff;
}

/* ---------- CV document ---------- */

.cv-window {
  padding: 24px 32px 32px;
  font-family: var(--ui-font);
  font-size: 13px;
  line-height: 1.6;
  color: #1b1b1b;
}

.cv-window p { margin: 0; }

.cv-window h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #0e1b33;
}

.cv-role {
  margin-top: 4px !important;
  font-size: 14px;
  color: #2c2c2c;
}

.cv-meta {
  margin-top: 1px !important;
  color: #5d5d5d;
}

.cv-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px !important;
  padding: 3px 11px 3px 9px;
  border: 1px solid #b9dfb2;
  border-radius: 999px;
  background: #e8f6e4;
  color: #1c6a2b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fa84a;
  box-shadow: 0 0 0 3px rgba(47, 168, 74, 0.2);
}

.cv-window h2 {
  margin: 26px 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #cfdbec;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #1f4f9c;
}

.cv-window article { margin-bottom: 14px; }
.cv-window article:last-of-type { margin-bottom: 0; }

.cv-window h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 12px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #111;
}

.cv-date {
  font-weight: 400;
  font-size: 12px;
  color: #6b6b6b;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cv-company { margin: 1px 0 4px !important; }

.cv-org {
  color: #0046d5;
  font-weight: 700;
}

.cv-loc {
  margin-left: 6px;
  color: #6b6b6b;
  font-weight: 400;
}

.cv-loc::before {
  content: "·";
  margin-right: 6px;
}

.cv-window ul.chips,
.cv-window article ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-window article ul { padding-left: 2px; color: #2c2c2c; }

.cv-window article li {
  position: relative;
  margin-bottom: 3px;
  padding-left: 16px;
}

.cv-window article li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7f93b2;
}

.tech { margin: 0; }

.tech-group {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.tech-group dt {
  font-size: 11.5px;
  font-weight: 700;
  color: #4a5a70;
}

.tech-group dd { margin: 0; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chips li {
  padding: 1px 8px;
  border: 1px solid #c9d6e4;
  border-radius: 3px;
  background: #eef3fb;
  color: #1d3a5f;
  font-size: 11.5px;
  line-height: 1.6;
}

.cv-edu {
  margin-bottom: 4px !important;
  color: #2c2c2c;
}

/* ---------- Projects: Explorer layout ---------- */

.window .window-body.explorer {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.task-pane {
  min-height: 0;
  overflow: auto;
  padding: 12px 10px;
  background: linear-gradient(180deg, #7ba2e7 0%, #6375d6 100%);
}

.pane-panel {
  margin: 0 0 12px;
  border-radius: 6px 6px 3px 3px;
  background: #d6dff7;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 20, 90, 0.25);
}

.pane-head {
  margin: 0;
  padding: 5px 10px;
  background: linear-gradient(90deg, #ffffff 0%, #c6d3f7 100%);
  color: #215dc6;
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.pane-list {
  margin: 0;
  padding: 8px 10px 8px;
  list-style: none;
}

.pane-list li { margin: 0; }

.pane-link,
button.pane-link:not(:disabled):hover,
button.pane-link:focus {
  box-shadow: none;
}

.pane-link {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 3px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #215dc6;
  font-family: var(--ui-font);
  font-size: 11px;
  text-align: left;
  text-decoration: none;
  cursor: default;
}

.pane-link:hover { color: #428eff; text-decoration: underline; }

.pane-link:focus-visible {
  outline: 1px dotted #215dc6;
  outline-offset: 1px;
}

.pane-link .ico { width: 16px; height: 16px; }

.pane-details {
  padding: 8px 10px 9px;
  color: #1d2f5c;
  font-size: 11px;
  line-height: 1.5;
}

.pane-details p { margin: 0; }
.pane-strong { font-weight: 700; }

.projects {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 4px;
  background: #fff;
}

.project {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.project:hover,
.project:focus-visible {
  background: #e8eefa;
  border-color: #9db6e4;
  outline: none;
}

.project:focus-visible { box-shadow: inset 0 0 0 1px #fff; }

.project-icon {
  width: 32px;
  height: 32px;
  margin-top: 1px;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.25));
}

.project h3 {
  margin: 0 0 2px;
  font-family: var(--ui-font);
  font-size: 13px;
  color: #0046d5;
}

.project p {
  margin: 0;
  font-size: 12px;
  color: #2c2c2c;
  line-height: 1.5;
}

.project p.project-stack {
  margin-top: 4px;
  color: #6b6b6b;
  font-size: 11px;
}

.project-ext {
  margin-top: 4px;
  color: #7d90b3;
}

.project:hover .project-ext,
.project:focus-visible .project-ext { color: #0046d5; }

/* ---------- Taskbar ---------- */

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--taskbar-h);
  z-index: 100;
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding-right: 0;
  background: linear-gradient(180deg, #3168d5 0%, #4993e6 4%, #2a6fe0 9%, #245edb 18%, #245edb 85%, #1d52c4 94%, #193f9e 100%);
  border-top: 1px solid #0c3fa8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.start-button,
button.start-button:not(:disabled):hover,
button.start-button:focus {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 4px rgba(0, 0, 0, 0.25), 2px 0 3px rgba(0, 0, 0, 0.3);
}

.start-button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 0;
  margin: -1px 0 -1px;
  padding: 0 18px 0 10px;
  border: 0;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(180deg, #5fbf5a 0%, #3c9f3a 12%, #2f8b2e 50%, #2a7d29 88%, #1f6a20 100%);
  color: #fff;
  font-family: var(--title-font);
  font-size: 17px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.55);
  cursor: default;
}

.start-button:hover { filter: brightness(1.1); }

.start-button[aria-expanded="true"] {
  filter: brightness(0.92);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.45);
}

.start-button:focus-visible {
  outline: 1px dotted #fff;
  outline-offset: -4px;
}

.start-flag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  width: 16px;
  height: 16px;
  transform: skewY(-6deg);
}

.start-flag i { display: block; border-radius: 2px 1px; }
.start-flag i:nth-child(1) { background: #f35325; }
.start-flag i:nth-child(2) { background: #81bc06; }
.start-flag i:nth-child(3) { background: #05a6f0; }
.start-flag i:nth-child(4) { background: #ffba08; }

.task-buttons {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 3px 0;
}

.task-button,
button.task-button:not(:disabled):hover,
button.task-button:focus {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.task-button {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 180px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0 9px;
  border: 1px solid #1b4cae;
  border-radius: 3px;
  background: linear-gradient(180deg, #4a93f0 0%, #3d85e8 12%, #3478de 88%, #2f6cd0 100%);
  color: #fff;
  font-family: var(--ui-font);
  font-size: 11px;
  text-align: left;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
}

button.task-button:not(:disabled):hover {
  background: linear-gradient(180deg, #5da2f6 0%, #4f93ee 12%, #4586e4 88%, #3e7bd9 100%);
}

.task-button.is-active,
button.task-button.is-active:not(:disabled):hover,
button.task-button.is-active:focus {
  background: linear-gradient(180deg, #1a4aa8 0%, #1f55b8 40%, #2561c8 100%);
  border-color: #153d8f;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.task-button:focus-visible {
  outline: 1px dotted #fff;
  outline-offset: -3px;
}

.task-icon { width: 16px; height: 16px; flex: 0 0 auto; }

.task-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.35);
}

.tray {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 10px;
  background: linear-gradient(180deg, #19a0f0 0%, #0f8ad8 10%, #0b77c8 50%, #0a69b4 90%, #0a5a9f 100%);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.35), inset 1px 1px 0 rgba(255, 255, 255, 0.2);
  border-left: 1px solid #0a4d8c;
}

.tray-button,
button.tray-button:not(:disabled):hover,
button.tray-button:focus {
  box-shadow: none;
}

.tray-button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #eaf6ff;
  cursor: default;
}

.tray-button:hover { background: rgba(255, 255, 255, 0.18); }

.tray-button:focus-visible {
  outline: 1px dotted #fff;
  outline-offset: -2px;
}

.tray-button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.tray-button .ico { width: 16px; height: 16px; }

.tray-clock {
  color: #fff;
  font-size: 11px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

/* ---------- Start menu ---------- */

.start-menu {
  position: fixed;
  left: 0;
  bottom: var(--taskbar-h);
  z-index: 120;
  width: 400px;
  max-height: calc(100vh - var(--taskbar-h));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #0a246a;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 3px -2px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

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

.start-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 8px 12px;
  background: linear-gradient(180deg, #2f7be6 0%, #1f68d4 18%, #1858bc 70%, #12479c 100%);
  color: #fff;
  font-family: var(--title-font);
  font-size: 15px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid #f5a623;
}

.start-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 6px;
  background: linear-gradient(145deg, #ffe08a 0%, #f7b23c 50%, #e9801f 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #fff;
  font-family: var(--title-font);
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 1px 1px rgba(120, 60, 0, 0.7);
}

.start-menu-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.start-col {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  min-width: 0;
}

.start-col-right {
  background: #d3e5fa;
  border-left: 1px solid #95bdee;
}

.start-item,
button.start-item:not(:disabled):hover,
button.start-item:focus {
  box-shadow: none;
}

.start-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0a0a0a;
  font-family: var(--ui-font);
  font-size: 11.5px;
  text-align: left;
  text-decoration: none;
  cursor: default;
}

.start-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.start-text b {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-text small {
  color: #6b6b6b;
  font-size: 10px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-item-side { color: #0a246a; }

.start-item:hover,
.start-item:focus-visible {
  background: #316ac5;
  color: #fff;
  outline: none;
}

.start-item:hover small,
.start-item:focus-visible small { color: #dbe7fb; }

.start-sep {
  height: 1px;
  margin: 5px 12px;
  background: linear-gradient(90deg, rgba(120, 150, 200, 0) 0%, rgba(120, 150, 200, 0.7) 50%, rgba(120, 150, 200, 0) 100%);
}

.start-footer {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
  padding: 6px 10px;
  background: linear-gradient(180deg, #3b7be0 0%, #2a62c8 100%);
  border-top: 1px solid #1a49a8;
}

.start-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  text-decoration: none;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.start-footer-btn:hover,
.start-footer-btn:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.start-footer-btn:focus-visible { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8); }

.noscript-note {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 12px;
  background: #fffbe6;
  border: 1px solid #d8c76a;
  color: #333;
  z-index: 200;
}

/* ---------- Mobile: pocket desktop ---------- */

@media (max-width: 720px) {
  :root { --taskbar-h: 54px; }

  body { overflow: hidden; }

  .desktop-icons {
    position: static;
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 10px;
    padding: 16px 14px;
  }

  .desk-icon {
    height: auto;
    min-height: 84px;
    padding: 10px 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 12px;
  }

  .window {
    position: fixed;
    inset: 0 0 var(--taskbar-h) 0;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: 3px;
  }

  .window .title-bar {
    height: 38px;
    padding: 3px 4px 3px 6px;
    border-radius: 0;
    font-size: 14px;
  }

  .window .title-bar-controls button {
    width: 34px;
    height: 30px;
    min-width: 34px;
    min-height: 30px;
    margin-left: 4px;
    background-size: 100% 100%;
  }

  .window .title-bar-controls button[data-act="max"] { display: none; }

  .window .window-body { border-radius: 0; }

  .window .status-bar { margin-bottom: 2px; }

  .window .status-bar-field {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cv-toolbar { padding: 3px 4px; gap: 0; }

  .tb-btn {
    height: 34px;
    min-width: 34px;
    justify-content: center;
    padding: 0 8px;
    font-size: 12px;
  }

  .tb-btn { gap: 5px; padding: 0 7px; }

  .tb-extra {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .tb-sep { margin: 0 3px; }

  .cv-window { padding: 18px 16px 28px; font-size: 14px; }
  .cv-window h1 { font-size: 24px; }
  .cv-role { font-size: 14px; }
  .cv-window h3 { font-size: 14px; }
  .cv-date { font-size: 12px; }
  .chips li { font-size: 12px; }

  .tech-group { grid-template-columns: minmax(0, 1fr); gap: 3px; margin-bottom: 12px; }

  .window .window-body.explorer {
    display: block;
    overflow: auto;
    min-height: 0;
  }

  .task-pane { display: none; }

  .projects { padding: 8px; overflow: visible; }

  .project { padding: 10px 8px; gap: 12px; }

  .taskbar { justify-content: space-between; padding: 0; gap: 6px; }

  .task-buttons { display: none; }

  .start-button { padding: 0 18px 0 12px; font-size: 18px; }

  .tray { padding: 0 12px 0 10px; gap: 10px; }

  .tray-button { width: 34px; height: 34px; }

  .start-menu {
    left: 6px;
    right: 6px;
    bottom: calc(var(--taskbar-h) + 4px);
    width: auto;
    max-height: calc(100vh - var(--taskbar-h) - 14px);
    border-radius: 10px;
    border-bottom: 1px solid #0a246a;
  }

  .start-menu-header { border-radius: 8px 8px 0 0; }

  .start-menu-body { grid-template-columns: minmax(0, 1fr); }

  .start-col-right {
    border-left: 0;
    border-top: 1px solid #95bdee;
  }

  .start-item { min-height: 44px; padding: 6px 14px; }

  .start-footer-btn { min-height: 36px; padding: 4px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
