#boot-screen, #off-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}
#boot-screen.fade, #off-screen.fade { opacity: 0; }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.boot-logo { width: 96px; height: 96px; filter: drop-shadow(0 0 24px rgba(138, 182, 88, 0.35)); animation: boot-pulse 2.2s ease-in-out infinite; }
.boot-logo svg { width: 100%; height: 100%; }
@keyframes boot-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.boot-name { font-size: 26px; font-weight: 300; color: #e8e8e8; letter-spacing: 0.5px; }
.boot-sub { font-size: 13px; color: #7a7a7a; margin-top: -8px; }
.boot-spinner {
  width: 26px;
  height: 26px;
  margin-top: 26px;
  border: 3px solid rgba(138, 182, 88, 0.2);
  border-top-color: #8ab658;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#off-screen { flex-direction: column; gap: 10px; cursor: pointer; }
.off-text { color: #9a9a9a; font-size: 15px; }
.off-hint { color: #4a4a4a; font-size: 12px; }

#greeter {
  position: fixed;
  inset: 0;
  z-index: 9500;
  overflow: hidden;
  transition: opacity 0.45s, visibility 0.45s;
}
#greeter.gone { opacity: 0; visibility: hidden; }
.greeter-wall { position: absolute; inset: 0; background-image: var(--wp, linear-gradient(135deg, #0e2f2b, #123f38)); background-size: cover; background-position: center; transform: scale(1.03); filter: brightness(0.72) saturate(1.05); }
.greeter-shade { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.45)); }
.greeter-clock { position: absolute; top: 42px; left: 52px; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55); }
.g-time { font-size: 64px; font-weight: 300; letter-spacing: 1px; line-height: 1; }
.g-date { font-size: 16px; font-weight: 400; opacity: 0.92; margin-top: 8px; }
.greeter-center {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.g-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
.g-avatar svg { width: 56px; height: 56px; }
.g-user { color: #fff; font-size: 18px; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.g-pass-row { display: flex; align-items: center; gap: 0; margin-top: 4px; }
#g-pass {
  width: 220px;
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-right: none;
  border-radius: 19px 0 0 19px;
  outline: none;
  backdrop-filter: blur(6px);
  transition: border-color 0.15s, background 0.15s;
}
#g-pass::placeholder { color: rgba(255, 255, 255, 0.55); }
#g-pass:focus { border-color: var(--accent); background: rgba(0, 0, 0, 0.55); }
.g-go {
  width: 44px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0 19px 19px 0;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.15s;
}
.g-go:hover { background: var(--accent); border-color: var(--accent); }
.g-go svg { width: 18px; height: 18px; }
.g-hint { font-size: 12px; color: rgba(255, 255, 255, 0.6); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); min-height: 16px; }
.greeter-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}
.g-session { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.85); font-size: 13px; }
.g-session svg { width: 18px; height: 18px; }
.g-power { display: flex; gap: 6px; }
.g-pbtn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.g-pbtn:hover { background: rgba(255, 255, 255, 0.18); }
.g-pbtn svg { width: 19px; height: 19px; }

#session { position: fixed; inset: 0; }
#session.booting { animation: session-in 0.6s ease; }
@keyframes session-in { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }

#wallpaper {
  position: absolute;
  inset: 0;
  background-image: var(--wp, linear-gradient(135deg, #0e2f2b, #123f38));
  background-size: cover;
  background-position: center;
  transition: background-image 0.4s;
}

#desktop { position: absolute; inset: 0; overflow: hidden; }

#desktop-icons { position: absolute; inset: 0; }
.d-icon {
  position: absolute;
  width: 92px;
  padding: 6px 2px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  cursor: default;
}
.d-icon .di-img { width: 48px; height: 48px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); transition: transform 0.12s; }
.d-icon .di-img svg { width: 100%; height: 100%; }
.d-icon .di-name {
  max-width: 88px;
  font-size: 11.5px;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.6);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.d-icon:hover .di-img { transform: scale(1.06); }
.d-icon.selected { background: rgba(138, 182, 88, 0.32); box-shadow: inset 0 0 0 1px rgba(138, 182, 88, 0.65); }
.d-icon.selected .di-name { background: var(--accent); border-radius: 2px; padding: 0 3px; text-shadow: none; }
.d-icon.dragging { opacity: 0.85; }
body.moving-icon, body.moving-icon * { cursor: grabbing !important; }

#rubberband {
  position: absolute;
  z-index: 5;
  background: rgba(138, 182, 88, 0.2);
  border: 1px solid rgba(138, 182, 88, 0.7);
  pointer-events: none;
}

#windows-layer { position: absolute; inset: 0; pointer-events: none; }
#windows-layer .window { pointer-events: auto; }

.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  min-height: 130px;
  background: var(--bg);
  border: 1px solid var(--wm-border);
  border-radius: var(--radius-win);
  box-shadow: var(--win-shadow-soft);
  overflow: hidden;
}
.window.focused { box-shadow: var(--win-shadow); }
.window.anim { transition: left 0.2s cubic-bezier(0.25, 0.8, 0.35, 1), top 0.2s cubic-bezier(0.25, 0.8, 0.35, 1), width 0.2s cubic-bezier(0.25, 0.8, 0.35, 1), height 0.2s cubic-bezier(0.25, 0.8, 0.35, 1); }
.window.dragging { box-shadow: var(--win-shadow); opacity: 0.96; }
.window.dragging, body.win-drag, body.win-resize { cursor: default; }
body.win-drag * { cursor: grabbing !important; }
.window.ws-exit-l, .window.ws-exit-r { transition: transform 0.24s cubic-bezier(0.4, 0, 0.6, 1), opacity 0.24s; }
.window.ws-exit-l { transform: translateX(-110vw); opacity: 0.4; }
.window.ws-exit-r { transform: translateX(110vw); opacity: 0.4; }
.window.ws-enter { transition: transform 0.26s cubic-bezier(0.2, 0.7, 0.3, 1); }

.titlebar {
  flex: none;
  height: 38px;
  display: flex;
  align-items: stretch;
  background: linear-gradient(var(--wm-hi), var(--wm-lo));
  border-bottom: 1px solid var(--wm-border);
  cursor: default;
}
.window:not(.focused) .titlebar { background: var(--wm-unfocused); }
.window.maximized { border-radius: 0; border-left: none; border-right: none; }
.window.maximized .titlebar { border-radius: 0; }
.tb-icon { display: flex; align-items: center; padding: 0 4px 0 10px; }
.tb-icon svg { width: 17px; height: 17px; }
.tb-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--wm-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
}
.window:not(.focused) .tb-title { color: var(--wm-fg-dim); font-weight: 500; }
.winbtns { display: flex; align-items: stretch; }
.winbtn {
  width: 40px;
  border: none;
  background: transparent;
  color: var(--wm-fg-mid, var(--fg-mid));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}
.winbtn svg { width: 15px; height: 15px; stroke: currentColor; }
.winbtn:hover { background: var(--wm-btn-hover); color: var(--fg); }
.winbtn:active { background: color-mix(in srgb, var(--wm-btn-hover) 70%, var(--fg) 10%); }
.winbtn.close:hover { background: #d9514a; color: #fff; }
.winbtn.close:active { background: #b93f39; }
.window:not(.focused) .winbtn { opacity: 0.55; }
.winbtn:last-child { border-radius: 0 7px 0 0; }
.window.maximized .winbtn:last-child { border-radius: 0; }

.win-body { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); }

.rs { position: absolute; z-index: 30; }
.rs.n { top: -3px; left: 8px; right: 8px; height: 7px; cursor: n-resize; }
.rs.s { bottom: -3px; left: 8px; right: 8px; height: 7px; cursor: s-resize; }
.rs.e { right: -3px; top: 8px; bottom: 8px; width: 7px; cursor: e-resize; }
.rs.w { left: -3px; top: 8px; bottom: 8px; width: 7px; cursor: w-resize; }
.rs.ne { top: -4px; right: -4px; width: 13px; height: 13px; cursor: ne-resize; }
.rs.nw { top: -4px; left: -4px; width: 13px; height: 13px; cursor: nw-resize; }
.rs.se { bottom: -4px; right: -4px; width: 13px; height: 13px; cursor: se-resize; }
.rs.sw { bottom: -4px; left: -4px; width: 13px; height: 13px; cursor: sw-resize; }
.window.maximized .rs { display: none; }

#tile-preview {
  position: absolute;
  z-index: 40;
  background: var(--accent-soft);
  border: 1.5px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 10px;
  pointer-events: none;
  transition: all 0.12s cubic-bezier(0.2, 0.8, 0.3, 1);
  box-shadow: inset 0 0 40px color-mix(in srgb, var(--accent) 12%, transparent);
}

#alttab {
  position: fixed;
  z-index: 6500;
  left: 50%;
  top: 16%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 12px;
  background: rgba(28, 28, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  animation: ctx-in 0.12s ease;
}
.at-item {
  width: 88px;
  padding: 12px 6px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  border: 2px solid transparent;
}
.at-item svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.at-item .at-label {
  max-width: 80px;
  font-size: 11px;
  color: #e8e8e8;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.at-item.sel { background: rgba(255, 255, 255, 0.1); border-color: var(--accent); }

#panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--panel-h);
  z-index: 5000;
  display: flex;
  align-items: stretch;
  background: var(--panel-bg);
  backdrop-filter: blur(9px);
  color: var(--panel-fg);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.22s cubic-bezier(0.3, 0.8, 0.4, 1);
}
body.panel-top #panel { bottom: auto; top: 0; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset; }
body.panel-autohide #panel { transform: translateY(102%); }
body.panel-autohide.panel-top #panel { transform: translateY(-102%); }
body.panel-autohide #panel.reveal, body.panel-autohide #panel:hover { transform: none; }
#panel-peek {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  z-index: 4999;
  display: none;
}
body.panel-top #panel-peek { bottom: auto; top: 0; }
body.panel-autohide #panel-peek { display: block; }

.panel-left, .panel-right { display: flex; align-items: stretch; min-width: 0; }
.panel-left { flex: 1; min-width: 0; }

.p-applet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: none;
  background: transparent;
  color: var(--panel-fg);
  font: 500 12.5px var(--font-ui);
  cursor: pointer;
  position: relative;
  transition: background 0.12s;
  white-space: nowrap;
}
.p-applet:hover { background: rgba(255, 255, 255, 0.1); }
.p-applet.active { background: rgba(255, 255, 255, 0.17); }
.p-applet svg { width: 19px; height: 19px; flex: none; }
.p-applet:active svg { transform: scale(0.92); }

#menu-btn { padding: 0 12px; }
#menu-btn svg { width: 26px; height: 26px; transition: transform 0.15s; }
#menu-btn:hover svg { transform: scale(1.08); }

.launchers { display: flex; align-items: stretch; }
.launcher {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.12s;
}
.launcher:hover { background: rgba(255, 255, 255, 0.1); }
.launcher:active { background: rgba(255, 255, 255, 0.16); }
.launcher svg { width: 25px; height: 25px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); transition: transform 0.13s; }
.launcher:hover svg { transform: translateY(-1.5px) scale(1.06); }
.launcher .running-dot {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transition: opacity 0.2s;
}
.launcher.running .running-dot { opacity: 1; }

.window-list { display: flex; align-items: stretch; flex: 1; min-width: 0; overflow: hidden; padding: 3px 2px; gap: 2px; }
.wl-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 220px;
  min-width: 70px;
  padding: 0 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--panel-fg);
  font: 400 12.5px var(--font-ui);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.12s;
  animation: wl-in 0.18s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes wl-in { from { opacity: 0; transform: translateY(8px) scale(0.9); } to { opacity: 1; transform: none; } }
.wl-btn svg { width: 17px; height: 17px; flex: none; }
.wl-btn .wl-title { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-btn:hover { background: rgba(255, 255, 255, 0.12); }
.wl-btn.active { background: rgba(255, 255, 255, 0.18); }
.wl-btn.active::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 1px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--accent);
}
.wl-btn.minimized .wl-title, .wl-btn.minimized svg { opacity: 0.55; }

.tray { display: flex; align-items: stretch; }
.tray-sep { width: 1px; background: rgba(255, 255, 255, 0.12); margin: 9px 2px; }

.ws-switcher { display: flex; align-items: center; gap: 4px; padding: 0 8px; cursor: pointer; border: none; background: transparent; }
.ws-switcher:hover { background: rgba(255, 255, 255, 0.1); }
.ws-cell {
  width: 15px;
  height: 11px;
  border-radius: 2.5px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  transition: all 0.15s;
}
.ws-cell.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 60%, transparent); }

#show-desktop {
  width: 12px;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  cursor: pointer;
  transition: background 0.12s;
}
#show-desktop:hover { background: rgba(255, 255, 255, 0.14); }
#show-desktop:active { background: rgba(255, 255, 255, 0.24); }

#clock-applet { padding: 0 14px; flex-direction: column; gap: 0; line-height: 1.25; }
#clock-applet .clock-text { font-size: 12.5px; font-weight: 500; }

.p-pop {
  position: fixed;
  z-index: 6000;
  background: var(--menu-bg);
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.25);
  color: var(--fg);
  animation: pop-in 0.16s cubic-bezier(0.2, 0.85, 0.3, 1);
  transform-origin: bottom center;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(7px) scale(0.98); } to { opacity: 1; transform: none; } }
body.panel-top .p-pop { transform-origin: top center; }

#mint-menu {
  width: 604px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.995);
  transform-origin: bottom left;
  transition: opacity 0.16s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.16s cubic-bezier(0.2, 0.8, 0.3, 1);
}
#mint-menu.in { opacity: 1; transform: none; }
#mint-menu { animation: none; }
.mm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px 11px;
  background: linear-gradient(var(--bg-hi), var(--bg));
  border-bottom: 1px solid var(--border);
}
.mm-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex: none;
}
.mm-avatar svg { width: 26px; height: 26px; }
.mm-user { flex: none; }
.mm-user .mm-name { font-size: 14.5px; font-weight: 600; }
.mm-user .mm-host { font-size: 11.5px; color: var(--fg-dim); }
.mm-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 10px;
  background: var(--base);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--entry-shadow);
}
.mm-search:focus-within { border-color: var(--accent); box-shadow: var(--entry-shadow), 0 0 0 2px var(--accent-soft); }
.mm-search svg { width: 15px; height: 15px; color: var(--fg-dim); flex: none; }
.mm-search input { flex: 1; border: none; outline: none; background: transparent; font-size: 13px; color: var(--fg); }
.mm-body { display: flex; height: min(430px, 56vh); }
.mm-favs {
  width: 118px;
  flex: none;
  padding: 10px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  align-content: start;
  border-right: 1px solid var(--border);
  background: var(--base-alt);
  overflow-y: auto;
}
.mm-fav {
  height: 46px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, transform 0.1s;
}
.mm-fav svg { width: 30px; height: 30px; }
.mm-fav:hover { background: var(--hover-strong); transform: translateY(-1px); }
.mm-fav:active { transform: scale(0.94); }
.mm-cats { width: 168px; flex: none; padding: 6px 0 6px 6px; overflow-y: auto; border-right: 1px solid var(--border); }
.mm-cat {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  margin-right: 6px;
  border-radius: 5px;
  font-size: 12.8px;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.1s;
}
.mm-cat svg { width: 17px; height: 17px; color: var(--fg-mid); flex: none; }
.mm-cat:hover { background: var(--hover); }
.mm-cat.sel { background: var(--accent); color: var(--accent-fg); }
.mm-cat.sel svg { color: var(--accent-fg); }
.mm-cat-sep { height: 1px; background: var(--border); margin: 5px 10px; }
.mm-apps { flex: 1; padding: 6px 6px 6px 4px; overflow-y: auto; min-width: 0; }
.mm-app {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.1s;
}
.mm-app svg { width: 24px; height: 24px; flex: none; }
.mm-app .ma-text { min-width: 0; }
.mm-app .ma-name { font-size: 13px; font-weight: 500; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-app .ma-name b { font-weight: 700; color: var(--accent); }
.mm-app:hover .ma-name b, .mm-app.kbd-sel .ma-name b { color: inherit; }
.mm-app .ma-desc { font-size: 11.3px; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-app:hover, .mm-app.kbd-sel { background: var(--accent); }
.mm-app:hover .ma-name, .mm-app.kbd-sel .ma-name { color: var(--accent-fg); }
.mm-app:hover .ma-desc, .mm-app.kbd-sel .ma-desc { color: color-mix(in srgb, var(--accent-fg) 80%, transparent); }
.mm-empty { padding: 34px 10px; text-align: center; color: var(--fg-dim); font-size: 12.5px; }
.mm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-top: 1px solid var(--border);
  background: var(--base-alt);
}
.mm-sess { display: flex; gap: 2px; }
.mm-sbtn {
  width: 36px;
  height: 32px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--fg-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
}
.mm-sbtn svg { width: 18px; height: 18px; }
.mm-sbtn:hover { background: var(--hover-strong); color: var(--fg); }
.mm-sbtn.power:hover { background: var(--danger); color: #fff; }
.mm-sbtn:active { transform: scale(0.92); }

#calendar-pop { width: 302px; padding: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.cal-title { font-size: 13.5px; font-weight: 600; }
.cal-nav { display: flex; gap: 2px; }
.cal-nbtn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--fg-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-nbtn:hover { background: var(--hover-strong); color: var(--fg); }
.cal-nbtn svg { width: 15px; height: 15px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: 10.5px; font-weight: 600; color: var(--fg-dim); padding: 4px 0 6px; text-transform: uppercase; }
.cal-day {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.1s;
}
.cal-day:hover { background: var(--hover-strong); }
.cal-day.other { color: var(--fg-dim); opacity: 0.55; }
.cal-day.today { background: var(--accent); color: var(--accent-fg); font-weight: 700; box-shadow: 0 2px 7px color-mix(in srgb, var(--accent) 55%, transparent); }
.cal-day.sel:not(.today) { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-foot { margin-top: 9px; text-align: center; }
.cal-foot button { border: none; background: transparent; color: var(--accent); font: 600 12px var(--font-ui); cursor: pointer; padding: 4px 10px; border-radius: 4px; }
.cal-foot button:hover { background: var(--accent-soft); }

#net-pop { width: 288px; padding: 8px 0; }
.np-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 10px; }
.np-head .np-title { font-weight: 600; font-size: 13px; }
.np-row { display: flex; align-items: center; gap: 11px; padding: 8px 14px; cursor: pointer; transition: background 0.1s; }
.np-row:hover { background: var(--accent); color: var(--accent-fg); }
.np-row svg { width: 18px; height: 18px; flex: none; color: var(--fg-mid); }
.np-row:hover svg { color: var(--accent-fg); }
.np-row .np-name { flex: 1; font-size: 12.8px; }
.np-row .np-state { font-size: 11px; color: var(--fg-dim); }
.np-row:hover .np-state { color: color-mix(in srgb, var(--accent-fg) 80%, transparent); }
.np-row.connected .np-name { font-weight: 600; }
.np-disabled { padding: 14px; text-align: center; color: var(--fg-dim); font-size: 12.5px; }
.np-spin { width: 15px; height: 15px; border: 2px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
.np-row:hover .np-spin { border-color: rgba(255,255,255,.3); border-top-color: #fff; }

#vol-pop { width: 280px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
#vol-pop svg { width: 21px; height: 21px; color: var(--fg-mid); flex: none; }
#vol-pop .slider { flex: 1; }
#vol-pop .vp-pct { width: 38px; text-align: right; font-size: 12px; color: var(--fg-mid); font-variant-numeric: tabular-nums; }
.vp-mute { border: none; background: transparent; cursor: pointer; display: flex; padding: 3px; border-radius: 4px; }
.vp-mute:hover { background: var(--hover-strong); }

#batt-pop { width: 270px; padding: 14px 16px; display: flex; flex-direction: column; gap: 13px; }
.bp-row { display: flex; align-items: center; gap: 11px; }
.bp-row svg { width: 20px; height: 20px; color: var(--fg-mid); flex: none; }
.bp-row .bp-label { flex: 1; font-size: 12.6px; }
.bp-row .bp-val { font-size: 12px; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.bp-row .slider { flex: 1.4; }

#notifications {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 6800;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 344px;
  pointer-events: none;
}
body.panel-top #notifications { top: calc(var(--panel-h) + 10px); }
.notif {
  pointer-events: auto;
  display: flex;
  gap: 11px;
  padding: 12px 12px 11px;
  background: rgba(30, 30, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color: #ececec;
  backdrop-filter: blur(8px);
  transform: translateX(115%);
  transition: transform 0.3s cubic-bezier(0.2, 0.85, 0.3, 1), opacity 0.25s;
  cursor: pointer;
}
.notif.in { transform: none; }
.notif.out { opacity: 0; transform: translateX(30px); }
.notif .n-icon { width: 34px; height: 34px; flex: none; }
.notif .n-icon svg { width: 100%; height: 100%; }
.notif .n-main { flex: 1; min-width: 0; }
.notif .n-app { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: #9a9a9a; }
.notif .n-title { font-size: 13px; font-weight: 600; margin-top: 1px; }
.notif .n-body { font-size: 12.3px; color: #c4c4c4; margin-top: 2px; line-height: 1.4; }
.notif .n-actions { display: flex; gap: 7px; margin-top: 9px; }
.notif .n-act {
  padding: 4px 13px;
  font: 600 11.5px var(--font-ui);
  color: #dcead0;
  background: rgba(138, 182, 88, 0.16);
  border: 1px solid rgba(138, 182, 88, 0.5);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s;
}
.notif .n-act:hover { background: var(--accent); color: #fff; }
.notif .n-close {
  align-self: flex-start;
  border: none;
  background: transparent;
  color: #8a8a8a;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  flex: none;
}
.notif .n-close:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.notif .n-close svg { width: 13px; height: 13px; }

#osd {
  position: fixed;
  z-index: 6900;
  left: 46px;
  top: 50%;
  transform: translateY(-50%);
  width: 62px;
  height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 15px 0 14px;
  background: rgba(26, 26, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  animation: osd-in 0.16s ease;
}
@keyframes osd-in { from { opacity: 0; transform: translateY(-50%) translateX(-10px); } to { opacity: 1; transform: translateY(-50%); } }
#osd.fading { opacity: 0; transition: opacity 0.25s; }
#osd .osd-track { flex: 1; width: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); position: relative; overflow: hidden; }
#osd .osd-fill { position: absolute; bottom: 0; left: 0; right: 0; background: var(--accent); border-radius: 4px; transition: height 0.12s; }
#osd svg { width: 23px; height: 23px; color: #e8e8e8; flex: none; }

#brightness-overlay { position: fixed; inset: 0; z-index: 9400; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.15s; }

.sticky {
  position: absolute;
  width: 210px;
  height: 190px;
  background: linear-gradient(160deg, #f9f3ae, #f2e88f);
  border-radius: 3px 3px 9px 3px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  color: #4c452a;
  animation: sticky-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes sticky-in { from { opacity: 0; transform: scale(0.8) rotate(-3deg); } to { opacity: 1; transform: none; } }
.sticky .sk-head { height: 24px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 5px 0 9px; cursor: grab; }
.sticky .sk-head:active { cursor: grabbing; }
.sticky .sk-title { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; opacity: 0.55; }
.sticky .sk-close { border: none; background: transparent; color: #4c452a; opacity: 0.5; cursor: pointer; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.sticky .sk-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.1); }
.sticky .sk-close svg { width: 11px; height: 11px; }
.sticky textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  padding: 4px 11px 10px;
  font: 400 13px/1.45 var(--font-ui);
  color: #45401f;
}

body.no-anim * { transition: none !important; animation: none !important; }
