.os-lab {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding-bottom: 36px;
  --web: #2f6597;
  --music: #267765;
  --photo: #b94732;
  --os: #67599f;
  --idle: #b9bdb7;
}
.os-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 8px 0 24px;
}
.os-heading .eyebrow {
  font-size: 0.66rem;
  margin: 0 0 7px;
  color: var(--ink-soft);
}
.os-heading h1 {
  margin: 0;
  font:
    500 clamp(2rem, 4vw, 3.2rem)/1.2 Georgia,
    "Yu Mincho",
    serif;
  letter-spacing: -0.04em;
}
.heading-dot {
  color: var(--mint-strong);
}
.os-heading > p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.os-lab button,
.os-lab select {
  font: inherit;
  font-size: 0.78rem;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 7px;
  min-height: 38px;
  padding: 6px 12px;
  cursor: pointer;
}
.os-lab button:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--paper);
}
.os-lab button:focus-visible,
.os-lab select:focus-visible,
.os-lab summary:focus-visible {
  outline: 3px solid var(--mint-strong);
  outline-offset: 3px;
}
.os-lab button:disabled {
  cursor: default;
  opacity: 0.45;
}
.os-lab .primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.os-lab .primary:hover:not(:disabled) {
  background: #24474d;
  color: white;
}
.os-lab .subtle {
  background: transparent;
}
.transport {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}
.transport-buttons,
.clock-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.transport #play {
  min-width: 94px;
}
.clock-controls {
  gap: 22px;
}
.clock-controls label {
  font-size: 0.75rem;
  white-space: nowrap;
}
.clock-controls select {
  margin-left: 4px;
  padding: 4px 7px;
}
.sim-clock {
  font-size: 0.73rem;
  white-space: nowrap;
}
.sim-clock strong {
  font:
    500 1.35rem Georgia,
    serif;
  font-variant-numeric: tabular-nums;
  margin: 0 4px;
}
.first-hint {
  margin: 10px 2px 18px;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.experiment-grid {
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  gap: 18px;
}
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--white);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 13px;
}
.panel h2 {
  font-size: 0.94rem;
  margin: 0;
  line-height: 1.5;
}
.section-index {
  font:
    italic 1rem Georgia,
    serif;
  color: var(--mint-strong);
  margin-right: 5px;
}
.quiet {
  font-size: 0.68rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.app-launcher {
  display: grid;
  gap: 7px;
}
.app-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.app-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.app-icon {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--owner-color);
  background: color-mix(in srgb, var(--owner-color) 11%, white);
  flex-shrink: 0;
}
.app-name strong {
  display: block;
  font-size: 0.77rem;
  line-height: 1.5;
}
.app-name small {
  display: block;
  font-size: 0.63rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.app-row button {
  min-height: 34px;
  padding: 4px 11px;
  font-size: 0.7rem;
}
.app-row button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.app-row[data-visible="true"] {
  border-left: 3px solid var(--owner-color);
  padding-left: 7px;
}
.app-state-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  margin-right: 4px;
}
.app-state-dot.on {
  background: var(--owner-color);
}
.app-window {
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: var(--paper-deep);
  font-size: 0.69rem;
}
.window-dots {
  font-size: 0.52rem;
  letter-spacing: 2px;
  color: #a0a69c;
}
.window-bar strong {
  font-weight: 600;
}
.view-label {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 0.62rem;
}
.app-content {
  min-height: 242px;
  padding: 14px;
}
.empty-app {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.empty-app .empty-icon {
  font-size: 1.7rem;
  color: var(--ink-soft);
}
.empty-app h3 {
  margin: 8px 0 5px;
  font-size: 0.92rem;
}
.empty-app p {
  margin: 0 0 14px;
  font-size: 0.73rem;
  color: var(--ink-soft);
}
.app-toolbar {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 11px;
}
.app-toolbar select {
  min-width: 0;
  flex: 1;
  font-size: 0.72rem;
}
.app-toolbar button {
  font-size: 0.72rem;
  white-space: nowrap;
}
.mini-url {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.65rem;
  padding: 5px 8px;
  color: var(--ink-soft);
}
.web-article {
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}
.web-article .article-banner {
  height: 48px;
  background: #dcebe2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  font-family: Georgia, serif;
  color: #1d6251;
}
.web-article h3 {
  margin: 10px 12px 5px;
  font-size: 0.87rem;
}
.web-article p {
  margin: 0 12px 10px;
  font-size: 0.7rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.web-article.space .article-banner {
  background: #e3e0f1;
  color: #67599f;
}
.web-article.city .article-banner {
  background: #f5e4d4;
  color: #935233;
}
.app-status {
  font-size: 0.68rem;
  margin: 8px 0 0;
  color: var(--ink-soft);
  min-height: 1.8em;
}
.inline-progress {
  height: 3px;
  background: var(--line);
  overflow: hidden;
}
.inline-progress i {
  display: block;
  background: var(--web);
  height: 100%;
}
.music-top {
  display: flex;
  align-items: center;
  gap: 15px;
}
.album-art {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  background: #dbeae2;
  border: 1px solid #b7cec2;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--music);
  font:
    2rem Georgia,
    serif;
  position: relative;
}
.album-art:before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px solid #8cb3a2;
}
.song-title h3 {
  font:
    500 1.25rem Georgia,
    serif;
  letter-spacing: 0.02em;
  margin: 0;
}
.song-title p {
  font-size: 0.66rem;
  color: var(--ink-soft);
  margin: 4px 0;
}
.music-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
}
.music-controls > div {
  display: flex;
  gap: 6px;
}
.music-controls button {
  font-size: 0.7rem;
}
.elapsed {
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.buffer-heading {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  margin-bottom: 5px;
}
.buffer-track {
  height: 16px;
  border-radius: 4px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  overflow: hidden;
}
.buffer-track span {
  display: block;
  height: 100%;
  background: var(--music);
  transition: width 0.15s linear;
}
.buffer-track.low span {
  background: var(--coral-strong);
}
.music-note {
  margin: 7px 0 0;
  font-size: 0.65rem;
  color: var(--ink-soft);
}
.photo-stage {
  position: relative;
  height: 126px;
  overflow: hidden;
  border-radius: 7px;
  background: #dce8eb;
}
.photo-stage svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.photo-stage[data-loading="true"] :is(.photo-original, .photo-overlay) {
  visibility: hidden;
}
.photo-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px 34px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--paper-deep);
  font-size: 0.7rem;
}
.photo-loading[hidden] { display: none; }
.photo-loading strong { font-size: 0.85rem; }
.photo-progress {
  position: absolute;
  bottom: 7px;
  right: 8px;
  border-radius: 5px;
  padding: 2px 7px;
  background: rgb(255 254 249 / 90%);
  font-size: 0.65rem;
}
.photo-caption {
  font-size: 0.67rem;
  margin: 7px 0 0;
  color: var(--ink-soft);
}
.cpu-current {
  padding: 16px 18px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  position: relative;
  min-height: 166px;
}
.cpu-caption {
  font-size: 0.69rem;
  color: var(--ink-soft);
}
.cpu-owner {
  margin: 3px 0 2px;
  font-size: 1.55rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--owner-color, var(--ink-soft));
}
.cpu-current p {
  font-size: 0.75rem;
  margin: 0 0 11px;
  min-height: 1.8em;
}
.quantum-track {
  display: flex;
  gap: 4px;
  width: 66px;
  margin-bottom: 4px;
}
.quantum-track i {
  display: block;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}
.quantum-track i.used {
  background: var(--owner-color);
}
.cpu-current small {
  font-size: 0.62rem;
  color: var(--ink-soft);
}
.queue-line {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.69rem;
}
.queue-line > span {
  color: var(--ink-soft);
  flex-shrink: 0;
}
.queue-line > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.queue-chip {
  font-size: 0.64rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 6px;
  color: var(--owner-color);
}
.timeline-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 13px 0 8px;
}
.timeline-heading h3 {
  font-size: 0.75rem;
  margin: 0;
}
.timeline-heading span {
  font-size: 0.6rem;
  color: var(--ink-soft);
}
.cpu-history {
  display: grid;
  grid-template-columns: repeat(var(--history-columns, 24), minmax(0, 1fr));
  gap: 3px;
  height: 32px;
}
.cpu-history .history-cell {
  padding: 0;
  min-height: 36px;
  border: 0;
  background: var(--owner-color);
  border-radius: 3px;
  color: white;
  font-size: 11px;
  position: relative;
}
.history-placeholder {
  background: var(--paper-deep);
  border-radius: 3px;
}
.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 9px 0 10px;
  font-size: 0.63rem;
  color: var(--ink-soft);
}
.legend span:before,
.memory-labels span:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--owner-color);
  margin-right: 4px;
}
[data-owner="web"] {
  --owner-color: var(--web);
}
[data-owner="music"] {
  --owner-color: var(--music);
}
[data-owner="photo"],
[data-owner="workspace"] {
  --owner-color: var(--photo);
}
[data-owner="os"] {
  --owner-color: var(--os);
}
[data-owner="idle"],
[data-owner="free"] {
  --owner-color: var(--idle);
}
.memory-panel {
  margin-top: 18px;
  padding: 15px 18px;
}
.memory-panel .panel-heading {
  margin-bottom: 10px;
}
.memory-band {
  display: flex;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-deep);
}
.memory-segment {
  height: 100%;
  min-width: 0;
  flex-shrink: 0;
  container-type: inline-size;
  background: var(--owner-color);
  border-right: 1px solid var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  transition: width 0.2s ease;
}
.memory-label-name,
.memory-label-size {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  line-height: 14px;
  text-align: center;
}
.memory-label-name {
  font-size: 11px;
  font-size: min(11px, calc(100cqw / var(--name-width)));
}
.memory-label-size {
  font-size: 10px;
  font-size: min(10px, calc(100cqw / var(--size-width)));
  font-variant-numeric: tabular-nums;
}
.memory-segment[data-owner="free"] {
  color: var(--ink-soft);
  border: 0;
  background: repeating-linear-gradient(
    135deg,
    #edf0e9,
    #edf0e9 5px,
    #e5e8e0 5px,
    #e5e8e0 6px
  );
}
.memory-segment[data-owner="workspace"] {
  background: repeating-linear-gradient(
    135deg,
    #b94732,
    #b94732 5px,
    #cb6d5b 5px,
    #cb6d5b 7px
  );
}
.memory-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.66rem;
  margin-top: 7px;
  color: var(--ink-soft);
}
.insight {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 3px 15px;
}
.insight > span {
  color: var(--mint-strong);
  font-size: 1.15rem;
}
.insight p {
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.8;
}
.details-panel {
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}
.details-panel summary {
  padding: 12px 2px;
  cursor: pointer;
  color: var(--ink-soft);
}
.details-body {
  padding: 0 2px 20px;
  font-size: 0.75rem;
}
.state-key {
  margin-top: 0;
  font-size: 0.7rem;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.73rem;
  text-align: left;
}
th,
td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.details-body h3 {
  font-size: 0.8rem;
}
.details-body h3 small {
  font-weight: 400;
  font-size: 0.65rem;
}
.event-log {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}
.event-log li {
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
}
.event-log time {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  margin-right: 12px;
}
.learning-notes p {
  color: var(--ink-soft);
  line-height: 1.9;
}
.learning-notes ol {
  padding-left: 22px;
}
.learning-notes li {
  margin: 8px 0;
}
.lab-back {
  display: flex;
  gap: 24px;
  font-size: 0.74rem;
  margin: 12px 0 0;
}
.lab-back a {
  text-underline-offset: 4px;
}
.os-footer {
  border-top: 1px solid var(--line);
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 18px 0;
  font:
    500 0.8rem Georgia,
    "Yu Mincho",
    serif;
}
.os-footer span {
  font: 0.63rem sans-serif;
  color: var(--ink-soft);
  margin-left: 15px;
}
@media (max-width: 820px) {
  .experiment-grid {
    grid-template-columns: 1fr;
  }
  .os-heading {
    margin-bottom: 18px;
  }
  .cpu-current {
    min-height: 143px;
  }
  .cpu-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    align-items: start;
  }
  .cpu-panel > .panel-heading {
    grid-column: 1/-1;
  }
  .cpu-current {
    grid-row: 2/7;
  }
  .queue-line {
    padding-top: 0;
  }
  .cpu-history {
    grid-template-columns: repeat(var(--history-columns, 24), minmax(0, 1fr));
    gap: 2px;
  }
  .timeline-heading {
    margin-top: 10px;
  }
  .app-content {
    min-height: 235px;
  }
}
@media (max-width: 520px) {
  .os-lab {
    width: calc(100% - 24px);
  }
  .os-heading {
    gap: 10px;
  }
  .os-heading > p {
    font-size: 0.7rem;
  }
  .os-heading .eyebrow {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }
  .os-heading h1 {
    font-size: 2rem;
  }
  .breadcrumb {
    font-size: 0.65rem;
    padding-top: 16px;
  }
  .transport {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px;
    gap: 9px;
  }
  .transport-buttons {
    width: 100%;
    gap: 6px;
  }
  .transport-buttons button {
    flex: 1;
    padding: 5px 9px;
  }
  .clock-controls {
    width: 100%;
    justify-content: space-between;
  }
  .first-hint {
    font-size: 0.69rem;
    line-height: 1.8;
  }
  .panel {
    padding: 13px;
  }
  .panel h2 {
    font-size: 0.83rem;
  }
  .quiet {
    font-size: 0.61rem;
  }
  .app-row {
    gap: 5px;
    padding: 7px;
  }
  .app-name {
    gap: 7px;
  }
  .app-name strong {
    font-size: 0.72rem;
  }
  .app-name small {
    font-size: 0.6rem;
  }
  .app-row button {
    padding: 4px 8px;
    font-size: 0.65rem;
  }
  .app-icon {
    width: 25px;
    height: 27px;
  }
  .cpu-panel {
    display: block;
  }
  .cpu-current {
    min-height: 150px;
  }
  .queue-line {
    padding-top: 9px;
  }
  .cpu-history {
    gap: 3px;
  }
  .memory-panel {
    margin-top: 14px;
  }
  .memory-segment {
    font-size: 0.55rem;
  }
  .memory-labels {
    font-size: 0.62rem;
    gap: 3px 10px;
  }
  .insight p {
    font-size: 0.73rem;
  }
  .details-panel summary {
    font-size: 0.73rem;
  }
  .os-footer {
    width: calc(100% - 24px);
  }
  .os-footer span {
    display: block;
    margin: 3px 0 0;
  }
  .app-content {
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Keep the two photo layers geometrically identical for the CPU-driven wipe. */
.photo-original {
  position: absolute;
  inset: 0;
}
.cpu-current[data-owner="idle"] .cpu-owner {
  color: var(--ink-soft);
}
/* Fill the panel with a responsive number of compact history cells. */
.cpu-history {
  grid-template-columns: repeat(var(--history-columns, 24), minmax(0, 1fr));
  width: 100%;
  max-width: none;
  gap: 2px;
  overflow: hidden;
  padding: 4px 3px;
  height: 44px;
}
.cpu-history .history-cell {
  min-width: 0;
}

.launcher-buffer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.58rem;
  line-height: 1.5;
  color: var(--music);
  margin-top: 2px;
}
.launcher-buffer-track {
  width: 36px;
  height: 4px;
  flex-shrink: 0;
  background: var(--paper-deep);
  border-radius: 2px;
  overflow: hidden;
}
.launcher-buffer-track i {
  display: block;
  height: 100%;
  background: var(--music);
}
.os-lab [hidden] {
  display: none !important;
}
.window-process-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 85px;
  padding: 11px 14px;
  border-left: 4px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.window-process-status strong {
  font-size: 0.8rem;
  line-height: 1.5;
}
.window-process-status > span {
  font-size: 0.68rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.window-process-status[data-state="running"] {
  border-left-color: var(--owner-color);
  background: color-mix(in srgb, var(--owner-color) 8%, var(--white));
}
.window-process-status[data-state="running"] strong {
  color: var(--owner-color);
}
.window-process-status[data-state="ready"] {
  border-left-color: var(--amber-strong);
  background: #fbf4e7;
}
.window-process-status[data-state="ready"] strong {
  color: var(--amber-strong);
}
.window-process-status[data-state="pending"] {
  border-left-color: var(--os);
}
.app-row[data-state="running"] {
  background: color-mix(in srgb, var(--owner-color) 7%, var(--white));
  border-color: var(--owner-color);
}
.app-row[data-state="running"] .app-state-label {
  font-weight: 700;
  color: var(--owner-color);
}
.app-row[data-state="ready"] .app-state-label {
  color: var(--amber-strong);
}
.app-row[data-state="waiting"] .app-state-dot {
  background: transparent;
  border: 1px solid var(--owner-color);
}
.song-title {
  min-width: 0;
}
.song-title h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.volume-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px 0 10px;
  font-size: 0.69rem;
}
.volume-controls button {
  min-width: 70px;
  padding: 5px 9px;
  font-size: 0.68rem;
}
.volume-controls input {
  min-width: 0;
  flex: 1;
  width: 80px;
  min-height: 38px;
  accent-color: var(--music);
  cursor: pointer;
}
.volume-controls input:focus-visible {
  outline: 3px solid var(--mint-strong);
  outline-offset: 3px;
  border-radius: 4px;
}
.volume-controls output {
  min-width: 29px;
  font-variant-numeric: tabular-nums;
}
.music-track-select {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 6px;
  font-size: 0.68rem;
}
.music-track-select select {
  flex: 1;
  min-width: 0;
  font-size: 0.7rem;
}
.audio-feedback {
  font-size: 0.67rem;
  color: var(--ink-soft);
  margin: 0 0 6px;
  line-height: 1.8;
}
.audio-feedback:empty {
  display: none;
}
.audio-feedback button {
  font-size: 0.66rem;
  margin-left: 6px;
}
.music-credit {
  font-size: 0.62rem;
  color: var(--ink-soft);
  margin-top: 8px;
}
.music-credit summary {
  cursor: pointer;
  min-height: 30px;
  padding: 4px 0;
}
.music-credit p {
  margin: 2px 0 0;
  line-height: 1.8;
}
@media (max-width: 520px) {
  .window-process-status {
    min-height: 95px;
    padding: 9px 12px;
  }
  .window-process-status strong {
    font-size: 0.73rem;
  }
  .window-process-status > span {
    font-size: 0.65rem;
  }
  .volume-controls {
    gap: 7px;
  }
  .album-art {
    width: 54px;
    height: 54px;
  }
  .song-title h3 {
    font-size: 0.96rem;
  }
  .app-name small {
    max-width: 100%;
    font-size: 0.58rem;
  }
  .app-name > div {
    min-width: 0;
  }
  .app-row {
    gap: 4px;
  }
  .app-row button {
    min-height: 38px;
    padding-inline: 7px;
  }
}
[data-owner="notify"] {
  --owner-color: var(--notify, #805000);
}
[data-owner="sync"] {
  --owner-color: var(--sync, #287c86);
}
[data-owner="security"] {
  --owner-color: var(--security, #93415f);
}
.background-apps {
  grid-column: 1/-1;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.background-apps h3 {
  display: inline;
  margin: 0;
  font-size: 0.75rem;
}
.background-hint {
  display: inline;
  margin: 0 0 0 8px;
  font-size: 0.6rem;
  color: var(--ink-soft);
}
#background-launcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.background-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-width: 0;
  min-height: 49px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 6px;
  padding: 6px 7px;
  background: var(--paper);
}
.background-name {
  display: block;
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.background-state {
  display: block;
  font-size: 0.61rem;
  line-height: 1.35;
  color: var(--ink-soft);
  white-space: nowrap;
}
.background-row[data-state="running"] {
  background: color-mix(in srgb, var(--owner-color) 7%, var(--white));
  border-left-color: var(--owner-color);
}
.background-row[data-state="running"] .background-state {
  font-weight: 700;
  color: var(--owner-color);
}
.background-row[data-state="ready"] {
  border-left-color: var(--amber-strong);
}
.background-row[data-state="ready"] .background-state {
  color: var(--amber-strong);
  font-weight: 700;
}
.app-row[data-state="memory-wait"] {
  border-color: var(--coral-strong);
  background: #fff5ed;
}
.app-row[data-state="memory-wait"] .app-state-label {
  color: var(--coral-strong);
  font-weight: 700;
}
.window-process-status[data-state="memory-wait"] {
  background: #fff5ed;
  border-left-color: var(--coral-strong);
}
.window-process-status[data-state="memory-wait"] strong {
  color: var(--coral-strong);
}
.allocation-notice {
  margin-top: 10px;
  border-left: 3px solid var(--amber-strong);
  border-radius: 3px;
  background: #fbf4e7;
  padding: 8px 10px;
}
.allocation-notice strong {
  display: block;
  font-size: 0.75rem;
  color: var(--amber-strong);
}
.allocation-notice p {
  margin: 4px 0 0;
  font-size: 0.68rem;
  line-height: 1.7;
}
.music-credit ul {
  padding-left: 18px;
}
.cpu-history .history-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  cursor: default;
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 600;
  user-select: none;
  overflow: hidden;
}
.cpu-history .history-cell[data-owner="idle"] {
  color: var(--ink);
}
@media (max-width: 520px) {
  #background-launcher {
    gap: 4px;
  }
  .background-row {
    padding: 6px 4px;
  }
  .background-name {
    font-size: 0.61rem;
  }
  .background-state {
    font-size: 0.57rem;
  }
  .background-hint {
    font-size: 0.57rem;
  }
  .allocation-notice p {
    font-size: 0.65rem;
  }
}

/* Reserve geometry for fields that change on each virtual tick. */
.transport {
  height: 60px;
}
.transport-buttons,
.clock-controls {
  min-height: 38px;
  flex-shrink: 0;
}
.first-hint {
  height: 44px;
  line-height: 20px;
  overflow-y: auto;
  overflow-anchor: none;
}
.app-row {
  height: 66px;
}
.app-name > div {
  min-width: 0;
  width: 100%;
}
.app-name strong {
  height: 16px;
  line-height: 16px;
  white-space: nowrap;
}
.app-name small {
  height: 22px;
  line-height: 11px;
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.launcher-buffer {
  height: 12px;
  line-height: 12px;
  margin-top: 0;
}
.os-lab .launcher-buffer[hidden] {
  display: flex !important;
  visibility: hidden;
}
.launcher-buffer-track {
  width: 24px;
}
.launcher-buffer-text {
  min-width: 0;
  white-space: nowrap;
}
.window-bar {
  height: 34px;
  flex-wrap: nowrap;
}
.window-process-status {
  height: 64px;
  min-height: 64px;
  display: grid;
  grid-template-rows: 18px 28px;
  align-content: start;
  gap: 3px;
  padding: 7px 12px;
}
.window-process-status strong {
  display: block;
  min-height: 0;
  line-height: 16px;
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.window-process-status > span {
  display: block;
  min-height: 0;
  line-height: 14px;
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.app-content {
  height: 376px;
  min-height: 0;
  max-height: 376px;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  scrollbar-gutter: stable;
}
.app-view {
  height: 100%;
  min-height: 100%;
}
.app-live {
  display: flow-root;
  min-height: 100%;
}
.empty-app {
  height: 100%;
  min-height: 100%;
  overflow-y: auto;
}
.empty-app > .app-status {
  width: 100%;
  flex-shrink: 0;
  margin-bottom: 0;
}
.app-status {
  height: 32px;
  min-height: 32px;
  margin-top: 6px;
  line-height: 16px;
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.music-top {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  height: 64px;
  gap: 8px;
  align-items: center;
}
.music-top .album-art { width: 40px; height: 40px; font-size: 1.4rem; }
.music-top .album-art:before { inset: 7px; }
.music-top .music-controls {
  display: grid;
  gap: 2px;
  margin: 0;
  justify-items: end;
}
.music-top .music-controls button {
  width: 112px;
  min-height: 38px;
  padding: 4px 5px;
  white-space: nowrap;
  font-size: 0.65rem;
}
.music-top .elapsed { line-height: 14px; font-size: 0.62rem; }
.song-title {
  max-height: 64px;
  overflow-y: auto;
}
.music-top .song-title h3 { font-size: 0.88rem; line-height: 1.3; }
.music-top .song-title p { margin: 2px 0 0; font-size: 0.6rem; line-height: 14px; }
@media (max-width: 520px), (max-height: 620px) {
  .music-top { grid-template-columns: minmax(0, 1fr) auto; }
  .music-top .album-art { display: none; }
}
.audio-feedback {
  display: flex;
  align-items: center;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  line-height: 18px;
  overflow-y: auto;
}
.audio-feedback:empty {
  display: flex;
  visibility: hidden;
}
.audio-feedback button {
  flex-shrink: 0;
}
.photo-caption {
  height: 36px;
  line-height: 18px;
  overflow-y: auto;
}
.cpu-current {
  height: 190px;
  min-height: 190px;
  display: grid;
  grid-template-rows: 18px 35px 44px 4px 28px;
  align-content: start;
  gap: 5px;
  padding: 14px 16px;
}
.cpu-caption {
  height: 18px;
  line-height: 18px;
}
.cpu-owner {
  height: 35px;
  margin: 0;
  line-height: 35px;
  white-space: nowrap;
  overflow-x: auto;
}
.cpu-current p {
  height: 44px;
  min-height: 0;
  margin: 0;
  line-height: 20px;
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.quantum-track {
  height: 4px;
  margin: 0;
}
.cpu-current small {
  display: block;
  height: 28px;
  line-height: 14px;
  overflow-y: auto;
}
.queue-line {
  height: 76px;
  align-items: flex-start;
  padding: 10px 0;
}
.queue-line > span {
  line-height: 20px;
}
#ready-queue {
  min-width: 0;
  height: 54px;
  align-content: flex-start;
  overflow-y: auto;
}
.queue-chip {
  white-space: nowrap;
}
.timeline-heading {
  height: 20px;
}
.cpu-history {
  height: 44px;
  min-height: 44px;
}
.legend {
  height: 44px;
  align-content: flex-start;
  gap: 4px 12px;
  overflow-y: auto;
}
.background-row {
  height: 49px;
  min-height: 49px;
}
.insight {
  height: 80px;
  align-items: flex-start;
  overflow-anchor: none;
}
.insight p {
  height: 52px;
  line-height: 23px;
  overflow-y: auto;
}

/* A web request changes content inside fixed-size loading and page regions. */
.web-load-state {
  height: 46px;
  display: grid;
  grid-template-rows: 16px 18px;
  gap: 2px;
  padding: 5px 0;
}
.web-load-state strong {
  font-size: 0.7rem;
  line-height: 16px;
  overflow-y: auto;
}
.web-load-state > span {
  font-size: 0.65rem;
  line-height: 18px;
  color: var(--ink-soft);
  overflow-y: auto;
}
.web-load-track {
  height: 4px;
  margin: 0 0 8px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper-deep);
}
.web-load-track > i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--web);
  transition: width 0.15s linear;
}
.web-article {
  height: 210px;
  min-height: 210px;
  max-height: 210px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overflow-anchor: none;
  background: var(--white);
  --page-accent: #267765;
  --page-tint: #e3eee5;
}
.web-article.space {
  --page-accent: #67599f;
  --page-tint: #e8e5f3;
}
.web-article.city {
  --page-accent: #935233;
  --page-tint: #f5e6d7;
}
.web-skeleton {
  min-height: 100%;
  padding: 10px;
  background: var(--paper);
}
.web-skeleton-art {
  height: 80px;
  border-radius: 5px;
  background: linear-gradient(135deg, #dce5df, #ecede3);
}
.web-skeleton-lines {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}
.web-skeleton-lines > i,
.web-skeleton > i {
  display: block;
  height: 8px;
  border-radius: 3px;
  background: #dfe3d9;
}
.web-skeleton-lines > i:nth-child(2),
.web-skeleton > i:nth-of-type(2) {
  width: 88%;
}
.web-skeleton-lines > i:nth-child(3),
.web-skeleton > i:nth-of-type(3) {
  width: 63%;
}
.web-skeleton > i {
  margin-top: 8px;
}
.web-article[data-stage="loading"] .web-skeleton-art {
  background: linear-gradient(135deg, #c9ddd5, #e2e8db);
}
.web-page {
  min-height: 100%;
  padding-bottom: 4px;
}
.web-page-hero {
  height: 84px;
  overflow: hidden;
  background: var(--page-tint);
}
.web-page-hero svg {
  display: block;
  width: 100%;
  height: 100%;
}
.web-page h3 {
  margin: 6px 10px 3px;
  font-size: 0.82rem;
  line-height: 20px;
  color: var(--page-accent);
}
.web-page .web-page-lead {
  margin: 0 10px 4px;
  font-size: 0.67rem;
  line-height: 16px;
}
.web-page .web-page-meta {
  margin: 0 10px 6px;
  font-size: 0.59rem;
  line-height: 14px;
  color: var(--page-accent);
}
.web-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 10px 4px;
}
.web-page-grid > * {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 6px;
  background: var(--paper);
  font-size: 0.6rem;
  line-height: 14px;
}
.web-page-grid strong {
  display: block;
  line-height: 14px;
}
.web-page-grid p {
  margin: 0;
  font-size: 0.59rem;
  line-height: 14px;
}

@media (max-width: 520px) {
  .transport {
    height: 100px;
  }
  .first-hint {
    height: 60px;
  }
  .window-process-status {
    height: 80px;
    min-height: 80px;
    grid-template-rows: 32px 30px;
  }
  .window-process-status strong {
    line-height: 16px;
  }
  .window-process-status > span {
    line-height: 15px;
  }
  .cpu-current {
    height: 190px;
    min-height: 190px;
  }
  .insight {
    height: 96px;
  }
  .insight p {
    height: 68px;
    line-height: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .web-load-track > i {
    transition: none;
  }
}
#web-load {
  width: 98px;
  flex: 0 0 98px;
  padding-inline: 8px;
}
.web-load-state[data-phase="complete"] {
  padding-inline: 8px;
  border-radius: 5px;
  background: #edf5ec;
}
.web-load-state[data-phase="complete"] strong {
  color: var(--music);
}
.web-start-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 12px;
  text-align: center;
  background: var(--paper);
}
.web-start-card > span {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--web);
}
.web-start-card h3 {
  margin: 9px 0 5px;
}
.web-start-card p {
  margin: 0;
}
.web-skeleton p {
  margin: 10px 0 0;
  font-size: 0.65rem;
  line-height: 18px;
}
.web-page-body {
  padding-bottom: 4px;
}
.web-page-grid span {
  display: block;
  line-height: 14px;
}
@media (max-width: 520px) {
  .clock-controls {
    min-height: 28px;
  }
}
.cpu-history .history-placeholder {
  height: 36px;
}
