/* 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(--s7) 0 var(--s4);
}
.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);
}
.actions.tight {
  margin-top: var(--s4);
}
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.95rem;
}
.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; }
/* Signed in: a main page, not a form. Small header at the very top, tabs, then content. */
.page.signed-in { padding-top: var(--s6); }
.page.signed-in .top { font-size: 1.75rem; margin-bottom: var(--s6); }
.page.signed-in .steps { margin-bottom: var(--s7); }
@media (max-width: 680px) { .page.signed-in { padding-top: var(--s5); } }
#machinesNote { margin-top: var(--s5); }
