/* Start menu: blue header, white left column, pale-blue right column, dark-blue footer. */

.start-menu {
  position: fixed;
  left: 0;
  bottom: var(--taskbar-h);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  width: 400px;
  max-width: 100vw;
  max-height: calc(100vh - var(--taskbar-h) - 8px);
  max-height: calc(100dvh - var(--taskbar-h) - 8px);
  overflow: hidden;
  border: 1px solid #0a3eb8;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 3px 0 10px rgb(0 0 0 / 0.4);
  user-select: none;
  -webkit-user-select: none;
}

.start-menu__head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--menu-orange) 18%, var(--menu-orange) 82%, transparent) 1;
  background:
    radial-gradient(90% 120% at 15% 0%, rgb(255 255 255 / 0.22), transparent 60%),
    linear-gradient(180deg, #1868ce 0%, #0e60cb 18%, #1b6cd3 48%, #2476dc 78%, #2a7ae2 100%);
  color: #fff;
}

.start-menu__avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border: 2px solid #e3ecfa;
  border-radius: 5px;
  object-fit: cover;
  background: #c9dcf5;
  box-shadow: 1px 1px 3px rgb(0 0 0 / 0.4);
}

.start-menu__user { font-family: var(--font-title); font-size: 15px; font-weight: 700; text-shadow: 1px 1px 2px rgb(0 0 0 / 0.55); }

.start-menu__cols {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  overflow: auto;
  border-left: 1px solid var(--menu-border);
  border-right: 1px solid var(--menu-border);
}

.start-menu__left,
.start-menu__right { display: flex; flex-direction: column; gap: 1px; padding: 6px 2px; }

.start-menu__left { background: #fff; }

.start-menu__right { border-left: 1px solid var(--menu-border); background: var(--menu-right); }

.start-menu__sep { height: 1px; margin: 4px 8px; background: linear-gradient(90deg, transparent, #c5c2b2 20%, #c5c2b2 80%, transparent); }

.start-menu__right .start-menu__sep { background: linear-gradient(90deg, transparent, #a5c3ea 20%, #a5c3ea 80%, transparent); }

.start-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  text-decoration: none;
}

.start-item__icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  object-fit: cover;
}

.start-item__text { display: flex; flex-direction: column; min-width: 0; }

.start-item__text strong,
.start-item__text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.start-item__text strong { font-weight: 700; }

.start-item__text small { color: var(--muted); font-size: 11px; }

.start-item--right { min-height: 30px; color: #00136b; }

.start-item--right .start-item__icon { width: 24px; height: 24px; }

.start-item:hover,
.start-item:focus-visible { background: var(--select); color: var(--select-text); }

.start-item:hover small,
.start-item:focus-visible small { color: var(--select-text); }

.start-item:focus-visible { outline: 1px dotted #fff; outline-offset: -2px; }

.start-menu__foot {
  display: flex;
  flex: none;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 10px;
  background: linear-gradient(180deg, #4282d6 0%, #3b85e0 5%, #418ae3 12%, #2f6fd2 50%, #1d57c3 90%, #1a4fb4 100%);
  border-top: 1px solid #1d4ea8;
}

.foot-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: none;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 0 2px rgb(0 0 0 / 0.4);
}

.foot-btn img { width: 22px; height: 22px; }

.foot-btn:hover { border-color: rgb(255 255 255 / 0.35); background: rgb(255 255 255 / 0.15); }

.foot-btn:focus-visible { outline: 1px dotted #fff; outline-offset: -3px; }

@media (max-width: 699px) {
  .start-menu { right: 0; width: auto; border-radius: 6px 6px 0 0; }

  .start-item { gap: 5px; padding: 2px 4px; }

  .start-item__icon { width: 28px; height: 28px; }
}
