:root {
  color-scheme: light;
  --paper: #edf1e8;
  --paper-rgb: 237, 241, 232;
  --ink: #252c25;
  --muted: #626b60;
  --faint: #8b9387;
  --line: rgba(45, 55, 45, .13);
  --line-strong: rgba(45, 55, 45, .22);
  --accent: #c95e43;
  --accent-rgb: 201, 94, 67;
  --selection-bg: #a9442e;
  --selection-ink: #fffaf2;
  --sage: #dfe8d9;
  --window: #fffdf8;
  --window-head: rgba(255, 253, 248, .95);
  --dock-bg: rgba(255, 253, 248, .64);
  --window-shadow: 0 26px 80px rgba(35, 38, 30, .18), 0 4px 16px rgba(35, 38, 30, .08);
  --radius-small: 7px;
  --radius-medium: 11px;
  --radius-window: 15px;
  --mono: "DM Mono", Consolas, monospace;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
::selection { color: var(--selection-ink); background: var(--selection-bg); text-shadow: none; }
::-moz-selection { color: var(--selection-ink); background: var(--selection-bg); text-shadow: none; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; color: var(--ink); background: var(--paper); }
body.theme-ready { transition: color .46s cubic-bezier(.2,.7,.2,1), background .46s cubic-bezier(.2,.7,.2,1); }
body.theme-dark {
  color-scheme: dark;
  --paper: #202822;
  --paper-rgb: 32, 40, 34;
  --ink: #f1f0e8;
  --muted: #bac2b7;
  --faint: #909a8f;
  --line: rgba(235, 239, 226, .12);
  --line-strong: rgba(235, 239, 226, .2);
  --accent: #ed8868;
  --accent-rgb: 237, 136, 104;
  --selection-bg: #ed8868;
  --selection-ink: #252c25;
  --sage: #303b32;
  --window: #29312c;
  --window-head: rgba(41, 49, 44, .97);
  --dock-bg: rgba(40, 49, 43, .58);
  --window-shadow: 0 26px 80px rgba(0, 0, 0, .45), 0 4px 16px rgba(0, 0, 0, .22);
}
body.theme-ready *, body.theme-ready *::before, body.theme-ready *::after {
  transition: color .42s cubic-bezier(.2,.7,.2,1), background-color .42s cubic-bezier(.2,.7,.2,1), border-color .42s cubic-bezier(.2,.7,.2,1), outline-color .42s cubic-bezier(.2,.7,.2,1), box-shadow .42s cubic-bezier(.2,.7,.2,1), fill .42s cubic-bezier(.2,.7,.2,1), stroke .42s cubic-bezier(.2,.7,.2,1), transform .2s ease, opacity .2s ease;
}
button, a { color: inherit; font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }

.desktop { --dock-height: 54px; --dock-bottom: 12px; --window-edge-gap: 14px; position: relative; isolation: isolate; width: 100%; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; background: var(--paper); }
.theme-ready .desktop { transition: background .46s cubic-bezier(.2,.7,.2,1), color .46s cubic-bezier(.2,.7,.2,1); }
.ambient { position: absolute; z-index: -2; inset: 0; pointer-events: none; opacity: .5; background: linear-gradient(132deg, rgba(202, 220, 188, .38), transparent 47%), linear-gradient(310deg, rgba(230, 183, 151, .25), transparent 42%); transition: opacity .46s ease; }
.theme-dark .ambient { opacity: .18; }
.grain { position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E"); mix-blend-mode: multiply; transition: opacity .46s ease; }
.theme-dark .grain { mix-blend-mode: screen; }

.view-live i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #7a996c; box-shadow: 0 0 0 3px rgba(122, 153, 108, .14); }
.theme-toggle { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: border-color .36s ease, color .36s ease, background .36s ease; }
.theme-toggle:hover { border-color: var(--line-strong); color: var(--ink); background: rgba(128, 128, 128, .07); }
.theme-glyph { position: relative; display: block; width: 20px; height: 20px; color: var(--accent); }
.theme-icon { position: absolute; inset: 1px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: opacity .38s ease, transform .48s cubic-bezier(.2,.7,.2,1); }
.theme-icon-moon { opacity: 1; transform: rotate(0) scale(1); }
.theme-icon-sun { opacity: 0; transform: rotate(-35deg) scale(.72); }
.theme-dark .theme-icon-moon { opacity: 0; transform: rotate(35deg) scale(.72); }
.theme-dark .theme-icon-sun { opacity: 1; transform: rotate(0) scale(1); }
.theme-ready .theme-icon { transition: opacity .38s ease, transform .48s cubic-bezier(.2,.7,.2,1); }

.workspace { position: absolute; inset: 0; overflow: hidden; }
.desktop-apps { position: absolute; z-index: 1; top: 40px; left: max(30px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: repeat(2, 82px); gap: 25px 20px; }
.app-shortcut { display: flex; width: 82px; flex-direction: column; align-items: center; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: center; cursor: pointer; transition: color .42s ease; }
.shortcut-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-window); background: var(--sage); color: var(--ink); box-shadow: 0 6px 17px rgba(31, 34, 27, .05); transition: color .42s ease, background .42s ease, border-color .42s ease, transform .2s ease, box-shadow .2s; }
.app-icon-svg { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.app-icon-svg .icon-accent { stroke: var(--accent); }
.app-shortcut:hover .shortcut-icon, .app-shortcut:focus-visible .shortcut-icon { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 24px rgba(31, 34, 27, .12); }
.shortcut-name { font-size: 10px; font-weight: 600; }

.dock { position: absolute; z-index: 11; bottom: calc(var(--dock-bottom) + env(safe-area-inset-bottom)); left: 50%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; width: min(760px, calc(100% - 72px)); height: var(--dock-height); padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 15px; background: linear-gradient(155deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025) 58%, rgba(0, 0, 0, .025)), var(--dock-bg); box-shadow: 0 12px 36px rgba(18, 24, 19, .16), inset 0 1px 0 rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(24px) saturate(1.45); backdrop-filter: blur(24px) saturate(1.45); transform: translateX(-50%); transition: background .42s ease, border-color .42s ease, color .42s ease, box-shadow .42s ease; }
.dock-home, .dock-app { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; transition: transform .18s ease, background .18s, color .42s ease; }
.dock-home { grid-column: 1; justify-self: start; display: flex; width: auto; min-width: 72px; justify-content: center; gap: 8px; padding: 0 8px; }
.dock-home[aria-expanded="true"] { background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.dock-home-label { font-size: 9px; font-weight: 600; }
.dock-home:hover, .dock-app:hover { transform: translateY(-3px); background: rgba(128, 128, 128, .1); }
.dock-symbol { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: var(--ink); color: var(--paper); font: 600 12px var(--display); }
.dock-apps { grid-column: 2; display: flex; min-width: 0; max-width: min(56vw, 480px); align-items: center; justify-content: center; gap: 3px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
.dock-apps::-webkit-scrollbar { display: none; }
.dock-apps.is-reordering { overflow-x: visible; }
.dock-app { cursor: grab; touch-action: none; }
.dock-app:active { cursor: grabbing; }
.dock-app.is-dragging { z-index: 2; opacity: .72; transform: translateY(-5px) scale(1.08); }
.dock-apps.is-reordering .dock-app:not(.is-dragging) { transition: transform .16s ease; }
.dock-app-glyph { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: rgba(128, 128, 128, .04); color: var(--muted); font: 500 11px var(--mono); transition: color .42s ease, background .42s ease, border-color .42s ease; }
.dock-app.is-open .dock-app-glyph { border-color: rgba(var(--accent-rgb), .38); background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.dock-app-glyph .app-icon-svg { width: 20px; height: 20px; }
.dock-app.is-minimized .dock-app-glyph { opacity: .62; }
.dock-status { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 5px; color: var(--muted); font: 8px var(--mono); white-space: nowrap; }
.sfx-toggle { display: grid; flex: 0 0 24px; width: 24px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--accent); cursor: pointer; transition: background .18s ease, color .18s ease; }
.sfx-toggle:hover, .sfx-toggle:focus-visible { background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.sfx-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.status-wave { display: flex; align-items: center; justify-content: center; gap: 2px; width: 14px; height: 14px; }
.status-wave i { display: block; width: 2px; border-radius: 2px; background: currentColor; transform: scaleY(.48); transform-origin: center; }
.status-wave i:nth-child(1) { height: 5px; }.status-wave i:nth-child(2) { height: 10px; }.status-wave i:nth-child(3) { height: 7px; }.status-wave i:nth-child(4) { height: 4px; }
.sfx-toggle:not(.is-on) .status-wave { opacity: .62; }
.sfx-toggle.is-on .status-wave i { animation: equalizer-pulse .76s ease-in-out infinite alternate; }
.sfx-toggle.is-on .status-wave i:nth-child(2) { animation-delay: -.19s; }
.sfx-toggle.is-on .status-wave i:nth-child(3) { animation-delay: -.38s; }
.sfx-toggle.is-on .status-wave i:nth-child(4) { animation-delay: -.57s; }
@keyframes equalizer-pulse { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.dock-system { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }
#clock-time { display: grid; flex: 0 0 49px; width: 49px; min-width: 49px; height: 24px; place-items: center; padding: 0; border: 0; appearance: none; background: transparent; color: inherit; cursor: pointer; font: inherit; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; transition: opacity .12s ease, transform .16s ease, color .18s ease; } #clock-time:hover { color: var(--ink); } #clock-time[aria-pressed="true"] { color: var(--accent); letter-spacing: .04em; } #clock-time:focus-visible { border-radius: 3px; outline: 1px solid var(--line-strong); outline-offset: 3px; } #clock-time.is-changing { opacity: .35; transform: translateY(-1px); }
.start-menu { position: absolute; z-index: 15; bottom: 78px; left: max(12px, calc(50% - 375px)); display: flex; width: 304px; max-height: calc(100vh - 108px); flex-direction: column; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--window); box-shadow: var(--window-shadow); color: var(--ink); animation: window-in .18s ease both; transition: background .42s ease, border-color .42s ease, color .42s ease, box-shadow .42s ease; }
.start-menu-head { display: flex; min-height: 66px; flex: 0 0 auto; align-items: center; gap: 12px; padding: 11px 14px; background: #302e2b; color: #fffdf8; }
.start-menu-head > span:last-child { display: grid; gap: 3px; }
.start-menu-head strong { font-size: 12px; font-weight: 600; }
.start-menu-head small { color: rgba(255, 253, 248, .66); font: 8px var(--mono); }
.start-menu-mark { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #ecc24e; color: #302e2b; font-size: 18px; }
.theme-dark .start-menu-head { background: #191f1a; }
.start-menu-list { min-height: 0; overflow: auto; padding: 7px 8px; }
.start-menu-item { display: flex; width: 100%; min-height: 34px; align-items: center; gap: 11px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; font: 10px var(--mono); transition: background .15s ease, color .36s ease; }
.start-menu-item > span:first-child { display: grid; width: 19px; flex: 0 0 19px; place-items: center; color: var(--muted); font: 14px/1 var(--sans); }
.start-menu-item:hover, .start-menu-item:focus-visible { background: rgba(var(--accent-rgb), .1); color: var(--accent); outline-offset: -2px; }
.start-menu-item:hover > span:first-child, .start-menu-item:focus-visible > span:first-child { color: var(--accent); }
.start-menu-item .app-icon-svg { width: 17px; height: 17px; }
.start-menu-separator { display: block; height: 1px; margin: 6px 8px; background: var(--line-strong); }

.window-layer { position: absolute; z-index: 7; inset: 0 0 calc(var(--dock-height) + var(--dock-bottom) + var(--window-edge-gap) + env(safe-area-inset-bottom)); pointer-events: none; }
.window-layer.is-tiled .app-window { min-width: 0; min-height: 0; max-width: none; max-height: none; }
.window-layer.is-tiled .app-window.is-suspended { display: none; }
.window-layer.is-tiled .window-bar { flex-basis: 38px; height: 38px; padding-right: 7px; padding-left: 10px; }
.window-layer.is-tiled .window-app-identity { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-layer.is-tiled .window-bar-center { display: none; }
.window-layer.is-tiled .window-controls { flex: 0 0 auto; gap: 3px; }
.desktop .app-window { --window-default-width: clamp(26rem, 46vw, 40rem); --window-default-height: clamp(25rem, 64dvh, 38rem); --window-min-width: 26rem; --window-min-height: 21rem; position: absolute; display: flex; width: var(--window-default-width); height: var(--window-default-height); min-width: min(var(--window-min-width), calc(100% - 16px)); min-height: min(var(--window-min-height), calc(100% - 16px)); max-width: calc(100% - 16px); max-height: calc(100% - 16px); flex-direction: column; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-window); background: var(--window); box-shadow: var(--window-shadow); color: var(--ink); pointer-events: auto; animation: window-in .22s ease both; transition: left .22s cubic-bezier(.2,.7,.2,1), top .22s cubic-bezier(.2,.7,.2,1), width .22s cubic-bezier(.2,.7,.2,1), height .22s cubic-bezier(.2,.7,.2,1), opacity .16s ease, box-shadow .2s ease, background .42s ease, color .42s ease, border-color .42s ease; }
.app-window[data-app="about"] { --window-default-width: clamp(32rem, 66vw, 40rem); --window-default-height: clamp(25rem, 66dvh, 38rem); --window-min-width: 26rem; --window-min-height: 21rem; }
.app-window[data-app="projects"] { --window-default-width: clamp(34rem, 68vw, 68rem); --window-default-height: clamp(30rem, 76dvh, 50rem); --window-min-width: 32rem; --window-min-height: 26rem; }
.app-window[data-app="toolkit"] { --window-default-width: clamp(30rem, 48vw, 44rem); --window-default-height: clamp(29rem, 70dvh, 46rem); --window-min-width: 27rem; --window-min-height: 26rem; }
.app-window[data-app="contact"] { --window-default-width: clamp(24rem, 38vw, 35rem); --window-default-height: clamp(31rem, 58dvh, 37rem); --window-min-width: 24rem; --window-min-height: 29rem; }
.app-window[data-app="terminal"] { --window-default-width: clamp(30rem, 52vw, 46rem); --window-default-height: clamp(28rem, 70dvh, 44rem); --window-min-width: 27rem; --window-min-height: 24rem; }
.app-window[data-app="notes"] { --window-default-width: clamp(32rem, 57vw, 52rem); --window-default-height: clamp(30rem, 74dvh, 46rem); --window-min-width: 30rem; --window-min-height: 26rem; }
.app-window.is-maximized { left: 8px !important; top: 8px !important; width: calc(100% - 16px) !important; height: calc(100% - 16px) !important; min-width: 0; min-height: 0; max-width: none; max-height: none; }
.app-window.is-closed, .app-window.is-minimized { display: none; }
.app-window:focus { outline: none; }
.app-window.is-focused { box-shadow: 0 30px 86px rgba(35, 38, 30, .23), 0 5px 18px rgba(35, 38, 30, .09); }
.theme-dark .app-window.is-focused { box-shadow: 0 30px 86px rgba(0, 0, 0, .5), 0 5px 18px rgba(0, 0, 0, .24); }
.app-window.is-moving { transition: none; opacity: .78; box-shadow: 0 32px 92px rgba(20, 25, 20, .25), 0 8px 26px rgba(20, 25, 20, .12); }
.app-window.is-resizing { transition: none; opacity: 1; }
.window-bar { position: relative; z-index: auto; display: flex; flex: 0 0 44px; align-items: center; justify-content: space-between; height: 44px; padding: 0 12px 0 15px; border-bottom: 1px solid var(--line); background: var(--window-head); cursor: grab; touch-action: none; user-select: none; transition: background .42s ease, border-color .42s ease, color .42s ease; }
.window-bar:active { cursor: grabbing; }
.window-app-identity { display: inline-flex; align-items: center; min-width: 130px; color: var(--muted); font: 500 9px var(--mono); text-transform: uppercase; }
.window-bar-center { position: absolute; left: 50%; max-width: 30%; overflow: hidden; color: var(--faint); font: 8px var(--mono); text-overflow: ellipsis; white-space: nowrap; transform: translateX(-50%); }
.window-controls { display: flex; align-items: center; gap: 6px; }
.window-control { position: relative; z-index: 5; display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-small); background: transparent; cursor: pointer; transition: border-color .36s ease, background .36s ease, color .36s ease; }
.window-control:hover { background: rgba(128, 128, 128, .1); }
.window-control span { display: block; width: 8px; height: 1px; background: var(--muted); }
.window-control.maximize span { height: 7px; border: 1px solid var(--muted); border-radius: 2px; background: transparent; }
.window-control.close span { position: relative; width: 8px; height: 8px; background: transparent; }
.window-control.close span::before, .window-control.close span::after { position: absolute; top: 3px; left: 0; width: 8px; height: 1px; background: var(--muted); content: ""; transform: rotate(45deg); }
.window-control.close span::after { transform: rotate(-45deg); }
.window-control.close:hover { border-color: var(--accent); background: var(--accent); }.window-control.close:hover span::before, .window-control.close:hover span::after { background: white; }
.window-resize-handle { position: absolute; z-index: 4; display: block; appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; opacity: 0; pointer-events: auto; touch-action: none; user-select: none; }
.window-resize-handle:focus-visible { z-index: 5; opacity: 1; outline: 1px solid rgba(var(--accent-rgb), .35); outline-offset: -3px; }
.resize-n, .resize-s { right: 16px; left: 16px; height: 12px; cursor: ns-resize; }
.resize-n { top: 0; right: 100px; left: 20px; }
.resize-s { bottom: 0; }
.resize-e, .resize-w { top: 16px; bottom: 16px; width: 10px; cursor: ew-resize; }
.resize-e { top: 45px; right: 0; cursor: ew-resize; }
.resize-w { left: 0; }
.resize-nw, .resize-ne, .resize-se, .resize-sw { width: 18px; height: 18px; cursor: nwse-resize; }
.resize-nw { top: 0; left: 0; width: 20px; height: 16px; cursor: nwse-resize; }
.resize-ne { top: 0; right: 0; width: 20px; height: 16px; cursor: nesw-resize; }
.resize-se { z-index: 6; right: 1px; bottom: 1px; width: 38px; height: 38px; border-radius: 0 0 12px 0; opacity: 0; }
.resize-se::after { display: none; }
.resize-se:hover { background: transparent; opacity: 0; }
.resize-sw { bottom: 1px; left: 1px; width: 24px; height: 24px; cursor: nesw-resize; }
.resize-e:hover, .resize-w:hover, .resize-n:hover, .resize-s:hover, .resize-nw:hover, .resize-ne:hover, .resize-sw:hover { background: rgba(var(--accent-rgb), .035); opacity: .3; }
.resize-sw:hover { background: transparent; opacity: 0; }
.app-window.is-maximized .window-resize-handle { display: none; }
.app-window.is-moving .window-content, .app-window.is-resizing .window-content { user-select: none; }
.window-content { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; transition: color .42s ease, scrollbar-color .42s ease; }
.window-content::-webkit-scrollbar { width: 8px; }.window-content::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: var(--line-strong); background-clip: padding-box; }
@keyframes window-in { from { opacity: 0; translate: 0 9px; scale: .99; } to { opacity: 1; translate: 0 0; scale: 1; } }

.view { min-height: 100%; padding: 23px 30px 0; }



.view-about { display: flex; min-height: 100%; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 28px); padding: clamp(22px, 3.5vw, 36px) clamp(20px, 3.6vw, 38px) clamp(24px, 3.2vw, 32px); }
.profile-hero { display: grid; flex: 1 0 auto; grid-template-columns: minmax(0, 1.25fr) minmax(160px, .75fr); align-items: center; gap: clamp(20px, 3vw, 34px); padding: 0; }
.profile-copy { min-width: 0; }
.profile-greeting { margin: 0; color: var(--muted); font-size: clamp(11px, .95vw, 13px); font-weight: 500; letter-spacing: .015em; }
.view-about .profile-copy h2 { margin: 13px 0 17px; color: var(--ink); font: 500 clamp(33px, 3.45vw, 44px)/1.04 var(--display); letter-spacing: -.025em; }
.view-about .profile-copy h2 em { color: var(--accent); font-weight: 400; }
.view-about .inline-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 19px; padding: 10px 13px; border: 1px solid rgba(var(--accent-rgb), .28); border-radius: 9px; background: rgba(var(--accent-rgb), .08); color: var(--ink); font-size: 10px; font-weight: 600; transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease; }
.view-about .inline-link:hover { transform: translateY(-1px); border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .15); color: var(--ink); }
.view-about .inline-link span { color: var(--accent); }

.profile-copy h2, .projects-heading h2, .toolkit-heading h2 { margin: 12px 0; color: var(--ink); font: 500 38px/1.1 var(--display); letter-spacing: 0; }
.profile-copy h2 em { color: var(--accent); font-weight: 400; }
.profile-intro { max-width: 42ch; margin: 0; color: var(--muted); font-size: clamp(11px, .96vw, 13px); line-height: 1.7; }
.inline-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-decoration: none; font-size: 10px; font-weight: 600; }
.inline-link span { color: var(--accent); }
.profile-artwork-button { display: block; width: min(100%, 228px); aspect-ratio: 1; justify-self: end; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: clamp(15px, 1.8vw, 22px); background: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .12); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s cubic-bezier(.2, .75, .3, 1), border-color .2s ease, box-shadow .22s ease; }
.profile-artwork { display: block; width: 100%; height: 100%; object-fit: contain; }
.profile-artwork-button:active { transform: scale(.975); transition-duration: .1s; }
.profile-artwork-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .profile-artwork-button:hover { transform: translateY(-3px) scale(1.025); border-color: rgba(var(--accent-rgb), .32); box-shadow: 0 17px 36px rgba(0, 0, 0, .13), 0 0 0 3px rgba(var(--accent-rgb), .06); }
}
@keyframes profile-artwork-bounce { 0%, 100% { transform: translateY(0) scale(1) rotate(0); } 24% { transform: translateY(2px) scale(.965) rotate(-.6deg); } 62% { transform: translateY(-3px) scale(1.025) rotate(.45deg); } }
@keyframes profile-artwork-glow { 0%, 100% { box-shadow: 0 14px 34px rgba(0, 0, 0, .12); } 38% { box-shadow: 0 17px 36px rgba(0, 0, 0, .13), 0 0 0 4px rgba(var(--accent-rgb), .1); } }
.profile-artwork-button.is-bouncing { animation: profile-artwork-glow .44s ease-out; }
.profile-artwork-button.is-bouncing .profile-artwork { animation: profile-artwork-bounce .44s cubic-bezier(.2, .75, .3, 1); }
@media (prefers-reduced-motion: reduce) {
  .profile-artwork-button, .profile-artwork-button:active { transform: none; transition: none; }
  .profile-artwork-button.is-bouncing, .profile-artwork-button.is-bouncing .profile-artwork { animation: none; }
}
.profile-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(9px, 1.3vw, 14px); padding: 0; border: 0; }
.fact-label { display: block; margin-bottom: 8px; color: var(--faint); font: 500 8px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.profile-fact { min-width: 0; padding: 14px clamp(11px, 1.4vw, 17px); border-radius: 12px; background: rgba(128, 128, 128, .055); }
.view-about .profile-fact strong { display: block; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.5; }
.profile-facts strong { color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.45; }
.projects-heading { padding: 8px 0 19px; }
.projects-heading h2, .toolkit-heading h2 { margin: 0; color: var(--ink); font: 500 clamp(30px, 3.4vw, 38px)/1.1 var(--display); letter-spacing: -.02em; }
.project-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 0 12px; }
.project-entry { display: flex; min-width: 0; flex-direction: column; padding: clamp(17px, 2.7vw, 26px); border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(128, 128, 128, .035); }
.project-category { display: inline-flex; align-self: flex-start; padding: 5px 8px; border: 1px solid rgba(var(--accent-rgb), .28); border-radius: 999px; background: rgba(var(--accent-rgb), .08); color: var(--muted); font: 8px var(--mono); text-transform: uppercase; }
.project-summary { margin-top: 12px; }
.project-summary h3 { margin: 0; color: var(--ink); font: 600 clamp(23px, 2.4vw, 28px)/1.2 var(--display); }
.project-tagline { margin: 5px 0 0; color: var(--accent); font-size: 12px; font-weight: 600; }
.project-description { max-width: 62ch; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.project-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 10px 18px; margin: 18px 0 0; padding: 15px 0 0; border-top: 1px solid var(--line); list-style: none; }
.project-highlights li { position: relative; padding-left: 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.project-highlights li::before { position: absolute; top: .58em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); content: ""; }
.project-tech { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; padding: 0; list-style: none; }
.project-tech li, .project-tech span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: rgba(128, 128, 128, .045); color: var(--muted); font: 9px var(--mono); }
.project-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 17px; }
.project-actions a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(128, 128, 128, .045); color: var(--ink); text-decoration: none; font-size: 10px; font-weight: 600; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.project-actions a:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.toolkit-heading { padding: 8px 0 19px; }
.toolkit-heading p { max-width: 48ch; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.skill-search { display: flex; min-height: 44px; align-items: center; gap: 10px; margin: 0 0 15px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(128, 128, 128, .035); color: var(--faint); }
.skill-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .1); }
.skill-search > span:first-child { color: var(--accent); font-size: 18px; line-height: 1; }
.skill-search input { width: 100%; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 12px var(--sans); }
.skill-search input::placeholder { color: var(--faint); }
.skill-count { flex: 0 0 auto; color: var(--faint); font: 9px var(--mono); white-space: nowrap; }
.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 11px; }
.skill-group { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: rgba(128, 128, 128, .025); }
.skill-group h3 { margin: 0 0 12px; color: var(--ink); font: 600 12px/1.3 var(--sans); }
.skill-group ul, .skill-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.skill-group li, .skill-chips span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(128, 128, 128, .04); color: var(--muted); font-size: 10px; line-height: 1.25; }
.skills-empty { margin: 0; padding: 18px 0; color: var(--faint); font-size: 11px; }
.view.view-terminal { display: flex; height: 100%; min-height: 100%; flex-direction: column; padding: 0; background: #111812; }
.terminal-shell { display: flex; min-height: 0; height: 100%; flex: 1; flex-direction: column; overflow: hidden; background: #111812; color: #dce7dc; font: 11px/1.75 var(--mono); }
.terminal-output { min-height: 0; flex: 1; overflow: auto; padding: 22px 24px; color: #b9c9bb; }
.terminal-output p { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal-output .terminal-command { color: #9bce88; }.terminal-output .terminal-result { color: #b9c9bb; }
.terminal-form { display: flex; min-height: 50px; flex: 0 0 auto; align-items: center; gap: 10px; padding: 0 24px; border-top: 1px solid rgba(220,231,220,.13); background: rgba(255,255,255,.015); }
.terminal-form label { display: flex; gap: 4px; color: #93c881; white-space: nowrap; }
.terminal-form label b { color: #bac7a5; font-weight: 400; }
.terminal-form label i { color: #f0c674; font-style: normal; }
.terminal-form input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #f2f0e8; caret-color: #9bce88; font: inherit; }
.terminal-form input::placeholder { color: #728477; }
.notes-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 8px 0 19px; }
.notes-heading h2 { margin: 0; color: var(--ink); font: 500 clamp(28px, 3.2vw, 36px)/1.1 var(--display); }
.notes-count { margin: 7px 0 0; color: var(--faint); font: 9px var(--mono); }
.notes-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.notes-status { color: var(--muted); font-size: 10px; white-space: nowrap; }
.notes-status[data-save-state="error"] { color: var(--accent); }
.undo-note, .add-note { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(128, 128, 128, .04); color: var(--ink); cursor: pointer; font: 10px var(--sans); font-weight: 600; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.undo-note:hover, .add-note:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); color: var(--accent); }
.add-note { border-color: rgba(var(--accent-rgb), .34); }
.add-note span { color: var(--accent); font-size: 14px; line-height: 1; }
.add-note:disabled { cursor: not-allowed; opacity: .55; }
.notes-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); align-items: start; gap: 12px; padding: 2px 0 18px; }
.notes-empty { grid-column: 1 / -1; padding: 27px 16px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--faint); text-align: center; font-size: 11px; }
.sticky-note { min-height: 182px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 18px rgba(33, 37, 30, .08); }
.sticky-note.note-sage { background: #e5ecdd; }
.sticky-note.note-rose { background: #f1e2d9; }
.sticky-note.note-sand { background: #f3edcf; }
.theme-dark .sticky-note.note-sage { background: #354334; }
.theme-dark .sticky-note.note-rose { background: #47372f; }
.theme-dark .sticky-note.note-sand { background: #48432d; }
.sticky-note-head { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.sticky-note-tools { display: flex; gap: 6px; }
.sticky-note-tools button { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.22); color: var(--muted); cursor: pointer; font-size: 12px; }
.sticky-note-tools button:hover { border-color: var(--accent); color: var(--accent); }
.sticky-note textarea { width: 100%; min-height: 126px; resize: vertical; margin-top: 8px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 12px/1.6 var(--sans); }
.sticky-note textarea::placeholder { color: var(--faint); }

@media (max-width: 1050px) {
  .desktop-apps { top: 30px; left: 6vw; grid-template-columns: repeat(2, 76px); column-gap: 17px; row-gap: 18px; }
  .app-window { --window-min-width: 24rem; --window-min-height: 20rem; }
  .view-about { padding-right: 27px; padding-left: 27px; }
  .profile-hero { grid-template-columns: minmax(0, 1.2fr) minmax(150px, .8fr); gap: 20px; }
  .profile-artwork-button { width: min(100%, 190px); }
}

@media (max-width: 760px) {
  .desktop { --dock-height: 48px; --dock-bottom: 8px; --window-edge-gap: 12px; }
  .workspace { inset: 0; }
  .desktop-apps { top: 22px; right: auto; bottom: auto; left: 16px; display: grid; grid-template-columns: repeat(2, 70px); justify-content: start; gap: 17px 16px; }
  .app-shortcut { width: 70px; align-items: center; }
  .shortcut-icon { width: 42px; height: 42px; margin-bottom: 6px; border-radius: 12px; }
  .shortcut-name { font-size: 9px; }
  .dock { right: auto; bottom: 8px; left: 50%; width: calc(100% - 24px); height: 48px; padding: 0 5px; border-radius: 14px; transform: translateX(-50%); }
  .dock-home { min-width: 62px; height: 34px; gap: 5px; padding: 0 4px; }

  .dock-home-label { font-size: 8px; }
  .dock-app { width: 31px; height: 34px; }
  .dock-launcher { width: 29px; }
  .dock-apps { gap: 1px; }
  .dock-app-glyph { width: 28px; height: 28px; font-size: 10px; }
  .dock-system { gap: 5px; }
  .theme-toggle { width: 30px; height: 30px; flex-basis: 30px; }
  .dock-status { gap: 5px; padding: 0 5px 0 3px; font-size: 7px; }
  .dock-status { gap: 2px; padding-right: 4px; }
  .sfx-toggle { flex-basis: 20px; width: 20px; height: 28px; }
  .dock-system { gap: 4px; }
  #clock-time { flex-basis: 43px; width: 43px; min-width: 43px; }
  .start-menu { bottom: 64px; left: 12px; width: min(304px, calc(100% - 24px)); max-height: calc(100vh - 84px); }
  .desktop .app-window { --window-default-width: clamp(20rem, 92vw, 40rem); --window-default-height: clamp(24rem, 78dvh, 42rem); --window-min-width: 18rem; --window-min-height: 20rem; border-radius: 13px; }
  .app-window[data-app="about"] { --window-default-width: clamp(20rem, 92vw, 40rem); --window-default-height: clamp(24rem, 78dvh, 42rem); --window-min-width: 18rem; --window-min-height: 20rem; }
  .app-window[data-app="projects"] { --window-default-width: clamp(20rem, 94vw, 44rem); --window-default-height: clamp(26rem, 82dvh, 44rem); --window-min-width: 18rem; --window-min-height: 21rem; }
  .app-window[data-app="toolkit"] { --window-default-width: clamp(20rem, 92vw, 40rem); --window-default-height: clamp(25rem, 80dvh, 42rem); --window-min-width: 18rem; --window-min-height: 21rem; }
  .app-window[data-app="contact"] { --window-default-width: clamp(20rem, 90vw, 38rem); --window-default-height: clamp(23rem, 74dvh, 40rem); --window-min-width: 18rem; --window-min-height: 19rem; }
  .app-window[data-app="terminal"] { --window-default-width: clamp(20rem, 92vw, 40rem); --window-default-height: clamp(24rem, 76dvh, 40rem); --window-min-width: 18rem; --window-min-height: 20rem; }
  .app-window[data-app="notes"] { --window-default-width: clamp(20rem, 94vw, 42rem); --window-default-height: clamp(25rem, 80dvh, 42rem); --window-min-width: 18rem; --window-min-height: 21rem; }
  .window-bar { flex-basis: 46px; height: 46px; padding: 0 9px 0 11px; }
  .window-app-identity { min-width: 0; font-size: 8px; }
  .window-bar-center { display: none; }
  .window-controls { gap: 5px; }
  .window-control { width: 29px; height: 29px; border-radius: 8px; }
  .resize-n, .resize-s { right: 18px; left: 18px; height: 24px; }
  .resize-n { right: 112px; }
  .resize-e, .resize-w { width: 24px; }
  .resize-e, .resize-w { top: 48px; }
  .resize-nw, .resize-ne, .resize-se, .resize-sw { width: 40px; height: 40px; }
  .resize-nw, .resize-ne { top: 0; height: 16px; }
  .resize-se { width: 44px; height: 44px; }
  .resize-sw { bottom: 0; left: 0; width: 40px; height: 40px; }
  .view { padding: 16px 17px 0; }
  .view-about { gap: 18px; padding: 20px 18px; }
  .profile-hero { grid-template-columns: minmax(0, 1fr) minmax(120px, 29%); gap: 16px; }
  .view-about .profile-copy h2 { margin: 10px 0 13px; font-size: clamp(29px, 5.2vw, 36px); }
  .profile-intro { font-size: 10px; line-height: 1.65; }
  .profile-artwork-button { width: 100%; max-width: 152px; border-radius: 14px; }
  .profile-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .profile-fact { padding: 12px 10px; }

  .view-about .profile-fact strong { font-size: 9px; }
  .notes-heading h2 { font-size: 27px; }
  .terminal-shell { min-height: 0; font-size: 10px; }
  .terminal-output { padding: 16px; }
  .terminal-form { min-height: 46px; padding: 0 16px; }
  .notes-heading { align-items: center; }
  .notes-toolbar { flex-direction: column; align-items: stretch; }
  .notes-board { grid-template-columns: 1fr; }
  .sticky-note { min-height: 150px; }
  .sticky-note textarea { min-height: 94px; }
  .projects-heading { padding: 18px 0 14px; }
  .projects-heading h2, .toolkit-heading h2 { font-size: 27px; }
  .project-list { grid-template-columns: 1fr; gap: 9px; padding-top: 9px; }
  .project-entry { min-height: 0; padding: 14px; }
  .project-summary h3 { font-size: 18px; }
  .project-description { font-size: 11px; }
  .project-tech { margin-top: 10px; }
  .project-category { font-size: 8px; }
  .toolkit-heading { padding: 12px 0 15px; }
  .toolkit-heading p { font-size: 11px; }
  .skill-group { display: block; padding: 13px; }
  .skill-group h3 { font-size: 11px; }
  .skill-group li, .skill-chips span { padding: 6px 8px; font-size: 10px; }
}

@media (max-width: 480px) {
  .view-about { justify-content: flex-start; gap: 16px; padding: 18px 14px 20px; }
  .profile-hero { grid-template-columns: minmax(0, 1fr) minmax(92px, 28%); gap: 11px; }
  .profile-headline-break { display: none; }
  .profile-greeting { font-size: 10px; }
  .view-about .profile-copy h2 { margin: 8px 0 11px; font-size: clamp(22px, 6.2vw, 28px); line-height: 1.06; letter-spacing: -.035em; }
  .profile-intro { font-size: 9px; line-height: 1.58; }
  .view-about .inline-link { gap: 6px; margin-top: 11px; padding: 8px 9px; font-size: 8px; }
  .profile-artwork-button { width: 100%; max-width: 124px; margin-top: 0; border-radius: 12px; }
  .profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .profile-fact { padding: 10px; }
  .profile-facts > .profile-fact:nth-child(2) { grid-column: 1 / -1; }
  .fact-label { margin-bottom: 6px; }
  .view-about .profile-fact strong { font-size: 9px; }
}

@media (max-width: 480px) {
  .project-highlights { grid-template-columns: 1fr; gap: 8px; }
  .notes-status { width: 100%; font-size: 9px; }
  .notes-toolbar { flex: 1; }
}
@media (max-width: 390px) {
  .desktop-apps { left: 13px; right: 13px; }
  .app-shortcut { width: 53px; }
  .shortcut-icon { width: 39px; height: 39px; }
  .dock-home { width: auto; min-width: 30px; padding: 0 2px; }
  .dock-home-label { display: none; }
  .dock-app { width: 28px; }
  .dock-apps { max-width: 42vw; }
  .dock-status { padding-right: 3px; }
}

@media (max-width: 760px) {
  .notes-heading { align-items: flex-start; flex-wrap: wrap; }
  .notes-toolbar { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .notes-board { grid-template-columns: 1fr; }
  .project-entry { padding: 15px; }
  .project-summary h3 { font-size: 21px; }
  .project-description { font-size: 11px; }
  .toolkit-heading { padding: 12px 0 15px; }
  .toolkit-heading p { font-size: 11px; }
  .skill-group { display: block; padding: 13px; }
  .skill-group h3 { font-size: 11px; }
  .skill-group li, .skill-chips span { padding: 6px 8px; font-size: 10px; }
}
@media (max-width: 480px) {
  .project-highlights { grid-template-columns: 1fr; gap: 8px; }
  .notes-heading { gap: 10px; }
  .notes-toolbar { flex: 1; }
  .notes-status { width: 100%; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Desktop shortcut management */
#desktop-apps.desktop-apps {
  --shortcut-width: 82px;
  --shortcut-icon-size: 48px;
  position: absolute;
  z-index: 1;
  inset: 0 0 calc(var(--dock-height) + var(--dock-bottom) + var(--window-edge-gap) + env(safe-area-inset-bottom)) 0;
  display: block;
  overflow: visible;
  pointer-events: none;
}
#desktop-apps .app-shortcut {
  position: absolute;
  display: flex;
  width: var(--shortcut-width);
  min-height: 0;
  align-items: center;
  padding: 4px 2px 3px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  transition: left .12s ease-out, top .12s ease-out, background .16s ease, border-color .16s ease, color .16s ease;
}
#desktop-apps .app-shortcut:active { cursor: grabbing; }
#desktop-apps .app-shortcut:hover {
  border-color: var(--line-strong);
  background: rgba(var(--paper-rgb), .035);
}
#desktop-apps .app-shortcut:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), .72);
  outline-offset: 2px;
  background: rgba(var(--paper-rgb), .055);
}
#desktop-apps .app-shortcut.is-selected {
  border-color: rgba(var(--accent-rgb), .2);
  background: rgba(var(--accent-rgb), .055);
}
#desktop-apps .app-shortcut.is-selected .shortcut-icon {
  border-color: rgba(var(--accent-rgb), .34);
  background: rgba(var(--accent-rgb), .055);
  box-shadow: none;
}
#desktop-apps .app-shortcut:hover .shortcut-icon,
#desktop-apps .app-shortcut:focus-visible .shortcut-icon {
  transform: none;
  border-color: var(--line-strong);
  box-shadow: none;
}
#desktop-apps .shortcut-icon {
  width: var(--shortcut-icon-size);
  height: var(--shortcut-icon-size);
  flex: 0 0 auto;
  margin-bottom: 6px;
  border-color: var(--line);
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(31, 34, 27, .035);
}
#desktop-apps .shortcut-name {
  max-width: 100%;
  padding: 1px 4px;
  overflow-wrap: anywhere;
  user-select: none;
}
#desktop-apps .app-shortcut.is-selected .shortcut-name {
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}
#desktop-apps .app-shortcut.is-moving { z-index: 2; transition: none; }
#desktop-apps .app-shortcut.is-dragging { opacity: .5; }
#desktop-apps .shortcut-rename {
  width: 100%;
  min-width: 0;
  padding: 2px 3px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  outline: 0;
  background: var(--window);
  color: var(--ink);
  font: 600 10px var(--sans);
  text-align: center;
}
.desktop-selection-box {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(var(--accent-rgb), .38);
  border-radius: 3px;
  background: rgba(var(--accent-rgb), .045);
  pointer-events: none;
}
.shortcut-drag-ghost {
  position: fixed;
  z-index: 25;
  display: flex;
  width: 82px;
  align-items: center;
  flex-direction: column;
  opacity: .88;
  pointer-events: none;
  transform: translate(-50%, -55%);
}
.shortcut-drag-ghost .shortcut-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-color: var(--line-strong);
  background: var(--sage);
  box-shadow: 0 3px 10px rgba(20, 25, 20, .09);
}
.shortcut-drag-ghost .shortcut-name {
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(var(--paper-rgb), .88);
  color: var(--ink);
  font-size: 10px;
  text-align: center;
  box-shadow: 0 1px 5px rgba(31, 34, 27, .08);
}
.shortcut-drag-ghost::after {
  position: absolute;
  top: 2px;
  right: 12px;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid var(--window);
  border-radius: 50%;
  background: var(--accent);
  color: var(--selection-ink);
  box-shadow: 0 1px 4px rgba(20, 25, 20, .16);
  content: "+";
  font: 500 11px/1 var(--sans);
}.desktop-context-menu {
  position: fixed;
  z-index: 30;
  display: grid;
  width: 176px;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--window);
  box-shadow: 0 12px 35px rgba(20, 25, 20, .2);
  color: var(--ink);
}
.desktop-context-menu button {
  min-height: 31px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 10px var(--mono);
  text-align: left;
}
.desktop-context-menu button:hover,
.desktop-context-menu button:focus-visible { outline: 0; background: rgba(var(--accent-rgb), .11); color: var(--accent); }
.desktop-context-menu button:disabled { color: var(--faint); cursor: default; }
.desktop-context-menu button:disabled:hover { background: transparent; color: var(--faint); }
.desktop-context-separator { height: 1px; margin: 3px 4px; background: var(--line); }
.desktop-status {
  position: absolute;
  z-index: 20;
  right: 50%;
  bottom: calc(var(--dock-height) + var(--dock-bottom) + 10px + env(safe-area-inset-bottom));
  max-width: min(80vw, 320px);
  margin: 0;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--window);
  box-shadow: 0 5px 18px rgba(20, 25, 20, .12);
  color: var(--ink);
  font: 9px var(--mono);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 5px);
  transition: opacity .16s ease, transform .16s ease;
}
.desktop-status.is-visible { opacity: 1; transform: translate(50%, 0); }
.start-menu-item { cursor: grab; touch-action: none; }
.start-menu-item.is-dragging {
  opacity: 1;
  background: rgba(var(--paper-rgb), .045);
  color: var(--ink);
}
.start-menu-item.is-dragging > span:first-child { color: var(--muted); }
@media (max-width: 1050px) {
  #desktop-apps.desktop-apps { --shortcut-width: 76px; }
}
@media (max-width: 760px) {
  #desktop-apps.desktop-apps { --shortcut-width: 70px; --shortcut-icon-size: 42px; }
  #desktop-apps .shortcut-icon { margin-bottom: 6px; border-radius: 12px; }
}
@media (max-width: 390px) {
  #desktop-apps.desktop-apps { --shortcut-width: 53px; --shortcut-icon-size: 39px; }
}
/* Compact Start Menu refinement */
.start-menu-head {
  min-height: 68px;
  gap: 10px;
  padding: 10px 12px 10px 13px;
  border-bottom: 1px solid var(--line);
}
.start-menu-profile {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
}
.start-menu-profile-copy { display: grid; min-width: 0; gap: 3px; }
.start-menu-profile-copy strong { line-height: 1.2; }
.start-menu-profile-copy small { line-height: 1.25; }
.start-menu-mark { overflow: hidden; }
.start-menu-mark img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.start-menu-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.start-menu-action, .wallpaper-audio-toggle {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 253, 248, .13);
  border-radius: 8px;
  background: rgba(255, 253, 248, .035);
  color: rgba(255, 253, 248, .76);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease;
}
.start-menu-action > span { display: grid; place-items: center; }
.start-menu-action [data-app-icon="preferences"] .app-icon-svg { width: 18px; height: 18px; }
.start-menu-action svg, .start-menu-action .app-icon-svg, .wallpaper-audio-toggle svg { display: block; width: 16px; height: 16px; }
.start-menu-action svg, .wallpaper-audio-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.start-menu-action:hover, .wallpaper-audio-toggle:hover { border-color: rgba(var(--accent-rgb), .48); background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.start-menu-action:focus-visible, .wallpaper-audio-toggle:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .72); outline-offset: 2px; }
.start-menu-action:active, .wallpaper-audio-toggle:active { transform: scale(.96); }
.start-menu-list { display: grid; gap: 2px; padding: 8px; }
.start-menu-item {
  min-height: 36px;
  gap: 10px;
  padding: 0 10px;
  font-size: 10px;
  line-height: 1.3;
}
.start-menu-item > span:first-child { width: 20px; flex-basis: 20px; }
.start-menu-item:hover, .start-menu-item:focus-visible { background: rgba(var(--accent-rgb), .085); color: var(--accent); }
.start-menu-item:focus-visible { outline: 1px solid rgba(var(--accent-rgb), .58); outline-offset: -2px; }
.start-menu-item .app-icon-svg { width: 17px; height: 17px; }
@media (max-width: 390px) {
  .start-menu-head { gap: 7px; padding-right: 9px; padding-left: 10px; }
  .start-menu-profile { gap: 8px; }
  .start-menu-actions { gap: 3px; }
  .start-menu-action, .wallpaper-audio-toggle { width: 28px; height: 28px; flex-basis: 28px; }
  .start-menu-action svg, .start-menu-action .app-icon-svg, .wallpaper-audio-toggle svg { width: 15px; height: 15px; }
  .start-menu-action [data-app-icon="preferences"] .app-icon-svg { width: 17px; height: 17px; }
}
/* Compact Contact and optional feedback */
.view-contact {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 22px clamp(18px, 3vw, 30px);
}
.contact-panel { width: 100%; max-width: 448px; margin: auto; }
.contact-heading { margin: 0 0 17px; }
.contact-heading h2 { margin: 0; color: var(--ink); font: 500 clamp(29px, 3.1vw, 36px)/1.08 var(--display); letter-spacing: -.025em; }
.contact-intro { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.contact-form { display: grid; gap: 11px; margin: 0; }
.contact-field { display: grid; min-width: 0; gap: 5px; }
.contact-field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--ink); font-size: 10px; font-weight: 600; line-height: 1.3; }
.contact-required { color: var(--faint); font: 8px var(--mono); }
.contact-field input, .contact-field textarea, .contact-feedback-panel textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: 0;
  background: rgba(128, 128, 128, .035);
  color: var(--ink);
  font: 12px/1.45 var(--sans);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.contact-field textarea, .contact-feedback-panel textarea { min-height: 84px; resize: vertical; }
.contact-field input::placeholder, .contact-field textarea::placeholder, .contact-feedback-panel textarea::placeholder { color: var(--faint); opacity: 1; }
.contact-field input:focus, .contact-field textarea:focus, .contact-feedback-panel textarea:focus {
  border-color: var(--accent);
  background: rgba(128, 128, 128, .05);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .1);
}
.contact-field [aria-invalid="true"] { border-color: var(--accent); }
.contact-field-error { margin: 0; color: var(--accent); font-size: 10px; line-height: 1.35; }
.contact-feedback-toggle {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 9px var(--mono);
  text-align: left;
  transition: color .16s ease;
}
.contact-feedback-toggle:hover { color: var(--accent); }
.contact-feedback-toggle:focus-visible { border-radius: 3px; outline: 2px solid rgba(var(--accent-rgb), .68); outline-offset: 3px; }
.contact-feedback-plus { display: grid; width: 16px; height: 16px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); font: 12px/1 var(--sans); }
.contact-optional { color: var(--faint); font-size: 8px; }
.contact-feedback-panel { display: grid; gap: 5px; margin-top: 7px; }
.contact-feedback-panel[hidden] { display: none; }
.contact-form-actions { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 12px; }
.contact-form-status { flex: 1 1 auto; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.contact-form-status:empty { display: none; }
.contact-submit {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: var(--selection-ink);
  cursor: pointer;
  font: 600 10px var(--mono);
  transition: filter .16s ease, transform .16s ease, box-shadow .16s ease;
}
.contact-submit:hover { filter: brightness(1.04); transform: translateY(-1px); }
.contact-submit:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .72); outline-offset: 3px; }
.contact-submit:active { transform: translateY(0); }
@media (max-width: 760px) {
  .app-window[data-app="contact"] { --window-default-width: clamp(18rem, 90vw, 34rem); --window-default-height: clamp(27rem, 72dvh, 35rem); --window-min-width: 18rem; --window-min-height: 24rem; }
  .view-contact { padding: 18px clamp(15px, 5vw, 24px); }
  .contact-heading { margin-bottom: 14px; }
  .contact-heading h2 { font-size: clamp(28px, 8vw, 34px); }
  .contact-form { gap: 9px; }
  .contact-field textarea, .contact-feedback-panel textarea { min-height: 72px; }
}
@media (max-width: 480px) {
  .contact-form-actions { align-items: stretch; flex-direction: column; }
  .contact-form-status { width: 100%; }
  .contact-submit { width: 100%; min-height: 40px; }
}

/* Wallpaper layer and native Preferences panel */
.wallpaper-layer {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
  pointer-events: none;
}
.desktop.has-wallpaper .ambient { opacity: .24; }
.wallpaper-desktop-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-window[data-app="preferences"] {
  --window-default-width: clamp(30rem, 44vw, 40rem);
  --window-default-height: clamp(32rem, 70dvh, 46rem);
  --window-min-width: 28rem;
  --window-min-height: 28rem;
}
.view-preferences {
  display: grid;
  max-width: 680px;
  min-height: 100%;
  align-content: start;
  gap: 13px;
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 25px);
}
.preferences-heading h2 {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(26px, 3vw, 32px)/1.1 var(--display);
  letter-spacing: -.025em;
}
.preferences-heading p, .preferences-section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.preferences-section {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(128, 128, 128, .025);
}
.preferences-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.preferences-section-heading h3 {
  margin: 0;
  color: var(--ink);
  font: 600 12px/1.3 var(--sans);
}
.preferences-state, .preferences-optional {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--faint);
  font: 8px var(--mono);
}
.preferences-state { color: var(--accent); }
.wallpaper-preview {
  position: relative;
  height: clamp(100px, 16dvh, 138px);
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background:
    radial-gradient(ellipse at 18% 16%, rgba(var(--accent-rgb), .16), transparent 47%),
    linear-gradient(135deg, var(--sage), var(--paper) 58%, rgba(var(--accent-rgb), .12));
}
.wallpaper-preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font: 9px var(--mono);
}
.wallpaper-preview-empty[hidden] { display: none; }
.wallpaper-preview-empty.is-live { color: var(--accent); font-size: 8px; }
.wallpaper-preview-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preferences-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}
.preferences-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.preferences-button {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(128, 128, 128, .035);
  color: var(--ink);
  cursor: pointer;
  font: 9px var(--mono);
  transition: border-color .16s ease, background .16s ease, color .16s ease, opacity .16s ease;
}
.preferences-button:hover:not(:disabled) { border-color: rgba(var(--accent-rgb), .55); background: rgba(var(--accent-rgb), .07); }
.preferences-button:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .7); outline-offset: 2px; }
.preferences-button:disabled { cursor: default; opacity: .46; }
.preferences-button-primary { border-color: var(--accent); background: var(--accent); color: var(--selection-ink); }
.preferences-button-primary:hover:not(:disabled) { background: var(--accent); color: var(--selection-ink); filter: brightness(1.04); }
.preferences-button-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.preferences-file-name {
  max-width: 100%;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--faint);
  font: 8px/1.45 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preferences-status {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}
.preferences-status:empty { display: none; }
.preferences-status[data-state="error"] { color: var(--accent); }
.wallpaper-audio-controls {
  position: absolute;
  z-index: 3;
  top: 7px;
  right: 7px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 4px;
}
.wallpaper-audio-controls[hidden] { display: none; }
.wallpaper-audio-popover {
  display: flex;
  width: 0;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
  padding: 0;
  border: 0 solid transparent;
  border-radius: 999px;
  background: rgba(var(--paper-rgb), .94);
  box-shadow: 0 2px 7px rgba(25, 31, 25, .14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: width .16s ease, opacity .13s ease, visibility 0s linear .16s, padding .16s ease, border-width .16s ease;
  backdrop-filter: blur(7px);
}
.wallpaper-audio-controls:focus-within .wallpaper-audio-popover,
.wallpaper-audio-controls[data-open="true"] .wallpaper-audio-popover {
  width: 78px;
  padding: 0 4px;
  border-width: 1px;
  border-color: var(--line-strong);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.wallpaper-audio-step {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 11px/1 var(--mono);
}
.wallpaper-audio-step:hover { background: rgba(var(--accent-rgb), .12); color: var(--ink); }
.wallpaper-audio-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wallpaper-audio-value {
  display: block;
  width: 26px;
  flex: 0 0 auto;
  color: var(--muted);
  font: 8px var(--mono);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.preferences-sound { padding-bottom: 11px; }
.preferences-sound-toggle {
  position: relative;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: var(--ink);
  cursor: pointer;
  font-size: 9px;
}
.preferences-sound-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.preferences-switch {
  position: relative;
  width: 29px;
  height: 17px;
  flex: 0 0 29px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(128, 128, 128, .1);
  transition: background .16s ease, border-color .16s ease;
}
.preferences-switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition: transform .16s ease, background .16s ease;
}
.preferences-sound-toggle input:checked + .preferences-switch { border-color: var(--accent); background: rgba(var(--accent-rgb), .28); }
.preferences-sound-toggle input:checked + .preferences-switch::after { background: var(--accent); transform: translateX(12px); }
.preferences-sound-toggle input:focus-visible + .preferences-switch { outline: 2px solid rgba(var(--accent-rgb), .72); outline-offset: 2px; }
.preferences-sound-toggle input:disabled + .preferences-switch { opacity: .5; }
.preferences-sound-toggle:has(input:disabled) { cursor: default; }
.preferences-volume {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}
.preferences-volume input { width: 100%; accent-color: var(--accent); }
.preferences-volume input:disabled { opacity: .4; }
.preferences-volume output { color: var(--faint); font: 8px var(--mono); text-align: right; }
.preferences-appearance {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 1px 0;
  border-top: 1px solid var(--line);
}
.preferences-appearance summary {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  list-style: none;
}
.preferences-appearance summary::-webkit-details-marker { display: none; }
.preferences-appearance summary::after { color: var(--faint); content: "+"; font: 12px var(--mono); }
.preferences-appearance[open] summary::after { content: "−"; }
.preferences-appearance > label { color: var(--muted); font-size: 9px; }
.preferences-appearance select {
  min-width: 94px;
  min-height: 29px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--window);
  color: var(--ink);
  font: 9px var(--sans);
}
.preferences-appearance select:focus-visible { outline: 2px solid rgba(var(--accent-rgb), .7); outline-offset: 2px; }
@media (max-width: 760px) {
  .app-window[data-app="preferences"] {
    --window-default-width: clamp(19rem, 92vw, 38rem);
    --window-default-height: clamp(29rem, 76dvh, 42rem);
    --window-min-width: 18rem;
    --window-min-height: 24rem;
  }
  .view-preferences { gap: 10px; padding: 13px; }
  .preferences-section { padding: 10px; }
  .wallpaper-preview { height: clamp(86px, 15dvh, 120px); }
}
@media (max-width: 390px) {
  .preferences-actions { gap: 5px; }
  .preferences-button { min-height: 32px; padding: 0 8px; font-size: 8px; }
}
