:root{
  --blue:#0a68d7;--blue2:#0d86f4;--blue3:#063d91;--nav:#064995e8;--ink:#162538;--muted:#65748a;--line:#c7d3e1;--panel:#f7f8fa;--panel2:#eaf0f6;--green:#24a63d;--shadow:0 20px 52px rgba(0,37,84,.34);--taskbar-h:54px;--nav-h:74px;
}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;font-family:"Segoe UI",Tahoma,Arial,sans-serif;background:#061a34;color:var(--ink)}button,a,input{font:inherit}button{cursor:pointer}.is-hidden{display:none!important}
.boot-screen,.login-screen,.desktop{position:fixed;inset:0}.boot-screen{z-index:9999;background:radial-gradient(circle at 50% 42%,#0b56a5 0,#042c62 46%,#01162f 100%);display:grid;place-items:center;color:#fff}.boot-center{text-align:center;transform:translateY(-3vh)}
.mh-mark{display:grid;grid-template-columns:1fr 1fr;gap:2px;width:42px;height:42px}.mh-mark i:nth-child(1){background:#f24822}.mh-mark i:nth-child(2){background:#7fba00}.mh-mark i:nth-child(3){background:#00a4ef}.mh-mark i:nth-child(4){background:#ffb900}.mh-mark.large{width:84px;height:84px;margin:auto;gap:4px;filter:drop-shadow(0 10px 25px #00142b88)}.mh-mark.tiny{width:28px;height:28px}.mh-mark.micro{width:23px;height:23px}.boot-wordmark{font-weight:760;font-size:54px;letter-spacing:-2.5px;margin-top:18px}.boot-wordmark span{font-size:16px;vertical-align:top;margin-left:4px}.boot-sub{font-size:17px;opacity:.74;margin-top:6px}.boot-loader{width:122px;height:7px;border-radius:9px;background:#ffffff1f;margin:34px auto 12px;padding:1px;overflow:hidden;display:flex;gap:4px}.boot-loader b{display:block;width:26px;background:#75c7ff;border-radius:6px;animation:load 1.15s linear infinite}.boot-loader b:nth-child(2){animation-delay:.18s}.boot-loader b:nth-child(3){animation-delay:.36s}.boot-status{font-size:13px;opacity:.66}@keyframes load{0%{transform:translateX(-145px)}100%{transform:translateX(145px)}}
.login-screen{z-index:9998;background:linear-gradient(135deg,#073d86,#0b71d3);display:grid;place-items:center;color:#fff}.login-screen:before{content:"";position:absolute;inset:0;background:url('assets/background-only.png') center/cover no-repeat;opacity:.22;filter:blur(2px) saturate(.75)}.login-card{position:relative;width:min(440px,92vw);padding:34px;border:1px solid #ffffff36;border-radius:22px;background:linear-gradient(180deg,#ffffff21,#ffffff0f);box-shadow:0 30px 90px #001e4f77;backdrop-filter:blur(22px);text-align:center}.login-brand{display:flex;align-items:center;justify-content:center;gap:12px}.login-brand>div:last-child{text-align:left;display:grid}.login-brand strong{font-size:22px}.login-brand span{font-size:12px;opacity:.7}.avatar{width:104px;height:104px;border-radius:24px;background:#eef6ff;margin:28px auto 16px;display:grid;place-items:center;font-size:58px;box-shadow:inset 0 0 0 1px #fff,0 15px 35px #001d4d55}.login-card h1{font-size:29px;margin:0}.login-card p{margin:9px auto 22px;max-width:300px;line-height:1.5;opacity:.78}.login-card small{display:block;margin-top:22px;opacity:.55}.primary{border:0;color:#fff;background:linear-gradient(#168af5,#0665cc);box-shadow:inset 0 1px #ffffff66,0 8px 20px #003b7b66;border-radius:10px;font-weight:700}.primary.big{padding:13px 26px;font-size:16px}
.desktop{z-index:1;background:#061a34;overflow:hidden}.wallpaper{position:absolute;inset:0;background:url('assets/background-only.png') center center/cover no-repeat}.vignette{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,33,80,.07),transparent 30%,rgba(0,0,0,.07));pointer-events:none}.glass{backdrop-filter:blur(14px)}
.desktop-nav{position:absolute;z-index:40;left:0;right:0;top:0;height:var(--nav-h);display:flex;align-items:center;padding:0 26px;background:linear-gradient(180deg,rgba(4,63,134,.88),rgba(4,67,143,.72));border-bottom:1px solid #ffffff24;box-shadow:0 7px 22px #0030692e;color:#fff}.brand-button{display:flex;align-items:center;gap:9px;border:0;background:transparent;color:#fff}.brand-button strong{font-size:24px;letter-spacing:-.7px}.brand-button sup{font-size:9px;margin-top:-18px}.desktop-nav nav{display:flex;align-items:center;margin-left:56px;border:1px solid #ffffff38;border-radius:999px;background:#075bb5a6;padding:3px}.desktop-nav nav button{height:39px;padding:0 20px;border:0;border-radius:999px;background:transparent;color:#fff;font-size:14px}.desktop-nav nav button:hover,.desktop-nav nav button.active{background:#ffffff19}.connect-btn{margin-left:auto;border:0;border-radius:9px;padding:11px 18px;background:#f7fbff;color:#0860cd;font-weight:700;box-shadow:0 6px 18px #002c6470}.connect-btn span{margin-right:7px}
.desktop-icons{position:absolute;z-index:20;left:14px;top:88px;display:grid;gap:10px}.desktop-icon{width:88px;min-height:74px;padding:3px;border:1px solid transparent;border-radius:7px;background:transparent;color:#fff;text-shadow:0 2px 4px #00325f;font-size:12px}.desktop-icon:hover,.desktop-icon:focus-visible{background:#ffffff19;border-color:#ffffff29}.desktop-icon b{display:block;margin-top:3px;font-weight:600;line-height:1.08}.desktop-icon small{font-weight:500}.icon-glyph{display:grid;place-items:center;width:46px;height:42px;margin:auto;border-radius:7px;background:linear-gradient(#f8fbff,#d9e5f1);border:1px solid #ffffff;box-shadow:0 3px 7px #002e5c77;color:#1468c5;font-size:28px;font-weight:800}.icon-glyph.folder{color:#f0a20c;background:linear-gradient(#ffdf62,#ffbf24)}.icon-glyph.globe{border-radius:50%;background:radial-gradient(circle at 34% 32%,#76d85f 0 22%,#178be1 24% 58%,#48ad48 60%);color:#fff}.icon-glyph.chart{color:#e54832}.icon-glyph.note{color:#f39a24;background:#fff7d7}.icon-glyph.bin{color:#50a966}.icon-glyph.doc{color:#55718f}
.social-shortcuts{position:absolute;z-index:20;left:50%;bottom:75px;transform:translateX(-50%);display:flex;gap:28px}.social-shortcut{width:94px;border:0;background:transparent;color:#fff;text-align:center;text-shadow:0 2px 4px #164b22;text-decoration:none}.social-app{width:58px;height:58px;margin:0 auto 5px;display:grid;place-items:center;border:2px solid #ffffffcf;border-radius:14px;box-shadow:0 8px 20px #001f3f66;background:#10151d;color:#fff;font-size:31px}.social-app.tg{border-radius:50%;background:#1c9df0}.social-app.market{background:#f2f4f6;color:#31a548}.social-shortcut b,.social-shortcut small{display:block}.social-shortcut b{font-size:13px}.social-shortcut small{font-size:10px;opacity:.85;margin-top:1px}
.window-layer{position:absolute;z-index:60;inset:var(--nav-h) 0 var(--taskbar-h) 0;pointer-events:none}.window{position:absolute;pointer-events:auto;min-width:300px;min-height:170px;border-radius:10px;overflow:hidden;background:#f4f6f8;border:1px solid rgba(5,72,148,.85);box-shadow:var(--shadow);color:#162337}.window.active{box-shadow:0 26px 65px rgba(0,27,66,.48)}.window.maximized{border-radius:0}.window-titlebar{height:38px;display:flex;align-items:center;padding:0 7px 0 11px;background:linear-gradient(#198cf6,#0867d1);color:#fff;border-bottom:1px solid #0757b5;user-select:none;cursor:grab}.window-titlebar:active{cursor:grabbing}.window-title{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;font-weight:700}.window-title .app-dot{width:16px;height:16px;border-radius:3px;background:conic-gradient(#7fba00 0 25%,#ffb900 0 50%,#00a4ef 0 75%,#f24822 0)}.window-title span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.window-controls{margin-left:auto;display:flex;gap:4px}.window-controls button{width:27px;height:24px;padding:0;border:1px solid #ffffffb0;border-radius:5px;color:#fff;background:linear-gradient(#238ff1,#0861c3);box-shadow:inset 0 1px #ffffff55;font-weight:700;line-height:1}.window-controls .close{background:linear-gradient(#ff7458,#dd3b23)}.window-menu{height:29px;display:flex;align-items:center;gap:17px;padding:0 12px;background:linear-gradient(#fbfbfb,#eff2f4);border-bottom:1px solid #c6d0da;font-size:12px;color:#283442}.window-menu span{cursor:default}.window-body{height:calc(100% - 67px);overflow:hidden;background:linear-gradient(#fff,#f4f6f8)}
.window.welcome .window-body{padding:24px 34px 18px}.hero-logo{display:flex;align-items:center;gap:18px}.hero-logo .mh-mark{width:76px;height:76px;gap:3px}.hero-logo h1{font-size:45px;line-height:1;margin:0;letter-spacing:-2.2px;color:#0d1721}.hero-logo h1 sup{font-size:12px;vertical-align:top;letter-spacing:0}.hero-logo p{margin:5px 0 0;font-size:20px;color:#444}.welcome-copy{font:16px/1.5 Consolas,"Courier New",monospace;margin:23px 0 20px}.app-actions{display:flex;gap:14px}.app-actions button,.app-actions a{flex:1;min-height:46px;display:flex;align-items:center;justify-content:center;text-decoration:none;border:0;border-radius:8px;color:#fff;font-weight:700;box-shadow:inset 0 1px #ffffff66}.app-actions .green{background:linear-gradient(#46c95a,#229c34)}.app-actions .blue{background:linear-gradient(#198ef6,#0765cf)}.welcome-quote{text-align:center;font:13px Consolas,"Courier New",monospace;margin:18px 0;color:#334558}.welcome-status{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #d2d9e0;padding-top:10px;font-size:11px;color:#5f6d79}.status-dot{width:10px;height:10px;border-radius:50%;background:#31b744;display:inline-block;box-shadow:0 0 0 1px #1e8f30 inset;margin-right:6px}
.window.contract .window-body{padding:17px}.contract-row{display:flex;gap:8px}.contract-code{flex:1;min-width:0;border:1px solid #adb9c6;border-radius:6px;background:#fff;padding:10px 11px;font:12px Consolas,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.copy-btn{width:42px;border:1px solid #aab5c0;border-radius:6px;background:linear-gradient(#fff,#e3e8ed);font-size:18px}.contract-links{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}.contract-links a{padding:8px;border:1px solid #c9d5e1;border-radius:6px;background:#fff;text-align:center;color:#075dbf;text-decoration:none;font-size:11px}.contract-note{margin:12px 0 0;padding:9px;border-radius:7px;background:#e9f8e9;color:#267b33;text-align:center;font-size:11px}
.window.assistant .window-body{padding:14px}.assistant-layout{display:grid;grid-template-columns:1fr 84px;gap:10px;height:100%}.assistant-main{display:flex;flex-direction:column}.assistant-bubble{position:relative;background:#fff8db;border:1px solid #cbbf86;border-radius:9px;padding:12px;font-size:12px;line-height:1.4;min-height:76px}.assistant-bubble:after{content:"";position:absolute;right:-10px;top:36px;border:6px solid transparent;border-left-color:#cbbf86}.assistant-buttons{display:grid;gap:7px;margin-top:10px}.assistant-buttons button{height:34px;border:1px solid #bbc3cc;border-radius:5px;background:linear-gradient(#fdfdfd,#e3e7eb);font-size:11px}.assistant-check{margin-top:auto;font-size:10px;color:#4b5865}.paperclip{position:relative;width:68px;height:124px;margin:14px auto 0;border:6px solid #536476;border-radius:34px 34px 36px 36px;transform:rotate(3deg);background:transparent}.paperclip:after{content:"";position:absolute;inset:20px 12px 13px 14px;border:5px solid #536476;border-top:0;border-radius:0 0 24px 24px}.eyes{position:absolute;top:18px;left:-12px;display:flex;gap:5px;z-index:2}.eye{width:26px;height:26px;border-radius:50%;background:#fff;border:1px solid #bbb;box-shadow:0 1px 3px #0003}.eye:after{content:"";display:block;width:9px;height:9px;border-radius:50%;background:#111;margin:8px}
.window.fm{background:#07182a;border-color:#133a62}.window.fm .window-titlebar{background:linear-gradient(#0d243c,#07192c);border-color:#1d3853}.window.fm .window-menu{display:none}.window.fm .window-body{height:calc(100% - 38px);background:linear-gradient(135deg,#07182b,#0c2743);color:#fff;padding:14px}.fm-top{display:grid;grid-template-columns:68px 1fr;gap:12px;align-items:center}.fm-art{width:68px;height:68px;border-radius:8px;background:linear-gradient(135deg,#59ba58,#193b22);display:grid;place-items:center;font-size:40px;box-shadow:inset 0 0 0 1px #ffffff25}.fm-meta b{font-size:15px}.fm-meta span{display:block;font-size:11px;opacity:.72;margin-top:3px}.fm-progress{height:5px;border-radius:9px;background:#ffffff29;margin-top:11px;overflow:hidden;cursor:pointer}.fm-progress i{display:block;height:100%;width:0;background:#28a4ff}.fm-times{display:flex;justify-content:space-between;font-size:9px;opacity:.63;margin-top:4px}.fm-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:6px}.fm-controls button{border:0;background:transparent;color:#fff;font-size:17px}.fm-controls .play{width:38px;height:38px;border-radius:50%;background:#fff;color:#0a1d33;font-size:16px;box-shadow:0 4px 12px #0005}.fm-volume{margin-left:auto;font-size:12px;opacity:.85}
.window.generic .window-body{padding:20px}.generic h2{margin:0 0 10px;font-size:20px}.generic p{font-size:13px;line-height:1.5;color:#445264}.generic code{display:block;padding:9px;background:#fff;border:1px solid #ccd5df;border-radius:6px;font-size:11px;overflow:hidden;text-overflow:ellipsis}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.info-card{padding:12px;border:1px solid #d2dae3;border-radius:8px;background:#fff}.info-card b{display:block;font-size:12px}.info-card span{font-size:11px;color:#6f7d8b}.control-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #dde3ea;font-size:12px}.toggle{width:38px;height:21px;border-radius:12px;background:#b8c2cd;position:relative}.toggle:after{content:"";position:absolute;width:17px;height:17px;top:2px;left:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0004}.toggle.on{background:#2a9ef1}.toggle.on:after{left:19px}.terminal-body{height:100%;background:#040608;color:#dfe7ef;padding:13px;font:12px/1.5 Consolas,monospace;overflow:hidden}.terminal-line{display:flex}.terminal-line input{flex:1;background:transparent;border:0;outline:0;color:#fff;font:inherit;min-width:0}
.start-menu{position:absolute;z-index:300;left:8px;bottom:var(--taskbar-h);width:350px;border:1px solid #6794c4;border-radius:10px 10px 0 0;background:#f4f7fa;box-shadow:0 16px 40px #00265399;overflow:hidden;transform-origin:bottom left;transform:scale(.98) translateY(10px);opacity:0;pointer-events:none;transition:.14s ease}.start-menu.open{opacity:1;pointer-events:auto;transform:none}.start-head{display:flex;align-items:center;gap:10px;padding:12px 14px;color:#fff;background:linear-gradient(#1685ec,#0963c8)}.avatar-mini{width:40px;height:40px;display:grid;place-items:center;border-radius:8px;background:#fff;font-size:24px}.start-head>div{display:grid}.start-head small{font-size:10px;opacity:.75}.start-grid{display:grid;grid-template-columns:1.25fr .85fr;gap:7px;padding:9px}.start-grid>div{display:grid;align-content:start}.start-grid button,.start-grid a{display:flex;align-items:center;gap:8px;padding:8px 7px;border:0;border-radius:5px;background:transparent;color:#1e2d3d;text-decoration:none;text-align:left;font-size:12px}.start-grid button:hover,.start-grid a:hover{background:#dcecff}.start-grid span{width:21px;text-align:center}.start-secondary{border-left:1px solid #d9e1e9;padding-left:7px}.start-foot{display:flex;justify-content:flex-end;gap:7px;padding:8px;background:#e9f0f7;border-top:1px solid #cbd7e3}.start-foot button{padding:7px 10px;border:1px solid #b7c4d0;border-radius:5px;background:#fff;font-size:11px}
.taskbar{position:absolute;z-index:260;left:0;right:0;bottom:0;height:var(--taskbar-h);display:flex;align-items:center;background:linear-gradient(#2d8deb,#0b63cb 60%,#0758ba);border-top:1px solid #6cc3ff;box-shadow:0 -3px 12px #00306744}.start-btn{height:100%;display:flex;align-items:center;gap:8px;padding:0 19px;border:0;border-radius:0 12px 0 0;background:linear-gradient(#43bd55,#228f35);color:#fff;font-size:15px;font-weight:700;box-shadow:inset 0 1px #8fe69a}.task-buttons{display:flex;gap:5px;align-items:center;padding:4px 9px;min-width:0;flex:1;overflow:hidden}.task-button{height:39px;min-width:150px;max-width:220px;padding:0 11px;border:1px solid #124a8a;border-radius:5px;background:linear-gradient(#f7fbff,#d9e6f3);color:#19334d;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}.task-button.active{background:linear-gradient(#c9e3ff,#94c5f7)}.system-tray{height:100%;display:flex;align-items:center;gap:9px;padding:0 14px;color:#fff;border-left:1px solid #ffffff4d;background:#0c6ecc8f;font-size:11px}.system-tray button{border:0;background:transparent;color:#fff}.system-tray #clock{text-align:right;line-height:1.3}.toast-layer{position:absolute;z-index:500;right:16px;bottom:70px;display:grid;gap:8px;justify-items:end}.toast{max-width:310px;padding:10px 13px;border-radius:8px;background:#f9fbfe;border:1px solid #a9bdd1;color:#1f3448;box-shadow:0 10px 30px #001d3e55;font-size:12px;animation:toastin .18s ease}@keyframes toastin{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
.scanlines:after{content:"";position:fixed;z-index:9997;inset:0;pointer-events:none;background:repeating-linear-gradient(180deg,transparent 0 3px,rgba(0,0,0,.045) 4px)}
@media(max-width:900px){.desktop-nav nav{display:none}.desktop-nav{height:62px;padding:0 12px}.brand-button strong{font-size:20px}.desktop-icons{top:72px;transform:scale(.82);transform-origin:top left}.social-shortcuts{display:none}.window-layer{top:62px}.window{left:3vw!important;top:12px!important;width:94vw!important;height:calc(100vh - 132px)!important;max-width:none!important;max-height:none!important;resize:none!important}.window-titlebar{height:40px}.window-menu{height:30px}.window-body{height:calc(100% - 70px)!important}.window.welcome .window-body{padding:18px}.hero-logo h1{font-size:35px}.hero-logo p{font-size:15px}.hero-logo .mh-mark{width:58px;height:58px}.welcome-copy{font-size:14px;margin:18px 0}.task-button{min-width:120px}.system-tray .wifi{display:none}.start-menu{width:min(350px,96vw)}}

/* === V13 polish / responsive window system === */
:root{
  --window-radius:11px;
  --window-border:rgba(7,74,151,.92);
  --window-shadow:0 22px 58px rgba(0,31,73,.34),0 2px 7px rgba(0,32,74,.16);
}
.window-layer{overflow:hidden}
.window{
  display:flex;
  flex-direction:column;
  min-width:min(var(--app-min-w,300px),calc(100% - 12px));
  min-height:min(var(--app-min-h,170px),calc(100% - 12px));
  max-width:calc(100% - 12px);
  max-height:calc(100% - 12px);
  border-radius:var(--window-radius);
  border-color:var(--window-border);
  box-shadow:var(--window-shadow);
  container-type:size;
  transition:box-shadow .12s ease,border-color .12s ease;
}
.window.active{border-color:#086cd8;box-shadow:0 28px 70px rgba(0,30,72,.44),0 3px 10px rgba(0,30,72,.2)}
.window.maximized{
  max-width:none;
  max-height:none;
  min-width:0;
  min-height:0;
  border-radius:0;
  border-left:0;
  border-right:0;
}
.window-titlebar,.window-menu{flex:0 0 auto}
.window-titlebar{height:37px;min-height:37px}
.window-menu{height:29px;min-height:29px}
.window-body{
  flex:1 1 auto;
  height:auto!important;
  min-height:0;
  overflow:hidden;
  position:relative;
}
.window.fm .window-body{height:auto!important;flex:1 1 auto}
.resize-grip{
  position:absolute;
  right:1px;
  bottom:1px;
  width:18px;
  height:18px;
  cursor:nwse-resize;
  z-index:8;
  opacity:.42;
  background:linear-gradient(135deg,transparent 0 46%,#617b96 47% 53%,transparent 54% 64%,#617b96 65% 71%,transparent 72% 82%,#617b96 83% 89%,transparent 90%);
}
.window.maximized .resize-grip{display:none}
.window-controls button{transition:filter .1s ease,transform .1s ease}.window-controls button:hover{filter:brightness(1.12)}.window-controls button:active{transform:translateY(1px)}
.window-menu{color:#354557}.window-menu span{padding:3px 2px;border-radius:3px}.window-menu span:hover{background:#dfeaf6}

/* Welcome adapts to the actual window size rather than clipping. */
.window.welcome .window-body{display:flex;flex-direction:column;justify-content:center;padding:22px 32px 16px}
.hero-logo{flex:0 0 auto}.welcome-copy{flex:0 0 auto}.app-actions{flex:0 0 auto}.welcome-quote{flex:0 0 auto}.welcome-status{flex:0 0 auto;margin-top:auto}
@container (max-width:610px){
  .window.welcome .window-body{padding:18px 24px 14px}
  .hero-logo .mh-mark{width:64px;height:64px}.hero-logo h1{font-size:39px}.hero-logo p{font-size:17px}
  .welcome-copy{font-size:14px;margin:18px 0 16px}.welcome-quote{margin:14px 0}
}
@container (max-height:405px){
  .window.welcome .window-body{padding-top:14px;padding-bottom:10px}
  .hero-logo .mh-mark{width:58px;height:58px}.hero-logo h1{font-size:36px}.hero-logo p{font-size:15px}
  .welcome-copy{font-size:13px;margin:12px 0}.app-actions button,.app-actions a{min-height:40px}.welcome-quote{margin:10px 0}
}

/* Generic apps: structured, centered, no needless scrollbars at default sizes. */
.window.generic .window-body{display:flex;flex-direction:column;justify-content:center;padding:20px 22px}
.window.generic .app-actions{width:100%}.generic h2{line-height:1.15}.generic p:last-child{margin-bottom:0}
.info-grid{align-content:center}.info-card{min-height:62px;display:flex;flex-direction:column;justify-content:center}
.window.control .window-body{justify-content:flex-start}

/* Contract / assistant / player remain intact at any supported size. */
.window.contract .window-body{display:flex;flex-direction:column;justify-content:center;padding:16px 18px}
.contract-links{flex:0 0 auto}.contract-note{flex:0 0 auto}
.window.assistant .window-body{padding:13px 14px}.assistant-layout{min-height:0}.assistant-main{min-height:0}.assistant-check{padding-top:8px}
.window.fm .window-body{display:flex;flex-direction:column;justify-content:center;padding:13px 15px}
.fm-top{min-height:0}.fm-controls{flex:0 0 auto;margin-top:8px}
.fm-controls button:hover{transform:scale(1.06)}
.fm-progress{height:6px}.fm-progress i{border-radius:9px}

/* Terminal only scrolls internally when terminal output actually needs it. */
.terminal-body{overflow:auto;scrollbar-width:thin;scrollbar-color:#34485a #040608}

/* Bag Sweeper */
.icon-glyph.game{color:#fff;background:linear-gradient(145deg,#7648e8,#24a9f2);text-shadow:0 2px 8px #26186688}
.window.game{border-color:#334b69;background:#dce6ef}
.window.game .window-titlebar{background:linear-gradient(#445e7d,#2f4867);border-color:#273e59}
.window.game .window-body{background:linear-gradient(#edf3f8,#dce7f0);padding:15px 17px;display:flex;min-height:0}
.game-shell{display:flex;flex:1;min-width:0;min-height:0;flex-direction:column}
.game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:10px;border-bottom:1px solid #c7d4df}
.game-toolbar>div{display:grid;gap:2px}.game-toolbar b{font-size:17px}.game-toolbar span{font-size:11px;color:#647487}
.game-toolbar button{border:1px solid #a9bacb;border-radius:7px;background:linear-gradient(#fff,#e1e8ef);padding:8px 12px;color:#26394d;font-size:11px;font-weight:700;box-shadow:0 1px 2px #4e62751f}
.game-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.game-stats div{background:#fff;border:1px solid #cbd7e2;border-radius:8px;padding:7px 9px;display:grid;text-align:center;box-shadow:0 1px 3px #4c607319}
.game-stats span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#79899a}.game-stats b{font:700 15px/1.25 Consolas,monospace;color:#263a50}
.game-board{width:min(100%,340px);aspect-ratio:1;margin:auto;display:grid;grid-template-columns:repeat(8,1fr);gap:4px;padding:7px;border-radius:10px;background:#b9c8d6;border:1px solid #9cafc0;box-shadow:inset 0 2px 5px #52687d33}
.game-tile{min-width:0;min-height:0;border:1px solid #a6b7c8;border-radius:5px;background:linear-gradient(#fafcff,#d9e4ed);box-shadow:inset 0 1px #fff,0 1px 1px #7890a340;color:#52687d;font-size:16px;font-weight:800;transition:transform .06s ease,background .1s ease}
.game-tile:hover:not(.revealed){background:linear-gradient(#fff,#eaf3fa);transform:translateY(-1px)}.game-tile:active:not(.revealed){transform:translateY(1px)}
.game-tile.revealed{box-shadow:inset 0 1px 3px #5c718333;background:#cdd9e3;border-color:#aebdca}.game-tile.candle{background:#d9f7df;color:#1d9a38}.game-tile.trap{background:#ffe0dd;color:#c83d2f}.game-tile.safe{color:#8292a0}
.game-help{text-align:center;font-size:10px;color:#6b7b8c;padding-top:9px}

/* Desktop chrome refinement */
.desktop-nav{padding-inline:24px}.desktop-nav nav{margin-left:44px}.desktop-nav nav button{padding-inline:18px}
.desktop-icon,.social-shortcut,.brand-button,.connect-btn,.start-btn,.task-button{transition:filter .12s ease,transform .1s ease,background .12s ease}
.desktop-icon:active,.social-shortcut:active,.brand-button:active,.connect-btn:active{transform:translateY(1px)}
.task-buttons{scrollbar-width:none}.task-buttons::-webkit-scrollbar{display:none}.task-button{flex:0 1 205px;min-width:112px}
.system-tray{flex:0 0 auto}

@media(max-height:850px) and (min-width:901px){
  .desktop-icons{gap:3px;top:80px}.desktop-icon{min-height:66px}.icon-glyph{width:41px;height:37px;font-size:24px}
  .desktop-icon[data-open="game"]{position:absolute;left:92px;top:0}
}

@media(max-width:1100px) and (min-width:901px){
  .desktop-nav nav{margin-left:22px}.desktop-nav nav button{padding-inline:12px}.brand-button strong{font-size:21px}
  .social-shortcuts{gap:16px}
}

@media(max-width:900px){
  .window{display:flex!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important}
  .window-body{overflow:auto!important}
  .resize-grip{display:none}
  .window.welcome .window-body{justify-content:flex-start}
  .window.generic .window-body{justify-content:flex-start}
  .info-grid{grid-template-columns:1fr}
  .game-board{width:min(100%,300px)}
}

/* === V14 media, music & hidden-feature polish === */
.window.memes .window-body{padding:16px 18px;display:flex;flex-direction:column;min-height:0;background:linear-gradient(#f8fbff,#edf4fa)}
.meme-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}.meme-head h2{margin:0 0 4px;font-size:20px}.meme-head p{margin:0;color:#65788c;font-size:11px}.meme-status{flex:0 0 auto;padding:6px 9px;border:1px solid #b9dabb;border-radius:999px;background:#edf9ee;color:#208433;font:700 9px/1.1 system-ui;letter-spacing:.08em}
.meme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;flex:1;min-height:0}.meme-card{position:relative;min-width:0;min-height:0;padding:0;border:1px solid #b8c8d8;border-radius:9px;overflow:hidden;background:#fff;box-shadow:0 2px 7px rgba(34,61,86,.13);cursor:pointer;text-align:left}.meme-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .18s ease,filter .18s ease}.meme-card span{position:absolute;left:0;right:0;bottom:0;padding:18px 9px 8px;background:linear-gradient(transparent,rgba(4,19,34,.86));color:#fff;font:700 10px/1.2 system-ui;letter-spacing:.01em}.meme-card:hover img{transform:scale(1.035);filter:saturate(1.06)}.meme-card:active{transform:translateY(1px)}.meme-foot{padding-top:9px;color:#718396;font-size:9px;text-align:center}

.window.viewer .window-body{padding:0;display:flex;min-height:0;background:#1e2935}.viewer-shell{display:flex;flex-direction:column;flex:1;min-height:0}.viewer-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:18px;background:radial-gradient(circle at 50% 40%,#34495d,#18222d 72%);overflow:hidden}.viewer-stage img{max-width:100%;max-height:100%;object-fit:contain;border-radius:5px;box-shadow:0 14px 40px rgba(0,0,0,.35)}.viewer-bar{height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 13px;background:#eef4f9;border-top:1px solid #b9c8d4;color:#33485d;font-size:10px}.viewer-bar b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.viewer-bar>div{display:flex;align-items:center;gap:7px}.viewer-bar a,.viewer-bar button{border:1px solid #a8bacb;border-radius:5px;background:linear-gradient(#fff,#e3ebf2);padding:6px 9px;color:#235e9c;text-decoration:none;font:700 9px/1 system-ui}

.window.fm .window-body{background:linear-gradient(145deg,#091525,#0b1d32 55%,#07111e);color:#fff;padding:14px 15px 12px}.fm-art{width:78px;height:78px;flex:0 0 78px;border-radius:10px;background:linear-gradient(145deg,#2fc17a,#1174ca 58%,#0b2440);display:grid;place-content:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 7px 18px rgba(0,0,0,.25);font:900 24px/1 system-ui;letter-spacing:-.07em}.fm-art small{font:800 9px/1 system-ui;letter-spacing:.22em;text-align:center;margin-top:4px;opacity:.78}.fm-meta b{font-size:16px;line-height:1.15}.fm-meta>span{font-size:10px;color:#9fb4c9;margin-top:2px}.fm-progress{margin-top:10px;background:#344b61;cursor:pointer}.fm-progress i{background:linear-gradient(90deg,#31abff,#6fd6ff)}.fm-times{font-size:9px;color:#91a8bd}.fm-controls{justify-content:center;gap:15px}.fm-controls button{width:34px;height:30px;border-radius:6px}.fm-controls .play{width:42px;height:38px;border-radius:50%;background:#fff;color:#0c1e30;box-shadow:0 2px 9px rgba(0,0,0,.28)}.fm-playlist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:10px}.fm-playlist button{min-width:0;display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:5px;height:29px;padding:0 7px;border:1px solid rgba(255,255,255,.1);border-radius:6px;background:rgba(255,255,255,.045);color:#b9c9d8;text-align:left;font-size:8px}.fm-playlist button span{opacity:.55;font-family:monospace}.fm-playlist button b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.fm-playlist button small{font-size:7px;opacity:.55}.fm-playlist button:hover{background:rgba(255,255,255,.09)}.fm-playlist button.active{background:rgba(34,151,255,.22);border-color:rgba(82,179,255,.5);color:#fff}

.window.paint .window-body{padding:0;display:flex;min-height:0;background:#dfe8ef}.paint-shell{display:flex;flex:1;min-height:0;flex-direction:column}.paint-toolbar{height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;background:linear-gradient(#f8fbfe,#dce6ee);border-bottom:1px solid #aebfce}.paint-toolbar>div{display:flex;gap:6px}.paint-toolbar button{height:28px;border:1px solid #a8b9c8;border-radius:5px;background:linear-gradient(#fff,#e4ebf1);font:700 9px/1 system-ui;color:#34495d}.paint-colors button{width:28px;padding:0;background:var(--sw)!important;box-shadow:inset 0 0 0 3px #fff}.paint-colors button.active{outline:2px solid #1877d2;outline-offset:1px}.paint-canvas-wrap{flex:1;min-height:0;padding:12px;background:#aebbc6;overflow:hidden}.paint-canvas-wrap canvas{display:block;width:100%;height:100%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.18);cursor:crosshair;touch-action:none}.paint-status{height:24px;flex:0 0 24px;padding:6px 10px;background:#eef4f8;border-top:1px solid #b5c4d0;color:#6a7b8a;font-size:8px}

.desktop-context{position:fixed;z-index:10000;width:180px;padding:5px;border:1px solid #7893ad;border-radius:7px;background:#f8fbfe;box-shadow:0 12px 34px rgba(0,26,58,.35);font:11px/1.2 system-ui}.desktop-context button{display:block;width:100%;border:0;border-radius:4px;background:transparent;padding:8px 9px;text-align:left;color:#243b50}.desktop-context button:hover{background:#dcecff;color:#0a5fae}
.confetti{position:absolute;z-index:9996;top:-18px;width:8px;height:14px;border-radius:2px;background:hsl(calc(var(--i,1)*47deg) 85% 55%);pointer-events:none;animation:mh-confetti 1.6s cubic-bezier(.25,.7,.25,1) forwards}.confetti:nth-of-type(3n){background:#ffca28}.confetti:nth-of-type(3n+1){background:#29b6f6}.confetti:nth-of-type(3n+2){background:#66bb6a}@keyframes mh-confetti{to{transform:translate(var(--drift),calc(100vh + 40px)) rotate(720deg);opacity:.15}}

@container (max-width:600px){.meme-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}.fm-playlist{grid-template-columns:1fr 1fr}}
@container (max-height:420px){.fm-playlist{display:none}.window.fm .window-body{padding-block:10px}.fm-art{width:62px;height:62px;flex-basis:62px}.meme-head{margin-bottom:7px}.meme-foot{display:none}}
@media(max-width:900px){.meme-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,160px);overflow:auto}.window.viewer .window-body{overflow:hidden!important}.window.paint .window-body{overflow:hidden!important}.fm-playlist{grid-template-columns:1fr 1fr}}
