/* shell.css — desktop, top bar, dock, overview, app grid, notifications,
   popovers, lock screen, boot/shutdown */

:root { --dock-icon: 48px; }

#shell { position: fixed; inset: 0; overflow: hidden; background: #000; }

/* ================= desktop ================= */

#desktop {
  position: absolute; inset: 0;
  background-color: #2c001e;
  background-image: var(--wallpaper);
  background-size: cover; background-position: center;
  overflow: hidden;
  transition: background-image .3s ease;
}
#desktop::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 60%, rgba(0,0,0,.22));
}
body.night-light #shell::after {
  content: ''; position: absolute; inset: 0; z-index: 6000; pointer-events: none;
  background: rgba(255, 140, 40, .14);
  mix-blend-mode: multiply;
}

/* desktop icons */
#desktop-icons {
  position: absolute; top: calc(var(--topbar-h) + 12px); right: 14px;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.desk-icon {
  width: 96px; padding: 8px 4px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border-radius: 8px; cursor: default;
  border: 1px solid transparent;
}
.desk-icon:hover { background: rgba(255,255,255,.12); }
.desk-icon.selected { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); }
.desk-icon .label {
  font-size: 12.5px; color: #fff; text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  max-width: 92px; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ================= top bar ================= */

#topbar {
  position: absolute; top: 0; left: 0; right: 0; height: var(--topbar-h);
  z-index: 4000;
  background: var(--topbar-bg);
  color: var(--topbar-fg);
  display: flex; align-items: stretch;
  font-size: 13.5px;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}
#topbar .tb-left { display: flex; align-items: stretch; }
#topbar .tb-center { position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); display: flex; }
#topbar .tb-right { margin-left: auto; display: flex; align-items: stretch; }

.tb-item {
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px;
  border: none; background: transparent; color: inherit;
  font-family: var(--font); font-size: 13.5px;
  cursor: pointer;
  transition: background .12s ease;
}
.tb-item:hover, .tb-item.open { background: rgba(255,255,255,.13); }
.tb-item:active { background: rgba(255,255,255,.22); }
#activities-btn { font-weight: 500; }
#app-menu-btn { font-weight: 700; max-width: 220px; }
#app-menu-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#clock-btn { font-weight: 500; letter-spacing: .2px; }
#status-btn { gap: 7px; padding: 0 12px; }
#status-btn .batt-pct { font-size: 12.5px; opacity: .9; }

/* popovers */
.popover {
  position: absolute; z-index: 4500;
  background: var(--menu-bg);
  color: var(--menu-fg);
  border-radius: 14px;
  border: 1px solid var(--menu-border);
  box-shadow: 0 8px 30px rgba(0,0,0,.42);
  backdrop-filter: blur(20px);
  animation: pop-in .13s cubic-bezier(.2,1.1,.4,1);
  overflow: hidden;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* calendar popover */
#calendar-pop { width: 640px; max-width: 94vw; top: calc(var(--topbar-h) + 6px); left: 50%; transform: translateX(-50%); max-height: calc(100vh - 60px); display: flex; flex-direction: column; }
.cal-head { padding: 14px 18px 4px; text-align: center; }
.cal-head .cal-date-big { font-size: 15px; font-weight: 500; }
.cal-body { display: flex; min-height: 0; }
.cal-left { padding: 8px 14px 14px; flex: none; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 8px; }
.cal-nav .month { font-weight: 700; font-size: 14.5px; }
.cal-nav button {
  border: none; background: transparent; color: inherit;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cal-nav button:hover { background: var(--menu-hover); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 34px); gap: 1px; }
.cal-grid .dow { font-size: 11.5px; text-align: center; padding: 4px 0; opacity: .6; font-weight: 500; }
.cal-grid .day {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: default;
}
.cal-grid .day:hover { background: var(--menu-hover); }
.cal-grid .day.other { opacity: .35; }
.cal-grid .day.today { background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.cal-right { flex: 1; min-width: 0; border-left: 1px solid var(--card-border); display: flex; flex-direction: column; }
.notif-head { display: flex; align-items: center; padding: 10px 14px 6px; gap: 8px; }
.notif-head .t { font-weight: 700; font-size: 14px; flex: 1; }
.notif-head button { border: none; background: transparent; color: inherit; cursor: pointer; border-radius: 6px; padding: 4px 8px; font-size: 12.5px; display: flex; align-items: center; gap: 5px; }
.notif-head button:hover { background: var(--menu-hover); }
.notif-list { flex: 1; overflow-y: auto; padding: 4px 10px 10px; min-height: 90px; max-height: 300px; }
.notif-empty { text-align: center; padding: 26px 10px; opacity: .55; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.notif-card {
  display: flex; gap: 10px; padding: 10px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 10px; margin-bottom: 8px;
}
.notif-card .nc-body { flex: 1; min-width: 0; }
.notif-card .nc-title { font-weight: 700; font-size: 13.5px; }
.notif-card .nc-text { font-size: 12.5px; opacity: .8; margin-top: 2px; line-height: 1.35; word-wrap: break-word; }
.notif-card .nc-meta { font-size: 11px; opacity: .5; margin-top: 4px; }
.notif-card .nc-close { border: none; background: transparent; color: inherit; opacity: .5; cursor: pointer; height: 22px; width: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.notif-card .nc-close:hover { opacity: 1; background: var(--menu-hover); }
.dnd-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--card-border); font-size: 13.5px; }
.dnd-row .grow { flex: 1; }

/* system status menu */
#status-menu { width: 300px; top: calc(var(--topbar-h) + 6px); right: 6px; padding: 8px; }
.sm-slider-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }
.sm-slider-row .u-slider { flex: 1; }
.sm-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
}
.sm-row:hover { background: var(--menu-hover); }
.sm-row .grow { flex: 1; min-width: 0; }
.sm-row .t { font-size: 14px; font-weight: 500; }
.sm-row .s { font-size: 12px; opacity: .6; margin-top: 1px; }
.sm-sep { height: 1px; background: var(--card-border); margin: 6px 4px; }
.sm-btn-row { display: flex; gap: 4px; padding: 4px 6px 2px; }
.sm-btn-row button {
  flex: 1; border: none; background: transparent; color: inherit;
  padding: 8px 4px; border-radius: 8px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11.5px; font-family: var(--font);
}
.sm-btn-row button:hover { background: var(--menu-hover); }
.sm-sub { padding: 4px; }
.sm-sub .sm-back { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-weight: 700; }
.sm-sub .sm-back:hover { background: var(--menu-hover); }
.sm-net { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.sm-net:hover { background: var(--menu-hover); }
.sm-net .sig { margin-left: auto; opacity: .6; }
.sm-net.active { color: var(--accent); }
.sm-net .lock-ic { opacity: .5; margin-left: -8px; }

/* ================= dock ================= */

#dock {
  position: absolute; left: 0; top: var(--topbar-h); bottom: 0;
  width: var(--dock-w);
  z-index: 3500;
  background: var(--dock-bg);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: transform .25s cubic-bezier(.3,.9,.3,1);
}
body.dock-autohide #dock { transform: translateX(-100%); }
body.dock-autohide #dock.reveal { transform: translateX(0); }
#dock-hotzone {
  position: absolute; left: 0; top: var(--topbar-h); bottom: 0; width: 6px; z-index: 3499;
  display: none;
}
body.dock-autohide #dock-hotzone { display: block; }

#dock-icons { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; width: 100%; overflow: visible; }
.dock-icon {
  position: relative;
  width: 100%; height: calc(var(--dock-icon) + 8px);
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
}
.dock-icon .di-img {
  width: var(--dock-icon); height: var(--dock-icon);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .14s cubic-bezier(.2,1.4,.4,1), filter .14s ease, background .14s ease;
}
.dock-icon:hover .di-img { transform: scale(1.1); }
.dock-icon:active .di-img { transform: scale(.94); filter: brightness(.85); }
.dock-icon.running .di-img { }
.dock-icon.focused-app .di-img { background: rgba(255,255,255,.14); }
.dock-icon .dots {
  position: absolute; left: 2px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 3px;
}
.dock-icon .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.85); }
.dock-icon.focused-app .dot { background: var(--accent); }
.dock-icon.urgent .di-img { animation: dock-urgent .9s ease-in-out infinite; }
@keyframes dock-urgent {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(3px); }
  75% { transform: translateX(-1px); }
}
.dock-icon.launching .di-img { animation: dock-launch .55s cubic-bezier(.3,1.5,.5,1); }
@keyframes dock-launch {
  0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); }
}
#show-apps { margin-top: auto; }
#show-apps .di-img { border-radius: 50%; }
#show-apps:hover .di-img { background: rgba(255,255,255,.12); }
.dock-sep { width: 60%; height: 1px; background: rgba(255,255,255,.14); margin: 4px 0; flex: none; }

/* ================= overview ================= */

#overview {
  position: absolute; inset: 0; z-index: 3000;
  display: none;
  flex-direction: column;
  background: rgba(24, 18, 28, .72);
  backdrop-filter: blur(28px) saturate(1.1);
}
#overview.open { display: flex; animation: ov-in .2s ease; }
@keyframes ov-in { from { opacity: 0; } }
#overview.closing { animation: ov-out .16s ease forwards; }
@keyframes ov-out { to { opacity: 0; } }

#ov-search-row { display: flex; justify-content: center; padding: 26px 0 10px; flex: none; }
#ov-search {
  width: 460px; max-width: 70vw;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 9px 18px;
  color: #f2f2f2;
  transition: background .15s, border-color .15s;
}
#ov-search:focus-within { background: rgba(255,255,255,.16); border-color: var(--accent); }
#ov-search input {
  flex: 1; border: none; background: transparent; outline: none;
  color: #fff; font-family: var(--font); font-size: 15px;
}
#ov-search input::placeholder { color: rgba(255,255,255,.55); }

#ov-workspaces {
  flex: none; display: flex; gap: 14px; justify-content: center;
  padding: 8px 16px 4px; min-height: 96px; align-items: center;
  overflow-x: auto;
}
.ws-thumb {
  position: relative; flex: none;
  height: 78px; aspect-ratio: 16/10;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.25);
  background-image: var(--wallpaper); background-size: cover; background-position: center;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
  overflow: hidden;
}
.ws-thumb:hover { transform: scale(1.03); }
.ws-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.ws-thumb .ws-win {
  position: absolute; border-radius: 2px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.ws-thumb .ws-num {
  position: absolute; right: 4px; bottom: 2px; font-size: 10px; color: rgba(255,255,255,.9);
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
}
.ws-thumb.ws-plus {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07);
  border-style: dashed;
  color: rgba(255,255,255,.7);
}
.ws-thumb.ws-plus:hover { background: rgba(255,255,255,.14); color: #fff; }

#ov-stage { flex: 1; position: relative; margin: 10px 60px 16px; min-height: 0; }
.ov-window {
  position: absolute;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  cursor: pointer;
  border: 2px solid transparent;
  transition: left .25s cubic-bezier(.3,.9,.3,1), top .25s cubic-bezier(.3,.9,.3,1),
              width .25s cubic-bezier(.3,.9,.3,1), height .25s cubic-bezier(.3,.9,.3,1),
              opacity .18s ease, border-color .15s ease;
  background: var(--win-bg);
}
.ov-window:hover { border-color: var(--accent); }
.ov-window .ov-clone { position: absolute; inset: 0; pointer-events: none; overflow: hidden; background: var(--win-content-bg); }
.ov-window .ov-title {
  position: absolute; left: 0; right: 0; bottom: -2px;
  transform: translateY(100%);
  text-align: center; color: #fff; font-size: 13px;
  padding-top: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}

/* app grid */
#app-grid-wrap { position: relative; flex: 1; min-height: 0; display: none; flex-direction: column; padding-top: 6px; }
#overview.mode-apps #app-grid-wrap { display: flex; }
#overview.mode-apps #ov-stage, #overview.mode-apps #ov-workspaces { display: none; }
#app-grid-pages { flex: 1; position: relative; overflow: hidden; margin: 0 auto; width: min(1080px, 92vw); }
.app-grid-page {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 148px;
  align-content: start;
  transition: transform .28s cubic-bezier(.3,.9,.3,1), opacity .28s ease;
  padding: 10px 20px;
}
.app-grid-page.page-left { transform: translateX(-40%); opacity: 0; pointer-events: none; }
.app-grid-page.page-right { transform: translateX(40%); opacity: 0; pointer-events: none; }
.app-grid-page.page-current { transform: translateX(0); opacity: 1; }

.app-cell {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 14px 6px 8px;
  border-radius: 14px;
  cursor: default;
  transition: background .12s ease, transform .1s ease;
}
.app-cell:hover { background: rgba(255,255,255,.1); }
.app-cell:active { transform: scale(.95); }
.app-cell .app-ic {
  width: 64px; height: 64px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.app-cell .app-name {
  font-size: 13px; color: #f2f2f2; text-align: center;
  max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.app-cell.folder-cell .folder-preview {
  width: 64px; height: 64px; border-radius: 14px;
  background: rgba(255,255,255,.12);
  display: grid; grid-template-columns: repeat(2, 1fr);
  place-items: center; padding: 9px; gap: 2px;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
#grid-dots { display: flex; gap: 8px; justify-content: center; padding: 12px 0 22px; }
#grid-dots .gdot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; border: none; padding: 0; transition: background .15s, transform .15s; }
#grid-dots .gdot.active { background: #fff; transform: scale(1.25); }

/* folder popup */
#folder-pop {
  position: absolute; inset: 0; z-index: 5100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,10,20,.5);
  animation: ov-in .15s ease;
}
.folder-pop-box {
  background: rgba(40,36,46,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 22px;
  min-width: 340px;
  box-shadow: 0 16px 60px rgba(0,0,0,.6);
}
.folder-pop-title { color: #fff; font-size: 17px; font-weight: 500; text-align: center; margin-bottom: 14px; }
.folder-pop-grid { display: grid; grid-template-columns: repeat(3, 120px); gap: 4px; }

/* search results */
#search-results { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 40px; display: none; }
#overview.mode-search #search-results { display: block; }
#overview.mode-search #ov-stage, #overview.mode-search #app-grid-wrap, #overview.mode-search #ov-workspaces { display: none; }
.sr-section { width: min(720px, 88vw); margin: 14px auto 0; }
.sr-section .sr-head { color: rgba(255,255,255,.65); font-size: 13px; font-weight: 700; margin: 12px 4px 8px; text-transform: uppercase; letter-spacing: .6px; }
.sr-apps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.sr-file {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px; color: #f0f0f0; cursor: default;
}
.sr-file:hover { background: rgba(255,255,255,.1); }
.sr-file .p { font-size: 12px; opacity: .6; }
.sr-file .n { font-size: 14px; }
.sr-none { text-align: center; color: rgba(255,255,255,.6); padding: 40px; font-size: 15px; }

/* overview bottom hint */
#ov-hint { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.45); font-size: 12.5px; }

/* ================= notifications (banners) ================= */

#banner-tray {
  position: absolute; top: calc(var(--topbar-h) + 8px); left: 50%; transform: translateX(-50%);
  z-index: 5500;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.banner {
  pointer-events: auto;
  width: 430px; max-width: 90vw;
  background: rgba(34,34,34,.97);
  color: #f2f2f2;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  padding: 12px 14px;
  display: flex; gap: 12px; align-items: flex-start;
  animation: banner-in .22s cubic-bezier(.2,1.2,.4,1);
  cursor: default;
}
@keyframes banner-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.banner.leaving { animation: banner-out .18s ease forwards; }
@keyframes banner-out { to { opacity: 0; transform: translateY(-10px) scale(.97); } }
.banner .b-body { flex: 1; min-width: 0; }
.banner .b-head { display: flex; align-items: baseline; gap: 8px; }
.banner .b-app { font-size: 12px; opacity: .6; }
.banner .b-time { font-size: 11px; opacity: .4; margin-left: auto; }
.banner .b-title { font-weight: 700; font-size: 14px; margin-top: 2px; }
.banner .b-text { font-size: 13px; opacity: .85; margin-top: 2px; line-height: 1.35; word-wrap: break-word; }
.banner .b-actions { display: flex; gap: 8px; margin-top: 8px; }
.banner .b-actions button {
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff;
  border-radius: 6px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; font-family: var(--font);
}
.banner .b-actions button:hover { background: rgba(255,255,255,.16); }
.banner .b-close {
  border: none; background: transparent; color: #fff; opacity: 0;
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.banner:hover .b-close { opacity: .6; }
.banner .b-close:hover { opacity: 1 !important; background: rgba(255,255,255,.15); }

/* ================= lock screen / boot ================= */

#lock-screen {
  position: absolute; inset: 0; z-index: 8000;
  background-image: var(--wallpaper);
  background-size: cover; background-position: center;
  display: none;
  flex-direction: column; align-items: center;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
#lock-screen.visible { display: flex; animation: lock-in .25s ease; }
@keyframes lock-in { from { opacity: 0; } }
#lock-screen.unlocking { transform: translateY(-100%); opacity: .6; }
#lock-screen::before { content: ''; position: absolute; inset: 0; background: rgba(10,6,14,.45); backdrop-filter: blur(2px); }
.lock-top { margin-top: 12vh; text-align: center; color: #fff; position: relative; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.lock-clock { font-size: 92px; font-weight: 300; letter-spacing: -2px; line-height: 1; }
.lock-date { font-size: 20px; font-weight: 400; opacity: .92; margin-top: 10px; }
.lock-card { position: absolute; left: 50%; bottom: 11vh; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lock-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--aubergine-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 500; color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.lock-user { color: #fff; font-size: 18px; font-weight: 500; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.lock-pass-row { display: flex; align-items: center; gap: 6px; }
.lock-pass {
  width: 250px; padding: 9px 16px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.18);
  color: #fff; font-size: 14px; outline: none; text-align: center;
  font-family: var(--font);
}
.lock-pass::placeholder { color: rgba(255,255,255,.65); }
.lock-pass:focus { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.25); }
.lock-go {
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.18); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lock-go:hover { background: rgba(255,255,255,.3); }
.lock-hint { color: rgba(255,255,255,.6); font-size: 12.5px; }
.lock-msg { color: #ff8a8a; font-size: 13px; height: 16px; }
.lock-shake { animation: lock-shake .4s ease; }
@keyframes lock-shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-10px)} 40%{transform:translateX(10px)} 60%{transform:translateX(-6px)} 80%{transform:translateX(6px)} }

/* boot / shutdown */
#boot-screen {
  position: absolute; inset: 0; z-index: 9000;
  background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 46px;
  transition: opacity .5s ease;
}
#boot-screen.hidden { display: none; }
#boot-screen.fade { opacity: 0; pointer-events: none; }
#boot-logo { color: #fff; opacity: .95; }
.boot-spinner { display: flex; gap: 7px; }
.boot-spinner .bs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: bs-pulse 1.2s ease-in-out infinite; }
.boot-spinner .bs-dot:nth-child(2) { animation-delay: .15s; }
.boot-spinner .bs-dot:nth-child(3) { animation-delay: .3s; }
.boot-spinner .bs-dot:nth-child(4) { animation-delay: .45s; }
.boot-spinner .bs-dot:nth-child(5) { animation-delay: .6s; }
@keyframes bs-pulse { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
#boot-text { color: rgba(255,255,255,.55); font-size: 14px; }
#boot-power-btn {
  margin-top: 20px; padding: 12px 28px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff;
  font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-family: var(--font);
}
#boot-power-btn:hover { background: rgba(255,255,255,.12); }

/* screen-off overlay for suspend */
#suspend-screen { position: absolute; inset: 0; z-index: 8500; background: #000; display: none; }
#suspend-screen.visible { display: block; animation: ov-in .4s ease; }

/* screenshot flash */
#shot-flash { position: absolute; inset: 0; z-index: 8800; background: #fff; opacity: 0; pointer-events: none; }
#shot-flash.go { animation: shot-flash .45s ease; }
@keyframes shot-flash { 0% { opacity: 0; } 15% { opacity: .85; } 100% { opacity: 0; } }

/* shutdown modal tweaks */
.power-dialog-icon { display: flex; justify-content: center; margin-bottom: 12px; color: var(--menu-fg); }
