.taskbar{
  position:absolute;
  left:0; right:0; bottom:0;
  height: 48px;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(10,12,16,0.68);
  border-top: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  z-index: 100000;
}
.start-btn{
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
  font-weight: 600;
}
.start-btn:hover{ background: rgba(255,255,255,0.12); }

.taskbar-windows{
  display:flex;
  gap: 8px;
  flex: 1;
  overflow:auto;
}
.taskwin{
  height: 36px;
  min-width: 120px;
  max-width: 220px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
  text-align:left;
  overflow:hidden;
  white-space:nowrap;
  text-overflow: ellipsis;
}
.taskwin.active{
  border-color: rgba(58,160,255,0.35);
  background: rgba(58,160,255,0.14);
}
.taskwin.minimized{
  opacity: 0.75;
}
.taskbar-right{
  display:flex;
  align-items:center;
  gap: 8px;
}
.clock{
  padding: 0 10px;
  height: 36px;
  display:flex;
  align-items:center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  font-weight: 600;
}

.start-menu{
  position:absolute;
  bottom: 56px;
  left: 10px;
  width: 320px;
  background: rgba(12,14,18,0.88);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow:hidden;
  z-index: 100001;
  backdrop-filter: blur(12px);
}
.start-menu.hidden{ display:none; }
/* Responsive Start Menu (smaller + columns on low height) */
.start-menu{
  /* shrink-to-content but cap width */
  width: fit-content;
  max-width: min(460px, calc(100vw - 20px));
  max-height: calc(100vh - 76px);
  overflow: auto;
  /* hide scrollbar unless needed (and even then keep it subtle/hidden) */
  scrollbar-width: none; /* Firefox */
}
.start-menu::-webkit-scrollbar{ width: 0; height: 0; } /* WebKit */

.start-items{
  padding: 10px;
  /* CSS columns prevent vertical scrolling on low viewports by placing items side-by-side */
  column-count: 1;
  column-gap: 10px;
}
@media (max-height: 720px){
  .start-items{ column-count: 2; }
}
@media (max-height: 520px){
  .start-items{ column-count: 3; }
}
/* Keep items intact in columns */
.start-item{ break-inside: avoid; width: 100%; display:flex; align-items:center; gap:10px; }

.start-menu-header{
  position: sticky;
  top: 0;
  background: rgba(12,14,18,0.92);
  backdrop-filter: blur(12px);
  z-index: 1;
}
.start-items{
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
@media (min-width: 640px){
  .start-items{ grid-template-columns: 1fr 1fr; }
}

.start-menu-header{
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.start-user{
  display:flex;
  gap: 10px;
  align-items:center;
}
.avatar{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(58,160,255,0.22);
  border: 1px solid rgba(58,160,255,0.25);
}
.start-username{ font-weight: 700; }
.start-sub{ color: var(--muted); font-size: 12px; margin-top: 1px; }

.start-item{
  display:flex;
  align-items:center;
  gap: 10px;
  width:100%;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor:pointer;
  font-size: 13px;
}
.start-item:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.10);
}
.start-icon{
  width: 26px;
  height: 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,0.9);
}

.start-menu-footer{
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.start-action{
  width:100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
}
.start-action:hover{ background: rgba(255,255,255,0.12); }
.hidden{ display:none; }


.start-section{
  font-size: 12px;
  color: rgba(232,238,249,0.65);
  padding: 6px 10px 2px 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.start-sep{
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 8px 6px;
  border-radius: 1px;
}


.start-search{
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
  margin-bottom: 10px;
}
.start-search::placeholder{ color: rgba(232,238,249,0.55); }


/* Start menu svg icon visibility */
.start-icon .icon-svg{ width:28px; height:28px; display:flex; align-items:center; justify-content:center; }
.start-icon .icon-svg svg{ width:28px; height:28px; color: rgba(232,238,249,0.95); }


/* Start Menu sizing override v7.4.1 */
.start-menu{
  width: fit-content;
  max-width: min(420px, calc(100vw - 20px));
  max-height: calc(100vh - 76px);
  overflow: auto; /* fallback; we try columns below to avoid scrolling on low screens */
}
.start-items{
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.start-item{
  white-space: nowrap;
}
@media (max-height: 700px){
  .start-menu{
    max-width: min(680px, calc(100vw - 20px));
  }
  .start-items{
    grid-template-columns: 1fr 1fr;
  }
}


.taskbar-item{ position:relative; }
.taskbar-item .badge{
  position:absolute;
  right:6px;
  top:4px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,77,77,.22);
  color:rgba(232,238,249,.95);
  font-size:11px;
  display:flex;
  align-items:center;
  justify-content:center;
}
