/* Novela: the same look as kyc.novela.inc (navy on off-white, SF Pro Display, one column, square fields). */
@font-face {
  font-family: "SF Pro Display";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/fonts/SFProDisplay-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "SF Pro Display";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("/fonts/SFProDisplay-Medium.woff2") format("woff2");
}
:root {
  --navy: #051755;
  --off-white: #fcfcfb;
  --body: rgba(5, 23, 85, 0.78);
  --muted: rgba(5, 23, 85, 0.62);
  --line: rgba(5, 23, 85, 0.13);
  --field: rgba(5, 23, 85, 0.09);
  --field-focus: rgba(5, 23, 85, 0.4);
  --tint: rgba(5, 23, 85, 0.03);
  --error: #8f1d1d;
  --ok: #1d6b3a;
  --amber: #8a5a00;
  --sans:
    "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23051755' stroke-width='1.5'/%3E%3C/svg%3E");
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
  background: var(--off-white);
}
body {
  margin: 0;
  color: var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.page {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: var(--s9) var(--s6) var(--s7);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  margin: 0 0 calc(var(--s7) + 0.18em);
  font-size: clamp(1.75rem, 7.4vw, 3.6rem);
}
.mark {
  width: 0.6em;
  height: auto;
  color: var(--navy);
  display: block;
  order: 2;
  flex: none;
  transform: translateY(0.02em);
}
.top-title {
  white-space: nowrap;
  font-size: 1em;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin: 0 0 5rem;
  padding: 0;
  list-style: none;
}
.steps li {
  border-top: 2px solid var(--line);
  padding-top: var(--s3);
  font-size: 0.95rem;
  color: var(--muted);
}
.steps li.done,
.steps li.on {
  border-top-color: var(--navy);
  color: var(--navy);
}
.steps button {
  all: unset;
  cursor: pointer;
}
.steps button:focus-visible {
  outline: 2px solid var(--field-focus);
  outline-offset: 4px;
}
h2 {
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 var(--s5);
}
h3.section {
  font-weight: 500;
  font-size: 1.1rem;
  margin: var(--s6) 0 var(--s3);
}
.prose {
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0 0 var(--s4);
  max-width: 38rem;
}
.prose b {
  font-weight: 500;
  color: var(--navy);
}
.note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 var(--s5);
}
.field {
  margin-bottom: var(--s5);
}
label {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  margin: 0 0 var(--s3);
}
.help {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: calc(-1 * var(--s1)) 0 var(--s3);
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--field);
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  padding: var(--s3) var(--s4);
  outline: none;
  transition: border-color 180ms ease;
}
input,
select {
  height: 3rem;
}
input:disabled {
  color: var(--muted);
}
textarea {
  min-height: 6rem;
  resize: vertical;
  line-height: 1.5;
}
textarea.mono,
input.mono {
  font-family: var(--mono);
  font-size: 0.85rem;
}
select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--off-white) var(--arrow) no-repeat right 1rem center;
  padding-right: 2.5rem;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--field-focus);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  margin-bottom: var(--s5);
}
.row.three {
  grid-template-columns: 2fr 1fr 1fr;
}
.row > .field {
  margin-bottom: 0;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--s3);
  align-items: center;
  margin-top: var(--s7);
}
button {
  appearance: none;
  border-radius: 0;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  height: 3rem;
  padding: 0 var(--s5);
  cursor: pointer;
  transition: opacity 180ms ease;
}
button:hover {
  opacity: 0.68;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button.primary {
  background: var(--navy);
  color: var(--off-white);
}
button.small {
  height: 2.25rem;
  padding: 0 var(--s4);
  font-size: 0.88rem;
}
button.linkish {
  border: 0;
  padding: 0;
  height: auto;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 400;
}
.status:empty {
  display: none;
}
.status {
  margin: var(--s4) 0 0;
  color: var(--error);
  font-size: 0.9rem;
  line-height: 1.45;
}
.status.ok {
  color: var(--ok);
}
.view {
  display: none;
}
.view.on {
  display: block;
}
.or {
  display: flex;
  align-items: center;
  gap: var(--s4);
  color: var(--muted);
  font-size: 0.9rem;
  margin: var(--s6) 0;
}
.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.google {
  min-height: 44px;
}
.code {
  position: relative;
  border: 1px solid var(--line);
  background: var(--tint);
  padding: var(--s4) var(--s5);
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 var(--s4);
}
.code .dim {
  color: var(--muted);
  user-select: none;
}
.code .copy {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
}
.prompt {
  max-height: 14rem;
  overflow: auto;
  padding-right: 5.5rem;
}
.receipt {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.9rem;
}
.receipt th,
.receipt td {
  text-align: left;
  border-top: 1px solid var(--line);
  padding: var(--s3) var(--s4) var(--s3) 0;
  vertical-align: middle;
}
.receipt thead th {
  border-top: 0;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
  padding-bottom: var(--s2);
}
.receipt td:last-child {
  text-align: right;
  padding-right: 0;
}
.receipt .mono,
.mono {
  font-family: var(--mono);
  font-size: 0.85rem;
  word-break: break-all;
}
.receipt tr.pick {
  cursor: pointer;
}
.receipt tr.pick:hover td {
  background: var(--tint);
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.5em;
  transform: translateY(-1px);
  background: var(--line);
}
.dot.running {
  background: var(--ok);
}
.dot.setting_up {
  background: var(--amber);
}
.big-code {
  font-family: var(--mono);
  font-size: 2rem;
  letter-spacing: 0.08em;
  margin: 0 0 var(--s5);
}
.empty {
  border: 1px solid var(--line);
  padding: var(--s5);
  color: var(--body);
  line-height: 1.6;
}
footer {
  margin-top: auto;
  padding-top: var(--s8);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 680px) {
  .page {
    padding: var(--s7) var(--s5) var(--s6);
  }
  .top {
    margin: 0 0 var(--s6);
  }
  .steps {
    margin-bottom: var(--s6);
    gap: var(--s3);
  }
  .row,
  .row.three {
    grid-template-columns: 1fr;
  }
  .actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .actions button {
    width: 100%;
  }
  button.linkish {
    width: auto;
  }
  .receipt .hide-sm {
    display: none;
  }
}
.byhand {
  margin-top: var(--s5);
}
.byhand summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: fit-content;
}
.byhand summary::-webkit-details-marker {
  display: none;
}
.byhand[open] summary {
  margin-bottom: var(--s5);
}
.receipt + .note,
.receipt + .empty {
  margin-top: var(--s5);
}
.code:has(.copy) {
  padding-right: 5.5rem;
}
.steps button:disabled {
  opacity: 1;
  cursor: default;
}
#machinesNote {
  margin-top: var(--s5);
}
/* Same as kyc.novela.inc: trim line-height leading so visible gaps equal the spacing scale. */
.top-title,
h2,
h3.section,
label,
.help,
.steps li,
footer,
.note {
  text-box: trim-both cap alphabetic;
}
.help {
  margin-top: calc(-1 * var(--s1));
}
/* Sign-in: the 03-stacked design. Small mark, title, equal stacked buttons, exactly centered. */
.page.signin {
  padding: var(--s6);
}
.page.signin .top,
.page.signin .steps {
  display: none;
}
.page.signin footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  margin: 0;
  padding: 0;
}
.auth.on {
  width: min(100%, 340px);
  margin: auto;
  text-align: center;
}
.auth-mark {
  display: block;
  width: 2.25rem;
  height: auto;
  margin: 0 auto 1.75rem;
  color: var(--navy);
}
.auth-title {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 1.75rem;
  text-box: none;
}
.auth-stack > * + * {
  margin-top: 0.75rem;
}
.auth-stack button {
  width: 100%;
  height: 3rem;
}
.auth-stack button:not(.primary) {
  border-color: var(--field);
}
.auth-stack input {
  height: 3rem;
}
.auth .prose {
  text-align: center;
  font-size: 1rem;
  margin: 0 0 1rem;
}
.auth .status {
  text-align: center;
}
.note.center {
  text-align: center;
  margin-top: var(--s5);
}
/* Steps act as page tabs once signed in: no fading on hover, no click box. */
.steps button:hover {
  opacity: 1;
  color: var(--navy);
}
.steps button:focus {
  outline: none;
}
.steps button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* The agent prompt is the main thing on CLI + SSH now: show it whole. */
#view-cli .prompt {
  max-height: none;
}
/* Account and Machines: standard sections, left-aligned actions, a plain empty state. */
h3.section.first {
  margin-top: 0;
}
.actions.start {
  justify-content: flex-start;
  margin-top: var(--s5);
}
#view-account .actions.start button {
  width: auto;
}
.blank h2 {
  font-size: 1.4rem;
  margin: 0 0 var(--s4);
}
.copy-inline {
  margin-left: var(--s3);
  font-family: var(--sans);
  font-size: 0.85rem;
}
/* Account: even sections. */
#view-account h3.section {
  margin: var(--s7) 0 var(--s5);
}
#view-account h3.section.first {
  margin-top: 0;
}
#view-account .note {
  margin-bottom: var(--s4);
}
#view-account .byhand {
  margin-top: var(--s4);
}
#view-account .receipt:empty + .note,
#view-account .receipt + .note {
  margin-top: 0;
}
#view-cli h3.section.first {
  margin: 0 0 var(--s5);
}
/* Content rhythm (one scale, internal space smaller than space between groups):
   section title -> its content 1rem; paragraph -> its block 1.25rem; between groups 2rem; between sections 3rem. */
.view h3.section {
  margin: var(--s7) 0 var(--s4);
}
.view h3.section.first {
  margin-top: 0;
}
#view-cli h3.section.first,
#view-account h3.section.first {
  margin: 0 0 var(--s4);
}
#view-account h3.section {
  margin: var(--s7) 0 var(--s4);
}
.view .prose {
  margin: 0 0 1.25rem;
}
.view .code {
  line-height: 1.6;
  padding: 1.25rem 5.5rem 1.25rem 1.5rem;
  margin: 0;
}
.view .code .copy {
  top: 0.75rem;
  right: 0.75rem;
}
.view .byhand {
  margin-top: var(--s6);
}
.view .byhand[open] summary {
  margin-bottom: 1.25rem;
}
#view-account .note {
  margin: 0 0 1.25rem;
}
#view-account .actions.start,
.blank .actions.start {
  margin-top: var(--s5);
}
.blank h2 {
  margin: 0 0 var(--s4);
}
/* Account: a section title sits a bit further from form labels and table headers than from plain text. */
#view-account h3.section,
#view-account h3.section.first {
  margin-bottom: var(--s5);
}

/* ===== Design review (proposed) ===== */
/* 1. Tabs belong to the content they control: 80px -> 48px under them. */
.steps {
  margin-bottom: var(--s7);
}
/* 2. Bigger click area for each tab (about 40px tall) without moving anything. */
.steps li {
  position: relative;
}
.steps button::after {
  content: "";
  position: absolute;
  inset: -2px 0 -0.75rem 0;
}
/* 3. One type scale: 3.6rem title, 1.4rem page heading, 1.1rem section, 1rem body, .9rem small, .85rem code. */
.prose,
.view .prose {
  font-size: 1rem;
}
.steps li,
.note,
button,
.status {
  font-size: 0.9rem;
}
button.small,
.copy-inline {
  font-size: 0.85rem;
}
h2,
.blank h2 {
  font-size: 1.4rem;
}
/* 4. Read-only values are text, not a grayed-out box. */
.static {
  margin: 0 0 var(--s5);
}
.static .k {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--s3);
  text-box: trim-both cap alphabetic;
}
.static .v {
  color: var(--body);
}
/* 5. Page actions line up with the content (left), everywhere. */
.view .actions {
  justify-content: flex-start;
}
.view .code + .note {
  margin-top: 1.25rem;
}
/* A link that looks like a button (the Contact us email link). */
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0 var(--s5);
  border: 1px solid var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 180ms ease;
}
a.button.primary {
  background: var(--navy);
  color: var(--off-white);
}
a.button:hover {
  opacity: 0.68;
}
.blank .note {
  margin-top: var(--s5);
}
/* Inline code: monospace spaces are as wide as a letter, so tighten them to read as one phrase. */
.mono {
  word-spacing: -0.3em;
}
/* Agent prompt as readable text: body font, code font only for commands, hanging indent, grouped steps. */
.code.prompt {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: normal;
  color: var(--navy);
}
.code.prompt p {
  margin: 0 0 0.75rem;
}
.code.prompt ol {
  margin: 0;
  padding-left: 1.4rem;
}
.code.prompt li {
  padding-left: 0.25rem;
}
.code.prompt li + li {
  margin-top: 0.5rem;
}
.code.prompt li::marker {
  color: var(--muted);
}
.code.prompt code {
  font-family: var(--mono);
  font-size: 0.85rem;
  word-spacing: -0.3em;
}
.code.prompt code {
  white-space: nowrap;
}
@media (max-width: 680px) {
  .code.prompt code {
    white-space: normal;
    word-break: break-all;
  }
}
/* Copy button: top-right, smaller, its center level with the first line of the block. */
.view .code .copy {
  top: 1rem;
  right: 1rem;
  height: 2rem;
  padding: 0 0.85rem;
  font-size: 0.85rem;
}
/* Empty Machines: the sentence and its link on one line. */
.prose.one-line {
  max-width: none;
}
.linkish.inline {
  font: inherit;
  color: inherit;
  height: auto;
  padding: 0;
}

/* API keys: a plain checkbox line, and the once-shown secret in the same code box the CLI page uses */
.checkline {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-weight: 400;
  margin: 0 0 var(--s5);
  cursor: pointer;
}
.checkline input {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  margin: 0;
  flex: none;
  accent-color: var(--navy);
}
#apikeyNew {
  padding-right: 6rem;
}
.tag {
  color: var(--muted);
}

/* Two-factor setup: the QR code, and the recovery codes in two columns. */
.qr {
  width: 10rem;
  height: 10rem;
  margin: var(--s4) 0;
}
.qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
#mfaCodesText {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.35rem 2.5rem;
}
#mfaState {
  margin-bottom: 0;
}
