/* =====================================================================
   NASSASSIN — Windows Vista Aero desktop
   Glass only on chrome (frames, taskbar, sidebar). Client areas are flat.
   ===================================================================== */
:root {
  --ui: "Segoe UI", "Segoe UI Web", Tahoma, "Open Sans", Arial, sans-serif;
  --aero: 24, 58, 96;          /* glass tint (Vista "default" blue) */
  --aero-a: .42;
  --tb-h: 40px;
  --sb-w: 228px;
  --client-border: #6f849b;
  --lv-hover: #e8f4fd; --lv-hover-b: #b8d6fb; --lv-sel: #cce8ff; --lv-sel-b: #84acdd;
  --link: #1e3287;
  --gb-border: #d5dfe5;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 12px/1.35 var(--ui); color: #000; background: #10324f; overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
img { image-rendering: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- wallpaper & bubbles ---------- */
.wall { position: fixed; inset: 0; background: #10324f center / cover no-repeat; transition: opacity 2.5s ease; opacity: 0; }
.wall.on { opacity: 1; }
.bubbles { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.bubbles img { position: absolute; bottom: -260px; opacity: .85; will-change: transform; animation: bubble linear infinite; }
@keyframes bubble {
  0% { transform: translate(0, 0) scale(var(--s, 1)); }
  25% { transform: translate(var(--dx, 30px), -30vh) scale(var(--s, 1)); }
  50% { transform: translate(0, -60vh) scale(var(--s, 1)); }
  75% { transform: translate(calc(var(--dx, 30px) * -1), -90vh) scale(var(--s, 1)); }
  100% { transform: translate(0, -130vh) scale(var(--s, 1)); }
}

.screen { position: fixed; inset: 0; }
.desktop { position: absolute; left: 0; top: 0; right: var(--sb-w); bottom: var(--tb-h); }

/* ---------- desktop icons ---------- */
.desk-icons { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.dicon {
  width: 84px; padding: 4px 2px 5px; border: 1px solid transparent; border-radius: 3px; background: none; cursor: default;
  display: flex; flex-direction: column; align-items: center; gap: 3px; color: #fff; text-align: center;
}
.dicon img { width: 48px; height: 48px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.dicon span { font-size: 12px; line-height: 1.2; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.dicon:hover { background: rgba(170, 210, 255, .22); border-color: rgba(190, 225, 255, .55); }
.dicon:focus-visible, .dicon.sel { background: rgba(120, 175, 245, .38); border-color: rgba(190, 225, 255, .8); outline: none; }

/* =====================================================================
   WINDOW (Aero glass frame)
   ===================================================================== */
.win {
  position: absolute; display: flex; flex-direction: column; min-width: 300px; min-height: 160px;
  padding: 0 7px 7px; border-radius: 7px 7px 5px 5px;
  border: 1px solid rgba(0, 0, 0, .72);
  background-color: rgba(var(--aero), var(--aero-a));
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.34) 0, rgba(255,255,255,.1) 30px, rgba(255,255,255,0) 31px),
    repeating-linear-gradient(118deg, rgba(255,255,255,0) 0 44px, rgba(255,255,255,.07) 44px 52px, rgba(255,255,255,0) 52px 70px, rgba(255,255,255,.045) 70px 98px, rgba(255,255,255,0) 98px 150px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42), 0 10px 34px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.35);
  backdrop-filter: blur(9px) saturate(150%); -webkit-backdrop-filter: blur(9px) saturate(150%);
  z-index: 10; transform-origin: 50% 100%;
}
.win.inactive { --aero-a: var(--aero-ia, .28); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 6px 22px rgba(0,0,0,.4); }
.win.max { border-radius: 0; }
.win.opening { animation: win-open .22s cubic-bezier(.2,.8,.3,1); }
.win.closing { animation: win-close .18s ease-in forwards; }
@keyframes win-open { from { opacity: 0; transform: scale(.92); } }
@keyframes win-close { to { opacity: 0; transform: scale(.92); } }
.win[hidden] { display: none; }

.win-title { height: 30px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 0 0 1px; cursor: default; user-select: none; touch-action: none; }
.win-title.notext { height: 22px; }
.win-ico { width: 16px; height: 16px; }
.win-title h2 {
  margin: 0; font: 400 12.5px var(--ui); color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0;
  text-shadow: 0 0 6px #fff, 0 0 10px #fff, 0 0 14px rgba(255,255,255,.9), 0 0 2px #fff;
}
.win.inactive .win-title h2 { opacity: .8; }

/* caption buttons */
.caption { display: flex; align-self: flex-start; margin-left: auto; margin-top: -1px; border: 1px solid rgba(0,0,0,.62); border-top: 0; border-radius: 0 0 5px 5px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.45), inset 0 0 0 1px rgba(255,255,255,.35); }
.cb { width: 27px; height: 19px; border: 0; padding: 0; position: relative; cursor: default;
  background: linear-gradient(180deg, rgba(255,255,255,.42) 0, rgba(255,255,255,.18) 48%, rgba(0,0,0,.06) 50%, rgba(255,255,255,.22) 100%);
  border-right: 1px solid rgba(0,0,0,.45); }
.cb::after { content: ""; position: absolute; inset: 0; margin: auto; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px rgba(0,0,0,.6)); }
.cb-min::after { width: 9px; height: 3px; top: 7px; background: #fff; }
.cb-max::after { width: 9px; height: 7px; border: 2px solid #fff; border-top-width: 3px; }
.win.max .cb-max::after { width: 7px; height: 6px; box-shadow: 2px -2px 0 -0px rgba(255,255,255,.95); }
.cb-close { width: 46px; border-right: 0; background: linear-gradient(180deg, #e9a895 0, #d88066 46%, #c4421f 50%, #d76b48 100%); }
.cb-close::after { width: 12px; height: 12px; background:
  linear-gradient(45deg, transparent 42%, #fff 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, #fff 42% 58%, transparent 58%); }
.cb:hover { background: linear-gradient(180deg, #c8e9ff 0, #7fc4f5 48%, #2f8fd8 50%, #79d4ff 100%); box-shadow: 0 0 9px #9cf; }
.cb-close:hover { background: linear-gradient(180deg, #ffb8a0 0, #f4775a 46%, #e23b0e 50%, #ff8a52 100%); box-shadow: 0 0 10px #ff9a6a; }
.cb:active { filter: brightness(.85); }
.win.inactive .cb:not(:hover) { background: rgba(255,255,255,.12); }
.win.inactive .cb-close:not(:hover) { background: rgba(255,255,255,.12); }

/* client area: flat */
.win-client { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--client-border); box-shadow: 0 0 0 1px rgba(255,255,255,.35); overflow: hidden; }
.grip { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; touch-action: none; }

/* ---------- explorer chrome (in the glass) ---------- */
.ex-nav { display: flex; align-items: center; gap: 4px; height: 34px; flex: none; }
.navbtn { width: 26px; height: 26px; border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle at 50% 30%, #d8ecff 0, #5aa1e0 45%, #1c4f8f 100%); border: 1px solid #0f2e52; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.navbtn.fwd { width: 22px; height: 22px; opacity: .55; margin-left: -4px; }
.navbtn::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border: 5px solid transparent; border-right: 7px solid #fff; transform: translateX(-3px); filter: drop-shadow(0 0 1px #0a2a50); }
.navbtn.fwd::after { border-right: 0; border-left: 6px solid #fff; transform: translateX(2px); }
.addr { flex: 1; min-width: 0; height: 24px; display: flex; align-items: center; gap: 6px; padding: 0 6px; background: rgba(255,255,255,.92); border: 1px solid #7b8ea5; border-radius: 2px; box-shadow: inset 0 1px 0 rgba(0,0,0,.08); white-space: nowrap; overflow: hidden; }
.addr span { overflow: hidden; text-overflow: ellipsis; } .addr b { font-weight: 400; }
.search { width: 180px; height: 24px; display: flex; align-items: center; padding: 0 8px; background: rgba(255,255,255,.92); border: 1px solid #7b8ea5; border-radius: 2px; color: #8a8a8a; font-style: italic; flex: none; }

.cmdbar { height: 30px; flex: none; display: flex; align-items: center; gap: 2px; padding: 0 6px; color: #fff; white-space: nowrap; overflow: hidden;
  background: linear-gradient(180deg, #4f7fae 0, #2b5d8f 50%, #164777 51%, #1f5182 100%); border-bottom: 1px solid #0d335a; }
.cmdbar span { padding: 3px 8px; border: 1px solid transparent; border-radius: 3px; text-shadow: 0 1px 1px rgba(0,0,0,.4); cursor: default; }
.cmdbar span:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.14); }

.ex-body { flex: 1; display: flex; min-height: 0; }
.ex-side { width: 168px; flex: none; background: #f1f5fb; border-right: 1px solid #d5dfe5; padding: 10px 8px; overflow: auto; }
.ex-side h3 { margin: 0 0 6px; font: 400 12px var(--ui); color: var(--link); }
.ex-side ul { list-style: none; margin: 0; padding: 0; }
.ex-side a { display: flex; align-items: center; gap: 6px; padding: 3px 6px; color: #000; text-decoration: none; border: 1px solid transparent; border-radius: 3px; }
.ex-side a img { width: 16px; height: 16px; }
.ex-side a:hover { background: var(--lv-hover); border-color: var(--lv-hover-b); }
.ex-main { flex: 1; min-width: 0; overflow: auto; padding: 8px 14px 14px; }
.ex-main.pad { padding: 8px 14px 16px; }
.ex-group { margin: 10px 0 8px; font: 400 13px var(--ui); color: var(--link); display: flex; align-items: center; gap: 8px; }
.ex-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #a2b9d3, rgba(162,185,211,0)); }
.ex-group span { color: #6d6d6d; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; }

/* drive tile */
.drive { display: grid; grid-template-columns: 52px 1fr; gap: 2px 10px; align-items: center; padding: 6px; border: 1px solid transparent; border-radius: 3px; max-width: 520px; }
.drive:hover { background: linear-gradient(180deg, #fafbfd, #ebf3fd); border-color: var(--lv-hover-b); }
.drive-ico { grid-row: span 3; width: 48px; height: 48px; }
.drive-name { font-size: 12.5px; }
.drive-name small { color: #6d6d6d; font-size: 12px; }
.dbar { height: 14px; border: 1px solid #bcbcbc; background: linear-gradient(#e6e6e6, #f5f5f5); position: relative; }
.dbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(180deg, #8fc7f6 0, #3d95e2 50%, #2a82d6 51%, #56a8ef 100%); }
.dbar.full i { background: linear-gradient(180deg, #f4a3a3 0, #e04a4a 50%, #cf2b2b 51%, #e86262 100%); }
.drive-sub { color: #6d6d6d; font-size: 12px; }
.ok-t { color: #0b7a1c; } .warn-t { color: #b05a00; } .bad-t { color: #c4161c; }

/* details pane */
.details { flex: none; display: flex; gap: 12px; align-items: center; padding: 8px 14px; border-top: 1px solid #c6d3e2;
  background: linear-gradient(180deg, #f5f8fc, #dfe9f5); }
.details .big { font-size: 15px; font-weight: 400; display: block; margin-bottom: 2px; }
.details dl { margin: 0; display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 1px 8px; }
.details dt { color: #5a6b80; } .details dd { margin: 0; }

/* services (large icons) */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px; }
.svc { display: grid; grid-template-columns: 48px 1fr; gap: 0 10px; align-items: center; padding: 7px 8px; border: 1px solid transparent; border-radius: 3px; color: #000; text-decoration: none; }
.svc img { width: 48px; height: 48px; grid-row: span 3; }
.svc:hover, .svc:focus-visible { background: linear-gradient(180deg, #fafbfd, #ebf3fd); border-color: var(--lv-hover-b); outline: none; }
.svc:active { background: linear-gradient(180deg, #dcebfc, #c1dcfc); border-color: var(--lv-sel-b); }
.svc-name { font-size: 13px; }
.svc-desc { color: #6d6d6d; }
.svc-state { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.svc-grid.small .svc { grid-template-columns: 32px 1fr; }
.svc-grid.small .svc img { width: 32px; height: 32px; }
.svc.down img { filter: grayscale(1) opacity(.6); }
.led { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; border: 1px solid rgba(0,0,0,.35);
  background: radial-gradient(circle at 35% 30%, #fff 0 15%, var(--lc, #2ecc40) 55%); }
.led.ok { --lc: #22c33a; } .led.warn { --lc: #f5a300; } .led.bad { --lc: #e0262c; } .led.off { --lc: #a7a7a7; }

/* =====================================================================
   TASK MANAGER (classic client)
   ===================================================================== */
.tm { background: #f0f0f0; }
.menubar { display: flex; gap: 2px; padding: 2px 4px; flex: none; background: #f0f0f0; }
.menubar span { padding: 2px 7px; border: 1px solid transparent; border-radius: 3px; cursor: default; }
.menubar span:hover { background: linear-gradient(#fafbfd, #ebf3fd); border-color: var(--lv-hover-b); }
.tabs { display: flex; padding: 4px 8px 0; flex: none; position: relative; z-index: 1; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 3px 9px 4px; margin-right: -1px; border: 1px solid #898c95; border-bottom: 0; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #f2f2f2, #e3e3e3 50%, #d9d9d9 51%, #ebebeb); cursor: default; white-space: nowrap; margin-top: 2px; }
.tabs button:hover { background: linear-gradient(180deg, #eaf6fd, #d9f0fc 50%, #bee6fd 51%, #a7d9f5); border-color: #3c7fb1; }
.tabs button[aria-selected="true"] { background: #fcfcfc; margin-top: 0; padding-bottom: 6px; margin-bottom: -1px; border-color: #898c95; position: relative; z-index: 2; }
.tabpage { flex: 1; min-height: 0; margin: 0 8px 6px; border: 1px solid #898c95; background: #fcfcfc; padding: 8px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.tabpage[hidden] { display: none; }

.perf { display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto auto 1fr; gap: 6px 8px; }
.gb { margin: 0; border: 1px solid var(--gb-border); border-radius: 3px; padding: 4px 8px 8px; min-width: 0; }
.gb legend { padding: 0 3px; color: #000; }
.meter-box { display: flex; flex-direction: column; align-items: center; }
.meter { display: block; background: #000; width: 68px; height: 84px; border: 1px solid #7a7a7a; }
.meter-txt { background: #000; color: #00ff00; width: 68px; text-align: center; font: 11px Tahoma, var(--ui); padding: 1px 0 3px; border: 1px solid #7a7a7a; border-top: 0; white-space: nowrap; }
.hist-row { display: flex; gap: 6px; height: 104px; }
.hist { display: block; flex: 1; min-width: 0; height: 100%; background: #000; border: 1px solid #7a7a7a; }
.perf-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.perf-col { display: flex; flex-direction: column; gap: 6px; }
.kv dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; }
.kv dt { white-space: nowrap; } .kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; min-width: 75px; height: 23px; padding: 0 10px; border: 1px solid #707070; border-radius: 3px; cursor: default;
  background: linear-gradient(180deg, #f2f2f2 0, #ebebeb 50%, #dddddd 51%, #cfcfcf 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.btn:hover:not(:disabled) { border-color: #3c7fb1; background: linear-gradient(180deg, #eaf6fd 0, #d9f0fc 50%, #bee6fd 51%, #a7d9f5 100%); }
.btn:active:not(:disabled) { border-color: #2c628b; background: linear-gradient(180deg, #e5f4fc 0, #c4e5f6 50%, #98d1ef 51%, #68b3db 100%); }
.btn:disabled { color: #838383; border-color: #adb2b5; background: #f4f4f4; box-shadow: none; }
.btn-res { margin-top: 8px; width: 100%; justify-content: center; }
.tm-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; flex: none; }
.chk { margin-right: auto; display: flex; align-items: center; gap: 5px; color: #555; }
.statusbar { flex: none; display: flex; border-top: 1px solid #d0d0d0; background: #f0f0f0; padding: 2px 2px 3px; }
.statusbar span { flex: 1; padding: 1px 6px; border-right: 1px solid #cfcfcf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statusbar span:last-child { border: 0; }

/* list view */
.lv-wrap { flex: 1; min-height: 80px; overflow: auto; border: 1px solid #828790; background: #fff; }
.lv { width: 100%; border-collapse: collapse; }
.lv th { position: sticky; top: 0; z-index: 1; text-align: left; font-weight: 400; padding: 3px 8px; white-space: nowrap; color: #4c607a;
  background: linear-gradient(#fff, #fff 50%, #f7f8fa 51%, #f1f2f4); border-right: 1px solid #e3e6ea; border-bottom: 1px solid #d5d5d5; }
.lv td { padding: 2px 8px; white-space: nowrap; height: 21px; border: 1px solid transparent; }
.lv tbody tr:hover td { background: var(--lv-hover); border-top-color: var(--lv-hover-b); border-bottom-color: var(--lv-hover-b); }
.lv .r { text-align: right; font-variant-numeric: tabular-nums; }
.lv .muted { color: #6d6d6d; }
.lv td.name { display: flex; align-items: center; gap: 6px; }
.lv td.name img { width: 16px; height: 16px; }
.net-graph { position: relative; height: 150px; display: flex; }
.net-scale { position: absolute; right: 6px; top: 4px; color: #00ff00; font: 10px Tahoma, var(--ui); text-align: right; }
.net-legend { display: flex; gap: 14px; margin-top: 5px; }
.net-legend i { display: inline-block; width: 12px; height: 3px; margin-right: 5px; vertical-align: middle; border: 1px solid #555; }

/* =====================================================================
   SIDEBAR + GADGETS
   ===================================================================== */
.sidebar { position: absolute; right: 0; top: 0; bottom: var(--tb-h); width: var(--sb-w); padding: 12px 14px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,.22) 40%, rgba(0,0,0,.4) 100%);
  display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 5; }
.gadget { width: 100%; color: #fff; position: relative; user-select: none; }
.g-caption { text-align: center; color: #fff; text-shadow: 0 1px 2px #000, 0 0 4px #000; margin-top: 2px; text-transform: capitalize; }
.g-clock { width: 150px; }
.clock-face { width: 150px; height: 150px; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.clock-brand { font: 600 7px var(--ui); fill: #8693a1; letter-spacing: .12em; text-transform: uppercase; }
#hand-h, #hand-m, #hand-s { transform-origin: 60px 60px; }

.g-cpu svg { width: 100%; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.dial-num { font: 600 13px var(--ui); fill: #9fe0ff; } .dial-num.sm { font-size: 10px; }
#needle-cpu { transform-origin: 72px 62px; transition: transform .8s cubic-bezier(.3,1.4,.5,1); }
#needle-mem { transform-origin: 160px 44px; transition: transform .8s cubic-bezier(.3,1.4,.5,1); }

/* weather gadget */
.g-weather { border-radius: 8px; overflow: hidden; cursor: pointer; border: 1px solid rgba(255,255,255,.55); box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.6);
  background: linear-gradient(180deg, #4ea6e8 0, #2a7fd0 55%, #1c63b2 100%); padding: 8px 10px 9px; }
.g-weather.night { background: linear-gradient(180deg, #2b3f6c 0, #1a2850 60%, #111b3a 100%); }
.g-weather.rain { background: linear-gradient(180deg, #7a8ea6 0, #566b85 60%, #3e5068 100%); }
.gw-top { display: flex; align-items: flex-start; gap: 4px; }
.gw-ico { width: 64px; height: 64px; margin: -6px -4px -4px -6px; flex: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.gw-temp { margin-left: auto; text-align: right; }
.gw-temp b { display: block; font: 300 34px/1 var(--ui); text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.gw-temp span { font-size: 11px; opacity: .9; }
.gw-city { font-weight: 600; font-size: 12.5px; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.gw-desc { font-size: 11.5px; opacity: .92; }
.gw-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 7px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.28); text-align: center; font-size: 11px; }
.gw-days .wi { width: 28px; height: 28px; display: block; margin: 0 auto; }
.gw-days b { font-weight: 600; } .gw-days span { opacity: .75; }
.gw-days .dn { text-transform: capitalize; opacity: .9; }
.g-weather.compact .gw-days, .g-weather.compact .gw-extra { display: none; }
.gw-extra { font-size: 11px; opacity: .9; margin-top: 4px; display: flex; justify-content: space-between; }
#g-weather { width: 100%; display: flex; flex-direction: column; gap: 12px; }

/* media player gadget */
.g-player { border-radius: 10px; padding: 8px; border: 1px solid #000;
  background: linear-gradient(180deg, #3d4650 0, #1b2027 48%, #0b0d10 52%, #1e252d 100%); box-shadow: 0 4px 10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.35); }
.pl-screen { background: #000; border: 1px solid #44505d; border-radius: 3px; padding: 5px 7px 6px; box-shadow: inset 0 0 10px rgba(30,140,255,.25); }
.pl-marquee { overflow: hidden; white-space: nowrap; color: #9fe0ff; font-size: 12px; }
.pl-marquee span { display: inline-block; padding-left: 0; }
.pl-marquee.scroll span { animation: marquee var(--mq, 10s) linear infinite; padding-left: 100%; }
@keyframes marquee { to { transform: translateX(-100%); } }
.pl-artist { color: #6f9bbd; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-time { display: flex; justify-content: space-between; color: #6f9bbd; font: 10px Tahoma, var(--ui); margin-top: 2px; }
.pl-seek { height: 5px; background: #1f2a35; border: 1px solid #33414f; margin-top: 3px; cursor: pointer; position: relative; }
.pl-seek i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(#bfe9ff, #2f9df0); box-shadow: 0 0 4px #3aa8ff; }
.pl-ctrls { display: flex; align-items: center; gap: 4px; margin-top: 7px; }
.pl-b { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #000; padding: 0; display: grid; place-items: center; cursor: default; flex: none;
  background: linear-gradient(180deg, #7b8794 0, #3a434d 50%, #22282f 51%, #46515d 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.pl-b svg { width: 12px; height: 12px; fill: #fff; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.pl-b:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 8px #4cb3ff; }
.pl-play { width: 34px; height: 34px; background: radial-gradient(circle at 50% 30%, #c9f0ff 0, #3c9ae0 45%, #0f4d92 100%); }
.pl-play svg { width: 14px; height: 14px; stroke: none; }
.pl-play .i-pause, .g-player.playing .pl-play .i-play { display: none; }
.g-player.playing .pl-play .i-pause { display: inline; }
.pl-list-b svg { fill: none; }
#pl-vol { flex: 1; min-width: 0; accent-color: #3aa8ff; height: 14px; }
.pl-list { list-style: none; margin: 7px 0 0; padding: 2px; max-height: 190px; overflow: auto; background: #0b0f14; border: 1px solid #33414f; border-radius: 3px; }
.pl-list li { padding: 3px 6px; color: #cfe6f7; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 2px; cursor: default; }
.pl-list li:hover { background: #1d3550; }
.pl-list li.cur { background: #1f5e9e; color: #fff; }

/* =====================================================================
   TASKBAR + START MENU
   ===================================================================== */
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--tb-h); display: flex; align-items: center; z-index: 1000; padding-left: 58px;
  background: linear-gradient(180deg, rgba(255,255,255,.26) 0, rgba(255,255,255,.08) 48%, rgba(0,0,0,.42) 50%, rgba(0,0,0,.62) 100%), rgba(var(--tb-tint, 10, 18, 28), .6);
  border-top: 1px solid rgba(255,255,255,.4); box-shadow: 0 -1px 0 rgba(0,0,0,.6);
  backdrop-filter: blur(8px) saturate(140%); -webkit-backdrop-filter: blur(8px) saturate(140%); }
.orb { position: absolute; left: 4px; bottom: 1px; width: 50px; height: 50px; border-radius: 50%; border: 0; padding: 0; cursor: default;
  background: radial-gradient(circle at 50% 75%, #6fe6ff 0, #1e8fdb 22%, #0a3a7a 48%, #04142c 72%), #04142c;
  box-shadow: 0 0 0 1px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.35), 0 0 6px rgba(0,0,0,.6); }
/* Vista Start orb: waving four-pane flag under a glass dome */
.orb-flag { position: absolute; left: 50%; top: 50%; width: 29px; height: 29px; transform: translate(-50%, -48%); pointer-events: none; user-select: none; z-index: 1; filter: drop-shadow(0 0 3px rgba(255,255,255,.55)) drop-shadow(0 1px 1px rgba(0,0,0,.6)); transition: filter .2s; }
.orb::after { content: ""; position: absolute; z-index: 2; left: 6px; right: 6px; top: 2px; height: 23px; border-radius: 50% 50% 45% 45%; background: linear-gradient(rgba(255,255,255,.62), rgba(255,255,255,.04)); pointer-events: none; }
.orb:hover .orb-flag, .orb[aria-expanded="true"] .orb-flag { filter: drop-shadow(0 0 6px rgba(255,255,255,.95)) drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.sm-signout { display: flex !important; align-items: center; gap: 8px; }
.sm-signout svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px #000); }
.orb:hover, .orb[aria-expanded="true"] { box-shadow: 0 0 0 1px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.45), 0 0 16px rgba(120,210,255,.95); }
.orb:hover { background: radial-gradient(circle at 50% 75%, #a8f3ff 0, #36b0f5 26%, #0d4b98 52%, #061a38 74%), #061a38; }

.quick { display: flex; gap: 2px; padding: 0 6px 0 4px; height: 100%; align-items: center; border-right: 1px solid rgba(0,0,0,.5); box-shadow: 1px 0 0 rgba(255,255,255,.15); }
.qbtn { width: 28px; height: 28px; border-radius: 3px; border: 1px solid transparent; display: grid; place-items: center; text-decoration: none; }
.qbtn img { width: 20px; height: 20px; }
.qbtn:hover { border-color: rgba(255,255,255,.4); background: linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,.08) 50%, rgba(255,255,255,0) 51%, rgba(255,255,255,.12)); }
.tasks { flex: 1; min-width: 0; display: flex; gap: 3px; padding: 0 6px; height: 100%; align-items: center; overflow: hidden; }
.task { height: 30px; flex: 0 1 170px; min-width: 40px; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 3px; color: #fff; cursor: default;
  border: 1px solid rgba(0,0,0,.65); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0, rgba(255,255,255,.06) 50%, rgba(0,0,0,.18) 51%, rgba(255,255,255,.06) 100%); }
.task img { width: 16px; height: 16px; flex: none; }
.task span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 1px #000; }
.task:hover { background: linear-gradient(180deg, rgba(255,255,255,.34) 0, rgba(255,255,255,.12) 50%, rgba(0,0,0,.08) 51%, rgba(255,255,255,.14) 100%); }
.task.active { background: linear-gradient(180deg, rgba(160,210,255,.45) 0, rgba(80,150,220,.3) 50%, rgba(20,70,140,.45) 51%, rgba(70,150,230,.4) 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 0 6px rgba(110,190,255,.5); }
.tray { display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 10px 0 10px; border-left: 1px solid rgba(0,0,0,.5); box-shadow: inset 1px 0 0 rgba(255,255,255,.15); color: #fff; }
.tray-ico { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 3px; background: none; padding: 0; cursor: default; }
.tray-ico:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); }
.tray-ico svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.2; }
#tray-net svg rect { fill: rgba(140,200,255,.5); }
#tray-net.down svg { stroke: #ff8080; } #tray-net.down svg rect { fill: rgba(255,90,90,.5); }
#tray-snd .spk { fill: #fff; } #tray-snd .x { display: none; stroke: #ff7a7a; stroke-width: 1.6; }
#tray-snd[aria-pressed="false"] .w { display: none; } #tray-snd[aria-pressed="false"] .x { display: inline; }
.tray-clock { text-align: center; line-height: 1.1; min-width: 62px; text-shadow: 0 1px 1px #000; }
.tray-clock b { font-weight: 400; display: block; } .tray-clock span { font-size: 11px; opacity: .85; }

.startmenu { position: absolute; left: 0; bottom: var(--tb-h); width: 430px; height: auto; min-height: 470px; max-height: calc(100vh - var(--tb-h) - 10px); z-index: 1001; display: flex; padding: 8px 8px 8px 8px; gap: 0;
  border: 1px solid rgba(0,0,0,.75); border-radius: 7px 7px 0 0; animation: sm-in .15s ease-out;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.05) 40px, rgba(255,255,255,0) 41px), linear-gradient(rgba(0,8,20,.45), rgba(0,8,20,.45)), rgba(var(--aero), .7);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 8px 30px rgba(0,0,0,.6); backdrop-filter: blur(10px) saturate(150%); -webkit-backdrop-filter: blur(10px) saturate(150%); }
.startmenu[hidden] { display: none; }
@keyframes sm-in { from { opacity: 0; transform: translateY(8px); } }
.sm-left { width: 250px; flex: none; background: #fff; border: 1px solid #39577a; border-radius: 3px; display: flex; flex-direction: column; padding: 6px 4px 0; margin-top: 30px; }
.sm-left ul { list-style: none; margin: 0; padding: 0; flex: 1; overflow: auto; }
.sm-left li a, .sm-left li button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 6px; border: 1px solid transparent; border-radius: 3px; background: none; text-align: left; color: #000; text-decoration: none; cursor: default; }
.sm-left li img { width: 32px; height: 32px; flex: none; }
.sm-all li img { width: 16px; height: 16px; }
.sm-left li small { display: block; color: #6d6d6d; }
.sm-left li a:hover, .sm-left li a:focus-visible, .sm-left li button:hover { background: linear-gradient(180deg, #dcebfc, #c1dcfc); border-color: #7da2ce; outline: none; }
.sm-left li.grp { padding: 6px 8px 2px; color: var(--link); }
.sm-allbtn { margin: 4px 0; padding: 5px 8px; text-align: left; border: 1px solid transparent; border-top-color: #d6e0ea; background: none; cursor: default; font-weight: 600; }
.sm-allbtn:hover { background: linear-gradient(180deg, #dcebfc, #c1dcfc); border-color: #7da2ce; border-radius: 3px; }
.sm-search { margin: 0 -4px; padding: 6px 8px; background: linear-gradient(#e7edf4, #d4dfeb); border-top: 1px solid #c3cfdc; }
.sm-search input { width: 100%; height: 24px; border: 1px solid #a5b5c7; padding: 0 6px; font: italic 12px var(--ui); }
.sm-right { flex: 1; display: flex; flex-direction: column; padding: 0 4px 0 10px; color: #fff; }
.sm-pic { width: 56px; height: 56px; margin: -24px auto 8px 6px; padding: 4px; border-radius: 5px; border: 1px solid rgba(0,0,0,.6);
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(200,220,240,.5)); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.sm-pic-in { width: 100%; height: 100%; border-radius: 2px; background: center / cover; border: 1px solid rgba(0,0,0,.4); }
.sm-right ul { list-style: none; margin: 0; padding: 0; }
.sm-right ul { overflow-y: auto; scrollbar-width: none; }
.sm-right li button { width: 100%; text-align: left; padding: 4px 8px; border: 1px solid transparent; border-radius: 3px; background: none; color: #fff; cursor: default; text-shadow: 0 1px 2px #000; }
.sm-right li button b { font-weight: 600; }
.sm-right li button:hover { border-color: rgba(255,255,255,.45); background: linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.06) 50%, rgba(255,255,255,0) 51%, rgba(255,255,255,.12)); }
.sm-sep { height: 1px; margin: 4px 4px; background: rgba(255,255,255,.25); box-shadow: 0 1px 0 rgba(0,0,0,.4); }

.toast { position: fixed; right: calc(var(--sb-w) + 12px); bottom: calc(var(--tb-h) + 10px); z-index: 1002; max-width: 300px; padding: 10px 12px 10px 44px; border: 1px solid #76797c; border-radius: 4px;
  background: linear-gradient(#fff, #e4e5f0) ; box-shadow: 0 4px 14px rgba(0,0,0,.45); animation: sm-in .25s ease-out; }
.toast::before { content: ""; position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; background: url(assets/ico/info.png) center / contain no-repeat; }
.toast.warn::before { background-image: url(assets/ico/warning.png); }
.toast b { display: block; margin-bottom: 2px; }

/* =====================================================================
   RESPONSIVE — phones & small tablets: stacked windows, no dragging
   ===================================================================== */
@media (max-width: 900px) {
  body { overflow: auto; }
  .screen { position: relative; display: flex; flex-direction: column; padding-bottom: calc(var(--tb-h) + 12px + env(safe-area-inset-bottom)); }
  .sidebar { order: -1; }
  .wall, .bubbles { position: fixed; }
  .desktop { position: static; display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 0; }
  .desk-icons { display: none; }
  .sidebar { position: static; width: auto; background: none; flex-direction: row; overflow-x: auto; align-items: flex-start; padding: 10px 10px 2px; gap: 10px; }
  .sidebar > * { flex: 0 0 auto; width: 200px; }
  .sidebar > #g-weather { width: auto; flex-direction: row; }
  #g-weather .g-weather { width: 200px; }
  .g-clock { width: 150px; }
  .win { position: relative !important; left: auto !important; top: auto !important; width: auto !important; height: auto !important; min-width: 0; }
  .win .cb-max, .grip { display: none; }
  .win.collapsed .win-client, .win.collapsed .ex-nav { display: none; }
  .win.collapsed { padding-bottom: 4px; }
  .win-client { min-height: 0; }
  #w-taskmgr .win-client { height: auto; }
  .tabpage { overflow: visible; }
  .lv-wrap { max-height: 360px; }
  .perf { grid-template-columns: 84px 1fr; }
  .perf-bottom { grid-template-columns: 1fr; }
  .ex-side { display: none; }
  .ex-main { overflow: visible; }
  .details dl { grid-template-columns: auto 1fr; }
  .search, .hide-sm { display: none; }
  .taskbar { position: fixed; padding-bottom: env(safe-area-inset-bottom); height: calc(var(--tb-h) + env(safe-area-inset-bottom)); }
  .tasks { display: none; }
  .quick { flex: 1; overflow-x: auto; }
  .startmenu { position: fixed; width: min(410px, 100vw); }
  .sm-left { width: 58%; }
  .toast { right: 10px; left: 10px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .bubbles { display: none; } }
