@font-face {
  font-family: Geist;
  src: url("./fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Redacted;
  src: url("./fonts/redacted-regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("./fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: Geist, system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  --ink: #14161d;
  --accent: #1d2d8e;
  --muted: #50576a;
  --meta: #525b6f;
  --faint: #777e8e;
  --rule: #e3e5e9;
  --rule-strong: #d9dce4;
  --input-border: #b7bdca;
  --page: #f6f7f9;
}
/* ==========================================================================
   Typography system — one role per text style; the source of truth for type.
   Apply with the `font` shorthand plus the matching tracking token, e.g.
     .section-heading { font: var(--type-heading-1); letter-spacing: var(--track-heading-1); }

   role          | family | size                     | weight | line-height | letter-spacing
   ------------- | ------ | ------------------------ | ------ | ----------- | --------------
   display       | sans   | clamp(40px, 5.2vw, 72px) | 600    | 1.05        | -0.045em
   title         | sans   | clamp(30px, 3.6vw, 44px) | 600    | 1.08        | -0.04em
   heading.1     | sans   | clamp(24px, 2.6vw, 30px) | 600    | 1.15        | -0.03em
   heading.2     | sans   | 20px                     | 600    | 1.2         | -0.02em
   lead          | sans   | 20px                     | 400    | 1.35        | -0.01em
   body.default  | sans   | 15px                     | 400    | 1.55        | 0
   body.small    | sans   | 13px                     | 400    | 1.5         | 0
   label.default | mono   | 11px                     | 500    | 1.4         | 0.12em
   metadata      | mono   | 12px                     | 400    | 1.5         | 0.06em
   eyebrow       | mono   | 11px                     | 500    | 1.45        | 0.18em
   code          | mono   | 12px                     | 400    | 1.5         | 0
   accent        | serif  | 21px (italic)            | 400    | 1.1         | 0

   Component exceptions (not role-mapped): .choice-title, .arrow, .picker-close,
   .redacted placeholders, form-field labels (body.small at 600).
   ========================================================================== */
:root {
  --font-sans: Geist, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;

  --type-display: 600 clamp(40px, 5.2vw, 72px) / 1.05 var(--font-sans);
  --type-title: 600 clamp(30px, 3.6vw, 44px) / 1.08 var(--font-sans);
  --type-heading-1: 600 clamp(24px, 2.6vw, 30px) / 1.15 var(--font-sans);
  --type-heading-2: 600 20px / 1.2 var(--font-sans);
  --type-lead: 400 20px / 1.35 var(--font-sans);
  --type-body: 400 15px / 1.55 var(--font-sans);
  --type-body-small: 400 13px / 1.5 var(--font-sans);
  --type-label: 500 11px / 1.4 var(--font-mono);
  --type-metadata: 400 12px / 1.5 var(--font-mono);
  --type-eyebrow: 500 11px / 1.45 var(--font-mono);
  --type-code: 400 12px / 1.5 var(--font-mono);
  --type-accent: italic 400 21px / 1.1 var(--font-serif);

  --track-display: -0.045em;
  --track-title: -0.04em;
  --track-heading-1: -0.03em;
  --track-heading-2: -0.02em;
  --track-lead: -0.01em;
  --track-label: 0.12em;
  --track-metadata: 0.06em;
  --track-eyebrow: 0.18em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
[hidden] {
  display: none !important;
}
.page {
  width: min(100% - 40px, 1128px);
  margin: 0 auto;
}
.folio-meta,
.eyebrow {
  font: var(--type-eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
}
.number {
  font: var(--type-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.folio-link {
  color: inherit;
  text-decoration: none;
}
.folio-link:hover {
  color: var(--accent);
}
.meta-divider {
  color: var(--accent);
}
.paper {
  background: #fff;
  border: 1px solid var(--rule);
}
.screen:not(#joined) {
  margin: clamp(32px, 5vw, 80px) 0 60px;
}
.entry-paper,
.form-paper {
  padding: 32px clamp(24px, 4vw, 48px) 26px;
}
.joined-paper {
  padding: 0;
}
.folio-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--rule);
  color: var(--meta);
}
.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(36px, 5vw, 72px);
  padding: 34px 0 40px;
  align-items: center;
}
.entry-intro {
  min-width: 0;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--meta);
}
.form-intro .eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  border-top: 1px solid var(--accent);
  vertical-align: middle;
  margin-right: 12px;
}
h1 {
  margin: 0;
  font: var(--type-display);
  letter-spacing: var(--track-display);
}
h1:focus {
  outline: none;
}
.entry-lead {
  margin: 18px 0 0;
  font: var(--type-lead);
  letter-spacing: var(--track-lead);
}
.entry-lead em {
  color: var(--accent);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.1em;
}
.entry-actions > .eyebrow {
  margin-bottom: 8px;
}
[data-restoring] .screen {
  visibility: hidden;
}
[data-restoring] #restoring-note {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  background: var(--page);
  visibility: visible;
  text-align: center;
}
#restoring-note:empty {
  display: none;
}
.checking {
  color: var(--muted);
  font: var(--type-body);
  margin: 0 0 8px;
}
.action-intro {
  max-width: 34ch;
  color: var(--muted);
  font: var(--type-body);
  margin: 0 0 24px;
}
.entry-intro .action-intro {
  max-width: 46ch;
  margin: 30px 0 0;
}
.callback-intro {
  padding: 34px 0 8px;
}
.choices {
  border-top: 1px solid var(--rule-strong);
}
.choice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.choice:hover,
.choice:active {
  color: var(--accent);
}
.choice-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.choice-title {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.number {
  color: var(--accent);
  line-height: 1.8;
}
.arrow {
  color: var(--accent);
  font-size: 21px;
  line-height: 1;
}
.redacted {
  font-family: Redacted, sans-serif;
  font-weight: 400;
  color: #858da0;
  user-select: none;
}
.choice-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.disclosure {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin: 0;
  color: var(--muted);
  font: var(--type-body-small);
}
.back,
.text-action {
  display: inline-block;
  padding: 0;
  background: none;
  border: 0;
  color: var(--accent);
  font: var(--type-body-small);
  text-align: left;
  cursor: pointer;
}
.back {
  margin-bottom: 20px;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 40px;
  padding: 40px 0 28px;
}
.supporting {
  max-width: 46ch;
  margin: 16px 0 0;
  color: var(--muted);
  font: var(--type-body);
}
.supporting strong {
  color: var(--ink);
}
.identity-step {
  padding-top: 18px;
}
label {
  display: block;
  margin: 18px 0 8px;
  font: var(--type-body-small);
  font-weight: 600;
}
.identity-step > label:first-child {
  margin-top: 0;
}
input {
  display: block;
  width: min(100%, 360px);
  border: 1px solid var(--input-border);
  border-radius: 0;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: var(--type-body);
}
input::placeholder {
  color: var(--faint);
}
.input-row {
  display: flex;
  width: min(100%, 360px);
}
.input-row input {
  min-width: 0;
  flex: 1;
}
.input-suffix {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--input-border);
  border-left: 0;
  background: #eceef2;
  color: var(--muted);
  font: var(--type-body-small);
  white-space: nowrap;
}
.field-note {
  margin: 9px 0 0;
  color: var(--muted);
  font: var(--type-body-small);
}
.form-status {
  margin: 16px 0 0;
  color: #952c2c;
  font: var(--type-body-small);
}
.primary {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: var(--type-body-small);
  font-weight: 600;
  cursor: pointer;
}
.primary:hover {
  background: #131f66;
}
.primary:disabled {
  opacity: 0.55;
  cursor: wait;
}
#joined {
  margin: 32px 0 60px;
}
.panel-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
/* A nowrap row inside one panel must be free to shrink, or its min-content width
   widens the track and the whole page scrolls sideways. */
.panel-split > * {
  min-width: 0;
}
.attend-panel {
  background: var(--accent);
  color: #fff;
  padding: 30px clamp(24px, 4vw, 48px) 34px;
}
.attend-panel .eyebrow {
  margin-bottom: 14px;
  color: #fff;
}
.attend-title {
  margin: 0;
  color: #fff;
  font: var(--type-title);
  letter-spacing: var(--track-title);
}
.attend-date {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font: var(--type-eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
}
.attend-lead {
  max-width: 44ch;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font: var(--type-body);
}
.attend-lead + .attend-lead {
  margin-top: 4px;
}
/* The RSVP record as a solid white hero: the loudest thing in the saved panel */
.record-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  background: #fff;
  color: var(--ink);
}
.record-label {
  flex: none;
  color: var(--meta);
  font: var(--type-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.record-uri {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink);
  font: var(--type-code);
}
.record-action {
  margin-left: auto;
  color: var(--accent);
  font: var(--type-body-small);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.record-action:hover {
  color: var(--ink);
}
.attend-panel .text-action.bold-link {
  color: #fff;
  font-weight: 600;
}
.attend-panel .text-action.quiet-remove {
  color: rgba(255, 255, 255, 0.7);
}
.attend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 18px 0 0;
}
.account-panel {
  display: flex;
  flex-direction: column;
  padding: 30px clamp(24px, 4vw, 48px) 38px;
}
.accent-label {
  margin: 0 0 24px;
  color: var(--ink);
  font: var(--type-accent);
}
.plain-facts {
  display: grid;
  gap: 17px;
  margin: 0;
}
.plain-fact {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}
.plain-fact dt {
  color: var(--meta);
  font: var(--type-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.plain-fact dd {
  margin: 0;
  color: var(--ink);
  font: var(--type-code);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.did-value {
  border-bottom: 1px dotted var(--input-border);
}
.host-note {
  margin: 30px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font: var(--type-body-small);
}
.panel-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: auto 0 0;
  padding-top: 28px;
}
.account-action-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font: var(--type-body-small);
  font-weight: 600;
  text-decoration: none;
  transition:
    background 140ms ease,
    transform 140ms ease;
}
.account-action-link:hover {
  background: var(--accent-dark, #1b2b79);
  color: #fff;
  transform: translateY(-1px);
}
.account-action-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.panel-logout {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: var(--type-body-small);
  cursor: pointer;
}
.panel-logout:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.icon-button {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr;
  place-items: center end;
  width: 1.6em;
  height: 1.6em;
  vertical-align: -0.45em;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.icon-button:hover {
  color: var(--accent);
}
.icon-button svg {
  grid-area: 1 / 1;
  width: 1.1em;
  height: 1.1em;
  transition: opacity 0.12s ease;
}
/* Keep the glyph in the text flow but give touch a full-size target, extending
   right into the empty space beside the DID. */
.icon-button::after {
  content: "";
  position: absolute;
  inset: -1em -1.4em -1em -0.4em;
}
.icon-button .icon-copy,
.icon-button .icon-check {
  opacity: 0;
}
.icon-button:hover .icon-copy,
.icon-button:focus .icon-copy {
  opacity: 1;
}
.icon-button.is-copied .icon-copy {
  opacity: 0;
}
.icon-button.is-copied .icon-check {
  opacity: 1;
}
.icon-button .tip {
  top: calc(100% + 4px);
  bottom: auto;
  right: 0;
  left: auto;
}
.tip {
  position: absolute;
  z-index: 5;
  width: max-content;
  max-width: min(320px, 78vw);
  padding: 10px 12px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font: var(--type-body-small);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  pointer-events: none;
}
.icon-button:hover .tip,
.icon-button:focus .tip {
  opacity: 1;
  visibility: visible;
}
.rsvp-status.is-on-dark,
.text-action.is-on-dark,
.text-action.is-on-dark:hover {
  color: rgba(255, 255, 255, 0.9);
}
.rsvp-status {
  margin: 12px 0 0;
  color: var(--muted);
  font: var(--type-body-small);
}
.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: var(--type-body-small);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.primary-action:hover {
  background: #131f66;
}
.primary-action:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary-action.is-white {
  margin-top: 22px;
  gap: 30px;
  padding: 11px 16px;
  border-color: #fff;
  background: #fff;
  color: var(--accent);
}
.primary-action.is-white:hover {
  background: rgba(255, 255, 255, 0.88);
}
.text-action:hover,
.back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.joined-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  margin: 24px 0 32px;
  align-items: stretch;
}
.joined-columns > * {
  min-width: 0;
}
.workshops {
  padding: 30px;
}
.feed-preview {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 22px 24px 24px;
}
.section-heading {
  margin: 0;
  font: var(--type-heading-1);
  letter-spacing: var(--track-heading-1);
}
.workshop-intro {
  margin: 18px 0 30px;
  font: var(--type-body);
}
.station-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-bottom: 1px solid var(--rule-strong);
}
.station-tabs::-webkit-scrollbar {
  display: none;
}
.station-tab {
  margin-bottom: -1px;
  padding: 10px 12px;
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: var(--type-body-small);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.station-tab:hover,
.station-tab:active {
  color: var(--ink);
}
.station-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.station-tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.station-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0 4px;
}
.station-detail {
  margin: 0;
  font: var(--type-body);
}
.start-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 8px;
  margin: 4px 0;
}
.start-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font: var(--type-body-small);
  font-weight: 600;
  text-decoration: none;
}
.start-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.workshop-schedule {
  margin-top: 8px;
}
.workshop-schedule h3 {
  margin: 0 0 4px;
  font: var(--type-heading-2);
}
.schedule-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.schedule-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 42px;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.schedule-time,
.schedule-end {
  color: var(--meta);
  font: var(--type-metadata);
  font-variant-numeric: tabular-nums;
}
.schedule-end {
  text-align: right;
}
.schedule-activity {
  font: var(--type-body);
  font-weight: 600;
}
.schedule-note {
  color: var(--muted);
  font-weight: 400;
}
.matadisco-preview {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.matadisco-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.matadisco-heading h3 {
  margin: 0;
  font: var(--type-heading-2);
}
.matadisco-heading a {
  flex: none;
  color: var(--accent);
  font: var(--type-body-small);
  text-decoration: none;
}
.matadisco-heading a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.matadisco-scenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.matadisco-scene {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.matadisco-scene:hover {
  border-color: var(--accent);
}
.matadisco-scene img {
  display: block;
  width: 100%;
  aspect-ratio: 2.35 / 1;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--page);
  object-fit: cover;
}
.matadisco-scene-kind {
  margin-top: 7px;
  color: var(--meta);
  font: var(--type-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.matadisco-scene-tile {
  margin-top: 2px;
  font: var(--type-body-small);
  font-weight: 600;
}
.matadisco-scene-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 8px;
  margin-top: 6px;
  color: var(--muted);
  font: var(--type-metadata);
}
.bluesky-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  margin: 4px 0;
}
.bluesky-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
  min-height: 94px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.bluesky-card-icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.bluesky-card-kind,
.bluesky-card-title,
.bluesky-card-byline {
  grid-column: 2;
  min-width: 0;
}
.bluesky-card:hover {
  border-color: var(--rule-strong);
}
.bluesky-card:hover .bluesky-card-title {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bluesky-card-kind {
  color: var(--meta);
  font: var(--type-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.bluesky-card-title {
  font: var(--type-body);
  font-weight: 600;
}
.bluesky-card-byline {
  overflow: hidden;
  color: var(--muted);
  font: var(--type-body-small);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.station-lead {
  margin: 0;
  color: var(--meta);
  font: var(--type-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.station-notes {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 32px;
  margin: 4px 0 0;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  color: var(--faint);
  font: var(--type-body-small);
  text-decoration: none;
}
.station-notes:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.sensor-demo {
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  color: var(--muted);
}
.sensor-demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--page);
  font: var(--type-metadata);
  letter-spacing: var(--track-metadata);
}
.live-dot {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border: 4px solid #d6eadc;
  border-radius: 50%;
  background: #41975a;
}
.sensor-demo-stations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sensor-demo-station {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px 16px;
  color: var(--muted);
  font: var(--type-body);
  text-decoration: none;
}
.sensor-demo-station + .sensor-demo-station {
  border-left: 1px solid var(--rule-strong);
}
.sensor-demo-station:hover .sensor-demo-title {
  color: var(--accent);
}
.sensor-demo-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font: var(--type-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.sensor-demo-title {
  color: var(--ink);
  font: 600 21px / 1.3 var(--font-sans);
}
.sensor-readings {
  margin: 28px 0 0;
}
.sensor-readings-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
}
.sensor-readings-heading h3 {
  margin: 0;
  color: var(--ink);
  font: var(--type-heading-2);
}
.sensor-readings-heading a {
  flex: none;
  color: var(--accent);
  font: var(--type-body-small);
  text-decoration: none;
}
.sensor-readings-heading a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sensor-reading-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sensor-reading-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(100px, 1.2fr) minmax(80px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-bottom: 1px solid var(--rule-strong);
  font: var(--type-body-small);
}
.sensor-reading-row:last-child {
  border-bottom: 0;
}
.sensor-reading-row strong {
  color: var(--ink);
  font-weight: 600;
}
.sensor-reading-row > span:nth-of-type(n + 2),
.sensor-reading-row time {
  color: var(--faint);
  font: var(--type-metadata);
}
.sensor-reading-empty {
  color: var(--faint);
  font: var(--type-metadata);
}
.sensor-summary {
  margin: 12px 0 0;
  color: var(--faint);
  font: 400 14px / 1.5 var(--font-mono);
  letter-spacing: 0.04em;
}
.sensor-panel-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.institution-briefing {
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  background: #fff;
}
.institution-briefing-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--page);
  color: var(--meta);
  font: var(--type-metadata);
}
.institution-briefing-content {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.institution-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  background: var(--page);
}
.institution-briefing-content h3 {
  margin: 0;
  font: 600 18px / 1.25 var(--font-sans);
}
.institution-briefing-content > p {
  margin: 0;
  color: var(--muted);
  font: var(--type-body);
}
.institution-briefing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.institution-resource-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  color: var(--muted);
  font: var(--type-metadata);
  text-decoration: none;
}
.institution-resource-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* Show IOSP conference Semble collection */
.collection-preview {
  --semble-font: "Hanken Grotesk", system-ui, sans-serif;
  --semble-ink: #1c1917;
  --semble-muted: #868e96;
  --semble-line: #dee2e6;
  --semble-pill: #f1f3f5;
  display: grid;
  gap: 12px;
  font-family: var(--semble-font);
  color: var(--semble-ink);
}
.collection-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 12px;
  margin: 0;
}
.collection-name {
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}
.collection-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.collection-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--semble-line);
  border-radius: 16px;
  background: #fff;
  color: var(--semble-ink);
  text-decoration: none;
}
.collection-card:hover {
  border-color: #adb5bd;
}
.collection-card:hover .collection-card-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.collection-card-text {
  display: grid;
  align-content: start;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.collection-card-host,
.collection-card-title,
.collection-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.collection-card-host {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--semble-muted);
  font-size: 12px;
  line-height: 1.5;
}
.collection-card-title {
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.collection-card-description {
  -webkit-line-clamp: 2;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--semble-muted);
  font-size: 13px;
  line-height: 1.4;
}
.collection-card-thumb {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--semble-line);
  border-radius: 8px;
  background: var(--semble-pill);
  color: var(--semble-muted);
  font-size: 18px;
  font-weight: 600;
  overflow: hidden;
}
.collection-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-status {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--semble-muted);
  font-size: 14px;
  line-height: 1.5;
}
.collection-open {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-left: auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  /* Semble's own primary, --mantine-primary-color-filled, with the white label
     Semble puts on it. That pairing is 2.98:1, under AA for this label size;
     kept deliberately to match Semble. */
  background: #ff6400;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.collection-open:hover {
  background: #eb5c00;
}
.feed-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin: 0 0 20px;
}
.feed-heading button {
  flex: none;
}
.feed-preview iframe {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: auto;
  border: 0;
  background: #fff;
}
.participants,
.collection {
  padding: 30px;
}
.collection .section-heading {
  margin: 0 0 8px;
}
.collection-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font: var(--type-body-small);
}
.participants-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 0 20px;
}
/* iosp.science-style boxed arrow: pages the list in place */
.pager-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: #fff;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.pager-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.pager-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.participant-status {
  margin: 18px 0 10px;
  color: var(--muted);
  font: var(--type-body-small);
}
.participant-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
}
.participant {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
}
.participant:hover .participant-name {
  color: var(--accent);
  text-decoration: underline;
}
.participant-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  background: var(--rule);
  color: var(--accent);
  font: var(--type-body-small);
  font-weight: 600;
  overflow: hidden;
}
.participant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.participant-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.participant-name,
.participant-handle {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.participant-name {
  font: var(--type-body-small);
  font-weight: 600;
}
.participant-handle {
  color: var(--muted);
  font: var(--type-metadata);
  letter-spacing: var(--track-metadata);
}
.app-picker {
  width: min(100% - 28px, 620px);
  max-height: min(80vh, 720px);
  max-height: min(80dvh, 720px);
  padding: 22px 26px;
  border: 1px solid var(--rule-strong);
  background: #f6f7f9;
  color: var(--ink);
  overflow-y: auto;
}
.app-picker::backdrop {
  background: #14161d9c;
}
.picker-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.picker-heading h2 {
  margin: 0;
  font: var(--type-heading-2);
  letter-spacing: var(--track-heading-2);
}
.picker-close {
  padding: 0 5px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.picker-note {
  margin: 12px 0 24px;
  color: var(--muted);
  font: var(--type-body-small);
}
.app-picker h3 {
  margin: 18px 0 9px;
  color: var(--meta);
  font: var(--type-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.app-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.app-options a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--rule-strong);
  padding: 11px 0;
  color: var(--ink);
  font: var(--type-body-small);
  text-decoration: none;
}
.app-options a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.app-options span {
  color: var(--meta);
  font: var(--type-metadata);
  letter-spacing: var(--track-metadata);
  white-space: nowrap;
}
.choice:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* Expand hit area around a text-sized label without moving anything on the page */
@media (pointer: coarse) {
  .back,
  .text-action,
  .panel-logout,
  .folio-link,
  .picker-close {
    position: relative;
  }
  .back::after,
  .text-action::after,
  .panel-logout::after,
  .folio-link::after {
    content: "";
    position: absolute;
    inset: -12px -8px;
  }
  .picker-close::after {
    content: "";
    position: absolute;
    inset: -9px -13px;
  }
  .station-tab {
    padding: 11px 12px;
  }
}
@media (max-width: 800px) {
  /* Seven stations never fit one phone row, and stacking them into three ragged
     rows reads as a list rather than tabs. Scroll the strip instead. */
  .station-tabs {
    flex-wrap: nowrap;
    padding-bottom: 1px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .station-tabs::-webkit-scrollbar {
    display: none;
  }
  .station-tab {
    scroll-snap-align: start;
  }
  .entry-layout,
  .form-layout,
  .joined-columns {
    grid-template-columns: 1fr;
  }
  .entry-layout {
    gap: 32px;
  }
  .form-layout {
    gap: 28px;
  }
  .participant-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel-split {
    grid-template-columns: 1fr;
  }
  .attend-panel,
  .account-panel {
    padding: 26px clamp(24px, 4vw, 48px) 28px;
  }
  .feed-preview iframe {
    flex: 0 0 500px;
    height: 500px;
  }
}
@media (max-width: 560px) {
  .page {
    width: min(100% - 32px, 1128px);
  }
  .entry-paper,
  .form-paper {
    padding: 22px 24px;
  }
  .joined-paper {
    padding: 0;
  }
  .sensor-reading-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 10px;
    padding: 8px 0;
  }
  .folio-meta {
    padding-bottom: 16px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .entry-layout {
    padding: 24px 0 26px;
    gap: 26px;
  }
  .entry-intro h1 {
    font-size: clamp(44px, 12vw, 54px);
  }
  .entry-lead {
    margin-top: 10px;
    font-size: 17px;
  }
  .entry-intro .action-intro {
    margin-top: 20px;
  }
  .action-intro {
    font-size: 14px;
    margin-bottom: 14px;
  }
  .choice {
    grid-template-columns: 26px minmax(0, 1fr) 20px;
    gap: 8px;
    padding: 16px 0;
  }
  .choice-title {
    font-size: 16px;
  }
  .choice-note {
    font-size: 13px;
  }
  .disclosure {
    padding-top: 16px;
  }
  .form-layout {
    padding: 26px 0 10px;
    gap: 24px;
  }
  /* iOS Safari zooms the whole page in when a focused field is under 16px. */
  input {
    font-size: 16px;
  }
  .joined-columns {
    gap: 28px;
  }
  .record-block {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .record-uri {
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: visible;
  }
  .record-action {
    flex: 1 1 100%;
    margin-left: 0;
  }
  .workshops,
  .feed-preview,
  .participants,
  .collection {
    padding: 24px;
  }
  .feed-preview {
    padding: 22px 0 0;
  }
  .feed-heading {
    padding: 0 24px;
  }
  .section-heading {
    font-size: 29px;
  }
  .participant-list,
  .app-options {
    grid-template-columns: 1fr;
  }
  .app-picker {
    padding: 20px;
  }
}
