/* ==========================================================================
   Mr. Biss: "Biss XP" theme. Original drawings in the style of a 2001
   desktop; no Microsoft artwork, logos or sounds are used.
   ========================================================================== */
:root {
  --ui-font: Tahoma, "Segoe UI", Verdana, Geneva, sans-serif;
  --title-font: "Trebuchet MS", Tahoma, "Segoe UI", sans-serif;
  --brand-font: "Franklin Gothic Medium", "Franklin Gothic", "Arial Narrow", Arial, sans-serif;
  --navy: #00309c;
  --login-blue: #5a7edc;
  --face: #ece9d8;
  --border-blue: #0831d9;
  --orange: #f39a33;
  --taskbar-h: 30px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 12px/1.35 var(--ui-font);
  color: #000;
  background: var(--login-blue);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }

/* Anything still waiting on content from Mr. Biss */
.ph { outline: 1px dashed #e0a800; outline-offset: 2px; background-color: rgba(255, 214, 64, .14); }

/* ------------------------------ Screens ------------------------------ */
.screen {
  position: fixed; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.screen.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }

/* Shared log-on frame: dark band, blue middle, dark band */
.xp-frame { display: flex; flex-direction: column; background: var(--login-blue); color: #fff; }
.xp-top { flex: 0 0 auto; height: 12vh; min-height: 56px; background: var(--navy); position: relative; }
.xp-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(160,190,255,.9) 25%, rgba(160,190,255,.9) 60%, rgba(255,255,255,0) 100%);
}
.xp-mid {
  flex: 1 1 auto; display: flex; align-items: center; position: relative;
  background:
    radial-gradient(ellipse 45% 55% at 8% 0%, rgba(255,255,255,.45), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #6a8ee6 0%, #5a7edc 40%, #4f72d3 100%);
}
.xp-bottom {
  flex: 0 0 auto; height: 12vh; min-height: 64px; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 4vw 0 2.5vw;
  background: linear-gradient(180deg, #1a4fc4 0%, #0f3fae 40%, var(--navy) 100%);
}
.xp-bottom::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 30%, #fff 50%, rgba(255,255,255,.85) 70%, rgba(255,255,255,0) 100%);
}

/* ------------------------------ Login ------------------------------ */
.login-left {
  flex: 1 1 50%; display: flex; flex-direction: column; align-items: flex-end;
  padding-right: 3vw; text-align: right;
}
.brand { display: flex; align-items: flex-end; }
.brand-text { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.brand-word { font: 400 66px/0.9 var(--brand-font); letter-spacing: -2px; text-shadow: 0 2px 4px rgba(0,0,40,.3); }
.brand-word i { color: #fff; font-style: normal; }
.brand-tag { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #fff; font: italic 700 14px var(--title-font); letter-spacing: .5px; }
.login-hint { font-size: clamp(15px, 1.4vw, 18px); margin: 30px 0 0; text-shadow: 0 1px 1px rgba(0,0,0,.15); }

.login-divider {
  align-self: stretch; width: 1px; margin: 4vh 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.75) 20%, rgba(255,255,255,.75) 80%, rgba(255,255,255,0));
}
.login-right { flex: 1 1 50%; padding-left: 2.2vw; }

.user-tile {
  display: flex; align-items: center; gap: 14px; width: min(420px, 100%);
  padding: 8px 10px; border: 0; border-radius: 8px 0 0 8px; background: transparent; color: #fff; text-align: left;
  transition: background .2s;
}
.user-tile:hover, .user-tile:focus-visible, .user-tile.is-selected {
  background: linear-gradient(90deg, #00309c 0%, rgba(0,48,156,.75) 55%, rgba(0,48,156,0) 100%);
  outline: none;
}
.user-tile .avatar { width: 76px; height: 76px; border-width: 3px; border-radius: 6px; }
.user-tile:hover .avatar, .user-tile.is-selected .avatar { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.user-meta { display: flex; flex-direction: column; gap: 2px; }
.user-name { font: 400 26px var(--title-font); }
.user-role { font-size: 13px; color: #fff; opacity: .9; }
.user-loading { font-size: 12px; opacity: 0; height: 0; overflow: hidden; transition: opacity .3s; }
.user-tile.is-selected .user-role { display: none; }
.user-tile.is-selected .user-loading { opacity: 1; height: auto; }

/* Avatar: his profile photo, or an MB monogram if it fails to load */
.avatar {
  display: inline-grid; place-items: center; flex: 0 0 auto; overflow: hidden;
  border: 2px solid #fff; border-radius: 5px; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* his photo has lots of white around him: zoom onto the figure (remove if the photo is re-cropped) */
.avatar img { transform: scale(2.4); transform-origin: 48% 53%; }
.avatar.is-fallback {
  background: linear-gradient(135deg, #ffb340, #e2531c 60%, #8a2a12);
  color: #fff; font: 700 1em var(--brand-font); letter-spacing: -.5px;
}

.turnoff {
  display: flex; align-items: center; gap: 10px; border: 0; background: none; color: #fff;
  font-size: clamp(13px, 1.2vw, 16px); padding: 4px;
}
.turnoff:hover span:last-child { text-decoration: underline; }
.power-btn {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px;
  border: 1px solid #fff; background: linear-gradient(180deg, #f08a5d, #d2401a 55%, #b5300f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.power-btn svg { width: 16px; height: 16px; }
.bottom-note { margin: 0; font-size: 11px; line-height: 1.4; text-align: left; opacity: .95; }

/* ------------------------------ Welcome ------------------------------ */
.welcome-mid { justify-content: center; }
.welcome-word {
  margin: 0 0 0 -12vw; font: italic 700 clamp(48px, 7vw, 96px) var(--brand-font);
  text-shadow: 3px 3px 6px rgba(0,0,40,.35); letter-spacing: -1px;
  opacity: 0; transform: translateX(-20px);
}
#welcome.is-active .welcome-word { animation: welcomeIn 1s .15s ease-out forwards; }
@keyframes welcomeIn { to { opacity: 1; transform: none; } }

/* ------------------------------ Desktop ------------------------------ */
#desktop { background: #6aa3e0; }
.wallpaper {
  position: absolute; inset: 0 0 var(--taskbar-h) 0; overflow: hidden;
  background: #6aa3e0 center / cover no-repeat;   /* poster frame set by JS */
}
.wallpaper video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease;
}
.wallpaper video.is-ready { opacity: 1; }

/* Desktop icons: 32px, crisp, 1px hard text shadow */
.icons {
  position: absolute; top: 10px; left: 6px; bottom: calc(var(--taskbar-h) + 10px);
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start;
}
.icons li { margin: 0 0 18px; }
.icons, .title-bar, .taskbar, .vid-ph, .start-menu, .shutdown-box, .msn-toast { -webkit-user-select: none; user-select: none; }
.icon {
  width: 76px; padding: 2px; border: 0; background: none; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.icon svg { width: 32px; height: 32px; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.45)); }
.icon span {
  font: 11px/1.25 Tahoma, Verdana, sans-serif; text-align: center; padding: 0 2px;
  text-shadow: 1px 1px 0 #000; -webkit-font-smoothing: none;
}
.icon:focus { outline: none; }
.icon.is-selected svg { filter: drop-shadow(1px 1px 0 rgba(0,0,0,.45)) brightness(.7) sepia(1) hue-rotate(180deg) saturate(4); }
.icon.is-selected span { background: #0b61ff; text-shadow: none; outline: 1px dotted #fff; }

/* ------------------------------ Taskbar ------------------------------ */
.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); z-index: 9000;
  display: flex; align-items: stretch;
  background: linear-gradient(180deg, #3168d5 0%, #4993e6 4%, #2463d6 14%, #2459d3 50%, #2159d7 86%, #1941a5 100%);
  border-top: 1px solid #0c2f9e;
}
.start-btn {
  display: flex; align-items: center; gap: 5px; padding: 0 18px 0 8px; border: 0;
  border-radius: 0 12px 12px 0; color: #fff;
  background: linear-gradient(180deg, #3c9b3c 0%, #5bc25b 8%, #3ea83e 30%, #349834 70%, #2b7d2b 100%);
  box-shadow: inset -2px 0 3px rgba(0,0,0,.25), inset 0 1px 1px rgba(255,255,255,.4);
  font: italic 700 17px var(--title-font); text-shadow: 1px 1px 2px rgba(0,0,0,.5);
}
.start-btn:hover, .start-btn[aria-expanded="true"] { filter: brightness(1.1); }
.start-btn[aria-expanded="true"] { background: linear-gradient(180deg, #2c7a2c, #3a9a3a 40%, #2b7d2b); }
.task-buttons { flex: 1 1 auto; display: flex; gap: 3px; padding: 3px 8px; min-width: 0; }
.task-btn {
  display: flex; align-items: center; gap: 6px; width: 160px; min-width: 0; padding: 0 8px;
  border: 1px solid rgba(0,0,0,.25); border-radius: 3px; color: #fff; font-size: 11px;
  background: linear-gradient(180deg, #4d95f2, #3c81f3 15%, #3277e8 85%, #2a63d0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.task-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.task-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-btn.is-active { background: linear-gradient(180deg, #1e52b7, #1a4cb0 20%, #2157c4); box-shadow: inset 1px 1px 2px rgba(0,0,0,.4); }
.tray {
  display: flex; align-items: center; gap: 6px; padding: 0 12px 0 10px; color: #fff;
  background: linear-gradient(180deg, #0c59b9 0%, #139ee9 6%, #18b5f2 10%, #139beb 14%, #1290e8 20%, #0d8dea 60%, #0a74d4 92%, #0b5fb5 100%);
  border-left: 1px solid #092e9e; box-shadow: inset 1px 0 1px #18bbff;
}
.tray-btn { border: 0; background: none; padding: 2px; }
.tray-btn svg { width: 16px; height: 16px; }
.tray-btn.is-muted .waves { display: none; }
.tray-btn.is-muted { opacity: .65; }
.clock { font-size: 11px; white-space: nowrap; }

/* Messenger-style "has just signed in" toast */
.msn-toast {
  position: absolute; right: 8px; bottom: calc(var(--taskbar-h) + 6px); z-index: 9400;
  width: 190px; height: 112px; padding: 14px 12px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #5a6fb3; border-radius: 2px; color: #000; text-align: center; font-size: 11px;
  background: linear-gradient(160deg, #eef1ff 0%, #c9d2f7 40%, #f5c26b 100%);
  box-shadow: 1px 2px 6px rgba(0,0,0,.4);
  animation: toastUp .4s ease-out;
}
.msn-toast svg { width: 32px; height: 32px; }
.msn-toast b { font-size: 12px; }
.toast-x { position: absolute; top: 2px; right: 5px; font-size: 13px; color: #445; }
@keyframes toastUp { from { transform: translateY(120%); } to { transform: none; } }

/* ------------------------------ Start menu ------------------------------ */
.start-menu {
  position: absolute; left: 0; bottom: var(--taskbar-h); z-index: 9500; width: 380px;
  border: 1px solid #0c3fbf; border-radius: 8px 8px 0 0; overflow: hidden;
  background: #fff; box-shadow: 3px 0 8px rgba(0,0,0,.4);
}
.sm-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: #fff;
  background: linear-gradient(180deg, #1868ce 0%, #0e60cb 12%, #0e60cb 20%, #1164cf 32%, #1667cf 33%, #1b6cd3 47%, #1e70d9 54%, #2476dc 60%, #297ae0 65%, #3482e3 77%, #3786e5 79%, #428ee9 90%, #4791eb 100%);
  border-bottom: 2px solid #f39a33;
}
.sm-head .avatar { width: 46px; height: 46px; border-color: #e9eef9; }
.sm-name { font: 700 15px var(--title-font); text-shadow: 1px 1px 2px rgba(0,0,0,.45); }
.sm-body { display: flex; }
.sm-body ul { list-style: none; margin: 0; padding: 6px 0; flex: 1 1 50%; }
.sm-right { background: #d3e5fa; border-left: 1px solid #95bdee; }
.sm-body li > button, .sm-body li > a {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 0; background: none;
  text-align: left; color: #000; text-decoration: none; font-size: 11px;
}
.sm-left li > button svg { width: 32px; height: 32px; flex: 0 0 auto; }
.sm-right li > button svg { width: 22px; height: 22px; flex: 0 0 auto; }
.sm-right li > button { color: #0a246a; font-weight: 700; }
.sm-body li > button:hover { background: #316ac5; color: #fff; }
.sm-body span { display: flex; flex-direction: column; }
.sm-body small { color: #777; font-size: 10px; }
.sm-body li > button:hover small { color: #dfe8ff; }
.sm-sep { height: 1px; margin: 4px 8px; background: linear-gradient(90deg, rgba(0,0,0,0), #b7c7e0, rgba(0,0,0,0)); }
.sm-foot {
  display: flex; justify-content: flex-end; gap: 8px; padding: 5px 8px;
  background: linear-gradient(180deg, #4282d6 0%, #3b85e0 3%, #418ae3 5%, #418ae3 17%, #3c87e2 21%, #3786e4 26%, #3482e3 29%, #2e7ee1 39%, #2374df 49%, #2072db 57%, #196edb 62%, #176bd8 72%, #1468d7 75%, #1165d4 83%, #0f61cb 88%);
}
.sm-foot button { display: flex; align-items: center; gap: 5px; border: 0; background: none; color: #fff; font-size: 11px; padding: 3px 6px; border-radius: 3px; }
.sm-foot button:hover { background: rgba(255,255,255,.15); }
.sm-foot-ico { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #fff; border-radius: 3px; }
.sm-foot-ico svg { width: 14px; height: 14px; }
.sm-foot-ico.logoff { background: linear-gradient(180deg, #f8c25a, #d58b14); }
.sm-foot-ico.power { background: linear-gradient(180deg, #f08a5d, #c8381a); }

/* ------------------------------ Windows (always 100% opaque) ------------------------------ */
#windows { position: absolute; inset: 0 0 var(--taskbar-h) 0; pointer-events: none; }
.window {
  position: absolute; pointer-events: auto; display: flex; flex-direction: column;
  min-width: 260px; min-height: 160px;
  border: 3px solid var(--border-blue); border-top: 0; border-radius: 8px 8px 0 0;
  background: var(--face); box-shadow: 2px 4px 14px rgba(0,0,0,.4);
  animation: winOpen .15s ease-out;
}
@keyframes winOpen { from { transform: scale(.97); } to { transform: none; } }
.window.is-inactive { border-color: #7a96df; }
.title-bar {
  flex: 0 0 auto; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 5px 0 7px;
  border-radius: 7px 7px 0 0; margin: 0 -3px; color: #fff; touch-action: none;
  background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #06f 88%, #06f 93%, #005bff 95%, #003dd7 96%, #003dd7 100%);
}
.window.is-inactive .title-bar { background: linear-gradient(180deg, #7697e7 0%, #7e9ee3 3%, #94afe8 6%, #97b4e9 8%, #82a5e4 14%, #7c9fe2 17%, #7996de 25%, #7b99e1 56%, #82a9e9 81%, #80a5e7 89%, #7b96e1 94%, #7a93df 97%, #abbae3 100%); }
.title-bar svg.title-ico { width: 16px; height: 16px; flex: 0 0 auto; }
.title { flex: 1 1 auto; min-width: 0; font: 700 13px var(--title-font); text-shadow: 1px 1px #0f1089; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.title-btns { display: flex; gap: 2px; }
/* Title-bar buttons, per Bassem's reference: white rim, glossy blue / orange-red */
.tb {
  position: relative; width: 21px; height: 21px; padding: 0; border: 1px solid #fff; border-radius: 3px;
  background: radial-gradient(circle at 90% 90%, #0054e9 0%, #2263d5 55%, #4479e4 70%, #a3bbec 90%, #fff 100%);
}
.tb:hover { filter: brightness(1.18); }
.tb:active { filter: brightness(.9); }
.tb.close { background: radial-gradient(circle at 90% 90%, #cc4600 0%, #dc6527 55%, #cd7546 70%, #ffccb2 90%, #fff 100%); }
.tb::before, .tb::after { content: ""; position: absolute; background: #fff; }
.tb.min::before { left: 4px; bottom: 4px; width: 7px; height: 3px; }
.tb.max::before { left: 3px; top: 3px; width: 13px; height: 13px; background: none; border: 1px solid #fff; border-top-width: 3px; box-sizing: border-box; }
.tb.close::before, .tb.close::after { left: 8.5px; top: 3px; width: 2px; height: 13px; }
.tb.close::before { transform: rotate(45deg); }
.tb.close::after { transform: rotate(-45deg); }
.window-body { flex: 1 1 auto; min-height: 0; overflow: auto; position: relative; background: var(--face); }
.window.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; }
.window.is-max .title-bar { border-radius: 0; }
.window.is-min { display: none; }
.resize-grip { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 50%, #b9b5a5 50%, #b9b5a5 60%, transparent 60%, transparent 70%, #b9b5a5 70%, #b9b5a5 80%, transparent 80%); }

/* XP button */
.xp-button {
  display: inline-block; min-width: 75px; padding: 4px 12px; border: 1px solid #003c74; border-radius: 3px; color: #000;
  background: linear-gradient(180deg, #fff 0%, #ecebe6 86%, #d6d0c5 100%); text-align: center; text-decoration: none;
}
.xp-button:hover { box-shadow: inset 0 -1px 0 #e5a01a, inset 0 1px 0 #ffd77a, inset 1px 0 0 #fbcf72, inset -1px 0 0 #fbcf72; }
.xp-button:active { background: linear-gradient(180deg, #cdcac3, #e3e3db 8%, #f2f1ec); }
.xp-button.primary { font-weight: 700; }

/* Fake browser chrome (Instagram + Studio windows) */
.browser { display: flex; flex-direction: column; height: 100%; }
.menu-bar { display: flex; gap: 14px; padding: 2px 8px; border-bottom: 1px solid #d0cdc0; font-size: 11px; }
.menu-bar span::first-letter { text-decoration: underline; }
.addr-bar { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-bottom: 1px solid #b9b5a5; font-size: 11px; color: #555; }
.addr-bar .addr { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 5px; height: 21px; padding: 0 4px; border: 1px solid #7f9db9; background: #fff; color: #000; overflow: hidden; white-space: nowrap; }
.addr-bar .addr svg { width: 14px; height: 14px; flex: 0 0 auto; }
.go-btn { display: flex; align-items: center; gap: 3px; border: 0; background: none; font-size: 11px; color: #000; }
.go-btn i { display: inline-block; width: 14px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #6ed16e, #2a9a2a); position: relative; }
.go-btn i::after { content: ""; position: absolute; left: 5px; top: 3px; border: 4px solid transparent; border-left: 5px solid #fff; }
.page { flex: 1 1 auto; min-height: 0; overflow: auto; background: #fff; }
.status-bar { display: flex; justify-content: space-between; padding: 2px 8px; border-top: 1px solid #b9b5a5; font-size: 11px; color: #333; }

/* ------------------------------ Portfolio: one page of videos ------------------------------ */
.pf { min-height: 100%; padding: 12px; background: linear-gradient(180deg, #1c2a4a, #0f1830); color: #dfe8ff; }
.pf-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 12px; }
.pf-head b { font: 700 16px var(--title-font); color: #fff; }
.pf-head span { color: #9fb5e0; font-size: 11px; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.pf-item { margin: 0; }
.pf-screen { position: relative; aspect-ratio: 9 / 16; background: #000; border: 2px solid #3a5185; border-radius: 4px; overflow: hidden; }
.pf-screen video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.vid-ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff;
  background: linear-gradient(120deg, #ff8a1f, #d9361a, #6d2bd9, #1a63d6, #ff8a1f); background-size: 400% 400%;
  animation: hue 10s ease infinite;
}
.vid-ph b { display: block; font: 700 18px var(--title-font); text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.vid-ph small { opacity: .9; }
.pf .ph { outline-offset: -3px; }
@keyframes hue { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ------------------------------ Instagram: mirror of his profile ------------------------------ */
.ig { max-width: 560px; margin: 0 auto; padding: 18px 16px 24px; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #111; }
.ig-head { display: flex; align-items: center; gap: 22px; padding: 0 4px 16px; }
.ig-head .avatar { width: 86px; height: 86px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #e1306c; font-size: 28px; }
.ig-info { min-width: 0; }
.ig-handle { margin: 0 0 8px; font-size: 20px; font-weight: 400; }
.ig-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.ig-follow, .ig-msg { display: inline-block; padding: 6px 16px; border-radius: 8px; font-weight: 600; font-size: 13px; text-decoration: none; }
.ig-follow { background: #0095f6; color: #fff; }
.ig-follow:hover { background: #1877f2; }
.ig-msg { background: #efefef; color: #111; }
.ig-msg:hover { background: #dbdbdb; }
.ig-bio { margin: 0; font-size: 14px; line-height: 1.4; color: #111; }
.ig-bio b { display: block; font-weight: 600; }
.ig-cat { display: block; color: #737373; }
/* his profile shows the whole photo, not the zoomed crop used elsewhere */
.ig-head .avatar img { transform: none; }
.ig-tabs { display: flex; justify-content: center; gap: 48px; border-top: 1px solid #dbdbdb; font-size: 11px; font-weight: 600; letter-spacing: 1px; color: #8e8e8e; }
.ig-tabs span { padding: 12px 0; margin-top: -1px; }
.ig-tabs .is-on { color: #111; border-top: 1px solid #111; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.ig-post { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; cursor: pointer; background: #efefef center / cover no-repeat; }
.ig-post:hover { filter: brightness(.85); }
.ig-badge { position: absolute; top: 6px; right: 7px; color: #fff; font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.ig-open { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 9px 12px; border-radius: 8px; background: #0095f6; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.ig-open:hover { background: #1877f2; }
.ig-open svg { width: 22px; height: 22px; }

/* in-window post viewer */
.browser { position: relative; }
.ig-viewer { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 16px 44px; background: rgba(0,0,0,.72); }
.igv-box { position: relative; display: flex; width: min(100%, 720px); height: min(100%, 560px); background: #fff; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.igv-media { flex: 1 1 auto; min-width: 0; min-height: 0; display: grid; place-items: center; background: #000; }
.igv-media { position: relative; }
.igv-media > * { position: absolute; inset: 0; }
.igv-media video, .igv-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.igv-media.is-embed { background: #fff; }
.igv-media iframe { width: 100%; height: 100%; border: 0; }
.igv-side { flex: 0 0 230px; display: flex; flex-direction: column; border-left: 1px solid #efefef; }
.igv-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid #efefef; font-size: 13px; }
.igv-user .avatar { width: 32px; height: 32px; border-radius: 50%; border-width: 1px; }
.igv-cap { flex: 1 1 auto; margin: 0; padding: 12px; overflow: auto; font-size: 13px; line-height: 1.4; }
.igv-link { margin: 12px; padding: 8px; border-radius: 8px; background: #0095f6; color: #fff; text-align: center; font-weight: 600; font-size: 13px; text-decoration: none; }
.igv-x { position: absolute; top: -12px; right: -34px; width: 28px; height: 28px; border: 0; background: none; color: #fff; font-size: 28px; line-height: 1; }
.igv-nav { position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #111; font-size: 22px; line-height: 1; }
.igv-nav.prev { left: -38px; }
.igv-nav.next { right: -38px; }
@container (max-width: 560px) { .ig-head { gap: 14px; } .ig-head .avatar { width: 64px; height: 64px; } }

/* ------------------------------ Studio: "Have a story to tell?", flat XP-era colours ------------------------------ */
.page { container-type: inline-size; }
.sv {
  --sv-navy: #0a246a; --sv-blue: #245edb; --sv-face: #ece9d8; --sv-line: #aca899; --sv-orange: #f08a1a;
  min-height: 100%; background: #fff; color: #000;
  font: 12px/1.5 Tahoma, Verdana, Geneva, sans-serif;
}
.sv-top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 24px; background: var(--sv-navy); color: #fff; border-bottom: 3px solid var(--sv-orange);
}
.sv-mark { font: 700 16px Tahoma, Verdana, sans-serif; white-space: nowrap; }
.sv-mark em { color: var(--sv-orange); }
.sv-top nav { display: flex; align-items: center; gap: 16px; font-size: 11px; }
.sv-top nav a { color: #fff; text-decoration: none; }
.sv-top nav a:hover { text-decoration: underline; }
.sv-top nav a.sv-pill { padding: 3px 10px; border: 1px solid #fff; background: var(--sv-orange); color: #000; font-weight: 700; }

/* Hero */
.sv-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: center;
  padding: 40px 32px 44px; background: var(--sv-blue); color: #fff;
}
.sv-kicker { margin: 0 0 10px; color: #ffd27a; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.sv-hero h1 { margin: 0 0 14px; font: 700 clamp(28px, 6cqi, 48px)/1.08 Tahoma, Verdana, sans-serif; letter-spacing: -1px; }
.sv-hero h1 span { color: #ffb347; font-style: italic; }
.sv-lead { margin: 0 0 22px; max-width: 420px; font-size: 13px; color: #e6eeff; }
.sv-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.sv-btn {
  display: inline-block; padding: 7px 16px; border: 1px solid #7a3d00; border-radius: 2px; cursor: pointer;
  background: var(--sv-orange); color: #000; font: 700 12px Tahoma, Verdana, sans-serif; text-decoration: none;
}
.sv-btn:hover { background: #ff9d33; }
.sv-btn:active { background: #d97706; }
.sv-btn.ghost { background: transparent; border-color: #fff; color: #fff; }
.sv-btn.ghost:hover { background: rgba(255,255,255,.12); }

/* Old touchscreen phone playing his reel */
.sv-phone {
  justify-self: center; width: 168px; padding: 0 9px; border: 3px solid #b8bcc2; border-radius: 26px;
  background: #151515; box-shadow: 4px 4px 0 rgba(0,0,0,.3), inset 0 0 0 1px #000;
}
.sv-phone-top { position: relative; height: 38px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.sv-ear { width: 38px; height: 5px; border-radius: 3px; background: #2e2e2e; box-shadow: inset 0 1px 1px #000; }
.sv-cam { position: absolute; left: 38px; width: 6px; height: 6px; border-radius: 50%; background: #23272f; box-shadow: inset 0 0 0 1px #0b0b0b; }
.sv-phone-screen { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border: 2px solid #050505; background: #000; }
.sv-phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-phone-status {
  position: absolute; left: 0; right: 0; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  height: 14px; padding: 0 5px; background: rgba(0,0,0,.55); color: #fff; font: 700 8px Tahoma, Verdana, sans-serif;
}
.sv-bars { display: flex; align-items: flex-end; gap: 1px; height: 7px; }
.sv-bars i { width: 2px; background: #fff; }
.sv-bars i:nth-child(1) { height: 2px; } .sv-bars i:nth-child(2) { height: 4px; } .sv-bars i:nth-child(3) { height: 5px; } .sv-bars i:nth-child(4) { height: 7px; }
.sv-batt { position: relative; width: 14px; height: 7px; border: 1px solid #fff; }
.sv-batt::before { content: ""; position: absolute; inset: 1px 3px 1px 1px; background: #7cf27c; }
.sv-batt::after { content: ""; position: absolute; right: -3px; top: 1px; width: 2px; height: 3px; background: #fff; }
.sv-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: rgba(255,255,255,.07); clip-path: polygon(0 0, 100% 0, 100% 18%, 0 46%); }
.sv-phone-bottom { height: 46px; display: grid; place-items: center; }
.sv-home { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #2e2e2e; background: #111; }
.sv-home::after { content: ""; display: block; width: 9px; height: 9px; margin: 8px auto 0; border: 1px solid #5a5a5a; border-radius: 2px; }

/* Sections */
.sv-sec { padding: 30px 32px; scroll-margin-top: 44px; }
.sv-alt { background: var(--sv-face); border-top: 1px solid var(--sv-line); border-bottom: 1px solid var(--sv-line); }
.sv-sec h2 { margin: 0 0 4px; color: var(--sv-navy); font: 700 20px Tahoma, Verdana, sans-serif; }
.sv-sub { margin: 0 0 18px; color: #555; }
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.sv-card { padding: 14px; border: 1px solid var(--sv-line); background: #fff; }
.sv-card:hover { border-color: var(--sv-blue); }
.sv-num { display: inline-block; margin-bottom: 8px; padding: 1px 6px; background: var(--sv-navy); color: #fff; font: 700 11px Tahoma, sans-serif; }
.sv-card h3 { margin: 0 0 4px; color: var(--sv-navy); font: 700 14px Tahoma, Verdana, sans-serif; }
.sv-card p { margin: 0 0 10px; color: #444; }
.sv-link { color: #0b4fd6; font-weight: 700; }
.sv-link:hover { color: var(--sv-orange); }

.sv-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: st; }
.sv-steps li { position: relative; counter-increment: st; }
.sv-steps li::before {
  content: counter(st); position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px;
  border: 1px solid #7a3d00; background: var(--sv-orange); color: #000; font: 700 13px Tahoma, sans-serif;
}
.sv-steps li::after { content: ""; position: absolute; top: 14px; left: 36px; right: -8px; height: 1px; background: var(--sv-line); }
.sv-steps li:last-child::after { display: none; }
.sv-steps b { display: block; margin-bottom: 2px; color: var(--sv-navy); }
.sv-steps span { color: #555; }

/* Quote box: a plain XP dialog face */
.sv-quote { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; padding: 22px; border: 1px solid var(--sv-line); background: var(--sv-face); }
.sv .sv-quote-head h2 { font-size: 22px; }
.sv-quote-head p { color: #444; }
.sv-check { display: flex; align-items: center; gap: 6px; margin: 2px 0 12px; }
.sv-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 32px; background: var(--sv-navy); color: #c9d4f2; font-size: 11px; }
.sv-foot a { color: #ffb347; }

/* narrow window or phone */
@container (max-width: 640px) {
  .sv-hero { grid-template-columns: 1fr; padding: 28px 18px 32px; }
  .sv-phone { width: 140px; }
  .sv-sec { padding: 24px 18px; }
  .sv-steps { grid-template-columns: 1fr 1fr; }
  .sv-steps li::after { display: none; }
  .sv-quote { grid-template-columns: 1fr; padding: 16px; }
  .sv-quote .row2 { grid-template-columns: 1fr; }
  .sv-top { padding: 8px 14px; }
  .sv-top nav a:not(.sv-pill) { display: none; }
  .sv-foot { padding: 12px 18px; }
}
.field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 9px; }
.field label { font-size: 11px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 4px 5px; border: 1px solid #7f9db9; border-radius: 0; background: #fff; font: 12px var(--ui-font); color: #000;
}
.field textarea { min-height: 70px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 1px solid #316ac5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ------------------------------ Consultation: messenger conversation ------------------------------ */
.msgr { display: flex; flex-direction: column; height: 100%; background: linear-gradient(180deg, #e3ecfb, #f7f9fe); font-size: 12px; }
.msgr-bar { display: flex; flex-wrap: wrap; gap: 12px; padding: 5px 10px; border-bottom: 1px solid #b8cbe8; background: linear-gradient(180deg, #fff, #dfe8f8); color: #1c3f86; font-size: 11px; }
.msgr-to { padding: 5px 10px; border-bottom: 1px solid #b8cbe8; background: #fff; font-size: 11px; color: #333; }
.status { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: #2c8a2c; font-weight: 700; }
.status i.online { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #b6ff9a, #2fbf2f 60%, #1b8a1b); border: 1px solid #157015; }
.msgr-main { flex: 1 1 auto; min-height: 0; display: flex; gap: 8px; padding: 8px; }
.msgr-log { flex: 1 1 auto; min-width: 0; overflow: auto; padding: 8px 10px; border: 1px solid #9fb6dc; background: #fff; }
.msg { margin: 0 0 10px; animation: msgIn .2s ease-out; }
.msg small { display: block; color: #666; font-size: 11px; }
.msg p { margin: 2px 0 0 10px; padding: 6px 9px; border-radius: 8px; display: inline-block; max-width: 92%; }
.msg-him p { background: #eef3ff; border: 1px solid #c9d8f5; color: #0b2e7a; }
.msg-you p { background: #fff6e0; border: 1px solid #f3d79b; color: #4a3200; }
@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.msgr-pics { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.msgr-pics .avatar { width: 84px; height: 84px; border: 1px solid #7b93c2; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.you-pic { display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid #7b93c2; border-radius: 4px; background: linear-gradient(180deg, #fff, #dfe8f8); }
.you-pic svg { width: 48px; height: 48px; }
.msgr-reply { padding: 0 8px 8px; }
.msgr-options { display: flex; flex-direction: column; gap: 6px; min-height: 30px; }
.chip { padding: 7px 10px; border: 1px solid #7b93c2; border-radius: 4px; background: linear-gradient(180deg, #fff, #e5edfb); color: #0b2e7a; text-align: left; font-size: 12px; }
.chip:hover { border-color: #e5a01a; background: linear-gradient(180deg, #fffaf0, #ffe9b8); }
.dm-btn { padding: 7px 10px; }
.msgr-status { min-height: 20px; padding: 2px 10px 3px; border-top: 1px solid #b8cbe8; background: #eef3fb; color: #555; font-size: 11px; font-style: italic; }

/* ------------------------------ Ctrl + Z game: classic grey Windows game ------------------------------ */
.cz { display: flex; flex-direction: column; height: 100%; background: #c0c0c0; font: 11px Tahoma, "MS Sans Serif", sans-serif; color: #000; }
.cz-menu { display: flex; gap: 2px; padding: 2px 4px; border-bottom: 1px solid #808080; background: var(--face); }
.cz-menu button { padding: 2px 8px; border: 1px solid transparent; background: none; }
.cz-menu button:hover { border-color: #fff #808080 #808080 #fff; }
.cz-panel {
  display: flex; align-items: center; gap: 10px; margin: 6px 6px 0; padding: 5px 8px;
  border: 2px solid; border-color: #808080 #fff #fff #808080;
}
.cz-lcd { padding: 1px 4px; border: 1px solid; border-color: #808080 #fff #fff #808080; background: #000; }
.cz-lcd span { font: 700 22px/1 "Courier New", "Lucida Console", monospace; color: #ff2a1a; letter-spacing: 1px; }
.cz-lcd.small span { font-size: 14px; color: #ffb000; }
.cz-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cz-level { max-width: 100%; text-align: center; font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-bar { position: relative; width: min(220px, 100%); height: 12px; padding: 1px; border: 1px solid; border-color: #808080 #fff #fff #808080; background: #fff; }
.cz-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #0a246a 0 7px, transparent 7px 9px); transition: width .3s; }
.cz-bar.is-full i { background: repeating-linear-gradient(90deg, #138a13 0 7px, transparent 7px 9px); }
.cz-lives { display: flex; gap: 4px; }
.cz-lives i { width: 11px; height: 11px; transform: rotate(45deg); border: 1px solid #555; background: #9a9a9a; }
.cz-lives i.on { background: #f2c94c; border-color: #7a5a08; }
.cz-stage {
  position: relative; flex: 1 1 auto; min-height: 0; margin: 6px; overflow: hidden;
  border: 2px solid; border-color: #808080 #fff #fff #808080; background: #0f1630;
}
.cz-stage canvas { position: absolute; left: 0; top: 0; display: block; cursor: crosshair; touch-action: none; }
.cz-status { padding: 2px 8px 4px; color: #333; font-size: 10px; text-align: center; }
.cz-dialog {
  position: absolute; left: 50%; top: 50%; width: min(330px, 90%); transform: translate(-50%, -50%);
  border: 2px solid; border-color: #fff #404040 #404040 #fff; background: #c0c0c0; box-shadow: 2px 2px 0 #000;
}
.cz-dlg-title { padding: 3px 6px; background: #000080; color: #fff; font-weight: 700; }
.cz-dlg-body { padding: 10px 12px 4px; font-size: 12px; line-height: 1.45; }
.cz-dlg-body p { margin: 0 0 8px; }
.cz-dlg-body kbd { padding: 0 4px; border: 1px solid; border-color: #fff #808080 #808080 #fff; background: #d4d0c8; font: 700 11px Tahoma, sans-serif; }
.cz-keys { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.cz-keys i { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 11px; }
.cz-keys i::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--c); border: 1px solid #000; }
.cz-dlg-btns { display: flex; justify-content: center; gap: 8px; padding: 4px 12px 12px; }
.cz-btn { min-width: 84px; padding: 4px 10px; border: 2px solid; border-color: #fff #404040 #404040 #fff; background: #c0c0c0; }
.cz-btn:active { border-color: #404040 #fff #fff #404040; }
.cz-btn.primary { outline: 1px solid #000; outline-offset: -5px; }
/* ------------------------------ Recycle bin ------------------------------ */
.explorer { display: flex; height: 100%; background: #fff; }
.ex-side { flex: 0 0 150px; padding: 10px; background: linear-gradient(180deg, #7ba2e7, #6375d6); }
.ex-side div { border-radius: 4px 4px 0 0; overflow: hidden; background: #d6dff7; font-size: 11px; }
.ex-side b { display: block; padding: 4px 8px; background: linear-gradient(90deg, #fff, #c6d3f7); color: #215dc6; }
.ex-side p { margin: 0; padding: 6px 8px; color: #333; }
.ex-files { flex: 1 1 auto; padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; align-content: start; }
.file { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 11px; word-break: break-all; }
.file i { width: 34px; height: 40px; border: 1px solid #8a8a8a; border-radius: 2px 8px 2px 2px; background: linear-gradient(180deg, #fff, #e9e9e9); position: relative; }
.file i::after { content: attr(data-ext); position: absolute; left: 2px; right: 2px; bottom: 4px; font: 700 8px var(--ui-font); color: #fff; background: #d9361a; border-radius: 1px; font-style: normal; }

/* ------------------------------ Dialogs & shutdown ------------------------------ */
.overlay { position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center; padding: 16px; }
#shutdown-dialog { background: rgba(0,0,0,.45); backdrop-filter: grayscale(1); -webkit-backdrop-filter: grayscale(1); }
#alert { background: rgba(0,0,0,.15); }
.dialog { position: relative; width: min(460px, 100%); min-height: 0; }
.dialog .window-body { padding: 14px; }
.alert-msg { margin-bottom: 14px; }
.alert-msg pre { max-height: 40vh; overflow: auto; margin: 8px 0 0; padding: 8px; border: 1px solid #7f9db9; background: #fff; white-space: pre-wrap; font: 11px var(--ui-font); }
.alert-actions { display: flex; justify-content: flex-end; gap: 8px; }
.shutdown-box { width: min(320px, 100%); border-radius: 6px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.5); color: #fff; }
.sd-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--navy); font: 400 17px var(--title-font); }
.sd-body { display: flex; justify-content: space-around; padding: 22px 10px; background: linear-gradient(180deg, #7f9df0, #5a7edc); }
.sd-body button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: #fff; font-size: 11px; }
.sd-body button:hover { text-decoration: underline; }
.sd-ico { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #fff; border-radius: 5px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.sd-ico svg { width: 20px; height: 20px; }
.sd-ico.standby { background: linear-gradient(180deg, #ffd56a, #e0a020); }
.sd-ico.off { background: linear-gradient(180deg, #f08a5d, #c8381a); }
.sd-ico.restart { background: linear-gradient(180deg, #8ee07a, #2f9a20); }
.sd-foot { display: flex; justify-content: flex-end; padding: 8px 12px; background: var(--navy); }
.safe-screen {
  position: fixed; inset: 0; z-index: 30000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #000; color: #f39a33; cursor: pointer; text-align: center; padding: 16px;
}
.safe-screen small { color: #777; }


/* ------------------------------ Phone ------------------------------ */
@media (max-width: 700px) {
  .xp-top { height: 8vh; min-height: 40px; }
  .xp-bottom { height: auto; min-height: 64px; padding: 10px 16px; }
  .bottom-note { display: none; }
  .xp-mid { flex-direction: column; justify-content: center; gap: 0; padding: 16px; }
  .login-left { flex: 0 0 auto; align-items: center; padding: 0; text-align: center; }
  .brand-word { font-size: 52px; }
  .brand-text { align-items: center; }
  .user-tile .avatar { width: 64px; height: 64px; }
  .login-hint { margin-top: 14px; }
  .login-divider { flex: 0 0 auto; width: 80%; height: 1px; margin: 26px 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75) 20%, rgba(255,255,255,.75) 80%, rgba(255,255,255,0)); }
  .login-right { flex: 0 0 auto; padding: 0; width: 100%; display: flex; justify-content: center; }
  .user-tile { width: auto; max-width: 100%; border-radius: 8px; background: rgba(0,48,156,.55); }
  .welcome-word { margin: 0; }

  .icons { left: 0; right: 0; top: 12px; bottom: auto; flex-direction: row; justify-content: space-around; padding: 0 8px; }
  .icons li { margin: 0 0 12px; width: 25%; display: flex; justify-content: center; }
  .icons li.icon-bin { position: fixed; right: 4px; bottom: calc(var(--taskbar-h) + 8px); width: auto; }
  .icon { width: 80px; }
  .icon svg { width: 48px; height: 48px; }
  .icon span { font-size: 12px; -webkit-font-smoothing: antialiased; }

  .window, .window.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; border-width: 0; }
  .window .title-bar { border-radius: 0; margin: 0; height: 36px; }
  .tb { width: 28px; height: 28px; }
  .tb.max, .resize-grip { display: none; }
  .tb.min::before { left: 7px; bottom: 6px; width: 10px; }
  .tb.close::before, .tb.close::after { left: 12px; top: 5px; height: 16px; }

  .task-btn { width: 38px; justify-content: center; padding: 0; }
  .task-btn span { display: none; }
  .start-menu { width: 100%; border-radius: 8px 8px 0 0; }
  .sm-body { flex-direction: column; }
  .sm-right { border-left: 0; border-top: 1px solid #95bdee; }
  .msn-toast { right: 8px; }

  .pf-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ig-viewer { padding: 0; }
  .igv-box { flex-direction: column; width: 100%; height: 100%; }
  .igv-side { flex: 0 0 auto; border-left: 0; }
  .igv-cap { max-height: 70px; }
  .igv-x { top: 4px; right: 6px; z-index: 2; color: #fff; text-shadow: 0 1px 3px #000; }
  .igv-nav.prev { left: 6px; }
  .igv-nav.next { right: 6px; }
  .row2 { grid-template-columns: 1fr; }
  .msgr-pics, .msgr-bar { display: none; }
  .ex-side { display: none; }
  .menu-bar { display: none; }
  .cz-status { display: none; }
  .cz-panel { gap: 6px; padding: 4px 6px; }
  .cz-lcd.small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}