:root {
  --st-paper: #f3f0e7;
  --st-sheet: #fffefa;
  --st-ink: #11110f;
  --st-muted: #66635c;
  --st-faint: #ddd8ca;
  --st-yellow: #f1dd52;
  --st-yellow-soft: #fff6b8;
  --st-green: #dceccd;
  --st-peach: #f0d5c4;
  --st-red: #a82f23;
  --st-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --st-sans: Arial, Helvetica, sans-serif;
  --st-serif: Georgia, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--st-paper);
  color: var(--st-ink);
}

body {
  min-width: 300px;
  margin: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(17, 17, 15, .035) calc(100% - 1px)) 0 0 / 24px 24px,
    var(--st-paper);
  color: var(--st-ink);
  font: 16px/1.42 var(--st-sans);
}

body[data-visibility="private"] {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(17, 17, 15, .055) calc(100% - 1px)) 0 0 / 16px 16px,
    #ebe8dd;
}

button,
input,
select,
textarea {
  border-radius: 0;
  color: inherit;
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--st-yellow);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  top: 8px;
  left: -999px;
  z-index: 100;
  padding: 8px 10px;
  border: 2px solid var(--st-ink);
  background: var(--st-yellow);
  color: var(--st-ink);
}

.skip:focus {
  left: 8px;
}

.st-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 8px 16px;
  border-bottom: 4px solid var(--st-yellow);
  background: var(--st-ink);
  color: var(--st-sheet);
}

.st-mark {
  color: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}

.st-surface-name {
  overflow: hidden;
  color: #d4d0c5;
  font: 10px/1.2 var(--st-mono);
  letter-spacing: .12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.st-nav {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.st-nav a {
  padding: 5px 8px;
  border: 1px solid #716f69;
  color: var(--st-sheet);
  font: 10px/1.2 var(--st-mono);
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.st-nav a[aria-current="page"] {
  border-color: var(--st-yellow);
  background: var(--st-yellow);
  color: var(--st-ink);
}

.st-shell {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 20px 18px 64px;
}

.st-shell.narrow {
  width: min(1100px, 100%);
}

.st-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .6fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px 0 22px;
  border-bottom: 4px solid var(--st-ink);
}

.st-kicker,
.st-label {
  color: var(--st-muted);
  font: 10px/1.25 var(--st-mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.st-kicker {
  margin-bottom: 9px;
}

.st-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(42px, 6.5vw, 96px);
  letter-spacing: -.065em;
  line-height: .88;
}

.st-hero p {
  max-width: 850px;
  margin: 13px 0 0;
  font-size: clamp(17px, 2vw, 25px);
  letter-spacing: -.015em;
  line-height: 1.18;
}

.st-hero-note {
  padding: 14px;
  border: 2px solid var(--st-ink);
  background: var(--st-yellow);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.st-hero-note small {
  display: block;
  margin-top: 8px;
  font: 9px/1.4 var(--st-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.st-visibility {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 9px;
  padding: 4px 7px;
  border: 1px solid var(--st-ink);
  background: var(--st-sheet);
  font: 9px/1.2 var(--st-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.st-visibility::before {
  width: 9px;
  height: 9px;
  border: 1px solid var(--st-ink);
  background: var(--st-green);
  content: "";
}

.st-visibility.private::before {
  background: var(--st-peach);
}

.st-visibility.shared::before {
  background: var(--st-yellow);
}

.st-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: 16px;
  align-items: start;
}

.st-grid.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.st-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.st-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.st-sheet {
  min-width: 0;
  border: 2px solid var(--st-ink);
  background: var(--st-sheet);
}

.st-sheet.private {
  background: #f8f4eb;
}

.st-sheet-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  min-height: 36px;
  padding: 8px 10px;
  border-bottom: 2px solid var(--st-ink);
  background: var(--st-ink);
  color: var(--st-sheet);
}

.st-sheet-head h2,
.st-sheet-head h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.st-sheet-head span {
  color: #d4d0c5;
  font: 9px/1.3 var(--st-mono);
  letter-spacing: .04em;
  text-align: right;
  text-transform: uppercase;
}

.st-sheet-body {
  padding: 14px;
}

.st-sheet-body.flush {
  padding: 0;
}

.st-rule {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid var(--st-ink);
}

.st-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 12px;
}

.st-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.st-field.wide {
  grid-column: 1 / -1;
}

.st-field label,
.st-field-title {
  font: 10px/1.2 var(--st-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.st-field small {
  color: var(--st-muted);
  font-size: 11px;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--st-ink);
  background: var(--st-sheet);
}

textarea {
  min-height: 96px;
  line-height: 1.45;
  resize: vertical;
}

textarea.tall {
  min-height: 150px;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--st-ink);
}

.st-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--st-ink);
  background: var(--st-sheet);
  color: var(--st-ink);
  font: 10px/1.2 var(--st-mono);
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
}

.st-button:hover:not(:disabled) {
  background: #e8e4da;
}

.st-button.ink {
  background: var(--st-ink);
  color: var(--st-sheet);
}

.st-button.signal {
  background: var(--st-yellow);
  color: var(--st-ink);
  font-weight: 700;
}

.st-button.soft {
  background: var(--st-paper);
}

.st-button.danger {
  background: var(--st-peach);
}

.st-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.st-actions.spread {
  justify-content: space-between;
}

.st-status-line {
  font: 10px/1.35 var(--st-mono);
  text-transform: uppercase;
}

.st-notice {
  padding: 11px 12px;
  border-left: 5px solid var(--st-ink);
  background: var(--st-paper);
  font-size: 13px;
  line-height: 1.45;
}

.st-notice.signal {
  border-left-color: #a18d00;
  background: var(--st-yellow-soft);
}

.st-notice.private {
  border-left-color: var(--st-red);
  background: var(--st-peach);
}

.st-notice.ok {
  background: var(--st-green);
}

.st-conversation {
  min-height: 310px;
  max-height: 520px;
  overflow-y: auto;
  border-bottom: 1px solid var(--st-ink);
}

.st-turn {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--st-faint);
}

.st-turn:last-child {
  border-bottom: 0;
}

.st-turn.client {
  background: var(--st-sheet);
}

.st-turn.rep {
  background: var(--st-paper);
}

.st-turn-who {
  font: 9px/1.4 var(--st-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.st-turn-text {
  white-space: pre-wrap;
}

.st-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  background: var(--st-sheet);
}

.st-composer textarea {
  min-height: 76px;
}

.st-mode-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.st-mode-choice button {
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid var(--st-ink);
  background: var(--st-sheet);
  text-align: left;
}

.st-mode-choice button[aria-pressed="true"] {
  background: var(--st-yellow);
  font-weight: 700;
}

.st-mode-choice strong,
.st-mode-choice small {
  display: block;
}

.st-mode-choice small {
  margin-top: 3px;
  color: var(--st-muted);
  font-size: 11px;
}

.st-paths {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--st-ink);
}

.st-path {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(110px, auto);
  gap: 10px;
  align-items: start;
  padding: 13px 10px;
  border: 0;
  border-bottom: 1px solid var(--st-ink);
  background: var(--st-sheet);
  text-align: left;
}

.st-path:hover {
  background: var(--st-paper);
}

.st-path.selected {
  background: var(--st-yellow-soft);
  box-shadow: inset 6px 0 0 var(--st-yellow);
}

.st-path-no {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--st-ink);
  background: var(--st-ink);
  color: var(--st-sheet);
  font: 10px var(--st-mono);
}

.st-path-name {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.st-path p {
  margin: 0;
  color: var(--st-muted);
  font-size: 12px;
}

.st-path-price {
  font: 10px/1.35 var(--st-mono);
  text-align: right;
  text-transform: uppercase;
}

.st-fact-list,
.st-timeline,
.st-record-list {
  display: grid;
}

.st-fact,
.st-record,
.st-event {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--st-faint);
}

.st-fact:last-child,
.st-record:last-child,
.st-event:last-child {
  border-bottom: 0;
}

.st-fact dt,
.st-record-key,
.st-event-time {
  margin: 0;
  color: var(--st-muted);
  font: 9px/1.35 var(--st-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.st-fact dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.st-record-value,
.st-event-copy {
  overflow-wrap: anywhere;
}

.st-event-action {
  display: block;
  margin-bottom: 3px;
  font: 10px/1.3 var(--st-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.st-citation {
  display: inline-block;
  margin: 0 3px;
  padding: 1px 4px;
  background: var(--st-ink);
  color: var(--st-sheet);
  font: 9px var(--st-mono);
}

.st-decision {
  border: 3px solid var(--st-ink);
  background: var(--st-yellow-soft);
}

.st-decision .st-sheet-head {
  background: var(--st-yellow);
  color: var(--st-ink);
}

.st-decision .st-sheet-head span {
  color: var(--st-ink);
}

.st-decision-title {
  margin: 0 0 8px;
  font: 26px/1.05 var(--st-serif);
}

.st-state-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  margin-bottom: 16px;
  border: 2px solid var(--st-ink);
  background: var(--st-sheet);
}

.st-state {
  min-height: 68px;
  padding: 10px;
  border-right: 1px solid var(--st-ink);
}

.st-state:last-child {
  border-right: 0;
}

.st-state.current {
  background: var(--st-yellow);
}

.st-state.complete {
  background: var(--st-green);
}

.st-state b,
.st-state span {
  display: block;
}

.st-state b {
  margin-bottom: 4px;
  font: 10px/1.2 var(--st-mono);
  text-transform: uppercase;
}

.st-state span {
  color: var(--st-muted);
  font-size: 11px;
}

.st-gates {
  display: grid;
  gap: 7px;
}

.st-gate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px;
  border: 1px solid var(--st-ink);
  background: var(--st-paper);
}

.st-gate strong,
.st-gate small {
  display: block;
}

.st-gate small {
  margin-top: 3px;
  color: var(--st-muted);
  font-size: 11px;
}

.st-room-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--st-ink);
  background: var(--st-sheet);
}

.st-room-status > div {
  min-height: 96px;
  padding: 12px;
  border-right: 1px solid var(--st-ink);
}

.st-room-status > div:last-child {
  border-right: 0;
}

.st-room-status strong,
.st-room-status span {
  display: block;
}

.st-room-status strong {
  margin-top: 7px;
  font-size: 17px;
  line-height: 1.15;
}

.st-room-status span {
  font: 9px/1.3 var(--st-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.st-update {
  padding: 13px 0;
  border-bottom: 1px solid var(--st-ink);
}

.st-update:last-child {
  border-bottom: 0;
}

.st-update-date {
  margin-bottom: 5px;
  color: var(--st-muted);
  font: 9px/1.3 var(--st-mono);
  text-transform: uppercase;
}

.st-delivery {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--st-ink);
  background: var(--st-paper);
}

.st-delivery + .st-delivery {
  margin-top: 7px;
}

.st-private-band {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 8px 10px;
  border: 2px solid var(--st-ink);
  background: var(--st-peach);
}

.st-private-band strong {
  font: 11px/1.2 var(--st-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.st-private-band span {
  font-size: 12px;
}

.st-risk {
  display: inline-flex;
  margin: 0 5px 5px 0;
  padding: 4px 6px;
  border: 1px solid var(--st-red);
  color: #681b14;
  font: 9px/1.2 var(--st-mono);
  text-transform: uppercase;
}

.st-source {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid var(--st-faint);
}

.st-source:last-child {
  border-bottom: 0;
}

.st-source-id {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--st-ink);
  color: var(--st-sheet);
  font: 10px var(--st-mono);
}

.st-source-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.st-source-meta {
  display: block;
  color: var(--st-muted);
  font: 9px/1.35 var(--st-mono);
  overflow-wrap: anywhere;
}

.st-empty {
  color: var(--st-muted);
  font-size: 12px;
  font-style: italic;
}

.st-hidden {
  display: none !important;
}

.st-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: 370px;
  padding: 11px 13px;
  border: 2px solid var(--st-ink);
  background: var(--st-yellow);
  box-shadow: 5px 5px 0 var(--st-ink);
  font-size: 13px;
}

.st-footer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 2px solid var(--st-ink);
  color: var(--st-muted);
  font: 9px/1.45 var(--st-mono);
  text-transform: uppercase;
}

.st-atlas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--st-ink);
  border-left: 2px solid var(--st-ink);
}

.st-atlas-link {
  min-height: 240px;
  padding: 18px;
  border-right: 2px solid var(--st-ink);
  border-bottom: 2px solid var(--st-ink);
  background: var(--st-sheet);
  color: inherit;
  text-decoration: none;
}

.st-atlas-link:hover {
  background: var(--st-yellow-soft);
}

.st-atlas-link.public {
  background: #fffefa;
}

.st-atlas-link.private {
  background: #f5e5da;
}

.st-atlas-no {
  display: block;
  margin-bottom: 42px;
  font: 10px var(--st-mono);
}

.st-atlas-link h2 {
  margin: 0 0 8px;
  font: clamp(27px, 4vw, 48px)/.95 var(--st-serif);
}

.st-atlas-link p {
  max-width: 580px;
  margin: 0;
  font-size: 14px;
}

@media (max-width: 980px) {
  .st-grid,
  .st-grid.equal,
  .st-grid.three {
    grid-template-columns: 1fr;
  }

  .st-hero {
    grid-template-columns: 1fr;
  }

  .st-hero-note {
    max-width: 520px;
  }

  .st-state-rail {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }

  .st-state:nth-child(3) {
    border-right: 0;
  }

  .st-state:nth-child(n+4) {
    border-top: 1px solid var(--st-ink);
  }
}

@media (max-width: 720px) {
  .st-top {
    position: relative;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .st-surface-name {
    white-space: normal;
  }

  .st-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .st-shell {
    padding: 14px 12px 48px;
  }

  .st-hero h1 {
    font-size: 45px;
  }

  .st-field-grid,
  .st-mode-choice,
  .st-atlas {
    grid-template-columns: 1fr;
  }

  .st-field.wide {
    grid-column: auto;
  }

  .st-path {
    grid-template-columns: 31px minmax(0, 1fr);
  }

  .st-path-price {
    grid-column: 2;
    text-align: left;
  }

  .st-room-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-room-status > div:nth-child(2) {
    border-right: 0;
  }

  .st-room-status > div:nth-child(n+3) {
    border-top: 1px solid var(--st-ink);
  }

  .st-state-rail {
    grid-template-columns: 1fr;
  }

  .st-state {
    border-right: 0;
    border-bottom: 1px solid var(--st-ink);
  }

  .st-state:last-child {
    border-bottom: 0;
  }

  .st-turn {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .st-composer {
    grid-template-columns: 1fr;
  }

  .st-fact,
  .st-record,
  .st-event {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .st-source {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .st-source > :last-child {
    grid-column: 2;
    justify-self: start;
  }

  .st-atlas-link {
    min-height: 210px;
  }

  .st-atlas-no {
    margin-bottom: 28px;
  }

  .st-footer {
    display: block;
  }
}

@media print {
  .st-top,
  .st-nav,
  .st-actions,
  .st-composer,
  .st-toast {
    display: none !important;
  }

  body {
    background: white;
  }

  .st-shell {
    width: 100%;
    padding: 0;
  }

  .st-sheet,
  .st-decision {
    break-inside: avoid;
  }
}
