.taskbar {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:var(--taskbar-h);
  z-index:50;
  display:flex;
  align-items:stretch;
  justify-content:center;
  background:rgba(22,23,25,.96);
  border-top:1px solid #35363a;
  box-shadow:0 -2px 8px rgba(0,0,0,.18)
}

.tb-center {
  display:flex;
  align-items:stretch;
  min-width:0;
  max-width:calc(100% - 210px)
}

.taskbar.align-left {
  justify-content:flex-start
}

.taskbar.align-left .tb-center {
  flex:1;
  max-width:none
}

.taskbar.align-left .tb-right {
  position:static
}

.tb-btn {
  height:100%;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 13px;
  border:none;
  background:none;
  color:var(--text-dim);
  cursor:pointer
}

.tb-btn:hover {
  background:var(--surface-2);
  color:var(--text)
}

.tb-start {
  padding:0 14px;
  color:var(--text);
  gap:0
}

.tb-start.active {
  background:var(--surface-3);
  color:var(--accent)
}

.tb-logo {
  position:relative;
  width:17px;
  height:17px;
  flex-shrink:0;
  border:1px solid var(--accent);
  border-radius:3px
}

.tb-logo::after {
  content:"";
  position:absolute;
  inset:4px;
  background:var(--accent);
  border-radius:1px
}

.tb-sep {
  width:1px;
  margin:9px 0;
  flex-shrink:0;
  background:var(--line)
}

.taskbar-apps {
  flex:1;
  display:flex;
  align-items:stretch;
  gap:2px;
  padding:0 5px;
  overflow-x:auto;
  scrollbar-width:none
}

.taskbar-apps::-webkit-scrollbar {
  display:none
}

.tb-app {
  max-width:180px;
  display:flex;
  align-items:center;
  gap:7px;
  margin:5px 0;
  padding:0 11px;
  flex-shrink:0;
  border:1px solid transparent;
  border-radius:3px;
  background:none;
  color:var(--text-dim);
  font-family:var(--sans);
  font-size:11px;
  cursor:pointer
}

.tb-app span {
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis
}

.tb-app:hover {
  background:var(--surface-2)
}

.tb-app.active {
  border-color:var(--line);
  background:var(--surface-3);
  color:var(--text)
}

.tb-app.minimized {
  opacity:.55
}

.tb-app .dot {
  width:5px;
  height:5px;
  flex-shrink:0;
  border-radius:50%;
  background:var(--accent)
}

.tb-app.pinned {
  opacity:.8
}

.tb-app.pinned .dot {
  background:transparent;

  border:1px solid var(--text-faint)
}

.ctx-menu.pin-mode .ctx-item {
  display:none
}

.ctx-menu.pin-mode .ctx-item.pin-only {
  display:flex
}

.ctx-item.pin-only {
  display:none
}

.ctx-menu.task-mode .ctx-item {
  display:none
}

.ctx-menu.task-mode .ctx-item.task-only {
  display:flex
}

.ctx-item.task-only {
  display:none
}

.tb-right {
  display:flex;
  align-items:stretch;
  position:absolute;
  top:0;
  right:0;
  bottom:0
}

.tb-shortcuts {
  display:flex;
  align-items:stretch
}

.tb-clock {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  min-width:88px;
  padding:0 13px;
  font-family:var(--sans)
}

.tb-clock:hover {
  background:var(--surface-2)
}

.tb-time {
  color:var(--text);
  font-size:12px;
  font-weight:500;
  line-height:1.25;
  font-variant-numeric:tabular-nums;
  min-width:8ch;
  text-align:right
}

.tb-date {
  color:var(--text-faint);
  font-size:9px;
  line-height:1.25;
  white-space:nowrap
}

.start-menu {
  position:absolute;
  left:50%;
  bottom:calc(var(--taskbar-h) + 8px);
  z-index:100;
  width:360px;
  max-height:70vh;
  overflow:auto;
  display:flex;
  flex-direction:column;
  background:color-mix(in srgb,var(--surface) 94%,transparent);

  border:1px solid var(--line-strong);
  border-radius:10px;

  box-shadow:0 18px 45px rgba(0,0,0,.42),0 3px 10px rgba(0,0,0,.24);
  backdrop-filter:blur(14px);
  opacity:0;
  pointer-events:none;
  transform:translate(-50%, 6px);
  transition:transform .13s ease,opacity .13s ease
}

.start-menu.open {
  opacity:1;
  pointer-events:auto;
  transform:translate(-50%, 0)
}

.sm-header {
  padding:18px 17px 15px;
  border-bottom:1px solid var(--line)
}

.sm-name {
  color:var(--text);
  font-size:15px;
  font-weight:650
}

.sm-role {
  margin-top:3px;
  color:var(--text-faint);
  font-family:var(--mono);
  font-size:10px
}

.sm-search {
  display:flex;
  align-items:center;
  gap:8px;
  margin:12px 14px 5px;
  padding:8px 10px;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:3px
}

.sm-search svg {
  width:13px;
  height:13px;
  flex-shrink:0;
  color:var(--text-faint)
}

.sm-list {
  display:flex;
  flex-direction:column;
  padding:7px
}

.sm-sec {
  padding:7px 7px 0
}

.sm-sec-head {
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:5px 8px 7px;

  color:var(--text-faint);

  font-family:var(--mono);
  font-size:9px;
  font-weight:600;

  letter-spacing:.04em;
  text-transform:uppercase
}

.sm-allbtn {
  border:none;
  background:none;

  color:var(--text-dim);

  font-family:var(--sans);
  font-size:10px;

  cursor:pointer;

  text-transform:none;
  letter-spacing:0
}

.sm-allbtn:hover {
  color:var(--accent)
}

.sm-pinned {
  display:grid;

  grid-template-columns:repeat(4, 1fr);

  gap:2px;

  padding:0 0 4px
}

.sm-app {
  display:flex;
  flex-direction:column;
  align-items:center;

  gap:6px;

  padding:9px 2px;

  border:none;
  border-radius:3px;

  background:none;
  color:var(--text);

  font-size:10px;

  cursor:pointer
}

.sm-app:hover {
  background:var(--surface-2)
}

.sm-app .g {
  position:relative;

  width:24px;
  height:24px
}

.sm-app .g .glyph-file,
.sm-app .g .glyph-folder,
.sm-app .g .glyph-app,
.sm-app .g .glyph-link {
  width:48px;
  height:48px;

  transform:scale(.5);
  transform-origin:top left
}

.sm-app .lbl {
  max-width:100%;

  overflow:hidden;

  white-space:nowrap;
  text-overflow:ellipsis
}

.sm-cat-label {
  padding:8px 8px 4px;

  color:var(--text-faint);

  font-family:var(--mono);
  font-size:9px;
  font-weight:600;

  letter-spacing:.04em;
  text-transform:uppercase
}

.sm-recent {
  min-width:0;
  overflow:hidden;
  padding:7px 7px 0
}

.sm-recent-label {
  padding:5px 8px 7px;
  color:var(--text-faint);
  font-family:var(--mono);
  font-size:9px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase
}

.sm-recent-row {
  display:flex;
  gap:6px;
  overflow-x:auto;
  max-width:100%;
  padding:0 8px 9px;
  scrollbar-width:none
}

.sm-recent-row::-webkit-scrollbar {
  display:none
}

.sm-recent-chip {
  display:flex;
  align-items:center;
  gap:7px;
  flex-shrink:0;
  max-width:170px;
  overflow:hidden;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface-2);
  color:var(--text-dim);
  font-family:var(--sans);
  font-size:11px;
  cursor:pointer
}

.sm-recent-chip .lbl {
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis
}

.sm-recent-chip:hover {
  background:var(--surface-3);
  color:var(--text)
}

.sm-recent-chip .g {
  position:relative;
  width:16px;
  height:16px;
  flex-shrink:0
}

.sm-item {
  width:100%;
  display:flex;
  align-items:center;
  gap:11px;
  padding:9px 8px;
  border:none;
  border-radius:3px;
  background:none;
  color:var(--text);
  font-size:12px;
  text-align:left;
  cursor:pointer
}

.sm-item:hover {
  background:var(--surface-2)
}

.sm-item .g {
  position:relative;
  width:20px;
  height:20px;
  flex-shrink:0
}

.sm-footer {
  display:flex;
  gap:5px;
  padding:7px;
  border-top:1px solid var(--line)
}

.sm-footer .sm-item {
  flex:1 1 0;
  min-width:0;
  color:var(--text-dim);
  font-size:11px
}

.sm-empty {
  padding:24px 18px;
  color:var(--text-faint);
  font-family:var(--mono);
  font-size:10px;
  text-align:center
}

.ctx-menu {
  position:fixed;
  z-index:70;
  min-width:195px;
  display:none;
  padding:5px;
  background:var(--surface);
  border:1px solid var(--line-strong);
  border-radius:4px;
  box-shadow:var(--shadow)
}

.ctx-menu.open {
  display:block
}

.ctx-item {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border:none;
  border-radius:2px;
  background:none;
  color:var(--text);
  font-size:12px;
  text-align:left;
  cursor:pointer
}

.ctx-item:hover {
  background:var(--surface-2)
}

.ctx-item .k {
  color:var(--text-faint);
  font-family:var(--mono);
  font-size:9px
}

.ctx-sep {
  height:1px;
  margin:5px 2px;
  background:var(--line)
}

.toast {
  position:absolute;
  left:50%;
  bottom:calc(var(--taskbar-h) + 17px);
  z-index:80;
  padding:10px 15px;
  background:var(--surface);
  border:1px solid var(--line-strong);
  border-radius:4px;
  box-shadow:var(--shadow);
  color:var(--text);
  font-size:11px;
  opacity:0;
  pointer-events:none;
  transform:translate(-50%,8px);
  transition:opacity .15s ease,transform .15s ease
}

.toast.show {
  opacity:1;
  transform:translate(-50%,0)
}

/* ============================================================
   POWER MENU + POWER SCREEN
   ============================================================ */
.sm-footer {
  position:relative
}

.sm-power-menu {
  position:absolute;
  left:7px;
  right:7px;
  bottom:calc(100% + 5px);

  padding:5px;

  background:var(--surface-2);

  border:1px solid var(--line-strong);
  border-radius:4px;

  box-shadow:var(--shadow)
}

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.tb-bell {
  position:relative
}

/* ============================================================
   CLOCK FLYOUT
   ============================================================ */
.tb-clock {
  background:none;

  border:none;

  font:inherit;

  cursor:pointer
}

.clock-flyout {
  position:absolute;

  right:8px;
  bottom:calc(var(--taskbar-h) + 8px);

  z-index:100;

  width:280px;

  padding:14px;

  background:color-mix(in srgb,var(--surface) 94%,transparent);

  border:1px solid var(--line-strong);
  border-radius:10px;

  box-shadow:0 18px 45px rgba(0,0,0,.42),0 3px 10px rgba(0,0,0,.24);
  backdrop-filter:blur(14px)
}

.clock-big {
  color:var(--text);

  font-size:26px;
  font-weight:650;

  letter-spacing:-.02em
}

.clock-sub {
  margin-top:2px;

  color:var(--text-dim);

  font-size:12px
}

.cal-head {
  display:flex;
  align-items:center;
  justify-content:space-between;

  margin:12px 0 8px
}

.cal-title {
  color:var(--text);

  font-size:12px;
  font-weight:600
}

.cal-nav {
  display:flex;

  gap:4px
}

.cal-btn {
  width:26px;
  height:26px;

  display:flex;
  align-items:center;
  justify-content:center;

  border:1px solid var(--line);
  border-radius:3px;

  background:var(--surface-2);
  color:var(--text-dim);

  font-size:13px;

  cursor:pointer
}

.cal-btn:hover {
  background:var(--surface-3);
  color:var(--text)
}

.cal-grid {
  display:grid;

  grid-template-columns:repeat(7, 1fr);

  gap:2px
}

.cal-dow {
  padding:4px 0;

  color:var(--text-faint);

  font-family:var(--mono);
  font-size:9px;
  text-align:center
}

.cal-day {
  aspect-ratio:1;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:3px;

  color:var(--text-dim);

  font-size:11px
}

.cal-day.dim {
  opacity:.3
}

.cal-day.today {
  background:var(--accent);
  color:var(--accent-ink);

  font-weight:700
}
