/* Setup in the Acquerello system. Tokens and fonts come from /assets/acquerello.css. */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  line-height: 1.5;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}
a {
  color: var(--cobalt);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--cobalt-deep);
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 6vw, 96px);
  border-bottom: 1px solid var(--rule);
}
/* The login page opens straight onto its scenery. */
body:has(#login:not([hidden])) .topbar {
  padding-bottom: 8px;
  border-bottom: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 28px;
  letter-spacing: -0.005em;
}
.brand:hover {
  color: inherit;
}
.brand .mark {
  width: 32px;
  height: 36px;
}
.topbar-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.topbar-button:hover {
  background: var(--veil);
}

main {
  flex: 1;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 40px 24px 0;
}
main:has(> #login:not([hidden])) {
  max-width: none;
  padding: 0;
}

/* Login: Etna in real ASCII across the page, then the promise and three steps. */
.login {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-hero {
  position: relative;
  width: 100%;
  /* The scenery sets its own height once drawn; reserve about the same meanwhile. */
  height: calc(max(100vw, 760px) / 3 + 50px);
  overflow: hidden;
}
.login-hero:has([data-ascii-state='fallback']) {
  display: none;
}
.login-hero canvas,
.ascii-highlight {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  pointer-events: none;
}
.login-copy {
  width: 100%;
  max-width: 900px;
  margin-top: -18px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.login .caps {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.login h1 {
  margin: 14px 0 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.login h1 em {
  color: var(--cobalt);
}
.login .lede {
  margin: 18px 0 0;
  max-width: 620px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--body);
  text-wrap: pretty;
}
.login-steps {
  list-style: none;
  width: 100%;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 28px;
}
.login-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.login-steps .vignette {
  display: block;
  width: 132px;
  height: 112px;
  margin-bottom: 8px;
}
.login-steps .numeral {
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
}
.login-steps .step-title {
  font-size: 20px;
}
.login-steps small {
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
}
.login-steps .time {
  font-size: 15px;
  color: var(--muted);
}
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 420px);
  min-height: 58px;
  margin-top: 44px;
  padding: 0 22px 0 28px;
  border-radius: 6px;
  background-color: var(--cobalt);
  color: var(--paper);
  text-decoration: none;
  font-size: 21px;
  transition: background-color 0.15s;
}
.cta-box:hover {
  background-color: var(--cobalt-deep);
  color: var(--paper);
}
.cta-arrow,
.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login .small {
  margin: 16px 0 0;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.45;
}

/* Waiting for approval: one illustration and one action, centred. */
.pending {
  max-width: 640px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pending .vignette {
  display: block;
  width: 210px;
  height: 172px;
  margin-bottom: 28px;
}
.pending h1 {
  margin: 12px 0 0;
  font-size: clamp(40px, 5vw, 56px);
}
.pending p:not(.eyebrow) {
  max-width: 480px;
  margin: 16px 0 0;
  font-size: 21px;
  line-height: 1.45;
  color: var(--body);
}
.pending button {
  margin: 34px 0 0;
}

h1,
h2,
h3 {
  font-weight: 400;
  text-wrap: balance;
}
h1 {
  margin: 12px 0 0;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}
p {
  margin: 12px 0;
}
.caps {
  color: var(--muted);
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.loading {
  margin: 48px 0 0;
  font-size: 20px;
  font-style: italic;
  color: var(--muted);
}
/* Each step opens with its heading beside its ASCII illustration. */
.step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
  margin: 48px 0 30px;
}
.step-copy {
  flex: 1 1 460px;
  min-width: 0;
}
.step-art {
  flex: none;
  display: block;
  width: 200px;
  height: 196px;
}
.step-art[data-ascii-state='fallback'] {
  display: none;
}
.intro {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: 20px;
  line-height: 1.45;
  font-style: italic;
  color: var(--muted);
}
.small,
.muted {
  font-size: 16px;
  color: var(--muted);
}
.field-note {
  margin-top: 6px;
}

/* Progress: + done, * here, o still to do, joined by dotted rules. */
.step-nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.step-nav .step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hushed);
  font: inherit;
  font-size: 17px;
  font-style: italic;
  text-align: left;
}
.step-mark {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 18px;
  color: var(--ink-todo);
}
.step-mark svg {
  flex: none;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.step-line {
  flex: 1;
  height: 4px;
  margin-right: 6px;
  color: var(--ink-dots);
  /* Evenly spaced dots, the same distance from the markers at both ends. */
  background: radial-gradient(circle, currentColor 1.15px, transparent 1.6px) 0 50% / 11px 4px space
    no-repeat;
}
.step-line[data-reached='true'] {
  color: var(--cobalt);
}
.step-nav .step[data-state='done'],
.step-nav .step[data-done='true'] {
  color: var(--cobalt);
  font-style: normal;
}
.step-nav .step[data-state='done'] .step-mark,
.step-nav .step[data-done='true'] .step-mark {
  color: var(--cobalt);
}
.step-nav .step[data-state='current'] {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}
.step-nav .step[data-state='current'][data-done='true'] {
  color: var(--cobalt);
}
.step-nav .step[data-state='current']:not([data-done='true']) .step-mark {
  color: var(--ink-pink);
}
.step-nav button.step:enabled {
  cursor: pointer;
}
.step-nav button.step:hover:enabled .step-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.step-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step-sub {
  font-style: italic;
  font-weight: 400;
}

/* Buttons: a cobalt wash for the main action, quiet outlines for the rest. The base
   carries no specificity, so .primary, .quiet and .text-button always win. */
:where(.button, button[data-action], button[data-view]:not(.step), main section button:not(.step)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin: 26px 26px 0 0;
  padding: 0 28px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}
.primary,
button.primary,
.button.primary {
  border-color: var(--cobalt);
  background-color: var(--cobalt);
  color: var(--paper);
}
.primary:hover:enabled,
.button.primary:hover {
  border-color: var(--cobalt-deep);
  background-color: var(--cobalt-deep);
  color: var(--paper);
}
.primary:disabled {
  border-color: var(--cobalt-quiet);
  background-color: var(--cobalt-quiet);
  opacity: 1;
}
.quiet,
button.quiet,
.button.quiet {
  min-height: 46px;
  padding: 0 20px;
  font-size: 18px;
}
.quiet:hover:enabled,
.button.quiet:hover {
  background: var(--veil);
  color: var(--ink);
}
.link-button,
button.link-button,
.text-button,
button.text-button,
a.text-button {
  min-height: 44px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--cobalt);
  font-size: 18px;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-button:hover:enabled,
.text-button:hover:enabled,
a.text-button:hover {
  background: transparent;
  color: var(--cobalt-deep);
}
a.text-button {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
/* Dati / Documenti / Conferma, above the heading. */
.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 22px;
  font-size: 17px;
}
.tabs .tab {
  min-height: 32px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  color: var(--cobalt);
  font-size: 17px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tabs .tab:hover:enabled {
  background: transparent;
  color: var(--cobalt-deep);
}
.tabs .tab[aria-current='step'] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.tabs .tab:disabled {
  opacity: 1;
  color: var(--hushed);
  font-style: italic;
  text-decoration: none;
}
.tab-sep {
  font-family: var(--mono);
  color: var(--ink-dots);
}

/* Forms */
label {
  display: block;
  margin: 16px 0 6px;
  font-size: 18px;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 19px;
}
input::placeholder {
  color: var(--hushed);
  font-style: italic;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: inset 0 0 0 1px var(--cobalt);
}
input[readonly] {
  background: transparent;
  border-color: transparent;
  border-bottom-color: var(--rule);
  border-radius: 0;
  color: var(--muted);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.fields .wide {
  grid-column: 1 / -1;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 30px 0 10px;
  font-size: 19px;
  cursor: pointer;
}
.check-label input,
.choice-card input {
  width: 20px;
  height: 20px;
  min-height: 0;
  flex: none;
  margin: 4px 0 0;
  accent-color: var(--cobalt);
}
.check-label + .small {
  margin: 0 0 0 32px;
  font-size: 16.5px;
  font-style: italic;
}

/* Choice cards (holder type, calendar) */
.end-user-choice,
.choice-list {
  margin: 0;
  padding: 0;
  border: 0;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 14px;
}
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.choice-card:hover {
  border-color: #cfc4a8;
}
.choice-card:has(:checked) {
  border-color: var(--cobalt);
  box-shadow: inset 0 0 0 1px var(--cobalt);
}
.choice-card:has(:disabled) {
  cursor: default;
}
.calendar-card {
  align-items: center;
  padding: 18px 22px;
}
.calendar-card input {
  margin: 0;
}
.choice-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.calendar-card .choice-copy {
  gap: 2px;
}
.choice-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.calendar-card .choice-title {
  font-size: 20px;
}
.choice-desc {
  font-size: 17px;
  line-height: 1.4;
  font-style: italic;
  color: var(--muted);
}
.calendar-card .choice-desc {
  font-size: 15.5px;
}
.swatch {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--cobalt);
}
.badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

/* Phone input: the +39 prefix in monospace, ruled off from the number */
.phone-input {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  min-height: 56px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--paper);
}
.phone-prefix {
  padding-right: 12px;
  border-right: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
}
.phone-input input {
  flex: 1;
  width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 21px;
  font-variant-numeric: lining-nums tabular-nums;
}
.phone-input input:focus {
  box-shadow: none;
}
.phone-input:focus-within {
  border-color: var(--cobalt);
  box-shadow: inset 0 0 0 1px var(--cobalt);
}

/* Boxes, status, timing */
.box {
  margin: 22px 0;
  padding: 24px 26px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
}
.box p:first-child {
  margin-top: 0;
}
.box p:last-child {
  margin-bottom: 0;
}
.box > button:first-of-type,
.box > .button:first-of-type {
  margin-top: 14px;
}
.phone-recovery {
  overflow-wrap: anywhere;
}
.ledger-box {
  border-width: 1px 0;
  border-color: var(--rule);
  border-radius: 0;
  background: transparent;
  padding-inline: 0;
}
.ledger-value {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.chat-handoff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 36px;
  padding: 22px 24px;
}
.chat-handoff h2 {
  margin: 0;
}
.chat-handoff p {
  margin: 4px 0 0;
  font-size: 17.5px;
  color: var(--muted);
}
.chat-handoff .button {
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  font-size: 19px;
}
/* A short ASCII mark before the line: * pulsing while under way, + once done. */
.status-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 0;
  font-size: 19px;
}
.status-dot {
  flex: none;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink-pink);
  animation: pulse 1.6s ease-in-out infinite;
}
.status-dot::before {
  content: '*';
}
.status-line[data-state='done'] .status-dot::before {
  content: '+';
}
.status-line[data-state='done'] .status-dot {
  color: var(--ink-leaf);
  animation: none;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
.timing {
  list-style: none;
  margin: 22px 0 8px;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.timing li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-style: italic;
}
.timing .caps {
  font-style: normal;
  min-width: 160px;
  color: var(--muted);
}
.number-box {
  max-width: 620px;
  margin: 24px 0;
  padding: 26px 28px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
}
.number-box p {
  margin: 0;
}
.number-box > .small:first-child {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.number-box > .small:last-child:not(:first-child) {
  font-size: 17px;
  font-style: italic;
}
.phone-number {
  display: block;
  margin: 8px 0;
  color: var(--cobalt);
  text-decoration: none;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.1;
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.number-box a.phone-number:hover {
  color: var(--cobalt-deep);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.setup-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
  margin-top: 22px;
}
.setup-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.setup-card h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.setup-card .small {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}
.setup-card button {
  margin-top: 6px;
}

/* Request tracker and checklist, in ASCII: + done, * under way, o to do */
.tracker,
.checklist {
  list-style: none;
  margin: 22px 0;
  padding: 0;
}
.tracker li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  font-size: 19px;
}
.tracker li:not(:last-child)::after {
  content: ':';
  grid-column: 1;
  font-family: var(--mono);
  line-height: 1.1;
  color: var(--ink-dots);
}
.tracker-dot {
  font-family: var(--mono);
  font-weight: 700;
}
.tracker-dot::before {
  content: 'o';
  color: var(--ink-todo);
}
.tracker [data-state='done'] .tracker-dot::before {
  content: '+';
  color: var(--cobalt);
}
.tracker [data-state='current'] .tracker-dot::before {
  content: '*';
  color: var(--ink-pink);
}
.tracker [data-state='current'] {
  font-weight: 600;
}
.tracker [data-state='attention'] .tracker-dot::before {
  content: '!';
  color: var(--danger);
}
.tracker [data-state='attention'] {
  color: var(--danger);
}
.tracker [data-state='todo'] {
  color: var(--muted);
}
.checklist {
  max-width: 620px;
  border-top: 1px solid var(--rule);
}
.checklist li {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 19px;
}
.checklist li::before {
  content: 'o';
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink-todo);
}
.checklist li[data-done='true']::before {
  content: '+';
  color: var(--cobalt);
}
.checklist li[data-done='false'] {
  color: var(--muted);
}
.say {
  margin: 32px 0 0;
}
.say-lines {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.say-lines li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 21px;
  font-style: italic;
}
.say-lines li::before {
  content: '>';
  font-family: var(--mono);
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  color: var(--ink-gold);
}

/* Temporary number: offered openly, still opt-in */
.temporary-option {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}
.temporary-option .offer-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  text-align: left;
  cursor: pointer;
}
.temporary-option .offer-toggle:hover {
  background: transparent;
  color: var(--cobalt-deep);
}
.offer-chevron {
  display: inline-block;
  font-size: 24px;
  color: var(--cobalt);
  transition: transform 0.15s;
}
.temporary-option .offer-toggle[aria-expanded='true'] .offer-chevron {
  transform: rotate(90deg);
}
.offer-teaser {
  margin: 2px 0 0;
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
}
#temporary-offer {
  margin-top: 20px;
  padding: 24px 26px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
}
.temporary-option h2 {
  margin: 0;
  font-size: 26px;
}
#temporary-offer button {
  margin-top: 14px;
}
#temporary-offer .small {
  margin-bottom: 0;
}
.availability-note {
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--veil);
}
.request-readiness {
  margin: 24px 0;
}

/* Documents: camera first, dashed frames with + at the corners */
.photo-upload {
  margin-top: 8px;
}
.photo-upload .fields {
  gap: 22px;
}
.photo-drop-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 210px;
  margin: 0;
  padding: 28px 24px;
  border: 1.5px dashed #cfc4a8;
  border-radius: 4px;
  background: var(--paper);
  text-align: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.photo-drop-zone::before,
.photo-drop-zone::after,
.corners::before,
.corners::after {
  content: '+';
  position: absolute;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-gold);
}
.photo-drop-zone::before,
.corners::before {
  left: -6px;
}
.photo-drop-zone::after,
.corners::after {
  right: -6px;
}
.photo-drop-zone::before,
.photo-drop-zone::after {
  top: -10px;
}
.corners::before,
.corners::after {
  bottom: -10px;
}
.corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.photo-drop-zone:hover,
.photo-drop-zone.drag-over {
  border-color: var(--cobalt);
  background: #fbf7ec;
}
.photo-drop-zone:focus-within {
  border-color: var(--cobalt);
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}
.photo-drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.photo-icon {
  display: grid;
  place-items: center;
  color: var(--cobalt);
}
.photo-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}
.photo-drop-title,
.photo-file-name,
.photo-drop-hint,
.photo-feedback {
  display: block;
}
.photo-drop-title {
  font-size: 21px;
}
.photo-file-name {
  font-size: 17px;
  color: var(--body);
  overflow-wrap: anywhere;
}
.photo-drop-hint {
  font-size: 15.5px;
  font-style: italic;
  color: var(--muted);
}
.photo-preview {
  display: block;
  width: 100%;
  max-height: 170px;
  margin: 4px auto 0;
  object-fit: contain;
  border: 1px solid var(--rule);
}
.photo-feedback {
  font-size: 15px;
  color: var(--muted);
}
.photo-feedback:empty,
.upload-status:empty {
  display: none;
}
.photo-drop-zone[data-error='true'] {
  border-color: var(--danger);
  border-style: solid;
}
.photo-drop-zone[data-error='true'] .photo-feedback,
.upload-status[data-error='true'],
.error {
  color: var(--danger);
}
.upload-status {
  margin: 0 0 14px;
  font-style: italic;
}
.document-pdf {
  display: block;
  margin: 6px auto 0;
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.tips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  font-size: 18px;
}
.tips li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.tips li::before {
  content: '+';
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink-leaf);
}
.privacy-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 680px;
  margin: 22px 0 6px;
  font-size: 16.5px;
  line-height: 1.45;
}
.privacy-note .icon {
  flex: none;
  margin-top: 2px;
  color: var(--muted);
}
.business-document {
  margin: 30px 0;
}
.supporting-upload > .photo-drop-zone {
  margin-top: 14px;
}
.supporting-upload > .small {
  margin: 14px 0;
}
.address-help {
  margin-top: 18px;
}

/* Review as a ledger: read values sit quietly, gaps stand out */
.ledger-fields label {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.ledger-fields label[data-filled='true'] input:not(:focus) {
  border-color: transparent;
  border-bottom-color: var(--rule);
  border-radius: 0;
  background: transparent;
  padding-inline: 0;
}
.ledger-fields label[data-filled='false'] {
  color: var(--ink);
}
.ledger-fields label[data-filled='false'] input {
  border-color: var(--cobalt);
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--cobalt);
}

/* Disclosures and odds and ends */
summary {
  cursor: pointer;
  line-height: 1.5;
}
summary.link-button {
  display: inline-flex;
  align-items: center;
  list-style: none;
}
summary.link-button::-webkit-details-marker {
  display: none;
}
details > .small {
  margin-top: 12px;
}
#meta-guide {
  max-width: 620px;
  margin-top: 26px;
}
.guide {
  margin-top: 10px;
  padding: 24px 26px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.guide h2 {
  margin: 0;
  font-size: 26px;
}
.guide ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: guide;
}
.guide li {
  display: grid;
  grid-template-columns: 30px 1fr;
  line-height: 1.4;
  counter-increment: guide;
}
.guide li::before {
  content: counter(guide) '.';
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink-gold);
}
.guide .button {
  margin: 0;
}
.guide .small {
  margin: 0;
  font-style: italic;
}
li {
  line-height: 1.6;
}
output {
  display: block;
  padding: 14px;
  border-radius: 6px;
  background: var(--veil);
  overflow-wrap: anywhere;
  font-family: var(--mono);
}
#message:not(:empty) {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
  font-style: italic;
}
#message[data-error='true'] {
  border-color: var(--danger);
  color: var(--danger);
}
main:has(> #login:not([hidden])) #message:not(:empty) {
  max-width: 892px;
  margin: 18px auto;
}
#invite-output,
#candidate,
#observed-sender,
#calendar-status {
  overflow-wrap: anywhere;
}

/* Management: two panels that open with [+] and close with [-] */
.back-link {
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  font-size: 17px;
}
.back-link .glyph {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--cobalt);
}
.technical {
  margin-top: 28px;
  border-top: 1px solid var(--rule);
}
.technical + .technical,
#owner + .technical {
  margin-top: 0;
}
.technical:last-of-type {
  border-bottom: 1px solid var(--rule);
}
.technical > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  font-size: 26px;
  list-style: none;
}
.technical > summary::-webkit-details-marker {
  display: none;
}
.technical > summary::before {
  content: '[+]';
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--cobalt);
}
.technical[open] > summary::before {
  content: '[-]';
}
.technical > summary:hover {
  color: var(--cobalt-deep);
}
.technical > section {
  margin: 0 0 18px 46px;
  padding: 22px 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper);
}
.technical > section:last-child {
  margin-bottom: 30px;
}
.technical section h2 {
  font-size: 23px;
}
.technical section p {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.45;
}
.technical section button {
  min-height: 44px;
  margin: 10px 10px 0 0;
  padding: 0 16px;
  font-size: 16.5px;
}
.technical section button:not(.quiet):not(:disabled) {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: var(--paper);
}
.technical label {
  font-size: 17px;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 80px;
  padding: 0 24px 28px;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
}
/* A scattered rule of ASCII dots and crosses, as in the illustrations. */
.footer-rule {
  width: 100%;
  margin: 0;
  overflow: hidden;
  white-space: pre;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--ink-gold);
  opacity: 0.7;
}
.footer-rule::before {
  content: '.  .   :  .    +   .  .     .   :    .  .   +    .     .  :   .   .    +  .     .   .  :    .  .   +   .    .  .   :  .     .   +  .   .';
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }
  .topbar {
    padding: 14px 20px;
  }
  body:has(#login:not([hidden])) .topbar {
    justify-content: center;
    padding: 18px 20px 4px;
  }
  .brand {
    gap: 10px;
    font-size: 25px;
  }
  .brand .mark {
    width: 28px;
    height: 31px;
  }
  main {
    padding: 22px 20px 0;
  }
  .login-copy {
    margin-top: 0;
    padding: 0 22px;
  }
  .login h1 {
    font-size: 42px;
  }
  .login .lede {
    font-size: 19px;
  }
  /* On phones the three steps read as a list, illustration first. */
  .login-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 30px;
    text-align: left;
  }
  .login-steps li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    padding: 12px 0;
    border-top: 1px solid var(--rule);
  }
  .login-steps li:last-child {
    border-bottom: 1px solid var(--rule);
  }
  .login-steps .vignette {
    grid-row: 1 / span 3;
    width: 72px;
    height: 64px;
    margin: 0;
  }
  .login-steps .numeral,
  .login-steps .step-title,
  .login-steps small {
    grid-column: 2;
  }
  .login-steps .step-title {
    font-size: 18.5px;
    line-height: 1.25;
  }
  .login-steps small {
    font-size: 15.5px;
  }
  .login-steps .time {
    grid-column: 3;
    grid-row: 1 / span 3;
  }
  .cta-box {
    width: 100%;
    margin-top: 28px;
    font-size: 20px;
  }
  .step-head {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 26px;
  }
  .step-copy {
    flex-basis: auto;
  }
  .step-art {
    order: -1;
    align-self: center;
    width: 136px;
    height: 132px;
  }
  .intro {
    font-size: 18.5px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .step-nav .step {
    font-size: 14px;
  }
  .step-label {
    white-space: normal;
  }
  .step-sub {
    display: none;
  }
  :where(.button, button[data-action], button[data-view]:not(.step)) {
    width: 100%;
    margin-right: 0;
  }
  .link-button,
  button.link-button,
  .text-button,
  button.text-button,
  .tabs .tab,
  .back-link {
    width: auto;
  }
  .technical > section {
    margin-left: 0;
  }
  .chat-handoff .button {
    width: 100%;
  }
  footer {
    margin-top: 48px;
  }
}
