/* Reference after styles.css for the Windows 7 start menu slice. */
.start-menu.win7-start-menu {
  position: absolute;
  z-index: 125;
  left: 6px;
  bottom: calc(var(--taskbar-h) + 4px);
  width: min(414px, calc(100vw - 12px));
  height: min(456px, calc(100dvh - var(--taskbar-h) - 10px));
  min-height: 0;
  max-height: calc(100dvh - var(--taskbar-h) - 10px);
  display: grid;
  grid-template-columns: minmax(228px, 1fr) minmax(150px, 166px);
  gap: 0;
  padding: 0;
  overflow: hidden;
  color: #111;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.25;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .13) 42%, rgba(0, 0, 0, .10) 43%, rgba(0, 0, 0, .18)),
    linear-gradient(180deg, rgba(83, 132, 166, .97), rgba(42, 83, 114, .98) 48%, rgba(23, 52, 78, .99));
  box-shadow:
    0 14px 32px rgba(0, 0, 0, .46),
    inset 0 1px 0 rgba(255, 255, 255, .72),
    inset 0 0 0 1px rgba(42, 87, 121, .42);
  text-shadow: none;
}

.start-menu.win7-start-menu[hidden] {
  display: none;
}

.win7-start-menu::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 42%;
  pointer-events: none;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0));
}

.start-menu-left,
.start-menu-right {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.start-menu-left {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 7px 0 0;
  border-radius: 6px 0 0 6px;
  border-right: 1px solid rgba(0, 0, 0, .28);
  background: linear-gradient(180deg, #fff 0%, #f5f8fb 66%, #edf2f7 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .76);
}

.start-menu-programs {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 7px 4px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.start-menu.win7-start-menu .start-menu-app[hidden] {
  display: none;
}

.start-menu.win7-start-menu .start-menu-app,
.start-menu.win7-start-menu .start-menu-all-programs {
  position: relative;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  margin: 0;
  padding: 2px 7px 2px 4px;
  color: #111;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px;
  outline: 0;
}

.start-menu.win7-start-menu .start-menu-app,
.start-menu.win7-start-menu .start-menu-all-programs,
.start-menu.win7-start-menu .start-menu-system-links a {
  color: inherit;
}

.start-menu.win7-start-menu .start-menu-app:hover,
.start-menu.win7-start-menu .start-menu-app:focus-visible,
.start-menu.win7-start-menu .start-menu-all-programs:hover,
.start-menu.win7-start-menu .start-menu-all-programs:focus-visible {
  color: #041b31;
  border-color: #7da2c8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(196, 226, 252, .86) 45%, rgba(166, 211, 247, .9) 46%, rgba(213, 239, 255, .92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 1px 2px rgba(34, 82, 120, .18);
}

.start-menu-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.start-menu-icon img {
  max-width: 27px;
  max-height: 27px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .22));
}

.start-menu-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.start-menu-submenu-marker {
  position: relative;
  width: 0;
  height: 0;
  justify-self: end;
  cursor: default;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid rgba(42, 55, 68, .68);
}

.start-menu-submenu-marker::after {
  content: "";
  position: absolute;
  right: -9px;
  top: -15px;
  width: 24px;
  height: 30px;
}

.start-menu-submenu-marker:hover,
.start-menu-submenu-marker:focus-visible,
.start-menu-submenu-marker.is-active {
  border-left-color: #103a5d;
  outline: 0;
}

.start-menu-submenu-marker:focus-visible::after,
.start-menu-submenu-marker.is-active::after {
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(194, 225, 251, .62) 48%, rgba(157, 207, 246, .66) 49%, rgba(216, 240, 255, .72));
  box-shadow:
    inset 0 0 0 1px rgba(103, 151, 195, .72),
    0 1px 2px rgba(34, 82, 120, .14);
  z-index: -1;
}

.start-menu-flyout {
  position: absolute;
  z-index: 5;
  width: min(214px, calc(100vw - 18px));
  padding: 4px;
  color: #111;
  border: 1px solid rgba(74, 109, 145, .92);
  border-radius: 4px;
  background:
    linear-gradient(180deg, #fbfdff, #edf4fb 70%, #dfeaf5);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255, 255, 255, .94);
  text-shadow: none;
}

.start-menu-flyout[hidden] {
  display: none;
}

.start-menu.win7-start-menu .start-menu-flyout-title {
  display: block;
  padding: 5px 8px 6px;
  margin: 0;
  overflow: hidden;
  color: #466477;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-menu-flyout-actions {
  display: grid;
  gap: 1px;
}

.start-menu.win7-start-menu .start-menu-flyout-action {
  min-height: 28px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 4px 8px 4px 5px;
  cursor: pointer;
  color: #111;
  font: 12px/1.2 "Segoe UI", Tahoma, Arial, sans-serif;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
}

.start-menu.win7-start-menu .start-menu-flyout-action:hover,
.start-menu.win7-start-menu .start-menu-flyout-action:focus-visible {
  color: #041b31;
  border-color: #7da2c8;
  outline: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(196, 226, 252, .86) 45%, rgba(166, 211, 247, .9) 46%, rgba(213, 239, 255, .92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 1px 2px rgba(34, 82, 120, .18);
}

.start-menu.win7-start-menu .start-menu-flyout-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #244d70;
  font-size: 13px;
  line-height: 1;
}

.start-menu.win7-start-menu .start-menu-flyout-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-menu-divider {
  display: block;
  height: 1px;
  margin: 5px 4px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .20), transparent);
}

.start-menu.win7-start-menu .start-menu-all-programs {
  min-height: 32px;
  flex: 0 0 auto;
  margin: 5px 7px 0;
  grid-template-columns: minmax(0, 1fr) 12px;
  font-weight: 600;
}

.start-menu-search {
  position: relative;
  flex: 0 0 auto;
  padding: 7px;
  border-top: 1px solid #d6dee7;
  background: linear-gradient(180deg, #eef4f9, #dfe8f1);
  border-radius: 0 0 0 6px;
}

.start-menu-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.start-menu-search input {
  box-sizing: border-box;
  width: 100%;
  height: 27px;
  padding: 4px 29px 5px 8px;
  color: #1a1a1a;
  font: 12px/1.2 "Segoe UI", Tahoma, Arial, sans-serif;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  background:
    linear-gradient(180deg, #fff, #f4f7fa);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, .16),
    0 1px 0 rgba(255, 255, 255, .82);
}

.start-menu-search input::placeholder {
  color: #67737e;
  font-style: italic;
}

.start-menu-search::before {
  content: "";
  position: absolute;
  right: 17px;
  top: 16px;
  width: 10px;
  height: 10px;
  border: 2px solid #557995;
  border-radius: 50%;
  box-sizing: border-box;
}

.start-menu-search::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 25px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #557995;
  transform: rotate(45deg);
  transform-origin: left center;
}

.start-menu-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 74px 7px 7px;
  color: #fff;
  border-radius: 0 6px 6px 0;
  background:
    radial-gradient(circle at 72% 0, rgba(255, 255, 255, .32), transparent 0 28%, transparent 56%),
    linear-gradient(180deg, rgba(95, 139, 171, .80), rgba(43, 83, 116, .86) 54%, rgba(25, 54, 80, .92));
  text-shadow: 0 1px 2px rgba(0, 0, 0, .82);
}

.start-menu-user {
  position: absolute;
  left: 50%;
  top: 7px;
  display: grid;
  justify-items: center;
  gap: 4px;
  transform: translateX(-50%);
}

.start-menu-user strong {
  display: block;
  max-width: 144px;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-menu-avatar {
  width: 50px;
  height: 50px;
  display: block;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(161, 202, 231, .72)),
    rgba(39, 78, 110, .55);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255, 255, 255, .85);
}

.start-menu-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 3px;
}

.start-menu-system-links {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.start-menu.win7-start-menu .start-menu-system-links a {
  display: block;
  padding: 6px 8px;
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px;
}

.start-menu.win7-start-menu .start-menu-system-links a:hover,
.start-menu.win7-start-menu .start-menu-system-links a:focus-visible {
  color: #fff;
  border-color: rgba(214, 238, 255, .46);
  background: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .26),
    0 1px 2px rgba(0, 0, 0, .18);
}

.start-menu-right-divider {
  display: block;
  height: 1px;
  margin: 7px 8px 6px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .46), transparent);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .24);
}

.start-menu-power {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0;
  margin-top: auto;
  padding-top: 12px;
}

.start-menu-power-button,
.start-menu-power-options {
  height: 28px;
  cursor: pointer;
  color: #fff;
  font: 12px/1 "Segoe UI", Tahoma, Arial, sans-serif;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .72);
  border: 1px solid rgba(4, 19, 32, .82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .21), rgba(255, 255, 255, .06) 42%, rgba(0, 0, 0, .22) 43%, rgba(0, 0, 0, .32)),
    linear-gradient(180deg, #537896, #274c68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 1px 2px rgba(0, 0, 0, .35);
}

.start-menu-power-button {
  min-width: 74px;
  padding: 0 14px;
  border-radius: 3px 0 0 3px;
}

.start-menu-power-options {
  position: relative;
  width: 28px;
  margin-left: -1px;
  padding: 0;
  border-radius: 0 3px 3px 0;
}

.start-menu-power-options::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
  transform: translate(-50%, -25%);
}

.start-menu-power-button:hover,
.start-menu-power-options:hover,
.start-menu-power-button:focus-visible,
.start-menu-power-options:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .09) 42%, rgba(0, 0, 0, .20) 43%, rgba(0, 0, 0, .24)),
    linear-gradient(180deg, #678ca8, #315c7b);
}

@media (max-width: 470px) {
  .start-menu.win7-start-menu {
    left: 5px;
    bottom: calc(var(--taskbar-h) + 4px);
    width: calc(100vw - 10px);
    height: min(444px, calc(100dvh - var(--taskbar-h) - 8px));
    grid-template-columns: minmax(0, 1fr);
  }

  .start-menu.win7-start-menu .start-menu-app,
  .start-menu.win7-start-menu .start-menu-all-programs {
    min-height: 32px;
    gap: 4px;
    padding-right: 5px;
  }

  .start-menu-icon {
    width: 27px;
    height: 27px;
  }

  .start-menu-icon img {
    max-width: 27px;
    max-height: 27px;
  }

  .start-menu-right {
    display: none;
  }

  .start-menu.win7-start-menu .start-menu-system-links a {
    padding-left: 6px;
    padding-right: 6px;
  }

  .start-menu-flyout {
    left: 5px !important;
    right: 5px;
    width: auto;
  }
}
