:root {
  color-scheme: light;
  --bg: #3b6ea5;
  --bg-deep: #2f5f9d;
  --metal: #c0c0c0;
  --metal-2: #d6d6d6;
  --metal-3: #eeeeee;
  --panel: #c0c0c0;
  --panel-raised: #dfdfdf;
  --text: #111111;
  --muted: #303030;
  --dim: #5f5f5f;
  --line: #808080;
  --line-hard: #404040;
  --green: #1f3f7a;
  --cyan: #1f3f7a;
  --rust: #8b0000;
  --warn: #806000;
  --black: rgba(0, 0, 0, 0.28);
  --shadow: rgba(0, 0, 0, 0.22);
  --topbar: 2.45rem;
  --taskbar: 3.2rem;
  --phi-1: 0.5rem;
  --phi-2: 0.8125rem;
  --phi-3: 1.3125rem;
  --phi-4: 2.125rem;
  --mono: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #4f8aca 0%, #3b6ea5 42%, #2f5f9d 100%);
  font-family: var(--sans);
  overflow-x: clip;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px dotted var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 80;
  padding: 0.65rem 0.85rem;
  color: #101211;
  background: var(--cyan);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    linear-gradient(180deg, #4f8aca 0%, #3b6ea5 44%, #2f5f9d 100%);
  transition: opacity 240ms ease, visibility 240ms ease;
  animation: boot-fallback-hide 240ms ease 4.2s forwards;
}

.boot-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-terminal {
  width: min(42rem, 100%);
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 2px solid #c0c0c0;
  color: #111111;
  background: #c0c0c0;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #404040,
    0.45rem 0.45rem 0 rgba(0,0,0,0.22);
}

.boot-title,
.stamp,
.window-bar,
.topbar-repos {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boot-title {
  margin: calc(-1 * clamp(1rem, 3vw, 1.6rem)) calc(-1 * clamp(1rem, 3vw, 1.6rem)) 1rem;
  padding: 0.42rem 0.58rem;
  color: #ffffff;
  background: #1f3f7a;
}

.boot-log {
  min-height: 10.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #111111;
  font-family: var(--mono);
}

.boot-log li {
  opacity: 0;
  transform: translateY(0.25rem);
  animation: boot-line 180ms steps(2, end) forwards;
}

.boot-log li:nth-child(1) { animation-delay: 240ms; }
.boot-log li:nth-child(2) { animation-delay: 660ms; }
.boot-log li:nth-child(3) { animation-delay: 1080ms; }
.boot-log li:nth-child(4) { animation-delay: 1520ms; }
.boot-log li:nth-child(5) { animation-delay: 1980ms; }
.boot-log li:nth-child(6) { animation-delay: 2480ms; }
.boot-log li:nth-child(7) { animation-delay: 3000ms; }

.boot-log span {
  display: inline-block;
  width: 6rem;
  color: #1f3f7a;
  font-weight: 800;
}

.boot-meter {
  height: 0.8rem;
  margin-top: 1rem;
  border: 1px solid #808080;
  background: #ffffff;
  box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #ffffff;
  overflow: hidden;
}

.boot-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, #1f3f7a, #1f3f7a 0.55rem, #ffffff 0.55rem, #ffffff 0.85rem);
  animation: boot-meter 3.65s steps(18, end) forwards;
}

.topbar,
.taskbar {
  position: sticky;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  border-color: var(--line);
  color: #111111;
  background: #b8b8b8;
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 #707070;
  backdrop-filter: none;
}

.topbar {
  top: 0;
  min-height: var(--topbar);
  justify-content: space-between;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid #404040;
}

.topbar-brand,
.public-index,
.topbar-repos {
  display: flex;
  align-items: center;
  min-width: 0;
}

.topbar-brand {
  gap: 0.55rem;
  text-decoration: none;
}

.status-dot {
  position: relative;
  width: 0.65rem;
  height: 0.65rem;
  overflow: hidden;
  border: 1px solid #404040;
  border-radius: 50%;
  background: #008000;
  box-shadow: inset 1px 1px 0 #7fd27f, inset -1px -1px 0 #003d20;
  animation: status-eye-attention 13s ease-in-out infinite;
}

.status-dot::before {
  content: "";
  position: absolute;
  inset: 0.18rem;
  border-radius: 50%;
  background: #003d20;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.28);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -0.08rem;
  border-radius: 50%;
  background: #003d20;
  transform: scaleY(0);
  transform-origin: center;
  animation: status-eye-blink 13s ease-in-out infinite;
}

.public-index {
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  color: #303030;
  overflow-wrap: normal;
}

.public-index span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.public-index a,
.topbar-repos {
  color: #111111;
  text-decoration: none;
  white-space: nowrap;
}

.public-index a:hover,
.topbar-repos:hover,
.start-links a:hover {
  color: #1f3f7a;
}

.os-shell {
  min-height: calc(100svh - var(--topbar) - var(--taskbar));
  padding-bottom: var(--taskbar);
}

.desktop-surface {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: var(--phi-3);
  min-height: calc(100svh - var(--topbar) - var(--taskbar));
  padding: clamp(var(--phi-2), 1.55vw, var(--phi-4));
  background:
    linear-gradient(180deg, #4f8aca 0%, #3b6ea5 44%, #2f5f9d 100%);
}

.desktop-column {
  flex: 0 0 18rem;
  max-width: 18rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--phi-2);
}

.desktop-grid {
  display: grid;
  grid-template-columns: repeat(3, 5.35rem);
  grid-auto-rows: max-content;
  align-items: start;
  justify-content: start;
  align-content: start;
  gap: var(--phi-2);
  min-width: 0;
}

.desktop-system-icons {
  display: flex;
  align-items: flex-start;
  margin-top: var(--phi-2);
}

.desktop-icon,
.route-button,
.system-trash,
.start-app,
.window-close,
.start-button,
.terminal-actions button {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.desktop-icon {
  width: 5.35rem;
  min-height: 6.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.38rem;
  text-align: center;
  color: #ffffff;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transition: transform 80ms ease, background 80ms ease, border-color 80ms ease;
}

.desktop-icon:hover,
.desktop-icon[aria-pressed="true"],
.system-trash:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.78);
  background: rgba(0, 0, 128, 0.28);
}

.desktop-icon:active,
.system-trash:active {
  transform: translate(1px, 1px);
  background: rgba(0, 0, 128, 0.38);
}

.desktop-icon:active .icon-plate,
.system-trash:active .icon-plate {
  box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #404040;
}

.route-button:hover,
.route-button[aria-pressed="true"],
.start-app:hover,
.start-app[aria-current="true"] {
  border-color: var(--cyan);
  background: #d8d8d8;
}

.route-button:active {
  background: #c0c0c0;
  box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #404040;
  transform: translate(1px, 1px);
}

.icon-plate {
  position: relative;
  width: 3.45rem;
  height: 3.45rem;
  display: grid;
  place-items: center;
  margin: 0 auto 0.45rem;
  border: 1px solid #808080;
  background:
    linear-gradient(135deg, #ffffff 0 18%, #d8d8d8 19% 100%);
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
}

.icon-plate::before,
.window-bolts::before,
.window-bolts::after {
  content: "";
  position: absolute;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: #404040;
  box-shadow: none;
}

.icon-plate::before {
  right: 0.28rem;
  top: 0.28rem;
}

.icon-glyph {
  color: #1f3f7a;
  font-size: 1.05rem;
  font-weight: 800;
}

/* Desktop project icon art */
.desktop-icon .icon-plate {
  --icon-canvas: 3.7rem;
  --icon-object: 2.36rem;
  --icon-blue: #1f3f7a;
  --icon-dark: #102040;
  --icon-red: #8b0000;
  --icon-silver: #c0c0c0;
  --icon-light: #eeeeee;
  --icon-yellow: #d6c44d;
  width: var(--icon-canvas);
  height: var(--icon-canvas);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.desktop-icon .icon-plate::before {
  display: none;
}

.desktop-icon:active .icon-plate {
  box-shadow: none;
}

.icon-art {
  position: relative;
  width: var(--icon-object);
  height: var(--icon-object);
  color: var(--icon-blue);
  filter:
    drop-shadow(1px 0 0 #ffffff)
    drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.58));
  transform: scale(1.08);
  transform-origin: center;
}

.icon-art::before,
.icon-art::after,
.icon-art > span {
  content: "";
  position: absolute;
  box-sizing: border-box;
  display: block;
}

.icon-art-dial::before {
  left: 0.14rem;
  top: 0.2rem;
  width: 1.92rem;
  height: 1.84rem;
  border: 2px solid var(--icon-dark);
  background:
    linear-gradient(135deg, #ffffff 0 0.34rem, transparent 0.35rem),
    linear-gradient(180deg, var(--icon-light) 0 0.34rem, var(--icon-silver) 0.35rem 100%);
  box-shadow:
    inset 2px 2px 0 #ffffff,
    inset -2px -2px 0 #808080;
}

.icon-art-dial::after {
  left: 0.38rem;
  top: 0.58rem;
  width: 0.42rem;
  height: 1.12rem;
  border: 2px solid var(--icon-dark);
  background:
    linear-gradient(180deg, #ffffff 0 0.18rem, #4f8aca 0.19rem 0.62rem, var(--icon-red) 0.63rem 100%);
}

.icon-art-dial > span {
  left: 1.08rem;
  top: 0.58rem;
  width: 0.58rem;
  height: 0.2rem;
  border: 1px solid var(--icon-dark);
  background: #ffffff;
  box-shadow:
    0 0.4rem 0 #ffffff,
    0 0.4rem 0 1px var(--icon-dark),
    0 0.8rem 0 #ffffff,
    0 0.8rem 0 1px var(--icon-dark);
}

.icon-art-filter::before {
  left: 0.2rem;
  top: 0.16rem;
  width: 1.62rem;
  height: 1.84rem;
  border: 2px solid var(--icon-dark);
  background:
    linear-gradient(180deg, #ffffff 0 0.28rem, transparent 0.29rem),
    var(--icon-light);
  box-shadow: inset -2px -2px 0 var(--icon-silver);
}

.icon-art-filter::after {
  left: 0.48rem;
  top: 0.52rem;
  width: 1.08rem;
  height: 0.18rem;
  background: var(--icon-blue);
  box-shadow: 0 0.38rem 0 var(--icon-blue), 0 0.76rem 0 var(--icon-blue);
}

.icon-art-filter > span {
  left: 0.72rem;
  bottom: 0.22rem;
  width: 0.56rem;
  height: 0.34rem;
  border: 2px solid var(--icon-red);
  background: #ffffff;
}

.icon-art-project-ai-protocol-kit::before {
  left: 0.16rem;
  top: 0.46rem;
  width: 1.94rem;
  height: 1.26rem;
  border: 2px solid var(--icon-dark);
  background:
    linear-gradient(135deg, #ffffff 0 0.28rem, transparent 0.29rem),
    linear-gradient(180deg, #d6c44d 0 0.38rem, #fff1a6 0.39rem 100%);
  box-shadow:
    inset 2px 2px 0 #ffffff,
    inset -2px -2px 0 #8f8124;
}

.icon-art-project-ai-protocol-kit::after {
  left: 0.46rem;
  top: 0.24rem;
  width: 1.12rem;
  height: 0.4rem;
  border: 2px solid var(--icon-dark);
  border-bottom: 0;
  background: #fff1a6;
}

.icon-art-project-ai-protocol-kit > span {
  left: 0.46rem;
  top: 0.88rem;
  width: 0.28rem;
  height: 0.28rem;
  background: var(--icon-red);
  box-shadow:
    0.46rem 0 0 var(--icon-blue),
    0.92rem 0 0 var(--icon-red),
    0 0.42rem 0 var(--icon-blue),
    0.46rem 0.42rem 0 var(--icon-red),
    0.92rem 0.42rem 0 var(--icon-blue);
}

.icon-art-project-csbp::before {
  left: 0.32rem;
  top: 0.12rem;
  width: 1.42rem;
  height: 1.9rem;
  border: 2px solid var(--icon-dark);
  background:
    linear-gradient(180deg, #ffffff 0 0.26rem, transparent 0.27rem),
    var(--icon-light);
  box-shadow: inset -2px -2px 0 var(--icon-silver);
}

.icon-art-project-csbp::after {
  left: 0.56rem;
  top: 0.62rem;
  width: 0.22rem;
  height: 0.22rem;
  background: var(--icon-red);
  box-shadow: 0 0.42rem 0 var(--icon-red), 0 0.84rem 0 var(--icon-red);
}

.icon-art-project-csbp > span {
  left: 0.92rem;
  top: 0.62rem;
  width: 0.56rem;
  height: 0.16rem;
  background: var(--icon-blue);
  box-shadow: 0 0.42rem 0 var(--icon-blue), 0 0.84rem 0 var(--icon-blue);
}

.icon-art-tape::before {
  left: 0.14rem;
  top: 0.48rem;
  width: 1.86rem;
  height: 1.18rem;
  border: 2px solid var(--icon-dark);
  background:
    linear-gradient(180deg, #ffffff 0 0.28rem, var(--icon-silver) 0.29rem 100%);
}

.icon-art-tape::after {
  left: 0.48rem;
  top: 0.88rem;
  width: 0.42rem;
  height: 0.42rem;
  border: 2px solid var(--icon-blue);
  background: #ffffff;
  box-shadow: 0.76rem 0 0 -2px #ffffff, 0.76rem 0 0 0 var(--icon-blue);
}

.icon-art-tape > span {
  left: 0.54rem;
  bottom: 0.34rem;
  width: 1.04rem;
  height: 0.16rem;
  background: var(--icon-dark);
}

.icon-art-scale::before {
  left: 0.98rem;
  top: 0.18rem;
  width: 0.18rem;
  height: 1.48rem;
  background: var(--icon-dark);
  box-shadow: -0.58rem 0.3rem 0 var(--icon-dark), 0.58rem 0.3rem 0 var(--icon-dark);
}

.icon-art-scale::after {
  left: 0.3rem;
  top: 0.58rem;
  width: 1.56rem;
  height: 0.16rem;
  background: var(--icon-dark);
}

.icon-art-scale > span {
  left: 0.22rem;
  top: 0.96rem;
  width: 0.58rem;
  height: 0.42rem;
  border: 2px solid var(--icon-blue);
  border-top: 0;
  background: var(--icon-light);
  box-shadow: 1.14rem 0 0 -2px var(--icon-light), 1.14rem 0 0 0 var(--icon-blue), 0.54rem 0.68rem 0 -1px var(--icon-dark);
}

.icon-art-lens::before {
  left: 0.34rem;
  top: 0.28rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--icon-dark);
  background:
    linear-gradient(135deg, #ffffff 0 0.34rem, #9fc3e8 0.35rem);
}

.icon-art-lens::after {
  left: 1.2rem;
  top: 1.2rem;
  width: 0.72rem;
  height: 0.2rem;
  background: var(--icon-dark);
  transform: rotate(45deg);
  transform-origin: left center;
}

.icon-art-lens > span {
  left: 0.62rem;
  top: 0.58rem;
  width: 0.38rem;
  height: 0.38rem;
  border-top: 2px solid var(--icon-red);
  border-left: 2px solid var(--icon-red);
}

.icon-art-rail::before {
  left: 0.32rem;
  top: 0.24rem;
  width: 0.18rem;
  height: 1.68rem;
  background: var(--icon-dark);
  box-shadow: 1.3rem 0 0 var(--icon-dark);
}

.icon-art-rail::after {
  left: 0.18rem;
  top: 0.52rem;
  width: 1.82rem;
  height: 0.16rem;
  background: var(--icon-blue);
  box-shadow: 0 0.46rem 0 var(--icon-blue), 0 0.92rem 0 var(--icon-blue);
}

.icon-art-rail > span {
  left: 0.92rem;
  top: 0.22rem;
  width: 0.18rem;
  height: 1.7rem;
  background: var(--icon-red);
}

.icon-art-frame::before {
  left: 0.24rem;
  top: 0.24rem;
  width: 1.68rem;
  height: 1.68rem;
  border: 2px solid var(--icon-dark);
  background: var(--icon-light);
  box-shadow: inset -2px -2px 0 var(--icon-silver);
}

.icon-art-frame::after {
  left: 0.54rem;
  top: 0.54rem;
  width: 1.08rem;
  height: 1.08rem;
  border: 2px solid var(--icon-red);
}

.icon-art-frame > span {
  left: 0.82rem;
  top: 0.08rem;
  width: 0.5rem;
  height: 2rem;
  border-top: 2px solid var(--icon-blue);
  border-bottom: 2px solid var(--icon-blue);
}

.icon-art-boot::before {
  left: 0.32rem;
  top: 0.12rem;
  width: 1.48rem;
  height: 1.9rem;
  border: 2px solid var(--icon-dark);
  background:
    linear-gradient(180deg, var(--icon-blue) 0 0.52rem, transparent 0.53rem),
    var(--icon-silver);
}

.icon-art-boot::after {
  left: 0.58rem;
  top: 1.28rem;
  width: 0.94rem;
  height: 0.52rem;
  border: 2px solid var(--icon-blue);
  background: #ffffff;
}

.icon-art-boot > span {
  right: 0.5rem;
  top: 0.3rem;
  width: 0.3rem;
  height: 0.4rem;
  background: #ffffff;
}

.icon-art-gpt::before {
  left: 0.2rem;
  top: 0.36rem;
  width: 1.72rem;
  height: 1.38rem;
  border: 2px solid var(--icon-dark);
  background:
    linear-gradient(180deg, var(--icon-blue) 0 0.26rem, #0b0b0b 0.27rem 100%);
}

.icon-art-gpt::after {
  left: 0.52rem;
  top: 0.88rem;
  width: 0.42rem;
  height: 0.16rem;
  background: #ffffff;
  box-shadow: 0.52rem 0.3rem 0 #ffffff;
}

.icon-art-gpt > span {
  left: 0.46rem;
  top: 0.64rem;
  width: 0.42rem;
  height: 0.16rem;
  background: #4f8aca;
}

.icon-art-project-canon-boundary-guard-gpt-project::before {
  left: 0.18rem;
  top: 0.42rem;
  width: 1.78rem;
  height: 1.36rem;
  border: 2px solid var(--icon-dark);
  background:
    linear-gradient(180deg, #d6c44d 0 0.28rem, #fff1a6 0.29rem);
}

.icon-art-project-canon-boundary-guard-gpt-project::after {
  left: 0.44rem;
  top: 0.84rem;
  width: 1.26rem;
  height: 0.62rem;
  border: 2px solid var(--icon-blue);
}

.icon-art-project-canon-boundary-guard-gpt-project > span {
  left: 0.9rem;
  top: 0.64rem;
  width: 0.18rem;
  height: 1rem;
  background: var(--icon-red);
}

.icon-art-r2::before {
  left: 0.22rem;
  top: 0.68rem;
  width: 1.78rem;
  height: 1.12rem;
  border: 2px solid var(--icon-dark);
  background: var(--icon-silver);
}

.icon-art-r2::after {
  left: 0.42rem;
  top: 0.42rem;
  width: 1.38rem;
  height: 0.44rem;
  border: 2px solid var(--icon-dark);
  background: var(--icon-light);
}

.icon-art-r2 > span {
  left: 0.56rem;
  top: 1rem;
  width: 1rem;
  height: 0.16rem;
  background: var(--icon-blue);
  box-shadow: 0 0.34rem 0 var(--icon-blue);
}

.icon-art-canon::before {
  left: 0.3rem;
  top: 0.16rem;
  width: 1.52rem;
  height: 1.9rem;
  border: 2px solid var(--icon-dark);
  background:
    linear-gradient(90deg, transparent 0 0.62rem, var(--icon-red) 0.63rem 0.82rem, transparent 0.83rem),
    linear-gradient(180deg, transparent 0 0.78rem, var(--icon-red) 0.79rem 0.98rem, transparent 0.99rem),
    var(--icon-silver);
}

.icon-art-canon::after {
  left: 0.58rem;
  top: 0.54rem;
  width: 0.96rem;
  height: 0.96rem;
  border: 2px solid var(--icon-blue);
}

.icon-art-canon > span {
  left: 0.18rem;
  top: 0.38rem;
  width: 0.34rem;
  height: 0.34rem;
  background: var(--icon-dark);
  box-shadow: 1.42rem 0 0 var(--icon-dark), 0 1.08rem 0 var(--icon-dark), 1.42rem 1.08rem 0 var(--icon-dark);
}

.icon-art-claude::before {
  left: 0.28rem;
  top: 0.16rem;
  width: 1.48rem;
  height: 1.86rem;
  border: 2px solid var(--icon-dark);
  background:
    linear-gradient(135deg, transparent 0 1.14rem, var(--icon-silver) 1.15rem 1.38rem, transparent 1.39rem),
    var(--icon-light);
}

.icon-art-claude::after {
  left: 0.56rem;
  top: 0.62rem;
  width: 0.86rem;
  height: 0.16rem;
  background: var(--icon-blue);
  box-shadow: 0 0.38rem 0 var(--icon-blue), 0 0.76rem 0 var(--icon-blue);
}

.icon-art-claude > span {
  right: 0.24rem;
  bottom: 0.18rem;
  width: 0.52rem;
  height: 0.52rem;
  border: 2px solid var(--icon-red);
  background: #ffffff;
}

.icon-label {
  display: block;
  color: #ffffff;
  font-size: 0.76rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-shadow: 1px 1px 0 #000000;
}

.terminal-window,
.search-panel,
.inspector-window,
.start-menu,
.noscript-block {
  border: 2px solid #c0c0c0;
  background: #c0c0c0;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #404040,
    0.3rem 0.3rem 0 rgba(0,0,0,0.18);
}

.terminal-window {
  flex: 1 1 28rem;
  max-width: 40rem;
  min-width: min(100%, 18rem);
  align-self: flex-start;
  border-color: #c0c0c0;
  background: #b8b8b8;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #707070,
    0.18rem 0.18rem 0 rgba(0,0,0,0.12);
}

.terminal-window .window-bar {
  color: #ffffff;
  border-bottom-color: #404040;
  background: #1f3f7a;
}

.terminal-window .window-bar h1 {
  font-size: 0.72rem;
  line-height: 1.1;
}

.terminal-window.is-rebooting {
  border-color: #c0c0c0;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #707070,
    0.18rem 0.18rem 0 rgba(0,0,0,0.12);
}

.search-panel {
  position: fixed;
  left: 7.6rem;
  bottom: calc(var(--taskbar) + 0.6rem);
  z-index: 55;
  width: min(31rem, calc(100vw - 1.4rem));
  max-height: min(35rem, calc(100svh - var(--topbar) - var(--taskbar) - 1.6rem));
  overflow: auto;
  background: #c0c0c0;
}

.window-bar {
  position: relative;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid #404040;
  color: #ffffff;
  background: #1f3f7a;
}

.window-bar h1,
.window-bar h2,
.window-bar p {
  margin: 0;
  font-size: inherit;
  font-weight: 800;
}

.window-bolts {
  position: relative;
  width: 1.1rem;
  height: 0.6rem;
  flex: 0 0 auto;
}

.window-bolts::before {
  left: 0;
  top: 0.15rem;
}

.window-bolts::after {
  right: 0;
  top: 0.15rem;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  margin-left: auto;
}

.window-control {
  position: relative;
  width: 1.35rem;
  height: 1.25rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid #808080;
  color: #111111;
  background: #c0c0c0;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
  transition: transform 80ms ease, background 80ms ease, border-color 80ms ease, box-shadow 80ms ease;
}

.window-control-min::before,
.window-control-max::before,
.window-control-close::before,
.window-control-close::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.window-control-min::before {
  width: 0.58rem;
  height: 2px;
  bottom: 0.31rem;
}

.window-control-max::before {
  width: 0.55rem;
  height: 0.45rem;
  border: 1px solid currentColor;
  background: transparent;
}

.window-control-close::before,
.window-control-close::after {
  width: 0.62rem;
  height: 2px;
}

.window-control-close::before {
  transform: rotate(45deg);
}

.window-control-close::after {
  transform: rotate(-45deg);
}

.terminal-body {
  padding: 0.78rem 0.9rem;
  margin: 0.2rem;
  border: 1px solid #404040;
  background: #111111;
  box-shadow: inset 1px 1px 0 #000000, inset -1px -1px 0 #808080;
}

.terminal-body pre {
  margin: 0;
  color: #d7dfcf;
  font-family: var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.34;
}

.terminal-body strong {
  color: var(--cyan);
  font-weight: 800;
}

.terminal-marker {
  color: #66aaff;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", "Cascadia Mono", monospace;
}

.terminal-identity {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #404040;
  color: #d8d8d8;
  line-height: 1.45;
  background: #1f1f1f;
}

.terminal-actions {
  display: flex;
  margin-top: 0.52rem;
}

.terminal-actions button {
  min-height: 2.2rem;
  padding: 0.45rem 0.7rem;
  color: #111111;
  background: #d8d8d8;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
}

.terminal-command-zone {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  margin-top: 0.62rem;
  color: #66aaff;
  font-family: var(--mono);
}

.terminal-idle,
.terminal-echo,
.terminal-response {
  min-height: 1.34rem;
  line-height: 1.34;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.terminal-idle,
.terminal-echo {
  color: #66aaff;
}

.terminal-response {
  color: #e7e7e7;
}

.terminal-response.is-visible {
  animation: terminal-response-in 180ms steps(2, end) forwards;
}

.terminal-response.is-fading,
.terminal-echo.is-fading {
  opacity: 0;
  transition: opacity 180ms ease;
}

.terminal-input-form {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  min-height: 1.5rem;
  color: #66aaff;
}

.terminal-input-form.is-locked {
  display: none;
}

.terminal-input-prefix {
  flex: 0 0 auto;
}

.terminal-editable {
  display: inline-block;
  min-width: 0.2rem;
  max-width: 100%;
  color: #66aaff;
  outline: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal-editable:empty {
  min-width: 0.2rem;
}

.terminal-fake-cursor {
  width: 0.55rem;
  height: 1rem;
  margin-left: 0.08rem;
  background: #66aaff;
  animation: cursor-blink 1s steps(2, start) infinite;
}

.fake-reboot {
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e7e7e7;
  font-family: var(--mono);
}

/* Terminal takeover sequences */
.fake-reboot li {
  opacity: 0;
  transform: translateY(0.28rem);
  animation: boot-line 160ms steps(2, end) forwards;
}

.fake-reboot li:nth-child(1) { animation-delay: 120ms; }
.fake-reboot li:nth-child(2) { animation-delay: 780ms; }
.fake-reboot li:nth-child(3) { animation-delay: 1420ms; }
.fake-reboot li:nth-child(4) { animation-delay: 2080ms; }
.fake-reboot li:nth-child(5) { animation-delay: 2740ms; }
.fake-reboot li:nth-child(6) { animation-delay: 3400ms; }
.fake-reboot li:nth-child(7) { animation-delay: 4060ms; }
.fake-reboot li:nth-child(8) { animation-delay: 4720ms; }

.fake-reboot span {
  display: inline-block;
  min-width: 3.5rem;
  font-weight: 800;
}

.trash-inventory {
  justify-content: flex-start;
  padding-top: 0.2rem;
  font-size: 0.92rem;
}

.trash-inventory li {
  line-height: 1.32;
}

.trash-inventory .trash-purged {
  color: #f2fff2;
  text-shadow: 1px 1px 0 #000000;
}

.trash-inventory .trash-purged span {
  color: #66ff99;
}

.fake-reboot b {
  color: var(--warn);
  font-weight: 800;
}

.check-ok {
  color: #66aaff;
}

.check-cold {
  color: var(--cyan);
}

.check-warn {
  color: var(--warn);
}

.check-bad {
  color: var(--rust);
}

.terminal-prompt {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 1.5rem;
  margin: 0.62rem 0 0;
  color: #66aaff;
}

.idle-dots::before {
  content: "";
  animation: idle-dots 1.4s steps(4, end) infinite;
}

.cursor {
  width: 0.55rem;
  height: 1rem;
  margin-left: 0.12rem;
  background: #66aaff;
  animation: cursor-blink 1s steps(2, start) infinite;
}

.terminal-window .cursor {
  background: #66aaff;
}

.route-body {
  padding: 0.8rem;
  background: #c0c0c0;
}

.route-body p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

.route-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.route-button {
  width: 100%;
  min-height: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.62rem 0.68rem;
  text-align: left;
  background: #d8d8d8;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
}

.route-button span,
.route-button strong {
  overflow-wrap: anywhere;
}

.route-button span {
  color: #111111;
  line-height: 1.3;
}

.route-button strong {
  color: #1f3f7a;
  font-size: 0.78rem;
  text-align: right;
}

.inspector-window {
  flex: 1.22 1 27rem;
  min-width: min(100%, 19rem);
  max-width: 50rem;
  max-height: calc(100svh - var(--topbar) - var(--taskbar) - var(--phi-4) - var(--phi-2));
  overflow: auto;
  margin-left: auto;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(0.3rem);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  border-color: #ffffff #404040 #404040 #ffffff;
  background: #c0c0c0;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #404040,
    0.38rem 0.38rem 0 rgba(0,0,0,0.2);
}

.inspector-window .window-bar {
  min-height: 2.35rem;
  color: #ffffff;
  background: #1f3f7a;
}

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

.window-control:hover,
.window-close:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.window-close:hover {
  border-color: var(--rust);
}

.window-control:active {
  background: #c0c0c0;
  box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #404040;
  transform: translate(1px, 1px);
}

.inspector-body {
  padding: clamp(var(--phi-2), 1.45vw, var(--phi-3));
  color: #111111;
  background: #e6e1d3;
}

.stamp {
  margin: 0 0 var(--phi-1);
  color: #1f3f7a;
  font-size: 0.78rem;
}

.inspector-body h2 {
  margin: 0;
  font-size: clamp(1.18rem, 1.65vw, 1.72rem);
  line-height: 1.14;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.system-trash {
  width: 5.35rem;
  min-height: 6.35rem;
  padding: 0.38rem;
  text-align: center;
  color: #ffffff;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transition: transform 80ms ease, background 80ms ease, border-color 80ms ease;
}

.trash-plate {
  overflow: visible;
}

.trash-can {
  position: relative;
  width: 1.9rem;
  height: 2.08rem;
  display: block;
  border: 1px solid #404040;
  border-top: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 0.32rem, rgba(0,0,0,0.16) 0.32rem 0.37rem),
    linear-gradient(180deg, #efefef, #c8c8c8);
  box-shadow: inset 1px 0 0 #ffffff, 1px 1px 0 rgba(0,0,0,0.25);
  transform: rotate(-2deg);
}

.trash-can::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.42rem;
  width: 2.22rem;
  height: 0.3rem;
  border: 1px solid #404040;
  background: #d8d8d8;
  transform: translateX(-50%) rotate(4deg);
}

.trash-can::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.68rem;
  width: 0.74rem;
  height: 0.22rem;
  border: 1px solid #404040;
  border-bottom: 0;
  transform: translateX(-50%);
}

.subtitle,
.muted {
  color: #303030;
}

.subtitle {
  margin: var(--phi-1) 0 var(--phi-2);
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
  line-height: 1.45;
}

.route-line {
  margin: 0 0 var(--phi-3);
  padding: var(--phi-2);
  border-left: 2px solid var(--cyan);
  color: #111111;
  background: #f0ede3;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #c9c6ba;
  line-height: 1.45;
}

.specs {
  display: flex;
  flex-direction: column;
  gap: var(--phi-2);
  margin: var(--phi-3) 0;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--phi-2);
  margin: 0 0 var(--phi-3);
}

.spec-row {
  padding: var(--phi-2);
  border: 1px solid #b0b0b0;
  background: #f0ede3;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #d6d2c5;
}

.spec-row dt {
  margin-bottom: var(--phi-1);
  color: #1f3f7a;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-row dd {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.actions,
.start-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.start-links {
  flex-wrap: nowrap;
}

.readme-copy {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1rem 0;
}

.readme-copy p {
  margin: 0;
  padding: 0.8rem;
  border: 1px solid #b0b0b0;
  color: #111111;
  background: #f0ede3;
  line-height: 1.55;
}

.actions a,
.actions button,
.start-links a {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.72rem;
  border: 1px solid #808080;
  color: #111111;
  background: #d8d8d8;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
  text-decoration: none;
}

.actions a:first-child {
  color: #ffffff;
  border-color: #1f3f7a;
  background: #1f3f7a;
}

/* Start menu layout */
.start-menu {
  position: fixed;
  left: 0.7rem;
  bottom: calc(var(--taskbar) + 0.6rem);
  z-index: 55;
  width: min(33rem, calc(100vw - 1.4rem));
  height: min(35rem, calc(100svh - var(--topbar) - var(--taskbar) - 1.6rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: #c0c0c0;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #404040,
    0.3rem 0.3rem 0 rgba(0,0,0,0.18);
}

.start-menu[hidden],
.search-panel[hidden],
.inspector-window[hidden],
.power-menu[hidden],
.micro-toast[hidden] {
  display: none !important;
}

.start-links a {
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
  min-height: 1.82rem;
  padding: 0.34rem 0.38rem;
  border-color: #808080;
  background: #d8d8d8;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
  font-size: 0.68rem;
  line-height: 1.15;
  text-align: center;
  gap: 0.34rem;
}

.system-icon {
  position: relative;
  width: 0.92rem;
  height: 0.92rem;
  flex: 0 0 auto;
  color: var(--muted);
}

.system-user::before,
.system-user::after,
.system-folder::before,
.system-folder::after,
.system-doc::before,
.system-doc::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.system-user::before {
  left: 50%;
  top: 0.08rem;
  width: 0.34rem;
  height: 0.34rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.system-user::after {
  left: 0.16rem;
  right: 0.16rem;
  bottom: 0.08rem;
  height: 0.42rem;
  border: 1px solid currentColor;
  border-radius: 999px 999px 0.12rem 0.12rem;
}

.system-folder::before {
  left: 0.06rem;
  top: 0.22rem;
  width: 0.36rem;
  height: 0.18rem;
  border: 1px solid currentColor;
  border-bottom: 0;
}

.system-folder::after {
  left: 0.06rem;
  right: 0.06rem;
  top: 0.34rem;
  bottom: 0.1rem;
  border: 1px solid currentColor;
  background: rgba(0,0,0,0.12);
}

.system-doc::before {
  inset: 0.08rem 0.18rem 0.08rem 0.18rem;
  border: 1px solid currentColor;
  background:
    linear-gradient(135deg, transparent 0 76%, currentColor 77% 82%, transparent 83%);
}

.system-doc::after {
  left: 0.32rem;
  right: 0.32rem;
  top: 0.34rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0.18rem 0 currentColor, 0 0.36rem 0 currentColor;
}

.start-head {
  flex: 0 0 auto;
  padding: 0.85rem;
  margin-bottom: 0;
  border-bottom: 1px solid #404040;
  color: #ffffff;
  background: #1f3f7a;
  box-shadow: inset 1px 1px 0 #4f8aca, inset -1px -1px 0 #0f2448;
}

.start-head h2,
.start-head p,
.start-apps h3,
.start-section h3 {
  margin: 0;
}

.start-head h2 {
  color: #ffffff;
  font-size: 1.02rem;
}

.start-head p {
  color: #e7eefb;
  font-size: 0.82rem;
}

.start-section {
  flex: 0 0 auto;
  padding: 0.75rem 0.85rem 0;
}

.start-apps {
  min-height: 0;
  display: flex;
  flex: 1 1 13rem;
  flex-direction: column;
  margin-top: 0;
  padding: 0.8rem 0.85rem 0.7rem;
}

.start-apps h3,
.start-section h3 {
  margin-bottom: 0.55rem;
  color: #1f3f7a;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#startApps {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.start-app {
  width: 100%;
  min-height: 2.8rem;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 0.58rem;
  padding: 0.46rem 0.5rem;
  text-align: left;
  border-color: #808080;
  background: #d8d8d8;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
}

.start-app > span:not(.mini-icon) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.08rem;
}

.start-app .mini-icon {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 0.04rem;
  border: 1px solid #808080;
  color: #1f3f7a;
  background: #efefef;
  font-weight: 800;
}

.start-app strong,
.start-app small {
  display: block;
  overflow-wrap: anywhere;
  word-break: normal;
}

.start-app small {
  color: #303030;
  font-size: 0.76rem;
}

.start-app strong,
.start-app small {
  line-height: 1.12;
}

.start-power {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-top: 0;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid #808080;
  background: #c0c0c0;
}

.power-button,
.power-menu button {
  min-height: 2.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #808080;
  color: #111111;
  background: #d8d8d8;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
  cursor: pointer;
}

.power-button {
  padding: 0.45rem 0.65rem;
}

.power-button span {
  position: relative;
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid #404040;
  border-radius: 50%;
}

.power-button span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.22rem;
  width: 2px;
  height: 0.58rem;
  background: #404040;
  transform: translateX(-50%);
}

.power-button[aria-expanded="true"],
.power-button:hover,
.power-menu button:hover {
  color: #1f3f7a;
}

.power-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.35rem);
  width: max-content;
  max-width: calc(100vw - 1.4rem);
  display: flex;
  gap: 0.3rem;
  padding: 0.32rem;
  border: 2px solid #c0c0c0;
  background: #c0c0c0;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #404040,
    0.2rem 0.2rem 0 rgba(0,0,0,0.18);
}

.power-menu button {
  min-height: 1.92rem;
  justify-content: center;
  padding: 0.34rem 0.48rem;
  font-size: 0.72rem;
  text-align: center;
  white-space: nowrap;
}

.power-menu button + button {
  margin-top: 0;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: var(--taskbar);
  padding: 0.45rem 0.65rem;
  border-top: 1px solid #ffffff;
  background: #b8b8b8;
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 #707070;
}

.start-button {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.8rem;
  border-color: #808080;
  background: #d8d8d8;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
}

.start-button span {
  position: relative;
  width: 1.32rem;
  height: 1.08rem;
  display: inline-block;
  border: 1px solid #102040;
  background:
    linear-gradient(180deg, #1f3f7a 0 0.28rem, transparent 0.29rem),
    linear-gradient(135deg, #ffffff 0 0.16rem, transparent 0.17rem),
    #eeeeee;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #404040,
    1px 1px 0 rgba(0, 0, 0, 0.42);
  transform: rotate(-3deg);
}

.start-button span::before {
  content: "!";
  position: absolute;
  left: 0.14rem;
  top: 0.42rem;
  width: 0.34rem;
  height: 0.42rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #8b0000;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 1px 1px 0 #404040;
}

.start-button span::after {
  content: "";
  position: absolute;
  left: 0.62rem;
  top: 0.48rem;
  width: 0.42rem;
  height: 0.1rem;
  background: #102040;
  box-shadow:
    0 0.24rem 0 #102040,
    0.36rem -0.08rem 0 #8b0000,
    0.46rem 0.06rem 0 #102040;
}

.start-button[aria-expanded="true"],
.start-button:hover,
.terminal-actions button:hover,
.actions a:hover,
.actions button:hover,
.start-links a:hover,
.start-app:hover,
.start-app[aria-current="true"],
.power-button[aria-expanded="true"],
.power-button:hover,
.power-menu button:hover {
  color: #1f3f7a;
  border-color: #404040;
  background: #eeeeee;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
}

.start-button:active,
.terminal-actions button:active,
.actions a:active,
.actions button:active,
.start-links a:active,
.start-app:active,
.power-button:active,
.power-menu button:active {
  background: #c0c0c0;
  box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #404040;
  transform: translate(1px, 1px);
}

.task-search {
  min-width: min(20rem, 48vw);
  min-height: 2.05rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.7rem;
  border: 1px solid #808080;
  color: #111111;
  background: #ffffff;
  box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #ffffff;
  cursor: pointer;
}

.task-search > span:first-child {
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 auto;
  border: 1px solid #404040;
  border-radius: 50%;
  box-shadow: 0.32rem 0.32rem 0 -0.25rem var(--dim);
}

.task-search-label {
  margin: 0;
}

.task-search[aria-expanded="true"],
.task-search:hover {
  color: #1f3f7a;
  border-color: #404040;
  background: #f3f3f3;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
}

.task-search:active {
  background: #d8d8d8;
  box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #404040;
  transform: translate(1px, 1px);
}

.tray-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.tray-icon {
  min-width: 2rem;
  min-height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid #808080;
  color: #111111;
  background: #d8d8d8;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
  font-size: 0.72rem;
  cursor: pointer;
  transition: transform 80ms ease, background 80ms ease, border-color 80ms ease, box-shadow 80ms ease;
}

.tray-icon:hover {
  color: #1f3f7a;
  border-color: #404040;
  background: #eeeeee;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
}

.tray-icon:active {
  background: #c0c0c0;
  box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #404040;
  transform: translate(1px, 1px);
}

.tray-help span {
  width: 1.05rem;
  height: 1.05rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.tray-icon svg {
  width: 1.12rem;
  height: 1.12rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tray-settings svg {
  width: 1.22rem;
  height: 1.22rem;
}

.task-tray {
  min-width: 5.4rem;
  margin-left: 0;
  text-align: right;
  font-size: 0.79rem;
  line-height: 1.2;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.task-tray p {
  display: flex;
  justify-content: flex-end;
  gap: 0.28rem;
  margin: 0;
}

.task-tray a {
  color: #111111;
  text-decoration: none;
}

.task-tray a:hover {
  color: #1f3f7a;
}

.task-tray strong {
  color: #1f3f7a;
  animation: cursor-blink 1.1s steps(2, start) infinite;
}

.micro-toast {
  position: fixed;
  z-index: 90;
  min-width: 5.5rem;
  max-width: min(22rem, calc(100vw - 1rem));
  padding: 0.42rem 0.58rem;
  border: 2px solid #c0c0c0;
  color: #111111;
  background: #ffffcc;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #404040,
    0.18rem 0.18rem 0 rgba(0,0,0,0.18);
  font-size: 0.78rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}

.micro-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-block {
  margin: 1rem;
  padding: 1rem;
}

@media (max-width: 52rem) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-index {
    justify-content: flex-start;
  }

  .desktop-surface {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .desktop-column {
    flex-basis: 100%;
    max-width: none;
  }

  .search-panel,
  .terminal-window,
  .inspector-window {
    max-width: none;
  }

  .inspector-window {
    max-height: none;
    overflow: visible;
  }

  .spec-strip {
    grid-template-columns: 1fr;
  }

  .search-panel {
    left: 0.7rem;
  }
}

@media (max-width: 30rem) {
  .desktop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--phi-2);
  }

  .desktop-icon {
    width: 100%;
    min-height: 6.4rem;
  }

  .icon-plate {
    width: 3.55rem;
    height: 3.55rem;
  }

  .task-search {
    min-width: 0;
    flex: 1 1 auto;
  }

  .task-search-label {
    display: none;
  }
}

@keyframes boot-line {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes boot-meter {
  to {
    width: 100%;
  }
}

@keyframes boot-fallback-hide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes terminal-response-in {
  0% {
    opacity: 0;
    transform: translateY(0.22rem);
  }

  42% {
    opacity: 0.62;
  }

  54% {
    opacity: 0.22;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

@keyframes idle-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}


@keyframes status-eye-blink {
  0%, 90%, 92.2%, 94.4%, 100% {
    transform: scaleY(0);
  }

  91.1%, 93.3% {
    transform: scaleY(1);
  }
}

@keyframes status-eye-attention {
  0%, 89%, 95%, 100% {
    box-shadow: inset 1px 1px 0 #7fd27f, inset -1px -1px 0 #003d20;
  }

  91%, 93% {
    box-shadow: inset 1px 1px 0 #7fd27f, inset -1px -1px 0 #003d20, 0 0 0.48rem rgba(0, 128, 0, 0.54);
  }
}

@keyframes broken-led {
  0%, 12%, 18%, 44%, 63%, 100% {
    opacity: 0.92;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
  }

  13%, 16%, 45%, 49%, 64%, 70% {
    opacity: 0.42;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
  }

  17%, 50% {
    opacity: 1;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .boot-screen {
    display: none;
  }
}
