/* iOES | WEB OS shell (v156). Desktop (>= 900 px): taskbar, Start menu, tray, notifications, window snapping and
   8-way resize. Phone and small tablet (< 900 px): home grid, full-screen apps, bottom navigation, open-apps view.
   Every rule is scoped to body.os-desk or body.os-mobile, so nothing changes until the shell turns a mode on. */
:root{--os-bar:52px;--os-nav:60px;--os-glass:rgba(250,250,252,.78);--os-glass-2:rgba(255,255,255,.94);--os-ink:#0E1726;--os-sub:#475569;--os-line:rgba(0,0,0,.1);--os-hi:rgba(43,179,191,.14);--os-acc:#2BB3BF;--os-shadow:0 18px 50px rgba(0,0,0,.28)}
:root[data-theme="dark"],:root[data-theme="hc"],:root[data-theme="night"]{--os-glass:rgba(28,28,32,.78);--os-glass-2:rgba(36,36,42,.96);--os-ink:#FAF7F2;--os-sub:#a1a1a6;--os-line:rgba(255,255,255,.12);--os-hi:rgba(43,179,191,.22);--os-shadow:0 18px 50px rgba(0,0,0,.55)}
.os-ui[hidden],.os-pop[hidden]{display:none!important}
.os-ui,.os-pop{font:13px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;color:var(--os-ink);-webkit-font-smoothing:antialiased}
.os-ui button,.os-pop button{font:inherit;color:inherit}
.os-ico{display:inline-grid;place-items:center;flex:0 0 auto;width:24px;height:24px;border-radius:7px;overflow:hidden}
.os-ico svg{width:100%;height:100%}
.os-mono{background:var(--os-acc);color:#fff;font-weight:700;font-size:12px;letter-spacing:0}
.os-badge{position:absolute;top:3px;right:3px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#ff3b30;color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center}
.os-badge[hidden]{display:none}
.os-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Desktop (v195): menu bar on top, taskbar with Start, pinned and open apps ---------- */
:root{--os-t:0px;--os-b:0px;--os-l:0px;--os-r:0px;--os-top:26px;--os-tb:48px}
/* the bars follow the wallpaper: light glass on a light background, dark glass on a dark one */
:root[data-os-tone="dark"]{--os-glass:rgba(22,26,34,.62);--os-glass-2:rgba(32,37,48,.94);--os-ink:#F4F6F8;--os-sub:#A8B0BA;--os-line:rgba(255,255,255,.13);--os-hi:rgba(255,255,255,.12);--os-shadow:0 18px 50px rgba(0,0,0,.55)}
:root[data-os-tone="light"]{--os-glass:rgba(250,250,252,.66);--os-glass-2:rgba(255,255,255,.95);--os-ink:#0E1726;--os-sub:#55606E;--os-line:rgba(0,0,0,.1);--os-hi:rgba(14,23,38,.08)}

.os-top{position:fixed;left:0;right:0;top:0;height:var(--os-top);z-index:9002;display:flex;align-items:center;gap:1px;padding:0 8px;background:var(--os-glass);backdrop-filter:saturate(180%) blur(26px);-webkit-backdrop-filter:saturate(180%) blur(26px);border-bottom:1px solid var(--os-line);font-size:13px;-webkit-user-select:none;user-select:none}
.os-mb,.os-mi{height:22px;padding:0 9px;border:0;border-radius:5px;background:transparent;display:inline-flex;align-items:center;gap:6px;cursor:default;white-space:nowrap;flex:0 0 auto}
.os-mb:hover,.os-mb.open,.os-mi:hover,.os-mi[aria-expanded="true"]{background:var(--os-hi)}
.os-logo{padding:0 7px}.os-logo svg{width:15px;height:auto;display:block}
.os-appname{font-weight:700;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.os-top-sp{flex:1}
.os-mi{position:relative;padding:0 7px}.os-mi svg{width:15px;height:15px}
.os-mi .os-badge{top:-2px;right:-1px;min-width:14px;height:14px;line-height:14px;font-size:9px}
.os-clock{font-variant-numeric:tabular-nums;gap:7px;padding:0 8px}.os-clock b{font-weight:500}
@media (max-width:1100px){.os-top .os-mb[data-m="help"],.os-clock #osDate{display:none}}

.os-bar{position:fixed;z-index:9000;display:flex;align-items:center;gap:4px;padding:0 10px;background:var(--os-glass);backdrop-filter:saturate(180%) blur(24px);-webkit-backdrop-filter:saturate(180%) blur(24px);transition:transform .2s ease}
:root[data-os-bar="bottom"] .os-bar{left:0;right:0;bottom:0;height:var(--os-tb);border-top:1px solid var(--os-line)}
:root[data-os-bar="bottom"][data-os-align="center"] .os-bar{justify-content:center}
:root[data-os-bar="left"] .os-bar,:root[data-os-bar="right"] .os-bar{top:var(--os-top);bottom:0;width:var(--os-tb);flex-direction:column;padding:8px 0;justify-content:flex-start}
:root[data-os-bar="left"] .os-bar{left:0;border-right:1px solid var(--os-line)}
:root[data-os-bar="right"] .os-bar{right:0;border-left:1px solid var(--os-line)}
.os-bar.auto:not(.show){transform:translateY(100%)}
:root[data-os-bar="left"] .os-bar.auto:not(.show){transform:translateX(-100%)}
:root[data-os-bar="right"] .os-bar.auto:not(.show){transform:translateX(100%)}
.os-bar.auto{box-shadow:var(--os-shadow)}
.os-bar.drop{background:var(--os-glass-2);box-shadow:inset 0 0 0 2px var(--os-acc)}
.os-edge{position:fixed;z-index:9003;background:transparent}
.os-bar.show ~ .os-edge{pointer-events:none}
:root[data-os-bar="bottom"] .os-edge{left:0;right:0;bottom:0;height:3px}
:root[data-os-bar="left"] .os-edge{left:0;top:var(--os-top);bottom:0;width:3px}
:root[data-os-bar="right"] .os-edge{right:0;top:var(--os-top);bottom:0;width:3px}
.os-start{width:40px;height:40px;border:0;border-radius:9px;background:transparent;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
.os-start svg{width:26px;height:auto}
.os-start:hover,.os-start[aria-expanded="true"]{background:var(--os-hi)}
.os-tasks{display:flex;align-items:center;gap:3px;min-width:0;overflow:auto;scrollbar-width:none;padding:0 2px}
:root[data-os-bar="bottom"][data-os-align="left"] .os-tasks{flex:1}
:root[data-os-bar="left"] .os-tasks,:root[data-os-bar="right"] .os-tasks{flex-direction:column;padding:2px 0}
.os-tasks::-webkit-scrollbar{display:none}
.os-sep{display:none}
.os-task{position:relative;width:40px;height:40px;display:grid;place-items:center;padding:0;border:0;border-radius:9px;background:transparent;cursor:pointer;flex:0 0 auto}
.os-task .os-ico{width:28px;height:28px;border-radius:7px}
.os-task .t{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.os-task:hover{background:var(--os-hi)}
.os-task.run::after{content:"";position:absolute;left:50%;bottom:2px;width:5px;height:3px;border-radius:2px;background:var(--os-sub);transform:translateX(-50%);transition:width .15s}
.os-task.many::after{width:10px}
.os-task.on{background:var(--os-hi)}
.os-task.on::after{width:16px;background:var(--os-acc)}
:root[data-os-bar="left"] .os-task.run::after,:root[data-os-bar="right"] .os-task.run::after{left:2px;top:50%;bottom:auto;width:3px;height:5px;transform:translateY(-50%)}
:root[data-os-bar="right"] .os-task.run::after{left:auto;right:2px}
:root[data-os-bar="left"] .os-task.on::after,:root[data-os-bar="right"] .os-task.on::after{width:3px;height:16px}
.os-task.min .os-ico{opacity:.75}
.os-task.drag{opacity:.35}
.os-task.ins{box-shadow:-3px 0 0 var(--os-acc)}
:root[data-os-bar="left"] .os-task.ins,:root[data-os-bar="right"] .os-task.ins{box-shadow:0 -3px 0 var(--os-acc)}
.os-tasks.ins-end{box-shadow:inset -3px 0 0 var(--os-acc)}
.os-ghost{position:fixed;z-index:9700;width:44px;height:44px;border-radius:11px;overflow:hidden;pointer-events:none;box-shadow:0 10px 26px rgba(0,0,0,.35);opacity:.92}
.os-ghost svg{width:100%;height:100%;display:block}
.os-ui :focus-visible,.os-pop :focus-visible{outline:2px solid var(--os-acc);outline-offset:1px}

/* ---------- Desktop: panels (Start above the taskbar; menus and the control center under the menu bar) ---------- */
.os-pop{position:fixed;z-index:9001;background:var(--os-glass-2);backdrop-filter:saturate(180%) blur(28px);-webkit-backdrop-filter:saturate(180%) blur(28px);border:1px solid var(--os-line);border-radius:12px;box-shadow:var(--os-shadow)}
.os-menu{left:calc(var(--os-l) + 8px);bottom:calc(var(--os-b) + 8px);width:min(620px,calc(100vw - 16px));max-height:min(640px,calc(100dvh - var(--os-t) - var(--os-b) - 24px));display:flex;flex-direction:column;padding:14px;transition:opacity .15s}
:root[data-os-bar="bottom"][data-os-align="center"] .os-menu{left:50%;transform:translateX(-50%)}
:root[data-os-bar="bottom"] .os-bar.auto ~ .os-menu{bottom:calc(var(--os-tb) + 8px)}
:root[data-os-bar="left"] .os-menu,:root[data-os-bar="right"] .os-menu{top:calc(var(--os-top) + 8px);bottom:auto}
:root[data-os-bar="left"] .os-menu{left:calc(var(--os-tb) + 8px)}
:root[data-os-bar="right"] .os-menu{left:auto;right:calc(var(--os-tb) + 8px)}
.os-menu.os-away{opacity:0;pointer-events:none}
.os-menu input{width:100%;height:38px;padding:0 14px;border:1px solid var(--os-line);border-radius:10px;background:transparent;color:var(--os-ink);font:inherit;font-size:14px;outline:none;box-sizing:border-box}
.os-menu input:focus{border-color:var(--os-acc);box-shadow:0 0 0 3px var(--os-hi)}
.os-lbl{margin:12px 2px 6px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--os-sub)}
.os-grid{flex:1;min-height:0;overflow:auto;display:grid;grid-auto-rows:max-content;align-content:start;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:4px;padding:2px}
.os-app{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;padding:10px 4px;border:0;border-radius:10px;background:transparent;cursor:pointer;text-align:center;min-height:44px;touch-action:none}
.os-app>*{flex-shrink:0}
.os-app .os-ico{width:40px;height:40px;border-radius:10px}
.os-app span.n{font-size:12px;line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.os-app small{display:block;color:var(--os-sub);font-size:10.5px}
.os-app:hover,.os-app:focus-visible{background:var(--os-hi)}
.os-empty{grid-column:1/-1;padding:18px;text-align:center;color:var(--os-sub)}
.os-mfoot{display:flex;align-items:center;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--os-line)}
.os-mfoot .who{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--os-sub)}
.os-chip{height:34px;padding:0 12px;border:1px solid var(--os-line);border-radius:9px;background:transparent;cursor:pointer}
.os-chip:hover{border-color:var(--os-acc)}
.os-keys{margin:8px 2px 0;color:var(--os-sub);font-size:11px}
.os-link{border:0;background:none;padding:0;color:var(--os-acc)!important;cursor:pointer;text-decoration:underline}
.os-keys kbd{font:inherit;font-size:10.5px;padding:1px 5px;border:1px solid var(--os-line);border-radius:4px}
.os-notes,.os-cal,.os-gear{top:calc(var(--os-t) + 6px);right:calc(var(--os-r) + 8px)}
.os-notes{width:min(360px,calc(100vw - 16px));max-height:min(520px,calc(100dvh - var(--os-t) - var(--os-b) - 24px));display:flex;flex-direction:column;padding:12px}
.os-nhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.os-nhead b{font-size:14px}
.os-nlist{overflow:auto;display:flex;flex-direction:column;gap:6px}
.os-note{padding:10px 12px;border:1px solid var(--os-line);border-radius:10px;background:transparent}
.os-note time{display:block;color:var(--os-sub);font-size:11px;margin-bottom:2px}
.os-cal{width:300px;padding:14px}
.os-cal .h{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.os-cal .h b{font-size:14px}
.os-cal .h button{width:32px;height:32px;border:0;border-radius:8px;background:transparent;cursor:pointer}
.os-cal .h button:hover{background:var(--os-hi)}
.os-cal table{width:100%;border-collapse:collapse;text-align:center;font-variant-numeric:tabular-nums}
.os-cal th{font-size:11px;color:var(--os-sub);font-weight:600;padding:4px 0}
.os-cal td{padding:0;height:34px}
.os-cal td span{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%}
.os-cal td.o span{color:var(--os-sub);opacity:.55}
.os-cal td.t span{background:var(--os-acc);color:#fff;font-weight:700}
.os-cal .today{margin-top:8px;color:var(--os-sub);font-size:12px}
/* control center */
.os-gear{width:320px;max-height:calc(100dvh - var(--os-t) - var(--os-b) - 20px);overflow:auto;padding:8px 10px 10px;display:flex;flex-direction:column;gap:2px}
.os-gh{margin:8px 4px 4px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--os-sub)}
.os-gr{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px}
.os-gl{color:var(--os-ink)}
.os-seg{display:inline-flex;padding:2px;border-radius:9px;background:var(--os-hi)}
.os-seg button{height:28px;padding:0 10px;border:0;border-radius:7px;background:transparent;cursor:pointer;font-size:12px}
.os-seg button[aria-checked="true"]{background:var(--os-glass-2);box-shadow:0 1px 3px rgba(0,0,0,.18);font-weight:600}
.os-sw2{display:flex;align-items:center;justify-content:space-between;gap:10px;height:36px;padding:0 4px;border:0;border-radius:8px;background:transparent;cursor:pointer;text-align:left}
.os-sw2:hover{background:var(--os-hi)}
.os-sw2 i{position:relative;width:34px;height:20px;border-radius:10px;background:var(--os-line);flex:none;transition:background .15s}
.os-sw2 i::after{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s}
.os-sw2[aria-checked="true"] i{background:var(--os-acc)}
.os-sw2[aria-checked="true"] i::after{transform:translateX(14px)}
.os-ga{height:34px;padding:0 8px;border:0;border-radius:8px;background:transparent;text-align:left;cursor:pointer}
.os-ga:hover{background:var(--os-hi)}
.os-gear hr,.os-ctx hr{border:0;border-top:1px solid var(--os-line);margin:4px 6px}
/* menus (menu bar, taskbar, desktop, Start) */
.os-ctx{min-width:220px;max-width:340px;max-height:calc(100dvh - 12px);overflow:auto;padding:5px;display:flex;flex-direction:column;border-radius:10px}
.os-ctx.os-dd{border-top-left-radius:6px;border-top-right-radius:6px}
.os-ctx button{display:flex;align-items:center;gap:6px;height:28px;padding:0 10px 0 4px;border:0;border-radius:6px;background:transparent;text-align:left;cursor:default;white-space:nowrap}
.os-ctx button .ck{width:16px;text-align:center;color:var(--os-acc);font-weight:700;flex:none}
.os-ctx button .l{flex:1;overflow:hidden;text-overflow:ellipsis}
.os-ctx button kbd{font:inherit;font-size:11.5px;color:var(--os-sub);margin-left:18px}
.os-ctx button:hover:not([disabled]),.os-ctx button:focus-visible{background:var(--os-acc);color:#fff;outline:none}
.os-ctx button:hover:not([disabled]) kbd,.os-ctx button:focus-visible kbd,.os-ctx button:hover .ck{color:#fff}
.os-ctx button[disabled]{opacity:.42}
.os-mh{padding:5px 10px 3px 24px;font-size:11px;font-weight:600;color:var(--os-sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.os-snap{position:fixed;z-index:8999;border:2px solid var(--os-acc);background:var(--os-hi);border-radius:12px;pointer-events:none;transition:all .12s ease}
/* desktop folder panel */
.os-fold{width:min(380px,calc(100vw - 16px));max-height:min(460px,calc(100dvh - var(--os-t) - var(--os-b) - 20px));display:flex;flex-direction:column;padding:10px}
.os-fh{display:flex;align-items:center;gap:6px;margin-bottom:6px}
.os-fh input{flex:1;height:32px;padding:0 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--os-ink);font:inherit;font-size:14px;font-weight:600;outline:none}
.os-fh input:hover,.os-fh input:focus{border-color:var(--os-line)}
.os-fx{width:32px;height:32px;border:0;border-radius:8px;background:transparent;font-size:20px;line-height:1;cursor:pointer}
.os-fx:hover{background:var(--os-hi)}
.os-fg{grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}
/* About and keyboard shortcuts */
.os-about{left:50%;top:22%;transform:translateX(-50%);width:min(380px,calc(100vw - 24px));padding:22px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.os-about b{font-size:16px}.os-about p{margin:0;color:var(--os-ink)}.os-about .os-sub{color:var(--os-sub);font-size:12px}
.os-ab-mark svg{width:64px;height:auto}
.os-about table{width:100%;border-collapse:collapse;margin:8px 0;text-align:left;font-size:12.5px}
.os-about td{padding:4px 6px;border-top:1px solid var(--os-line)}
.os-about kbd{font:inherit;font-size:11.5px;padding:1px 6px;border:1px solid var(--os-line);border-radius:4px;white-space:nowrap}
.os-about .os-chip{margin-top:8px;min-width:90px}

/* ---------- Desktop: windows ---------- */
body.os-desk .dock{display:none!important}
body.os-desk .toast{z-index:9500;bottom:calc(var(--os-b) + 18px)}
body.os-desk [data-os][data-os-active] > .sh-head,body.os-desk [data-os][data-os-active] > .cf-head{color:var(--text)}
body.os-desk [data-os]:not([data-os-active]) > .sh-head{opacity:.82}
body.os-desk [data-os]:focus{outline:none}
body.os-desk section[data-os].open.max{left:var(--os-l)!important;top:var(--os-t)!important;transform:none!important;width:calc(100vw - var(--os-l) - var(--os-r))!important;height:calc(100dvh - var(--os-t) - var(--os-b))!important;max-width:none!important;max-height:none!important;border-radius:0!important}
.os-rz{position:absolute;z-index:5;display:none;touch-action:none}
body.os-desk section[data-os].open:not(.max) > .os-rz{display:block}
.os-rz.n{top:-4px;left:10px;right:10px;height:8px;cursor:ns-resize}
.os-rz.s{bottom:-4px;left:10px;right:10px;height:8px;cursor:ns-resize}
.os-rz.e{right:-4px;top:10px;bottom:10px;width:8px;cursor:ew-resize}
.os-rz.w{left:-4px;top:10px;bottom:10px;width:8px;cursor:ew-resize}
.os-rz.ne{right:-5px;top:-5px;width:14px;height:14px;cursor:nesw-resize}
.os-rz.nw{left:-5px;top:-5px;width:14px;height:14px;cursor:nwse-resize}
.os-rz.se{right:-5px;bottom:-5px;width:14px;height:14px;cursor:nwse-resize}
.os-rz.sw{left:-5px;bottom:-5px;width:14px;height:14px;cursor:nesw-resize}

/* ---------- Phone: bottom navigation, full-screen apps, open-apps view ---------- */
.os-nav{position:fixed;left:0;right:0;bottom:0;z-index:9000;height:calc(var(--os-nav) + env(safe-area-inset-bottom,0px));padding:0 12px env(safe-area-inset-bottom,0px);display:flex;align-items:center;justify-content:space-around;background:var(--os-glass);backdrop-filter:saturate(180%) blur(24px);-webkit-backdrop-filter:saturate(180%) blur(24px);border-top:1px solid var(--os-line)}
.os-nb{position:relative;width:64px;height:48px;border:0;border-radius:14px;background:transparent;display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.os-nb svg{width:24px;height:24px}
.os-nb:active{background:var(--os-hi)}
.os-nb .os-badge{top:4px;right:10px}
body.os-mobile .dock{display:none!important}
body.os-mobile .toast{z-index:9500;bottom:calc(var(--os-nav) + env(safe-area-inset-bottom,0px) + 16px)}
body.os-mobile #hub{bottom:calc(var(--os-nav) + env(safe-area-inset-bottom,0px))}
/* v270: the hub's page dots and arrows sit above the bottom bar, not behind it (tablet widths, 681-899 px) */
body.os-mobile .hub-pager{bottom:calc(var(--os-nav) + env(safe-area-inset-bottom,0px) + 10px)}
@media (max-width:680px){body.os-mobile #hub{padding-bottom:calc(var(--os-nav) + env(safe-area-inset-bottom,0px) + 16px)}}
body.os-mobile section[data-os="app"].open{position:fixed!important;left:0!important;top:0!important;right:auto!important;transform:none!important;width:100vw!important;height:calc(100dvh - var(--os-nav) - env(safe-area-inset-bottom,0px))!important;max-width:none!important;max-height:none!important;border-radius:0!important;margin:0!important}
body.os-mobile section[data-os="folder"].open{max-height:calc(100dvh - var(--os-nav) - 24px);overflow:auto}
body.os-mobile [data-os] .sh-head button:not(.sh-ctl button),body.os-mobile [data-os] .cf-head button,body.os-mobile [data-os] .calc-top button,body.os-mobile [data-os] .garage-top button,body.os-mobile [data-os] .game-top-bar button{min-width:44px;min-height:44px}
/* phone: the bottom bar does Back (minimize) and every app is already full screen, so the title bar keeps only Close and
   the app's own buttons. The small traffic-light dot keeps its look; an invisible 44 px area around it takes the tap. */
body.os-mobile [data-os] .sh-ctl .sh-min,body.os-mobile [data-os] .sh-ctl .sh-max,body.os-mobile [data-os] .sh-ctl .sh-fs,body.os-mobile [data-os] .gm-min{display:none!important}
body.os-mobile [data-os] .sh-ctl button{position:relative;overflow:visible!important;margin:0 12px!important}
body.os-mobile [data-os] .sh-ctl button::after{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%)}
body.os-mobile [data-os] .win-grip,body.os-mobile [data-os] .sh-grip{display:none}
.os-sw{position:fixed;inset:0 0 calc(var(--os-nav) + env(safe-area-inset-bottom,0px)) 0;z-index:8990;display:flex;flex-direction:column;background:rgba(10,10,14,.55);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);color:#fff}
.os-sw-h{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 6px}
.os-sw-h b{font-size:17px}
.os-sw-h button{min-height:44px;padding:0 16px;border:1px solid rgba(255,255,255,.35);border-radius:22px;background:rgba(255,255,255,.12);color:#fff;cursor:pointer}
.os-sw-cards{flex:1;min-height:0;display:flex;align-items:center;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:12px 15vw 24px;scrollbar-width:none}
.os-sw-cards::-webkit-scrollbar{display:none}
.os-card{flex:0 0 min(70vw,320px);height:min(62vh,520px);scroll-snap-align:center;display:flex;flex-direction:column;border-radius:22px;overflow:hidden;background:var(--os-glass-2);color:var(--os-ink);box-shadow:0 20px 50px rgba(0,0,0,.45);touch-action:pan-x;transition:transform .2s ease,opacity .2s ease}
.os-card-h{display:flex;align-items:center;gap:10px;padding:10px 6px 10px 14px;border-bottom:1px solid var(--os-line)}
.os-card-h .t{flex:1;min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.os-card-h button{width:44px;height:44px;border:0;border-radius:12px;background:transparent;cursor:pointer;font-size:22px;line-height:1}
.os-card-b{flex:1;display:grid;place-items:center;border:0;background:linear-gradient(160deg,var(--os-hi),transparent 70%);cursor:pointer}
.os-card-b .os-ico{width:84px;height:84px;border-radius:22px}
.os-card-b .os-mono{font-size:36px}
.os-card-b small{display:block;margin-top:10px;color:var(--os-sub)}
.os-sw-empty{margin:auto;color:rgba(255,255,255,.85);font-size:15px}
@media (orientation:landscape) and (max-height:500px){
  :root{--os-nav:56px}
  .os-nav{top:0;left:auto;right:0;bottom:0;width:calc(var(--os-nav) + env(safe-area-inset-right,0px));height:auto;flex-direction:column;padding:8px env(safe-area-inset-right,0px) 8px 0;border-top:0;border-left:1px solid var(--os-line)}
  .os-nb{width:48px;height:56px}
  body.os-mobile #hub{bottom:0;right:calc(var(--os-nav) + env(safe-area-inset-right,0px));overflow-y:auto!important}
  /* the hub's 4 x 4 pages cannot fit a phone on its side: one scrolling grid under the top bar instead */
  body.os-mobile #hub .menu{position:relative!important;top:auto!important;left:auto!important;transform:none!important;width:auto!important;height:auto!important;max-width:none!important;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(104px,1fr))!important;gap:16px 8px!important;justify-items:center;align-content:start!important;margin:0!important;padding:92px 20px 24px!important}
  body.os-mobile #hub .menu .round{width:76px!important;height:76px!important}
  body.os-mobile #hub .menu .item{min-width:0;max-width:100%}
  body.os-mobile #hub .menu .cap{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px}
  body.os-mobile #hubPager{display:none!important}
  body.os-mobile section[data-os="app"].open{width:calc(100vw - var(--os-nav) - env(safe-area-inset-right,0px))!important;height:100dvh!important}
  body.os-mobile .toast{bottom:16px}
  .os-sw{inset:0 calc(var(--os-nav) + env(safe-area-inset-right,0px)) 0 0}
  .os-card{height:min(70vh,300px);flex-basis:min(44vw,300px)}
}
@media (prefers-reduced-motion:reduce){.os-snap,.os-card,.os-task::after{transition:none}}

/* v201: magnification (the Dock on a Mac). The icon grows from the bar's edge; its button grows too, so neighbours move aside. */
.os-bar.magon .os-tasks{overflow:visible}
.os-task{--m:1}
.os-bar.magon .os-task{transition:none}
.os-bar.magon .os-task .os-ico{transform:scale(var(--m))}
:root[data-os-bar="bottom"] .os-bar.magon .os-task{width:calc(40px * var(--m));align-self:flex-end;margin-bottom:4px}
:root[data-os-bar="bottom"] .os-bar.magon .os-task .os-ico{transform-origin:50% 100%}
:root[data-os-bar="left"] .os-bar.magon .os-task,:root[data-os-bar="right"] .os-bar.magon .os-task{height:calc(40px * var(--m))}
:root[data-os-bar="left"] .os-bar.magon .os-task .os-ico{transform-origin:0 50%}
:root[data-os-bar="right"] .os-bar.magon .os-task .os-ico{transform-origin:100% 50%}
@media (prefers-reduced-motion:reduce){.os-bar.magon .os-task .os-ico,.os-bar.magon .os-task{transition:none}}
.os-bar.magon .os-task:hover{background:transparent}
/* v201: on the left or right, the apps sit in the middle of the bar, like the Dock (Start stays at the top) */
:root[data-os-bar="left"] .os-tasks,:root[data-os-bar="right"] .os-tasks{margin-block:auto}
