.workbench-relax-modal {
  position: fixed;
  inset: 0;
  z-index: 32000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 8, 10, .72);
  backdrop-filter: blur(12px) saturate(.72);
  -webkit-backdrop-filter: blur(12px) saturate(.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility 0s linear .24s;
}

.workbench-relax-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

body.workbench-relax-open {
  overflow: hidden;
}

.workbench-relax-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.workbench-relax-dialog {
  position: relative;
  width: min(820px, calc(100vw - 36px), calc((100vh - 120px) * 1.18));
  color: #8cff9e;
  transform: translateY(22px) scale(.94);
  transform-origin: 50% 62%;
  opacity: 0;
  filter: drop-shadow(0 34px 42px rgba(0, 0, 0, .46));
}

.workbench-relax-modal.is-open .workbench-relax-dialog {
  animation: workbench-crt-arrive .42s cubic-bezier(.18, .82, .24, 1) forwards;
}

.workbench-relax-casing {
  position: relative;
  z-index: 2;
  padding: clamp(30px, 4.5vw, 42px) clamp(28px, 5vw, 48px) 0;
  overflow: hidden;
  border: 2px solid #8e8b82;
  border-radius: 48px 48px 38px 38px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .2) 48%, transparent 70%),
    linear-gradient(160deg, #e3dfd4 0%, #c9c4b8 48%, #aaa69d 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .9),
    inset 12px 0 20px rgba(255, 255, 255, .18),
    inset -16px -14px 24px rgba(69, 67, 61, .18),
    0 20px 46px rgba(0, 0, 0, .3);
}

.workbench-relax-casing::before {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  top: 17px;
  height: 3px;
  border-radius: 999px;
  background: rgba(112, 109, 101, .32);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .52);
}

.workbench-relax-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(26, 29, 28, .42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 5px 14px rgba(0, 0, 0, .2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transform-origin: center;
  transition:
    transform .14s cubic-bezier(.23, 1, .32, 1),
    filter .15s ease,
    box-shadow .15s ease;
}

.workbench-relax-close::before,
.workbench-relax-close::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 17px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
}

.workbench-relax-close::before { transform: rotate(45deg); }
.workbench-relax-close::after { transform: rotate(-45deg); }

.workbench-relax-close:hover {
  filter: brightness(1.16);
  transform: scale(1.05);
}

.workbench-relax-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .58);
  outline-offset: 3px;
}

.workbench-relax-close:active {
  transform: scale(.94);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .28);
}

.workbench-relax-top-vents {
  position: absolute;
  top: 8px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.workbench-relax-top-vents span {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(77, 76, 70, .34);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .28), 0 1px 0 rgba(255, 255, 255, .55);
}

.workbench-relax-screen-bezel {
  position: relative;
  padding: clamp(11px, 1.7vw, 16px);
  border-radius: 34px 34px 48px 48px;
  background: linear-gradient(150deg, #383a36, #171a18 68%, #0b0d0c);
  box-shadow:
    inset 0 0 0 2px #090b0a,
    inset 0 10px 18px rgba(255, 255, 255, .08),
    0 8px 0 rgba(95, 92, 84, .44),
    0 18px 26px rgba(38, 36, 31, .28);
}

.workbench-relax-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid #020604;
  border-radius: 28px 28px 44px 44px / 22px 22px 36px 36px;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(24, 82, 47, .28), transparent 62%),
    #020a06;
  box-shadow:
    inset 0 0 42px rgba(0, 0, 0, .92),
    inset 0 0 16px rgba(102, 255, 135, .12),
    0 0 14px rgba(94, 255, 126, .08);
}

.workbench-relax-screen::before,
.workbench-relax-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.workbench-relax-screen::before {
  z-index: 4;
  background: repeating-linear-gradient(
    180deg,
    rgba(120, 255, 151, .035) 0,
    rgba(120, 255, 151, .035) 1px,
    rgba(0, 0, 0, .14) 2px,
    rgba(0, 0, 0, .14) 4px
  );
  mix-blend-mode: screen;
  opacity: .7;
}

.workbench-relax-screen::after {
  z-index: 5;
  background:
    linear-gradient(116deg, rgba(255, 255, 255, .12), transparent 21% 76%, rgba(255, 255, 255, .035)),
    radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, .5) 100%);
}

.workbench-relax-game-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  background: #020805;
  opacity: 0;
  transform: scaleY(.985);
  transition:
    opacity .18s ease,
    transform .24s cubic-bezier(.23, 1, .32, 1);
}

.workbench-relax-modal.is-open:not(.is-booting):not(.is-closing) .workbench-relax-game-frame {
  opacity: 1;
  transform: scaleY(1);
}

.workbench-relax-modal.is-closing .workbench-relax-game-frame {
  animation: workbench-crt-content-off .16s linear forwards;
}

.workbench-relax-display {
  position: absolute;
  inset: clamp(22px, 4vw, 42px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  color: #87ff9d;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(11px, 1.35vw, 15px);
  line-height: 1.55;
  text-shadow: 0 0 7px rgba(116, 255, 143, .72);
  opacity: 0;
}

.workbench-relax-modal.is-open:not(.is-booting):not(.is-closing) .workbench-relax-display {
  opacity: 1;
  animation: workbench-crt-flicker 7s steps(1, end) infinite;
}

.workbench-relax-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(126, 255, 153, .44);
  color: #b2ffbf;
  font-weight: 700;
}

.workbench-relax-title {
  margin: clamp(18px, 4vw, 36px) 0 6px;
  color: #baffc4;
  font-family: inherit;
  font-size: clamp(20px, 3.2vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 0 12px rgba(113, 255, 141, .8);
}

.workbench-relax-copy {
  margin: 0;
  color: #82e993;
}

.workbench-relax-menu {
  display: grid;
  gap: 8px;
  margin-top: clamp(20px, 4vw, 38px);
}

.workbench-relax-menu-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  min-height: 28px;
  padding: 2px 8px;
  color: rgba(135, 255, 157, .65);
}

.workbench-relax-menu-row.is-current {
  color: #061109;
  background: #87ff9d;
  text-shadow: none;
  box-shadow: 0 0 12px rgba(111, 255, 139, .3);
}

.workbench-relax-menu-cursor {
  font-size: .8em;
}

.workbench-relax-command {
  margin: auto 0 0;
  color: #b2ffbf;
}

.workbench-relax-caret {
  display: inline-block;
  width: .62em;
  height: 1em;
  margin-left: .25em;
  vertical-align: -.15em;
  background: currentColor;
  box-shadow: 0 0 8px rgba(126, 255, 153, .66);
  animation: workbench-crt-caret 1s steps(1, end) infinite;
}

.workbench-relax-boot-line {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 50%;
  z-index: 3;
  height: 2px;
  border-radius: 999px;
  background: #d8ffe0;
  box-shadow: 0 0 8px #9bffaf, 0 0 24px rgba(98, 255, 130, .9);
  opacity: 0;
  transform: scaleX(.02);
}

.workbench-relax-modal.is-booting .workbench-relax-boot-line {
  animation: workbench-crt-power-on .68s ease-out forwards;
}

.workbench-relax-modal.is-closing .workbench-relax-display {
  animation: workbench-crt-content-off .16s linear forwards;
}

.workbench-relax-modal.is-closing .workbench-relax-boot-line {
  animation: workbench-crt-power-off .24s ease-in forwards;
}

.workbench-relax-control-panel {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto auto;
  align-items: center;
  gap: clamp(13px, 2.2vw, 23px);
  min-height: clamp(70px, 10vw, 88px);
  padding: 12px 6px 10px 4px;
  color: #55554f;
  font-family: Arial, sans-serif;
}

.workbench-relax-nameplate {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.workbench-relax-nameplate strong {
  font-size: clamp(12px, 1.8vw, 17px);
  line-height: 1;
  letter-spacing: 0;
}

.workbench-relax-nameplate span {
  font-size: 9px;
  color: #75746d;
}

.workbench-relax-speaker {
  display: grid;
  grid-template-columns: repeat(6, 5px);
  gap: 6px;
}

.workbench-relax-speaker span {
  width: 5px;
  height: 18px;
  border-radius: 999px;
  background: #77756e;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .35), 1px 1px 0 rgba(255, 255, 255, .42);
  transform: skewY(-18deg);
}

.workbench-relax-sound {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #66655f;
  border-radius: 10px;
  background: linear-gradient(145deg, #cac6bb, #96938b);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, .55),
    inset -1px -1px 2px rgba(51, 50, 47, .17),
    0 3px 6px rgba(0, 0, 0, .18);
  cursor: pointer;
  transform-origin: center;
  transition:
    transform .14s cubic-bezier(.23, 1, .32, 1),
    filter .15s ease,
    box-shadow .18s ease;
}

.workbench-relax-sound svg {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  overflow: visible;
  fill: none;
  stroke: #55544f;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .14s ease, transform .18s cubic-bezier(.23, 1, .32, 1);
}

.workbench-relax-sound-on-icon {
  opacity: 0;
  transform: scale(.86);
}

.workbench-relax-sound:hover {
  filter: brightness(1.07);
  transform: scale(1.035);
}

.workbench-relax-sound:focus-visible {
  outline: 2px solid rgba(72, 71, 67, .62);
  outline-offset: 3px;
}

.workbench-relax-sound:active { transform: scale(.965); }

.workbench-relax-sound[aria-pressed="true"] .workbench-relax-sound-muted-icon {
  opacity: 0;
  transform: scale(.86);
}

.workbench-relax-sound[aria-pressed="true"] .workbench-relax-sound-on-icon {
  opacity: 1;
  transform: scale(1);
}

.workbench-relax-power-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workbench-relax-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56e771;
  box-shadow: 0 0 5px #46df63, 0 0 11px rgba(54, 223, 87, .48);
}

.workbench-relax-power {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid #5c5b55;
  border-radius: 50%;
  background: linear-gradient(145deg, #77766f, #454641);
  box-shadow:
    inset 2px 2px 3px rgba(255, 255, 255, .24),
    inset -2px -2px 4px rgba(0, 0, 0, .3),
    0 3px 7px rgba(0, 0, 0, .24);
  cursor: pointer;
  transform-origin: center;
  transition:
    transform .14s cubic-bezier(.23, 1, .32, 1),
    filter .16s ease;
}

.workbench-relax-power svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #d6d4ca;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workbench-relax-power:hover {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.workbench-relax-power:focus-visible {
  transform: scale(1.04);
  filter: brightness(1.08);
  outline: 2px solid rgba(72, 71, 67, .62);
  outline-offset: 3px;
}

.workbench-relax-power:active {
  transform: scale(.965);
}

.workbench-relax-neck {
  position: relative;
  z-index: 1;
  width: 25%;
  height: clamp(34px, 5vw, 52px);
  margin: -3px auto 0;
  border: 2px solid #85827a;
  border-top: 0;
  background: linear-gradient(90deg, #99958b, #c8c3b7 45%, #aaa59a 68%, #817e76);
  box-shadow: inset 7px 0 10px rgba(255, 255, 255, .16), inset -7px 0 12px rgba(0, 0, 0, .12);
}

.workbench-relax-base {
  position: relative;
  z-index: 2;
  width: 48%;
  height: clamp(20px, 3vw, 30px);
  margin: -1px auto 0;
  border: 2px solid #85827a;
  border-radius: 50% 50% 14px 14px / 75% 75% 14px 14px;
  background: linear-gradient(180deg, #d0cbc0, #a6a197 72%, #89867f);
  box-shadow: 0 11px 18px rgba(0, 0, 0, .24), inset 0 3px 4px rgba(255, 255, 255, .42);
}

@keyframes workbench-crt-arrive {
  from { opacity: 0; transform: translateY(22px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes workbench-crt-power-on {
  0% { opacity: 0; transform: scaleX(.02) scaleY(.3); }
  20% { opacity: 1; transform: scaleX(.72) scaleY(.5); }
  58% { opacity: 1; transform: scaleX(1) scaleY(1); }
  78% { opacity: .7; transform: scaleX(1) scaleY(120); }
  100% { opacity: 0; transform: scaleX(1) scaleY(180); }
}

@keyframes workbench-crt-power-off {
  0% { opacity: 0; transform: scaleX(1) scaleY(180); }
  35% { opacity: 1; transform: scaleX(1) scaleY(1); }
  100% { opacity: 0; transform: scaleX(.02) scaleY(.6); }
}

@keyframes workbench-crt-content-off {
  from { opacity: 1; transform: scaleY(1); }
  to { opacity: 0; transform: scaleY(.04); }
}

@keyframes workbench-crt-flicker {
  0%, 17%, 19%, 62%, 64%, 100% { opacity: 1; }
  18%, 63% { opacity: .94; }
}

@keyframes workbench-crt-caret {
  0%, 54% { opacity: 1; }
  55%, 100% { opacity: 0; }
}

@media (max-width: 680px) {
  .workbench-relax-modal { padding: 12px; }
  .workbench-relax-dialog { width: min(calc(100vw - 24px), calc((100vh - 92px) * 1.2)); }
  .workbench-relax-casing {
    padding: 24px 20px 0;
    border-radius: 30px 30px 24px 24px;
  }
  .workbench-relax-screen-bezel { border-radius: 24px 24px 34px 34px; }
  .workbench-relax-close { top: 14px; right: 14px; width: 34px; height: 34px; }
  .workbench-relax-close::before,
  .workbench-relax-close::after { left: 9px; top: 15px; width: 14px; }
  .workbench-relax-control-panel { grid-template-columns: 1fr auto auto; gap: 10px; min-height: 62px; }
  .workbench-relax-speaker { display: none; }
  .workbench-relax-nameplate span { display: none; }
  .workbench-relax-sound { width: 34px; height: 34px; }
  .workbench-relax-sound svg { width: 20px; height: 20px; }
  .workbench-relax-power { width: 36px; height: 36px; }
  .workbench-relax-power svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .workbench-relax-modal,
  .workbench-relax-dialog,
  .workbench-relax-display,
  .workbench-relax-game-frame,
  .workbench-relax-boot-line,
  .workbench-relax-caret {
    animation: none !important;
    transition: none !important;
  }
  .workbench-relax-modal.is-open .workbench-relax-dialog,
  .workbench-relax-modal.is-open .workbench-relax-display {
    opacity: 1;
    transform: none;
  }
}
