/* ofork.dev accounts: sign-up, sign-in, security and profile pages. Design tokens only; no gradients, no inline style. White, content first, lime accent, mono details. */
.acct-main { padding-bottom: var(--o-space-8); }
.acct-wrap { max-width: 34rem; margin-inline: auto; padding: var(--o-space-6) var(--o-gutter) 0; }
.acct-wrap--wide { max-width: 44rem; }
.acct-wrap h1 { margin-bottom: var(--o-space-2); }
.acct-wrap h2 { font-size: var(--o-text-title-3); font-weight: var(--o-weight-bold); margin: var(--o-space-6) 0 var(--o-space-2); }
.acct-wrap p { margin: 0 0 var(--o-space-3); }
.acct-lead { color: var(--o-ink-2); margin-bottom: var(--o-space-5); max-width: var(--o-measure); }
.acct-meta { font-family: var(--o-font-mono); font-size: var(--o-text-meta); color: var(--o-ink-2); }
.acct-steps { display: flex; gap: var(--o-space-2); margin: 0 0 var(--o-space-5); padding: 0; list-style: none; flex-wrap: wrap; }
.acct-steps li { font-family: var(--o-font-mono); font-size: var(--o-text-meta); color: var(--o-ink-2); padding: 2px var(--o-space-2); border-radius: var(--o-radius-xs); box-shadow: inset 0 0 0 1px var(--o-line); }
.acct-steps li[aria-current="step"] { color: var(--o-on-accent); background: var(--o-accent); box-shadow: inset 0 0 0 1px var(--o-fill-edge); }
.acct-steps li.is-done { color: var(--o-ink); }
.acct-form { margin: 0 0 var(--o-space-4); }
.acct-form label { display: block; font-size: var(--o-text-callout); font-weight: var(--o-weight-semibold); margin: var(--o-space-4) 0 var(--o-space-1); }
.acct-form input[type=text], .acct-form input[type=email], .acct-form textarea {
  display: block; width: 100%; min-height: var(--o-tap); padding: var(--o-space-2) var(--o-space-3); border: 1px solid var(--o-control);
  border-radius: var(--o-radius-md); background: var(--o-bg); color: var(--o-ink); font: inherit; font-size: var(--o-text-body);
}
.acct-form textarea { min-height: 6rem; resize: vertical; }
.acct-form input.acct-code { font-family: var(--o-font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.acct-form input:focus-visible, .acct-form textarea:focus-visible { border-color: var(--o-ink); outline-offset: 1px; }
.acct-hint { color: var(--o-ink-2); font-size: var(--o-text-callout); margin-top: var(--o-space-1); }
.acct-actions { display: flex; flex-wrap: wrap; gap: var(--o-space-2); margin-top: var(--o-space-4); align-items: center; }
.acct-actions form { margin: 0; }
.acct-notice { border-radius: var(--o-radius-md); padding: var(--o-space-3) var(--o-space-4); margin: 0 0 var(--o-space-4); font-size: var(--o-text-callout); background: var(--o-surface); box-shadow: inset 3px 0 0 var(--o-control); }
.acct-notice--ok { background: var(--o-ok-tint); box-shadow: inset 3px 0 0 var(--o-ok); }
.acct-notice--warn { background: var(--o-warn-tint); box-shadow: inset 3px 0 0 var(--o-warn); }
.acct-notice--err { background: var(--o-danger-tint); box-shadow: inset 3px 0 0 var(--o-danger); }
.acct-notice form { margin: var(--o-space-2) 0 0; }
.acct-list { list-style: none; margin: 0 0 var(--o-space-3); padding: 0; border-top: 1px solid var(--o-line); }
.acct-list > li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--o-space-2) var(--o-space-4); padding: var(--o-space-3) 0; border-bottom: 1px solid var(--o-line); }
.acct-list .acct-grow { flex: 1 1 12rem; min-width: 0; }
.acct-list .acct-title { font-weight: var(--o-weight-semibold); overflow-wrap: anywhere; }
.acct-list form { margin: 0; display: flex; gap: var(--o-space-2); align-items: center; flex-wrap: wrap; }
.acct-list input[type=text] { min-height: 2.5rem; padding: 0 var(--o-space-2); border: 1px solid var(--o-control); border-radius: var(--o-radius-md); background: var(--o-bg); color: var(--o-ink); font: inherit; max-width: 11rem; }
.acct-events li { font-size: var(--o-text-callout); }
.acct-events .acct-meta { margin-left: auto; }
.acct-menu { display: grid; margin: var(--o-space-4) 0; }
.acct-menu a, .acct-menu button { display: flex; align-items: center; min-height: 3.25rem; padding-inline: 2px; border: 0; border-bottom: 1px solid var(--o-line); background: transparent; color: var(--o-ink); font: inherit; font-size: var(--o-text-body); font-weight: var(--o-weight-medium); text-align: left; width: 100%; text-decoration: none; cursor: pointer; }
.acct-menu form { margin: 0; }
.acct-profile h1 { margin-bottom: 0; overflow-wrap: anywhere; }
.acct-profile .acct-handle { font-family: var(--o-font-mono); color: var(--o-ink-2); margin: 0 0 var(--o-space-4); }
.acct-profile .acct-bio { white-space: pre-line; overflow-wrap: anywhere; max-width: var(--o-measure); }
.acct-code-display { font-family: var(--o-font-mono); font-size: var(--o-text-title-3); }
/* The hub (A-3, FD_HUB=1): Your servers and the creator section of the public page. Appended to accounts.css only with the switch on. Design tokens only; no gradients, no inline style. */
.hub { max-width: 46rem; }
.hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--o-space-4); }
.hub-card { border: 1px solid var(--o-line); border-radius: var(--o-radius-md); padding: var(--o-space-4); background: var(--o-bg); }
.hub-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--o-space-2) var(--o-space-3); }
.hub .hub-origin { margin: 0; font-size: var(--o-text-body); font-weight: var(--o-weight-semibold); overflow-wrap: anywhere; min-width: 0; }
.hub-card .acct-meta { margin: var(--o-space-2) 0 0; }
.hub .hub-why { margin: var(--o-space-2) 0 0; color: var(--o-ink-2); font-size: var(--o-text-callout); }
.hub .hub-sub { font-size: var(--o-text-callout); font-weight: var(--o-weight-semibold); margin: var(--o-space-4) 0 var(--o-space-1); }
.hub-rooms { list-style: none; margin: 0; padding: 0; }
.hub-rooms li { padding: var(--o-space-1) 0; overflow-wrap: anywhere; }
.hub-rooms a { font-weight: var(--o-weight-medium); }
.hub .hub-note { margin: var(--o-space-3) 0 0; font-size: var(--o-text-callout); }
.hub-card .acct-actions { margin-top: var(--o-space-4); }
.hub-more { display: flex; flex-wrap: wrap; gap: var(--o-space-2) var(--o-space-6); margin-top: var(--o-space-8); padding-top: var(--o-space-4); border-top: 1px solid var(--o-line); }
.hub-more a { display: inline-flex; align-items: center; min-height: var(--o-tap); }
.hub-empty-lead { max-width: var(--o-measure); margin-bottom: var(--o-space-5); }
.hub-block { margin: 0 0 var(--o-space-6); }
.hub-block > h2, .hub-ways h2 { margin-top: 0; }
.hub-types { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--o-line); }
.hub-types li { display: flex; justify-content: space-between; gap: var(--o-space-3); padding: var(--o-space-3) 0; border-bottom: 1px solid var(--o-line); }
.hub-ways { display: grid; gap: var(--o-space-6); }
@media (min-width: 40rem) { .hub-ways { grid-template-columns: 1fr 1fr; gap: var(--o-space-8); } }
.hub-creator { margin-top: var(--o-space-8); }
.hub-creator h2 { font-size: var(--o-text-title-3); font-weight: var(--o-weight-bold); margin: 0 0 var(--o-space-3); }
.hub-own { display: flex; flex-wrap: wrap; gap: var(--o-space-2); margin-top: var(--o-space-4); }

/* DS1b: the account home (/me with the hub on): who you are, what next, settings rows. */
.me-who { margin: var(--o-space-4) 0 var(--o-space-5); }
.me-who p { margin: 0; }
.me-who .me-who__name { font-size: var(--o-text-title-3); font-weight: var(--o-weight-bold); overflow-wrap: anywhere; }
.me-who a { display: inline-flex; align-items: center; min-height: var(--o-tap); }
.me-next { border: 1px solid var(--o-line); border-radius: var(--o-radius-md); padding: var(--o-space-4); margin: 0 0 var(--o-space-5); }
.me-next h2 { margin: 0 0 var(--o-space-2); }
.me-next p { margin: 0 0 var(--o-space-2); }
.me-next .acct-actions { margin-top: var(--o-space-3); }
.me-server { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--o-space-2) var(--o-space-3); margin-bottom: var(--o-space-2); }
.me-server .hub-origin { overflow-wrap: anywhere; min-width: 0; font-weight: var(--o-weight-semibold); }
.me-rows { list-style: none; margin: 0 0 var(--o-space-4); padding: 0; border-top: 1px solid var(--o-line); }
.me-rows li { margin: 0; border-bottom: 1px solid var(--o-line); }
.me-rows form { margin: 0; }
.me-rows a, .me-rows button { display: grid; gap: 2px; align-content: center; width: 100%; min-height: 3.5rem; padding: var(--o-space-2) 2px; border: 0; background: transparent; color: var(--o-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.me-row__t { font-size: var(--o-text-body); font-weight: var(--o-weight-semibold); }
.me-row__d { font-size: var(--o-text-callout); color: var(--o-ink-2); }
.me-rows li:last-child button .me-row__t { font-weight: var(--o-weight-medium); }
/* The Rooms tab (SO-2, FD_SOCIAL=1 with the hub): Your servers drawn as a list of rows instead of cards. Appended to accounts.css only with those switches. Tokens only. */
.hub-list--rows { gap: 0; border-top: 1px solid var(--o-line); }
.hub-list--rows .hub-card { border: 0; border-bottom: 1px solid var(--o-line); border-radius: 0; padding: var(--o-space-3) 0; }
.hub-list--rows .hub-card .acct-actions { margin-top: var(--o-space-3); }
.hub-list--rows .hub-origin { font-size: var(--o-text-headline); }
/* UX-1: the Rooms tab's compact card: the host in normal weight (not a mono heading), one muted line, small room rows, Open and a quiet Manage */
.hub .hub-list--rows .hub-origin { font-family: var(--o-font-sans, inherit); font-size: var(--o-text-headline); font-weight: var(--o-weight-semibold); }
.hub-list--rows .hub-kind { margin: var(--o-space-1) 0 0; white-space: normal; font-family: inherit; font-size: var(--o-text-callout); color: var(--o-ink-2); }
.hub-list--rows .hub-rooms { margin-top: var(--o-space-2); }
.hub-list--rows .hub-rooms li { display: flex; align-items: center; gap: var(--o-space-2); min-height: var(--o-tap); padding: 0; }
.hub-list--rows .acct-actions { display: flex; align-items: center; gap: var(--o-space-3); }
/* Plans, the test checkout, Plan and billing (P-1..P-3, FD_PLANS=1). Appended to accounts.css only with the switch on. Design tokens only; no gradients, no inline style. */
.plans { max-width: 46rem; }
.plans-test { margin: 0 0 var(--o-space-5); }
.plans-country { display: flex; flex-wrap: wrap; align-items: end; gap: var(--o-space-3); margin: 0 0 var(--o-space-2); }
.plans-country label { display: block; font-size: var(--o-text-callout); font-weight: var(--o-weight-semibold); margin: 0 0 var(--o-space-1); }
.plans select { min-height: var(--o-tap); padding: 0 var(--o-space-3); border: 1px solid var(--o-control); border-radius: var(--o-radius-md); background: var(--o-bg); color: var(--o-ink); font: inherit; }
.plans select:focus-visible { border-color: var(--o-ink); outline-offset: 1px; }
.plans-note { font-size: var(--o-text-callout); color: var(--o-ink-2); margin: 0 0 var(--o-space-5); max-width: var(--o-measure); }
.plans-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--o-space-4); }
.plan-card { border: 1px solid var(--o-line); border-radius: var(--o-radius-md); padding: var(--o-space-4); background: var(--o-bg); }
.plan-card h2 { margin: 0 0 var(--o-space-1); font-size: var(--o-text-title-3); font-weight: var(--o-weight-bold); }
.plan-card p { margin: var(--o-space-2) 0 0; }
.plan-price { display: flex; flex-wrap: wrap; align-items: center; gap: var(--o-space-2) var(--o-space-3); font-family: var(--o-font-mono); font-size: var(--o-text-body); }
.plan-inc { list-style: none; margin: var(--o-space-3) 0 0; padding: 0; border-top: 1px solid var(--o-line); }
.plan-inc li { padding: var(--o-space-2) 0; border-bottom: 1px solid var(--o-line); font-size: var(--o-text-callout); }
.plan-card .acct-actions { margin-top: var(--o-space-4); }
.plans-steps { display: flex; flex-wrap: wrap; gap: var(--o-space-2) var(--o-space-5); margin: 0 0 var(--o-space-5); padding: 0; list-style: none; color: var(--o-ink-2); font-size: var(--o-text-callout); }
.plans-steps [aria-current] { color: var(--o-ink); font-weight: var(--o-weight-semibold); }
.plans-review { margin: 0 0 var(--o-space-4); border-top: 1px solid var(--o-line); }
.plans-review div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--o-space-1) var(--o-space-4); padding: var(--o-space-3) 0; border-bottom: 1px solid var(--o-line); }
.plans-review dt { color: var(--o-ink-2); }
.plans-review dd { margin: 0; font-family: var(--o-font-mono); text-align: right; overflow-wrap: anywhere; }
.plans-review dd.plain { font-family: inherit; }
.pay-test { border: 2px solid var(--o-ink); border-radius: var(--o-radius-md); padding: var(--o-space-4); }
.pay-test-banner { font-family: var(--o-font-mono); font-weight: var(--o-weight-bold); margin: 0 0 var(--o-space-3); }
.pay-sim { display: grid; gap: var(--o-space-2); margin-top: var(--o-space-4); }
.pay-sim form { margin: 0; }
.pay-sim .o-btn { width: 100%; justify-content: center; }
.pay-state { display: inline-block; }
.pay-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--o-line); }
.pay-list li { padding: var(--o-space-3) 0; border-bottom: 1px solid var(--o-line); }
.pay-list .acct-meta { margin: var(--o-space-1) 0 0; }
.pay-open { margin-top: var(--o-space-4); padding: var(--o-space-4); border: 1px solid var(--o-line); border-radius: var(--o-radius-md); }
.bill-block { margin: 0 0 var(--o-space-6); }
.bill-block > h2 { margin-top: 0; }
.pay-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--o-space-2) var(--o-space-3); }

/* HO-1: the consent to the server's documents on the review page (only drawn with FD_HOSTED_OPEN=1) */
.hosted-consent { border: 0; padding: 0; margin: var(--o-space-4) 0; min-width: 0; }
.hosted-consent legend { padding: 0; font-weight: var(--o-weight-semibold); margin-bottom: var(--o-space-2); overflow-wrap: anywhere; }
.hosted-consent .pay-list li { display: flex; flex-direction: column; align-items: flex-start; gap: var(--o-space-1); }   /* the same stacked row for all three documents: the label, then its link (a wrapping row put the first one out of line, review R10) */
.hosted-consent .consent { display: flex; align-items: flex-start; gap: var(--o-space-3); margin-top: var(--o-space-3); }
.hosted-consent .consent input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--o-accent); }
.hosted-consent .consent label { min-width: 0; overflow-wrap: anywhere; }

/* PW-1 (email + password accounts): the sign-up, log-in and reset pages, and the password and recovery-code parts of Security. Appended to /assets/accounts.css ONLY with FD_PASSWORDS=1
   (accounts.css itself is untouched, so with the switch off every byte of it is as before). The look is the approved sketch's screen 04: white, one lime button, grey fields, a card, a quiet
   second card under it. Design tokens only; no gradient, no inline style. */
.pw-wrap { max-width: 26rem; margin-inline: auto; padding: var(--o-space-6) var(--o-gutter) 0; }
.pw-card { border: 1px solid var(--o-line); border-radius: var(--o-radius-lg, 16px); padding: var(--o-space-5) var(--o-space-4); margin: 0 0 var(--o-space-3); background: var(--o-bg); }
.pw-card h1 { font-size: var(--o-text-title-2, 1.5rem); line-height: 1.2; margin: 0 0 var(--o-space-2); text-align: center; }
.pw-card .pw-lead { color: var(--o-ink-2); text-align: center; margin: 0 0 var(--o-space-4); }
.pw-card h2 { font-size: var(--o-text-callout); font-weight: var(--o-weight-bold); margin: var(--o-space-5) 0 var(--o-space-2); }
.pw-form { margin: 0; }
.pw-form label { display: block; font-size: var(--o-text-callout); font-weight: var(--o-weight-semibold); margin: var(--o-space-3) 0 var(--o-space-1); }
.pw-form input[type=text], .pw-form input[type=email], .pw-form input[type=password] {
  display: block; width: 100%; min-height: var(--o-tap); padding: var(--o-space-2) var(--o-space-3); border: 1px solid var(--o-line); border-radius: var(--o-radius-md);
  background: var(--o-surface); color: var(--o-ink); font: inherit; font-size: var(--o-text-body); box-sizing: border-box;
}
.pw-form input:focus-visible { border-color: var(--o-ink); outline-offset: 1px; }
.pw-form input.pw-code { font-family: var(--o-font-mono); letter-spacing: 0.08em; }
.pw-field { position: relative; }
.pw-field input[type=password], .pw-field input[type=text] { padding-right: 4.5rem; }
.pw-eye { position: absolute; top: 0; right: 0; min-height: var(--o-tap); min-width: 4rem; padding: 0 var(--o-space-3); border: 0; background: transparent; color: var(--o-ink-2); font: inherit; font-size: var(--o-text-callout); cursor: pointer; }
.pw-eye[hidden] { display: none; }
.pw-actions { display: grid; gap: var(--o-space-2); margin-top: var(--o-space-4); }
.pw-actions .o-btn { width: 100%; min-height: var(--o-tap); justify-content: center; text-align: center; }
.pw-small { color: var(--o-ink-2); font-size: var(--o-text-callout); text-align: center; margin: var(--o-space-3) 0 0; }
.pw-small a { color: inherit; text-decoration: underline; }
.pw-hint { color: var(--o-ink-2); font-size: var(--o-text-callout); margin: var(--o-space-1) 0 0; }
.pw-hint a { color: var(--o-ink); text-decoration: underline; font-weight: var(--o-weight-semibold); }
.pw-err { color: var(--o-danger); font-size: var(--o-text-callout); font-weight: var(--o-weight-semibold); margin: var(--o-space-1) 0 0; }
.pw-field-err input { border-color: var(--o-danger); }
.pw-second { border: 1px solid var(--o-line); border-radius: var(--o-radius-lg, 16px); padding: var(--o-space-4); margin: 0 0 var(--o-space-3); text-align: center; }
.pw-second p { margin: 0; }
.pw-second a { font-weight: var(--o-weight-semibold); }
.pw-or { display: flex; align-items: center; gap: var(--o-space-3); color: var(--o-ink-2); font-size: var(--o-text-callout); margin: var(--o-space-4) 0 var(--o-space-3); }
.pw-or::before, .pw-or::after { content: ""; flex: 1; border-top: 1px solid var(--o-line); }
.pw-quiet { width: 100%; justify-content: center; }
/* the passkey button of the log-in page is the quieter way in: outlined, not lime */
.pw-card #acct-passkey .acct-actions { margin-top: 0; display: block; }
.pw-card #acct-passkey-go { width: 100%; min-height: var(--o-tap); justify-content: center; background: transparent; color: var(--o-ink); border: 1px solid var(--o-control); box-shadow: none; }
.pw-code-box { font-family: var(--o-font-mono); font-size: var(--o-text-body); line-height: 1.5; letter-spacing: 0.04em; text-align: center; padding: var(--o-space-4) var(--o-space-3); margin: var(--o-space-3) 0; background: var(--o-surface); border: 1px solid var(--o-line); border-radius: var(--o-radius-md); overflow-wrap: anywhere; user-select: all; }
.pw-section { margin: var(--o-space-5) 0; }
.pw-section h2 { margin-top: 0; }
.pw-status { display: flex; align-items: center; gap: var(--o-space-2); flex-wrap: wrap; }
@media (max-width: 380px) { .pw-card { padding: var(--o-space-4) var(--o-space-3); } }
/* the older ways to log in: one quiet disclosure (no script) under the passkey button */
.pw-others { margin-top: var(--o-space-3); text-align: center; }
.pw-others summary { display: flex; align-items: center; justify-content: center; min-height: var(--o-tap); color: var(--o-ink-2); font-size: var(--o-text-callout); text-decoration: underline; cursor: pointer; list-style: none; }
.pw-others summary::-webkit-details-marker { display: none; }
.pw-others[open] summary { color: var(--o-ink); }
