:root {
  color-scheme: light;
  font-family: var(--hf-font);
  font-size: var(--hf-type-body);
  line-height: var(--hf-leading);
  color: var(--hf-ink);
  background: var(--hf-paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
:where(input, textarea, button, select) {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--hf-selection);
}
:where(a) {
  position: relative;
  color: var(--hf-ink);
  text-decoration-color: var(--hf-accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: var(--hf-space-1);
}
a:hover {
  color: var(--hf-accent-ink);
}
:where(button, .button) {
  min-height: var(--hf-target);
  padding: var(--hf-space-4) var(--hf-space-7);
  border: 1px solid var(--hf-ink);
  border-radius: var(--hf-radius);
  background: var(--hf-paper);
  color: var(--hf-ink);
  font-family: var(--hf-font);
  font-size: var(--hf-type-control);
  cursor: pointer;
}
:where(button:disabled) {
  opacity: 0.6;
  cursor: default;
}
:where(.secondary) {
  background: var(--hf-paper);
  color: var(--hf-ink);
  font-weight: 600;
}
:where(.secondary:hover) {
  background: var(--hf-paper-soft);
}
:focus-visible {
  outline: 2px solid var(--hf-accent-ink);
  outline-offset: 3px;
}
.hf-field {
  min-width: 0;
  min-height: var(--hf-target);
  width: 100%;
  padding: var(--hf-space-4) var(--hf-space-5);
  border: 1px solid var(--hf-ink);
  border-radius: var(--hf-radius);
  background: var(--hf-paper);
  color: var(--hf-ink);
  font-family: var(--hf-font);
  font-size: var(--hf-type-body);
  font-weight: 600;
}
textarea.hf-field {
  resize: vertical;
  line-height: var(--hf-leading);
  font-weight: 400;
}
.hf-field[type="file"]::file-selector-button {
  border: 0;
  border-radius: var(--hf-radius);
  padding: var(--hf-space-3) var(--hf-space-5);
  margin-right: var(--hf-space-5);
  background: var(--hf-paper-soft);
  color: var(--hf-ink);
  font: inherit;
  cursor: pointer;
}
.hf-label {
  display: flex;
  flex-direction: column;
  gap: var(--hf-space-2);
  color: var(--hf-muted);
  font-size: var(--hf-type-small);
}
.hf-panel {
  background: var(--hf-paper);
  border: 1px solid var(--hf-ink);
  border-radius: var(--hf-radius);
  padding: var(--hf-panel-padding, var(--hf-space-6));
}
.hf-popover {
  --hf-panel-padding: var(--hf-space-5);
  box-shadow: var(--hf-shadow-menu);
}
.hf-sheet-title {
  margin: 0;
  font-size: var(--hf-sheet-title-size, var(--hf-type-sheet-title));
  font-weight: 600;
  font-stretch: 75%;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hf-page {
  max-width: 900px;
  margin: calc(var(--hf-header-height) + var(--hf-space-8)) auto
    var(--hf-space-10);
  padding: var(--hf-space-6);
}
.hf-page-title {
  margin: 0 0 var(--hf-space-6);
  font-size: var(--hf-type-page-title);
  font-stretch: 75%;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.hf-status {
  font-size: var(--hf-type-caption);
  color: var(--hf-muted);
  line-height: var(--hf-leading);
}
.hf-text-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--hf-target);
  padding: 0;
  border: 0;
  background: none;
  color: var(--hf-text-color, var(--hf-ink));
  font-family: var(--hf-font);
  font-size: var(--hf-text-size, var(--hf-type-caption));
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.journey-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--hf-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--hf-space-4);
  gap: var(--hf-space-1);
  background: var(--hf-paper);
  border-bottom: 1px solid var(--hf-ink);
}
.journey-header a,
.journey-header [aria-current="page"] {
  display: inline-flex;
  align-items: center;
  min-height: var(--hf-target);
}
.journey-header .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.brand > span {
  display: block;
  margin-top: var(--hf-space-1);
  font-size: var(--hf-type-small);
  font-weight: 400;
  letter-spacing: 0;
}
.hf-footer {
  border-top: 1px solid var(--hf-line);
  max-width: 1080px;
  margin: auto;
  padding: var(--hf-space-8) var(--hf-space-6);
  color: var(--hf-muted);
  font-size: var(--hf-type-caption);
}
/* The HTML hidden state wins over layout, including inline styles. */
[hidden] {
  display: none !important;
}
/* Shared next-step component for native buttons and links on the Journey. */
.next-step.next-step {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hf-space-3);
  min-height: var(--hf-target);
  min-width: var(--hf-target);
  padding: var(--hf-space-4) var(--hf-space-7);
  border: 0;
  border-radius: var(--hf-radius);
  background: var(--hf-ink);
  color: var(--hf-paper);
  font-family: var(--hf-font);
  font-size: var(--hf-type-control);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.next-step.next-step:hover {
  background: var(--hf-hover);
  color: var(--hf-paper);
}
.next-step.next-step:disabled {
  background: var(--hf-disabled);
  cursor: default;
}
.next-step.next-step:focus-visible {
  outline: 2px solid var(--hf-accent-ink);
  outline-offset: 3px;
}

/* The same scroll area and pinned action strip on story and editor sheets. */
.journey-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: var(--hf-space-6);
}
.journey-scroll > * {
  flex-shrink: 0;
}
.journey-actions {
  flex-shrink: 0;
  padding: var(--hf-space-4) var(--hf-space-6)
    max(var(--hf-space-4), env(safe-area-inset-bottom));
  border-top: 1px solid var(--hf-ink);
  background: var(--hf-paper);
}

.journey-header .journey-header-actions {
  display: flex;
  align-items: center;
  gap: var(--hf-space-1);
  min-width: 0;
  overflow: visible;
}
.journey-header-actions > *,
.journey-header > :first-child {
  flex-shrink: 0;
}
.journey-header-actions [aria-current="page"],
.journey-header-actions a,
.journey-header-actions button {
  font-size: var(--hf-type-small);
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  min-height: var(--hf-target);
}
.journey-header-actions button {
  min-width: var(--hf-target);
  padding: 0 2px;
}
.journey-header-actions .share-actions {
  gap: 0;
}

.brand {
  font-stretch: 75%;
}
a.brand {
  font-size: var(--hf-type-brand);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}

/* Shared Light module. Visible geometry is identical at every viewport. */
.light-control {
  position: relative;
  height: 64px;
  min-height: 64px;
  width: 100%;
  touch-action: none;
  cursor: ew-resize;
}
.light-control input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  font-size: var(--hf-type-body);
}
.light-control:focus-within {
  outline: 2px solid var(--hf-accent-ink);
  outline-offset: 2px;
}
.light-face {
  position: absolute;
  inset: 0 12px;
  pointer-events: none;
}
.light-track {
  position: absolute;
  top: 23px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--hf-light-night),
    var(--hf-light-dawn) 20%,
    var(--hf-light-day) 50%,
    var(--hf-light-dusk) 80%,
    var(--hf-light-night)
  );
}
.light-orb {
  position: absolute;
  left: var(--light-position);
  top: 8px;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hf-ink);
  background: var(--hf-paper);
  border-radius: var(--hf-radius-round);
  color: var(--hf-accent-ink);
  font: 22px/1 var(--hf-font-symbol);
}
.light-labels {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  display: flex;
  justify-content: space-between;
  color: var(--hf-muted);
  font-size: var(--hf-type-tiny);
  font-variant-numeric: tabular-nums;
}
.journey-back {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  min-width: var(--hf-target);
  min-height: var(--hf-target);
  padding: 0;
  border: 0;
  background: var(--hf-paper);
  color: var(--hf-ink);
  cursor: pointer;
  font: 22px/1 var(--hf-font-symbol);
  text-decoration: none;
}
.journey-back:focus-visible {
  outline: 2px solid var(--hf-accent-ink);
  outline-offset: 2px;
}
.light-labels > span {
  position: absolute;
  transform: translateX(-50%);
}
.light-labels > span:first-child {
  transform: none;
}
.light-labels > span:last-child {
  transform: translateX(-100%);
}

.hf-sheet {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--hf-paper);
}
.hf-field-line {
  padding: var(--hf-space-4) 0 var(--hf-space-3);
  border: 0;
  border-bottom: 1.5px solid var(--hf-ink);
  background: none;
  font-size: 20px;
  font-weight: 600;
}
select.hf-field {
  appearance: none;
  padding-right: 30px;
  background: var(--hf-paper) var(--hf-select-chevron) no-repeat right
    var(--hf-space-4) center;
}
.hf-text-action:hover {
  background: none;
  color: var(--hf-accent-ink);
}

.hf-opening {
  position: fixed;
  inset: var(--hf-header-height) 0 0;
  padding: var(--hf-space-9);
  background: var(--hf-paper);
  z-index: 30;
}

.hf-status-accent {
  color: var(--hf-accent-ink);
  font-weight: 600;
}

html:has(.hf-page) {
  scroll-padding-top: var(--hf-header-height);
}

.hf-field-mono {
  font-family: var(--hf-font-mono);
}

.hf-field::placeholder {
  color: var(--hf-guide);
  opacity: 1;
  font-weight: 400;
}
.hf-field-line::placeholder {
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 var(--hf-space-5);
  font-size: var(--hf-type-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--hf-subtle);
}

.journey-header-links {
  display: flex;
  gap: var(--hf-space-6);
}
.journey-header-menu {
  display: none;
  position: relative;
}
.journey-header-menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: var(--hf-target);
  height: var(--hf-target);
  cursor: pointer;
  font-weight: 600;
}
.journey-header-menu summary::-webkit-details-marker {
  display: none;
}
.journey-header-menu nav {
  position: absolute;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 170px;
  padding: var(--hf-space-3);
  border: 1px solid var(--hf-ink);
  background: var(--hf-paper);
  box-shadow: var(--hf-shadow-menu);
}
.journey-header-menu nav a,
.journey-header-menu nav [aria-current="page"] {
  padding-inline: var(--hf-space-3);
}
@media (max-width: 899px), (pointer: coarse), (hover: none) {
  .journey-header-links {
    display: none;
  }
  .journey-header-menu {
    display: block;
  }
}

.hf-panel-heading {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: var(--hf-space-5);
  height: 45px;
  min-height: 45px;
  padding: 0 var(--hf-space-5);
  border-bottom: 1px solid var(--hf-ink);
  background: var(--hf-paper);
  color: var(--hf-ink);
  font-size: var(--hf-type-caption);
  font-weight: 600;
  touch-action: pan-x;
  user-select: none;
}
.hf-panel-heading > button {
  min-height: var(--hf-target);
}
.hf-panel-heading strong {
  font-size: inherit;
  font-weight: inherit;
}

.hf-panel-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 0;
}
@media (max-width: 899px), (pointer: coarse), (hover: none) {
  .hf-panel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.hf-popover > .hf-panel-heading {
  margin: calc(-1 * var(--hf-panel-padding, var(--hf-space-5)))
    calc(-1 * var(--hf-panel-padding, var(--hf-space-5))) 0;
}

[data-panel-trigger] {
  touch-action: pan-x;
}

.journey-header [aria-current="page"] {
  color: var(--hf-muted);
}

.journey-header .journey-header-start {
  display: none;
  font-size: var(--hf-type-small);
  font-weight: 600;
}
@media (max-width: 899px), (pointer: coarse), (hover: none) {
  .journey-header .journey-header-start {
    display: inline-flex;
  }
  .journey-header-menu .page-start {
    display: none;
  }
}
