#boot-screen{position:fixed;inset:0;background:#000;color:#fff;z-index:200000;display:flex;align-items:center;justify-content:center;cursor:default}.boot-logo{position:absolute;top:22%;display:flex;align-items:center;gap:18px}.boot-flag{width:122px;height:92px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:5px;transform:skewY(-8deg) rotate(-4deg);filter:drop-shadow(4px 4px 0 #222)}.boot-flag i:nth-child(1){background:#f22}.boot-flag i:nth-child(2){background:#0a5}.boot-flag i:nth-child(3){background:#06f}.boot-flag i:nth-child(4){background:#fd0}.boot-copy{font-family:Arial,sans-serif;line-height:.82;text-shadow:3px 3px #333}.boot-copy small{display:block;font-size:18px;font-weight:bold;margin-bottom:6px}.boot-copy strong{font-size:62px;font-style:italic;letter-spacing:-5px}.boot-copy em{font-size:38px;font-style:normal;color:#f22;font-weight:bold;margin-left:10px}.boot-text{position:absolute;bottom:52px;text-align:center;font:13px Arial,sans-serif}.boot-text span{font-size:10px}.boot-progress{position:absolute;bottom:20px;width:min(560px,80vw);height:16px;border:1px solid #999;background:#111;overflow:hidden}.boot-progress i{position:absolute;top:2px;bottom:2px;width:90px;background:repeating-linear-gradient(90deg,#003a9e 0 8px,#59afff 8px 16px);animation:bootmove 1.1s linear infinite}@keyframes bootmove{from{left:-95px}to{left:100%}}
#desktop{position:fixed;inset:0 0 var(--taskbar-h) 0;background:var(--desktop);background-position:center;background-size:cover;overflow:hidden;user-select:none}.desktop-icons{position:absolute;inset:0}.desktop-icon{position:absolute;width:78px;min-height:66px;text-align:center;color:#fff;text-shadow:1px 1px #000;padding:4px 2px;cursor:default}.desktop-icon .desktop-glyph{width:36px;height:36px;margin:0 auto 3px;display:grid;place-items:center;font-size:31px;line-height:1;filter:drop-shadow(1px 1px 0 #222)}.desktop-icon .desktop-label{display:inline;padding:1px 2px;line-height:13px;word-break:break-word}.desktop-icon.selected .desktop-label{background:#000080;color:#fff;outline:1px dotted #fff}.desktop-icon.selected .desktop-glyph{filter:brightness(.75) saturate(1.4)}#selection-box{position:absolute;border:1px dotted #fff;background:rgba(0,0,128,.08);pointer-events:none;display:none}
#taskbar{position:fixed;left:0;right:0;bottom:0;height:var(--taskbar-h);background:var(--win-gray);border-top:2px solid #fff;display:flex;align-items:center;padding:2px;z-index:40000;user-select:none}.start-button{height:24px;min-width:58px;font-weight:bold;display:flex;align-items:center;gap:4px;padding:2px 6px}.start-button:active,.start-button.pressed{padding:3px 5px 1px 7px}.mini-flag{display:grid;grid-template-columns:6px 6px;grid-template-rows:6px 6px;gap:1px;transform:skewY(-8deg)}.mini-flag i:nth-child(1){background:#f00}.mini-flag i:nth-child(2){background:#080}.mini-flag i:nth-child(3){background:#06f}.mini-flag i:nth-child(4){background:#ff0}.quick-launch{height:24px;display:flex;align-items:center;gap:1px;border-left:1px solid #808080;border-right:1px solid #fff;margin:0 3px;padding:0 3px}.quick-btn,.tray-icon,.clock{height:21px;min-width:22px;background:transparent;padding:1px 3px}.quick-btn:active,.tray-icon:active,.clock:active{box-shadow:inset 1px 1px #808080,inset -1px -1px #fff}.task-buttons{display:flex;gap:3px;flex:1;min-width:0;height:24px}.task-button{height:23px;min-width:100px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;padding:2px 6px}.task-button.active{font-weight:bold;box-shadow:inset 1px 1px #000,inset -1px -1px #fff,inset 2px 2px #808080;background:repeating-linear-gradient(45deg,#fff 0 1px,#c0c0c0 1px 3px)}.tray{height:23px;display:flex;align-items:center;gap:4px;min-width:95px;padding:1px 5px;box-shadow:inset 1px 1px #808080,inset -1px -1px #fff}.clock{min-width:44px;text-align:center}
.start-menu,.submenu,.context-menu{position:fixed;background:var(--win-gray);padding:3px;box-shadow:inset -1px -1px #000,inset 1px 1px #dfdfdf,inset -2px -2px #808080,inset 2px 2px #fff;z-index:45000}.start-menu{left:2px;bottom:calc(var(--taskbar-h) - 1px);width:230px}.start-menu{display:grid;grid-template-columns:30px 1fr}.start-sidebar{background:linear-gradient(#000080,#1084d0);color:#fff;writing-mode:vertical-rl;transform:rotate(180deg);font:bold 18px Arial,sans-serif;padding:8px 4px}.start-sidebar b{font-size:25px}.start-items{padding:1px}.start-item,.context-menu button{width:100%;height:34px;border:0;background:transparent;display:flex;align-items:center;gap:8px;padding:2px 7px;text-align:left;position:relative}.submenu .start-item{height:29px}.start-item:hover,.start-item.keyboard-hot,.context-menu button:hover{background:#000080;color:#fff}.menu-icon{width:25px;font-size:19px;text-align:center}.menu-arrow{margin-left:auto}.menu-separator{height:2px;border-top:1px solid #808080;border-bottom:1px solid #fff;margin:3px 2px}.submenu{width:215px}.context-menu{width:190px}.context-menu button{height:22px;padding-left:20px}.context-menu .has-arrow span{margin-left:auto}
@media(max-width:650px){.desktop-icon{width:66px}.quick-launch{display:none}.task-button{min-width:62px}.tray{min-width:76px}.start-menu{width:215px}}
#active-desktop-layer{position:absolute;inset:0;pointer-events:none;z-index:2}#active-desktop-layer .active-widget{pointer-events:auto}

/* Polish pass: keep shell furniture usable on narrow/touch screens */
.start-menu,.submenu,.context-menu{max-height:calc(100vh - var(--taskbar-h) - 6px);overflow:auto}.task-buttons{overflow-x:auto;scrollbar-width:none}.task-buttons::-webkit-scrollbar{display:none}.task-button span{vertical-align:middle}
@media(pointer:coarse){.desktop-icon{padding-top:6px}.start-item,.context-menu button{min-height:34px}.submenu .start-item{min-height:34px}}
@media(max-width:650px){#taskbar{gap:2px;padding:2px 3px}.start-button{min-width:52px}.start-button b{font-size:10px}.task-buttons{gap:2px}.task-button{min-width:44px;max-width:95px;padding:2px 4px}.task-button span{margin-right:2px}.tray{gap:1px;min-width:72px;padding:1px 2px}.tray-icon,.clock{min-width:20px;padding:1px}.clock{font-size:10px}.start-menu,.submenu{max-width:calc(100vw - 4px)}.start-sidebar{font-size:15px}.desktop-icon{min-height:72px}}
