:root {
    --panel-height: 62px;
    --system-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --screen-side: max(90px, calc((100vw - 1080px) / 2));
    --screen-top: 108px;
    --screen-bottom: 220px;
    --text-main: #283138; --text-soft: #59616a; --text-mute: #6b737c;
    --system-blue: #236bc4;
}
body.desktop-system { overflow: hidden; background: #e7e9ed; font-family: var(--system-font); color: #283138; }
.desktop-system :is(h1,h2,h3,h4,p,a,button,input,textarea,small,strong,time,.window-title,.toolbar-pill,.mini-label,.dock-name,.meta-pill,.tech-pill,.terminal-tag) { font-family: var(--system-font); letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.desktop-system .desktop-root { height: 100svh; }
.desktop-system .desktop-shell { height: calc(100svh - var(--panel-height)); }
.desktop-system .workspace { height: 100%; min-height: 0; overflow: hidden; background: #e7e9ed; }
.desktop-system .desktop-home { min-height: 0; height: 100%; padding: 0; visibility: visible !important; }
.desktop-system .computer-room { min-height: 0; max-height: none; height: 100%; overflow: hidden; isolation: isolate; }
.desktop-system .desktop-sculpture { z-index: 0; }
.desktop-system .project-spotlight { position: absolute; inset: 0; z-index: 1; }
.desktop-system .top-panel { height: var(--panel-height); display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 30px; color: #333a43; background: #edf0f3d9; backdrop-filter: blur(18px); border-color: #d2d7dd; }
.desktop-system .home-button { display: flex; align-items: center; gap: 10px; min-width: 0; color: #333a43; font-size: 13px; font-weight: 600; border: 0; background: none; padding: 10px 0; }
.desktop-system .home-button > i { color: #56616e; font-size: 15px; }
.desktop-system .top-panel__center { display: block; color: #747d87; font-family: var(--system-font); font-size: 12px; font-weight: 400; }
.desktop-system .top-panel__right { display: flex; align-items: center; justify-self: end; gap: 8px; }
.desktop-system .header-cv { min-height: 34px; color: #324c6d; border-color: #c1cbd6; background: #f9fbfd; font-size: 12px; border-radius: 6px; padding: 0 12px; box-shadow: 0 1px 1px #152e4810; }
.desktop-system .header-cv:hover { background: #fff; border-color: #8296b0; }
.system-control { display: grid; place-items: center; width: 32px; height: 34px; flex-shrink: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #526170; font-size: 13px; }
.system-control:hover { background: #d8dfe7; border-color: #bec9d6; }
.system-control[hidden], #explodeToggle, #computerDesktop { display: none !important; }
.desktop-system .screen-anchor, .desktop-system .app-window, .desktop-system .app-window.is-maximized, .desktop-system .desktop-welcome, .desktop-system .power-screen {
    position: fixed; left: var(--screen-side) !important; right: var(--screen-side) !important;
    top: var(--screen-top) !important; bottom: var(--screen-bottom) !important;
    width: auto !important; height: auto !important; min-width: 0; min-height: 0;
}
.screen-anchor { pointer-events: none; visibility: hidden; }
.desktop-system .window-layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.desktop-system .app-window { --text-main: #283138; --text-soft: #59616a; --text-mute: #6b737c; background: #fcfcfd; border: 1px solid #d9dee3; border-radius: 4px; box-shadow: none; color: #283138; }
.desktop-system .app-window.is-active { border-color: #c8d0d9; }
.desktop-system .app-window.is-active { animation: window-appear 200ms ease-out; }
@keyframes window-appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.desktop-system .window-titlebar { min-height: 42px; height: 42px; padding: 0 12px; border-color: #d9dfe5; background: #f0f2f5; cursor: default; }
.desktop-system .window-title { color: #52606d; font-size: 12px; font-weight: 500; }
.desktop-system .window-controls { gap: 2px; }
.desktop-system .window-control { width: 27px; height: 27px; padding: 6px; }
.desktop-system .window-control::before { opacity: 1; }
.desktop-system .window-toolbar { min-height: 36px; padding: 6px 18px; background: #fafbfc; border-color: #e5e8eb; }
.desktop-system .app-window:not([data-app-window="cv"]) .window-toolbar { display: none; }
.desktop-system .toolbar-pill { padding: 0; background: transparent; color: #7c8792; font-size: 11px; }
.desktop-system .toolbar-meta { font-size: 11px; color: #6a7683; }
.desktop-system .window-content { background: #fcfcfd; }
.desktop-system .app-window:focus { outline: none; }
.desktop-system :focus-visible { outline: 2px solid #3e82d5; outline-offset: 3px; }
.desktop-system .dock { position: fixed; left: 50%; right: auto; bottom: 16px; transform: translateX(-50%); width: auto; min-height: 74px; padding: 9px 16px 8px; display: flex; align-items: center; gap: 20px; border-radius: 10px; border: 1px solid #bac4cdb0; background: #f9fbfde6; box-shadow: 0 7px 22px #44505f15, inset 0 1px #fff; backdrop-filter: blur(20px); z-index: 80; }
.desktop-system .dock-app { width: 60px; height: 58px; gap: 6px; }
.desktop-system .dock-app__icon { width: 36px; height: 36px; border-radius: 8px; box-shadow: inset 0 1px #ffffff60, 0 1px 2px #1a33441c; font-size: 17px; }
.desktop-system .dock-app__icon--home { background: #cbe1f5; color: #30679a; }
.desktop-system .dock-app__icon--folder { background: #efcb75; color: #855c15; }
.desktop-system .dock-app__icon--doc { background: #e9e9ee; color: #61647b; }
.desktop-system .dock-app__icon--mail { background: #a7d6df; color: #28647d; }
.desktop-system .dock-name { display: block; font-size: 10px; line-height: 13px; font-weight: 400; color: #606b77; }
.desktop-system .dock-name small { font-size: 9px; color: #76899a; margin-left: 2px; }
.desktop-system .dock-app.is-active .dock-name { color: #1e4c7e; font-weight: 500; }
.desktop-system .dock-app__dot { bottom: -5px; background: #4a6b8e; width: 3px; height: 3px; }
.desktop-system .dock-app:hover .dock-app__icon, .desktop-system .dock-app:focus-visible .dock-app__icon { transform: translateY(-3px); }
.desktop-system .dock-app::after { display: none; }
.desktop-system .room-caption { position: fixed; bottom: 28px; left: 30px; right: 30px; display: flex; justify-content: space-between; align-items: center; color: #6c7885; font-size: 11px; pointer-events: none; z-index: 2; }
.room-caption a { pointer-events: auto; display: flex; align-items: center; gap: 7px; }
.room-caption i { font-size: 9px; }
.desktop-system .scene-tools { position: fixed; left: auto; top: auto; bottom: 105px; right: 30px; z-index: 3; }
body.is-app-open .scene-tools { display: none; }
.desktop-system .desktop-welcome, .desktop-system .power-screen { z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; margin: 0; overflow: auto; padding: 22px; border-radius: 4px; background: #f8fafc; }
.desktop-system .scene-ready .desktop-welcome { opacity: 0; }
.desktop-system .scene-ready .desktop-welcome:focus-within { opacity: 1; }
.desktop-system .desktop-welcome { pointer-events: none; }
.desktop-system .desktop-welcome button { pointer-events: auto; }
.desktop-welcome img { width: 160px; height: 180px; border-radius: 6px; object-fit: cover; object-position: 36% 30%; }
.desktop-welcome h1 { font-size: 24px; font-weight: 600; margin: 4px 0 0; }
.desktop-welcome p { font-size: 13px; color: #63717d; margin: 0 0 10px; }
.desktop-system .power-screen { background: #151a22; color: #e3e7ed; }
.power-screen > i { font-size: 28px; color: #94a8bd; }
.power-screen p { font-size: 16px; margin: 8px 0 0; }
.power-screen > span { font-size: 12px; color: #93a2b3; }
.power-screen .action-button { margin-top: 12px; }
.desktop-system [hidden] { display: none !important; }
body.is-app-open .desktop-welcome { visibility: hidden; }
body.is-screen-expanded { --screen-side: 22px; --screen-top: 76px; --screen-bottom: 108px; }
body.is-screen-expanded .app-window { border-radius: 7px; box-shadow: 0 8px 50px #5a697a28; }
body.desktop-system:not(.is-app-open) { --screen-side: max(50px, calc((100vw - 720px) / 2)); --screen-top: 150px; --screen-bottom: 265px; }

.desktop-system .about-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 40px; padding: 30px 36px; overflow-y: auto; align-items: start; }
.desktop-system .profile-card { display: block; background: transparent; border: 0; padding: 0; }
.desktop-system .profile-card__photo { width: 100%; height: 330px; min-height: 0; aspect-ratio: auto; border: 0; border-radius: 6px; overflow: hidden; }
.desktop-system .profile-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 45%; }
.profile-location { display: flex; align-items: center; gap: 7px; color: #7b8794; font-size: 11px; padding: 15px 0 12px; }
.desktop-system .profile-links { display: flex; flex-wrap: wrap; gap: 16px; padding: 0; }
.desktop-system .profile-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 12px; color: #4b6681; }
.desktop-system .profile-links a:hover { color: #1b6bc2; }
.desktop-system .about-copy { display: block; min-width: 0; max-width: 760px; }
.profile-heading { margin: 1px 0 20px; }
.profile-heading h1 { font-size: 30px; line-height: 1.2; font-weight: 600; margin: 0 0 9px; color: #252f3a; }
.profile-heading p { font-size: 13px; margin: 0; color: #768290; }
.about-copy > p { font-size: 14px; line-height: 1.8; color: #576473; margin: 0 0 17px; max-width: 640px; }
.profile-project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 12px 0 19px; }
.profile-project-links button { min-height: 32px; padding: 0; border: 0; background: none; border-radius: 0; display: flex; align-items: center; gap: 8px; color: #2565b0; font-size: 12px; }
.profile-project-links button:hover { text-decoration: underline; text-underline-offset: 4px; }
.profile-project-links i { font-size: 9px; }
.profile-project-links span { color: #7c8b9c; font-size: 10px; }
.profile-records { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; border-top: 1px solid #e3e7ec; padding-top: 18px; }
.profile-records h2, .profile-stack h2 { font-size: 11px; color: #7c8896; font-weight: 500; margin: 0 0 12px; }
.profile-records strong { display: block; font-size: 12px; font-weight: 500; color: #344554; line-height: 1.6; }
.profile-records p { font-size: 12px; color: #7a8793; line-height: 1.6; margin: 3px 0 14px; }
.profile-stack { margin-top: 12px; border-top: 1px solid #e3e7ec; padding-top: 14px; }
.profile-stack p { font-size: 12px; color: #6a7785; line-height: 1.7; margin: 0; }
.desktop-system .action-button { background: #3976bb; border: 1px solid #306bae; border-radius: 5px; font-size: 12px; min-height: 36px; padding: 8px 12px; }
.desktop-system .action-button:hover { background: #2966ab; }
.desktop-system .action-button--ghost { background: #f4f7fa; border-color: #bdccdc; color: #3c648d; }
.desktop-system .mini-label { font-size: 11px; font-weight: 500; color: #7b8792; }
.desktop-system .project-browser { grid-template-columns: 136px minmax(230px,1fr) minmax(290px,1.1fr); }
.desktop-system .project-sidebar { background: #f2f4f7; border-color: #e0e5eb; padding: 18px 10px; }
.desktop-system .sidebar-filter { font-size: 12px; min-height: 36px; padding: 9px; color: #697888; }
.desktop-system .sidebar-filter.is-active { background: #dfe9f6; color: #2a5d92; }
.desktop-system .project-main { background: #fcfcfd; padding: 12px; }
.desktop-system .project-card { grid-template-columns: 76px minmax(0,1fr); min-height: 120px; padding: 10px; gap: 6px 12px; }
.desktop-system .project-card__thumb { width: 76px; background: #eef1f5; }
.desktop-system .project-card h3 { font-size: 14px; font-weight: 500; }
.desktop-system .project-card p { font-size: 12px; line-height: 1.6; }
.desktop-system .project-card.is-selected { background: #edf3fa; border-color: #c6d8ee; }
.desktop-system .project-inspector { background: #fff; padding: 24px; }
.desktop-system .project-inspector__panel h3 { font-size: 21px; font-weight: 500; line-height: 1.3; }
.desktop-system .project-inspector__panel p { font-size: 13px; line-height: 1.8; }
.desktop-system .inspector-image--button { border: 1px solid #d6dfe8; }
.desktop-system .inspector-expand { background: #f4f7fadf; color: #4b637c; border: 1px solid #b3c4d5; }
.desktop-system .inspector-image--button:hover .inspector-expand { background: #d7e5f5; }
.desktop-system .tech-pill { font-size: 11px; background: #f0f3f7; color: #63778a; }
.desktop-system .plain-list { font-size: 13px; line-height: 1.8; }
.desktop-system .cv-layout { padding: 26px; }
.desktop-system .cv-sheet { padding: 28px; }
.desktop-system .cv-sheet__header h2 { font-size: 26px; }
.desktop-system .cv-sheet__header { margin-bottom: 24px; }
.desktop-system .cv-sheet__header > p:not(.mini-label) { font-size: 13px; }
.desktop-system .cv-block h3 { font-size: 14px; font-weight: 500; }
.desktop-system .contact-layout { padding: 32px; gap: 36px; }
.desktop-system .contact-overview__mail { font-size: 20px; }
.desktop-system .contact-overview p { font-size: 13px; }
.desktop-system .contact-overview a { font-size: 13px; }
.desktop-system .contact-overview a.contact-overview__mail { font-size: 20px; line-height: 1.5; }
.desktop-system .mail-field input, .desktop-system .mail-field textarea { font-size: 13px; }
.desktop-system .image-viewer { background: #f8fafc; border-color: #a0afbf; color: #344758; }
.desktop-system .image-viewer__canvas { background: #edf1f5; }
.desktop-system .image-viewer__toolbar, .desktop-system .image-viewer__navigation { border-color: #d3dce5; }
.desktop-system #imageViewerCount { color: #667b8e; }
.desktop-system .image-viewer__actions > *, .desktop-system .image-viewer__navigation button { background: #e4ebf3; border-color: #b7c6d5; color: #3b5c7b; }
@media (max-width: 1180px) and (min-width: 981px) {
    :root { --screen-side: 60px; }
    .desktop-system .about-layout { grid-template-columns: 225px minmax(0,1fr); gap: 26px; padding: 26px; }
    .desktop-system .profile-card__photo { height: 300px; }
    .profile-heading h1 { font-size: 26px; }
    .desktop-system .project-browser { grid-template-columns: 114px minmax(210px,1fr) minmax(250px,1fr); }
    .desktop-system .project-inspector { padding: 18px; }
}
@media (min-width: 981px) and (max-height: 760px) {
    :root { --screen-top: 94px; --screen-bottom: 210px; --screen-side: max(90px, calc((100vw - 1000px) / 2)); }
    .desktop-system .about-layout { padding-top: 22px; padding-bottom: 22px; grid-template-columns: 225px minmax(0,1fr); gap: 28px; }
    .desktop-system .profile-card__photo { height: 270px; }
    .profile-heading { margin-bottom: 20px; }
    .profile-heading h1 { font-size: 27px; }
    body.desktop-system:not(.is-app-open) { --screen-top: 120px; --screen-bottom: 250px; }
}
@media (max-width: 980px) {
    :root { --panel-height: 56px; --screen-side: 18px; --screen-top: 82px; --screen-bottom: 125px; }
    .desktop-system .top-panel { position: fixed; inset: 0 0 auto; padding: 0 20px; grid-template-columns: 1fr auto; z-index: 75; }
    .desktop-system .top-panel__center { display: none; }
    .desktop-system .desktop-shell { position: absolute; inset: 56px 0 0; }
    .desktop-system .home-button { font-size: 12px; }
    .desktop-system .home-button span { display: inline; }
    .desktop-system .top-panel__right { gap: 3px; }
    .desktop-system .dock { bottom: 14px; width: 324px; max-width: calc(100% - 28px); justify-content: space-around; padding: 9px 12px; gap: 10px; }
    .desktop-system .dock-app { width: 54px; height: 56px; }
    .desktop-system .room-caption { display: none; }
    .desktop-system .scene-tools { right: 16px; bottom: 95px; }
    .desktop-system .about-layout { grid-template-columns: 215px minmax(0,1fr); gap: 28px; padding: 26px; }
    .desktop-system .profile-card__photo { height: 290px; }
    .profile-heading h1 { font-size: 26px; }
    .profile-records { grid-template-columns: 1fr; gap: 10px; }
    .desktop-system .project-browser { display: block; overflow: auto; }
    .desktop-system .project-sidebar { padding: 12px 18px; }
    .desktop-system .sidebar-filter-list { justify-content: flex-start; gap: 8px; }
    .desktop-system .project-card { grid-template-columns: 92px minmax(0,1fr); }
    .desktop-system .project-card__thumb { width: 92px; }
    .desktop-system .project-inspector { padding: 22px; }
    .desktop-system .window-control--maximize { display: none; }
    .desktop-system .window-toolbar { min-height: 33px; }
}
@media (max-width: 640px) {
    :root { --screen-side: 9px; --screen-top: 70px; --screen-bottom: 102px; }
    .desktop-system .top-panel { padding: 0 14px; }
    .desktop-system .home-button > i { display: none; }
    .desktop-system .home-button span { max-width: 96px; text-align: left; line-height: 1.3; }
    .desktop-system .system-control { width: 29px; height: 32px; font-size: 12px; }
    .desktop-system .header-cv { min-height: 32px; font-size: 11px; padding: 0 9px; gap: 6px; }
    .desktop-system .about-layout { display: flex; flex-direction: column; gap: 20px; padding: 22px; }
    .desktop-system .profile-card { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 0 12px; }
    .desktop-system .profile-card__photo { width: 100%; height: 270px; grid-column: 1 / -1; }
    .desktop-system .profile-card__photo img { object-position: 50% 32%; }
    .desktop-system .profile-location { padding: 12px 0 0; font-size: 10px; }
    .desktop-system .profile-links { gap: 12px; padding-top: 6px; }
    .desktop-system .profile-links a { font-size: 10px; }
    .profile-heading h1 { font-size: 25px; }
    .profile-heading p { font-size: 12px; line-height: 1.6; }
    .profile-heading { margin-bottom: 18px; }
    .about-copy > p { font-size: 14px; line-height: 1.8; }
    .profile-records { grid-template-columns: 1fr; }
    .desktop-system .window-titlebar { min-height: 38px; height: 38px; padding: 0 10px; }
    .desktop-system .window-toolbar { display: none; }
    .desktop-system .dock { bottom: 10px; }
    .desktop-system .contact-layout { padding: 23px; gap: 28px; }
    .desktop-system .contact-overview a.contact-overview__mail { font-size: 19px; }
    .desktop-system .cv-layout { padding: 14px; }
    .desktop-system .cv-sheet { padding: 20px; }
    .desktop-system .cv-sheet__header h2 { font-size: 23px; }
    .desktop-system .sidebar-filter { font-size: 11px; padding: 8px; }
    .desktop-system .sidebar-filter-list { flex-wrap: wrap; gap: 4px; }
    .desktop-system .project-sidebar { padding: 10px; }
    .desktop-system .project-card h3 { font-size: 14px; }
    .desktop-system .scene-tools { bottom: 90px; }
    body.desktop-system:not(.is-app-open) { --screen-side: 22px; --screen-top: 110px; --screen-bottom: 200px; }
    body:not(.is-app-open) .desktop-welcome { gap: 10px; }
    .desktop-welcome img { width: 140px; height: 155px; }
    .desktop-welcome h1 { font-size: 20px; }
    .desktop-welcome p { font-size: 11px; text-align: center; line-height: 1.6; }
}
@media (max-width: 360px) {
    .desktop-system .home-button { font-size: 11px; }
    .desktop-system .top-panel { padding: 0 11px; }
    .desktop-system .top-panel__right { gap: 1px; }
    .desktop-system .about-layout { padding: 18px; }
    .desktop-system .profile-card__photo { height: 235px; }
    .profile-heading h1 { font-size: 23px; }
    .desktop-system .profile-location { font-size: 9px; }
    .desktop-system .profile-links { gap: 10px; }
}
@media (max-width: 640px) and (max-height: 650px) {
    .desktop-system .profile-card__photo { height: 190px; }
    body.desktop-system:not(.is-app-open) { --screen-top: 90px; --screen-bottom: 180px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* Windows shell: the existing app content keeps its own layout. */
.windows-system { --system-font: "Segoe UI", Arial, sans-serif; --panel-height: 54px; --screen-top: 88px; --screen-bottom: 100px; }
.windows-system.is-hardware-mode { --screen-bottom: 275px; }
.windows-system .top-panel { padding: 0 24px; background: #edf0f3; backdrop-filter: none; }
.windows-system .home-button > i { display: none; }
.windows-system .home-button span { max-width: none; }
.windows-system .header-cv { box-shadow: none; border-radius: 3px; }
.windows-system .system-control { border-radius: 3px; }
.windows-system #hardwareToggle[aria-pressed="true"] { background: #dbe8f5; border-color: #c5d7e9; color: #1766ac; }
.windows-system .app-window { border-radius: 2px; }
.windows-system .window-titlebar { display: flex; padding: 0 0 0 14px; height: 36px; min-height: 36px; background: #f6f7f9; }
.windows-system .window-title { position: static; order: 1; flex: 1; transform: none; text-align: left; padding: 0; font-size: 12px; color: #3d434b; }
.windows-system .window-controls { order: 2; margin-left: auto; gap: 0; height: 36px; }
.windows-system .window-control { display: grid; place-items: center; width: 44px; height: 36px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #4b5159; font-size: 11px; }
.windows-system .window-control::before, .windows-system .window-control::after { display: none; }
.windows-system .window-control--minimize { order: 1; }
.windows-system .window-control--maximize { order: 2; }
.windows-system .window-control--close { order: 3; }
.windows-system .window-control:hover { background: #e1e5ea; }
.windows-system .window-control--close:hover { background: #c42b32; color: #fff; }
.windows-system .dock { bottom: 0; left: 0; right: 0; transform: none; width: 100%; max-width: none; height: 62px; min-height: 62px; border: 0; border-top: 1px solid #c4ccd5; border-radius: 0; justify-content: center; gap: 14px; padding: 5px 18px; background: #eef2f8f5; box-shadow: none; }
.windows-system .dock-app { width: 64px; height: 49px; gap: 3px; border-radius: 4px; }
.windows-system .dock-app:hover, .windows-system .start-button:hover { background: #ffffffa8; }
.windows-system .dock-app__icon { width: 28px; height: 28px; box-shadow: none; border-radius: 0; font-size: 22px; background: none; }
.windows-system .dock-app__icon--home { color: #3279af; }
.windows-system .dock-app__icon--folder { color: #c18d26; }
.windows-system .dock-app__icon--mail { color: #498a7d; }
.windows-system .dock-app__icon--doc { color: #657184; }
.windows-system .dock-app__icon--notes { color: #4198b6; }
.windows-system .dock-app:hover .dock-app__icon, .windows-system .dock-app:focus-visible .dock-app__icon { transform: none; }
.windows-system .dock-name { font-size: 10px; line-height: 13px; color: #424c58; }
.windows-system .dock-app__dot { bottom: -4px; width: 6px; height: 2px; border-radius: 1px; background: #8b96a5; }
.windows-system .dock-app.is-active .dock-app__dot { width: 16px; background: #1970bb; }
.windows-system .dock-app.is-active { background: #ffffff94; }
.start-button { display: grid; place-items: center; width: 42px; height: 46px; padding: 0; border: 0; border-radius: 4px; background: none; font-size: 25px; color: #1679cc; }
.taskbar-clock { position: absolute; right: 22px; width: 96px; font-size: 11px; line-height: 1.6; color: #414c59; text-align: right; }
.windows-system .room-caption { bottom: 83px; font-size: 10px; }
.windows-system .scene-tools { bottom: 90px; }
.windows-system.is-app-open.is-hardware-mode .scene-tools { display: block; }
body.windows-system:not(.is-app-open) { --screen-side: max(48px, calc((100vw - 840px) / 2)); --screen-top: 112px; --screen-bottom: 280px; }
body.windows-system.is-screen-expanded { --screen-side: 18px; --screen-top: 66px; --screen-bottom: 78px; }
.windows-system .start-menu { position: fixed; left: 50%; bottom: calc(var(--screen-bottom) + 12px); transform: translateX(-50%); width: 432px; max-width: calc(100% - 44px); max-height: calc(100svh - var(--screen-top) - var(--screen-bottom) - 24px); z-index: 130; padding: 22px 22px 0; background: #f5f7fbea; border: 1px solid #b9c4d2; border-radius: 7px; box-shadow: 0 12px 40px #1d31482b; backdrop-filter: blur(22px); overflow-y: auto; }
.start-search { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #c4ceda; border-bottom: 2px solid #2879bf; border-radius: 4px; padding: 9px 12px; color: #5d6b7b; }
.start-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #313d4b; font-size: 13px; }
.windows-system .start-search input:focus-visible { outline: none; }
.start-apps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; padding: 20px 0; }
.start-entry { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; min-height: 82px; padding: 12px 6px; border: 0; border-radius: 4px; background: none; color: #3b4655; font-size: 11px; line-height: 1.5; }
.start-entry:hover, .start-entry:focus-visible { background: #e1e9f4; }
.start-entry i { font-size: 23px; color: #417ba7; }
.start-entry[data-open-app="projects"] i, .start-entry[data-project-open] i { color: #b38a29; }
.start-entry[data-open-app="contact"] i { color: #438979; }
.start-apps > p { grid-column: 1 / -1; color: #6b7888; font-size: 13px; padding: 10px; }
.start-footer { margin: 0 -22px; padding: 11px 22px; display: flex; justify-content: space-between; align-items: center; background: #e9eef6; border-top: 1px solid #d2dae5; }
.start-footer > span { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.start-footer img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.notes-toolbar { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; height: 39px; padding: 0 15px; color: #526276; font-size: 11px; border-bottom: 1px solid #e0e5ec; background: #fafbfd; }
.windows-system .notes-content { padding: 0; min-height: 0; overflow: hidden; flex: 1; }
#notesInput { display: block; width: 100%; height: 100%; resize: none; border: 0; outline: 0; padding: 22px; background: #fff; color: #273440; font: 15px/1.8 Consolas, "Courier New", monospace; tab-size: 4; border-radius: 0; }
.notes-status { height: 30px; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 0 15px; background: #f5f7fa; border-top: 1px solid #e0e5ec; color: #657184; font-size: 10px; }
.hardware-controls { position: fixed; inset: 0; z-index: 65; pointer-events: none; }
.hardware-key, .hardware-mouse { position: fixed; display: block; padding: 0; margin: 0; border: 1px solid transparent; border-radius: 3px; background: transparent; pointer-events: auto; touch-action: none; color: transparent; cursor: pointer; }
.hardware-key:hover, .hardware-key:focus-visible { border-color: #5096d1; background: #4e91d421; outline: none; }
.hardware-key[aria-pressed="true"] { border-color: #3186c9; background: #3186c926; }
.hardware-mouse { border-radius: 8px; cursor: grab; }
.hardware-mouse:hover, .hardware-mouse:focus-visible { border-color: #5f9dcc80; outline: none; }
.hardware-mouse.is-dragging { cursor: grabbing; }
.screen-pointer { position: fixed; z-index: 145; color: #263947; font-size: 19px; line-height: 1; pointer-events: none; filter: drop-shadow(1px 0 #fff) drop-shadow(-1px 0 #fff) drop-shadow(0 1px #fff); }
.is-hardware-hover { outline: 2px solid #448ac8 !important; outline-offset: 1px; }
.windows-system .context-menu { z-index: 140; background: #f8fafd; color: #334356; border-color: #bdcbd9; }
.windows-system .context-menu__item:hover { background: #e1ebf6; }
.windows-system .dock-app__icon--paint { color: #ae657e; }
.paint-toolbar { flex-shrink: 0; min-height: 56px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 14px; background: #f4f6f9; border-bottom: 1px solid #d8dfe6; }
.paint-tool-group { display: flex; gap: 2px; }
.paint-tool { width: 32px; height: 32px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #415365; font-size: 15px; cursor: pointer; }
.paint-tool:hover:not(:disabled), .paint-tool[aria-pressed="true"] { background: #e1ecf7; border-color: #9cbad6; color: #246ca8; }
.paint-tool:disabled { opacity: 0.3; cursor: default; }
.paint-colors { display: grid; grid-template-columns: repeat(3, 21px); gap: 4px; padding: 0 10px; border-inline: 1px solid #d6dde5; }
.paint-swatch { width: 21px; height: 21px; border: 1px solid #b8c5d1; border-radius: 2px; background: var(--swatch); cursor: pointer; }
.paint-swatch[aria-pressed="true"] { outline: 2px solid #367fb6; outline-offset: 1px; box-shadow: inset 0 0 0 2px #fff; }
.paint-width { display: flex; align-items: center; gap: 8px; }
.paint-width input { width: 85px; accent-color: #3976ac; }
.paint-width output { width: 34px; font-size: 11px; color: #546576; font-variant-numeric: tabular-nums; }
.paint-history { margin-left: auto; }
.windows-system .paint-content { min-height: 0; overflow: hidden; display: flex; justify-content: center; align-items: center; background: #d7dee7; padding: 0; }
#paintCanvas { display: block; flex-shrink: 0; max-width: calc(100% - 32px); max-height: calc(100% - 32px); aspect-ratio: 8 / 5; background: #fff; box-shadow: 0 2px 8px #3141561a; touch-action: none; cursor: crosshair; }
#paintCanvas[data-tool="eraser"] { cursor: cell; }
#paintCanvas:focus-visible { outline: 2px solid #367fb6; outline-offset: 3px; }
@media (min-width: 981px) and (max-height: 760px) {
    .windows-system.is-hardware-mode { --screen-top: 84px; --screen-bottom: 224px; }
    body.windows-system:not(.is-app-open) { --screen-top: 92px; --screen-bottom: 230px; }
}
@media (max-width: 980px) {
    .windows-system { --screen-top: 76px; --screen-bottom: 86px; }
    .windows-system.is-hardware-mode { --screen-bottom: 236px; }
    .windows-system .desktop-shell { inset: 54px 0 0; }
    .windows-system .top-panel { padding: 0 16px; }
    .windows-system .taskbar-clock { display: none; }
    .windows-system .window-control { width: 36px; }
    .windows-system .window-control--maximize { display: none; }
    .windows-system .room-caption { display: none; }
    body.windows-system:not(.is-app-open) { --screen-top: 100px; --screen-bottom: 240px; }
}
@media (max-width: 640px) {
    .windows-system { --screen-top: 70px; --screen-bottom: 80px; }
    .windows-system.is-hardware-mode { --screen-bottom: 212px; }
    .windows-system .home-button span { max-width: 88px; font-size: 11px; }
    .windows-system .top-panel { padding: 0 10px; }
    .windows-system .top-panel__right { gap: 0; }
    .windows-system .header-cv { padding: 0 7px; }
    .windows-system .system-control { width: 27px; }
    .windows-system .dock { height: 59px; min-height: 59px; gap: 4px; padding: 4px 6px; }
    .windows-system .dock-app { width: 48px; height: 47px; gap: 2px; }
    .windows-system .dock-app__icon { width: 26px; height: 26px; font-size: 21px; }
    .windows-system .dock-name { font-size: 9px; }
    .windows-system .start-button { width: 32px; font-size: 24px; }
    .windows-system .scene-tools { right: 8px; bottom: 62px; }
    .windows-system.is-hardware-mode .profile-card__photo { height: 210px; }
    body.windows-system:not(.is-app-open) { --screen-side: 22px; --screen-top: 90px; --screen-bottom: 212px; }
    .windows-system .start-menu { padding: 16px 16px 0; }
    .windows-system .start-footer { margin: 0 -16px; padding: 10px 16px; }
    .windows-system .start-entry { min-height: 75px; font-size: 11px; }
    .windows-system .notes-toolbar { height: 34px; }
    #notesInput { padding: 16px; font-size: 14px; }
    .paint-toolbar { gap: 6px; padding: 6px 8px; }
    .paint-width { margin-left: auto; }
    .paint-width input { width: 65px; }
    .paint-history { width: 100%; justify-content: flex-end; border-top: 1px solid #dce2e9; padding-top: 4px; }
}
@media (max-width: 640px) and (max-height: 650px) {
    .windows-system.is-hardware-mode { --screen-bottom: 182px; }
    body.windows-system:not(.is-app-open) { --screen-top: 78px; --screen-bottom: 182px; }
    .windows-system.is-hardware-mode .profile-card__photo { height: 145px; }
}
@media (max-width: 360px) {
    .windows-system .dock-app { width: calc((100vw - 68px) / 6); }
    .windows-system .home-button span { max-width: 76px; font-size: 10px; }
    .windows-system .system-control { width: 25px; }
    .windows-system .header-cv { font-size: 10px; gap: 4px; padding: 0 6px; }
}
body.windows-system.is-hardware-mode:is(.is-writing, .is-start-open):not(.is-screen-expanded) { --screen-bottom: 345px; }
@media (max-width: 980px) {
    body.windows-system.is-hardware-mode:is(.is-writing, .is-start-open):not(.is-screen-expanded) { --screen-bottom: 305px; }
}
@media (max-width: 480px) {
    body.windows-system.is-hardware-mode:is(.is-writing, .is-start-open):not(.is-screen-expanded) { --screen-bottom: 258px; }
}
@media (min-width: 981px) and (max-height: 760px) {
    body.windows-system.is-hardware-mode:is(.is-writing, .is-start-open):not(.is-screen-expanded) { --screen-bottom: 300px; }
}
