.dock {
  position: absolute;
  z-index: 900;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 6px;
  align-items: end;
  padding: 8px 12px;
  transform: translateX(-50%);
}

.dock-item {
  border: 0;
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  text-decoration: none;
  transition: background-color 120ms ease;
}

.image-dock,
.memo-dock,
.terminal-dock,
.trash-dock {
  background: transparent;
  box-shadow: none;
}

.trash-count {
  position: absolute;
  top: -4px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 10px;
  color: #fff;
  background: #e4534c;
  font-size: 11px;
  font-weight: 700;
}

.dock-item img {
  width: 50px;
  height: 50px;
  display: block;
}

.dock-item:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.dock-item.dock-pulse {
  animation: none;
}

@keyframes dock-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  35% {
    transform: translateY(-14px) scale(1.12);
  }

  62% {
    transform: translateY(-4px) scale(1.04);
  }
}

.dock-status {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transform: translateX(-50%);
}

.dock-item.active .dock-status {
  opacity: 1;
}

.dock-projects {
  display: contents;
}

.windows-search-dock {
  display: none;
}

.dock-project-link .dock-status {
  display: none;
}

.finder-dock {
  background: linear-gradient(90deg, #66bfff 0 50%, #f7fbff 50% 100%);
}

.finder-dock::before,
.finder-dock::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  top: 17px;
  border-radius: 50%;
  background: #111;
}

.finder-dock::before {
  left: 16px;
}

.finder-dock::after {
  right: 16px;
}

.launchpad-dock {
  background: rgba(245, 246, 247, 0.92);
}

.launchpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 8px);
  gap: 4px;
}

.launchpad-grid i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #6f91f2;
}

.launchpad-grid i:nth-child(2),
.launchpad-grid i:nth-child(6) {
  background: #f7c848;
}

.launchpad-grid i:nth-child(3),
.launchpad-grid i:nth-child(7) {
  background: #5fc76a;
}

.launchpad-grid i:nth-child(4),
.launchpad-grid i:nth-child(9) {
  background: #f06157;
}

.notifications {
  position: absolute;
  z-index: 1100;
  top: 10px;
  right: 34px;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 44px));
  pointer-events: none;
}

.notification {
  position: relative;
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 10px;
  color: #1d1d1f;
  background: rgba(188, 188, 188, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  animation: none;
}

.notification:first-child:nth-last-child(n + 2)::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -9px;
  height: 14px;
  border-radius: 0 0 16px 16px;
  background: rgba(170, 170, 170, 0.58);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  z-index: -1;
}

.notification-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #111;
  background: linear-gradient(180deg, #fbfbfb, #e9e9e9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 5px 12px rgba(0, 0, 0, 0.16);
  font-size: 21px;
  font-weight: 900;
}

.notification-content {
  min-width: 0;
}

.notification-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.notification-head strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.18;
}

.notification-head time {
  flex: 0 0 auto;
  color: rgba(29, 29, 31, 0.58);
  font-size: 14px;
  font-weight: 500;
}

.notification-content span,
.notification-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.24;
}

.notification-content span {
  display: block;
  margin-top: 2px;
  font-weight: 800;
}

.notification-content p {
  margin-top: 2px;
  color: rgba(29, 29, 31, 0.9);
  font-weight: 500;
}

.notification.leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes notification-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.system-menu,
.context-menu,
.dock-menu,
.menu-popover,
.spotlight,
.control-center,
.calendar-panel {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(242, 243, 245, 0.82);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(24px);
}

.system-menu,
.context-menu,
.dock-menu,
.menu-popover {
  position: absolute;
  z-index: 1000;
  min-width: 168px;
  padding: 6px;
  border-radius: 8px;
}

.system-menu {
  top: 10px;
  left: 8px;
}

.context-menu {
  top: 80px;
  left: 120px;
}

.dock-menu {
  left: 50%;
  bottom: 86px;
}

.menu-popover {
  top: 10px;
  left: 90px;
}

.menu-action {
  width: 100%;
  min-height: 26px;
  border: 0;
  border-radius: 5px;
  padding: 0 10px;
  color: #141414;
  background: transparent;
  font-size: 13px;
  text-align: left;
  cursor: default;
}

.menu-action:hover {
  color: #fff;
  background: #1f7aff;
}

.launchpad {
  position: absolute;
  z-index: 800;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  padding: 74px clamp(28px, 8vw, 140px) 118px;
  background: linear-gradient(180deg, rgba(238, 240, 236, 0.5), rgba(48, 62, 74, 0.34));
  backdrop-filter: blur(18px) saturate(1.04);
}

.launchpad[hidden] {
  display: none;
}

.launchpad-search {
  position: relative;
  display: block;
  width: min(280px, 52vw);
  height: 28px;
  margin-bottom: 16px;
}

.launchpad-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: #fff; font-size: 12px; text-shadow: 0 1px 5px #334; }
.launchpad-tools button, .launchpad-folder-control { border: 1px solid rgb(255 255 255 / 28%); border-radius: 8px; padding: 6px 10px; color: #fff; background: rgb(255 255 255 / 15%); font: inherit; cursor: pointer; }
.launchpad-tools button:hover, .launchpad-folder-control:hover { background: rgb(255 255 255 / 28%); }
.launchpad-folder-actions, .launchpad-drop-targets { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.launchpad-drop-targets { justify-content: center; margin-bottom: 20px; }
.launchpad-folder-entry { display: grid; justify-items: center; gap: 8px; }
.launchpad-folder-entry select { max-width: 120px; border: 1px solid rgb(255 255 255 / 32%); border-radius: 7px; padding: 4px; color: #fff; background: #455361; font: inherit; font-size: 12px; }
.launchpad-name-overlay { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / 30%); }
.launchpad-name-dialog { display: grid; gap: 14px; width: min(320px, calc(100vw - 40px)); border-radius: 14px; padding: 22px; color: #fff; background: #344253; box-shadow: 0 20px 60px rgb(0 0 0 / 30%); }
.launchpad-name-dialog h2 { margin: 0; font-size: 18px; }
.launchpad-name-dialog input { min-height: 36px; border: 1px solid #a9c1d5; border-radius: 7px; padding: 0 10px; font: inherit; }
.launchpad-name-dialog div { display: flex; justify-content: flex-end; gap: 8px; }

.launchpad-search span {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 13px;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
}

.launchpad-search span::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  transform: rotate(45deg);
}

.launchpad-search input {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  padding: 0 14px 0 36px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.18);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.launchpad-search input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.launchpad-apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 112px));
  align-content: start;
  justify-content: center;
  gap: 44px clamp(56px, 8vw, 112px);
  width: min(760px, 100%);
}

.launchpad-app {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.launchpad-app img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.launchpad-app img {
  display: block;
}

.launchpad-folder-icon {
  width: 60px;
  height: 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.launchpad-folder-icon img {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.launchpad-folder-view {
  position: absolute;
  z-index: 3;
  inset: 48px clamp(24px, 8vw, 120px) 88px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 24px 30px 34px;
  background: rgba(54, 62, 72, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.launchpad-folder-view[hidden] {
  display: none;
}

.launchpad-folder-view header {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin-bottom: 30px;
}

.launchpad-folder-view h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.36);
}

.launchpad-folder-back {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.launchpad-folder-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 36px 28px;
}

.launchpad-app.is-hidden {
  display: none;
}

.control-center {
  position: absolute;
  z-index: 1000;
  top: 10px;
  right: 88px;
  width: 210px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
}

.control-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.52);
}

.control-row strong,
.control-row small {
  display: block;
}

.control-row strong {
  font-size: 13px;
  line-height: 1.15;
}

.control-row small {
  margin-top: 3px;
  color: #5d6675;
  font-size: 12px;
}

.control-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #1f7aff;
}

.wifi-bars {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}

.wifi-bars i {
  width: 4px;
  border-radius: 2px;
  background: currentColor;
}

.wifi-bars i:nth-child(1) {
  height: 8px;
}

.wifi-bars i:nth-child(2) {
  height: 13px;
}

.wifi-bars i:nth-child(3) {
  height: 18px;
}

.battery-mini {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 6px;
}

.battery-mini::before {
  content: "";
  width: 19px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.battery-mini::after {
  content: "";
  position: absolute;
  right: 4px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
}

.battery-mini i {
  position: absolute;
  left: 9px;
  width: 13px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
}

.control-toggle {
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  font-weight: 700;
}

.calendar-panel {
  position: absolute;
  z-index: 1000;
  top: 10px;
  right: 16px;
  width: 410px;
  max-height: calc(100vh - 54px);
  overflow: hidden;
  padding: 10px;
  border-radius: 13px;
  color: #1d2430;
  background: rgba(242, 243, 245, 0.82);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.calendar-panel::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 134px;
  width: 18px;
  height: 18px;
  border-radius: 3px 0 0;
  background: inherit;
  transform: rotate(45deg);
}

.calendar-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 10px 10px;
}

.calendar-summary strong,
.calendar-summary small {
  display: block;
}

.calendar-summary strong {
  color: #12161f;
  font-size: 20px;
  font-weight: 800;
}

.calendar-summary small {
  color: #687182;
  font-size: 14px;
  font-weight: 650;
}

.calendar-widget .jsCalendar {
  width: 100%;
  max-width: none;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46), 0 2px 8px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  overflow: hidden;
  padding: 8px 10px 6px;
}

.calendar-widget .jsCalendar table {
  width: 100%;
  table-layout: fixed;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  background: transparent;
  font-family: inherit;
  overflow: hidden;
}

.calendar-widget .jsCalendar th,
.calendar-widget .jsCalendar td {
  display: table-cell !important;
  width: auto !important;
}

.calendar-widget .jsCalendar thead .jsCalendar-title-row th {
  height: 38px;
  padding: 0;
}

.calendar-widget .jsCalendar-title {
  height: 38px;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  border-radius: 8px;
  background: transparent;
}

.calendar-widget .jsCalendar-title-name {
  color: #1f2633;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.calendar-widget .jsCalendar-title-left,
.calendar-widget .jsCalendar-title-right {
  display: grid;
  place-items: center;
}

.calendar-widget .jsCalendar-nav-left,
.calendar-widget .jsCalendar-nav-right {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: rgba(31, 38, 51, 0.58);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: default;
}

.calendar-widget .jsCalendar-nav-left:hover,
.calendar-widget .jsCalendar-nav-right:hover {
  background: rgba(0, 0, 0, 0.08);
}

.calendar-widget .jsCalendar-week-days th {
  height: 28px;
  padding: 5px 0 2px;
  color: #7a8290;
  font-size: 12px;
  font-weight: 750;
}

.calendar-widget .jsCalendar tbody td {
  width: auto;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #151a24;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.05;
  transition: background 120ms ease, color 120ms ease;
  vertical-align: middle;
}

.calendar-widget .jsCalendar tbody td,
.calendar-widget .jsCalendar tbody td > span,
.calendar-widget .jsCalendar tbody td > small {
  box-sizing: border-box;
}

.calendar-widget .jsCalendar tbody td:hover {
  color: #151a24;
  background: rgba(31, 122, 255, 0.09);
}

.calendar-widget .jsCalendar tbody td.jsCalendar-previous,
.calendar-widget .jsCalendar tbody td.jsCalendar-next {
  color: rgba(21, 26, 36, 0.28);
}

.calendar-widget .jsCalendar tbody td.is-today {
  color: #fff;
  background: #1f7aff;
  box-shadow: 0 7px 16px rgba(31, 122, 255, 0.24);
}

.calendar-solar,
.calendar-lunar {
  display: block;
  line-height: 1.05;
  text-align: center;
  pointer-events: none;
}

.calendar-lunar {
  margin-top: 2px;
  color: #7a8290;
  font-size: 9px;
  font-weight: 750;
}

.calendar-widget .jsCalendar tbody td.is-today .calendar-lunar {
  color: rgba(255, 255, 255, 0.94);
}

.calendar-widget.jsCalendar {
  width: 100%;
  max-width: none;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  padding: 8px 10px 6px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46), 0 2px 8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.calendar-widget.jsCalendar table {
  width: 100% !important;
  table-layout: fixed;
}

.calendar-widget.jsCalendar th,
.calendar-widget.jsCalendar td {
  width: calc(100% / 7) !important;
}

.calendar-widget.jsCalendar tbody td {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 999px;
  padding: 0;
  line-height: 1.05;
  vertical-align: middle;
}

.calendar-widget.jsCalendar .jsCalendar-week-days th {
  height: 28px;
  color: #7a8290;
  font-size: 12px;
}

.calendar-widget.jsCalendar .jsCalendar-title-name {
  color: #1f2633;
  font-size: 20px;
  font-weight: 800;
}

.calendar-widget.jsCalendar tbody td.is-today {
  color: #fff;
  background: #1f7aff;
}

.time-button:focus,
.time-button:focus-visible {
  outline: 0 !important;
  outline-offset: 0;
}

.calendar-widget {
  width: 100%;
  border-radius: 12px;
  padding: 8px 10px 10px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46), 0 2px 8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.calendar-title {
  height: 38px;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
}

.calendar-title strong {
  color: #1f2633;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.calendar-nav {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: rgba(31, 38, 51, 0.58);
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: default;
}

.calendar-nav:hover {
  background: rgba(0, 0, 0, 0.08);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px 4px;
  margin-top: 6px;
}

.calendar-weekday {
  height: 26px;
  display: grid;
  place-items: center;
  color: #7a8290;
  font-size: 12px;
  font-weight: 750;
}

.calendar-cell {
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #151a24;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  cursor: default;
}

.calendar-cell:hover {
  background: rgba(31, 122, 255, 0.09);
}

.calendar-cell.muted {
  color: rgba(21, 26, 36, 0.28);
}

.calendar-cell.today {
  color: #fff;
  background: #1f7aff;
  box-shadow: 0 7px 16px rgba(31, 122, 255, 0.24);
}

.calendar-cell:focus,
.calendar-cell:focus-visible,
.calendar-nav:focus,
.calendar-nav:focus-visible {
  outline: 0;
}

.about-window {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 48%;
  width: 320px;
  padding: 18px 20px 20px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.about-window .window-controls {
  margin-bottom: 14px;
}

.about-window h2 {
  margin: 0;
  font-size: 22px;
}

.about-window p {
  margin: 10px 0 6px;
  color: #3f4858;
  font-size: 14px;
}

.about-window .about-feedback {
  line-height: 1.6;
}

.about-window .about-feedback a {
  color: #1f7aff;
}

.about-window .about-feedback button {
  border: 0;
  padding: 0;
  background: none;
  color: #1f7aff;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.about-window small {
  display: block;
  color: #6b7280;
  font-size: 12px;
}

.quick-look {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100vw - 36px));
  padding: 18px 22px 22px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.quick-look img {
  width: 76px;
  height: 76px;
  margin: 2px auto 14px;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.2));
}

.quick-look h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.quick-look p {
  margin: 10px 0 0;
  color: #3f4858;
  font-size: 14px;
  line-height: 1.6;
}

.quick-look small {
  display: block;
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
}

.quick-look-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  text-align: left;
}

.quick-look-details div {
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.42);
}

.quick-look-details dt {
  color: #7a8290;
  font-size: 10px;
  font-weight: 800;
}

.quick-look-details dd {
  margin: 3px 0 0;
  color: #303744;
  font-size: 12px;
  font-weight: 700;
}

.quick-look-actions {
  justify-content: center;
}

.spotlight-command-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #667085, #303744);
  font-size: 16px;
  font-weight: 800;
}

.trash-window {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 54%;
  width: min(460px, calc(100vw - 36px));
  padding: 18px 20px 20px;
  transform: translate(-50%, -50%);
}

.trash-window h2 {
  margin: 0;
  font-size: 20px;
}

.trash-summary {
  margin: 9px 0 0;
  color: #5e6673;
  font-size: 13px;
}

.trash-window ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  max-height: min(42vh, 340px);
  overflow: auto;
}

.trash-window li {
  min-height: 32px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 10px;
  color: #3f4858;
  background: rgba(255, 255, 255, 0.38);
  font-size: 13px;
}

.trash-window .trash-site {
  gap: 10px;
  min-height: 64px;
  padding: 8px 10px;
}

.trash-site img {
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: contain;
}

.trash-site-details {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.trash-site-details strong,
.trash-site-details small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trash-site-details small {
  opacity: 0.72;
}

.trash-restore {
  flex: none;
  padding: 7px 10px;
  font-size: 12px;
}

.trash-window > [data-trash-empty] {
  margin-top: 16px;
}

.trash-window > [data-trash-empty]:disabled {
  opacity: 0.5;
  cursor: default;
}

.trash-confirm-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: inherit;
  background: rgba(20, 28, 42, 0.38);
  backdrop-filter: blur(5px);
}

.trash-confirm-card {
  width: min(100%, 340px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  color: #222b38;
  background: #fff;
  box-shadow: 0 16px 44px rgba(20, 28, 42, 0.24);
}

.trash-confirm-card h3 {
  margin: 0;
  font-size: 17px;
}

.trash-confirm-card p {
  margin: 10px 0 0;
  color: #5e6673;
  font-size: 13px;
  line-height: 1.6;
}

.trash-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.trash-confirm-actions .secondary-action,
.trash-delete-action {
  min-height: 32px;
  margin: 0;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.trash-delete-action {
  color: #fff;
  background: #d83b36;
}

.trash-delete-action:hover {
  background: #b82925;
}

.trash-delete-action:focus-visible {
  outline: 2px solid #d83b36;
  outline-offset: 3px;
}

.memo-window {
  z-index: 12;
  left: 50%;
  top: 48%;
  width: min(380px, calc(100vw - 36px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px 0 0;
  color: #2d3026;
  background: rgba(255, 241, 126, 0.88);
  box-shadow: 0 18px 48px rgba(63, 50, 14, 0.28);
  transform: translate(-50%, -50%);
}

.memo-window .window-controls {
  margin: 0 18px 40px;
}

.memo-window::before {
  content: "";
  position: absolute;
  inset: 86px 0 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 31px,
    rgba(166, 137, 35, 0.2) 32px
  );
}

.memo-window::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 86px;
  height: 86px;
  border-radius: 22px 0 0;
  background: linear-gradient(135deg, rgba(255, 249, 182, 0.25), rgba(173, 143, 42, 0.38));
  transform: rotate(10deg);
}

.memo-window textarea {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  min-height: 242px;
  resize: vertical;
  border: 0;
  outline: 0;
  border-radius: 0;
  padding: 0 18px 22px;
  color: #2d3026;
  background: transparent;
  font-size: 16px;
  line-height: 32px;
}

.terminal-window {
  z-index: 13;
  left: 50%;
  top: 50%;
  width: min(520px, calc(100vw - 36px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  color: #c6f6d5;
  background: rgba(12, 17, 23, 0.9);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
}

.terminal-window .window-controls {
  margin-bottom: 16px;
}

.terminal-output {
  flex: 1;
  min-height: 160px;
  height: 220px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(198, 246, 213, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: #b7f7c8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.terminal-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #54d76a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.terminal-prompt input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #eaffef;
  background: transparent;
  font: inherit;
}

.fortune-window {
  position: absolute;
  z-index: 13;
  left: 50%;
  top: 52%;
  width: min(430px, calc(100vw - 36px));
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px 22px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.fortune-window .window-controls {
  width: 100%;
  flex: 0 0 auto;
}

.fortune-window img {
  width: 99%;
  height: 72%;
  margin: auto auto 20px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 10px 18px rgba(123, 35, 18, 0.24));
}

.fortune-window p {
  margin: 0 0 auto;
  color: #202631;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.spotlight {
  position: absolute;
  z-index: 11;
  left: 50%;
  top: 86px;
  width: min(580px, calc(100vw - 36px));
  overflow: hidden;
  border-radius: 13px;
  transform: translateX(-50%);
}

.spotlight-search {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.spotlight-search span {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid rgba(30, 39, 55, 0.52);
  border-radius: 50%;
}

.spotlight-search span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: rgba(30, 39, 55, 0.52);
  transform: rotate(45deg);
}

.spotlight-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
  font: inherit;
  font-size: 24px;
  font-weight: 500;
}

.spotlight-results {
  display: grid;
  gap: 2px;
  padding: 7px;
  max-height: min(430px, 58vh);
  overflow-y: auto;
}

.spotlight-engines {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding: 6px 9px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #6b7280;
  font-size: 11px;
  white-space: nowrap;
}

.spotlight-engines > span {
  margin: 0 3px 0 2px;
  font-weight: 700;
}

.spotlight-engines button {
  min-height: 26px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  color: #4d5665;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.spotlight-engines button:hover,
.spotlight-engines button.active {
  color: #135da8;
  background: rgba(31, 122, 255, 0.12);
}

.spotlight-result {
  min-height: 54px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  color: #111827;
  background: transparent;
  text-align: left;
}

.spotlight-result:hover,
.spotlight-result.active {
  color: #fff;
  background: #1f7aff;
}

.spotlight-result img {
  width: 38px;
  height: 38px;
}

.spotlight-result strong,
.spotlight-result small {
  display: block;
}

.spotlight-result strong {
  font-size: 14px;
}

.spotlight-result small {
  margin-top: 2px;
  color: #596273;
  font-size: 12px;
}

.spotlight-result:hover small,
.spotlight-result.active small {
  color: rgba(255, 255, 255, 0.82);
}

.spotlight-result em {
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
}

.spotlight-result:hover em,
.spotlight-result.active em {
  color: rgba(255, 255, 255, 0.78);
}

.spotlight-empty {
  margin: 0;
  padding: 18px 14px 20px;
  color: #596273;
  font-size: 13px;
  text-align: center;
}
