:root {
  --text-main: #f4f8ff;
  --text-soft: rgba(244, 248, 255, 0.76);
  --stroke: rgba(240, 247, 255, 0.22);
  --panel-bg: rgba(23, 40, 76, 0.42);
  --panel-bg-heavy: rgba(22, 34, 58, 0.66);
  --glow: 0 24px 44px rgba(4, 8, 20, 0.48);
  --win-blue: #4cb7ff;
  --win-blue-soft: rgba(76, 183, 255, 0.3);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-sm: 12px;
}

/* ════════════════════════════════════════════
   Win11 Lock / Login Screen
   ════════════════════════════════════════════ */
.win11-lock-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.win11-lock-screen.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Clock phase ── */
.lock-clock {
  text-align: center;
  user-select: none;
}

.lock-time {
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
}

.lock-date {
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 6px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* ── Login phase ── */
.lock-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: lockLoginFadeIn 0.4s ease both;
}

.lock-login[hidden] {
  display: none !important;
  pointer-events: none;
}

@keyframes lockLoginFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lock-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}

.lock-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.lock-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.lock-subtitle {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

/* ── Login form ── */
.lock-form {
  width: min(340px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.lock-field {
  position: relative;
}

.lock-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.lock-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.lock-input:focus {
  border-color: rgba(76, 183, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(76, 183, 255, 0.12);
}

.lock-pw-field .lock-input {
  padding-right: 44px;
}

.lock-pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    color 0.15s,
    background 0.15s;
}

.lock-pw-toggle:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.lock-pw-toggle.is-visible {
  color: rgba(76, 183, 255, 0.9);
}

.lock-error {
  font-size: 12px;
  color: #ff8b8b;
  text-align: center;
  padding: 4px 0;
  animation: lockShake 0.35s ease;
}

@keyframes lockShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.lock-submit {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(76, 183, 255, 0.3);
  border-radius: 10px;
  background: rgba(76, 183, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
  margin-top: 4px;
}

.lock-submit:hover {
  background: rgba(76, 183, 255, 0.28);
  border-color: rgba(76, 183, 255, 0.5);
  box-shadow: 0 4px 18px rgba(76, 183, 255, 0.15);
}

.lock-submit:active {
  background: rgba(76, 183, 255, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Be Vietnam Pro', 'Segoe UI Variable Text', 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: #08101d;
  overflow: hidden;
}

body::before,
body::after {
  content: none;
}

.wallpaper-layer {
  position: fixed;
  inset: 0;
  background: url('../../assets/images/win11-wallpaper.jpg') center center / cover no-repeat;
}

.wallpaper-layer::before,
.wallpaper-layer::after {
  content: none;
}

/* ── Bizlo persistent logo — top-right corner ── */
.bizlo-desktop-logo {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(16, 24, 44, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  color: rgba(244, 248, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
}

.bizlo-desktop-logo:hover {
  background: rgba(16, 24, 44, 0.75);
}

.bizlo-desktop-logo img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.bizlo-logo-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

.desktop-shell {
  position: relative;
  height: 100vh;
  width: 100%;
  padding: 28px;
  display: grid;
  align-content: space-between;
  justify-items: center;
  z-index: 2;
}

.glass {
  border: 1px solid var(--stroke);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02));
  box-shadow:
    var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(28px) saturate(1.24);
  -webkit-backdrop-filter: blur(28px) saturate(1.24);
}

.floating-hint {
  display: none;
}

@keyframes hintFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.start-button {
  display: none;
}

.win-logo {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.win-logo::before,
.win-logo::after {
  content: '';
}

.win-logo > * {
  display: none;
}

.win-logo {
  background:
    linear-gradient(#40a9ff 0 0) 0 0 / calc(50% - 1px) calc(50% - 1px) no-repeat,
    linear-gradient(#40a9ff 0 0) 100% 0 / calc(50% - 1px) calc(50% - 1px) no-repeat,
    linear-gradient(#40a9ff 0 0) 0 100% / calc(50% - 1px) calc(50% - 1px) no-repeat,
    linear-gradient(#40a9ff 0 0) 100% 100% / calc(50% - 1px) calc(50% - 1px) no-repeat;
  border-radius: 3px;
}

.start-panel {
  position: fixed;
  left: 50%;
  bottom: 106px;
  transform: translate(-50%, 18px);
  width: min(680px, 86vw);
  height: min(72vh, 640px);
  max-height: 72vh;
  border-radius: 16px;
  padding: 28px 28px 0;
  background: linear-gradient(160deg, rgba(34, 52, 90, 0.52), rgba(18, 28, 50, 0.58));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  z-index: 18;
  box-shadow: 0 24px 52px rgba(3, 8, 22, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-x: hidden;
}

.start-panel::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.start-panel.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.start-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.start-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.start-header p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.search-wrap {
  display: none;
}

.start-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.start-grid > * {
  min-width: 0;
}

.settings-rail {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 12px;
}

.favorite-zone {
  display: none;
}

.module-zone {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.module-zone h2 {
  display: none;
}

.settings-rail h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(240, 248, 255, 0.8);
}

.favorite-zone h2 {
  margin: 0;
  font-size: 16px;
}

.settings-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.settings-subtitle {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-soft);
  min-height: 32px;
}

.settings-back {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 22, 40, 0.54);
  color: var(--text-main);
  cursor: pointer;
}

.settings-back:hover {
  border-color: rgba(176, 219, 255, 0.9);
}

.menu-root {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  overflow: auto;
  min-height: 0;
  overflow-x: hidden;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 10px;
  color: var(--text-main);
  background: rgba(8, 17, 31, 0.2);
  padding: 8px 8px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.menu-item-main {
  min-height: 38px;
}

.settings-item-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.settings-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--icon-accent, rgba(217, 236, 255, 0.95));
  box-shadow: 0 0 12px var(--icon-glow, rgba(120, 196, 255, 0.3));
}

.settings-item-icon .workplace-glyph {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 4px var(--icon-glow, rgba(120, 196, 255, 0.32)));
}

.settings-item-title {
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submenu-item-row {
  min-height: 36px;
}

.settings-module-open {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  width: 100%;
  min-width: 0;
  padding: 0;
  cursor: pointer;
}

.submenu-item-row {
  gap: 8px;
}

.settings-direct-action {
  flex: 0 0 auto;
}

.menu-item:hover,
.menu-item.is-active {
  transform: translateX(2px);
  background: rgba(128, 186, 255, 0.16);
}

.menu-item small {
  color: var(--text-soft);
  font-size: 12px;
}

.submenu {
  position: absolute;
  top: 64px;
  width: 220px;
  border-radius: 14px;
  padding: 8px;
  border: 1px solid rgba(240, 247, 255, 0.24);
  background: var(--panel-bg-heavy);
  box-shadow: var(--glow);
}

.submenu-level2 {
  left: 264px;
}

.submenu-level3 {
  left: 496px;
}

.submenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.submenu-item {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--text-main);
  background: rgba(10, 18, 32, 0.72);
  text-align: left;
  cursor: pointer;
}

.submenu-item:hover,
.submenu-item.is-active {
  background: rgba(124, 196, 255, 0.18);
}

.module-columns {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: none;
  overflow: auto;
  overflow-x: hidden;
  padding-right: 4px;
  min-height: 0;
  flex: 1;
}

/* module group header row */
.module-card {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.module-card:hover {
  border-color: transparent;
  background: transparent;
  transform: none;
  box-shadow: none;
}

.module-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(240, 248, 255, 0.8);
  cursor: default;
}

.group-open-btn {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.group-open-btn:hover {
  color: #b9e3ff;
}

.group-toggle-btn {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 248, 255, 0.7);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.group-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* module children grid — collapsed by default */
.module-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  overflow: hidden;
  padding: 0 0 4px;
}

.module-actions.is-collapsed {
  display: none;
}

.app-tile {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
  min-height: 0;
  padding: 10px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.15s ease;
}

.app-tile::before {
  display: none;
}

.app-tile:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.08);
  transform: none;
  box-shadow: none;
}

.module-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(183, 219, 255, 0.3);
  border-radius: 12px;
  padding: 14px;
  background: rgba(11, 23, 44, 0.28);
  display: grid;
  gap: 6px;
  color: rgba(236, 245, 255, 0.9);
}

.module-empty span {
  color: rgba(236, 245, 255, 0.74);
  font-size: 13px;
}

.app-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.app-icon {
  width: 32px;
  height: 32px;
  border-radius: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--icon-accent, rgba(225, 240, 255, 0.98));
  box-shadow: 0 0 14px var(--icon-glow, rgba(124, 196, 255, 0.3));
}

.app-icon .workplace-glyph {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 5px var(--icon-glow, rgba(124, 196, 255, 0.32)));
}

.app-label {
  font-size: 11px;
  line-height: 1.3;
  color: rgba(245, 249, 255, 0.88);
  min-height: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.app-add,
.app-settings {
  display: none;
}

.favorite-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.favorite-note {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-soft);
}

.favorite-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: none;
  overflow: auto;
  overflow-x: hidden;
  min-height: 0;
  flex: 1;
}

.favorite-item {
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 7px;
  display: grid;
  gap: 6px;
  align-content: space-between;
  min-height: 72px;
}

.favorite-item > span {
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.favorite-item .tiny-action {
  justify-self: end;
}

.favorite-item .tiny-action.favorite-remove {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1;
}

.favorite-picker {
  position: absolute;
  left: 50%;
  top: 72px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 30px));
  max-height: calc(100% - 146px);
  border-radius: 16px;
  padding: 12px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  background: linear-gradient(150deg, rgba(25, 42, 76, 0.78), rgba(14, 26, 48, 0.76));
  box-shadow: 0 20px 42px rgba(4, 9, 24, 0.5);
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
}

.favorite-picker[hidden] {
  display: none !important;
}

.favorite-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.favorite-picker-head h3 {
  margin: 0;
  font-size: 16px;
}

.favorite-picker-note {
  margin: 6px 0 10px;
  color: var(--text-soft);
  font-size: 12px;
}

.favorite-picker-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.favorite-picker-group {
  border: 0;
  border-radius: 12px;
  padding: 8px;
  background: rgba(9, 19, 35, 0.38);
}

.favorite-picker-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
}

.favorite-picker-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.favorite-picker-item {
  border: 0;
  border-radius: 9px;
  background: rgba(14, 26, 44, 0.48);
  color: var(--text-main);
  padding: 7px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  min-height: 68px;
}

.favorite-picker-item.is-active {
  background: rgba(75, 136, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(163, 212, 255, 0.6);
}

.favorite-picker-item .app-label {
  min-height: 0;
}

.favorite-picker-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
}

.tiny-action {
  border: 0;
  border-radius: 7px;
  background: rgba(10, 20, 35, 0.66);
  color: var(--text-main);
  width: 22px;
  height: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.tiny-action:hover {
  transform: translateY(-1px);
  border-color: rgba(164, 218, 255, 0.86);
}

/* divider before footer */
.start-footer {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.footer-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-user span {
  color: var(--text-soft);
  font-size: 13px;
}

.footer-actions {
  display: flex;
  gap: 8px;
}

.glass-footer {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-radius: 10px;
  padding: 8px 12px;
}

.taskbar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(840px, calc(100vw - 24px));
  border-radius: 18px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  background: linear-gradient(165deg, rgba(33, 44, 66, 0.56), rgba(15, 23, 37, 0.6));
}

.taskbar-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.window-mini-dock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.window-mini-item {
  position: relative;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: rgba(9, 17, 31, 0.62);
  color: rgba(234, 245, 255, 0.96);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.window-mini-item .workplace-glyph {
  width: 16px;
  height: 16px;
}

.window-mini-item::after {
  content: attr(data-title);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(12, 21, 38, 0.94);
  border: 1px solid rgba(188, 221, 255, 0.28);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.window-mini-item:hover::after {
  opacity: 1;
}

.window-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

/* ── Window open / close / minimize transitions ── */

@keyframes win11WindowOpen {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.app-window.win-closing {
  animation: win11WindowClose 0.18s cubic-bezier(0.5, 0, 1, 0.5) both;
  pointer-events: none;
}

@keyframes win11WindowClose {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.app-window.win-minimizing {
  animation: win11WindowMinimize 0.2s cubic-bezier(0.5, 0, 1, 0.5) both;
  pointer-events: none;
}

@keyframes win11WindowMinimize {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ── Snap preview overlay ── */
.win11-snap-preview {
  position: fixed;
  z-index: 59;
  background: rgba(76, 183, 255, 0.12);
  border: 2px solid rgba(76, 183, 255, 0.5);
  border-radius: 12px;
  pointer-events: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-window {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(900px, 84vw);
  height: min(78vh, 620px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(205, 230, 255, 0.28);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(18, 30, 56, 0.96), rgba(10, 18, 34, 0.98));
  box-shadow: 0 30px 55px rgba(3, 8, 22, 0.58);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: visible;
}

.app-window.is-maximized {
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  transform: none;
  border-radius: 0;
  border: 0;
}

.app-window.is-maximized .app-window-body {
  padding: 0;
}

.app-window.is-maximized .app-window-iframe {
  border-radius: 0;
}

.app-window-topbar {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 10px;
  border-bottom: 1px solid rgba(199, 224, 255, 0.2);
  background: rgba(9, 17, 30, 0.44);
  cursor: grab;
  user-select: none;
}

.app-window-topbar:active {
  cursor: grabbing;
}

.app-window-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(234, 245, 255, 0.94);
}

.app-window-controls {
  display: inline-flex;
  align-items: center;
}

.app-window-control {
  width: 34px;
  height: 24px;
  border: 0;
  background: transparent;
  color: rgba(233, 245, 255, 0.92);
  cursor: pointer;
  font-size: 13px;
}

.app-window-control:hover {
  background: rgba(138, 188, 255, 0.22);
}

.app-window-control.close:hover {
  background: rgba(255, 91, 91, 0.86);
}

.app-window-body {
  flex: 1;
  min-height: 0 !important;
  overflow: auto;
  padding: 12px;
  border-radius: 0 0 10px 10px;
}

.app-window-iframe {
  width: 100%;
  height: 100% !important;
  border: 0;
  border-radius: 8px;
  background: rgba(8, 16, 30, 0.95);
  display: block;
}

.app-window-content {
  display: grid;
  gap: 10px;
}

.app-window-section {
  border: 1px solid rgba(188, 221, 255, 0.18);
  border-radius: 10px;
  padding: 10px;
  background: rgba(9, 20, 37, 0.34);
}

.app-window-section h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.app-window-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(187, 220, 255, 0.16);
}

.app-window-row:last-child {
  border-bottom: 0;
}

.app-window-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 235, 255, 0.38) transparent;
}

.app-window-body::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.app-window-body::-webkit-scrollbar-track {
  background: transparent;
}

.app-window-body::-webkit-scrollbar-thumb {
  background: rgba(214, 235, 255, 0.35);
  border-radius: 999px;
}

.task-icon {
  min-width: 38px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: var(--text-main);
  background: rgba(9, 16, 29, 0.52);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.module-columns,
.favorite-list,
.start-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(205, 230, 255, 0.38) transparent;
}

.settings-rail,
.module-zone,
.favorite-zone,
.menu-root,
.module-columns,
.favorite-list,
.module-card,
.module-actions,
.app-tile {
  max-width: 100%;
}

.module-columns::-webkit-scrollbar,
.favorite-list::-webkit-scrollbar,
.start-panel::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.module-columns::-webkit-scrollbar-track,
.favorite-list::-webkit-scrollbar-track,
.start-panel::-webkit-scrollbar-track {
  background: transparent;
}

.module-columns::-webkit-scrollbar-thumb,
.favorite-list::-webkit-scrollbar-thumb,
.start-panel::-webkit-scrollbar-thumb {
  background: rgba(219, 236, 255, 0.34);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.module-columns::-webkit-scrollbar-thumb:hover,
.favorite-list::-webkit-scrollbar-thumb:hover,
.start-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(223, 238, 255, 0.52);
}

.task-icon:hover {
  transform: translateY(-1px);
  border-color: rgba(171, 218, 255, 0.86);
  background: rgba(16, 30, 48, 0.74);
}

.taskbar-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
}

.taskbar-status strong {
  color: var(--text-main);
}

/* ── Language Switch in Taskbar ── */
.taskbar-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2px;
}

.taskbar-lang-btn {
  border: 0;
  background: transparent;
  color: rgba(244, 248, 255, 0.5);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.taskbar-lang-btn:hover {
  color: rgba(244, 248, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.taskbar-lang-btn.active {
  color: #fff;
  background: rgba(76, 183, 255, 0.35);
}

.taskbar-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 248, 255, 0.7);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.taskbar-theme-btn svg {
  opacity: 0.7;
}

.taskbar-theme-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.taskbar-theme-btn .taskbar-theme-label {
  font-size: 10px;
}

@media (max-width: 1100px) {
  .start-grid {
    grid-template-columns: 1fr;
  }

  .settings-rail {
    display: none;
  }

  .submenu {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .module-columns {
    flex-direction: column;
  }

  .start-panel {
    min-height: 86vh;
    overflow: auto;
  }
}

@media (max-width: 680px) {
  .desktop-shell {
    padding: 14px;
  }

  .start-button {
    bottom: 78px;
  }

  .start-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap input {
    width: 100%;
  }

  .module-columns {
    flex-direction: column;
  }

  .module-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .module-actions,
  .favorite-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .taskbar {
    width: calc(100vw - 12px);
    bottom: 8px;
  }

  .taskbar-status {
    display: none;
  }
}

/* ════════════════════════════════════════════
   Panda Chat Widget
   ════════════════════════════════════════════ */

.panda-widget {
  position: fixed;
  bottom: 80px;
  left: 16px;
  z-index: 55;
}

.panda-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 6px;
  border-radius: 28px;
  background: rgba(20, 36, 66, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  cursor: pointer;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.panda-trigger:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(76, 183, 255, 0.3);
  border-color: rgba(76, 183, 255, 0.4);
}

.panda-trigger-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.panda-emoji {
  font-size: 22px;
  line-height: 1;
}

.panda-trigger-label {
  font-size: 12px;
  color: rgba(244, 248, 255, 0.88);
}

.panda-chat {
  position: absolute;
  bottom: 48px;
  left: 0;
  width: 280px;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(28, 46, 80, 0.92), rgba(14, 24, 44, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panda-chat[hidden] {
  display: none !important;
}

.panda-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--text-main);
}

.panda-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.panda-chat-close {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(244, 248, 255, 0.7);
  cursor: pointer;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.panda-chat-close:hover {
  background: rgba(255, 91, 91, 0.5);
}

.panda-chat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(244, 248, 255, 0.5);
  margin-bottom: 8px;
}

.panda-chat-bubble {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(244, 248, 255, 0.88);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panda-chat-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panda-chat-input input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  padding: 6px 10px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

.panda-chat-input input::placeholder {
  color: rgba(244, 248, 255, 0.4);
}

.panda-send-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--win-blue);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.panda-clear-btn {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(244, 248, 255, 0.45);
  font-size: 11px;
  padding: 6px;
  cursor: pointer;
  text-align: right;
  padding-right: 14px;
}

.panda-clear-btn:hover {
  color: rgba(255, 120, 120, 0.7);
}

.panda-chat-bubble.panda-user {
  background: rgba(76, 183, 255, 0.15);
  border-color: rgba(76, 183, 255, 0.2);
  text-align: right;
}

.panda-chat-body {
  padding: 12px;
  flex: 1;
  min-height: 80px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ════════════════════════════════════════════
   Taskbar Notification Bell
   ════════════════════════════════════════════ */

.taskbar-bell {
  position: relative;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(244, 248, 255, 0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.12s ease;
}

.taskbar-bell:hover {
  background: rgba(255, 255, 255, 0.12);
}

.taskbar-bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

/* ════════════════════════════════════════════
   Win11 Notification Panel
   ════════════════════════════════════════════ */

.win11-notif-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 48px;
  width: min(400px, 90vw);
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: rgba(16, 24, 44, 0.92);
  border-left: 1px solid rgba(188, 221, 255, 0.14);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.win11-notif-panel[hidden] {
  display: flex !important;
  pointer-events: none;
}

.win11-notif-panel.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notif-panel-head strong {
  color: rgba(244, 248, 255, 0.95);
  font-size: 14px;
  font-weight: 700;
}

.notif-panel-head button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 248, 255, 0.85);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.notif-panel-head button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.notif-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: rgba(219, 228, 255, 0.5);
  font-size: 13px;
}

.notif-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(219, 228, 255, 0.5);
  padding: 8px 6px 4px;
}

.notif-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 10px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.12s ease;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.notif-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: rgba(47, 140, 255, 0.18);
}

.notif-item-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(244, 248, 255, 0.92);
  line-height: 1.3;
}

.notif-item-copy span {
  display: block;
  font-size: 11px;
  color: rgba(219, 228, 255, 0.6);
  line-height: 1.3;
  margin-top: 2px;
}

.notif-item-time {
  font-size: 10px;
  color: rgba(219, 228, 255, 0.4);
  white-space: nowrap;
}

/* ════════════════════════════════════════════
   Win11 Toast Notifications
   ════════════════════════════════════════════ */

.win11-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(188, 221, 255, 0.18);
  background: rgba(16, 24, 44, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translateX(calc(100% + 32px));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.win11-toast[hidden] {
  display: flex !important;
  pointer-events: none;
}

.win11-toast.is-visible {
  transform: translateX(0);
  pointer-events: auto;
}

.win11-toast-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.win11-toast-copy {
  flex: 1;
  min-width: 0;
}

.win11-toast-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(244, 248, 255, 0.95);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win11-toast-copy span {
  display: block;
  font-size: 12px;
  color: rgba(219, 228, 255, 0.7);
  line-height: 1.3;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win11-toast-close {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(244, 248, 255, 0.6);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.win11-toast-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(244, 248, 255, 0.9);
}

/* ════════════════════════════════════════════
   Bizlo Floating Stage
   ════════════════════════════════════════════ */

.bizlo-floating-stage {
  position: fixed;
  z-index: 34;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(188, 221, 255, 0.18);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(16, 24, 44, 0.82);
  top: 60px;
  right: 80px;
  width: min(860px, calc(100vw - 100px));
  height: min(620px, calc(100vh - 110px));
}

.bizlo-floating-stage[hidden] {
  display: none !important;
}

.bizlo-floating-chrome {
  flex: 0 0 auto;
}

.bizlo-floating-drag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 10px;
  cursor: grab;
  user-select: none;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bizlo-floating-drag:active {
  cursor: grabbing;
}

.bizlo-floating-drag strong {
  font-size: 12px;
  font-weight: 600;
  color: rgba(244, 248, 255, 0.92);
  letter-spacing: 0.02em;
}

.bizlo-floating-actions {
  display: flex;
  gap: 4px;
}

.bizlo-floating-actions button {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(234, 245, 255, 0.85);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.12s ease;
}

.bizlo-floating-actions button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.bizlo-floating-actions [data-bizlo-stage-action='close']:hover {
  background: rgba(255, 80, 80, 0.65);
}

.bizlo-floating-frame {
  flex: 1 1 0;
  width: 100%;
  border: 0;
  background: transparent;
}

.bizlo-floating-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  z-index: 2;
}

.bizlo-floating-resize::after {
  content: '';
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(188, 221, 255, 0.35);
  border-bottom: 2px solid rgba(188, 221, 255, 0.35);
  border-radius: 0 0 2px 0;
}

/* ════════════════════════════════════════════
   Shortcut Picker Panel
   ════════════════════════════════════════════ */

.shortcut-picker {
  position: fixed;
  top: 50px;
  left: 14px;
  z-index: 9998;
  width: 320px;
  max-height: 70vh;
  border-radius: 14px;
  background: rgba(20, 36, 66, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shortcut-picker[hidden] {
  display: none !important;
}

.shortcut-picker-head {
  display: none;
}

.shortcut-picker-close {
  width: 24px;
  height: 24px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(244, 248, 255, 0.7);
  cursor: pointer;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.shortcut-picker-close:hover {
  background: rgba(255, 91, 91, 0.5);
}

.shortcut-picker-list {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  overflow-y: auto;
  max-height: 70vh;
}

.shortcut-picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
}

.shortcut-picker-item:hover {
  background: rgba(76, 183, 255, 0.12);
  border-color: rgba(76, 183, 255, 0.2);
}

.shortcut-picker-item .app-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.shortcut-picker-item .app-icon .workplace-glyph {
  width: 20px;
  height: 20px;
}

.shortcut-picker-item .app-label {
  font-size: 10px;
  text-align: center;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ════════════════════════════════════════════
   Desktop Icons Layer
   ════════════════════════════════════════════ */

.desktop-icons-layer {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.desktop-icon {
  position: absolute;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.15s ease;
  user-select: none;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.08);
}

.desktop-icon.is-dragging {
  opacity: 0.7;
  z-index: 999;
  transition: none;
}

.desktop-icon-img {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(var(--icon-accent-r, 76), var(--icon-accent-g, 183), var(--icon-accent-b, 255), 0.12);
  color: var(--icon-accent, #4cb7ff);
}

.desktop-icon-img .workplace-glyph {
  width: 24px;
  height: 24px;
}

.desktop-icon-label {
  font-size: 10px;
  color: rgba(244, 248, 255, 0.92);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ════════════════════════════════════════════
   Desktop Context Menu
   ════════════════════════════════════════════ */

.desktop-context-menu {
  position: fixed;
  z-index: 9999;
  min-width: 160px;
  background: linear-gradient(155deg, rgba(28, 46, 82, 0.92), rgba(14, 24, 44, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}

.desktop-context-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(244, 248, 255, 0.9);
  font-size: 12px;
  padding: 8px 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.desktop-context-menu button:hover {
  background: rgba(76, 183, 255, 0.18);
}

/* ════════════════════════════════════════════
   Window Resize Handles
   ════════════════════════════════════════════ */

.resize-handle {
  position: absolute;
  z-index: 10;
}

.app-window.is-maximized .resize-handle {
  display: none;
}

.resize-n {
  top: -4px;
  left: 8px;
  right: 8px;
  height: 8px;
  cursor: n-resize;
}
.resize-s {
  bottom: -4px;
  left: 8px;
  right: 8px;
  height: 8px;
  cursor: s-resize;
}
.resize-e {
  right: -4px;
  top: 8px;
  bottom: 8px;
  width: 8px;
  cursor: e-resize;
}
.resize-w {
  left: -4px;
  top: 8px;
  bottom: 8px;
  width: 8px;
  cursor: w-resize;
}
.resize-ne {
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  cursor: ne-resize;
}
.resize-nw {
  top: -4px;
  left: -4px;
  width: 14px;
  height: 14px;
  cursor: nw-resize;
}
.resize-se {
  bottom: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  cursor: se-resize;
}
.resize-sw {
  bottom: -4px;
  left: -4px;
  width: 14px;
  height: 14px;
  cursor: sw-resize;
}

/* ════════════════════════════════════════════
   Add Shortcut Button (+)
   ════════════════════════════════════════════ */

.desktop-add-shortcut-btn {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 6;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(20, 36, 66, 0.55);
  backdrop-filter: blur(10px);
  color: rgba(244, 248, 255, 0.8);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.desktop-add-shortcut-btn:hover {
  background: rgba(76, 183, 255, 0.22);
  border-color: rgba(76, 183, 255, 0.4);
  transform: scale(1.1);
}

/* ════════════════════════════════════════════
   Wallpaper Settings Panel
   ════════════════════════════════════════════ */

.wallpaper-settings-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: min(420px, calc(100vw - 40px));
  border-radius: 14px;
  border: 1px solid rgba(188, 221, 255, 0.18);
  background: rgba(16, 24, 44, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.wallpaper-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wallpaper-settings-header strong {
  font-size: 14px;
  color: rgba(244, 248, 255, 0.95);
  font-weight: 600;
}

.wallpaper-settings-header button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(234, 245, 255, 0.8);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.12s;
}

.wallpaper-settings-header button:hover {
  background: rgba(255, 80, 80, 0.5);
}

.wallpaper-settings-body {
  padding: 16px;
}

.wallpaper-settings-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(244, 248, 255, 0.7);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wallpaper-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.15s,
    transform 0.15s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.wallpaper-thumb:hover {
  border-color: rgba(76, 183, 255, 0.5);
  transform: scale(1.03);
}

.wallpaper-thumb.is-active {
  border-color: rgba(76, 183, 255, 0.9);
  box-shadow: 0 0 12px rgba(76, 183, 255, 0.3);
}

.wallpaper-thumb-label {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  padding: 3px 6px;
  margin-bottom: 4px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
}

.wallpaper-thumb-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.2);
}

.wallpaper-thumb-custom:hover {
  border-color: rgba(76, 183, 255, 0.5);
  border-style: dashed;
}

/* ════════════════════════════════════════════
   Taskbar Bizlo Button
   ════════════════════════════════════════════ */

.task-icon-bizlo {
  background: rgba(16, 30, 55, 0.65);
  border-color: rgba(76, 183, 255, 0.25);
}

.task-icon-bizlo:hover {
  background: rgba(20, 40, 70, 0.8);
  border-color: rgba(76, 183, 255, 0.6);
}
