:root {
  --paper: #0a0a0a;
  --text: #f0ede8;
  /* The site's --text-dim. The app's own dim grey was two steps darker, which
     made every mono label harder to read than the same label on the site. */
  --muted: #afafaf;
  /* Placeholders sat at #3f3f3f on a #0f0f0f field: about 1.9:1, unreadable.
     Measured 4.6:1 on that field, so it clears AA while still reading as a
     prompt rather than as an answer already given. */
  --placeholder: #837c74;
  --red: #c41e1e;
  /* The site's gold, used only for the stranger-preview bar so it cannot be
     mistaken for the page itself. */
  --gold: #d4af37;
  --warn: #d4af37;
  --warn-text: #e6d9b0;
  --warn-bg: #181308;
  --success: #6b9e78;
  --success-dark: #3d6b49;
  --success-bg: #0c160f;
  --surface: #1a1a1a;
  --red-bright: #e02020;
  --red-dark: #8a1515;
  --border-dim: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.14);
  /* The resting underline under a text link. Bright enough to be seen without
     hovering, quiet enough not to fight the copy. */
  --link-rule: rgba(255, 255, 255, 0.28);
  --font-headline: 'Special Gothic', 'Arial Black', sans-serif;
  --font-body: 'Crimson Pro', Georgia, serif;
  --font-mono: 'Space Mono', monospace;

  /* The comps were drawn at one phone width. These are the same layout at a
     size that does not strand a desktop reader in a 390px gutter. --measure
     is the single reading and form column; --frame matches the 1200px
     container the main site uses. */
  --measure: 544px;
  --frame: 1200px;
}

@media (min-width: 900px) {
  :root {
    --measure: 672px;
  }
}

/* The site's selection colour. Without this the app fell back to the browser's
   blue, which was the one non-brand colour on the page. */
::selection {
  background: rgba(196, 30, 30, 0.3);
  color: var(--text);
}

::-moz-selection {
  background: rgba(196, 30, 30, 0.3);
  color: var(--text);
}

/* LAYOUT */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h, 70px) + 20px);
}

.page-content {
  flex: 1;
  padding: 40px 20px;
  max-width: var(--measure);
  margin: 0 auto;
  width: 100%;
}

/* BUTTONS */
.button {
  display: block;
  width: 100%;
  padding: 19px 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  min-height: 44px;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-weight: 700;
}

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

.button-primary {
  background: var(--red);
  color: var(--text);
}

.button-primary:hover:not(:disabled) {
  background: var(--red-dark);
}

.button-primary:active:not(:disabled) {
  background: var(--red-dark);
}

.button-primary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}

.button-secondary:hover:not(:disabled) {
  background: var(--surface);
}

.button-secondary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.button-unavailable {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  color: var(--muted);
  cursor: not-allowed;
}

.button-quiet {
  background: transparent;
  color: var(--muted);
  border: none;
  font-size: 0.72rem;
  padding: 14px 0;
  font-weight: 400;
}

.button-quiet:hover {
  color: var(--text);
}

/* INPUTS */
.field {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 9px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.field-input,
.field-select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 14px 13px;
  background: #0f0f0f;
  border: 1px solid var(--border-bright);
  color: var(--text);
  /* Was 0.8rem. What a member types should not be smaller than what they read,
     and anything under 16px makes iOS Safari zoom the page on focus. */
  font-size: 1rem;
  font-family: var(--font-body);
  line-height: 1.5;
}

/* Every field, not just the pledge form's: the caster's note and code inputs
   inherited the same unreadable grey. Firefox dims placeholders by default,
   hence the opacity. */
input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.field-input:focus,
.field-select:focus {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-color: var(--text);
}

.field-input:disabled {
  background: var(--surface);
  color: var(--muted);
}

.field-error {
  border-color: var(--red-bright) !important;
}

/* Guidance, not a complaint. This shared the error colour for a while, which
   made every ordinary explanation under a field read as something the member
   had done wrong. Red is reserved for what actually went wrong. */
.field-help {
  display: block;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 8px;
}

.field-help-error {
  display: block;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--red-bright);
  margin-top: 8px;
}

/* SELECT */
.field-select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M1 1l5 5 5-5" stroke-width="1.5"/></svg>');
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}

/* CHECKBOX */
.checkbox-wrapper {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.checkbox-input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
}

.checkbox-input:checked {
  background: var(--red);
  border-color: var(--red);
}

.checkbox-input:checked::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 10px;
  border: solid var(--text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.checkbox-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text);
  line-height: 1.5;
  font-family: var(--font-mono);
  text-transform: uppercase;
  cursor: pointer;
}

.checkbox-help {
  display: block;
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 6px;
}

.checkbox-help-error {
  display: block;
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--red-bright);
  margin-top: 6px;
}

/* RECORD ROW */
.record-row {
  border: 1px solid var(--border-bright);
  border-top: 2px solid var(--red);
}

.record-row-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.record-row-item:last-child {
  border-bottom: none;
}

.record-row-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.record-row-value {
  font-size: 0.72rem;
  color: var(--text);
  font-family: var(--font-mono);
}

.record-row-value-accent {
  color: var(--red);
}

.record-row-value-muted {
  color: var(--muted);
}

/* CALLOUT */
.callout {
  border: 1px solid var(--border-bright);
  border-top: 2px solid var(--red);
  padding: 20px 18px;
}

.callout-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.callout-text {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
  font-family: var(--font-body);
}

/* ERROR SUMMARY */
.error-summary {
  border-left: 3px solid var(--red-bright);
  background: #1a1010;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.error-summary-title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--red-bright);
  margin-bottom: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.error-summary-text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  font-family: var(--font-body);
}

/* EMPTY STATE */
.empty-state {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 18px;
  text-align: center;
  background: transparent;
}

.empty-state-text {
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--muted);
  font-family: var(--font-body);
}

/* PAGE HEADER */
.page-title {
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
}

.page-title-lg {
  font-size: 2.2rem;
}

.page-title-md {
  font-size: 2rem;
}

/* MEMBER PAGE */
.member-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

/* Descendant, not .member-mark-svg. The renderer emits a bare <svg> carrying a
   viewBox and no width, height or class, so the old class selector matched
   nothing and the mark stretched to fill the column: it was drawing at 632px.
   Every other holder of a rendered mark already selects this way. */
.member-mark svg,
.member-sigil-display svg {
  width: min(220px, 58vw);
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.member-likeness {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  background: repeating-linear-gradient(
    135deg,
    #1f1f1f 0 7px,
    #141414 7px 14px
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.member-likeness-md {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  background: repeating-linear-gradient(
    135deg,
    #1f1f1f 0 7px,
    #141414 7px 14px
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.member-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.member-header-full {
  text-align: center;
}

.member-name {
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 2.2rem;
  color: var(--text);
  line-height: 1.05;
}

.member-meta {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 18px;
}

.member-meta-center {
  margin-top: 18px;
}

.member-meta-small {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

.member-meta-item {
  text-align: center;
}

.member-meta-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 7px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.member-meta-id {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--red);
  font-family: var(--font-mono);
}

.member-meta-date {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-family: var(--font-mono);
}

.member-meta-value {
  font-size: 1.1rem;
  color: var(--text);
  font-family: var(--font-mono);
}

.member-meta-value-accent {
  font-size: 1.1rem;
  color: var(--red);
  font-family: var(--font-mono);
}

.member-page-uncast-container {
  /* The bottom was 0, so the name below sat against the box's border with
     nothing between them. */
  padding: 44px 20px 32px;
  text-align: center;
}

.member-page-likeness-only-container {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.member-page-cast-only-container {
  text-align: center;
  margin-bottom: 20px;
}

.member-page-uncast-center {
  text-align: center;
  margin-bottom: 20px;
}

/* Only an owner sees this bar, and only when they asked to see the stranger's
   version. It is the sole difference between the two renderings. */
.preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px max(20px, calc((100% - var(--frame)) / 2));
  background: #1c1508;
  border-bottom: 1px solid var(--gold);
}

.preview-bar-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #e6d9b0;
}

.preview-bar-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: #e6d9b0;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.preview-bar-link:hover,
.preview-bar-link:focus-visible {
  border-bottom-color: #e6d9b0;
}

/* Offered to the owner where no likeness is kept. A stranger is never told
   what is missing. */
.member-likeness-invite {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--border);
}

.likeness-placeholder {
  flex: none;
  width: 74px;
  height: 74px;
  border: 1px dashed var(--border-bright);
  background: #0f0f0f;
}

.member-likeness-invite-body {
  min-width: 0;
}

.member-likeness-invite-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.member-likeness-invite-action {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--red);
}

.member-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 20px;
}

/* Not .button: that is display block at full width, so two of them in a row
   wrapped onto separate lines and read as a stack of dead centred text. */
.member-owner-action {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.member-owner-action:hover,
.member-owner-action:focus-visible {
  color: var(--text);
  border-bottom-color: var(--red);
}

.member-meta-item {
  text-align: center;
}

.member-meta-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 7px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.member-meta-value {
  font-size: 1.1rem;
  color: var(--text);
  font-family: var(--font-mono);
}

.member-meta-value-accent {
  color: var(--red);
}

.member-legend {
  border: 1px solid var(--border-bright);
  border-top: 2px solid var(--red);
  padding: 22px 18px;
  margin-top: 30px;
}

.member-legend-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.member-legend-items {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 1.14rem;
  line-height: 1.4;
  color: var(--text);
}

.member-legend-note {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}

.member-section {
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
}

.member-section-label {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--red);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.member-section-text {
  font-family: var(--font-body);
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 8px;
}

.member-section-text-dim {
  color: var(--muted);
  margin-bottom: 20px;
}

/* NO MARK MESSAGE */
.no-mark {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 34px 20px;
  text-align: center;
}

/* An absence the member can act on carries the action. A stranger sees the same
   box with no action, because nothing is being asked of them. */
.no-mark-action {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  min-height: 44px;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.no-mark-action:hover,
.no-mark-action:focus-visible {
  background: var(--red-bright);
}

.no-mark-label {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.no-mark-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
}

/* FOOTER */
.page-footer {
  padding: 30px max(20px, calc((100% - var(--frame)) / 2));
  text-align: center;
}

/* Was a span, so READ THE CULT OF RUNNING looked like a link and did nothing.
   It is an anchor now and is styled to admit it. */
.page-footer-link {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-family: var(--font-mono);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.page-footer-link:hover,
.page-footer-link:focus-visible {
  color: var(--text);
  border-bottom-color: var(--red);
}

/* TYPO */
.text-muted {
  color: var(--muted);
}

.text-accent {
  color: var(--red);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .member-header {
    flex-direction: column;
    gap: 0;
  }

  .member-likeness {
    margin: 0 auto;
  }

  .page-title-lg,
  .page-title-md,
  .member-name {
    font-size: 1.75rem;
  }

  .member-meta {
    margin-top: 12px;
  }
}

/* ==========================================================================
   THE PLEDGE AND SIGN IN
   Comps 1a to 1d and 6a to 6d. Everything below is prefixed auth- so it
   cannot collide with additions made to this file elsewhere. The app sends a
   Content Security Policy without unsafe-inline, so a style attribute in a
   view would be dropped silently and none of this can move into the markup.
   ========================================================================== */

.auth-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  color: var(--red);
  margin-bottom: 16px;
}

.auth-title {
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--text);
  margin-bottom: 20px;
}

.auth-title-xl {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 22px;
}

.auth-title-sm {
  font-size: clamp(1.75rem, 4vw, 2.3rem);
  margin-bottom: 16px;
}

.auth-lede {
  font-family: var(--font-body);
  font-size: var(--body-font-size, clamp(1.15rem, 0.9rem + 1vw, 1.5rem));
  line-height: 1.65;
  color: #afafaf;
  margin-bottom: 14px;
}

.auth-lede-close {
  margin-bottom: 30px;
}

.auth-oath-take {
  margin-top: 14px;
}

.auth-section {
  padding-top: 40px;
}

.auth-section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--red);
  margin-bottom: 6px;
}

.auth-section-note {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.08rem);
  line-height: 1.55;
  color: #8a8a8a;
  margin-bottom: 26px;
}

.auth-field {
  margin-bottom: 22px;
}

.auth-field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.auth-field-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 9px;
}

.auth-field-counter-over {
  color: var(--red-bright);
}

.auth-field-note {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 8px;
}

.auth-check {
  padding: 16px;
  margin-bottom: 0;
}

.auth-check-filled {
  background: #141414;
}

.auth-check-error {
  border: 1px solid var(--red-bright);
}

.auth-check-note {
  display: block;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: #8a8a8a;
  margin-top: 7px;
}

.auth-check-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.auth-footnote {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: #8a8a8a;
  margin-top: 28px;
}

.auth-submit {
  margin-top: 24px;
}

.auth-submit-tight {
  margin-top: 20px;
}

.auth-record {
  margin-bottom: 24px;
}

.auth-button-gap {
  margin-top: 11px;
}

/* The sign-in offer on the way-in screen, set below the pledge and separated by
   a rule so the two are not read as one form. */
.auth-secondary {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border-dim);
}

/* Quieter than the pledge's lede, which is the sentence being led with. */
.auth-lede-sm {
  font-size: 1rem;
}

.auth-inline-link {
  color: var(--red);
}

.auth-inline-link:hover {
  color: var(--red-bright);
}

.auth-page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--measure);
  margin: 34px auto 0;
  padding: 30px 20px;
  border-top: 1px solid var(--border-dim);
}

.auth-page-footer-label,
.auth-page-footer-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.auth-page-footer-link {
  color: #afafaf;
}


/* ==========================================================================
   THE CASTER, /ledger/sigil. Comps 2a and 2b.
   Appended block: everything above is shared with the public member page.
   ========================================================================== */
.caster {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  display: block;
}

.caster [hidden] {
  display: none;
}

/* PINNED PREVIEW. The mark stays in view while the questions scroll under it,
   because a member who has to scroll to see the result stops changing things
   (design spec 4.5). */
.caster-preview {
  position: sticky;
  top: var(--header-h, 70px);
  z-index: 100;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: #0f0f0f;
  border-bottom: 1px solid var(--border-bright);
}

.caster-preview-glyph {
  /* Narrow screens keep this a compact sticky bar, so the mark stays a
     thumbnail here and grows once it has a column to itself. */
  width: clamp(68px, 16vw, 88px);
  height: clamp(68px, 16vw, 88px);
  flex: none;
  color: var(--text);
}

.caster-preview-glyph svg {
  display: block;
  width: 100%;
  height: 100%;
}

.caster-preview-meta {
  flex: 1;
  min-width: 0;
}

.caster-preview-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #b0b0b0;
  margin-bottom: 6px;
}

/* Shown until a code exists. The renderer needs every slot answered, so there
   is genuinely nothing to draw before that, and an empty frame read as broken. */
.caster-preview-waiting {
  display: flex;
  gap: 14px;
  align-items: center;
  /* Must yield, or it holds its content width and squeezes the label and count
     beside it to nothing and out of the bar. */
  flex: 0 1 auto;
  min-width: 0;
}

/* The compact bar has no room for a sentence: it is a thumbnail, a label and a
   count. .caster-pending in the column beside it already says how many answers
   are still needed, so nothing is lost. Restored with the wide layout, where the
   panel is tall enough to carry it. */
.caster-preview-waiting-text {
  display: none;
}

.caster-preview-placeholder {
  flex: none;
  width: 52px;
  height: auto;
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

img.caster-preview-placeholder {
  filter: invert(1);
  opacity: 0.45;
}

.caster-preview-waiting-text {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.08rem);
  line-height: 1.5;
  color: #b0b0b0;
  min-width: 0;
}

/* What replaced the code readout. The code is storage; the file is the thing a
   member can actually keep. */
.caster-preview-download {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: #afafaf;
  border-bottom: 1px solid transparent;
}

.caster-preview-download:hover,
.caster-preview-download:focus-visible {
  color: var(--text);
  border-bottom-color: var(--red);
}

.caster-preview-count {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}

.caster-main {
  padding: 0 0 34px 0;
}

.caster-cast-notice {
  border-left: 3px solid var(--red);
  background: #1a1010;
  padding: 16px 18px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
}

.caster-intro {
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: #afafaf;
  margin-bottom: 8px;
}

.caster-intro-dim {
  color: var(--muted);
}

.caster-slots {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

/* THREE CLASSES, STATED IN WORDS AS WELL AS IN INK. Cast carries a solid red
   rule, Touch a dashed one, Free no red at all, and each also names its
   condition in the badge, so nothing is encoded in colour alone. */
.caster-slot {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-bright);
  padding: 24px 20px;
}

.caster-slot-cast {
  border-top: 2px solid var(--red);
}

.caster-slot-touch {
  border-top: 2px dashed var(--red);
}

.caster-slot-free {
  background: #0f0f0f;
}

.caster-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.caster-slot-head {
  display: block;
  width: 100%;
  padding: 0;
}

.caster-slot-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 12px;
}

.caster-slot-free .caster-slot-badge {
  color: #c0c0c0;
}


.caster-slot-question {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 6px;
}

.caster-slot-anatomy {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 16px;
}

/* OPTIONS. The real control stays in the accessibility tree and keeps the
   keyboard; the face beside it is what gets painted. 48px minimum comfortable target. */
.caster-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 5-option slots (Enclosure & Axis): Balanced 3 + 2 Grid */
@media (min-width: 600px) {
  .caster-options--count-5,
  .caster-slot[data-slot="enclosure"] .caster-options,
  .caster-slot[data-slot="axis"] .caster-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }

  .caster-options--count-5 .caster-option,
  .caster-slot[data-slot="enclosure"] .caster-option,
  .caster-slot[data-slot="axis"] .caster-option {
    width: 100%;
  }

  .caster-options--count-5 .caster-option-face,
  .caster-slot[data-slot="enclosure"] .caster-option-face,
  .caster-slot[data-slot="axis"] .caster-option-face {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .caster-options--count-5 .caster-option:nth-child(-n+3),
  .caster-slot[data-slot="enclosure"] .caster-option:nth-child(-n+3),
  .caster-slot[data-slot="axis"] .caster-option:nth-child(-n+3) {
    grid-column: span 2;
  }

  .caster-options--count-5 .caster-option:nth-child(n+4),
  .caster-slot[data-slot="enclosure"] .caster-option:nth-child(n+4),
  .caster-slot[data-slot="axis"] .caster-option:nth-child(n+4) {
    grid-column: span 3;
  }
}

.caster-option {
  display: block;
  cursor: pointer;
}

.caster-option-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.caster-option-face {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #d8d8d8;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.caster-option:hover .caster-option-face {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--text);
}

.caster-option-input:focus-visible + .caster-option-face {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.caster-option-input:checked + .caster-option-face-cast {
  background: var(--red);
  border-color: var(--red);
  color: var(--text);
}

.caster-option-input:checked + .caster-option-face-touch {
  border-color: var(--red);
  color: var(--text);
}

.caster-option-input:checked + .caster-option-face-free {
  background: var(--text);
  border-color: var(--text);
  color: var(--paper);
}

.caster-option-box {
  width: 16px;
  height: 16px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.caster-option-input:checked + .caster-option-face-touch .caster-option-box {
  background: var(--red);
  border-color: var(--red);
}

.caster-slot[data-slot='crossbars'] .caster-option-face {
  min-width: 60px;
  justify-content: center;
  letter-spacing: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

/* THE REPLY. Hidden per request. */
.caster-slot-read {
  display: none !important;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.5;
  color: #cfcfcf;
}

.caster-slot-read-value {
  color: var(--red);
  font-weight: 600;
}

.caster-slot-cast .caster-slot-read,
.caster-slot-touch .caster-slot-read {
  color: var(--text);
}

/* THE PRIVATE NOTE. Hidden per request. */
.caster-note {
  display: none !important;
  margin-top: 16px;
}

.caster-note-summary {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #b0b0b0;
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.caster-note-summary::-webkit-details-marker {
  display: none;
}

.caster-note-summary::before {
  content: '+ ';
  margin-right: 6px;
}

.caster-note[open] .caster-note-summary::before {
  content: '\2212 ';
}

.caster-note-summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.caster-note-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: #d0d0d0;
  margin-bottom: 9px;
}

.caster-note-input {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--paper);
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.5;
  resize: vertical;
}

.caster-note-input:focus {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-color: var(--text);
}

.caster-note-help {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  color: #999999;
  margin-top: 8px;
}

/* THE HONESTY SURFACE. Hidden per request. */
.caster-readout {
  display: none !important;
  margin-top: 26px;
  border: 1px solid var(--border-bright);
  border-top: 2px solid var(--red);
  padding: 22px 18px;
}

.caster-readout-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 14px;
}

.caster-readout-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1.22rem;
  line-height: 1.45;
  color: var(--text);
}

.caster-readout-note {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.6;
  color: #a0a0a0;
}

.caster-pending {
  margin-top: 26px;
  background: #1a1010;
  border-left: 3px solid var(--red);
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.55;
  color: #f0f0f0;
}

.caster-actions {
  margin-top: 30px;
}

.caster-cast {
  width: 100%;
}

.ledger-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ledger-section {
  margin-top: 36px;
}

.ledger-section-lead {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 20px;
}

.ledger-note {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 14px;
}

.ledger-flash {
  border-left: 3px solid var(--red);
  background: #141414;
  padding: 14px 16px;
  margin-bottom: 24px;
}

.ledger-flash-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}

.ledger-quiet-link {
  display: block;
  min-height: 44px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #afafaf;
  text-transform: uppercase;
}

.ledger-quiet-link:hover {
  color: var(--text);
}

.ledger-quiet-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.ledger-quiet-link-center {
  text-align: center;
}

/* STANDING BLOCK */
.standing-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.standing-row-text {
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.55;
  color: #afafaf;
}

.standing-mark {
  width: 64px;
  height: 64px;
  flex: none;
}

.standing-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--text);
}

.standing-empty {
  width: 64px;
  height: 64px;
  flex: none;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--muted);
}

/* TASK LIST */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-card {
  border: 1px solid var(--border-bright);
  padding: 20px 18px;
}

.task-card-started {
  border-left: 3px solid var(--red);
}

.task-card-complete {
  border: 1px solid var(--border);
  background: #0f0f0f;
  padding: 18px;
}

.task-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.task-title {
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--text);
}

.task-title-complete {
  font-size: 1.2rem;
  color: var(--muted);
}

.task-estimate {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

.task-estimate-started {
  color: var(--red);
}

.task-purpose {
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.55;
  color: #afafaf;
  margin-bottom: 16px;
}

.task-complete-body {
  display: flex;
  gap: 14px;
  align-items: center;
}

.task-mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.task-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--muted);
}

.task-complete-text {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--muted);
}

.task-relink {
  color: #afafaf;
  text-decoration: underline;
}

.task-relink:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* PAGE ADDRESS */
.page-address {
  background: #0f0f0f;
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 14px 13px;
  /* The link beneath sat flush against this border. */
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

/* QUIET NAVIGATION AT THE FOOT OF THE HOME SCREEN */
.ledger-nav {
  margin-top: 36px;
  border-top: 1px solid var(--border-dim);
}

.ledger-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-dim);
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
}

.ledger-nav-row:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.ledger-nav-form:last-child .ledger-nav-row {
  border-bottom: none;
}

.ledger-nav-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #afafaf;
  text-transform: uppercase;
}

.ledger-nav-chevron {
  color: var(--muted);
  font-size: 1rem;
}

/* THE LIKENESS */
.likeness-form {
  margin-top: 8px;
}

.likeness-text {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.65;
  color: #afafaf;
  margin-bottom: 14px;
}

.likeness-note {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 14px;
}

/* Both controls in here undo work already done, so the whole thing folds away
   and neither gets a filled button. Matches .caster-note's disclosure. */
.likeness-manage {
  margin-top: 30px;
  border-top: 1px solid var(--border-dim);
}

.likeness-manage-summary {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.likeness-manage-summary::-webkit-details-marker {
  display: none;
}

.likeness-manage-summary:hover,
.likeness-manage[open] > .likeness-manage-summary {
  color: var(--text);
}

.likeness-manage-body {
  padding-bottom: 8px;
}

.likeness-manage-remove {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  margin-top: 12px;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  cursor: pointer;
}

.likeness-manage-remove:hover,
.likeness-manage-remove:focus-visible {
  color: var(--text);
  border-bottom-color: var(--red);
}

.likeness-note-center {
  text-align: center;
}

.likeness-mark {
  width: 150px;
  height: 150px;
  margin: 0 auto 26px;
}

.likeness-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--text);
}

.likeness-kept {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.likeness-kept-text {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 9px;
}

/* THE FILE CHOOSER. No cropping interface, per design spec section 8. */
.chooser {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 22px 18px;
  margin-bottom: 22px;
}

.chooser-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #afafaf;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.chooser-input {
  display: block;
  width: 100%;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
}

.chooser-input::file-selector-button {
  min-height: 44px;
  padding: 0 14px;
  margin-right: 12px;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.chooser-input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.chooser-hint {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 9px;
}

.chooser-native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.chooser-unselected {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.chooser-btn {
  min-height: 44px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.chooser-btn:hover,
.chooser-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text);
  outline: none;
}

.chooser-file-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.chooser-selected {
  display: flex;
  align-items: center;
}

.chooser-preview-tap {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  background: transparent;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.chooser-preview-tap:hover,
.chooser-preview-tap:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  outline: none;
}

.chooser-preview-frame {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 4px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.chooser-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

.chooser-preview-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.chooser-preview-hover span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
}

.chooser-preview-tap:hover .chooser-preview-hover,
.chooser-preview-tap:focus-visible .chooser-preview-hover {
  opacity: 1;
}

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

.chooser-filename {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  word-break: break-all;
}

.chooser-subtext {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 700;
}

/* DETAILS AND VISIBILITY */
/* The likeness block follows the SAVE button that closes the form above it,
   and with only a bottom margin its heading sat directly against that button.
   Adjacent blocks collapse to the larger of the two, so this does not double up
   between the blocks inside the form. */
.details-block {
  margin-top: 32px;
  margin-bottom: 24px;
}

.details-likeness {
  display: flex;
  gap: 14px;
  align-items: center;
}

.details-likeness-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ==========================================================================
   THE RUNNER'S PLEDGE, in the callout on /pledge. Each vow sits on its own
   line because it is read as an oath rather than as a paragraph.
   ========================================================================== */
.auth-oath-line {
  display: block;
  text-indent: -0.6em;
  padding-left: 0.6em;
}

.auth-oath-line + .auth-oath-line {
  margin-top: 0.5em;
}

.auth-oath-declaration {
  display: block;
  margin-top: 1em;
  font-family: var(--font-headline);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
}

/* ==========================================================================
   MOBILE MULTI-STEP SIGIL CASTER & NAMING STEP (Onboarding)
   ========================================================================== */
.onboarding-flow-container .caster {
  margin-top: 40px;
}

.caster-naming-pane {
  display: block;
}

.caster-naming-mobile-nav {
  display: none;
}

.caster-sigil-header-wrap {
  display: block;
  margin: 36px 0 36px 0;
}

.caster-sigil-header-wrap .cult-field-label {
  display: block;
  margin-bottom: 8px;
}

.caster-sigil-desc {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.08rem);
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

.caster-mobile-progress {
  display: block;
  width: 100%;
  margin: 0 0 20px 0;
}

.caster-mobile-progress-track {
  width: 100%;
  height: 3px;
  background: #222222;
  position: relative;
  overflow: hidden;
}

.caster-mobile-progress-fill {
  height: 100%;
  background: var(--red, #c41e1e);
  transition: width 0.3s ease;
}

.onboarding-flow-container .caster-preview {
  position: relative;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: #080808;
  border: 1px solid var(--border-bright, #262626);
  margin: 0 auto 20px auto;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}

.onboarding-flow-container .caster-preview-glyph {
  width: min(65vw, 220px);
  height: min(65vw, 220px);
  max-width: 220px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.onboarding-flow-container .caster-preview-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.caster-preview-waiting[hidden],
.onboarding-flow-container .caster-preview-waiting[hidden],
.caster-preview-glyph[hidden],
.onboarding-flow-container .caster-preview-glyph[hidden] {
  display: none !important;
}

.onboarding-flow-container .caster-preview-placeholder {
  width: min(45vw, 150px);
  height: auto;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.45);
}

.onboarding-flow-container .caster-preview-waiting-text {
  display: block;
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.08rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 260px;
  text-align: center;
  margin: 0 auto;
}

/* Mobile Slots Paging */
@media (max-width: 959px) {
  .onboarding-flow-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .onboarding-flow-container .caster {
    margin-top: 20px;
  }

  .onboarding-flow-container .caster[data-mobile-mode="name"] .caster-naming-mobile-nav {
    display: flex !important;
    position: fixed;
    bottom: var(--v-keyboard-offset, 0px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.85);
    padding: 8px 16px max(10px, env(safe-area-inset-bottom, 10px));
    margin-top: 0;
    gap: 0;
    box-sizing: border-box;
  }

  .caster-naming-mobile-nav .caster-mobile-nav-buttons {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 12px;
    width: 100%;
  }

  .onboarding-flow-container .caster[data-mobile-mode="name"] .caster-naming-pane {
    padding-bottom: 96px;
  }

  .onboarding-flow-container .caster-naming-sublinks {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 24px auto 16px auto;
    padding-bottom: 6px;
    text-align: center;
  }

  .caster-naming-mobile-nav .caster-mobile-nav-buttons button {
    height: 46px;
    min-height: 46px;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
  }

  .caster-naming-btn-next {
    background: var(--red) !important;
    border: 1px solid var(--red) !important;
    color: var(--text) !important;
    cursor: pointer !important;
    box-shadow: none !important;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .caster-naming-btn-next:hover,
  .caster-naming-btn-next:active {
    background: var(--red-dark) !important;
    border-color: var(--red-dark) !important;
    box-shadow: none !important;
  }

  .caster-naming-btn-back {
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
  }

  /* Mode A: Name on the Path Sub-step */
  .onboarding-flow-container .caster[data-mobile-mode="name"] .caster-naming-pane {
    display: block;
  }

  .onboarding-flow-container .caster[data-mobile-mode="name"] .caster-sigil-header-wrap {
    display: none !important;
  }

  .onboarding-flow-container .caster[data-mobile-mode="name"] .caster-preview {
    display: none !important;
  }

  .onboarding-flow-container .caster[data-mobile-mode="name"] .caster-mobile-progress {
    display: none !important;
  }

  .onboarding-flow-container .caster[data-mobile-mode="name"] .caster-slots {
    display: none !important;
  }

  .onboarding-flow-container .caster[data-mobile-mode="name"] .caster-mobile-nav {
    display: none !important;
  }

  .onboarding-flow-container .caster[data-mobile-mode="name"] .caster-readout {
    display: none !important;
  }

  .onboarding-flow-container .caster[data-mobile-mode="name"] .caster-sigil-sublinks {
    display: none !important;
  }

  /* Mode B: Sigil Casting Questions & Review */
  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .caster-naming-pane {
    display: none !important;
  }

  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .caster-sigil-header-wrap {
    display: none !important;
  }

  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .caster-preview {
    display: flex !important;
    padding: 16px 14px;
    margin: 0 auto 14px auto;
    background: #080808;
    border: 1px solid var(--border-bright, #262626);
    border-radius: 4px;
  }

  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .caster-preview-glyph {
    width: min(38vw, 140px);
    height: min(38vw, 140px);
    max-width: 140px;
    aspect-ratio: 1;
    margin: 0 auto;
  }

  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .caster-preview-placeholder {
    width: min(30vw, 100px);
    height: auto;
    margin: 0 auto;
  }

  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .caster-preview-waiting-text {
    font-size: clamp(0.9rem, 0.84rem + 0.25vw, 1.02rem);
    line-height: 1.4;
    color: var(--muted);
    max-width: 240px;
    margin: 6px auto 0 auto;
  }

  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .caster-mobile-progress {
    display: block !important;
    margin: 0 0 16px 0;
  }

  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .caster-slots {
    display: block !important;
  }

  .onboarding-flow-container .caster-slots[data-mobile-slot] .caster-slot {
    display: none;
    padding: 24px 20px;
    box-sizing: border-box;
  }

  .onboarding-flow-container .caster-slots[data-mobile-slot="0"] .caster-slot[data-slot-idx="0"],
  .onboarding-flow-container .caster-slots[data-mobile-slot="1"] .caster-slot[data-slot-idx="1"],
  .onboarding-flow-container .caster-slots[data-mobile-slot="2"] .caster-slot[data-slot-idx="2"],
  .onboarding-flow-container .caster-slots[data-mobile-slot="3"] .caster-slot[data-slot-idx="3"],
  .onboarding-flow-container .caster-slots[data-mobile-slot="4"] .caster-slot[data-slot-idx="4"],
  .onboarding-flow-container .caster-slots[data-mobile-slot="5"] .caster-slot[data-slot-idx="5"],
  .onboarding-flow-container .caster-slots[data-mobile-slot="6"] .caster-slot[data-slot-idx="6"] {
    display: block;
  }

  /* Hide readout on questions 0-6 on mobile and on review (slot 7) per request */
  .onboarding-flow-container .caster-slots[data-mobile-slot]:not([data-mobile-slot="7"]) ~ .caster-readout,
  .onboarding-flow-container .caster-slots[data-mobile-slot="7"] ~ .caster-readout {
    display: none !important;
  }

  .onboarding-flow-container .caster-desktop-actions {
    display: none !important;
  }

  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .caster-mobile-nav {
    position: fixed;
    bottom: var(--v-keyboard-offset, 0px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.85);
    padding: 8px 16px max(10px, env(safe-area-inset-bottom, 10px));
    margin-top: 0;
    gap: 0;
    box-sizing: border-box;
  }

  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .caster-mobile-nav-buttons button {
    height: 46px;
    min-height: 46px;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
  }

  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .caster-mobile-sublinks {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 28px auto 10px auto;
    padding-bottom: 6px;
    text-align: center;
  }

  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .caster-main {
    padding-bottom: 96px;
  }
}

.caster-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-bright, #222);
}

.caster-mobile-nav-buttons {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
}

.caster-mobile-nav-buttons button {
  width: 100%;
  min-height: 52px;
  height: 52px;
}

.caster-mobile-btn-next {
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.caster-mobile-btn-next:disabled {
  background: #2a2a2a !important;
  border: 1px solid #333333 !important;
  color: #666666 !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  box-shadow: none !important;
}

.caster-mobile-btn-next:not(:disabled) {
  background: var(--red) !important;
  border: 1px solid var(--red) !important;
  color: var(--text) !important;
  opacity: 1 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.caster-mobile-btn-next:not(:disabled):hover,
.caster-mobile-btn-next:not(:disabled):active {
  background: var(--red-dark) !important;
  border-color: var(--red-dark) !important;
  box-shadow: none !important;
}

.onboarding-flow-container .caster-pending {
  display: none !important;
}

.caster-mobile-sublinks {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
}

.caster-mobile-skip-link {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  margin: 0 auto;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.caster-mobile-skip-link:hover {
  color: #dddddd;
}

/* Mobile Options 2-column Grid */
.onboarding-flow-container .caster-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.onboarding-flow-container .caster-option {
  width: 100%;
}

.onboarding-flow-container .caster-option-face {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 0 10px;
  font-size: clamp(0.68rem, 2.7vw, 0.8rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-sizing: border-box;
}

/* On mobile 2-column grid, allow the 5th option to span full width so it is not an orphan */
.onboarding-flow-container .caster-options--count-5 .caster-option:nth-child(5),
.onboarding-flow-container .caster-slot[data-slot="enclosure"] .caster-option:nth-child(5),
.onboarding-flow-container .caster-slot[data-slot="axis"] .caster-option:nth-child(5) {
  grid-column: 1 / -1;
}

/* ==========================================================================
   WIDE SCREENS. The comps are one phone column, which is still the right
   shape for prose and for a form. Two screens have a fixed element and a long
   scrolling one, and only those two earn a second column: the caster's mark
   beside its questions, and a member's standing beside their tasks. Everything
   else keeps the single measure, because a 1200px line of Crimson Pro is
   roughly 150 characters and nobody reads that twice.
   ========================================================================== */
@media (min-width: 960px) {
  .onboarding-flow-container:has(#step-2-mark.active),
  .onboarding-flow-container.step-mark-active {
    max-width: 1040px;
  }

  .onboarding-flow-container .caster {
    max-width: 100%;
    width: 100%;
    margin: 40px 0 0;
    padding-top: 0;
  }

  .onboarding-flow-container .caster-slots {
    margin-top: 0;
  }

  .caster {
    max-width: var(--frame);
    display: grid;
    align-items: start;
    column-gap: 4rem;
  }

  /* Hidden inputs are display:none in every UA stylesheet, so they take no
     grid cell, but say it out loud rather than rely on it. */
  .caster > input[type='hidden'] {
    display: none;
  }

  .caster {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    /* Held by the grid rather than by .caster-main, so both columns begin on the
       same line. With it on the right column only, the preview started level
       with the header and sat 30px above the title it belongs beside. */
    padding-top: 30px;
  }

  .caster-main {
    padding-top: 0;
  }

  /* The mark is the point of this screen, so it holds still at eye level
     while the seven questions scroll beside it. Given a column of its own it
     stacks and fills it, rather than staying the thumbnail beside a caption
     that the narrow sticky bar has to be. */
  .caster-preview,
  .onboarding-flow-container .caster-preview {
    position: sticky;
    top: calc(var(--header-h, 70px) + 24px);
    margin: 0;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-bright);
    z-index: 10;
  }

  .caster-preview-glyph {
    width: 100%;
    max-width: 17rem;
    height: auto;
    aspect-ratio: 1;
  }

  /* Stacks with the mark's column, so the placeholder occupies the same square
     the mark will and the panel does not resize when the mark first appears. */
  .caster-preview-waiting {
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }

  .caster-preview-waiting-text {
    display: block;
  }

  .caster-preview-placeholder {
    width: 100%;
    max-width: 11rem;
    height: auto;
    aspect-ratio: 1;
  }

  .caster-preview-meta {
    width: 100%;
  }

  /* The right column is sized for the slot grids, which are wider than a line
     of text wants to be, so the prose inside it keeps its own measure. */
  .caster-intro,
  .caster-readout-note {
    max-width: var(--measure);
  }

  /* Desktop overrides for Onboarding Caster */
  .caster-naming-pane {
    display: block !important;
  }

  .caster-naming-mobile-nav {
    display: none !important;
  }

  .caster-sigil-header-wrap {
    display: block !important;
  }

  .onboarding-flow-container .caster[data-mobile-mode="name"] .caster-preview,
  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .caster-preview {
    display: flex !important;
  }

  .onboarding-flow-container .caster[data-mobile-mode="name"] .caster-slots,
  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .caster-slots {
    display: block !important;
  }

  .onboarding-flow-container .caster-slots[data-mobile-slot] .caster-slot {
    display: block !important;
    padding: 24px 20px;
  }

  .onboarding-flow-container .caster-slots[data-mobile-slot] ~ .caster-readout {
    display: none !important;
  }

  .onboarding-flow-container .caster-mobile-progress {
    display: none !important;
  }

  .onboarding-flow-container .caster-mobile-nav {
    display: none !important;
  }

  .onboarding-flow-container .caster-mobile-sublinks {
    display: none !important;
  }

  .onboarding-flow-container .caster-desktop-actions {
    display: flex !important;
  }

  .onboarding-flow-container .caster-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .onboarding-flow-container .caster-option {
    width: auto;
  }

  .onboarding-flow-container .caster-option-face {
    width: auto;
  }

  /* 5-option slots (Enclosure & Axis): Balanced 3 + 2 Grid eliminates single orphan button */
  .onboarding-flow-container .caster-options--count-5,
  .onboarding-flow-container .caster-slot[data-slot="enclosure"] .caster-options,
  .onboarding-flow-container .caster-slot[data-slot="axis"] .caster-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }

  .onboarding-flow-container .caster-options--count-5 .caster-option,
  .onboarding-flow-container .caster-slot[data-slot="enclosure"] .caster-option,
  .onboarding-flow-container .caster-slot[data-slot="axis"] .caster-option {
    width: 100%;
  }

  .onboarding-flow-container .caster-options--count-5 .caster-option-face,
  .onboarding-flow-container .caster-slot[data-slot="enclosure"] .caster-option-face,
  .onboarding-flow-container .caster-slot[data-slot="axis"] .caster-option-face {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .onboarding-flow-container .caster-options--count-5 .caster-option:nth-child(-n+3),
  .onboarding-flow-container .caster-slot[data-slot="enclosure"] .caster-option:nth-child(-n+3),
  .onboarding-flow-container .caster-slot[data-slot="axis"] .caster-option:nth-child(-n+3) {
    grid-column: span 2;
  }

  .onboarding-flow-container .caster-options--count-5 .caster-option:nth-child(n+4),
  .onboarding-flow-container .caster-slot[data-slot="enclosure"] .caster-option:nth-child(n+4),
  .onboarding-flow-container .caster-slot[data-slot="axis"] .caster-option:nth-child(n+4) {
    grid-column: span 3;
  }
}

/* ==========================================================================
   STANDING ACTIONS on member home. The mark and the likeness are the two
   things a member can add to their own record, so each empty slot carries the
   way to fill it (design spec 4.4.1) instead of stating the gap and leaving
   them to find the same prompt again further down the page.
   ========================================================================== */
.standing-row-body {
  flex: 1;
  min-width: 0;
}

.standing-row-action {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  margin-top: 0.7rem;
  padding: 0.7em 1.1em;
  border: 1px solid var(--red);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.standing-row-action:hover,
.standing-row-action:focus-visible {
  background: var(--red);
  color: var(--text);
}

.standing-row-estimate {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.standing-row-action:hover .standing-row-estimate,
.standing-row-action:focus-visible .standing-row-estimate {
  color: var(--text);
}

/* Present but never competing with an empty slot's call to action. */
.standing-row-quiet {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--border-bright);
}

.standing-row-quiet:hover,
.standing-row-quiet:focus-visible {
  color: var(--text);
}

/* With nothing asked there is no second column to fill, so the grid stands
   down rather than leaving half the frame empty. */
@media (min-width: 1100px) {
  .ledger-home-single {
    display: block;
    max-width: var(--measure);
  }
}

/* ==========================================================================
   LINKS THAT LOOK LIKE LINKS

   Nearly every text link here was mono, uppercase, grey, and underlined only
   on hover. So was every label: the eyebrows, the field labels, the record
   captions. At rest a link and a caption were the same object, and the only
   way to find out which was which was to move a mouse over it, which is no
   help at all on a phone.

   So the underline is now permanent and dim, brightening to red on hover. The
   labels never get one, and that single difference is what separates a thing
   you can press from a thing that is merely telling you something.
   ========================================================================== */

.ledger-quiet-link,
.member-owner-action,
.page-footer-link,
.auth-page-footer-link,
.no-mark-action {
  border-bottom: 1px solid var(--link-rule);
}

.ledger-quiet-link:hover,
.ledger-quiet-link:focus-visible,
.auth-page-footer-link:hover,
.auth-page-footer-link:focus-visible,
.no-mark-action:hover,
.no-mark-action:focus-visible {
  border-bottom-color: var(--red);
  color: var(--text);
}

/* The preview bar is gold so it cannot be mistaken for the page itself, and
   its link has to stay inside that palette rather than borrowing the red. */
.preview-bar-link {
  border-bottom-color: rgba(230, 217, 176, 0.4);
}

/* A leading arrow on anything that goes back. The direction is the point: it
   reads as a way out of where you are rather than another heading. Set here
   rather than in the markup so it stays decorative and is never selected or
   copied along with the words. */
.link-back::before {
  content: '\2190';
  margin-right: 8px;
  /* The arrow glyph carries no letter-spacing of its own, so without this it
     sits hard against the first letter of a tracked-out mono label. */
  letter-spacing: 0;
}

/* The mirror of the above, for a link that takes you somewhere new. */
.link-arrow::after {
  content: '\2192';
  margin-left: 8px;
  letter-spacing: 0;
}


/* ==========================================================================
   ONBOARDING MULTI-STEP FLOW & PARCHMENT SCROLL
   ========================================================================== */

.onboarding-root {
  min-height: 100vh;
  background: #0a0a0a;
  color: var(--text);
  font-family: var(--font-body);
}

.onboarding-flow-container {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) clamp(16px, 4vw, 32px) 120px;
  box-sizing: border-box;
  width: 100%;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}

/* Burned Full-Screen Vertically Centered State */
.onboarding-flow-container.burned-state {
  min-height: calc(100vh - var(--header-h, 70px));
  min-height: calc(100dvh - var(--header-h, 70px));
  margin-top: var(--header-h, 70px);
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.onboarding-flow-container.burned-state #step-0-pledge {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.scroll-wrapper.burned {
  width: 100%;
  max-width: 600px;
  min-height: calc(100vh - var(--header-h, 70px));
  min-height: calc(100dvh - var(--header-h, 70px));
  margin: 0 auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

/* Steps Navigation Bar */
.onboarding-steps-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 40px;
}

.step-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  min-width: 0;
}

.step-btn[data-step-idx="0"],
.step-btn.disabled {
  cursor: default !important;
  pointer-events: none !important;
}

.step-group {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.step-group--req {
  color: var(--red);
}

.step-line {
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}

.step-btn.active .step-line,
.step-btn.completed .step-line {
  background: var(--red);
}

.step-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--muted);
}

.step-num {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: block;
  line-height: 1.2;
}

.step-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  display: block;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .onboarding-steps-bar {
    gap: 4px;
    margin-bottom: 24px;
  }

  .step-group {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
  }

  .step-num {
    font-size: 0.66rem;
    letter-spacing: 0.04em;
  }

  .step-name {
    font-size: clamp(0.50rem, 1.9vw, 0.58rem);
    letter-spacing: 0;
  }
}

@media (max-width: 380px) {
  .onboarding-steps-bar {
    gap: 3px;
  }

  .step-group {
    font-size: 0.50rem;
    letter-spacing: 0.02em;
  }

  .step-num {
    font-size: 0.64rem;
    letter-spacing: 0.04em;
  }

  .step-name {
    font-size: 0.56rem;
    letter-spacing: 0;
  }
}

.step-btn.active .step-label {
  color: var(--text);
}

.step-btn.active .step-name {
  color: var(--text);
  font-weight: 700;
}

/* Step Intro Header */
.step-intro-header {
  transition: opacity 0.8s ease, max-height 1s ease;
}

.step-eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.step-title {
  margin: 0;
  max-width: min(676px, 100%);
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.02;
  font-size: clamp(34px, 5vw, 52px);
  color: var(--text);
  text-wrap: balance;
}

.step-paras {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: min(676px, 100%);
}

.step-paras p {
  margin: 0;
  font-size: var(--body-font-size, clamp(1.15rem, 0.9rem + 1vw, 1.5rem));
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

/* Parchment Scroll Layout */
.scroll-wrapper {
  position: relative;
  width: min(676px, 100%);
  align-self: center;
  margin-top: 28px;
  transition: margin 1s ease;
}

.scroll-rod {
  position: relative;
  z-index: 2;
  height: 24px;
  margin: 0 -14px;
  border-radius: 12px;
}

.scroll-rod--top {
  background: linear-gradient(180deg, #bdb6a8 0%, #f0ede8 45%, #a49d8f 100%);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.55);
}

.scroll-rod--bottom {
  background: linear-gradient(180deg, #a49d8f 0%, #f0ede8 55%, #bdb6a8 100%);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.25);
}

.parchment-content {
  position: relative;
  background: linear-gradient(180deg, #cfc3a8 0%, #ece3cf 6%, #f1e9d8 50%, #ebe1cb 94%, #cfc3a8 100%);
  color: #141414;
  padding: 48px clamp(16px, 4vw, 44px) 44px;
  overflow: hidden;
}

.paper-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.paper-texture--blot {
  background-size: 100% 100%;
  opacity: 0.24;
}

.paper-texture--mottle {
  background-size: 100% 100%;
  mix-blend-mode: multiply;
  opacity: 0.18;
}

.paper-texture--grain {
  background-size: 256px 256px;
  opacity: 0.26;
}

.paper-texture--vignette {
  background: linear-gradient(90deg, rgba(110, 78, 36, 0.22) 0%, rgba(110, 78, 36, 0) 5%, rgba(110, 78, 36, 0) 95%, rgba(110, 78, 36, 0.22) 100%),
              radial-gradient(120% 90% at 50% 45%, rgba(0, 0, 0, 0) 60%, rgba(96, 66, 30, 0.18) 100%);
}

.paper-texture--fiber {
  background-size: 300px 300px;
  mix-blend-mode: multiply;
  opacity: 0.16;
}


.parchment-ink {
  position: relative;
  color: #1d1813;
  mix-blend-mode: multiply;
}

.pledge-lines,
.pledge-declaration {
  filter: url(#cor-ink);
}

.pledge-heading {
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
}

.pledge-rule {
  margin: 14px auto 34px;
  width: 56px;
  height: 1px;
  background: var(--red);
}

.pledge-lines {
  width: 100%;
  max-width: min(100%, 41rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  text-align: left;
  font-family: var(--font-body);
}

.pledge-line {
  margin: 0;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  column-gap: 0.6rem;
  align-items: baseline;
  text-align: left;
  font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.28rem);
  line-height: 1.6;
  color: #1d1813;
  text-wrap: pretty;
  hyphens: manual;
}

.roman-num {
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: #9e1a16;
  text-align: right;
  margin-right: 0;
}

.pledge-text {
  display: block;
}

.pledge-diamond {
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9e1a16;
}

.diamond-line {
  width: 44px;
  height: 1px;
  background: #9e1a16;
  opacity: 0.6;
}

.diamond-shape {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: #9e1a16;
}

.parchment-ink .pledge-declaration,
.pledge-declaration {
  margin: 22px auto 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  text-align: center;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1d1813;
}

.scroll-parchment-inner {
  position: relative;
  padding: 0;
  -webkit-mask-image: none;
  mask-image: none;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  transition: opacity 0.8s ease;
}

.scroll-parchment-inner.burned {
  display: none !important;
  -webkit-mask-image: linear-gradient(transparent, transparent);
  mask-image: linear-gradient(transparent, transparent);
  opacity: 0;
  pointer-events: none;
}

.parchment-signature-wrap {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  position: relative;
  color: #1d1813;
  filter: url(#cor-ink);
  mix-blend-mode: multiply;
}

.parchment-sig-label {
  flex: 0 1 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-align: center;
}

.parchment-sig-input {
  height: 36px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.7rem;
  text-align: center;
  color: #1d1813;
}

.parchment-name-line {
  height: 1px;
  background: #141414;
  transition: background 0.3s ease;
}

.parchment-sig-caption {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4a4a4a;
}

/* Seal Stage */
.seal-stage {
  position: relative;
  z-index: 3;
  margin: 18px auto 0;
  width: 210px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fire-glow-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.fire-glow-bg--outer {
  width: 380px;
  height: 380px;
  margin: -190px 0 0 -190px;
  background: radial-gradient(circle, rgba(255, 214, 120, 0.95) 0%, rgba(255, 140, 40, 0.75) 18%, rgba(214, 70, 16, 0.4) 38%, rgba(150, 40, 10, 0.14) 56%, rgba(150, 40, 10, 0) 70%);
  mix-blend-mode: multiply;
  filter: blur(3px);
}

.fire-glow-bg--inner {
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  background: radial-gradient(circle, rgba(255, 236, 170, 0.9) 0%, rgba(255, 170, 60, 0.5) 30%, rgba(255, 120, 30, 0) 62%);
  mix-blend-mode: screen;
}

.seal-btn {
  position: relative;
  z-index: 2;
  flex: none;
  transform: scale(1.45);
  width: 140px;
  height: 140px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: default;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  outline-offset: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-btn.ready {
  cursor: pointer;
}

.seal-svg {
  display: block;
  overflow: visible;
  pointer-events: none;
}

.mark-canvas {
  position: absolute;
  left: -20px;
  top: -20px;
  width: 180px;
  height: 180px;
  pointer-events: none;
}

.smoke-canvas {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: -370px;
  width: 360px;
  height: 560px;
  margin-left: -180px;
  pointer-events: none;
}

.seal-status-caption {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.seal-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1d1813;
  transition: color 0.3s ease;
}

.seal-label.active {
  color: #9e1a16;
}

.seal-sublabel {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.08rem);
  color: #5c4f3f;
}

/* Fire Burn Canvases */
.paper-burn-canvas {
  position: absolute;
  z-index: 4;
  left: -60px;
  top: -100px;
  width: calc(100% + 120px);
  height: calc(100% + 160px);
  pointer-events: none;
  visibility: hidden;
}

.glow-burn-canvas {
  position: absolute;
  z-index: 4;
  left: -60px;
  top: -100px;
  width: calc(100% + 120px);
  height: calc(100% + 160px);
  pointer-events: none;
  visibility: hidden;
  filter: blur(4px);
  mix-blend-mode: screen;
}

/* Burn Completion Card */
.burned-complete-card {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h, 70px);
  bottom: 0;
  width: 100vw;
  max-width: 100vw;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  z-index: 100;
  background: #0a0a0a;
  box-sizing: border-box;
  overflow-y: auto;
}

.burned-sigil-wrap {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.burned-sigil-wrap.visible {
  opacity: 1;
  transform: scale(1);
}

.burned-sigil-icon {
  display: block;
  width: clamp(140px, 34vw, 170px);
  height: auto;
}

.burned-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.burned-text-wrap.visible {
  opacity: 1;
}

.burned-complete-title {
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--text);
  margin: 0;
}

.burned-complete-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* Buttons and Inputs */
.cult-btn-solid {
  min-height: 52px;
  height: 52px;
  padding: 0 32px;
  background: var(--red);
  border: 1px solid var(--red);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cult-btn-solid:hover:not(:disabled) {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.cult-btn-solid:disabled {
  background: #2a2a2a;
  border-color: #333333;
  color: #666666;
  cursor: not-allowed;
}

.cult-btn-outline {
  min-height: 52px;
  height: 52px;
  padding: 0 32px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cult-btn-outline:hover {
  color: var(--text);
  border-color: var(--text);
}

.cult-btn-text {
  min-height: 48px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease;
}

.cult-btn-text:hover {
  color: var(--text);
}

/* Onboarding Pane & Step 1 Form */
.onboarding-step-pane {
  width: 100%;
}

.onboarding-form {
  width: 100%;
  margin: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-sizing: border-box;
}

.form-section-header {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f0ede8;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.form-section-header .section-subnote {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
}

.field-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.field-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.field-counter {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.grid-help-note {
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.08rem);
  line-height: 1.5;
  color: var(--muted);
  margin-top: -12px;
}

.cult-text-input {
  width: 100%;
  box-sizing: border-box;
  height: 52px;
  padding: 0 14px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 0.95rem + 0.35vw, 1.2rem);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease;
}

.cult-text-input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 1px rgba(240, 237, 232, 0.35);
}

.cult-select {
  width: 100%;
  box-sizing: border-box;
  height: 52px;
  padding: 0 14px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 0.95rem + 0.35vw, 1.2rem);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.cult-select:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 1px rgba(240, 237, 232, 0.35);
}

.cult-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.5;
  resize: vertical;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.cult-textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 1px rgba(240, 237, 232, 0.35);
}

.cult-text-input.has-error,
.cult-select.has-error,
.cult-textarea.has-error,
.handle-input-box.has-error {
  border-color: var(--red-bright, #e02020) !important;
  box-shadow: 0 0 0 1px rgba(224, 32, 32, 0.4) !important;
}

.cult-field-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #afafaf;
}

.cult-field-note {
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.08rem);
  line-height: 1.5;
  color: var(--muted);
}

.handle-input-box {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0f0f0f;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.handle-input-box:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 1px rgba(240, 237, 232, 0.35);
}

.handle-prefix {
  display: flex;
  align-items: center;
  padding-left: 14px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
  user-select: none;
}

.handle-input,
.handle-input-field {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 50px;
  padding: 0 14px 0 6px;
  background: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 0.95rem + 0.35vw, 1.2rem);
  outline: none;
  box-shadow: none;
}

.field-feedback {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.4;
  margin-top: 8px;
  letter-spacing: 0.03em;
}

.field-feedback:empty {
  display: none;
}

.field-feedback--available {
  color: var(--success, #6b9e78);
}

.field-feedback--taken {
  color: var(--red-bright, #e02020);
}

.form-error-banner {
  background: rgba(196, 30, 30, 0.12);
  border: 1px solid var(--red);
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #f0ede8;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.08rem);
  line-height: 1.5;
  box-sizing: border-box;
}

.form-error-banner a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.form-error-banner a:hover {
  color: #ff9999;
}

/* Custom Checkbox Cards */
.check-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.cult-checkbox-card {
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  padding: 18px 20px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f0ede8;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  position: relative;
}

.cult-checkbox-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.cult-checkbox-card:focus-within {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.cult-checkbox-native {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.cult-checkbox-indicator {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}

.cult-checkbox-native:checked ~ .cult-checkbox-indicator {
  background: var(--red);
  border-color: var(--red);
  color: #f0ede8;
}

.cult-check-svg {
  display: block;
}

.cult-checkbox-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.cult-checkbox-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0ede8;
}

.cult-checkbox-desc {
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.08rem);
  line-height: 1.5;
  color: #afafaf;
}

.onboarding-notice {
  margin: 0;
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.08rem);
  line-height: 1.6;
  color: #afafaf;
}

.btn-submit-ledger {
  height: 56px;
  width: 100%;
  background: var(--red);
  border: 1px solid var(--red);
  color: #f0ede8;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.btn-submit-ledger:hover {
  background: #8a1515;
  border-color: #8a1515;
}

.btn-back-scroll {
  align-self: flex-start;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-back-scroll:hover {
  color: #f0ede8;
}

.optional-card-box {
  margin-top: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #141414;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Creed Chips */
.creed-item-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.creed-prompt-line {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.65rem);
  line-height: 1.3;
  color: var(--text);
}

.creed-prompt-word {
  color: var(--red);
  font-style: italic;
}

.creed-chips-row,
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.creed-chip,
.pref-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 48px;
  padding: 0 18px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #d8d8d8;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(0.78rem, 0.72rem + 0.2vw, 0.86rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.creed-chip:hover,
.pref-chip:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--text);
}

.creed-chip.active,
.pref-chip.active,
.pref-chip:has(.pref-radio-input:checked) {
  background: var(--red);
  border-color: var(--red);
  color: var(--text);
}

/* Kept at 1px (not 0) so form-fill tools that skip zero-size inputs can still
   find and select these radios; matches .caster-option-input. */
.pref-radio-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.pref-chip:has(.pref-radio-input:focus-visible) {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Runner Preferences */
.runner-pref-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

fieldset.runner-pref-fieldset {
  margin: 0;
  padding: 0 0 28px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
}

legend.runner-pref-label {
  display: block;
  float: left;
  width: 100%;
  margin: 0;
  padding: 0;
}

.runner-pref-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.runner-pref-desc {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.08rem);
  line-height: 1.5;
  color: var(--muted);
  margin: -4px 0 2px;
}

.pref-note-input {
  height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.18rem);
  outline: none;
  transition: border-bottom-color 0.15s ease, color 0.15s ease;
}

.pref-note-input:focus {
  border-bottom-color: var(--text);
  color: var(--text);
}

/* Added Ledgers List */
.added-ledgers-list {
  display: flex;
  flex-direction: column;
  border-top: none;
}

.added-ledgers-list:has(.added-ledger-item) {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.no-ledgers-empty-msg {
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.08rem);
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

.added-ledger-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.added-ledger-reorder {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.btn-reorder-ledger {
  width: 26px;
  height: 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.btn-reorder-ledger:hover:not(:disabled) {
  background: #242424;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-reorder-ledger:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.added-ledger-platform {
  min-width: 140px;
  max-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  flex-shrink: 0;
}

.added-ledger-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.added-ledger-handle-link {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.2rem);
  color: var(--muted);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.added-ledger-handle-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ledger-link-external-icon {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
}

.btn-remove-ledger {
  min-height: 38px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(196, 30, 30, 0.35);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-remove-ledger:hover {
  background: rgba(196, 30, 30, 0.12);
}

.add-ledger-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.optional-actions-row {
  margin-top: 36px;
  margin-bottom: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.actions-right .cult-btn-solid,
.actions-right .cult-btn-outline {
  min-width: 120px;
  height: 52px;
  min-height: 52px;
}

@media (max-width: 640px) {
  #step-1-ledger,
  #step-3-runner,
  #step-4-ledgers {
    padding-bottom: 96px;
  }

  .step1-mobile-nav {
    position: fixed;
    bottom: var(--v-keyboard-offset, 0px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.85);
    padding: 8px 16px max(10px, env(safe-area-inset-bottom, 10px));
    box-sizing: border-box;
  }

  .step1-mobile-nav .btn-submit-ledger {
    width: 100%;
    height: 46px;
    min-height: 46px;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    margin: 0;
    box-shadow: none !important;
  }

  .optional-card-box {
    margin-top: 24px;
    padding: 20px 14px;
    gap: 24px;
  }

  .pref-chip {
    min-height: 44px;
    padding: 0 14px;
    font-size: clamp(0.74rem, 0.7rem + 0.2vw, 0.8rem);
  }

  .optional-actions-row {
    margin-top: 24px;
    margin-bottom: 12px;
    padding-top: 0;
    border-top: none;
    display: flex;
    justify-content: center;
  }

  .optional-actions-row .btn-skip-to-finish {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 24px auto 12px auto;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  #step-3-runner .actions-right,
  #step-4-ledgers .actions-right {
    position: fixed;
    bottom: var(--v-keyboard-offset, 0px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.85);
    padding: 8px 16px max(10px, env(safe-area-inset-bottom, 10px));
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 12px;
    box-sizing: border-box;
    margin-top: 0;
    width: 100%;
  }

  #step-3-runner .actions-right button,
  #step-4-ledgers .actions-right button {
    width: 100%;
    height: 46px;
    min-height: 46px;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    margin: 0;
  }

  #step-3-runner .actions-right .cult-btn-solid,
  #step-4-ledgers .actions-right .cult-btn-solid {
    background: var(--red) !important;
    border-color: var(--red) !important;
    color: var(--text) !important;
    box-shadow: none !important;
  }

  #step-3-runner .actions-right .cult-btn-solid:hover,
  #step-4-ledgers .actions-right .cult-btn-solid:hover {
    background: var(--red-dark) !important;
    border-color: var(--red-dark) !important;
    box-shadow: none !important;
  }
}

@media (max-width: 640px) {
  .added-ledger-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    align-items: center;
  }

  .added-ledger-reorder {
    grid-column: 1;
    grid-row: 1;
  }

  .added-ledger-platform {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    max-width: none;
  }

  .btn-remove-ledger {
    grid-column: 3;
    grid-row: 1;
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .added-ledger-handle-link {
    grid-column: 2 / -1;
    grid-row: 2;
    font-size: 0.95rem;
  }

  .onboarding-flow-container {
    padding: 20px 16px 96px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .onboarding-flow-container.burned-state {
    min-height: calc(100vh - var(--header-h, 60px));
    min-height: calc(100dvh - var(--header-h, 60px));
    margin-top: var(--header-h, 60px);
    padding: 0 !important;
    justify-content: center;
  }

  .onboarding-flow-container.burned-state #step-0-pledge {
    min-height: calc(100vh - var(--header-h, 60px));
    min-height: calc(100dvh - var(--header-h, 60px));
  }

  .scroll-wrapper.burned {
    min-height: calc(100vh - var(--header-h, 60px));
    min-height: calc(100dvh - var(--header-h, 60px));
    margin: 0 auto !important;
    padding: 0;
  }

  .burned-complete-card {
    top: var(--header-h, 60px);
    padding: 16px;
    gap: 18px;
  }

  .scroll-wrapper {
    width: 100%;
    margin-top: 10px;
  }

  /* Parchment paper lines up flush with container (and the header logo and text) */
  .scroll-parchment-inner {
    padding: 0;
  }

  /* The rolled up part of the scroll breaks the container slightly */
  .scroll-rod {
    height: 22px;
    margin: 0 -12px;
    border-radius: 11px;
  }

  .paper-burn-canvas,
  .glow-burn-canvas {
    left: -40px;
    top: -80px;
    width: calc(100% + 80px);
    height: calc(100% + 140px);
  }

  .parchment-content {
    padding: 36px 14px 34px;
  }

  .pledge-lines {
    max-width: 100% !important;
    width: 100%;
    gap: 15px;
  }

  .pledge-line {
    grid-template-columns: 1.8rem 1fr;
    column-gap: 0.5rem;
    line-height: 1.5;
    text-wrap: pretty;
  }
}

/* ==========================================================================
   REDESIGNED PROFILE PAGE (Profile v2)
   ========================================================================== */

.profile-v2-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 120px;
  font-family: var(--font-body);
}

.profile-v2-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: stretch;
}

/* Left Column: Sigil & Register */
.profile-sigil-col {
  flex: 0 0 320px;
  min-width: 0;
  max-width: 340px;
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-bright, #262626);
  background: #0c0c0c;
  align-self: flex-start;
}

.sigil-box-square {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
  overflow: hidden;
}

.sigil-alignment-bg {
  display: none !important;
}

.member-mark {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-mark svg {
  width: 100%;
  max-width: 240px;
  max-height: 240px;
  height: auto;
  stroke: var(--text);
  fill: none;
}

.sigil-box-tag-left,
.sigil-box-tag-right {
  display: none !important;
}

.profile-register-row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.register-cell {
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.register-cell:last-child {
  border-right: none;
}

.register-cell-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.register-cell-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

/* Right Column: Bearer & Preferences */
.profile-details-col {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.bearer-eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bearer-eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn-edit-profile-toggle {
  height: 38px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-edit-profile-toggle:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.bearer-title {
  margin: 0;
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  font-size: clamp(44px, 5vw, 72px);
  color: var(--text);
}

.bearer-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.bearer-handle {
  color: var(--text);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.06em;
}

.bearer-unlisted-tag {
  color: var(--muted);
}

/* Ministry Verified Badge */
.ministry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  margin-left: 12px;
  padding: 4px 10px;
  background: rgba(196, 30, 30, 0.12);
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 0;
  line-height: 1;
}

.ministry-badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
}

.ministry-badge-text {
  position: relative;
  top: 0.5px;
}

.creed-view-lines {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--text);
}

.creed-view-lines .creed-accent {
  font-style: italic;
  color: var(--red);
}

.bearer-bio {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.55;
  color: #d8d4cf;
  margin: 14px 0 0;
  text-wrap: pretty;
}

.bearer-bio a,
.bio-link {
  color: var(--gold, #d4af37);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bearer-bio a:hover,
.bio-link:hover {
  color: var(--text);
}

.creed-view-sentence {
  font-family: var(--font-body);
  font-size: 1.32rem;
  line-height: 1.55;
  color: var(--text);
  margin-top: 18px;
  font-style: italic;
  max-width: 44rem;
  text-wrap: pretty;
}

.creed-footnote {
  margin: 14px 0 0;
  max-width: 440px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Runner Preferences Grid */
.runner-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.runner-title {
  margin: 0;
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  font-size: 1.6rem;
  color: var(--text);
}

.runner-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.runner-prefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.pref-tile {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #141414;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pref-tile-key {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.pref-tile-val {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
}

.pref-tile-note {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Elsewhere - The Other Ledgers */
.other-ledgers-section {
  margin-top: 88px;
}

.other-ledgers-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 20px;
}

.other-ledgers-eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.other-ledgers-title {
  margin: 0;
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text);
}

.other-ledgers-lede {
  margin: 0;
  max-width: 380px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
}

.ledgers-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 8px;
}

.ledger-card {
  position: relative;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.15s ease;
}

.ledger-card:hover {
  border-color: var(--text);
}

.ledger-card-link {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  color: var(--text);
  min-height: 200px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ledger-card-link:hover {
  background: #1a1a1a;
  color: var(--text);
}

.ledger-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ledger-icon-box {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}

.ledger-visit-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.ledger-card-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ledger-platform-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ledger-user-handle {
  font-size: 1.25rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-card-remove {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  background: #0a0a0a;
  border: 1px solid rgba(196, 30, 30, 0.35);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-card-remove:hover {
  background: rgba(196, 30, 30, 0.12);
  color: #e02020;
}

.btn-add-profile-card {
  min-height: 200px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.btn-add-profile-card:hover {
  color: var(--text);
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.card-plus-icon {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

/* Inline Edit Card for Adding Ledger */
.inline-add-ledger-card {
  min-height: 200px;
  border: 1px dashed rgba(255, 255, 255, 0.30);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  background: #141414;
}

/* The Way In (Stranger Banner) */
.the-way-in-banner {
  margin-top: 112px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: #141414;
  padding: 56px clamp(24px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
}

.the-way-in-left {
  flex: 1 1 420px;
}

.the-way-in-eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.the-way-in-title {
  margin: 0;
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text);
}

.the-way-in-sub {
  margin: 16px 0 0;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--muted);
}

.the-way-in-btn {
  height: 54px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  background: var(--red);
  border: 1px solid var(--red);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.15s ease;
}

.the-way-in-btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--text);
}

/* Sticky Action Bar during Edit Mode */
.profile-edit-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  border-top: 1px solid var(--red);
  background: #141414;
}

.profile-edit-sticky-inner {
  max-width: var(--container-max, 1400px);
  margin: 0 auto;
  padding: 14px var(--spacing-md, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.edit-sticky-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.edit-sticky-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
}

.edit-sticky-buttons {
  display: flex;
  gap: 10px;
}

/* =============================================================================
   ONBOARDING STEP 2: LIKENESS & SEAL OVERLAY
   ============================================================================= */
.likeness-onboarding-block {
  margin-bottom: 28px;
}

.likeness-onboarding-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 20px;
  background: #0f0f0f;
  border: 1px solid var(--border-bright, #262626);
  box-sizing: border-box;
}

.likeness-onboarding-thumb-wrap {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  background: #141414;
  border: 1px solid var(--border-bright, #262626);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.likeness-onboarding-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.likeness-onboarding-thumb-empty {
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.likeness-onboarding-details {
  flex: 1;
  min-width: 0;
}

.likeness-onboarding-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.likeness-upload-btn {
  height: 40px;
  padding: 0 16px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.likeness-note {
  margin: 6px 0 0 0 !important;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted, #888);
}

.likeness-onboarding-card .instant-status:empty {
  display: none !important;
  margin: 0 !important;
  min-height: 0 !important;
}

.quiet-remove-btn {
  background: transparent;
  border: none;
  color: var(--red, #c41e1e);
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 4px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.quiet-remove-btn:hover {
  color: #ff5557;
}

.instant-status {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
  color: var(--muted, #888);
}

.instant-status.is-error {
  color: var(--red, #c41e1e);
}

.instant-status.is-success {
  color: #4cd964;
}

/* =============================================================================
   SEAL SWAP PREVIEW SIZING (ONBOARDING CASTER)
   ============================================================================= */
.caster-preview .seal-swap {
  --frame: min(65vw, 240px);
  --seal: 76px;
  --tile: 30px;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .caster-preview .seal-swap {
    --frame: 250px;
    --seal: 80px;
    --tile: 32px;
  }
}

@media (max-width: 959px) {
  .onboarding-flow-container .caster[data-mobile-mode="sigil"] .seal-swap {
    --frame: min(38vw, 140px);
    --seal: 52px;
    --tile: 18px;
  }
}

.caster-sigil-solo-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
