*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--cf-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--cf-text);
  background: var(--cf-bg);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

html.standalone body {
  overscroll-behavior-y: none;
  user-select: none;
  -webkit-user-select: none;
}

html.standalone input,
html.standalone textarea {
  user-select: text;
  -webkit-user-select: text;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: calc(52px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  background: var(--cf-header);
  color: var(--cf-on-header);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  display: block;
  height: 28px;
  width: auto;
}

:root[data-theme="dark"] .only-light,
:root:not([data-theme="dark"]) .only-dark {
  display: none;
}

main {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px calc(88px + env(safe-area-inset-bottom));
  outline: none;
}

main[aria-busy="true"] {
  opacity: 0.6;
}

h1,
h2 {
  font-family: var(--cf-font-heading);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 26px;
  margin: 4px 0 16px;
}

h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

p {
  margin: 0 0 12px;
}

.card > h2:not(:first-child) {
  margin-top: 16px;
}

main a:not(.btn) {
  color: var(--cf-link);
  font-weight: 500;
}

.muted {
  color: var(--cf-muted);
  font-size: 14px;
}

.card {
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius);
  padding: 16px;
  margin-bottom: 12px;
}

.card.highlight {
  position: relative;
  overflow: hidden;
  padding-top: 22px;
  background: var(--cf-feature);
  border-color: transparent;
  color: var(--cf-on-feature);
}

.card.highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--cf-accent);
}

.card.error {
  background: var(--cf-danger-soft);
  border-color: transparent;
  color: var(--cf-danger);
}

.amount {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--cf-radius-sm);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: var(--cf-primary);
  color: var(--cf-on-primary);
}

.btn:active {
  background: var(--cf-primary-pressed);
}

.btn.secondary {
  background: var(--cf-surface);
  color: var(--cf-text);
  border: 1px solid var(--cf-text);
  font-weight: 500;
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn + .btn {
  margin-top: 8px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--cf-border);
}

.list li:last-child {
  border-bottom: 0;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--cf-primary-soft);
  color: var(--cf-on-primary-soft);
}

.badge.paid {
  background: transparent;
  color: var(--cf-success);
  padding-left: 0;
}

.unread {
  font-weight: 700;
}

fieldset {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
}

legend {
  font-weight: 600;
  margin-bottom: 8px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius-sm);
  background: var(--cf-surface);
}

.option:has(input:checked) {
  border-color: var(--cf-primary);
  background: var(--cf-primary-soft);
  color: var(--cf-on-primary-soft);
}

.option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--cf-control);
}

.option span {
  flex: 1;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--cf-text);
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius-sm);
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: var(--cf-accent);
  box-shadow: inset 0 -2px 0 var(--cf-accent);
  outline: none;
}

.btn:focus-visible,
.tabbar a:focus-visible,
.option:has(input:focus-visible) {
  outline: 3px solid var(--cf-focus-ring);
  outline-offset: 2px;
}

.field-error {
  color: var(--cf-danger);
  font-size: 14px;
  margin-top: 4px;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--cf-surface);
  border-top: 1px solid var(--cf-border);
}

.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 6px;
  font-size: 12px;
  color: var(--cf-muted);
  text-decoration: none;
}

.tabbar a[aria-current="page"] {
  color: var(--cf-tab-active);
  font-weight: 600;
  box-shadow: inset 0 3px 0 var(--cf-accent);
}

.tabbar svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  background: var(--cf-overlay);
}

.sheet {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  background: var(--cf-surface);
  border-radius: 20px 20px 0 0;
}

.sheet ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.sheet li {
  margin-bottom: 10px;
}

.sheet-pointer {
  position: fixed;
  z-index: 51;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cf-accent);
  color: var(--cf-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

.sheet-pointer.bottom-right {
  right: 16px;
  bottom: calc(8px + env(safe-area-inset-bottom));
}

.sheet-pointer.bottom-center {
  left: calc(50% - 22px);
  bottom: calc(8px + env(safe-area-inset-bottom));
}

.sheet-pointer.top-right {
  right: 16px;
  top: calc(8px + env(safe-area-inset-top));
}

.sheet-backdrop.pointer-bottom {
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

.sheet-backdrop.pointer-bottom .sheet {
  border-radius: 20px;
}

@media (prefers-reduced-motion: no-preference) {
  .sheet-pointer.bottom-right,
  .sheet-pointer.bottom-center {
    animation: nudge-down 1s ease-in-out infinite;
  }

  .sheet-pointer.top-right {
    animation: nudge-up 1s ease-in-out infinite;
  }
}

@keyframes nudge-down {
  50% {
    transform: translateY(6px);
  }
}

@keyframes nudge-up {
  50% {
    transform: translateY(-6px);
  }
}

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(80px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: var(--cf-radius-sm);
  background: var(--cf-text);
  color: var(--cf-bg);
}

.topbar {
  justify-content: space-between;
}

.topbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  color: var(--cf-on-header);
  border-radius: 50%;
}

.topbar-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-icon:focus-visible {
  outline: 3px solid var(--cf-focus-ring-on-header);
  outline-offset: -3px;
}

body.logged-out .tabbar,
body.booting .tabbar {
  display: none;
}

body.logged-out main {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.boot {
  display: flex;
  justify-content: center;
  padding: 80px 0;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--cf-border);
  border-top-color: var(--cf-accent);
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .spinner {
    animation: spin 0.8s linear infinite;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner.small {
  flex: none;
  width: 1em;
  height: 1em;
  border-width: 2px;
  border-color: currentColor;
  border-top-color: transparent;
}

.btn .spinner.small {
  margin-right: 10px;
}

.activity-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: color-mix(in srgb, var(--cf-bg) 55%, transparent);
}

.activity-overlay[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .activity-overlay {
    animation: activity-fade 0.2s ease-out;
  }
}

@keyframes activity-fade {
  from {
    opacity: 0;
  }
}

.activity-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 260px;
  padding: 24px 28px;
  border-radius: var(--cf-radius);
  background: var(--cf-surface);
  color: var(--cf-text);
  box-shadow: 0 8px 28px var(--cf-overlay);
  text-align: center;
}

.activity-text {
  margin: 0;
  font-weight: 600;
}

.quote.loading {
  position: relative;
}

.quote.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 4px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .quote.loading::after {
    animation: spin 0.8s linear infinite;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.center {
  text-align: center;
}

.small {
  font-size: 13px;
}

.back-link {
  display: inline-block;
  margin: 4px 0 8px;
  color: var(--cf-link);
  text-decoration: none;
  font-weight: 500;
}

.welcome,
.page {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.page-body {
  flex: 1 0 auto;
}

.page-body > :last-child {
  margin-bottom: 0;
}

.welcome-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 8px;
}

.welcome-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.welcome-logo-img {
  display: block;
  width: 228px;
  max-width: 100%;
  height: auto;
}

.welcome-actions {
  margin-bottom: 16px;
}

.risk-warning {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: var(--cf-radius-sm);
  background: var(--cf-notice);
  color: var(--cf-on-notice);
  font-size: 14px;
  line-height: 1.4;
}

main .risk-warning a {
  color: var(--cf-on-notice);
  font-weight: 700;
}

.form .field {
  margin-bottom: 16px;
}

.form label,
.label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.hint {
  margin: -2px 0 6px;
  font-size: 14px;
}

input[type="email"],
input[type="date"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--cf-text);
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius-sm);
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus {
  border-color: var(--cf-accent);
  box-shadow: inset 0 -2px 0 var(--cf-accent);
  outline: none;
}

input[aria-invalid="true"] {
  border-color: var(--cf-danger);
  box-shadow: inset 0 -2px 0 var(--cf-danger);
}

.password-holder {
  position: relative;
}

.password-holder input {
  padding-right: 72px;
}

.reveal {
  position: absolute;
  top: 0;
  right: 0;
  height: 48px;
  min-width: 64px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--cf-link);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.form .check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-weight: 400;
}

.check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--cf-control);
}

.form-links {
  margin: 14px 0 0;
  text-align: center;
}

.link-button {
  border: 0;
  background: none;
  padding: 8px;
  color: var(--cf-link);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--cf-radius-sm);
  font-size: 15px;
}

.banner[hidden] {
  display: none;
}

.banner.error {
  background: var(--cf-danger-soft);
  color: var(--cf-danger);
}

.banner.info {
  background: var(--cf-primary-soft);
  color: var(--cf-on-primary-soft);
}

input[type="range"] {
  width: 100%;
  margin: 12px 0 4px;
  accent-color: var(--cf-accent);
}

.range-ends {
  font-size: 13px;
  margin-bottom: 16px;
}

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

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--cf-border);
  border-radius: 999px;
  background: var(--cf-surface);
  font-size: 15px;
}

.chip input:checked + span {
  border-color: var(--cf-accent);
  background: var(--cf-accent);
  color: var(--cf-on-accent);
  font-weight: 700;
}

.chip input:focus-visible + span {
  outline: 3px solid var(--cf-focus-ring);
  outline-offset: 2px;
}

.quote.loading {
  opacity: 0.6;
}

.quote-headline {
  margin-bottom: 12px;
}

.quote-headline .muted {
  color: inherit;
  opacity: 0.85;
}

.quote-row {
  padding: 6px 0;
  border-top: 1px solid var(--cf-feature-divider);
}

.rep-example {
  margin-top: 16px;
}

.option-hint {
  display: block;
  font-size: 13px;
  color: var(--cf-muted);
}

.option:has(input:checked) .option-hint {
  color: inherit;
  opacity: 0.8;
}

@media (prefers-reduced-motion: no-preference) {
  body,
  .card,
  .tabbar,
  .topbar {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
}

.connection-result {
  margin-top: 12px;
  border-radius: var(--cf-radius-sm);
  font-size: 15px;
}

.connection-result:empty {
  display: none;
}

.connection-result.ok,
.connection-result.failed {
  padding: 10px 14px;
}

.connection-result.ok {
  background: var(--cf-primary-soft);
  color: var(--cf-on-primary-soft);
}

.connection-result.failed {
  background: var(--cf-danger-soft);
  color: var(--cf-danger);
}

.connection-result .row {
  padding: 2px 0;
}

.update-banner {
  position: sticky;
  top: 0;
  z-index: 70;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: var(--cf-notice);
  color: var(--cf-on-notice);
}

.update-banner p {
  margin: 0 0 8px;
  font-weight: 600;
}

.update-banner .btn {
  background: var(--cf-notice-action);
  color: var(--cf-on-notice-action);
}

.list .badge {
  margin-left: 8px;
  vertical-align: middle;
}

.dev-group + .dev-group {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--cf-border);
}

.dev-group h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--cf-text);
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius-sm);
}

select:focus {
  border-color: var(--cf-accent);
  box-shadow: inset 0 -2px 0 var(--cf-accent);
  outline: none;
}

.card .field {
  margin-top: 20px;
}

.card .field .label {
  margin-bottom: 6px;
}

.quote-prompt {
  margin: 0;
}

.quote-subhead {
  margin: 16px 0 4px;
  font-weight: 600;
}

.quote-schedule {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quote-schedule li {
  padding: 4px 0;
}

.quote-paydays {
  margin: 12px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

.easy-start-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1.5px solid var(--cf-border);
  border-radius: var(--cf-radius);
  background: var(--cf-surface);
  cursor: pointer;
}

.easy-start-card:has(.easy-start-input:checked) {
  border-color: var(--cf-accent);
  background: var(--cf-primary-soft);
  color: var(--cf-on-primary-soft);
}

.easy-start-card:has(.easy-start-input:focus-visible) {
  outline: 3px solid var(--cf-focus-ring);
  outline-offset: 2px;
}

.easy-start-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.easy-start-art {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 54px;
  height: 42px;
  padding: 5px;
  border-radius: var(--cf-radius-sm);
  background: var(--cf-bg);
}

.easy-start-bar {
  flex: 1 1 0;
  height: 70%;
  border-radius: 2px 2px 0 0;
  background: var(--cf-muted);
  opacity: 0.55;
}

.easy-start-bar:last-child {
  flex-grow: 0;
  height: 0;
  margin-left: -3px;
}

.easy-start-card:has(.easy-start-input:checked) .easy-start-bar {
  height: 90%;
  background: var(--cf-accent);
  opacity: 1;
}

.easy-start-card:has(.easy-start-input:checked) .easy-start-bar:first-child {
  height: 40%;
}

.easy-start-card:has(.easy-start-input:checked) .easy-start-bar:last-child {
  flex-grow: 1;
  height: 45%;
  margin-left: 0;
}

.easy-start-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.easy-start-title {
  font-weight: 700;
}

.easy-start-hint {
  font-size: 13px;
  line-height: 1.35;
  color: var(--cf-muted);
}

.easy-start-card:has(.easy-start-input:checked) .easy-start-hint {
  color: inherit;
  opacity: 0.85;
}

.easy-start-switch {
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--cf-muted);
}

.easy-start-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cf-surface);
  box-shadow: 0 1px 3px var(--cf-overlay);
}

.easy-start-card:has(.easy-start-input:checked) .easy-start-switch {
  background: var(--cf-accent);
}

.easy-start-card:has(.easy-start-input:checked) .easy-start-switch::after {
  transform: translateX(18px);
}

.easy-start-link {
  margin: 8px 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .easy-start-card,
  .easy-start-bar,
  .easy-start-switch,
  .easy-start-switch::after {
    transition: all 0.2s ease;
  }
}

.account-status {
  border-left: 6px solid var(--cf-border);
}

.account-status.ok {
  border-left-color: var(--cf-success);
}

.account-status.alert {
  border-left-color: var(--cf-danger);
  background: var(--cf-danger-soft);
}

.account-status.pending {
  border-left-color: var(--cf-accent);
}

.account-status-label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cf-muted);
}

.account-status-text {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.stack {
  display: grid;
  gap: 10px;
}

.push-log {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.push-log li {
  padding: 2px 0;
}

.notify-card {
  border-left: 6px solid var(--cf-border);
}

.notify-card.ok {
  border-left-color: var(--cf-success);
}

.notify-card.alert {
  border-left-color: var(--cf-danger);
  background: var(--cf-danger-soft);
}

.notify-text {
  margin: 0 0 12px;
}

.notify-recheck {
  margin: 8px 0 0;
}

.topbar-icon {
  position: relative;
}

.topbar-icon.has-alert::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cf-danger);
  box-shadow: 0 0 0 2px var(--cf-header);
}

.btn.danger {
  background: var(--cf-danger);
  color: var(--cf-surface);
}

.badge.alert {
  background: var(--cf-danger-soft);
  color: var(--cf-danger);
}

.profile-group + .profile-group {
  margin-top: 20px;
}

.profile-group h3 {
  margin: 12px 0 4px;
  font-size: 16px;
}

.profile-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px 12px;
}

.profile-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-item-title {
  font-weight: 600;
}

.profile-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  margin: -8px -8px 0;
}

.inline-form {
  flex-basis: 100%;
  margin-top: 8px;
}

.notice-text {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: var(--cf-radius-sm);
  background: var(--cf-primary-soft);
  color: var(--cf-on-primary-soft);
  font-size: 15px;
}

.notice-text[hidden] {
  display: none;
}

.btn[hidden] {
  display: none;
}

.field[hidden],
.manual-address[hidden] {
  display: none;
}

.options .option:last-child {
  margin-bottom: 0;
}

.option.compact {
  padding: 10px 12px;
  margin-bottom: 6px;
  font-size: 15px;
}

.field.has-error legend,
.field.has-error .label {
  color: var(--cf-danger);
}

.field.has-error .option,
.field.has-error .chip span,
.field.has-error input {
  border-color: var(--cf-danger);
}

.label {
  margin: 0 0 6px;
  font-weight: 600;
}

.dob-fields {
  display: flex;
  gap: 12px;
}

.dob-part label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 400;
}

.dob-d input,
.dob-m input {
  width: 4.2em;
}

.dob-y input {
  width: 6em;
}

.address-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: 2px;
  border-radius: var(--cf-radius-sm);
}

.error-summary {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 3px solid var(--cf-danger);
  border-radius: var(--cf-radius-sm);
  outline: none;
}

.error-summary[hidden] {
  display: none;
}

.error-summary h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.error-summary ul {
  margin: 0;
  padding-left: 18px;
}

.error-summary li a {
  color: var(--cf-danger);
  font-weight: 600;
}

.step-progress {
  margin-bottom: 4px;
}

.step-label {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--cf-muted);
}

.step-bar {
  display: flex;
  gap: 4px;
}

.step-bar span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--cf-border);
}

.step-bar span.done {
  background: var(--cf-accent);
}

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cf-border);
}

.review-row p {
  margin: 0;
  overflow-wrap: anywhere;
}

.review-label {
  font-size: 14px;
  color: var(--cf-muted);
}

.form label.option {
  display: flex;
  margin-bottom: 8px;
  font-weight: 400;
}

.form label.option.compact {
  margin-bottom: 6px;
}

.form label.chip {
  display: block;
  margin: 0;
  font-weight: 400;
}

.chips.even {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
}

.chips.even .chip span {
  justify-content: center;
  width: 100%;
  padding: 0 8px;
}

.staff-banner {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  padding-top: calc(8px + env(safe-area-inset-top));
  background: var(--cf-danger);
  color: var(--cf-surface);
  font-size: 14px;
}

.staff-banner-end {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

body.staff-view [data-write] {
  display: none !important;
}
