@font-face {
  font-family: Plex;
  src: url("assets/fonts/ibm-plex-mono-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("assets/fonts/ibm-plex-mono-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #10110f;
  --panel: #141510;
  --fg: #cbcbb5;
  --muted: #939583;
  --dim: #646854;
  --line: #35382b;
  --accent: #dadba9;
  --selected: #24291b;
  --green: #91a18b;
  --red: #c87f7e;
  --blue: #9aabb1;
  --shadow: #0009;
  --mono: Plex, ui-monospace, monospace;
}
:root[data-theme="phosphor"] {
  --bg: #09100d;
  --panel: #0c1711;
  --fg: #b1d4b8;
  --muted: #799984;
  --dim: #516f5a;
  --line: #274232;
  --accent: #b4e897;
  --selected: #173320;
  --green: #88cbb4;
  --red: #d4b783;
  --blue: #95c0c0;
  --shadow: #0009;
}
:root[data-theme="paper"] {
  color-scheme: light;
  --bg: #e9e5d8;
  --panel: #e2decf;
  --fg: #424638;
  --muted: #666b58;
  --dim: #868874;
  --line: #b8baa4;
  --accent: #3f5534;
  --selected: #d4dac1;
  --green: #506b61;
  --red: #9f4e46;
  --blue: #456a7a;
  --shadow: #42463833;
}
:root[data-theme="ember"] {
  --bg: #171011;
  --panel: #1f1515;
  --fg: #dabeb0;
  --muted: #a0837b;
  --dim: #775f59;
  --line: #4a3431;
  --accent: #e2ac86;
  --selected: #35241f;
  --green: #b1a481;
  --red: #d27877;
  --blue: #b3a3bd;
  --shadow: #0009;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  font: 12px/1.5 var(--mono);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 1px solid var(--accent);
}
button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover,
button:hover {
  color: var(--accent);
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p,
pre,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font: inherit;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
[hidden] {
  display: none !important;
}
::placeholder {
  color: var(--dim);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg);
  z-index: 300;
}
.skip-link:focus {
  top: 12px;
}
.shell {
  width: min(1112px, 100%);
  margin: 0 auto;
  padding: 0 36px;
  min-height: 650px;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 78px minmax(0, 1fr) 34px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
  font-size: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.monogram {
  font-size: 19px;
  letter-spacing: -7px;
  transform: translateX(-3px);
  width: 19px;
  font-weight: 500;
}
.monogram span {
  position: relative;
  top: -1px;
}
.external-nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
}
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--dim);
}
.site-footer > span:last-child {
  display: flex;
  gap: 10px;
}
.footer-separator {
  color: var(--line);
}
/* The entrance is a small editing surface, not a conventional hero. */
.entrance {
  width: min(800px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}
.entrance h1 {
  display: flex;
  gap: 10px;
  margin: 5px 0 22px;
  font-size: 12px;
}
.entrance-role {
  margin-left: auto;
  color: var(--muted);
}
.comment {
  color: var(--dim);
}
.code-window {
  min-height: 200px;
  flex: 1;
  max-height: 420px;
  position: relative;
}
.code-caption {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 9px;
  padding: 0 0 10px 34px;
  gap: 12px;
}
.code-caption span:last-child {
  font-size: 8px;
  white-space: nowrap;
}
.code-surface {
  position: relative;
  height: calc(100% - 43px);
  overflow: hidden;
}
.code-highlight,
.code-surface textarea,
.line-numbers {
  font: 12px/17px var(--mono);
  letter-spacing: 0;
  white-space: pre;
  tab-size: 2;
}
.code-highlight {
  padding: 0 8px 40px 34px;
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--fg);
}
.code-surface textarea {
  position: absolute;
  inset: 0;
  resize: none;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0 8px 40px 34px;
  background: transparent;
  color: transparent;
  caret-color: var(--accent);
  -webkit-text-fill-color: transparent;
  overflow: auto;
  scrollbar-width: none;
  outline-offset: -1px;
}
.code-surface textarea::selection {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  color: transparent;
}
.code-surface textarea::-webkit-scrollbar {
  display: none;
}
.line-numbers {
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  text-align: right;
  color: var(--dim);
  opacity: 0.75;
  pointer-events: none;
}
.code-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.token-string {
  color: var(--green);
}
.token-keyword {
  color: var(--blue);
}
.token-number {
  color: var(--red);
}
.token-comment {
  color: var(--dim);
}
.editor-status {
  display: flex;
  align-items: center;
  font-size: 10px;
  background: var(--panel);
  height: 20px;
  gap: 8px;
  color: var(--muted);
}
.editor-status > span:last-child {
  margin-left: auto;
  margin-right: 8px;
}
.mode {
  color: var(--bg);
  background: var(--accent);
  padding: 1px 8px;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.entrance-desk {
  height: 167px;
  flex: 0 0 167px;
  position: relative;
  width: 100%;
  margin-top: 16px;
}
.entrance-desk canvas {
  height: 100%;
  width: 100%;
  display: block;
}
.instrument-caption {
  position: absolute;
  left: 0;
  bottom: 14px;
  font-size: 8px;
  color: var(--dim);
}
.entrance-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 9px 0 3px;
  font-size: 11px;
}
.entrance-footer > div {
  display: flex;
  gap: 20px;
  align-items: center;
}
.quiet-button {
  color: var(--muted);
  font-size: 11px;
}
.enter-link {
  background: var(--accent);
  color: var(--bg);
  padding: 2px 9px;
  white-space: nowrap;
}
.enter-link:hover {
  color: var(--bg);
  filter: brightness(1.12);
}
.entrance-hint {
  text-align: right;
  font-size: 8px;
  color: var(--dim);
  padding-top: 9px;
}
.entrance .code-window:focus-within .code-caption {
  color: var(--muted);
}
/* The fixed-height stage and its internally scrolling terminal. */
.workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 49px 141px;
  min-height: 0;
}
.stage {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 162px;
  gap: 16px;
  min-height: 0;
  position: relative;
}
.project-navigation {
  position: relative;
  border-right: 1px solid var(--line);
  min-height: 0;
  overflow: clip;
  touch-action: pan-x;
}
.project-wheel {
  position: absolute;
  inset: 0 13px 26px 0;
  user-select: none;
  touch-action: pan-x;
  cursor: grab;
  overflow: clip;
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.project-wheel:active {
  cursor: grabbing;
}
.wheel-track {
  position: absolute;
  width: 340px;
  height: 780px;
  top: 50%;
  left: 20px;
  border-left: 1px solid var(--line);
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}
.wheel-item {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 150px;
  height: 98px;
  margin-top: -49px;
  padding: 5px;
  border: 1px solid var(--line);
  text-align: left;
  background: var(--bg);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  cursor: pointer;
}
.wheel-item::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 42px;
  border: 5px solid transparent;
  border-left-color: var(--accent);
  opacity: 0;
}
.wheel-item[aria-selected="true"] {
  border-color: var(--accent);
}
.wheel-item[aria-selected="true"]::after {
  opacity: 1;
}
.wheel-item:focus-visible {
  outline-offset: 3px;
}
.wheel-thumb {
  height: 69px;
  overflow: hidden;
  position: relative;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wheel-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(transparent 0 3px, var(--bg) 3px 4px);
  opacity: 0.18;
}
.wheel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.45);
  opacity: 0.9;
}
.wheel-label {
  display: block;
  font-size: 9px;
  padding-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thumb-monogram {
  font-size: 52px;
  letter-spacing: -10px;
  font-weight: 500;
  line-height: 1;
  transform: translateX(-3px);
}
.thumb-symbol {
  font-size: 30px;
  color: var(--accent);
}
.thumb-subtitle {
  position: absolute;
  bottom: 5px;
  left: 7px;
  font-size: 6px;
  letter-spacing: 1px;
  color: var(--muted);
}
.thumb-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12px 12px;
}
.thumb-themes {
  background: linear-gradient(90deg, #10110f 0 25%, #173320 25% 50%, #e9e5d8 50% 75%, #442824 75%);
}
.wheel-hint {
  position: absolute;
  bottom: 4px;
  left: 8px;
  font-size: 9px;
  color: var(--muted);
}
.terminal {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  outline-offset: 4px;
}
.terminal-heading {
  height: 26px;
  flex: 0 0 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 0 0 5px;
  font-size: 11px;
  gap: 10px;
}
.terminal-heading h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-heading button {
  font-size: 9px;
  color: var(--dim);
  white-space: nowrap;
}
.terminal-buffer {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding: 13px 8px 14px 0;
  overscroll-behavior: contain;
  font-size: 12px;
  line-height: 1.5;
}
.terminal-buffer::-webkit-scrollbar {
  width: 3px;
}
.terminal-buffer::-webkit-scrollbar-thumb {
  background: var(--line);
}
.terminal-group {
  margin: 0 0 15px;
}
.prompt {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.prompt span {
  color: var(--green);
}
.prompt i {
  font-style: normal;
  color: var(--dim);
}
.command {
  color: var(--accent);
  font-size: 12px;
  min-height: 18px;
}
.command::before {
  content: "› ";
  color: var(--muted);
}
.typing-cursor::after,
.idle-prompt::after {
  content: " ";
  display: inline-block;
  width: 6px;
  height: 12px;
  vertical-align: -2px;
  background: var(--accent);
  animation: cursor 1.2s step-end infinite;
  margin-left: 3px;
}
.output {
  overflow-wrap: anywhere;
  margin-top: 6px;
  animation: appear 0.24s ease both;
}
.output p + p {
  margin-top: 10px;
}
.output a,
.output button.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--dim);
  text-underline-offset: 3px;
}
.output h1 {
  font: 500 15px/1.5 var(--mono);
  margin-bottom: 8px;
}
.terminal-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.terminal-list li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
}
.terminal-list li > span:first-child {
  color: var(--muted);
}
.terminal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.notice {
  border-left: 1px solid var(--line);
  padding-left: 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.project-description {
  color: var(--fg);
}
.output ul.feature-list {
  margin: 6px 0 0;
  padding-left: 16px;
  color: var(--muted);
}
.output li + li {
  margin-top: 4px;
}
.tag-line {
  color: var(--green);
  font-size: 10px;
  line-height: 1.8;
}
.command-line {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  flex: 0 0 28px;
}
.command-line label {
  color: var(--accent);
  font-size: 14px;
}
.command-line input {
  min-width: 0;
  flex: 1;
  background: none;
  border: 0;
  color: var(--fg);
  outline: none;
  padding: 4px 0;
}
.command-line button {
  font-size: 13px;
  color: var(--dim);
  padding: 2px 4px;
}
.command-line:focus-within {
  border-color: var(--accent);
}
.command-feedback {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  padding: 9px 12px;
  background: var(--selected);
  border: 1px solid var(--line);
  font-size: 10px;
  color: var(--fg);
  z-index: 10;
}
.profile-plate {
  position: relative;
  border: 1px solid var(--line);
  margin-bottom: 15px;
  aspect-ratio: 2.8;
  overflow: hidden;
  cursor: crosshair;
  background: var(--panel);
}
.profile-plate svg {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--accent);
}
.profile-plate .plate-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) sepia(0.25);
  opacity: 0;
  pointer-events: none;
  mask-image: radial-gradient(
    circle 62px at var(--scan-x, 50%) var(--scan-y, 50%),
    #000 20%,
    transparent 100%
  );
  transition: opacity 0.2s;
}
.profile-plate:hover .plate-portrait,
.profile-plate.show-portrait .plate-portrait {
  opacity: 0.9;
}
.profile-plate.show-portrait .plate-portrait {
  mask-image: none;
  opacity: 0.65;
}
.plate-caption {
  position: absolute;
  bottom: 5px;
  left: 7px;
  right: 7px;
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  color: var(--muted);
  pointer-events: none;
}
.plate-caption span:last-child {
  color: var(--accent);
}
.plate-source {
  font-size: 7px;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  margin-top: -10px;
  margin-bottom: 14px;
}
.plate-source button {
  font-size: 8px;
}
.shot-viewer {
  border: 1px solid var(--line);
  margin-top: 8px;
}
.shot-heading {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 8px;
  color: var(--muted);
  gap: 8px;
}
.shot-button {
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--panel);
}
.shot-button img {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  object-position: top;
}
.shot-button::after {
  content: "↗ åpne bilde";
  position: absolute;
  right: 7px;
  bottom: 7px;
  background: var(--bg);
  color: var(--fg);
  padding: 3px 6px;
  font-size: 8px;
  opacity: 0;
  transition: opacity 0.15s;
}
.shot-button:hover::after,
.shot-button:focus-visible::after {
  opacity: 1;
}
.shot-caption {
  font-size: 8px;
  padding: 6px 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.flow-diagram {
  border: 1px solid var(--line);
  padding: 16px 10px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: var(--muted);
  background: var(--panel);
}
.flow-node {
  flex: 1;
  text-align: center;
}
.flow-node strong {
  color: var(--accent);
  font: inherit;
  display: block;
  margin-bottom: 5px;
}
.flow-arrow {
  color: var(--dim);
}
.directory {
  display: grid;
  gap: 1px;
}
.directory a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  padding: 7px 5px;
  border-bottom: 1px solid var(--line);
}
.directory a:hover {
  background: var(--selected);
}
.directory a small {
  font-size: 8px;
  color: var(--muted);
  align-self: center;
  white-space: nowrap;
}
.experience-row {
  margin-bottom: 14px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.experience-row time {
  font-size: 9px;
  color: var(--muted);
}
.experience-row h3 {
  font-weight: 500;
  color: var(--accent);
  margin: 4px 0;
}
.experience-row p {
  font-size: 11px;
  color: var(--muted);
}
.theme-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.theme-option {
  text-align: left;
  border: 1px solid var(--line);
  padding: 8px;
}
.theme-option[aria-pressed="true"] {
  border-color: var(--accent);
}
.theme-option small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin: 6px 0 0;
}
.swatches {
  height: 17px;
  display: flex;
  gap: 2px;
  margin-bottom: 7px;
}
.swatches span {
  flex: 1;
}
.watch-panel {
  padding-top: 20px;
  overflow: hidden;
  color: var(--muted);
  position: relative;
}
.watch-panel pre {
  font: 6px/7px var(--mono);
  letter-spacing: 0;
  height: 186px;
  white-space: pre;
  color: var(--accent);
  user-select: none;
  opacity: 0.85;
}
.watch-label {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
  margin-top: 7px;
}
.watch-coordinates {
  font-size: 7px;
  color: var(--dim);
  padding-top: 3px;
}
.watch-note {
  font-size: 8px;
  color: var(--dim);
  padding-top: 15px;
}
.context-readout {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 12px;
  font-size: 9px;
}
.context-readout p {
  margin: 5px 0 15px;
  overflow-wrap: anywhere;
}
.context-readout time {
  display: block;
  color: var(--fg);
  margin-top: 5px;
}
.tiny-label {
  font-size: 8px;
  color: var(--dim);
  display: block;
  letter-spacing: 0.6px;
}
.workspace-status {
  display: grid;
  grid-template-columns: 224px repeat(3, minmax(58px, 1fr)) auto;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  align-items: start;
  font-size: 11px;
}
.workspace-status > div > span + span {
  display: block;
  color: var(--red);
  margin-top: 2px;
}
.identity-status {
  font-size: 10px;
  letter-spacing: 0.7px;
}
.identity-status small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 4px;
}
.status-controls {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-top: 8px;
  white-space: nowrap;
}
.status-controls button {
  font-size: 10px;
}
.desk {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.desk canvas {
  height: 141px;
  width: min(680px, 100%);
  opacity: 0.85;
}
.desk-readout {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  color: var(--dim);
}
.mobile-toolbar,
.mobile-close {
  display: none;
}
/* Dialogs remain native and keyboard accessible. */
dialog {
  padding: 0;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 24px 100px var(--shadow);
  width: min(560px, calc(100vw - 32px));
  max-height: 80svh;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(5px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.dialog-top button {
  font-size: 10px;
}
#palette-input {
  display: block;
  width: 100%;
  padding: 17px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--fg);
  outline-offset: -3px;
}
#command-results {
  padding: 6px;
  max-height: 45svh;
  overflow: auto;
}
.command-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  text-align: left;
  padding: 9px 10px;
  font-size: 11px;
  gap: 12px;
}
.command-item span:last-child {
  font-size: 9px;
  color: var(--dim);
}
.command-item[aria-selected="true"] {
  background: var(--selected);
  color: var(--accent);
}
.command-empty {
  padding: 16px;
  font-size: 11px;
  color: var(--muted);
}
.dialog-hint {
  display: flex;
  justify-content: space-between;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--dim);
}
#image-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: 94svh;
}
#image-dialog form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px;
  font-size: 10px;
  border-bottom: 1px solid var(--line);
}
#image-dialog img {
  width: 100%;
  max-height: 82svh;
  object-fit: contain;
}
.noscript-note {
  position: fixed;
  inset: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  z-index: 400;
  padding: 30px;
  color: var(--fg);
  font: 14px/1.7 var(--mono);
}
.noscript-note a {
  text-decoration: underline;
}
@keyframes cursor {
  50% {
    opacity: 0;
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1450px) {
  .shell {
    max-width: 1192px;
    grid-template-rows: 92px minmax(0, 1fr) 40px;
  }
  .workspace {
    grid-template-rows: minmax(0, 1fr) 53px 170px;
  }
  .desk canvas {
    height: 165px;
    width: 740px;
  }
  .stage {
    grid-template-columns: 230px minmax(0, 1fr) 178px;
    gap: 20px;
  }
  .workspace-status {
    grid-template-columns: 250px repeat(3, 1fr) auto;
  }
  .terminal-buffer {
    font-size: 13px;
  }
  .watch-panel {
    padding-top: 45px;
  }
  .entrance {
    max-width: 860px;
  }
  .entrance h1 {
    margin-top: 20px;
  }
  .code-window {
    max-height: 460px;
  }
  .entrance-desk {
    height: 195px;
    flex-basis: 195px;
  }
  .code-highlight,
  .code-surface textarea,
  .line-numbers {
    font-size: 13px;
    line-height: 19px;
  }
}
@media (max-width: 1040px) {
  .shell {
    padding: 0 24px;
  }
  .stage {
    grid-template-columns: 174px minmax(0, 1fr) 128px;
    gap: 12px;
  }
  .wheel-item {
    width: 136px;
    height: 90px;
    margin-top: -45px;
  }
  .wheel-thumb {
    height: 61px;
  }
  .watch-panel pre {
    font-size: 4.8px;
    line-height: 6px;
    height: 156px;
  }
  .workspace-status {
    grid-template-columns: 186px repeat(3, minmax(45px, 1fr)) auto;
    gap: 12px;
  }
  .status-controls {
    gap: 12px;
  }
  .identity-status small {
    font-size: 7px;
  }
  .terminal-list li {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
  }
  .context-readout {
    margin-top: 16px;
  }
  .watch-note {
    font-size: 7px;
  }
}
@media (max-width: 760px) {
  .shell {
    padding: 0 18px;
    grid-template-rows: 60px minmax(0, 1fr) 30px;
    min-height: 610px;
  }
  .external-nav {
    font-size: 10px;
    gap: 15px;
  }
  .brand {
    font-size: 11px;
  }
  .entrance {
    padding-top: 10px;
  }
  .entrance h1 {
    display: block;
    margin-bottom: 17px;
  }
  .entrance-role {
    display: block;
    font-size: 9px;
    margin: 5px 0 0 22px;
    color: var(--muted);
  }
  .code-caption span:last-child {
    display: none;
  }
  .code-highlight,
  .code-surface textarea,
  .line-numbers {
    font-size: 10px;
    line-height: 15px;
  }
  .code-window {
    min-height: 195px;
    max-height: none;
  }
  .entrance-desk {
    height: 143px;
    flex-basis: 143px;
    margin-top: 6px;
  }
  .instrument-caption {
    font-size: 7px;
    bottom: 5px;
  }
  .entrance-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    font-size: 9px;
  }
  .entrance-footer > div {
    width: 100%;
    justify-content: space-between;
  }
  .enter-link {
    font-size: 11px;
    padding: 5px 10px;
  }
  .entrance-hint {
    font-size: 7px;
    text-align: left;
    padding-top: 11px;
  }
  .workspace {
    grid-template-rows: 33px minmax(0, 1fr) 49px 114px;
  }
  .mobile-toolbar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
  }
  .mobile-toolbar > span {
    color: var(--dim);
    margin-left: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-toolbar button:first-child {
    color: var(--accent);
    white-space: nowrap;
  }
  .mobile-toolbar button:last-child {
    color: var(--muted);
  }
  .stage {
    display: block;
    padding-top: 9px;
  }
  .terminal {
    height: 100%;
  }
  .terminal-heading {
    font-size: 10px;
    height: 23px;
    flex-basis: 23px;
  }
  .terminal-buffer {
    font-size: 11px;
    padding: 10px 2px 12px 0;
    line-height: 1.6;
  }
  .command {
    font-size: 11px;
  }
  .prompt {
    font-size: 9px;
  }
  .watch-panel {
    display: none;
  }
  .project-navigation {
    display: none;
    position: fixed;
    inset: 60px 18px 100px;
    border: 1px solid var(--line);
    z-index: 80;
    background: var(--bg);
    box-shadow: 0 20px 100px var(--shadow);
  }
  .project-navigation.open {
    display: block;
  }
  .project-wheel {
    inset: 0 24px 36px;
  }
  .wheel-item {
    left: calc(50% - 83px);
    width: 150px;
    height: 98px;
    margin-top: -49px;
  }
  .wheel-thumb {
    height: 69px;
  }
  .wheel-track {
    left: calc(50% - 73px);
  }
  .wheel-hint {
    left: 12px;
    bottom: 12px;
  }
  .mobile-close {
    display: block;
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 10px;
    color: var(--muted);
  }
  .workspace-status {
    grid-template-columns: minmax(105px, 1fr) 50px 52px auto;
    gap: 9px;
    font-size: 10px;
    padding-top: 7px;
  }
  .workspace-status > div:nth-child(4) {
    display: none;
  }
  .identity-status {
    font-size: 8px;
    letter-spacing: 0.3px;
  }
  .identity-status small {
    font-size: 6px;
    max-width: 145px;
  }
  .tiny-label {
    font-size: 6px;
  }
  .status-controls {
    gap: 14px;
    padding-top: 6px;
  }
  .status-controls #command-trigger {
    display: none;
  }
  .status-controls button {
    font-size: 10px;
  }
  .desk canvas {
    height: 113px;
    width: 100%;
  }
  .desk-readout {
    font-size: 6px;
  }
  .site-footer {
    font-size: 7px;
  }
  .site-footer > span:last-child {
    gap: 7px;
  }
  .profile-plate {
    aspect-ratio: 2.1;
  }
  .plate-caption {
    font-size: 6px;
  }
  .plate-source {
    font-size: 6px;
  }
  .output h1 {
    font-size: 13px;
  }
  .output p {
    font-size: 11px;
  }
  .output .notice {
    font-size: 9px;
  }
  .terminal-group {
    margin-bottom: 16px;
  }
  .directory a {
    font-size: 10px;
  }
  .directory a small {
    font-size: 7px;
  }
  .shot-button img {
    max-height: 190px;
  }
  .flow-diagram {
    gap: 4px;
    padding: 12px 6px;
    font-size: 8px;
  }
  .flow-node strong {
    font-size: 8px;
  }
}
@media (max-width: 360px) {
  .shell {
    padding: 0 12px;
  }
  .external-nav {
    gap: 12px;
    font-size: 9px;
  }
  .entrance h1 {
    font-size: 11px;
  }
  .workspace-status {
    grid-template-columns: 1fr 40px 45px auto;
    gap: 7px;
  }
  .status-controls {
    gap: 10px;
  }
  .site-footer {
    font-size: 6px;
  }
  .terminal-list li {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 7px;
  }
  .theme-options {
    gap: 5px;
  }
  .theme-option {
    padding: 6px;
    font-size: 10px;
  }
  .theme-option small {
    font-size: 8px;
  }
  .code-highlight,
  .code-surface textarea,
  .line-numbers {
    font-size: 9px;
    line-height: 14px;
  }
}
@media (max-height: 670px) and (min-width: 761px) {
  .shell {
    min-height: 570px;
    grid-template-rows: 56px minmax(0, 1fr) 27px;
  }
  .workspace {
    grid-template-rows: minmax(0, 1fr) 44px 100px;
  }
  .desk canvas {
    height: 100px;
  }
  .entrance h1 {
    margin-bottom: 10px;
  }
  .entrance-desk {
    height: 114px;
    flex-basis: 114px;
  }
  .entrance-footer {
    font-size: 9px;
  }
  .watch-note,
  .context-readout {
    display: none;
  }
}

.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation: none !important;
  transition: none !important;
}
.workspace-status > div {
  min-width: 0;
}
#focus-state {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.command-feedback {
  overflow-wrap: anywhere;
}
