/* macOS Tahoe window chrome + content polish. Loaded after styles.css and glass.css,
   so equal-specificity rules here win. Light by default, body.dark-desktop for dark. */

/* ---------- Local tokens ---------- */
.app-window, .work-space {
  --os-hover: rgba(20, 30, 52, .06);
  --os-card: rgba(255, 255, 255, .62);
  --os-card-line: rgba(20, 30, 52, .09);
  --os-field: rgba(255, 255, 255, .66);
  --os-seg: rgba(70, 80, 105, .13);
  --os-seg-on: #fff;
  --os-tl-off: #d3d3d6;
  --os-tl-off-line: rgba(0, 0, 0, .13);
  --os-search-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23566079' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.6'/%3E%3Cpath d='M10.6 10.6l3.2 3.2'/%3E%3C/svg%3E");
  --os-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23566079' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E");
}
body.dark-desktop .app-window {
  --os-hover: rgba(255, 255, 255, .08);
  --os-card: rgba(255, 255, 255, .06);
  --os-card-line: rgba(255, 255, 255, .11);
  --os-field: rgba(255, 255, 255, .09);
  --os-seg: rgba(255, 255, 255, .1);
  --os-seg-on: rgba(255, 255, 255, .22);
  --os-tl-off: #55565c;
  --os-tl-off-line: rgba(255, 255, 255, .12);
  --os-search-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b4bccd' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.6'/%3E%3Cpath d='M10.6 10.6l3.2 3.2'/%3E%3C/svg%3E");
  --os-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23b4bccd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E");
}
.work-space {
  --lg-text: #f2f6fc;
  --lg-text-2: rgba(226, 234, 248, .7);
  --lg-text-3: rgba(226, 234, 248, .46);
  --os-hover: rgba(255, 255, 255, .08);
  --os-card: rgba(255, 255, 255, .06);
  --os-card-line: rgba(255, 255, 255, .11);
  --os-field: rgba(255, 255, 255, .09);
}

/* ---------- Window material ---------- */
.app-window {
  animation: none;
  border: 0;
  border-radius: var(--lg-r-window);
  background: var(--lg-sheen), rgba(250, 251, 254, var(--tint, .8));
  -webkit-backdrop-filter: blur(44px) saturate(1.8);
  backdrop-filter: blur(44px) saturate(1.8);
  box-shadow: var(--lg-rim), var(--lg-shadow-lg);
  color: var(--lg-text);
  font-size: 13px;
  transition: box-shadow var(--lg-medium) var(--lg-ease);
}
body.dark-desktop .app-window { background: var(--lg-sheen), rgba(30, 32, 40, var(--tint, .82)); color: var(--lg-text); border: 0; }
.app-window:not(.active-window) { box-shadow: var(--lg-rim), var(--lg-shadow-sm); }
.app-window.os-ghost { pointer-events: none; will-change: transform, opacity; }

/* ---------- Titlebar (merged with content, no divider) ---------- */
.app-window .window-titlebar {
  height: 52px;
  border: 0;
  background: transparent;
  cursor: default;
  padding: 0 18px 0 16px;
  gap: 14px;
}
.app-window .window-titlebar h2 {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
  color: var(--lg-text);
  outline: 0;
  transition: opacity var(--lg-fast) var(--lg-ease);
}
.app-window .window-titlebar .window-subtitle { font-size: 11px; color: var(--lg-text-3); transition: opacity var(--lg-fast); }
.app-window:not(.active-window) .window-titlebar h2,
.app-window:not(.active-window) .window-subtitle { opacity: .5; }

/* ---------- Traffic lights ---------- */
.app-window .traffic-lights i {
  position: relative;
  width: 12px;
  height: 12px;
  font-size: 0;
  color: transparent !important;
  border: .5px solid;
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .45);
  transition: background .15s, border-color .15s;
}
.app-window .traffic-lights i::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: center / 8px 8px no-repeat;
  transition: opacity .12s;
}
.traffic-close i { background: #ff5f57 !important; border-color: #e0443e !important; }
.traffic-min i { background: #febc2e !important; border-color: #dea123 !important; }
.traffic-max i { background: #28c840 !important; border-color: #1aab29 !important; }
.traffic-close i::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1.6 1.6l4.8 4.8M6.4 1.6L1.6 6.4' stroke='%234d0000' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.traffic-min i::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1.4 4h5.2' stroke='%23985712' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.traffic-max i::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1.3 1.3h3.2L1.3 4.5zM6.7 6.7H3.5l3.2-3.2z' fill='%23014d0c'/%3E%3C/svg%3E"); }
.traffic-max[aria-pressed="true"] i::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4.8 1v2.2H7zM3.2 7V4.8H1z' fill='%23014d0c'/%3E%3C/svg%3E"); }
.app-window .traffic-lights:hover i::before,
.app-window .traffic-lights:focus-within i::before { opacity: 1; }
.app-window .traffic-lights button:focus-visible { outline-offset: -2px; border-radius: 6px; }
.app-window:not(.active-window) .traffic-lights:not(:hover):not(:focus-within) i {
  background: var(--os-tl-off) !important;
  border-color: var(--os-tl-off-line) !important;
}
@media (min-width: 761px) {
  .app-window .traffic-lights { gap: 0; margin-left: -4px; }
  .app-window .traffic-lights button { width: 20px; height: 32px; border-radius: 6px; }
}

/* ---------- Body, floating sidebar, main ---------- */
.app-window .window-body { gap: 10px; position: relative; }
.app-window .window-sidebar,
.work-space .window-sidebar {
  width: 200px;
  margin: 0 0 10px 10px;
  padding: 14px 10px;
  gap: 2px;
  border: 0;
  border-radius: 18px;
  background: var(--lg-sheen), var(--lg-fill-regular);
  box-shadow: var(--lg-rim), var(--lg-shadow-sm);
  overflow-y: auto;
}
.sidebar-heading { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--lg-text-3); margin: 4px 10px 8px; }
.app-window .window-sidebar button,
.work-space .window-sidebar button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  gap: 9px;
  color: var(--lg-text);
  margin: 0;
  transition: background var(--lg-fast) var(--lg-ease), color var(--lg-fast);
}
.window-sidebar button svg { width: 17px; height: 17px; color: var(--lg-accent); }
.app-window .window-sidebar button:hover,
.work-space .window-sidebar button:hover { background: var(--os-hover); }
.app-window .window-sidebar button.selected,
.work-space .window-sidebar button.selected {
  background: var(--lg-accent-soft);
  color: var(--lg-text);
  font-weight: 600;
  box-shadow: inset 0 0 0 .5px rgba(10, 132, 255, .22);
}
.sidebar-note { font-size: 11px; line-height: 1.55; color: var(--lg-text-3); margin: auto 10px 0; }

.app-window .window-main { background: transparent; padding-top: 14px; scrollbar-color: var(--lg-text-3) transparent; }
body.dark-desktop .app-window .window-main { background: transparent; }

.app-window .window-statusbar {
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0 22px 2px;
  align-items: center;
  font-size: 11px;
  color: var(--lg-text-3);
}
body.dark-desktop .app-window .window-statusbar { background: transparent; color: var(--lg-text-3); }

/* ---------- Typography (sizes only; colours stay with the existing rules) ---------- */
:where(.app-window, .work-space) .window-main:not(.snake-main) h1 { font-size: 30px; font-weight: 680; letter-spacing: -.028em; line-height: 1.12; }
:where(.app-window, .work-space) .window-main:not(.snake-main) h2 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
:where(.app-window, .work-space) .window-main:not(.snake-main) h3 { font-size: 15px; font-weight: 650; letter-spacing: -.012em; }
:where(.app-window, .work-space) .window-main:not(.snake-main) p { font-size: 13px; line-height: 1.55; }
:where(.app-window, .work-space) .section-kicker { font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.work-stats span, .timeline-item time, .timeline-item small, .work-hero p, .education-item p, .strength-grid p { font-size: 12px; }
.work-stats strong { font-size: 28px; }
.work-page .work-hero p, .work-page .work-hero .section-kicker { color: #d4e9e2; }
.window-main .work-hero h2 { font-size: 30px; }
.window-main .work-hero p { font-size: 13px; }
.profile-intro p, .timeline-item p { font-size: 13px; }
.credential-tag { font-size: 11px; }

/* Controls inside content */
.app-window .soft-button, .work-page .soft-button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lg-text);
  background: var(--os-field);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .5), inset 0 0 0 .5px var(--os-card-line), 0 1px 3px rgba(0, 10, 30, .08);
  transition: transform var(--lg-fast) var(--lg-ease), background var(--lg-fast);
}
.app-window .soft-button:hover, .work-page .soft-button:hover { background: var(--os-hover); }
.app-window .soft-button:active, .work-page .soft-button:active { transform: scale(.96); }
.app-window .soft-button.primary, .work-page .soft-button.primary {
  background: var(--lg-accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 8px rgba(10, 132, 255, .32);
}
.text-link { font-size: 13px; }

/* ---------- Certificates ---------- */
.cert-toolbar { gap: 10px; margin-bottom: 20px; }
.cert-toolbar input, .cert-toolbar select {
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 13px;
  color: var(--lg-text);
  background-color: var(--os-field);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .5), inset 0 0 0 .5px var(--os-card-line);
  transition: box-shadow var(--lg-fast), background-color var(--lg-fast);
}
.cert-toolbar input {
  padding-left: 36px;
  background-image: var(--os-search-icon);
  background-repeat: no-repeat;
  background-position: 13px center;
  background-size: 15px;
}
.cert-toolbar select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: var(--os-chevron);
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 12px;
}
.cert-toolbar input:focus-visible, .cert-toolbar select:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--lg-accent-soft), inset 0 0 0 1px var(--lg-accent); }
.cert-result-count { font-size: 12px; color: var(--lg-text-3); }
.cert-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 18px; }
.cert-card { border-radius: 16px; outline-offset: 4px; }
.cert-thumb {
  height: 128px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: var(--os-card);
  box-shadow: inset 0 0 0 .5px var(--os-card-line), 0 1px 3px rgba(0, 12, 40, .08), 0 6px 16px rgba(0, 12, 40, .06);
  transition: transform .3s var(--lg-spring), box-shadow .3s var(--lg-ease);
}
.cert-thumb img { border-radius: 4px; }
.cert-card:hover .cert-thumb, .cert-card:focus-visible .cert-thumb {
  transform: translateY(-4px) scale(1.02);
  box-shadow: inset 0 0 0 .5px var(--os-card-line), 0 4px 8px rgba(0, 12, 40, .1), 0 16px 32px rgba(0, 12, 40, .16);
}
.cert-card:active .cert-thumb { transform: scale(.98); }
.cert-card strong, body.dark-desktop .cert-card strong { font-size: 12px; font-weight: 600; color: var(--lg-text); margin: 10px 2px 3px; }
.cert-card small { font-size: 11px; color: var(--lg-text-3); margin: 0 2px; }
body.dark-desktop .cert-thumb, body.dark-desktop .certificate-sheet { background: var(--os-card); }
.certificate-viewer, body.dark-desktop .certificate-viewer { padding-top: 6px; background: transparent; }
.viewer-toolbar button, .viewer-toolbar a, body.dark-desktop .viewer-toolbar button, body.dark-desktop .viewer-toolbar a {
  border: 0;
  border-radius: 999px;
  min-height: 32px;
  padding: 0 14px;
  font-size: 12px;
  background: var(--os-field);
  color: var(--lg-text);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .5), inset 0 0 0 .5px var(--os-card-line);
}
.viewer-toolbar button[aria-pressed="true"] { background: var(--lg-accent); color: #fff; }
.viewer-toolbar span { font-size: 12px; color: var(--lg-text-3); }
.certificate-sheet { border-radius: 16px; background: var(--os-card); box-shadow: inset 0 0 0 .5px var(--os-card-line); }
.certificate-caption h3 { font-size: 15px; }
.certificate-caption p { font-size: 12px; }

/* ---------- Projects: header, KADE segmented control, case study ---------- */
.project-brand { gap: 16px; margin-bottom: 18px; }
.project-brand img { width: 56px; height: 56px; padding: 8px; border-radius: 14px; background: var(--os-card); box-shadow: inset 0 0 0 .5px var(--os-card-line), 0 4px 12px rgba(0, 12, 40, .12); }
.project-brand h1 { font-size: 30px; margin-bottom: 4px; }
.project-brand small { font-size: 12px; color: var(--lg-text-3); }
.project-image { border: 0; border-radius: 16px; background: var(--os-card); box-shadow: inset 0 0 0 .5px var(--os-card-line), 0 10px 28px rgba(0, 12, 40, .14); }
.capture-caption { font-size: 11px; color: var(--lg-text-3); }
.project-views {
  display: inline-flex;
  gap: 0;
  padding: 2px;
  border-radius: 11px;
  background: var(--os-seg);
  box-shadow: inset 0 0 0 .5px var(--os-card-line);
}
.project-views button[data-kade-view] {
  min-height: 28px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--lg-text-2);
  font-size: 12px;
  font-weight: 500;
  transition: background var(--lg-fast) var(--lg-ease), color var(--lg-fast), box-shadow var(--lg-fast);
}
.project-views button[data-kade-view]:hover:not([aria-pressed="true"]) { color: var(--lg-text); }
.project-views button[data-kade-view][aria-pressed="true"] {
  background: var(--os-seg-on);
  color: var(--lg-text);
  font-weight: 600;
  border: 0;
  box-shadow: 0 1px 3px rgba(0, 10, 30, .18), 0 0 0 .5px rgba(0, 10, 30, .06);
}
.case-study, body.dark-desktop .case-study {
  border: 0;
  border-radius: 20px;
  background: var(--lg-sheen), var(--os-card);
  box-shadow: inset 0 0 0 .5px var(--os-card-line), 0 8px 24px rgba(0, 12, 40, .08);
}
.case-study > strong, body.dark-desktop .case-study > strong { font-size: 24px; color: var(--lg-text); }
.case-flow span, body.dark-desktop .case-flow span { font-size: 12px; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--os-field); color: var(--lg-text-2); box-shadow: inset 0 0 0 .5px var(--os-card-line); }
.case-study-note { font-size: 11px; color: var(--lg-text-3); }

/* ---------- About, help, work cards ---------- */
.about-hero { padding-top: 22px; }
.about-hero .avatar { width: 124px; height: 124px; font-size: 44px; margin-bottom: 24px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .55), 0 0 0 .5px rgba(0, 10, 30, .15), 0 14px 34px rgba(0, 12, 40, .22); }
.about-hero h1 { font-size: 40px; letter-spacing: -.035em; }
.help-step { gap: 18px; }
.help-step > span { font-size: 13px; color: var(--lg-accent); font-weight: 600; }
.help-step p { font-size: 13px; }
.key-hints span { font-size: 12px; border-radius: 8px; background: var(--os-field); color: var(--lg-text-2); box-shadow: inset 0 0 0 .5px var(--os-card-line); }
.strength-grid article { border: 0; border-radius: 18px; background: var(--os-card); box-shadow: inset 0 0 0 .5px var(--os-card-line); }
.education-item > span { border-radius: 12px; background: var(--os-card); }

/* ---------- Coffee Break: warm paper card on the new chrome ---------- */
.app-window .snake-main { margin: 0 10px 10px; border-radius: 18px; box-shadow: inset 0 0 0 .5px rgba(90, 80, 40, .12); padding-top: 24px; }
.snake-heading p, .snake-help p, .snake-help #snake-message { font-size: 12px; }
.snake-heading .section-kicker { font-size: 10px; }
.snake-scores { font-size: 10px; }
.snake-actions .soft-button { font-size: 12px; background: #fffdf8; color: #4f6a52; box-shadow: inset 0 0 0 1px #d9dece; }
.app-window .snake-actions .soft-button.primary { background: #326b4f; color: #fff; box-shadow: none; }

/* ---------- Work space: dark glass shell with a floating sidebar ---------- */
.work-shell {
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: calc(var(--lg-r-window) + 2px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .02) 42%, rgba(255, 255, 255, .05)), rgba(18, 26, 40, .6);
  -webkit-backdrop-filter: blur(44px) saturate(1.7);
  backdrop-filter: blur(44px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 24px 70px rgba(0, 6, 20, .5);
}
.work-space .window-sidebar {
  width: 216px;
  margin: 0;
  padding: 18px 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)), rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 .5px rgba(255, 255, 255, .1);
}
.work-space .window-sidebar button.selected { background: rgba(10, 132, 255, .32); box-shadow: inset 0 0 0 .5px rgba(120, 180, 255, .3); }
.work-sidebar-profile strong { font-size: 16px; color: var(--lg-text); }
.work-sidebar-profile small { font-size: 12px; color: var(--lg-text-3); }
.work-space .sidebar-heading, .work-space .sidebar-note { color: var(--lg-text-3); font-size: 11px; }
.work-space .work-page { background: rgba(8, 14, 26, .3); border-radius: 18px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08); padding-top: 38px; }
.work-topbar > span { font-size: 11px; letter-spacing: .08em; color: var(--lg-text-3); }
.return-desktop {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 .5px rgba(255, 255, 255, .16), 0 4px 14px rgba(0, 6, 20, .25);
  transition: transform var(--lg-fast) var(--lg-ease), background var(--lg-fast);
}
.return-desktop:hover { background: rgba(255, 255, 255, .2); }
.return-desktop:active { transform: scale(.96); }

/* ---------- Maximize, tiling, resize ---------- */
@media (min-width: 761px) {
  .app-window.maximized, .app-window.tile-left, .app-window.tile-right {
    top: 8px !important;
    height: calc(100% - 16px) !important;
    max-width: none !important;
    max-height: none !important;
  }
  .app-window.maximized { left: 8px !important; width: calc(100% - 16px) !important; }
  .app-window.tile-left { left: 8px !important; width: calc(50% - 12px) !important; }
  .app-window.tile-right { left: calc(50% + 4px) !important; width: calc(50% - 12px) !important; }
}
.os-tile-preview {
  position: absolute;
  top: 8px;
  left: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  z-index: 1;
  border-radius: var(--lg-r-window);
  pointer-events: none;
  opacity: 0;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6), inset 0 0 40px rgba(255, 255, 255, .12), 0 0 0 .5px rgba(0, 10, 30, .2);
}
.os-tile-preview[data-zone="left"] { width: calc(50% - 12px); }
.os-tile-preview[data-zone="right"] { left: calc(50% + 4px); width: calc(50% - 12px); }
.os-tile-preview.show { animation: os-tile-in .32s var(--lg-spring) both; }
@keyframes os-tile-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

.os-resize { position: absolute; z-index: 6; touch-action: none; }
.os-resize-n, .os-resize-s { left: 16px; right: 16px; height: 6px; cursor: ns-resize; }
.os-resize-e, .os-resize-w { top: 16px; bottom: 16px; width: 6px; cursor: ew-resize; }
.os-resize-n { top: 0; } .os-resize-s { bottom: 0; } .os-resize-e { right: 0; } .os-resize-w { left: 0; }
.os-resize-ne, .os-resize-nw, .os-resize-se, .os-resize-sw { width: 16px; height: 16px; }
.os-resize-ne { top: 0; right: 0; cursor: nesw-resize; } .os-resize-sw { bottom: 0; left: 0; cursor: nesw-resize; }
.os-resize-nw { top: 0; left: 0; cursor: nwse-resize; } .os-resize-se { bottom: 0; right: 0; cursor: nwse-resize; }
.app-window.maximized .os-resize, .app-window.tile-left .os-resize, .app-window.tile-right .os-resize { display: none; }
body.os-resizing { user-select: none; -webkit-user-select: none; }
body.os-resizing[data-resize-edge="n"], body.os-resizing[data-resize-edge="s"] { cursor: ns-resize; }
body.os-resizing[data-resize-edge="e"], body.os-resizing[data-resize-edge="w"] { cursor: ew-resize; }
body.os-resizing[data-resize-edge="ne"], body.os-resizing[data-resize-edge="sw"] { cursor: nesw-resize; }
body.os-resizing[data-resize-edge="nw"], body.os-resizing[data-resize-edge="se"] { cursor: nwse-resize; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .os-resize, .os-tile-preview { display: none; }
  .app-window, .app-window.maximized { border-radius: 22px; }
  .app-window .window-titlebar { height: 48px; }
  .app-window .window-sidebar, .work-space .window-sidebar {
    width: auto;
    margin: 0 8px 4px;
    padding: 5px;
    border-radius: 999px;
    flex-direction: row;
    overflow-x: auto;
    flex: none;
  }
  .app-window .window-sidebar button, .work-space .window-sidebar button { font-size: 12px; min-height: 34px; padding: 0 12px; white-space: nowrap; flex: none; }
  .work-shell { padding: 8px; gap: 8px; border-radius: 24px; }
  .work-space .work-page { padding-top: 24px; }
  :where(.app-window, .work-space) .window-main:not(.snake-main) h1 { font-size: 26px; }
  .project-brand h1 { font-size: 24px; }
  .about-hero h1 { font-size: 32px; }
  .about-hero .avatar { width: 96px; height: 96px; font-size: 34px; }
  .project-views { display: flex; overflow-x: auto; }
  .project-views button[data-kade-view] { flex: 1; padding: 0 10px; white-space: nowrap; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-thumb { height: 112px; }
  .work-stats strong { font-size: 24px; }
  .profile-intro h1 { font-size: 22px; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-transparency: reduce) {
  .app-window { -webkit-backdrop-filter: none; backdrop-filter: none; background: #f2f4f9; }
  body.dark-desktop .app-window { background: #1e2028; }
  .work-shell { -webkit-backdrop-filter: none; backdrop-filter: none; background: #141c2a; }
}
body.motion-reduced .app-window, body.motion-reduced .cert-thumb, body.motion-reduced .os-tile-preview { transition: none !important; animation: none !important; }
body.motion-reduced .cert-card:hover .cert-thumb { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .os-tile-preview.show { animation: none; opacity: 1; }
  .cert-thumb { transition: none; }
}
