/* GNOME Shell: desktop, top bar, dash, overview, popovers */

#desktop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #1a1a2e center/cover no-repeat;
  transition: filter var(--transition-slow);
}

#desktop.overview-open {
  filter: brightness(0.55) saturate(0.9);
}

#wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(60, 90, 160, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(40, 120, 180, 0.35), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(20, 50, 100, 0.3), transparent 60%),
    linear-gradient(165deg, #0b1a33 0%, #1a3a5c 35%, #2d5a7b 60%, #1e3d5c 80%, #0d2137 100%);
  z-index: 0;
}

#wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

/* Fedora blue accent mountain silhouette */
#wallpaper .fedora-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

#wallpaper .fedora-art svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(110vw, 1600px);
  height: auto;
  opacity: 0.55;
}

#desktop-icons {
  position: absolute;
  top: calc(var(--topbar-h) + 16px);
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
  max-height: calc(100% - var(--topbar-h) - 100px);
  flex-wrap: wrap;
}

.desktop-icon {
  width: 88px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  cursor: default;
  border: 1px solid transparent;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.12);
}

.desktop-icon.selected {
  background: rgba(53, 132, 228, 0.35);
  border-color: rgba(255, 255, 255, 0.25);
}

.desktop-icon .icon {
  width: 48px;
  height: 48px;
}

.desktop-icon span {
  font-size: 12px;
  text-align: center;
  word-break: break-word;
  line-height: 1.25;
  max-width: 100%;
}

/* Top bar */
#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--topbar-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  color: var(--topbar-fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 9000;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.topbar-section {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  min-width: 120px;
}

.topbar-section.center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  min-width: 0;
}

.topbar-section.right {
  justify-content: flex-end;
  margin-left: auto;
}

.topbar-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-weight: 600;
  font-size: 13.5px;
  transition: background var(--transition-fast);
}

.topbar-btn:hover,
.topbar-btn.active {
  background: rgba(255, 255, 255, 0.15);
}

.topbar-btn .sym {
  width: 16px;
  height: 16px;
  opacity: 0.95;
}

#activities-btn {
  font-weight: 700;
  letter-spacing: 0.02em;
}

#clock-btn {
  font-variant-numeric: tabular-nums;
  min-width: 140px;
  justify-content: center;
}

#system-status {
  display: flex;
  align-items: center;
  gap: 2px;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}

.status-icons .sym {
  width: 16px;
  height: 16px;
}

/* Dash */
#dash {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  height: var(--dash-size);
  padding: 8px 10px;
  background: var(--dash-bg);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 8500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: opacity var(--transition), transform var(--transition-slow);
}

#desktop.overview-open #dash,
#desktop.lock-active #dash {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

.dash-item {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
}

.dash-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.08);
}

.dash-item:active {
  transform: scale(0.96);
}

.dash-item .app-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  pointer-events: none;
}

.dash-item .running-dot {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}

.dash-item.running .running-dot {
  background: #fff;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

.dash-item.active .running-dot {
  width: 14px;
  border-radius: 3px;
  background: var(--accent);
}

.dash-separator {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

.dash-item.show-apps .app-icon {
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

/* Activities Overview */
#overview {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: var(--overview-bg);
  backdrop-filter: blur(28px) saturate(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
  display: flex;
  flex-direction: column;
  padding-top: var(--topbar-h);
}

#overview.open {
  opacity: 1;
  pointer-events: auto;
}

.overview-search-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 16px 12px;
}

#overview-search {
  width: min(480px, 90vw);
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0 20px 0 44px;
  font-size: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M13 13l4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
}

#overview-search::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

#overview-search:focus {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(53, 132, 228, 0.4);
}

.overview-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 12px 40px 100px;
  overflow: hidden;
  min-height: 0;
}

.overview-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  overflow: auto;
}

.workspace-strip {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 180px;
  align-items: flex-start;
  padding: 12px 0;
}

.workspace-thumb {
  width: min(280px, 28vw);
  aspect-ratio: 16/10;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.workspace-thumb:hover {
  transform: scale(1.02);
}

.workspace-thumb.active {
  border-color: var(--accent);
}

.workspace-thumb .ws-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px #000;
}

.ws-window-preview {
  position: absolute;
  background: var(--bg-secondary);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid var(--border);
}

.ws-window-preview .preview-title {
  height: 14px;
  background: var(--headerbar-bg);
  font-size: 7px;
  padding: 1px 4px;
  color: var(--fg-secondary);
  white-space: nowrap;
  overflow: hidden;
}

.app-grid-section h3,
.search-results h3 {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
  text-align: center;
  letter-spacing: 0.02em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px 8px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 8px;
}

.app-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.app-grid-item:hover,
.app-grid-item:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.app-grid-item .app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.app-grid-item span {
  font-size: 12.5px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  max-width: 96px;
  line-height: 1.25;
}

.overview-workspaces-rail {
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 40px;
}

.ws-rail-item {
  width: 48px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.ws-rail-item.active {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.ws-rail-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ws-rail-add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  display: grid;
  place-items: center;
}

/* Popovers shared */
.popover {
  position: fixed;
  z-index: 9500;
  background: var(--popover-bg);
  color: var(--fg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--popover-shadow);
  border: 1px solid var(--border);
  min-width: 280px;
  max-width: min(380px, 96vw);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  overflow: hidden;
}

.popover.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Calendar / notifications tray */
#calendar-popover {
  top: calc(var(--topbar-h) + 6px);
  left: 50%;
  transform: translate(-50%, -6px);
  width: 360px;
  padding: 0;
}

#calendar-popover.open {
  transform: translate(-50%, 0);
}

.cal-header {
  padding: 16px 18px 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cal-header .date-big {
  font-size: 15px;
  font-weight: 700;
}

.cal-header .time-big {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.calendar-grid {
  padding: 8px 16px 16px;
}

.cal-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
}

.cal-month-nav button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--fg-secondary);
}

.cal-month-nav button:hover {
  background: var(--hover);
}

.cal-days-header,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.cal-days-header span {
  font-size: 11px;
  color: var(--fg-secondary);
  padding: 4px 0;
  font-weight: 600;
}

.cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
}

.cal-day:hover {
  background: var(--hover);
}

.cal-day.today {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.cal-day.other {
  color: var(--fg-disabled);
}

.notifications-section {
  border-top: 1px solid var(--border);
  padding: 12px 16px 16px;
  max-height: 220px;
  overflow: auto;
}

.notifications-section h4 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-secondary);
}

.notification-empty {
  color: var(--fg-secondary);
  font-size: 13px;
  text-align: center;
  padding: 16px 8px;
}

.notification-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  margin-bottom: 8px;
  position: relative;
}

.notification-item .n-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.notification-item .n-body {
  flex: 1;
  min-width: 0;
}

.notification-item .n-title {
  font-weight: 600;
  font-size: 13px;
}

.notification-item .n-msg {
  font-size: 12.5px;
  color: var(--fg-secondary);
  margin-top: 2px;
}

.notification-item .n-time {
  font-size: 11px;
  color: var(--fg-disabled);
  margin-top: 4px;
}

.notification-item .n-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--fg-secondary);
  opacity: 0;
}

.notification-item:hover .n-close {
  opacity: 1;
}

.notification-item .n-close:hover {
  background: var(--hover);
}

/* Quick Settings */
#quick-settings {
  top: calc(var(--topbar-h) + 6px);
  right: 10px;
  width: 340px;
  padding: 14px;
}

.qs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.qs-tile {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  border: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  color: var(--fg-primary);
  cursor: pointer;
}

.qs-tile:hover {
  background: var(--bg-shade);
}

.qs-tile.on {
  background: color-mix(in srgb, var(--accent) 22%, var(--bg-tertiary));
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.qs-tile .qs-icon {
  width: 22px;
  height: 22px;
  color: var(--fg-primary);
}

.qs-tile.on .qs-icon {
  color: var(--accent);
}

.qs-tile .qs-label {
  font-weight: 600;
  font-size: 13px;
}

.qs-tile .qs-sub {
  font-size: 11.5px;
  color: var(--fg-secondary);
}

.qs-sliders {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.qs-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
}

.qs-slider-row .sym {
  width: 20px;
  height: 20px;
  color: var(--fg-secondary);
  flex-shrink: 0;
}

.qs-slider-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-shade);
  outline: none;
}

.qs-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--bg-secondary);
}

.qs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

.qs-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.qs-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3584e4, #1a5fb4);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.qs-user-meta {
  min-width: 0;
}

.qs-user-meta .name {
  font-weight: 600;
  font-size: 13px;
}

.qs-user-meta .host {
  font-size: 11.5px;
  color: var(--fg-secondary);
}

.qs-power-btns {
  display: flex;
  gap: 4px;
}

.qs-power-btns button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--fg-secondary);
}

.qs-power-btns button:hover {
  background: var(--hover);
  color: var(--fg-primary);
}

/* Context menu */
#context-menu {
  position: fixed;
  z-index: 9800;
  min-width: 200px;
  background: var(--popover-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--popover-shadow);
  border: 1px solid var(--border);
  padding: 6px;
  display: none;
}

#context-menu.open {
  display: block;
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--fg-primary);
  text-align: left;
}

.ctx-item:hover:not(.disabled) {
  background: var(--accent);
  color: #fff;
}

.ctx-item.disabled {
  color: var(--fg-disabled);
  cursor: default;
}

.ctx-item .shortcut {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.7;
}

.ctx-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}

/* OSD (volume/brightness) */
#osd {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: var(--osd-bg);
  color: var(--osd-fg);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  padding: 20px 28px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 9900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#osd.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

#osd .osd-icon {
  width: 48px;
  height: 48px;
}

#osd .osd-bar {
  width: 140px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

#osd .osd-bar-fill {
  height: 100%;
  background: #fff;
  border-radius: 3px;
  transition: width 80ms linear;
}

#osd .osd-label {
  font-size: 13px;
  font-weight: 600;
}

/* Toast notifications (banners) */
#toast-stack {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  right: 16px;
  z-index: 9600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  background: var(--popover-bg);
  color: var(--fg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--popover-shadow);
  border: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  pointer-events: auto;
  animation: toast-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.toast.out {
  animation: toast-out 200ms ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.toast .t-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.toast .t-title {
  font-weight: 700;
  font-size: 13px;
}

.toast .t-msg {
  font-size: 12.5px;
  color: var(--fg-secondary);
  margin-top: 2px;
}

/* Alt-Tab switcher */
#alt-tab {
  position: fixed;
  left: 50%;
  top: 28%;
  transform: translateX(-50%);
  background: var(--osd-bg);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 16px;
  z-index: 9700;
  display: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#alt-tab.open {
  display: block;
}

.alt-tab-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 80vw;
}

.alt-tab-item {
  width: 120px;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  border: 2px solid transparent;
}

.alt-tab-item.selected {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

.alt-tab-item .app-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.alt-tab-item span {
  font-size: 12px;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Lock screen */
#lock-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: inherit;
  color: #fff;
}

#lock-screen.visible {
  display: flex;
}

#lock-screen .lock-bg {
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(24px) brightness(0.55);
  transform: scale(1.08);
}

#lock-screen .lock-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

#lock-screen .lock-time {
  font-size: clamp(56px, 10vw, 88px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

#lock-screen .lock-date {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 24px;
}

#lock-screen .lock-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3584e4, #1a5fb4);
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.25);
}

#lock-screen .lock-user {
  font-size: 18px;
  font-weight: 600;
}

#lock-screen .lock-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

#lock-password {
  width: 240px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 0 18px;
  text-align: center;
  font-size: 14px;
}

#lock-password::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#lock-password:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(53, 132, 228, 0.4);
}

.lock-hint {
  font-size: 12px;
  opacity: 0.65;
}

/* Snap zones */
.snap-preview {
  position: fixed;
  background: rgba(53, 132, 228, 0.25);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  z-index: 7000;
  pointer-events: none;
  display: none;
  transition: all 80ms ease;
}

.snap-preview.show {
  display: block;
}

/* Modal dialog overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9200;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-secondary);
  color: var(--fg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--window-shadow);
  min-width: 320px;
  max-width: min(440px, 92vw);
  overflow: hidden;
  animation: modal-in 180ms ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-dialog .modal-body {
  padding: 24px 24px 8px;
}

.modal-dialog h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.modal-dialog p {
  margin: 0;
  color: var(--fg-secondary);
  line-height: 1.45;
  font-size: 13.5px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px 20px;
}

.btn {
  height: 34px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-flat {
  color: var(--accent);
  background: transparent;
}

.btn-flat:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.btn-suggested {
  background: var(--accent);
  color: #fff;
}

.btn-suggested:hover {
  background: var(--accent-hover);
}

.btn-destructive {
  background: var(--destructive);
  color: #fff;
}

.btn-destructive:hover {
  filter: brightness(1.08);
}

.btn-default {
  background: var(--bg-shade);
  color: var(--fg-primary);
}

.btn-default:hover {
  background: var(--bg-dark);
}

/* Tooltip */
#tooltip {
  position: fixed;
  z-index: 9999;
  background: var(--osd-bg);
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 100ms ease;
  white-space: nowrap;
  max-width: 240px;
}

#tooltip.show {
  opacity: 1;
}

/* Responsive */
@media (max-width: 700px) {
  #dash {
    bottom: 6px;
    height: 56px;
    padding: 6px 8px;
    gap: 4px;
    max-width: calc(100vw - 16px);
    overflow-x: auto;
  }

  .dash-item {
    width: 44px;
    height: 44px;
  }

  .dash-item .app-icon {
    width: 36px;
    height: 36px;
  }

  .overview-body {
    grid-template-columns: 1fr;
    padding: 8px 12px 80px;
  }

  .overview-workspaces-rail {
    display: none;
  }

  #quick-settings {
    width: calc(100vw - 16px);
    right: 8px;
  }
}
