/* Windows XP Luna shell styles */
:root {
  --luna-blue-hi: #5e9ef4;
  --luna-blue: #3167c4;
  --luna-blue-dk: #0d3278;
  --face: #ece9d8;
  --face-lite: #f6f4ea;
  --hlite: #ffffff;
  --shadow: #aca899;
  --dshadow: #716f64;
  --title-a1: #4088f0;
  --title-a2: #0f4fb8;
  --title-i1: #8aaed8;
  --title-i2: #54719e;
  --sel: #316ac5;
  --menubar: #ece9d8;
  --menu-sel1: #468bf6;
  --menu-sel2: #2f65c8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: Tahoma, "Segoe UI", Verdana, Geneva, sans-serif;
  font-size: 11px;
  color: #000;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }
[hidden] { display: none !important; }

::selection { background: transparent; }
textarea ::selection, input ::selection, .selectable ::selection { background: #316ac5; color: #fff; }

/* ---------- scrollbars ---------- */
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track {
  background: #f1efe2;
  background-image: linear-gradient(45deg, #f1efe2 25%, #e4e2d2 25%, #e4e2d2 50%, #f1efe2 50%, #f1efe2 75%, #e4e2d2 75%);
  background-size: 4px 4px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, #fdfdfd, #d9d4c0 50%, #cbc4ad);
  border: 1px solid #b3ab93;
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(to right, #e8f0fe, #c2d6f6 50%, #b3cbf2); border-color: #8fb0ea; }
::-webkit-scrollbar-button {
  width: 16px; height: 16px;
  background: linear-gradient(to bottom, #fdfdfd, #d9d4c0);
  border: 1px solid #b3ab93;
  position: relative;
}
::-webkit-scrollbar-button:vertical:decrement {
  background-image: linear-gradient(to bottom, #fdfdfd, #d9d4c0), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='5'%3E%3Cpath d='M0 5 L3.5 0 L7 5 z' fill='%23000'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
::-webkit-scrollbar-button:vertical:increment {
  background-image: linear-gradient(to bottom, #fdfdfd, #d9d4c0), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='5'%3E%3Cpath d='M0 0 L3.5 5 L7 0 z' fill='%23000'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
::-webkit-scrollbar-button:horizontal:decrement {
  background-image: linear-gradient(to bottom, #fdfdfd, #d9d4c0), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='7'%3E%3Cpath d='M5 0 L0 3.5 L5 7 z' fill='%23000'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
::-webkit-scrollbar-button:horizontal:increment {
  background-image: linear-gradient(to bottom, #fdfdfd, #d9d4c0), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='7'%3E%3Cpath d='M0 0 L5 3.5 L0 7 z' fill='%23000'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- boot screen ---------- */
.boot {
  position: fixed; inset: 0; background: #000; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
}
.boot-center { text-align: center; }
.boot-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 80px; }
.boot-win { color: #fff; font-size: 22px; font-weight: bold; font-style: italic; letter-spacing: 1px; }
.boot-reg { font-size: 10px; vertical-align: super; }
.boot-xp {
  color: #fff; font-size: 46px; font-weight: 300; letter-spacing: 2px; margin-top: 2px;
  font-family: "Segoe UI", Tahoma, sans-serif;
}
.boot-xp-x {
  color: #f26522; font-weight: bold; font-size: 52px; font-style: italic;
  margin-left: 8px; font-family: "Segoe UI", Tahoma, sans-serif;
}
.boot-sub { color: #ccc; font-size: 13px; letter-spacing: 6px; margin-top: 4px; }
.boot-bar {
  width: 158px; height: 15px; border: 1px solid #8a8a8a; border-radius: 4px;
  margin: 0 auto; padding: 2px; overflow: hidden; position: relative;
}
.boot-block {
  display: inline-block; width: 9px; height: 9px; margin-right: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, #4a90e2, #1c4f9c);
  animation: bootslide 2s linear infinite;
  position: relative; left: 0;
}
@keyframes bootslide {
  0% { transform: translateX(-30px); }
  100% { transform: translateX(200px); }
}
.boot-block:nth-child(2) { animation-delay: .12s; }
.boot-block:nth-child(3) { animation-delay: .24s; }
.boot-foot {
  position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
  color: #8a8a8a; font-size: 11px;
}

/* ---------- logon ---------- */
.logon { position: fixed; inset: 0; z-index: 2900; display: flex; flex-direction: column; }
.logon-topbar { height: 8%; min-height: 40px; background: linear-gradient(to bottom, #00309c, #003cb4); }
.logon-mid {
  flex: 1; display: flex; align-items: stretch;
  background: radial-gradient(ellipse at 30% 40%, #5a7edc 0%, #3c5dc0 45%, #2546a8 100%);
  border-top: 2px solid #f8b13c; border-bottom: 2px solid #f8b13c;
}
.logon-left { flex: 1.3; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding-right: 40px; }
.logon-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 60px; }
.logon-flag { display: grid; grid-template-columns: 18px 18px; grid-template-rows: 18px 18px; gap: 2px; transform: perspective(60px) rotateY(-16deg); }
.logon-flag i:nth-child(1) { background: #f65314; border-radius: 4px 0 0 0; }
.logon-flag i:nth-child(2) { background: #7cbb00; border-radius: 0 4px 0 0; }
.logon-flag i:nth-child(3) { background: #00a1f1; border-radius: 0 0 0 4px; }
.logon-flag i:nth-child(4) { background: #ffbb00; border-radius: 0 0 4px 0; }
.logon-word { color: #fff; font-size: 20px; font-weight: normal; text-shadow: 1px 1px 2px rgba(0,0,0,.4); }
.logon-word b { font-weight: normal; font-size: 30px; }
.logon-xp { color: #ff9a3c; font-weight: bold; font-style: italic; font-size: 36px; }
.logon-tip { color: #e8edfb; font-size: 15px; text-shadow: 1px 1px 2px rgba(0,0,0,.35); }
.logon-divider {
  width: 2px; margin: 40px 0;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.75) 30%, rgba(255,255,255,.75) 70%, transparent);
}
.logon-right { flex: 1; display: flex; align-items: center; padding-left: 40px; }
.logon-user {
  display: flex; align-items: center; gap: 12px; padding: 8px 26px 8px 10px;
  border-radius: 8px; cursor: pointer; border: 1px solid transparent;
}
.logon-user:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }
.logon-avatar {
  width: 60px; height: 60px; border-radius: 6px; border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  background:
    radial-gradient(circle at 50% 34%, #ffe7c4 0 15%, transparent 16%),
    radial-gradient(ellipse 20px 15px at 50% 33%, #f7d8ab 98%, transparent),
    radial-gradient(ellipse 17px 22px at 50% 76%, #4a7dd4 98%, transparent),
    linear-gradient(to bottom, #b8d4f5, #7ca6e4);
  background-color: #7ca6e4;
}
.logon-name { color: #fff; font-size: 17px; text-shadow: 1px 1px 2px rgba(0,0,0,.4); }
.logon-user.logging-in .logon-name::after { content: "Loading your personal settings..."; display: block; font-size: 11px; color: #e8edfb; margin-top: 4px; }
.logon-botbar {
  height: 10%; min-height: 52px; background: linear-gradient(to bottom, #003cb4, #00257e);
  display: flex; align-items: center; padding-left: 30px;
}
.logon-turnoff {
  color: #fff; font-size: 12px; display: flex; align-items: center; gap: 8px; cursor: pointer; opacity: .95;
}
.logon-turnoff:hover { text-decoration: underline; }
.logon-power {
  width: 26px; height: 26px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(to bottom, #e8847c, #d04a3e 55%, #b23225);
  border: 1px solid #fff; font-size: 14px; color: #fff; box-shadow: inset 0 1px 2px rgba(255,255,255,.5);
}

/* ---------- desktop ---------- */
.desktop { position: fixed; inset: 0 0 30px 0; overflow: hidden; }
.wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* ---------- desktop icons ---------- */
.icon-layer { position: absolute; inset: 0; z-index: 1; }
.dicon {
  position: absolute; width: 78px; padding: 4px 2px 6px; text-align: center;
  cursor: default;
}
.dicon .glyph { width: 34px; height: 34px; margin: 0 auto 4px; filter: drop-shadow(1px 2px 2px rgba(0,0,0,.45)); pointer-events: none; }
.dicon .glyph svg { width: 34px; height: 34px; display: block; pointer-events: none; }
.dicon .lbl {
  color: #fff; font-size: 11px; line-height: 1.25; padding: 1px 3px;
  text-shadow: 1px 1px 1px rgba(0,0,0,.8), 0 0 3px rgba(0,0,0,.6);
  display: inline-block; max-width: 76px;
  border: 1px dotted transparent; pointer-events: none;
}
.dicon.selected .lbl { background: rgba(49,106,197,.85); border-color: rgba(255,255,255,.4); text-shadow: none; }
.dicon.drop-target .glyph, .dicon.drop-target .lbl { filter: none; opacity: .7; outline: 1px dashed #fff; outline-offset: 1px; }
.dicon.rename input {
  width: 84px; font-size: 11px; border: 1px solid #316ac5; padding: 1px 2px;
  text-align: center; outline: none;
}
.marquee {
  position: absolute; z-index: 5; border: 1px dotted #245edb;
  background: rgba(49,106,197,.18); pointer-events: none;
}

/* ---------- taskbar ---------- */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 30px; z-index: 900;
  display: flex; align-items: stretch;
  background: linear-gradient(to bottom, #3168d5 0%, #4993e6 4%, #2157d0 8%, #2659c9 45%, #1e4fc0 60%, #1942a4 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.start-button {
  position: relative; border: none; margin: 0 8px 0 0; padding: 0 22px 0 12px;
  display: flex; align-items: center; gap: 5px; cursor: pointer;
  color: #fff; font-size: 15px; font-weight: bold; font-style: italic; letter-spacing: .5px;
  text-shadow: 1px 1px 2px rgba(0,0,0,.55);
  background: linear-gradient(to bottom, #6fbf5a 0%, #3e9c3e 12%, #2f8f2f 50%, #247a24 85%, #1d6b1d 100%);
  border-radius: 0 12px 12px 0 / 0 24px 24px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 1px 0 0 rgba(255,255,255,.25), 2px 0 3px rgba(0,0,0,.35);
}
.start-button::after {
  content: ""; position: absolute; right: -1px; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.28));
  border-radius: 0 12px 12px 0 / 0 24px 24px 0; pointer-events: none;
}
.start-button:hover { filter: brightness(1.08); }
.start-button:active, .start-button.open {
  background: linear-gradient(to bottom, #1d6b1d 0%, #247a24 15%, #2f8f2f 55%, #3e9c3e 90%, #4da84d 100%);
  box-shadow: inset 1px 2px 4px rgba(0,0,0,.45);
}
.start-logo {
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(-8 12 12)'%3E%3Cpath d='M3 5.5 L11 4 L11 11 L3 11 Z' fill='%23f65314'/%3E%3Cpath d='M12.5 3.8 L21 2.5 L21 11 L12.5 11 Z' fill='%237cbb00'/%3E%3Cpath d='M3 12.5 L11 12.5 L11 20 L3 18.5 Z' fill='%2300a1f1'/%3E%3Cpath d='M12.5 12.5 L21 12.5 L21 21.5 L12.5 20.2 Z' fill='%23ffbb00'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/contain;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,.5));
}
.quicklaunch {
  display: flex; align-items: center; gap: 2px; padding: 0 8px 0 4px;
}
.quicklaunch .qicon {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 3px; cursor: pointer; padding: 1px;
}
.quicklaunch .qicon svg { width: 17px; height: 17px; display: block; }
.quicklaunch .qicon:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.14); box-shadow: inset 0 0 3px rgba(0,0,0,.2); }
.quicklaunch .qicon:active { background: rgba(0,0,0,.25); border-color: rgba(0,0,0,.3); }
.taskbar-divider { width: 1px; margin: 3px 2px; background: rgba(0,0,0,.3); border-right: 1px solid rgba(255,255,255,.22); }
.task-buttons { flex: 1; display: flex; align-items: stretch; gap: 3px; padding: 3px 6px 3px 4px; overflow: hidden; }
.taskbtn {
  min-width: 0; width: 158px; max-width: 158px; flex: 0 1 auto;
  display: flex; align-items: center; gap: 5px; padding: 0 8px 0 6px;
  border: none; border-radius: 3px; cursor: pointer; overflow: hidden;
  color: #fff; font-size: 11px; text-align: left; white-space: nowrap;
  background: linear-gradient(to bottom, #3982e6 0%, #2867c9 8%, #2a5dbb 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset -1px 0 0 rgba(0,0,0,.15), inset 1px 0 0 rgba(255,255,255,.15), 0 1px 2px rgba(0,0,0,.2);
}
.taskbtn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.taskbtn span { overflow: hidden; text-overflow: ellipsis; }
.taskbtn:hover { filter: brightness(1.12); }
.taskbtn.active {
  background: linear-gradient(to bottom, #16418f 0%, #1c4da8 8%, #2a5ec2 100%);
  box-shadow: inset 1px 2px 3px rgba(0,0,0,.4);
  font-weight: bold;
}
.taskbtn.flash { animation: flashbtn .5s steps(2) 6; }
@keyframes flashbtn { 50% { background: linear-gradient(to bottom, #f8b13c, #f09000); } }
.taskbtn .tcount { font-weight: normal; opacity: .85; }

/* ---------- tray ---------- */
.tray {
  display: flex; align-items: center; gap: 2px; padding: 0 10px 0 12px; margin-left: auto;
  background: linear-gradient(to bottom, #1290e9 0%, #19b9f3 8%, #108ed2 60%, #0d7cc0 100%);
  box-shadow: inset 2px 0 3px rgba(0,0,0,.3);
  border-left: 1px solid rgba(0,0,0,.25);
}
.tray-icons { display: flex; align-items: center; gap: 3px; margin-right: 8px; }
.tray-icon {
  width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 2px;
}
.tray-icon svg { width: 15px; height: 15px; }
.tray-icon:hover { background: rgba(255,255,255,.2); }
.tray-clock { color: #fff; font-size: 11px; text-shadow: 1px 1px 1px rgba(0,0,0,.4); min-width: 52px; text-align: center; }

/* ---------- windows ---------- */
.window {
  position: absolute; z-index: 100;
  background: var(--face);
  border-radius: 8px 8px 4px 4px;
  box-shadow: 2px 3px 12px rgba(0,0,0,.5), 0 0 0 1px rgba(0,20,80,.4);
  display: flex; flex-direction: column;
  min-width: 150px; min-height: 100px;
  overflow: hidden;
}
.window.inactive { box-shadow: 1px 2px 8px rgba(0,0,0,.35), 0 0 0 1px rgba(0,20,80,.3); }
.window.maximized { border-radius: 0; }
.window.animating { transition: transform .22s cubic-bezier(.3,.7,.4,1), opacity .2s ease-in; transform-origin: bottom center; }
.window.geom-anim { transition: left .16s ease-out, top .16s ease-out, width .16s ease-out, height .16s ease-out; }

.titlebar {
  height: 28px; flex: 0 0 auto; display: flex; align-items: center; padding: 0 3px 0 8px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(to bottom, #0058e6 0%, #3a93ff 4%, #288eff 6%, #127dff 10%, #036ffc 14%, #0262ee 20%, #0057e5 24%, #0054e3 56%, #0136a3 66%, #01308f 76%, #0136a3 86%, #0f4fbd 94%, #1363d5 100%);
  cursor: default;
}
.window.inactive .titlebar {
  background: linear-gradient(to bottom, #7697e7 0%, #9db9eb 4%, #86a5e0 8%, #7b9cdc 14%, #7692d5 24%, #758fd0 56%, #6f83bd 66%, #6b7fb6 76%, #7386c0 90%, #7c92cc 100%);
}
.window.maximized .titlebar { border-radius: 0; }
.ticon { width: 16px; height: 16px; margin-right: 5px; flex: 0 0 auto; }
.ticon svg { width: 16px; height: 16px; display: block; }
.ttitle {
  flex: 1; color: #fff; font-size: 13px; font-weight: bold; letter-spacing: .3px;
  text-shadow: 1px 1px 2px rgba(0,0,0,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-right: 6px;
}
.window.inactive .ttitle { text-shadow: 1px 1px 1px rgba(40,60,120,.7); }
.tbtns { display: flex; gap: 2px; align-items: center; padding-right: 3px; }
.tbtn {
  width: 21px; height: 21px; border-radius: 4px; border: 1px solid rgba(255,255,255,.75);
  cursor: pointer; position: relative; padding: 0;
  background: linear-gradient(to bottom, #3f8cf3 0%, #2165d0 45%, #1654bc 55%, #3a7fe4 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5), inset 0 -1px 1px rgba(0,0,0,.2), 1px 1px 1px rgba(0,0,0,.25);
}
.tbtn:hover { filter: brightness(1.18); }
.tbtn:active { filter: brightness(.85); box-shadow: inset 1px 1px 2px rgba(0,0,0,.35); }
.tbtn.tclose {
  background: linear-gradient(to bottom, #f2a08d 0%, #e0795e 12%, #d95538 45%, #c93d20 55%, #e46b48 100%);
}
.tbtn svg { position: absolute; inset: 0; margin: auto; width: 11px; height: 11px; }
.window.inactive .tbtn { filter: saturate(.55) brightness(1.05); }
.window.inactive .tbtn:hover { filter: saturate(.8) brightness(1.2); }

.window-body {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
  border-left: 3px solid #0054e3; border-right: 3px solid #0054e3; border-bottom: 3px solid #0054e3;
  border-radius: 0 0 3px 3px;
  margin-top: -3px; padding-top: 0; position: relative;
  background: var(--face);
}
.window.inactive .window-body { border-color: #758fd0; }
.window.maximized .window-body { border-radius: 0; }

.rsz { position: absolute; z-index: 10; }
.rsz-n  { top: -2px; left: 8px; right: 8px; height: 5px; cursor: n-resize; }
.rsz-s  { bottom: -2px; left: 8px; right: 8px; height: 5px; cursor: s-resize; }
.rsz-e  { right: -2px; top: 8px; bottom: 8px; width: 5px; cursor: e-resize; }
.rsz-w  { left: -2px; top: 8px; bottom: 8px; width: 5px; cursor: w-resize; }
.rsz-ne { top: -2px; right: -2px; width: 10px; height: 10px; cursor: ne-resize; }
.rsz-nw { top: -2px; left: -2px; width: 10px; height: 10px; cursor: nw-resize; }
.rsz-se { bottom: -2px; right: -2px; width: 10px; height: 10px; cursor: se-resize; }
.rsz-sw { bottom: -2px; left: -2px; width: 10px; height: 10px; cursor: sw-resize; }
.window.maximized .rsz { display: none; }

/* ---------- menu bar inside apps ---------- */
.menubar {
  display: flex; align-items: center; background: var(--face);
  padding: 1px 2px; border-bottom: 1px solid #d4d0c8; flex: 0 0 auto;
}
.menubar .mbitem { padding: 3px 7px; cursor: default; border: 1px solid transparent; }
.menubar .mbitem:hover, .menubar .mbitem.open { background: var(--menu-sel2); color: #fff; }
.menubar .mbitem u { text-decoration: underline; }

/* ---------- popup menus ---------- */
.popup-menu {
  position: fixed; z-index: 1100; min-width: 160px;
  background: #f9f8f3; border: 1px solid #aca899;
  box-shadow: 3px 3px 5px rgba(0,0,0,.3);
  padding: 2px; font-size: 11px;
}
.pmenu-item {
  display: flex; align-items: center; gap: 6px; padding: 4px 22px 4px 4px;
  cursor: default; position: relative; white-space: nowrap;
}
.pmenu-item .pmicon { width: 18px; height: 18px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.pmenu-item .pmicon svg { width: 16px; height: 16px; }
.pmenu-item .pmlabel { flex: 1; }
.pmenu-item .pmsub { position: absolute; right: 6px; font-size: 9px; }
.pmenu-item:hover:not(.disabled), .pmenu-item.open {
  background: linear-gradient(to bottom, var(--menu-sel1), var(--menu-sel2)); color: #fff;
}
.pmenu-item.disabled { color: #95937f; }
.pmenu-item.disabled:hover { background: none; color: #95937f; }
.pmenu-sep { height: 1px; margin: 3px 2px 3px 26px; background: #c5c2b4; border-bottom: 1px solid #fff; }
.pmenu-check { width: 18px; text-align: center; font-weight: bold; }

/* ---------- start menu ---------- */
.start-menu {
  position: fixed; left: 2px; bottom: 30px; width: 386px; z-index: 1000;
  border-radius: 6px 6px 0 0; overflow: hidden;
  box-shadow: 2px -2px 14px rgba(0,0,0,.55), 0 0 0 1px rgba(0,30,100,.5);
  background: #fff;
  display: flex; flex-direction: column;
}
.sm-head {
  height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: linear-gradient(to bottom, #0058e6 0%, #3a93ff 6%, #127dff 12%, #0262ee 22%, #0054e3 58%, #0136a3 68%, #01308f 80%, #0136a3 92%, #1363d5 100%);
}
.sm-avatar {
  width: 42px; height: 42px; border-radius: 5px; border: 2px solid rgba(255,255,255,.8);
  box-shadow: 0 1px 5px rgba(0,0,0,.5);
  background:
    radial-gradient(circle at 50% 34%, #ffe7c4 0 15%, transparent 16%),
    radial-gradient(ellipse 14px 11px at 50% 33%, #f7d8ab 98%, transparent),
    radial-gradient(ellipse 12px 16px at 50% 76%, #4a7dd4 98%, transparent),
    linear-gradient(to bottom, #b8d4f5, #7ca6e4);
}
.sm-user { color: #fff; font-size: 15px; font-weight: bold; text-shadow: 1px 1px 2px rgba(0,0,0,.6); }
.sm-main { display: flex; min-height: 342px; }
.sm-left { flex: 1.12; background: #fff; padding: 6px 0 6px 0; display: flex; flex-direction: column; border-right: 1px solid #d4e2f5; }
.sm-right { flex: 1; background: #d3e5fa; border-left: 1px solid #95bdee; padding: 6px 0; display: flex; flex-direction: column; }
.smitem {
  display: flex; align-items: center; gap: 9px; padding: 5px 10px; cursor: default;
  margin: 0; position: relative;
}
.smitem svg { width: 30px; height: 30px; flex: 0 0 auto; }
.smitem .smi-text { display: flex; flex-direction: column; min-width: 0; }
.smitem .smi-name { font-size: 12px; font-weight: bold; color: #00136e; }
.smitem .smi-desc { font-size: 10px; color: #808080; }
.smitem:hover { background: linear-gradient(to bottom, var(--menu-sel1), var(--menu-sel2)); }
.smitem:hover .smi-name { color: #fff; }
.smitem:hover .smi-desc { color: #cfe0ff; }
.sm-right .smitem { padding: 4px 10px; gap: 8px; }
.sm-right .smitem svg { width: 22px; height: 22px; }
.sm-right .smitem .smi-name { font-weight: normal; font-size: 11px; color: #00136e; }
.sm-right .smitem:hover .smi-name { color: #fff; }
.sm-right .smitem.bold .smi-name { font-weight: bold; }
.sm-sep { border-top: 1px solid #d4d0c8; margin: 5px 8px; }
.sm-right .sm-sep { border-color: #95bdee; }
.sm-allprograms {
  margin-top: auto; padding: 7px 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; font-weight: bold; color: #00136e; cursor: default;
  border-top: 1px solid #e6e6e6; position: relative;
}
.sm-allprograms:hover { background: linear-gradient(to bottom, var(--menu-sel1), var(--menu-sel2)); color: #fff; }
.sm-allprograms .ap-arrow {
  width: 20px; height: 20px; border-radius: 50%; background: #3d9b3d; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5), 0 1px 2px rgba(0,0,0,.3);
}
.sm-foot {
  height: 40px; display: flex; align-items: center; justify-content: flex-end; gap: 2px; padding: 0 10px;
  background: linear-gradient(to bottom, #0058e6 0%, #0262ee 30%, #0054e3 60%, #0136a3 90%, #1363d5 100%);
}
.sm-power {
  display: flex; align-items: center; gap: 6px; color: #fff; font-size: 11px; padding: 4px 8px;
  cursor: default; border-radius: 3px; border: 1px solid transparent;
}
.sm-power:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.sm-power .pwicon {
  width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.55), 0 1px 2px rgba(0,0,0,.3);
  font-size: 12px; color: #fff; text-shadow: 1px 1px 1px rgba(0,0,0,.4);
}
.pwicon.logoff { background: linear-gradient(to bottom, #f8b13c, #e08a00 55%, #c57600); }
.pwicon.turnoff { background: linear-gradient(to bottom, #e8847c, #d04a3e 55%, #b23225); }

/* ---------- buttons & inputs ---------- */
.xpbtn {
  min-width: 74px; padding: 3px 12px 4px; font-size: 11px; cursor: default;
  background: linear-gradient(to bottom, #fff 0%, #ecebe5 86%, #d8d0c4 100%);
  border: 1px solid #003c74; border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.xpbtn:hover { box-shadow: inset 0 0 0 2px #ffc73c; }
.xpbtn:active, .xpbtn.pressed {
  background: linear-gradient(to bottom, #d8d0c4, #ecebe5);
  box-shadow: inset 1px 1px 2px rgba(0,0,0,.25);
}
.xpbtn:disabled { color: #848284; border-color: #aca899; box-shadow: none; background: #f0efe6; }
.xpbtn.default { border-width: 1px; outline: 1px solid #003c74; outline-offset: -3px; }
input[type=text], textarea, select {
  border: 1px solid #7f9db9; padding: 2px 3px; background: #fff; font-size: 11px; outline: none;
}
input[type=text]:focus, textarea:focus { border-color: #316ac5; }
input[type=checkbox], input[type=radio] { accent-color: #316ac5; }
fieldset { border: 1px solid #d0cbbb; padding: 8px 10px 10px; border-radius: 2px; }
legend { padding: 0 4px; color: #0046d5; }

/* ---------- dialogs ---------- */
.dlg-content { padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; background: var(--face); }
.dlg-icon { width: 32px; height: 32px; flex: 0 0 auto; }
.dlg-icon svg { width: 32px; height: 32px; }
.dlg-text { padding-top: 4px; line-height: 1.45; max-width: 320px; user-select: text; }
.dlg-text.selectable { user-select: text; -webkit-user-select: text; }
.dlg-buttons {
  display: flex; justify-content: center; gap: 8px; padding: 0 12px 12px;
  background: var(--face);
}
.dlg-buttons.right { justify-content: flex-end; }

/* status bar for apps */
.statusbar {
  display: flex; align-items: center; height: 22px; background: var(--face);
  border-top: 1px solid #d4d0c8; font-size: 11px; padding: 0 2px; flex: 0 0 auto;
}
.statusbar .sbcell {
  padding: 2px 8px; border-right: 1px solid #d4d0c8;
  box-shadow: 1px 0 0 #fff; height: 100%; display: flex; align-items: center;
}
.statusbar .sbcell.grow { flex: 1; }

/* toolbar for apps */
.toolbar {
  display: flex; align-items: center; gap: 1px; padding: 2px 4px; flex: 0 0 auto;
  background: linear-gradient(to bottom, #faf9f4, #ece9d8);
  border-bottom: 1px solid #d4d0c8;
}
.tbbutton {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 2px; cursor: default; padding: 2px;
}
.tbbutton svg { width: 16px; height: 16px; }
.tbbutton:hover { border-color: #aca899; background: rgba(255,255,255,.5); }
.tbbutton:active, .tbbutton.on { border-color: #716f64; background: #d8d4c0; box-shadow: inset 1px 1px 2px rgba(0,0,0,.2); }
.tbbutton.disabled { opacity: .4; pointer-events: none; }
.tbsep { width: 1px; height: 20px; background: #aca899; margin: 0 3px; box-shadow: 1px 0 0 #fff; }
.tbbutton.withlabel { width: auto; padding: 2px 6px; gap: 4px; font-size: 11px; }

/* ---------- balloon notifications ---------- */
.balloon-layer { position: fixed; right: 0; bottom: 92px; z-index: 950; pointer-events: none; }
.balloon {
  position: absolute; right: 10px; bottom: 0; width: 260px; pointer-events: auto;
  background: #ffffe1; border: 1px solid #7a745c; border-radius: 6px;
  padding: 8px 10px 10px; box-shadow: 2px 3px 6px rgba(0,0,0,.35);
  transform: translateY(110%); opacity: 0;
  transition: transform .45s cubic-bezier(.2,.9,.3,1.1), opacity .3s;
  cursor: default;
}
.balloon.show { transform: translateY(0); opacity: 1; }
.balloon::after {
  content: ""; position: absolute; bottom: -8px; right: 34px; width: 14px; height: 14px;
  background: #ffffe1; border-right: 1px solid #7a745c; border-bottom: 1px solid #7a745c;
  transform: rotate(45deg); border-bottom-right-radius: 4px;
}
.balloon .bl-title { font-weight: bold; margin-bottom: 3px; display: flex; justify-content: space-between; }
.balloon .bl-close { cursor: pointer; color: #7a745c; padding: 0 3px; }
.balloon .bl-close:hover { color: #000; }

/* ---------- screen effects ---------- */
.screenfx { position: fixed; inset: 0; z-index: 2500; pointer-events: none; }
.screenfx.blackout { background: #000; pointer-events: auto; }
.screenfx.standby { background: rgba(0,0,20,.55); pointer-events: auto; display: flex; align-items: center; justify-content: center; }
.screenfx .bye {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 40% 40%, #5a7edc 0%, #3c5dc0 45%, #2546a8 100%);
  color: #fff; font-size: 26px; font-weight: 300; letter-spacing: 1px; flex-direction: column; gap: 14px;
}
.screenfx .bye small { font-size: 13px; color: #cfe0ff; }

/* misc */
.hidden-select { position: absolute; left: -9999px; }
.chevron-up { font-size: 8px; }

/* grouping popup */
.group-popup .pmenu-item .pmclose { margin-left: auto; visibility: hidden; padding: 0 4px; }
.group-popup .pmenu-item:hover .pmclose { visibility: visible; }
