/* Rooms for making. The work sets the colour; the furniture stays quiet. */
:root {
  --st-space: 32px;
  --st-panel: #0d0e11;
  --st-edge: rgba(239, 239, 237, 0.14);
  --st-muted: rgba(239, 239, 237, 0.66);
  --st-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.st-button,
.st-icon-button,
.st-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  font-size: 13px;
  line-height: 1.4;
  transition:
    background 120ms,
    color 120ms,
    border-color 120ms,
    transform 100ms;
  white-space: nowrap;
}
.st-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--floor);
}
.st-button:active:not(:disabled),
.st-icon-button:active:not(:disabled) {
  transform: translateY(1px);
}
.st-button:disabled,
.st-icon-button:disabled {
  opacity: 0.4;
  cursor: default;
}
.st-button:focus-visible,
.st-icon-button:focus-visible,
.st-text-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.st-icon-button {
  width: 36px;
  min-height: 36px;
  padding: 7px;
  border-color: transparent;
  flex-shrink: 0;
}
.st-text-button {
  border: 0;
  padding: 0;
  min-height: 32px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.st-status {
  min-height: 0;
  color: var(--st-muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.st-status:not(:empty) {
  padding: 14px 0;
}
.st-error {
  color: #efb6af;
}
.st-help,
.st-media-error,
.st-source-note {
  font-size: 12px;
  color: var(--st-muted);
  line-height: 1.6;
}
.st-access-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--st-muted);
}
.st-access-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.st-room-work {
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--line);
}
.st-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.st-section-head h2 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-top: 8px;
}
.st-room-empty {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--hover);
}
.st-room-empty h3 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
}
.st-room-empty p {
  color: var(--st-muted);
  font-size: 14px;
  max-width: 42ch;
}
.st-empty-marks {
  opacity: 0.55;
}
.st-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
}
.st-work-card {
  min-width: 0;
  display: block;
}
.st-cover {
  height: 280px;
  background: var(--st-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms var(--st-ease);
}
.st-card-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-top: 14px;
}
.st-card-line h3 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.st-card-line svg {
  flex-shrink: 0;
  opacity: 0.5;
}
.st-card-meta {
  font-size: 12px;
  color: var(--st-muted);
  margin-top: 7px;
}
.st-type-cover {
  width: 100%;
  height: 100%;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow: hidden;
}
.st-type-cover > span {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  flex-shrink: 0;
  overflow: hidden;
}
.st-type-cover svg {
  color: var(--ink-3);
}
.st-sketch-cover {
  width: 100%;
  max-height: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
.st-sketch-cover canvas {
  object-fit: contain;
  max-height: 100%;
}
.st-room-shell .room-main {
  min-width: 0;
}
.st-room-shell .room-about {
  margin-top: 0;
}
.st-room-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--line);
}
.st-room-hero .name {
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.35;
  letter-spacing: 0.03em;
  margin: 14px 0 18px;
  overflow-wrap: anywhere;
}
.st-room-hero .room-line {
  font-size: 13px;
  color: var(--st-muted);
  line-height: 1.8;
}
.st-room-emblem {
  width: 100px;
  height: 96px;
  display: grid;
  place-items: center;
  background: var(--hover);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.st-room-emblem .avatar {
  width: 60px;
  height: 55px;
}
.st-room-intro {
  max-width: 58ch;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  white-space: pre-wrap;
  margin-bottom: 18px;
}
.st-gateway {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  padding: 64px 0 90px;
  align-items: start;
}
.st-gateway-intro h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 24px 0;
}
.st-gateway-intro > p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 32ch;
}
.st-gateway-note {
  display: flex;
  gap: 12px;
  max-width: 34ch;
  margin-top: 56px;
  font-size: 13px;
  color: var(--st-muted);
  line-height: 1.7;
}
.st-gateway-note svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.st-connect {
  padding: 32px;
  border: 1px solid var(--st-edge);
  border-radius: 6px;
  background: var(--hover);
}
.st-connect h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.st-connect > p {
  font-size: 14px;
  color: var(--st-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.st-connect label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
.st-connect input,
.st-image-fields input,
.st-image-fields textarea,
.st-handoff textarea,
.st-drawing-title input {
  width: 100%;
  display: block;
  border: 1px solid var(--line-2);
  background: var(--floor);
  border-radius: 4px;
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.6;
}
.st-connect input:focus-visible,
.st-image-fields input:focus-visible,
.st-image-fields textarea:focus-visible,
.st-handoff textarea:focus-visible,
.st-drawing-title input:focus-visible {
  outline: 1px solid var(--line-focus);
  outline-offset: 0;
  border-color: var(--line-focus);
}
.st-connect .st-primary {
  width: 100%;
  margin-top: 24px;
}
.st-steward {
  margin-top: 18px;
  font-size: 12px;
  color: var(--st-muted);
}
.st-steward summary {
  cursor: pointer;
  min-height: 32px;
}
.st-steward input {
  margin: 6px 0 10px;
}
.st-steward label {
  margin-top: 16px;
}
.st-text-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--st-muted);
  margin-top: 24px;
}
.st-bench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 32px;
  border-bottom: 1px solid var(--line);
}
.st-bench-identity {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
}
.st-bench-identity .avatar {
  width: 30px;
  height: 28px;
}
.st-bench-identity h1 {
  font-family: var(--pixel);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.03em;
}
.st-bench-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 13px;
}
.st-bench-links > a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-2);
}
.st-bench-links .st-button {
  border-color: transparent;
  color: var(--st-muted);
}
.st-workbench {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  min-height: 640px;
}
.st-draft-rail {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.st-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.st-rail-head h2 {
  font-size: 14px;
  font-weight: 500;
}
.st-rail-note {
  font-size: 12px;
  color: var(--st-muted);
  margin: 8px 0 24px;
}
.st-draft-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  margin: 0 0 6px -12px;
  line-height: 1.45;
  font-size: 14px;
}
.st-draft-link > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-draft-link[aria-current] {
  border-color: var(--line-2);
  background: var(--hover);
}
.st-draft-link small {
  font-size: 11px;
  color: var(--st-muted);
}
.st-no-drafts {
  font-size: 13px;
  color: var(--st-muted);
  padding: 8px 0 36px;
}
.st-agent-guide {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--st-muted);
  margin-top: 40px;
}
.st-agent-guide + .st-agent-guide {
  margin-top: 12px;
}
.st-bench-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 80px;
}
.st-small-mark {
  margin-bottom: 26px;
  opacity: 0.7;
}
.st-bench-welcome h2 {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.18;
}
.st-bench-welcome > p:not(.st-access-note) {
  font-size: 15px;
  line-height: 1.8;
  color: var(--st-muted);
  margin: 20px 0 28px;
}
.st-medium-list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 36px 0 58px;
  color: var(--ink-3);
  font-size: 12px;
}
.st-medium-list span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.st-bench-welcome .st-access-note {
  font-size: 11px;
}
.st-editor {
  min-width: 0;
  padding-bottom: 80px;
}
.st-editor-toolbar {
  position: sticky;
  top: 64px;
  z-index: 3;
  background: var(--floor);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.st-editor-toolbar > div {
  display: flex;
  gap: 8px;
}
.st-save-state {
  font-size: 12px;
  color: var(--st-muted);
}
.st-editor fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.st-title {
  font-size: clamp(27px, 3.2vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.2;
  width: 100%;
  padding: 8px 0 14px;
  border-bottom: 1px solid transparent;
}
.st-title:focus-visible {
  border-color: var(--line-2);
}
.st-title::placeholder {
  color: var(--ink-4);
}
.st-editor .st-access-note {
  margin: 0 0 36px;
}
.st-block-editor {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 24px;
}
.st-block-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--st-muted);
  font-size: 11px;
  letter-spacing: 0.03em;
}
.st-block-bar > div {
  display: flex;
  gap: 2px;
}
.st-text-editor {
  width: 100%;
  font-size: 17px;
  line-height: 1.8;
  resize: vertical;
  min-height: 150px;
  padding: 8px 0;
  field-sizing: content;
  border: 1px solid transparent;
  border-radius: 4px;
}
.st-text-editor:focus-visible {
  border-color: var(--line-2);
  padding-left: 12px;
  padding-right: 12px;
}
.st-image-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 8px;
}
.st-image-fields label {
  font-size: 12px;
  color: var(--ink-2);
}
.st-image-fields label > span {
  color: var(--ink-3);
}
.st-image-fields input,
.st-image-fields textarea {
  margin-top: 6px;
  font-size: 13px;
}
.st-image-fields textarea {
  resize: vertical;
}
.st-add-block {
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 16px;
  margin: 28px 0;
  color: var(--st-muted);
  font-size: 12px;
}
.st-add-block > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.st-add-block .st-button {
  border-color: var(--line);
  background: var(--hover);
}
.st-handoff {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.st-handoff summary,
.st-versions summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
  min-height: 44px;
}
.st-handoff summary > span {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  margin: 4px 0 16px;
}
.st-handoff p {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 10px;
}
.st-versions {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.st-versions summary > span {
  font-family: var(--mono);
  font-size: 11px;
  margin-left: 8px;
  color: var(--ink-3);
}
.st-versions button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  min-height: 44px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.st-versions button > span + span {
  color: var(--ink-3);
}
.st-publication {
  max-width: 1000px;
  margin: auto;
}
.st-publication-head {
  max-width: 760px;
  padding: 28px 0 40px;
}
.st-publication-head h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.04em;
  margin: 24px 0 18px;
  overflow-wrap: anywhere;
}
.st-byline {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-2);
}
.st-publication-body {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.st-writing {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.85;
  max-width: 65ch;
  color: var(--ink-2);
}
.st-image-sequence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.st-image-sequence.st-single {
  grid-template-columns: 1fr;
}
.st-art {
  min-width: 0;
}
.st-art img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.st-art figcaption {
  color: var(--st-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
  white-space: pre-wrap;
}
.st-image-open {
  width: 100%;
  padding: 0;
  display: block;
  cursor: zoom-in;
}
.st-image-open:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.st-native-page {
  position: relative;
  background: var(--st-panel);
  overflow: hidden;
  border-radius: 4px;
}
.st-native-page canvas {
  display: block;
  width: 100%;
  height: auto;
}
.st-motion-control {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 7px 12px;
  border-radius: 4px;
  background: #111214;
  color: #efefed;
  border: 1px solid #55565a;
  font-size: 12px;
}
.st-motion-control:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}
.st-art-description {
  font-size: 12px;
  color: var(--st-muted);
  margin-top: 10px;
}
.st-art-description summary {
  cursor: pointer;
  min-height: 32px;
}
.st-work-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--st-muted);
}
.st-work-foot > * {
  display: flex;
  gap: 8px;
  align-items: center;
}
.st-dialog {
  background: var(--floor);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 40px;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  box-shadow: 0 20px 80px #0008;
}
.st-dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(3px);
}
.st-dialog h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin: 14px 28px 20px 0;
  overflow-wrap: anywhere;
}
.st-dialog > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--st-muted);
  margin-bottom: 16px;
}
.st-dialog-wide {
  max-width: 1000px;
}
.st-dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
}
.st-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}
.st-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 10px;
  font-size: 14px;
}
.st-check input {
  appearance: auto;
  width: 16px;
  height: 16px;
  accent-color: #efefed;
}
.st-expanded img {
  display: block;
  max-width: 100%;
  max-height: 75dvh;
  margin: auto;
  object-fit: contain;
}
.st-expanded figcaption {
  font-size: 13px;
  color: var(--st-muted);
  margin-top: 20px;
}
.st-draw-tools {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
}
.st-draw-tools label {
  font-size: 12px;
  color: var(--st-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-draw-tools select {
  min-height: 36px;
  border: 1px solid var(--line-2);
  padding: 4px 10px;
  background: var(--floor);
}
.st-draw-tools input[type="color"] {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  padding: 3px;
}
.st-draw-tools input[type="range"] {
  appearance: auto;
  width: 120px;
  accent-color: #ddd;
}
.st-drawing-canvas {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
  cursor: crosshair;
  border: 1px solid var(--line-2);
  border-radius: 4px;
}
.st-drawing-title {
  display: block;
  font-size: 12px;
  color: var(--st-muted);
  margin-top: 20px;
}
.st-drawing-title input {
  margin-top: 8px;
}
.st-skeleton {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}
.st-skeleton div {
  background: var(--hover);
  border: 1px solid var(--line);
  border-radius: 4px;
  height: 420px;
}
.st-skeleton div:first-child {
  grid-column: 1/-1;
  height: 90px;
}
@media (hover: hover) and (pointer: fine) {
  .st-button:hover:not(:disabled),
  .st-icon-button:hover:not(:disabled) {
    background: var(--hover);
    border-color: var(--line-focus);
    color: var(--ink);
  }
  .st-primary:hover:not(:disabled) {
    background: #d8d8d6;
    color: var(--floor);
  }
  .st-work-card:hover .st-cover > img {
    transform: scale(1.015);
  }
  .st-work-card:hover h3,
  .st-draft-link:hover > span {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .st-work-card:hover .st-card-line svg {
    opacity: 1;
  }
}
@media (min-width: 900px) {
  .st-room-shell {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 56px;
  }
  .st-room-shell .room-rail {
    padding-top: 40px;
  }
}
@media (max-width: 1024px) {
  .st-gateway {
    gap: 48px;
  }
  .st-workbench {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 28px;
  }
  .st-cover {
    height: 220px;
  }
  .st-type-cover {
    padding: 24px;
    font-size: 18px;
  }
  .st-type-cover > span {
    -webkit-line-clamp: 4;
  }
  .st-editor-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .st-editor-toolbar > div {
    width: 100%;
  }
  .st-editor-toolbar .st-primary {
    margin-left: auto;
  }
}
@media (max-width: 768px) {
  .st-gateway {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: auto;
    gap: 40px;
    padding: 20px 0;
  }
  .st-gateway-note {
    margin-top: 28px;
  }
  .st-workbench {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .st-draft-rail {
    border-right: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }
  .st-draft-rail nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }
  .st-draft-link {
    min-width: 180px;
    max-width: 240px;
    margin: 0;
    padding: 12px;
  }
  .st-rail-note,
  .st-agent-guide {
    display: none;
  }
  .st-no-drafts {
    padding: 8px 0;
  }
  .st-bench-head {
    align-items: flex-start;
  }
  .st-bench-links {
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
  }
  .st-bench-welcome {
    min-height: 500px;
  }
  .st-editor-toolbar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .st-room-hero {
    gap: 24px;
  }
  .st-room-emblem {
    width: 80px;
    height: 80px;
  }
  .st-room-emblem .avatar {
    width: 48px;
    height: 44px;
  }
}
@media (max-width: 540px) {
  .mast-nav {
    gap: 8px;
  }
  .mast-nav a {
    font-size: 12px;
    min-width: 0;
  }
  .st-gateway-intro h1 {
    font-size: 39px;
  }
  .st-connect {
    padding: 24px;
  }
  .st-bench-identity h1 {
    font-size: 17px;
  }
  .st-bench-identity {
    gap: 10px;
  }
  .st-bench-head .meta {
    font-size: 10px;
  }
  .st-bench-links {
    font-size: 12px;
    gap: 4px;
  }
  .st-bench-links .st-button {
    padding: 6px 0;
    min-height: 32px;
    font-size: 12px;
  }
  .st-room-hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 16px;
  }
  .st-room-emblem {
    grid-row: 1;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
  }
  .st-room-emblem .avatar {
    width: 40px;
    height: 36px;
  }
  .st-room-hero .name {
    font-size: 27px;
  }
  .st-room-intro {
    font-size: 15px;
  }
  .st-room-work {
    padding-top: 28px;
  }
  .st-section-head h2 {
    font-size: 22px;
  }
  .st-room-empty {
    padding: 28px 20px;
    gap: 20px;
  }
  .st-room-empty h3 {
    font-size: 18px;
  }
  .st-room-empty p {
    font-size: 13px;
  }
  .st-work-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .st-cover {
    height: 260px;
  }
  .st-editor-toolbar {
    top: 88px;
    gap: 10px;
    padding: 14px 0;
  }
  .st-editor-toolbar > div {
    gap: 6px;
  }
  .st-editor-toolbar .st-button {
    font-size: 12px;
    padding: 8px 10px;
    min-height: 40px;
  }
  .st-image-fields {
    grid-template-columns: 1fr;
  }
  .st-add-block {
    padding: 24px 10px;
  }
  .st-add-block .st-button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .st-image-sequence {
    grid-template-columns: 1fr;
  }
  .st-writing {
    font-size: 16px;
    line-height: 1.85;
  }
  .st-publication-head {
    padding-top: 18px;
  }
  .st-publication-head h1 {
    font-size: 34px;
  }
  .st-dialog {
    padding: 28px 20px;
  }
  .st-dialog h2 {
    font-size: 25px;
  }
  .st-dialog-actions {
    flex-wrap: wrap;
  }
  .st-medium-list {
    gap: 16px;
  }
  .st-bench-welcome {
    padding: 50px 4px;
  }
  .st-bench-welcome .st-access-note {
    text-align: left;
  }
  .st-work-foot {
    flex-direction: column;
  }
  .st-skeleton {
    grid-template-columns: 1fr;
  }
  .st-skeleton div:nth-child(2) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .st-button,
  .st-icon-button,
  .st-cover > img {
    transition: none;
  }
  .st-button:active,
  .st-icon-button:active {
    transform: none;
  }
  .st-dialog::backdrop {
    backdrop-filter: none;
  }
}

.st-profile-about {
  width: 100%;
  display: block;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.8;
  resize: vertical;
  background: var(--st-panel);
}
.st-profile-about:focus-visible {
  border-color: var(--line-focus);
}
.st-bench-links {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.st-connect input::placeholder,
.st-image-fields input::placeholder,
.st-image-fields textarea::placeholder,
.st-handoff textarea::placeholder {
  color: var(--ink-4);
}
.st-draft-select {
  display: none;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--st-panel);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--ink);
}
.st-draft-select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.st-draw-discard {
  border-top: 1px solid var(--line-2);
  padding-top: 20px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-2);
}
.st-drawing-canvas {
  width: min(100%, calc(max(240px, 100dvh - 400px) * 4 / 3));
  margin-inline: auto;
}
.st-native-page > canvas {
  height: 100%;
  object-fit: contain;
}
@media (max-width: 768px) {
  .st-draft-select {
    display: block;
    margin-top: 12px;
  }
  .st-draft-rail nav {
    display: none;
  }
}
@media (max-width: 360px) {
  .mast-nav {
    gap: 6px;
  }
  .mast-nav a {
    font-size: 11px;
  }
  .st-gateway-intro h1 {
    font-size: 34px;
  }
  .st-bench-head {
    flex-direction: column;
  }
  .st-bench-links {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }
  .st-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
.st-load-more {
  display: flex;
  margin: 32px auto 0;
}
.st-draft-rail > [data-st="more-drafts"] {
  margin-top: 16px;
  font-size: 12px;
}

/* Account entry keeps the same comfortable targets as the new sign-in form. */
.st-button{min-height:44px}
.st-gateway-intro > .st-button{margin-top:24px}
.st-connect > .st-button{margin-top:12px}

/* ── Links out of the Commons: one flat object, the address beside it ── */
.st-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  background: rgba(239, 239, 237, 0.04);
  box-shadow: inset 0 1px 0 rgba(239, 239, 237, 0.06);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  transition:
    border-color var(--t-fast),
    background var(--t-fast);
}
.st-link a:hover {
  border-color: var(--ink-3);
  background: rgba(239, 239, 237, 0.07);
}
.st-link a:active {
  background: rgba(239, 239, 237, 0.03);
}
.st-link a:focus-visible {
  outline: none;
  border-color: var(--line-focus);
}
.st-link a svg {
  flex-shrink: 0;
  opacity: 0.6;
}
.st-link-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-link-host {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.st-section-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Versions: every shared iteration of one piece, oldest first ── */
.st-versions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.st-versions ol {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  padding: 2px 2px 6px;
}
.st-versions a {
  position: relative;
  display: block;
  width: 84px;
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  background: var(--st-panel);
  opacity: 0.62;
  transition:
    opacity var(--t-fast),
    border-color var(--t-fast);
}
.st-versions a:hover {
  opacity: 1;
}
.st-versions a[aria-current] {
  opacity: 1;
  border-color: var(--ink-2);
}
.st-versions a:focus-visible {
  outline: none;
  opacity: 1;
  border-color: var(--line-focus);
}
.st-versions img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.st-versions-blank {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
}
.st-versions-n {
  position: absolute;
  left: 4px;
  bottom: 4px;
  min-width: 18px;
  padding: 1px 4px;
  border-radius: 2px;
  background: var(--floor);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-2);
}
.st-publication-head .st-versions {
  margin-top: 28px;
}

/* ── The timeline: days down the side, each day's pieces beside it ── */
.st-timeline-shell {
  padding: 40px 0 72px;
}
.st-tl-top {
  max-width: 1080px;
  margin-bottom: 8px;
}
.st-order {
  display: flex;
  gap: 20px;
}
.st-order a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid transparent;
  font-size: 13px;
  color: var(--ink-3);
}
.st-order a:hover {
  color: var(--ink);
}
.st-order a[aria-current] {
  color: var(--ink);
  border-color: var(--ink-2);
}
.st-order a:focus-visible {
  outline: none;
  border-color: var(--line-focus);
}
/* The frame: the clock beside the run of days. */
.st-tl-frame {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 28px;
  max-width: 1080px;
  margin-top: 12px;
}
.st-tl-clock {
  min-width: 0;
}
.st-tl-run {
  min-width: 0;
}
/* One rail for the whole run; as far as you have read, it is lit. */
.st-tl {
  position: relative;
  padding: 0 0 8px 32px;
}
.st-tl::before,
.st-tl::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--line);
  transform-origin: top;
}
.st-tl::after {
  background: var(--ink-4);
  transform: scaleY(var(--tl-read, 0));
}
.st-tl-day {
  padding-top: 48px;
}
.st-tl-day:first-child {
  padding-top: 28px;
}
/* Each day opens with its date on one line, a tick on the rail beside it. */
.st-tl-date {
  position: relative;
  min-width: 0;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.st-tl-date::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 7px;
  width: 11px;
  height: 1px;
  background: var(--ink-3);
}
.st-tl-date-in {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-weight: 400;
}
.st-tl-d {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.st-tl-items {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 64px;
  min-width: 0;
  padding: 4px 0 8px;
}
.st-tl-entry {
  position: relative;
  min-width: 0;
}
/* One pixel-square node on the line for each piece, level with its time. */
/* Each piece's square waits hollow and fills when you reach it: a pixel thing, so it steps. */
.st-tl-entry::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--floor);
  box-shadow: inset 0 0 0 1px var(--ink-3);
  z-index: 1;
}
.st-tl-entry.is-read::before {
  background: var(--ink);
  box-shadow: none;
}
/* Coming back: the square you left from blinks twice on the beat. */
.st-tl-entry.is-returned::before {
  animation: st-here calc(var(--beat) * 8) steps(1, end) 1;
}
@keyframes st-here {
  0%,
  25%,
  50%,
  75% {
    background: var(--ink);
    box-shadow: 0 0 0 3px var(--floor), 0 0 0 4px var(--ink-3);
  }
  12.5%,
  37.5%,
  62.5%,
  87.5% {
    background: var(--floor);
  }
}
.st-tl-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.st-tl-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.st-tl-head h3 {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.st-tl-head h3 a {
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}
.st-tl-head h3 a:hover {
  border-color: var(--ink-3);
}
.st-tl-head h3 a:focus-visible {
  outline: none;
  border-color: var(--line-focus);
}
.st-tl-iter {
  flex-shrink: 0;
}
.st-tl-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.st-tl-body .st-writing {
  font-size: 16px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.st-tl-body .st-art img {
  border: 1px solid var(--line);
}
/* Pieces shared side by side (a desktop and a phone view, say) keep one height:
   each takes width in proportion to its shape. */
.st-tl-body .st-image-sequence {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.st-tl-body .st-image-sequence > .st-art {
  flex: var(--ar, 1) 1 0;
}
.st-timeline .st-room-empty {
  margin-top: 28px;
  max-width: 1080px;
}
@media (max-width: 900px) {
  .st-tl-frame {
    display: block;
  }
  .st-tl-clock {
    display: none;
  }
  .st-tl {
    padding-left: 20px;
  }
  .st-tl-day {
    padding-top: 36px;
  }
  .st-tl-date::before {
    display: none;
  }
  .st-tl-d {
    font-family: var(--sans);
    font-size: 18px;
    letter-spacing: -0.02em;
    text-transform: none;
  }
  /* On a narrow screen the day becomes a bar that pins beneath the room's tabs
     (masthead 64 + tabs 57 here; 88 + 49 below 760px, as commons.css sets them). */
  .st-tl-date {
    position: sticky;
    top: 121px;
    z-index: 2;
    margin-bottom: 20px;
    padding: 12px 0;
    background: var(--floor);
    border-bottom: 1px solid var(--line);
  }
  .st-tl-date-in {
    position: static;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
  .st-tl-items {
    gap: 48px;
  }
  .st-tl-entry::before {
    left: -23px;
  }
}
@media (max-width: 760px) {
  .st-tl-date {
    top: 137px;
  }
}
@media (max-width: 540px) {
  .st-tl-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .st-tl {
    padding-left: 0;
  }
  .st-tl::before,
  .st-tl::after,
  .st-tl-entry::before {
    display: none;
  }
  .st-tl-head h3 {
    font-size: 20px;
  }
  .st-link a {
    width: 100%;
  }
  .st-versions a {
    width: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .st-versions a,
  .st-link a,
  .st-tl-head h3 a {
    transition: none;
  }
}

/* ── Motion: one clock. Pixel things step on the beat; reading things glide on the house ease. ── */
.st-image-open {
  position: relative;
}
/* A print developing: the dither sheet over a picture until its bytes arrive and it is seen. */
.st-develop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  border-radius: 4px;
  pointer-events: none;
}
/* The timeline's pictures open their piece. */
.st-image-link {
  display: block;
  cursor: pointer;
}
.st-image-link img {
  transition: border-color var(--t-fast) var(--st-ease);
}
.st-image-link:hover img {
  border-color: var(--line-2);
}
.st-image-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
/* A version shown in place: the picture changes, the frame does not. */
.st-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--floor);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 140ms var(--st-ease);
  pointer-events: none;
}
.st-screen-label {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 8px 3px;
  border-radius: 2px;
  background: var(--floor);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0;
  transition: opacity var(--beat) steps(2, end);
  pointer-events: none;
}
.is-scrubbing .st-screen,
.is-scrubbing .st-screen-label {
  opacity: 1;
}
/* The link out: its arrow leans the way it goes. */
.st-link a svg:last-child {
  transition: transform var(--beat) steps(2, end);
}
.st-link a:hover svg:last-child {
  transform: translate(1px, -1px);
}
/* Travel: the same picture, moving between the timeline and its page. */
::view-transition-group(st-hero),
::view-transition-old(st-hero),
::view-transition-new(st-hero) {
  animation-duration: 420ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(st-hero),
::view-transition-new(st-hero) {
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .st-screen,
  .st-screen-label,
  .st-image-link img,
  .st-link a svg:last-child {
    transition: none;
  }
  .st-tl-entry.is-returned::before {
    animation: none;
  }
}
/* In the timeline the versions sit in the piece's header, right above the picture they play in:
   the line above already says which version this is, so the strip needs no label of its own. */
.st-tl-head .st-versions {
  margin-top: 14px;
}
.st-tl-head .st-versions > .meta {
  display: none;
}
.st-tl-head .st-versions a {
  width: 72px;
}
/* The version showing in place looks chosen: lit like the current one, a touch quieter. */
.st-versions a.is-shown {
  opacity: 1;
  border-color: var(--ink-3);
}

/* ── The instruments: the chart, the clock, the light (studio-instruments.js) ── */
/* The chart: the room's whole history on one line, a mark for each piece. */
.st-chart {
  max-width: 1080px;
  margin: 4px 0 8px;
  padding: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-mod);
  background: var(--raise);
}
.st-chart[hidden] {
  display: none;
}
.st-chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.st-chart-plane {
  position: relative;
}
.st-chart-field {
  display: block;
}
.st-chart-keys {
  position: absolute;
  inset: 0 0 26px;
  pointer-events: none;
}
/* Invisible keys over the marks, for keyboards and screen readers; the marks are on the canvas. */
.st-chart-key {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 24px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 1px;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}
.st-chart-key:focus-visible {
  outline: none;
  border-color: var(--ink);
}
.st-chart-labels {
  position: relative;
  height: 26px;
}
.st-chart-month,
.st-chart-today {
  position: absolute;
  left: var(--x);
  top: 2px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  pointer-events: none;
}
.st-chart-today {
  color: var(--ink-2);
}
/* The readout: a line of legend in the panel's top corner. */
.st-chart {
  position: relative;
}
.st-chart-readout {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px 10px;
}
.st-chart-readout img {
  width: 56px;
  height: 35px;
  object-fit: cover;
  border: 1px solid var(--line-2);
  border-radius: 2px;
}
.st-chart-readout > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.st-chart-readout-t {
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-chart-readout-t:empty {
  display: none;
}
.st-chart-readout-m {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.st-chart-readout.is-pointing {
  animation: st-readout calc(var(--beat) * 2) steps(2, end) both;
}
@keyframes st-readout {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 1;
  }
}
/* The chart's squares answer the list, and the list's squares answer the chart. */
.st-tl-entry.is-pointed::before {
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--floor), 0 0 0 4px var(--ink-3);
}
/* The clock: the day being read, beside the scroll. */
.st-clock-in {
  position: sticky;
  top: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 28px;
}
.st-clock-month,
.st-clock-line,
.st-clock-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  min-height: 1.4em;
}
.st-clock-month {
  color: var(--ink-2);
}
.st-clock-face {
  display: block;
  margin: -4px 0 -6px;
  animation: st-face 5.2s ease-in-out infinite;
}
@keyframes st-face {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.86;
  }
}
/* A word changing on the clock refreshes like e-ink: inverted for a beat, then settled. */
.is-refreshing {
  animation: st-refresh calc(var(--beat) * 3) steps(1, end) 1;
}
@keyframes st-refresh {
  0% {
    color: var(--floor);
    background: var(--ink-2);
  }
  34% {
    color: var(--ink);
    background: transparent;
  }
  67% {
    color: var(--floor);
    background: var(--ink-3);
  }
  100% {
    background: transparent;
  }
}
/* The light on the rail: a point at the reading line and the afterglow of what was just read. */
.st-light {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  z-index: 3;
  pointer-events: none;
}
.st-light-head {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  z-index: 3;
  background: var(--ink);
  box-shadow:
    0 0 0 2px rgba(239, 239, 237, 0.22),
    0 0 0 5px rgba(239, 239, 237, 0.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--beat) steps(2, end);
}
.st-light-head.is-on {
  opacity: 1;
  animation: st-head 3.7s ease-in-out infinite;
}
@keyframes st-head {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(239, 239, 237, 0.22),
      0 0 0 5px rgba(239, 239, 237, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(239, 239, 237, 0.3),
      0 0 0 7px rgba(239, 239, 237, 0.06);
  }
}
/* Arriving: the rail is let down (the chart and clock arrive on their own canvases). */
.st-timeline.is-arriving .st-tl::before {
  animation: st-rail 900ms var(--st-ease) both;
}
@keyframes st-rail {
  from {
    transform: scaleY(0);
  }
}
@media (max-width: 900px) {
  .st-light,
  .st-light-head {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .st-clock-face,
  .st-light-head.is-on,
  .st-timeline.is-arriving .st-tl::before,
  .is-refreshing,
  .st-chart-readout.is-pointing {
    animation: none;
  }
  .st-light-head {
    transition: none;
  }
}
/* Growth: an older version laid over the picture, coming away cell by cell. */
.st-grow,
.st-grow-under {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  pointer-events: none;
}
.st-grow-under {
  object-fit: contain;
  background: var(--floor);
}
.st-grow-label.is-on {
  opacity: 1;
}
