/* ============================================================
   Arkfor OPC Showcase — chapter group B
   06 找到作品 / 08 一次主页托管 / 09 多种使用情境
   Shared tokens come from stage.css. Right angles only; no glow.
   ============================================================ */

/* ---------- shared chapter scaffolding ---------- */

.ch-06,
.ch-08,
.ch-09 {
  color: var(--ink);
}

.ch-06 .eyebrow,
.ch-08 .eyebrow,
.ch-09 .eyebrow {
  font-size: 14px;
}

.ch-06 button,
.ch-08 button,
.ch-09 button,
.ch-06 input,
.ch-09 input,
.ch-06 .dir-detail,
.ch-08 .host-preview,
.ch-08 .iso,
.ch-09 .ctx__frame,
.ch-09 .phone,
.ch-09 .browser {
  border-radius: 0;
}

.catalog,
.host,
.contexts {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.catalog__head,
.host__head,
.contexts__head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.catalog__intro,
.host__intro,
.contexts__intro {
  min-width: 0;
}

.catalog__intro { max-width: 980px; }
.host__intro { max-width: 980px; }
.contexts__intro { max-width: 960px; }

.catalog__title,
.host__title,
.contexts__title {
  margin-top: 12px;
  font-size: 52px;
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: .01em;
}

.catalog__lede,
.host__lede,
.contexts__lede {
  margin-top: 10px;
  font-size: 26px;
  line-height: 1.5;
  color: var(--ink-2);
}

.catalog__note,
.host__note {
  width: 470px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 2px;
  text-align: right;
}

.host__note { width: 500px; }
.host__chips { display: flex; align-items: center; gap: 8px; }

.catalog__note p,
.host__note p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.catalog__grid,
.host__grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  margin-top: 18px;
}

.catalog__grid {
  grid-template-columns: 250px minmax(0, 1fr) 540px;
  column-gap: 36px;
}

.catalog__foot,
.host__foot,
.contexts__foot {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 32px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.catalog__foot span,
.host__foot span,
.contexts__foot span {
  min-width: 0;
}

.ch-06 .chip,
.ch-08 .chip,
.ch-09 .chip {
  font-size: 14px;
}

.ch-06 .btn__meta,
.ch-08 .btn__meta,
.ch-09 .btn__meta {
  font-size: 14px;
  letter-spacing: .04em;
}

.ch-09 .ctx-theme-btn .seg__meta {
  font-size: 14px;
}

/* ---------- 06 catalog ---------- */

.ch-06 .catalog__head > *,
.ch-06 .catalog__grid > *,
.ch-06 .catalog__foot {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity var(--exit) var(--ease-in), transform var(--exit) var(--ease-in);
  transition-delay: 0ms;
}

.ch-06.is-active .catalog__head > *,
.ch-06.is-active .catalog__grid > *,
.ch-06.is-active .catalog__foot {
  opacity: 1;
  transform: none;
  transition-duration: 560ms;
  transition-timing-function: var(--ease-out);
}

.ch-06.is-active .catalog__head > *:nth-child(1) { transition-delay: 0ms; }
.ch-06.is-active .catalog__head > *:nth-child(2) { transition-delay: 40ms; }
.ch-06.is-active .catalog__grid > *:nth-child(1) { transition-delay: 80ms; }
.ch-06.is-active .catalog__grid > *:nth-child(2) { transition-delay: 130ms; }
.ch-06.is-active .catalog__grid > *:nth-child(3) { transition-delay: 180ms; }
.ch-06.is-active .catalog__foot { transition-delay: 210ms; }

.dir-filters {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.dir-filters__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.dir-k {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .1em;
  color: var(--muted);
}

.dir-filters__hint {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--faint);
}

.dir-filters__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.dir-filter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 14px 0 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.dir-filter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
}

.dir-filter:hover {
  background: rgba(238, 242, 240, .045);
  color: var(--ink);
}

.dir-filter:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.dir-filter[aria-pressed="true"] {
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--ink);
}

.dir-filter[aria-pressed="true"]::before { background: var(--teal); }

.dir-filter__label {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}

.dir-filter__meta {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .08em;
  color: var(--faint);
}

.dir-filter[aria-pressed="true"] .dir-filter__meta { color: var(--teal); }

.dir-search { margin-top: 18px; }

.dir-search__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .08em;
  color: var(--muted);
}

.dir-search__field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.dir-search__field:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.dir-search__field input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
}

.dir-search__field input::placeholder { color: var(--faint); }
.dir-search__field input:focus { outline: none; }

.dir-search__clear {
  flex: 0 0 auto;
  min-width: 44px;
  height: 48px;
  padding: 0 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.dir-search__clear:hover { color: var(--ink); background: rgba(238, 242, 240, .05); }
.dir-search__clear:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }

.dir-filters__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dir-count {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: .03em;
}

.dir-filters__foot p {
  margin-top: 8px;
  max-width: 210px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--faint);
}

.dir-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-top: 1px solid var(--line);
}

.dir-list__head {
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.dir-list__title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: .02em;
}

.dir-list__state {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .03em;
  color: var(--muted);
}

.dir-rows {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-auto-rows: 1fr;
}

.dir-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 46px;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 0;
  padding: 0 18px 0 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out);
}

.dir-row:last-child { border-bottom: 0; }

.dir-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
}

.dir-row:hover { background: rgba(238, 242, 240, .035); }
.dir-row:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; z-index: 1; }
.dir-row.is-selected { background: var(--panel-2); }
.dir-row.is-selected::before { background: var(--teal); }

.dir-row__num {
  padding-left: 18px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--faint);
  letter-spacing: .03em;
}

.dir-row.is-selected .dir-row__num { color: var(--teal); }

.dir-row__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dir-row__name {
  font-size: 30px;
  line-height: 1.22;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.dir-row__meta {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: .03em;
}

.dir-row__version {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
  white-space: nowrap;
}

.dir-row__state {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--faint);
  white-space: nowrap;
}

.dir-row.is-selected .dir-row__state { color: var(--teal); }

.dir-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.dir-empty__k {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .14em;
  color: var(--faint);
}

.dir-empty__title {
  margin-top: 12px;
  max-width: 600px;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 400;
}

.dir-empty__copy {
  margin-top: 10px;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.dir-empty .btn { margin-top: 20px; }

.dir-list__foot {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
  color: var(--faint);
}

.dir-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.dir-detail__content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 26px;
  overflow: hidden;
}

.dir-detail__head {
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.dir-detail__k {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .05em;
  color: var(--muted);
}

.dir-detail__plate {
  position: relative;
  flex: 0 0 128px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.dir-detail__num {
  position: absolute;
  left: -6px;
  top: -18px;
  font-family: var(--font-display);
  font-size: 128px;
  line-height: .9;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 242, 240, .13);
}

.dir-detail__type {
  position: relative;
  z-index: 1;
  padding-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .14em;
  color: var(--teal);
}

.dir-detail__name {
  margin-top: 18px;
  font-size: 42px;
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

.dir-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.dir-detail__meta b {
  color: var(--ink-2);
  font-weight: 500;
}

.dir-detail__rule {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.dir-detail__summary {
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink-2);
}

.dir-detail__note {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.dir-detail__empty {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0 26px 26px;
}

.dir-detail.is-empty .dir-detail__content { display: none; }
.dir-detail.is-empty .dir-detail__empty { display: flex; }

.dir-detail__empty-title {
  margin-top: 14px;
  font-size: 32px;
  line-height: 1.35;
  font-weight: 400;
}

.dir-detail__empty-copy {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.dir-detail__ticket {
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 26px;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .03em;
}

/* ---------- 08 hosting ---------- */

.ch-08 .host__head > *,
.ch-08 .host__grid > *,
.ch-08 .host__foot {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity var(--exit) var(--ease-in), transform var(--exit) var(--ease-in);
  transition-delay: 0ms;
}

.ch-08.is-active .host__head > *,
.ch-08.is-active .host__grid > *,
.ch-08.is-active .host__foot {
  opacity: 1;
  transform: none;
  transition-duration: 560ms;
  transition-timing-function: var(--ease-out);
}

.ch-08.is-active .host__head > *:nth-child(1) { transition-delay: 0ms; }
.ch-08.is-active .host__head > *:nth-child(2) { transition-delay: 40ms; }
.ch-08.is-active .host__grid > *:nth-child(1) { transition-delay: 80ms; }
.ch-08.is-active .host__grid > *:nth-child(2) { transition-delay: 130ms; }
.ch-08.is-active .host__grid > *:nth-child(3) { transition-delay: 180ms; }
.ch-08.is-active .host__foot { transition-delay: 210ms; }

.host__grid {
  grid-template-columns: 280px minmax(0, 1fr) 520px;
  column-gap: 36px;
}

.host-stack {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.host-stack__head {
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.host-stack__head h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}

.host-stack__head .mono {
  font-size: 14px;
  line-height: 1.4;
  color: var(--faint);
  letter-spacing: .04em;
}

.host-stack__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.host-ver {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 118px;
  padding: 0 14px 0 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.host-ver::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
}

.host-ver:hover { background: var(--panel-2); border-color: var(--line-strong); }
.host-ver:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; z-index: 1; }
.host-ver.is-selected { border-color: var(--line-strong); background: var(--panel-2); }
.host-ver.is-selected::before { background: var(--teal); }

.host-ver__id {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: .03em;
}

.host-ver__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.host-ver__state {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.host-ver__code {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .05em;
  color: var(--ink-2);
}

.host-ver__cn {
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
}

.host-ver__note {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.35;
  color: var(--faint);
  white-space: normal;
  overflow: hidden;
}

.host-ver__mark {
  justify-self: end;
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  color: var(--ink-2);
}

.host-ver[data-state="published"] .host-ver__mark {
  background: currentColor;
  color: var(--teal);
}

.host-ver[data-state="superseded"] .host-ver__mark {
  width: 10px;
  height: 1px;
  border: 0;
  background: currentColor;
  color: var(--faint);
}

.host-ver[data-state="ready"] .host-ver__code { color: var(--ink); }
.host-ver[data-state="published"] .host-ver__code { color: var(--teal); }
.host-ver[data-state="superseded"] .host-ver__code { color: var(--faint); }

.host-stack__summary {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

.host-stack__summary b {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--teal);
}

.host-reset {
  margin-top: 14px;
  align-self: flex-start;
}

.host-stack__empty {
  padding: 16px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.host-preview {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .38);
  overflow: hidden;
}

.host-preview__bar {
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #0a1015;
}

.host-preview__bar-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.host-preview__k {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
}

.host-preview__state {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--teal);
  white-space: nowrap;
}

.host-preview__host {
  margin-left: auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.host-preview__page {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #0b1216;
}

.host-preview__page [hidden] { display: none !important; }

.host-preview__foot {
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.host-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 16px;
}

.host-status {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.host-status__k {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .06em;
  color: var(--muted);
}

.host-status__live {
  display: flex;
  align-items: baseline;
  gap: 26px;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

.host-status__live b {
  margin-left: 6px;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--ink);
}

.host-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.host-actions .btn {
  width: 100%;
  justify-content: space-between;
}

.host-actions__note {
  min-height: 38px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.host-actions .btn[disabled] {
  opacity: .42;
  cursor: not-allowed;
}

.iso {
  margin-top: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.iso__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.iso__head .mono {
  font-size: 14px;
  line-height: 1.4;
  color: var(--faint);
  letter-spacing: .03em;
}

.iso__stack {
  display: flex;
  flex-direction: column;
}

.iso__zone {
  padding: 12px 16px;
}

.iso__zone--b { background: rgba(7, 11, 18, .32); }

.iso__tag {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.iso__host {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iso__desc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--faint);
}

.iso__wall {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 16px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: #0a1116;
}

.iso__wall-line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-strong);
}

.iso__wall-label {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .03em;
  color: var(--ink-2);
  white-space: nowrap;
}

.iso__note {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--faint);
}

/* sample home pages inside the hosting preview */

.home {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #0b1216;
  color: var(--ink);
}

.home__nav {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 26px;
  border-bottom: 1px solid rgba(214, 230, 226, .14);
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.home__brand {
  margin-right: auto;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .04em;
}

.home__brand span {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .05em;
}

.home__links { display: flex; align-items: center; gap: 18px; }

.home__main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 24px;
  padding: 22px 28px 8px;
}

.home__copy { min-width: 0; }

.home__kicker {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .1em;
  color: var(--teal);
}

.home__copy h4 {
  margin-top: 12px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: .01em;
}

.home--v3 .home__copy h4 { color: var(--ink); }

.home__copy p {
  margin-top: 12px;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.home__geo {
  width: 100%;
  height: auto;
  color: var(--teal);
  opacity: .8;
}

.home__geo path,
.home__geo line,
.home__geo circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.home__works {
  flex: 0 0 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(214, 230, 226, .14);
}

.home__works span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  border-right: 1px solid rgba(214, 230, 226, .14);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-2);
}

.home__works span:last-child { border-right: 0; }
.home__works b { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--teal); }

.home__foot {
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 26px;
  border-top: 1px solid rgba(214, 230, 226, .14);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--faint);
}

.home--v2 {
  background: var(--paper);
  color: var(--paper-ink);
}

.home--v2 .home__nav {
  border-bottom-color: rgba(20, 26, 27, .18);
  color: rgba(20, 26, 27, .62);
}

.home--v2 .home__brand { color: var(--paper-ink); }
.home--v2 .home__brand span { color: rgba(20, 26, 27, .55); }
.home--v2 .home__kicker { color: #087b69; }

.home--v2 .home__main--paper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.home--v2 .home__main--paper h4 {
  margin-top: 12px;
  font-size: 42px;
  line-height: 1.18;
  font-weight: 700;
  color: var(--paper-ink);
}

.home--v2 .home__main--paper p {
  margin-top: 10px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(20, 26, 27, .68);
}

.home__grid {
  flex: 0 0 112px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(20, 26, 27, .18);
  border-bottom: 1px solid rgba(20, 26, 27, .18);
}

.home__grid span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 24px;
  border-right: 1px solid rgba(20, 26, 27, .18);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--paper-ink);
}

.home__grid span:last-child { border-right: 0; }

.home__grid small {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: rgba(20, 26, 27, .6);
}

.home--v2 .home__foot {
  border-top: 0;
  color: rgba(20, 26, 27, .6);
}

.home--v1 {
  background: #080d11;
  color: var(--muted);
}

.home--v1 .home__nav {
  border-bottom-color: rgba(214, 230, 226, .1);
  color: var(--faint);
}

.home--v1 .home__brand { color: var(--ink-2); }
.home--v1 .home__brand span { color: var(--faint); }

.home__main--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 18px 28px;
  text-align: center;
}

.home--v1 .home__kicker { color: var(--faint); letter-spacing: .16em; }

.home--v1 .home__main--center h4 {
  margin-top: 14px;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--ink-2);
}

.home--v1 .home__main--center p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--faint);
}

.home__list {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 28px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--faint);
}

.home__list li { position: relative; }

.home__list li + li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: var(--line);
}

.home--v1 .home__foot {
  border-top-color: rgba(214, 230, 226, .1);
  color: var(--faint);
}

/* ---------- 09 contexts ---------- */

.ch-09 {
  --demo-bg: #0b1216;
  --demo-bg-2: #101b21;
  --demo-ink: #eef2f0;
  --demo-ink-2: #b9c6c3;
  --demo-muted: #7f8f90;
  --demo-line: rgba(214, 230, 226, .16);
  --demo-accent: #2ee9d2;
}

.ch-09[data-demo-theme="light"] {
  --demo-bg: #f2efe6;
  --demo-bg-2: #e7e1d4;
  --demo-ink: #141b1c;
  --demo-ink-2: #33403f;
  --demo-muted: #5c6867;
  --demo-line: rgba(20, 26, 27, .18);
  --demo-accent: #087b69;
}

.contexts__controls {
  width: 640px;
  display: grid;
  grid-template-columns: 208px 220px;
  justify-content: end;
  align-items: end;
  gap: 10px 28px;
}

.ctx-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ctx-control__k {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .06em;
  color: var(--muted);
}

.ctx-theme-btn {
  min-width: 104px;
  padding: 0 14px;
  font-size: 15px;
}

.ctx-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.ctx-switch:hover { background: rgba(238, 242, 240, .055); }
.ctx-switch:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.ctx-switch__track {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 22px;
  border: 1px solid var(--line-strong);
  background: rgba(238, 242, 240, .04);
}

.ctx-switch__knob {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: var(--ink-2);
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.ctx-switch[aria-checked="true"] .ctx-switch__track { border-color: rgba(46, 233, 210, .55); }
.ctx-switch[aria-checked="true"] .ctx-switch__knob { transform: translateX(20px); background: var(--teal); }

.ctx-switch__label {
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
}

.ctx-switch__state {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}

.ctx-switch[aria-checked="true"] .ctx-switch__state { color: var(--teal); }

.contexts__status {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--teal);
  letter-spacing: .02em;
}

.contexts__control-note {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--faint);
}

.contexts__grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 740px 470px minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
}

.ch-09 .contexts__head > *,
.ch-09 .contexts__grid > *,
.ch-09 .contexts__foot {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity var(--exit) var(--ease-in), transform var(--exit) var(--ease-in);
  transition-delay: 0ms;
}

.ch-09.is-active .contexts__head > *,
.ch-09.is-active .contexts__grid > *,
.ch-09.is-active .contexts__foot {
  opacity: 1;
  transform: none;
  transition-duration: 560ms;
  transition-timing-function: var(--ease-out);
}

.ch-09.is-active .contexts__head > *:nth-child(1) { transition-delay: 0ms; }
.ch-09.is-active .contexts__head > *:nth-child(2) { transition-delay: 40ms; }
.ch-09.is-active .contexts__grid > *:nth-child(1) { transition-delay: 80ms; }
.ch-09.is-active .contexts__grid > *:nth-child(2) { transition-delay: 130ms; }
.ch-09.is-active .contexts__grid > *:nth-child(3) { transition-delay: 180ms; }
.ch-09.is-active .contexts__foot { transition-delay: 210ms; }

.ctx {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.ctx__head {
  flex: 0 0 46px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.ctx__headline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.ctx__num {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .05em;
  color: var(--teal);
}

.ctx__title {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
}

.ctx__note {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--faint);
  white-space: nowrap;
}

.ctx__frame {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  overflow: hidden;
}

.ctx__caption {
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  padding-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.browser {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--demo-bg);
  color: var(--demo-ink);
}

.browser__bar {
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-bottom: 1px solid var(--demo-line);
  background: var(--demo-bg-2);
  font-size: 14px;
  line-height: 1.4;
  color: var(--demo-muted);
}

.browser__host { color: var(--demo-ink-2); }

.browser__signal {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.browser__signal-track {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 1px;
  background: var(--demo-line);
}

.browser__signal-dot {
  position: absolute;
  left: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  background: var(--demo-accent);
  animation: ctx-signal 8s linear infinite;
}

.browser__signal-label {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--demo-muted);
  white-space: nowrap;
}

@keyframes ctx-signal {
  0% { transform: translateX(0); }
  50% { transform: translateX(67px); }
  100% { transform: translateX(0); }
}

.ch-09[data-demo-motion="reduced"] .browser__signal-dot,
.ch-09:not(.is-active) .browser__signal-dot {
  animation-play-state: paused;
}

.page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  background: var(--demo-bg);
  color: var(--demo-ink);
  overflow: hidden;
}

.page__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--demo-muted);
}

.page__brand {
  margin-right: auto;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--demo-ink);
  letter-spacing: .04em;
  white-space: nowrap;
}

.page__brand span {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--demo-muted);
  letter-spacing: .05em;
}

.page__links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.page__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.page__kicker {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .08em;
  color: var(--demo-accent);
}

.page__hero h4 {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.24;
  font-weight: 500;
  letter-spacing: .01em;
}

.page__hero p {
  margin-top: 10px;
  max-width: 430px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--demo-ink-2);
}

.page__geo {
  width: 100%;
  height: auto;
  color: var(--demo-accent);
  opacity: .8;
}

.page__geo path,
.page__geo line,
.page__geo circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.page__rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: auto;
  border-top: 1px solid var(--demo-line);
}

.page__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px 10px 0;
  border-right: 1px solid var(--demo-line);
}

.page__row:last-child { border-right: 0; }

.page__row b {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--demo-ink);
  overflow-wrap: anywhere;
}

.page__row small {
  font-size: 14px;
  line-height: 1.4;
  color: var(--demo-muted);
}

.page__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--demo-line);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--demo-muted);
}

.ctx__frame--mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #0a1116;
}

.phone {
  width: 300px;
  height: 100%;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: var(--demo-bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  overflow: hidden;
}

.phone__bar {
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border-bottom: 1px solid var(--demo-line);
  background: var(--demo-bg-2);
  font-size: 14px;
  line-height: 1.4;
  color: var(--demo-muted);
}

.page--mobile {
  padding: 14px 14px 12px;
}

.page__nav--mobile {
  gap: 12px;
}

.page__nav--mobile .page__brand { font-size: 18px; }
.page__menu { color: var(--demo-muted); }

.page__hero--mobile {
  display: block;
  margin-top: 18px;
}

.page__hero--mobile .page__kicker { font-size: 14px; }

.page__hero--mobile h4 {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.26;
}

.page__hero--mobile p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.page__rows--mobile {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
}

.page__rows--mobile .page__row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-right: 0;
  border-top: 1px solid var(--demo-line);
}

.page__rows--mobile .page__row b { font-size: 14px; }
.page__rows--mobile .page__row small { font-size: 14px; }

.page--mobile .page__foot {
  margin-top: 10px;
  padding-top: 8px;
  font-size: 14px;
}

.ctx__frame--reduced {
  background: var(--panel);
}

.reduced {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: #0a1116;
  overflow: hidden;
}

.reduced__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.reduced__badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
  white-space: nowrap;
}

.reduced__badge.is-on {
  border-color: rgba(46, 233, 210, .5);
  color: var(--teal);
}

.reduced__snap {
  position: relative;
  flex: 1 1 auto;
  min-height: 150px;
  margin-top: 14px;
  border: 1px solid var(--demo-line);
  background: var(--demo-bg);
  overflow: hidden;
}

.reduced__snapnav {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 11px;
  height: 1px;
  background: var(--demo-line);
}

.reduced__snaptitle {
  position: absolute;
  left: 12px;
  top: 34px;
  width: 62%;
  height: 12px;
  background: var(--demo-ink);
  opacity: .8;
}

.reduced__snapcopy {
  position: absolute;
  left: 12px;
  top: 60px;
  width: 82%;
  height: 1px;
  background: var(--demo-line);
  box-shadow: 0 8px 0 var(--demo-line), 0 16px 0 var(--demo-line);
}

.reduced__snapdot {
  position: absolute;
  left: 70%;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--demo-accent);
}

.reduced__list {
  flex: 0 0 auto;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.reduced__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.reduced__list li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reduced__list b {
  max-width: 58%;
  font-weight: 500;
  color: var(--ink-2);
  text-align: right;
  overflow-wrap: anywhere;
}

.reduced__muted {
  color: var(--faint) !important;
  font-weight: 400;
}

.reduced__note {
  flex: 0 0 auto;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--faint);
}

/* ---------- reduced motion / touch guards ---------- */

html[data-motion="reduced"] .ch-06 *,
html[data-motion="reduced"] .ch-08 *,
html[data-motion="reduced"] .ch-09 * {
  transition-duration: 1ms !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .ch-06 *,
  .ch-08 *,
  .ch-09 * {
    transition-duration: 1ms !important;
    animation: none !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .dir-filter:hover,
  .dir-row:hover,
  .host-ver:hover,
  .ctx-switch:hover,
  .dir-search__clear:hover {
    background: transparent;
    border-color: inherit;
    color: inherit;
  }
  .dir-row.is-selected:hover { background: var(--panel-2); }
  .host-ver.is-selected:hover { background: var(--panel-2); border-color: var(--line-strong); }
  .dir-filter[aria-pressed="true"]:hover { background: var(--panel-2); }
}

