/* Notifications, taskbar, Start menu and modal shell surfaces. */
.toast {
  position: absolute;
  right: 1.5rem;
  bottom: 5.25rem;
  z-index: 4;
  max-width: 18rem;
  padding: 0.8rem 1rem;
  border: 1px solid #5d80ba;
  background: #fff8c7;
  box-shadow: var(--shadow);
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10012;
  height: 3.4rem;
  display: flex;
  align-items: stretch;
  background:
    radial-gradient(circle at 50% -180%, rgba(255, 255, 255, 0.48), transparent 38%),
    linear-gradient(180deg, #3d82f2 0%, #215fd8 42%, #184eb7 52%, #0d3d9f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 -2px 6px rgba(5, 25, 79, 0.28);
}

.taskbar-windows {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0 0.3rem;
  overflow: hidden;
}

.taskbar-window {
  flex: 1 1 8.5rem;
  width: 0;
  min-width: 2.75rem;
  max-width: 10.5rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(121, 168, 255, 0.34) 52%, rgba(62, 113, 215, 0.34));
  color: white;
  font-size: 0.96rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 1px 2px rgba(6, 33, 90, 0.18);
}

.taskbar-window__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0, 19, 76, 0.28));
}

.taskbar-window span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskbar-window.is-dragging {
  opacity: 0.65;
}

.taskbar-window.is-active {
  background:
    linear-gradient(180deg, #2c6cf0, #1d58cf 52%, #1947a8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 1px 3px rgba(8, 36, 95, 0.28);
}

.taskbar-window.is-minimized {
  opacity: 0.75;
}

.start-button {
  min-width: 7rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  color: white;
  font-weight: 700;
  font-style: italic;
  font-size: 1.2rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.42), transparent 32%),
    linear-gradient(180deg, #6fce58 0%, #43ad33 46%, #2f8c22 56%, #26731a 100%);
  border-radius: 0 1.5rem 1.5rem 0;
  text-transform: lowercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    2px 0 6px rgba(9, 57, 18, 0.18);
}

.start-button img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0, 63, 10, 0.32));
}

.start-menu {
  position: absolute;
  z-index: 10015;
  left: 0;
  bottom: 3.8rem;
  width: min(28rem, calc(100vw - 1rem));
  background:
    linear-gradient(180deg, #3f90ef 0%, #1c5ec8 14%, #1951b2 100%);
  border: 1px solid #1b4d9c;
  border-radius: 0 0.45rem 0 0;
  box-shadow: var(--shadow);
  overflow: visible;
}

.start-menu__banner {
  min-height: 4.55rem;
  padding: 0.85rem 1rem 0.7rem;
  display: grid;
  align-content: end;
  gap: 0.18rem;
  color: white;
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 255, 255, 0.4), transparent 22%),
    linear-gradient(180deg, #5aabff 0%, #2573d9 56%, #1f5fc2 100%);
}

.start-menu__banner strong {
  font-size: 1.32rem;
}

.start-menu__banner span {
  font-size: 0.82rem;
  opacity: 0.92;
}

.start-menu__body {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  min-height: 24.5rem;
  background: linear-gradient(90deg, #ffffff 0 50%, #d7e9ff 50% 100%);
}

.start-menu__column {
  position: relative;
  padding: 0.6rem 0.45rem;
  display: grid;
  align-content: start;
  gap: 0.18rem;
}

.start-menu__column.is-secondary {
  border-left: 1px solid rgba(91, 129, 190, 0.4);
  background: #cfe4ff;
}

.start-menu__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.start-menu__item.is-primary {
  font-weight: 700;
}

.start-menu__item.is-disabled {
  opacity: 0.62;
  cursor: default;
}

.start-menu__item.is-disabled:hover {
  background: transparent;
  color: inherit;
}

.start-menu__item:hover,
.start-menu__item:focus-visible,
.start-menu__footer-action:hover,
.start-menu__footer-action:focus-visible {
  background: linear-gradient(180deg, #2d74df, #1d5fca);
  color: white;
}

.start-menu__item:disabled:hover,
.start-menu__item.is-disabled:hover,
.start-menu__item:disabled:focus-visible,
.start-menu__item.is-disabled:focus-visible {
  background: transparent;
  color: inherit;
}

.start-menu__icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 1px 1px rgba(0, 28, 92, 0.24));
}

.start-menu__icon img {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
}

.start-menu__separator {
  display: block;
  height: 1px;
  margin: 0.32rem 0.45rem;
  background: #d9d9d9;
  box-shadow: 0 1px 0 #ffffff;
}

.start-menu__programs {
  position: relative;
  margin-top: auto;
}

.start-menu__all-programs {
  grid-template-columns: 1fr auto;
  justify-content: end;
  min-height: 2.55rem;
  font-weight: 700;
}

.start-menu__arrow {
  margin-left: auto;
  color: #15a21e;
  font-weight: 900;
}

.start-flyout {
  position: absolute;
  z-index: 10018;
  display: none;
  min-width: 17rem;
  padding: 0.2rem;
  border: 1px solid #6f8fc5;
  background: #f7f7f7;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.26);
}

.start-flyout__item {
  position: relative;
}

.start-menu__programs.is-open > .start-flyout,
.start-flyout__item.has-submenu.is-open > .start-flyout {
  display: grid;
}

.start-flyout--programs {
  left: calc(200% + 0.75rem);
  bottom: 0;
}

.start-flyout--nested {
  left: calc(100% - 0.1rem);
  top: -0.2rem;
}

.start-flyout--nested.opens-left {
  right: calc(100% - 0.1rem);
  left: auto;
}

.start-flyout button,
.start-flyout__item > button {
  width: 100%;
  min-height: 2.15rem;
  border: 1px solid transparent;
  background: transparent;
  display: grid;
  grid-template-columns: 1.8rem 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.55rem;
  text-align: left;
  cursor: pointer;
}

.start-flyout button > img {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

.start-flyout button:hover:not(:disabled),
.start-flyout button:focus-visible:not(:disabled),
.start-flyout__item > button:hover,
.start-flyout__item > button:focus-visible {
  background: linear-gradient(180deg, #2d74df, #1d5fca);
  color: white;
}

.start-flyout button:disabled {
  color: #8b8b8b;
  cursor: default;
}

.start-menu__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(180deg, #2e79df, #1f5ec8);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.start-menu__footer-action {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0.32rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(135, 184, 255, 0.24));
  color: white;
  cursor: pointer;
}

.start-menu__footer-action img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0, 18, 65, 0.24));
}

.start-menu__footer-action.is-logoff {
  background: linear-gradient(180deg, #f8d45c, #e5ac2d 52%, #bf7c18);
}

.start-menu__footer-action.is-shutdown {
  background: linear-gradient(180deg, #ffae89, #f06d4e 52%, #cf4831);
}

.taskbar-tray {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  color: white;
}

.shutdown-dialog {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  background: rgba(16, 36, 82, 0.36);
  backdrop-filter: grayscale(1) brightness(0.82);
}

.shutdown-dialog__window {
  width: min(23.5rem, calc(100vw - 1.5rem));
  border: 1px solid #123f91;
  border-radius: 0.18rem;
  box-shadow:
    0 10px 26px rgba(8, 18, 44, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, #2b66d4, #1d4ea8);
  overflow: hidden;
}

.shutdown-dialog__header {
  padding: 0.42rem 0.72rem 0.48rem;
  color: white;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
  background: linear-gradient(180deg, #3d86ed, #255dbe 52%, #1d4fa9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.shutdown-dialog__content {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 1.2rem;
  padding: 1.35rem 1.15rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, #7fb7fa, #5d9ae8 58%, #4f8ddd);
}

.shutdown-choice {
  display: grid;
  gap: 0.42rem;
  justify-items: center;
  align-content: start;
  width: 5.65rem;
  min-height: 6rem;
  padding: 0.28rem 0.22rem 0.1rem;
  border: none;
  border-radius: 0.22rem;
  background: transparent;
  color: white;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  transition: background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.shutdown-choice:hover,
.shutdown-choice:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.shutdown-choice:active {
  transform: translateY(1px);
}

.shutdown-choice__icon {
  width: 2.95rem;
  height: 2.95rem;
  display: grid;
  place-items: center;
  border-radius: 0.34rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 1.52rem;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 1px 2px rgba(0, 0, 0, 0.18);
}

.shutdown-choice__icon img {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 16, 74, 0.22));
}

.shutdown-choice > span:last-child {
  max-width: 5.3rem;
  text-align: center;
  line-height: 1.06;
  font-weight: 700;
}

.shutdown-choice.is-standby .shutdown-choice__icon {
  background: linear-gradient(180deg, #8e6f2f, #735117);
}

.shutdown-choice.is-logoff .shutdown-choice__icon {
  background: linear-gradient(180deg, #f0c85a, #d4931f);
}

.shutdown-choice.is-power .shutdown-choice__icon {
  background: linear-gradient(180deg, #ff9f72, #ef643e);
}

.shutdown-choice.is-restart .shutdown-choice__icon {
  background: linear-gradient(180deg, #56c95f, #279d32);
}

.shutdown-dialog__footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.82rem 0.9rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 20%),
    linear-gradient(180deg, #285fc2, #1a479d);
  border-top: 1px solid rgba(0, 26, 82, 0.34);
}

.shutdown-dialog__footer .xp-button {
  min-width: 7.2rem;
}

.shutdown-transition {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: stretch;
  background: #5f82d8;
}

.shutdown-transition__panel {
  display: grid;
  grid-template-rows: 4rem 1fr 4rem;
  height: 100%;
}

.shutdown-transition__top-band,
.shutdown-transition__bottom-band {
  position: relative;
  background: linear-gradient(180deg, #1c42a2, #143793);
}

.shutdown-transition__top-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
}

.shutdown-transition__bottom-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: #f09a18;
}

.shutdown-transition__body {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(180deg, #678be2, #5a7fd8);
}

.shutdown-transition__text {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 2.1vw + 1.6rem, 3.8rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 10035;
  display: grid;
  place-items: center;
  background: rgba(13, 31, 72, 0.18);
}

.text-prompt-dialog {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  background: rgba(13, 31, 72, 0.18);
}

.text-prompt-dialog__window {
  width: min(31rem, calc(100vw - 2rem));
  border: 1px solid #184ca8;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #f6f0de, #f0ead8);
}

.text-prompt-dialog__content {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.2rem 1rem 1rem;
}

.text-prompt-dialog__content img {
  width: 2.45rem;
  height: 2.45rem;
  object-fit: contain;
}

.text-prompt-dialog__content label {
  display: grid;
  gap: 0.45rem;
  line-height: 1.35;
}

.text-prompt-dialog__content input {
  width: 100%;
  min-height: 2rem;
  border: 1px solid #6d93d1;
  background: #fff;
  padding: 0.3rem 0.42rem;
  color: #111827;
  font: inherit;
  box-shadow: inset 1px 1px 2px rgba(18, 55, 119, 0.16);
}

.text-prompt-dialog__content input:focus {
  border-color: #245ec1;
  outline: 1px solid rgba(36, 94, 193, 0.25);
}

.text-prompt-dialog__window.is-shaking {
  animation: confirmDialogShake 90ms linear 2;
}

.confirm-dialog__window {
  position: fixed;
  width: min(27rem, calc(100vw - 2rem));
  border: 1px solid #184ca8;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #f6f0de, #f0ead8);
}

.confirm-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.32rem 0.32rem 0.32rem 0.7rem;
  color: white;
  font-weight: 700;
  background: linear-gradient(180deg, #2f6fe5, #174eae);
  cursor: move;
}

.confirm-dialog__close {
  width: 1.65rem;
  height: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 0.25rem;
  background: linear-gradient(180deg, #ffb29d, #f06d4e 52%, #cf4831);
  color: white;
  cursor: pointer;
}

.confirm-dialog__content {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.3rem 1rem 1rem;
}

.confirm-dialog__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #dbf2ff, #92c7ff 52%, #6aa4e2);
  color: #1b5ab3;
  font-size: 1.35rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 1px 2px rgba(6, 33, 90, 0.14);
}

.confirm-dialog__icon img {
  width: 2.05rem;
  height: 2.05rem;
  object-fit: contain;
}

.confirm-dialog__message {
  margin: 0;
  line-height: 1.35;
}

.confirm-dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: 0 1rem 0.95rem;
}

.confirm-dialog__window.is-shaking {
  animation: confirmDialogShake 90ms linear 2;
}

@keyframes confirmDialogShake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
  75% {
    transform: translateX(-6px);
  }
  100% {
    transform: translateX(0);
  }
}

.power-screen {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: #000;
}

.power-screen__message {
  position: absolute;
  inset: auto 1rem 2rem;
  margin: 0;
  color: #7f7f7f;
  font-size: 0.92rem;
  text-align: center;
}

