/* ==========================================================================
   Daniel XP — the second look. Everything XP is scoped to html.theme-xp and
   layered over vista.css, so the Vista look is untouched when XP is off.
   Original artwork only: no Microsoft logos, flag or wallpaper photo.
   ========================================================================== */

/* ---------- Shared by both looks ---------- */
.wp-hills { background: #3a7bd5 url("../assets/wp-hills.svg") center / cover no-repeat; }
.boot-xp, .xp-band, .xp-left, .xp-divider, .xp-note, .sm-head, .sm-foot { display: none; }

/* Logon-screen look switcher */
.theme-switch {
  position: absolute; left: 24px; bottom: 24px; z-index: 2; display: flex; align-items: center; gap: 3px; padding: 3px;
  border-radius: 16px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.22);
}
#login.welcome .theme-switch, #login.welcome .xp-note { display: none; }
.theme-switch .ts-label { font-size: 11px; opacity: .7; padding: 0 6px 0 8px; }
.theme-switch button {
  display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px 0 6px; border-radius: 13px;
  border: 1px solid transparent; background: transparent; color: #fff; font-size: 12px; cursor: pointer;
}
.theme-switch button:hover { background: rgba(255,255,255,.12); }
.theme-switch button.on {
  background: linear-gradient(rgba(255,255,255,.34), rgba(255,255,255,.12) 50%, rgba(255,255,255,.04) 51%, rgba(255,255,255,.18));
  border-color: rgba(255,255,255,.5); box-shadow: 0 0 8px rgba(120,200,255,.35);
}
.theme-switch button:focus-visible { outline: 1px dotted #fff; outline-offset: 1px; }
.ts-sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,.75); flex: none; }
.ts-sw.vista { background: radial-gradient(circle at 50% 30%, #9be7ff, #1a5aa6 60%, #0b3b75); }
.ts-sw.xp { width: 20px; border-radius: 3px 8px 8px 3px; background: linear-gradient(#6fd06a, #2f8a2b); }

/* Personalize: theme cards */
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 6px; }
.theme-opt { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid #cfd9e5; border-radius: 4px; cursor: default; }
.theme-opt:hover { border-color: #9cc4ea; background: #f5faff; }
.theme-opt.on { border-color: #3c7fb1; background: #eaf4fd; box-shadow: inset 0 0 0 1px #9ccff7; }
.theme-opt:focus-visible { outline: 1px dotted #000; }
.theme-opt span b { display: block; font-size: 12.5px; }
.theme-opt span small { color: #666; font-size: 11px; }
.tp { width: 96px; height: 64px; position: relative; overflow: hidden; border: 1px solid #8a9aaa; flex: none; }
.tp-vista { background: #0a4a1f url("../assets/wp-aurora.svg") center / cover; }
.tp-xp { background: url("../assets/wp-hills.svg") center / cover; }
.tp i { position: absolute; display: block; }
.tp-win { left: 16px; top: 8px; width: 54px; height: 38px; background: #fff; }
.tp-vista .tp-win { border: 3px solid rgba(160,200,235,.9); border-top-width: 8px; border-radius: 3px 3px 1px 1px; }
.tp-xp .tp-win { border: 2px solid #0058ee; border-top: 8px solid #0058ee; border-radius: 4px 4px 0 0; }
.tp-win b { position: absolute; right: 1px; top: -7px; width: 6px; height: 5px; background: #d1563a; border-radius: 1px; }
.tp-bar { left: 0; right: 0; bottom: 0; height: 9px; }
.tp-vista .tp-bar { background: rgba(12,18,26,.88); }
.tp-xp .tp-bar { background: linear-gradient(#3d86f0, #245ddb); }
.tp-bar em { position: absolute; left: 2px; top: -2px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #9be7ff, #1a5aa6 60%); }
.tp-xp .tp-bar em { left: 0; top: 0; width: 22px; height: 9px; border-radius: 0 5px 5px 0; background: linear-gradient(#6fd06a, #2f8a2b); }

/* Turn Off Computer dialog (opened from the XP Start menu) */
#turnoff { position: fixed; inset: 0; z-index: 99998; display: grid; place-items: center; background: rgba(0,0,0,.35); backdrop-filter: grayscale(1); -webkit-backdrop-filter: grayscale(1); animation: fadeIn .2s; }
.to-box { width: 330px; max-width: calc(100vw - 24px); border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.to-head { height: 44px; display: flex; align-items: center; padding: 0 16px; color: #fff; font-size: 17px; background: #00309c; }
.to-body { display: flex; justify-content: space-around; padding: 22px 10px 18px; background: linear-gradient(90deg, #5a7edc, #7194ea 50%, #5a7edc); }
.to-body button { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: #fff; font-size: 12px; cursor: pointer; padding: 4px; }
.to-body button svg { width: 36px; height: 36px; padding: 7px; border-radius: 6px; border: 1px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.to-body [data-a="sleep"] svg { background: linear-gradient(#ffd56a, #e0a10e); }
.to-body [data-a="off"] svg { background: linear-gradient(#ff8a63, #d1360f); }
.to-body [data-a="restart"] svg { background: linear-gradient(#7fd96f, #2c9a24); }
.to-body button:hover svg { filter: brightness(1.12); }
.to-body button:focus-visible { outline: 1px dotted #fff; }
.to-foot { background: #00309c; padding: 8px 12px; display: flex; justify-content: flex-end; }

/* ==========================================================================
   XP
   ========================================================================== */
.theme-xp {
  --font: Tahoma, "Segoe UI", Verdana, Selawik, "Open Sans", Arial, sans-serif;
  --taskbar-h: 30px;
  --sel: #316ac5;
  --sel-border: #316ac5;
  --xp-title: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #0066ff 88%, #0066ff 93%, #005bff 95%, #003dd7 96%, #003dd7 100%);
  --xp-title-off: linear-gradient(180deg, #a5bcf0 0%, #7996de 10%, #7a97df 50%, #8ba8ea 90%, #7590d8 100%);
  --xp-face: #ece9d8;
}
.theme-xp body { font-family: var(--font); }

/* ---------- Boot ---------- */
.theme-xp #boot .boot-orb { display: none; }
.theme-xp #boot .boot-xp { display: flex; align-items: center; gap: 12px; color: #fff; }
.bx-mark { width: 64px; height: 64px; flex: none; }
.bx-word { font-family: "Franklin Gothic Medium", "Arial Narrow", Tahoma, sans-serif; font-weight: 700; font-size: 54px; line-height: .95; letter-spacing: -1px; }
.bx-word small { display: block; font-size: 18px; font-weight: 400; letter-spacing: 0; margin-bottom: 2px; font-style: italic; }
.bx-word sup { font-size: 14px; color: #ff8d2a; font-weight: 600; vertical-align: top; margin-left: 4px; letter-spacing: 0; position: relative; top: 4px; }
.theme-xp #boot .boot-bar { margin-top: 70px; width: 160px; height: 18px; border: 2px solid #b2b2b2; border-radius: 5px; background: #000; }
.theme-xp #boot .boot-bar i {
  width: 36px; top: 2px; bottom: 2px; border-radius: 1px;
  background: repeating-linear-gradient(90deg, #3a63ff 0 9px, transparent 9px 12px);
  box-shadow: none; animation-duration: 2s;
}

/* ---------- Logon ---------- */
.theme-xp #login { background: #5a7edc; }
.theme-xp #login::before { background: radial-gradient(circle at 10% 25%, rgba(255,255,255,.38), transparent 32%); }
.theme-xp .xp-band { display: block; position: absolute; left: 0; right: 0; z-index: 1; }
.theme-xp .xp-band.top { top: 0; height: 78px; background: #00309c; }
.theme-xp .xp-band.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, #00309c, #fff 30%, #fff 60%, #5a7edc); }
.theme-xp .xp-band.bottom { bottom: 0; height: 90px; background: linear-gradient(90deg, #003399, #00309c); }
.theme-xp .xp-band.bottom::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: linear-gradient(90deg, #003399, #f99736 35%, #f99736 60%, #003399); }
.theme-xp .xp-left { display: block; position: absolute; right: calc(50% + 30px); top: 50%; transform: translateY(-50%); text-align: right; color: #fff; }
.theme-xp .xp-left .bx-mark { width: 74px; height: 74px; display: inline-block; vertical-align: bottom; margin-right: 6px; }
.theme-xp .xp-left .bx-word { display: inline-block; text-align: left; font-size: 58px; }
.theme-xp .xp-left p { font-size: 19px; margin: 22px 0 0; }
.theme-xp .xp-divider { display: block; position: absolute; left: 50%; top: 19%; bottom: 19%; width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.8) 20%, rgba(255,255,255,.8) 80%, transparent); }
.theme-xp #login .login-tile {
  position: absolute; left: calc(50% + 30px); top: 50%; transform: translateY(-50%);
  display: grid; grid-template-columns: auto auto; column-gap: 14px; row-gap: 3px; align-items: center;
  padding: 9px 46px 9px 9px; border-radius: 8px 0 0 8px; border: 0;
  background: linear-gradient(90deg, #00309c 30%, rgba(0,48,156,0));
}
.theme-xp #login .login-tile:hover { background: linear-gradient(90deg, #0b3fb5 30%, rgba(11,63,181,0)); }
.theme-xp #login .login-tile:focus-visible { outline: 1px dotted #fff; }
.theme-xp #login .user-frame { grid-row: 1 / 3; width: 66px; height: 66px; padding: 0; border-radius: 5px; border: 2px solid #fff; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.theme-xp #login .login-tile:hover .user-frame { border-color: #ffcc5c; }
.theme-xp .user-frame::after { display: none; }
.theme-xp .user-frame img { border: 0; border-radius: 3px; }
.theme-xp #login .login-name { font-size: 21px; font-weight: 400; align-self: end; text-shadow: none; }
.theme-xp #login .login-hint { font-size: 12px; opacity: .85; }
.theme-xp #login .login-arrow { width: 22px; height: 22px; border-radius: 3px; font-size: 12px; background: linear-gradient(#72d36b, #2f8a2b); border: 1px solid #fff; box-shadow: none; }
.theme-xp #login .login-brand { display: none; }
.theme-xp #login .welcome-text { font-style: italic; font-weight: 700; font-size: 46px; z-index: 2; }
.theme-xp #login .spinner { display: none; }
.theme-xp .theme-switch { left: 28px; bottom: 26px; border-radius: 4px; background: transparent; border: 0; }
.theme-xp .theme-switch .ts-label { opacity: .85; }
.theme-xp .theme-switch button { border-radius: 3px; height: 28px; }
.theme-xp .theme-switch button.on { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.65); box-shadow: none; }
.theme-xp .xp-note { display: block; position: absolute; right: 30px; bottom: 34px; z-index: 2; width: 250px; text-align: right; color: #fff; font-size: 11px; opacity: .9; }

/* ---------- Desktop ---------- */
.theme-xp #desktop { background: #3a7bd5; }
.theme-xp #sidebar { display: none; }
.theme-xp .dicon { border-radius: 0; border: 0; padding: 5px 3px 6px; text-shadow: 1px 1px 1px #000, 1px 1px 3px rgba(0,0,0,.7); font-size: 11.5px; }
.theme-xp .dicon:hover { background: none; }
.theme-xp .dicon.sel { background: none; }
.theme-xp .dicon.sel span { background: #0b61ff; text-shadow: none; }
.theme-xp .dicon.sel .ic { filter: brightness(.72) saturate(1.3); }
.theme-xp .dicon:focus-visible span { outline: 1px dotted #fff; }

/* ---------- Windows ---------- */
.theme-xp .win {
  background: #0058ee; border: 1px solid #0831d9; border-radius: 8px 8px 0 0; padding: 0 3px 3px;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: inset 1px 0 #166aee, inset -1px 0 #001ea0, 2px 4px 12px rgba(0,0,0,.4);
}
.theme-xp .win::before { display: none; }
.theme-xp .win-titlebar { margin: 0 -3px; padding: 0 6px 0 7px; height: 30px; background: var(--xp-title); border-radius: 7px 7px 0 0; }
.theme-xp .win-title { color: #fff; font-weight: 700; font-size: 13px; text-shadow: 1px 1px #0f1089; padding-right: 80px; }
.theme-xp .win-buttons { top: 4px; right: 5px; gap: 2px; }
.theme-xp .win-buttons button {
  width: 21px; height: 21px; margin: 0; border: 1px solid #fff; border-radius: 3px;
  background: radial-gradient(circle at 90% 90%, #0054e9 0%, #2263d5 55%, #4482ff 70%, #a3bbec 90%, #fff 100%);
  box-shadow: none;
}
.theme-xp .win-buttons button:hover { filter: brightness(1.15); box-shadow: none; background: radial-gradient(circle at 90% 90%, #0054e9 0%, #2263d5 55%, #4482ff 70%, #a3bbec 90%, #fff 100%); }
.theme-xp .win-buttons button:active { filter: brightness(.85); }
.theme-xp .win-buttons .b-close, .theme-xp .win-buttons .b-close:hover { width: 21px; background: radial-gradient(circle at 90% 90%, #cc4600 0%, #dc6527 55%, #cd7546 70%, #ffccb2 90%, #fff 100%); }
.theme-xp .win-buttons button:first-child, .theme-xp .win-buttons button:last-child { border-radius: 3px; }
.theme-xp .win-buttons svg { width: 10px; height: 10px; filter: none; }
.theme-xp .win.inactive { background: #7a96df; border-color: #6582d1; box-shadow: 2px 3px 8px rgba(0,0,0,.3); }
.theme-xp .win.inactive .win-titlebar { background: var(--xp-title-off); }
.theme-xp .win.inactive .win-title { opacity: 1; color: #d8e4f8; text-shadow: none; }
.theme-xp .win.inactive .win-buttons button { opacity: .6; }
.theme-xp .win.inactive .win-buttons button:not(:hover) { background: radial-gradient(circle at 90% 90%, #0054e9 0%, #2263d5 55%, #4482ff 70%, #a3bbec 90%, #fff 100%); }
.theme-xp .win.inactive .win-buttons .b-close:not(:hover) { background: radial-gradient(circle at 90% 90%, #cc4600 0%, #dc6527 55%, #cd7546 70%, #ffccb2 90%, #fff 100%); }
.theme-xp .win.max { border-radius: 0; padding: 0; border: 0; }
.theme-xp .win.max .win-titlebar { margin: 0; border-radius: 0; }
.theme-xp .win-body { border: 0; border-radius: 0; box-shadow: none; }

/* Chrome inside windows: the beige XP face */
.theme-xp .toolbar, .theme-xp .toolbar.light { background: linear-gradient(180deg, #fdfdfb, var(--xp-face)); color: #000; border-bottom: 1px solid #d0cec1; }
.theme-xp .tb-btn { border-radius: 3px; }
.theme-xp .tb-btn:hover, .theme-xp .toolbar.light .tb-btn:hover { border-color: #c3c0ad; background: #fff; box-shadow: inset 0 -2px 0 #e3e1d6; }
.theme-xp .tb-sep { background: #c5c2b2; }
.theme-xp .menubar { background: var(--xp-face); border-bottom: 1px solid #fff; box-shadow: 0 1px 0 #d0cec1; }
.theme-xp .menubar span { border: 0; border-radius: 0; }
.theme-xp .menubar span:hover { background: #316ac5; color: #fff; }
.theme-xp .addressbar { background: var(--xp-face); border-bottom: 1px solid #d0cec1; }
.theme-xp .nav-orb { border-color: #2b6b27; background: radial-gradient(circle at 50% 30%, #d4f7c8, #45b43f 55%, #23871f 56%, #3eb83a); }
.theme-xp .nav-orb:disabled { background: radial-gradient(circle at 50% 30%, #f6f6f2, #cfcdc2 55%, #b5b3a8 56%, #cbc9be); border-color: #8f8d82; }
.theme-xp .nav-orb:not(:disabled):hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 0 6px rgba(80,200,80,.8); }
.theme-xp .crumbs, .theme-xp .searchbox { border-color: #7f9db9; border-radius: 0; box-shadow: none; }
.theme-xp .statusbar { background: var(--xp-face); border-top: 1px solid #d0cec1; color: #000; }
.theme-xp .ex-nav { background: linear-gradient(180deg, #7ba2e7, #6375d6); border-right: 0; padding: 10px; }
.theme-xp .ex-nav h5 { margin: 10px 0 0; padding: 6px 10px; color: #215dc6; font-weight: 700; background: linear-gradient(90deg, #fff, #c6d3f7); border-radius: 4px 4px 0 0; }
.theme-xp .ex-nav h5:first-child { margin-top: 0; }
.theme-xp .ex-nav .nav-item { margin: 0; border: 0; border-radius: 0; padding: 4px 10px; color: #215dc6; background: #d6dff7; }
.theme-xp .ex-nav .nav-item:hover { background: #d6dff7; color: #428eff; text-decoration: underline; }
.theme-xp .ex-nav .nav-item.on { background: #c1d0f3; font-weight: 700; }
.theme-xp .ex-item { border-radius: 0; }
.theme-xp .ex-item:hover { background: #eef3fd; border-color: #c1d2ee; }
.theme-xp .ex-item.sel { background: #c1d2ee; border-color: #316ac5; }
.theme-xp .ex-details { background: linear-gradient(180deg, #f7f6f0, var(--xp-face)); border-top-color: #d0cec1; }
.theme-xp .vista-h1 { color: #0b2f88; font-family: "Trebuchet MS", Tahoma, sans-serif; font-weight: 700; }
.theme-xp .vista-h2 { color: #0b2f88; border-bottom-color: #c1d2ee; font-weight: 700; }

/* Buttons, menus, tips */
.theme-xp .vbtn {
  border: 1px solid #003c74; border-radius: 3px; color: #000;
  background: linear-gradient(180deg, #fff, #ecebe6 86%, #d6d0c5); box-shadow: none;
}
.theme-xp .vbtn:hover { border-color: #003c74; background: linear-gradient(180deg, #fff, #ecebe6 86%, #d6d0c5); box-shadow: inset 0 -1px #e5a01a, inset 0 1px #ffe8a8, inset -1px 0 #f8b330, inset 1px 0 #fcd57a; }
.theme-xp .vbtn:active { background: linear-gradient(180deg, #cdcac3, #e3e3db 8%, #f2f2f1); }
.theme-xp .vbtn.primary { box-shadow: inset 0 -1px #6982ee, inset 0 1px #cee7ff, inset -1px 0 #7ba2e7, inset 1px 0 #bad3f7; }
.theme-xp .ctx { background: #fff; border-color: #aca899; box-shadow: 2px 2px 3px rgba(0,0,0,.4); }
.theme-xp .ctx::before { display: none; }
.theme-xp .ctx .ci { border: 0; border-radius: 0; padding: 4px 20px 4px 28px; }
.theme-xp .ctx .ci:hover { background: #316ac5; color: #fff; }
.theme-xp .ctx .ci .cic { left: 5px; }
.theme-xp .ctx .csep { margin: 3px 1px; background: #aca899; border: 0; }
.theme-xp .tip { background: #ffffe1; border-color: #000; color: #000; border-radius: 0; box-shadow: 1px 1px 2px rgba(0,0,0,.3); }
.theme-xp .balloon { background: #ffffe1; border-color: #000; border-radius: 8px; }
.theme-xp .balloon::after { border-top-color: #000; }
.theme-xp .balloon::before { border-top-color: #ffffe1; }

/* ---------- Taskbar ---------- */
.theme-xp #taskbar {
  padding-left: 0; border-top: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  background: linear-gradient(180deg, #1f2f86 0, #3165c4 3%, #3682e5 6%, #4490e6 10%, #3883e5 12%, #2b71e0 15%, #2663da 18%, #235bd6 20%, #2258d5 23%, #2157d6 38%, #245ddb 54%, #2562df 86%, #245fdc 89%, #2158d4 92%, #1d4ec0 95%, #1941a5 98%);
}
.theme-xp #start-orb {
  position: relative; left: 0; bottom: 0; flex: none; width: 102px; height: 100%; margin-right: 6px;
  border-radius: 0 12px 12px 0; display: flex; align-items: center;
  background:
    radial-gradient(ellipse 60% 70% at 40% 0%, rgba(255,255,255,.35), transparent 70%),
    linear-gradient(180deg, #3e9c3c 0%, #5bbd57 10%, #4cb049 32%, #3c9a39 62%, #3a9837 88%, #2d7b2b 100%);
  box-shadow: inset -2px 0 3px rgba(0,0,0,.28), inset 0 1px 1px rgba(255,255,255,.55), 1px 0 2px rgba(0,0,0,.4);
}
.theme-xp #start-orb:hover { filter: brightness(1.1); box-shadow: inset -2px 0 3px rgba(0,0,0,.28), inset 0 1px 1px rgba(255,255,255,.55), 1px 0 2px rgba(0,0,0,.4); }
.theme-xp #start-orb.open { filter: brightness(.88); box-shadow: inset 2px 2px 4px rgba(0,0,0,.45); }
.xp-start { display: flex; align-items: center; gap: 5px; padding-left: 9px; color: #fff; font: italic 700 20px/1 "Trebuchet MS", Tahoma, sans-serif; text-shadow: 1px 1px 2px rgba(0,0,0,.6); letter-spacing: .3px; }
.xp-start b { font-weight: 700; }
.xp-start svg { width: 22px; height: 22px; filter: drop-shadow(1px 1px 1px rgba(0,0,0,.5)); }
.theme-xp #quicklaunch { border-right: 1px solid rgba(0,0,0,.25); box-shadow: 1px 0 0 rgba(255,255,255,.18); height: 22px; }
.theme-xp #quicklaunch button:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.18); }
.theme-xp .task {
  height: 24px; border: 0; border-radius: 3px; text-shadow: none; color: #fff;
  background: #3c81f3; box-shadow: inset -1px 0 rgba(0,0,0,.3), inset 1px 1px 1px rgba(255,255,255,.25);
}
.theme-xp .task:hover { background: #53a3ff; }
.theme-xp .task.active { background: #1e52b7; box-shadow: inset 0 0 1px 1px rgba(0,0,0,.3), inset 1px 0 1px rgba(0,0,0,.7); }
.theme-xp #tray {
  border-left: 1px solid #1042af; box-shadow: inset 1px 0 1px #18bbff; padding: 0 10px;
  background: linear-gradient(180deg, #0c59b9 1%, #139ee9 6%, #18b5f2 10%, #139beb 14%, #1290e8 19%, #0d8dea 63%, #0d9ff1 81%, #0f9eed 88%, #119be9 91%, #1392e2 94%, #137ed7 97%, #095bc9 100%);
}
.theme-xp #clock { text-shadow: none; font-size: 11.5px; }
.theme-xp #show-desktop { width: 10px; border-left: 1px solid #1042af; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.2)); }
.theme-xp .tb-thumb { border-radius: 3px; background: #fff; color: #000; border: 1px solid #0831d9; box-shadow: 2px 2px 6px rgba(0,0,0,.4); backdrop-filter: none; }
.theme-xp .tb-thumb .tt { text-shadow: none; }

/* ---------- Start menu ---------- */
.theme-xp #startmenu {
  width: 410px; min-height: 0; height: min(560px, calc(100dvh - var(--taskbar-h) - 8px)); padding: 0;
  border-radius: 8px 8px 0 0; border: 1px solid #1a4fbf; background: #4282d6;
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 2px -2px 10px rgba(0,0,0,.45);
}
.theme-xp #startmenu.open { display: grid; grid-template-columns: 54% 46%; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head head" "left right" "foot foot"; }
.theme-xp .sm-head {
  grid-area: head; display: flex; align-items: center; gap: 9px; padding: 7px 10px; position: relative; border-radius: 7px 7px 0 0;
  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%);
}
.theme-xp .sm-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, transparent, #e8a659 30%, #e8a659 70%, transparent); }
.theme-xp .sm-head .user-frame { width: 50px; height: 50px; padding: 0; border-radius: 4px; border: 2px solid rgba(255,255,255,.9); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); margin: 0; }
.theme-xp .sm-head b { color: #fff; font-size: 15px; text-shadow: 1px 1px 2px #0d2a8c; }
.theme-xp .sm-left { grid-area: left; width: auto; border: 0; border-radius: 0; box-shadow: none; margin-top: 2px; }
.theme-xp .sm-item:hover, .theme-xp .sm-item.kb { background: #316ac5; border-color: #316ac5; color: #fff; }
.theme-xp .sm-item:hover small, .theme-xp .sm-item.kb small { color: #dfe8f8; }
.theme-xp .sm-sep { background: linear-gradient(90deg, transparent, #c7c7c7, transparent); }
.theme-xp .sm-allprog { justify-content: center; border-top: 1px solid #c7c7c7; font-weight: 700; }
.theme-xp .sm-allprog:hover { background: #316ac5; color: #fff; }
.theme-xp .sm-search { background: #f4f4f4; border-top: 1px solid #ddd; }
.theme-xp .sm-search input { border-color: #7f9db9; border-radius: 0; }
.theme-xp .sm-right { grid-area: right; margin-top: 2px; padding: 6px 4px; background: #d3e5fa; border-left: 1px solid #95bdee; color: #00136b; overflow: auto; }
.theme-xp .sm-right .user-frame, .theme-xp .sm-power { display: none; }
.theme-xp .sm-link { text-shadow: none; color: #00136b; border: 0; border-radius: 0; padding: 6px 10px; }
.theme-xp .sm-link.bold { font-weight: 700; }
.theme-xp .sm-link:hover { background: #2f71cd; color: #fff; }
.theme-xp .sm-rsep { background: linear-gradient(90deg, transparent, #a9c4e9, transparent); box-shadow: none; }
.theme-xp .sm-foot {
  grid-area: foot; display: flex; justify-content: flex-end; gap: 6px; padding: 5px 8px;
  background: linear-gradient(180deg, #4282d6 0%, #3b85e0 4%, #418ae3 8%, #418ae3 50%, #3b85e0 80%, #3077d9 100%);
}
.sm-foot button { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border: 0; border-radius: 3px; background: none; color: #fff; cursor: default; }
.sm-foot button:hover { background: rgba(255,255,255,.18); }
.sm-foot button svg { width: 24px; height: 24px; padding: 4px; border-radius: 3px; border: 1px solid rgba(255,255,255,.85); }
#sf-logoff svg { background: linear-gradient(#ffd56a, #e0a10e); }
#sf-off svg { background: linear-gradient(#ff8a63, #d1360f); }

/* ---------- Phones and touch ---------- */
@media (max-width: 720px) {
  .theme-switch { left: 50%; transform: translateX(-50%); bottom: auto; top: 16px; }
  .theme-xp { --taskbar-h: 44px; }
  .theme-xp .xp-band.top { height: 64px; }
  .theme-xp .xp-band.bottom { height: 70px; }
  .theme-xp .xp-divider, .theme-xp .xp-note { display: none; }
  .theme-xp .xp-left { right: 0; left: 0; top: 96px; transform: none; text-align: center; }
  .theme-xp .xp-left .bx-mark { width: 56px; height: 56px; }
  .theme-xp .xp-left .bx-word { font-size: 44px; }
  .theme-xp .xp-left p { font-size: 15px; margin-top: 12px; }
  .theme-xp #login .login-tile { left: 50%; top: 58%; transform: translate(-50%, -50%); padding: 9px 22px 9px 9px; border-radius: 8px; background: rgba(0,48,156,.75); }
  .theme-xp .theme-switch { left: 50%; top: auto; bottom: 18px; }
  .theme-xp #login .login-name { font-size: 18px; white-space: nowrap; }
  .theme-xp #login .login-hint { white-space: nowrap; }
  .theme-xp #startmenu { width: 100vw; }
  .theme-xp #start-orb { width: 84px; }
  .xp-start { font-size: 17px; }
  .theme-xp .win-title { padding-right: 70px; }
}
@media (pointer: coarse) {
  .theme-xp .win-titlebar { height: 34px; }
  .theme-xp .win-buttons button, .theme-xp .win-buttons .b-close, .theme-xp .win-buttons .b-close:hover { width: 28px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-xp #boot .boot-bar i { animation: none; left: 60px; }
}
