/* Enuclea Secure Intake: client page. */

.intake {
  display: flex;
  flex-direction: column;
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  margin-top: -144px;
  padding-bottom: 56px;
}

.stage:focus {
  outline: none;
}

/* ---------- views ---------- */

.view {
  width: 100%;
  animation: rise 0.6s var(--ease-out) both;
}

.view--code {
  max-width: 488px;
}

.view--accounts {
  max-width: 780px;
}

.view--done {
  max-width: 540px;
}

.view--support {
  max-width: 640px;
}

.view--support .rail span {
  width: 100%;
  animation: rail-fill 0.8s 0.1s var(--ease-out) both;
}

.view__body {
  padding: 28px 32px 32px;
}

.view__body > .title {
  margin-bottom: 10px;
}

.view__body > .lead {
  margin-bottom: 26px;
}

/* load-in stagger for the first view */
.view--code .view__body > * {
  animation: rise 0.7s var(--ease-out) both;
}

.view--code .view__body > :nth-child(1) {
  animation-delay: 0.12s;
}

.view--code .view__body > :nth-child(2) {
  animation-delay: 0.2s;
}

.view--code .view__body > :nth-child(3) {
  animation-delay: 0.28s;
}

/* step rail along the top edge of the panel */
.rail {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--silver-200);
}

.rail span {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--blue);
}

.view--accounts .rail span {
  width: 100%;
  animation: rail-fill 0.8s 0.1s var(--ease-out) both;
}

@keyframes rail-fill {
  from {
    width: 50%;
  }
}

.rail--done span {
  width: 100%;
  background: var(--ok-dot);
  animation: appear 0.6s 0.5s both;
}

/* ---------- live message slots ---------- */

.msg:empty {
  display: none;
}

.msg:focus {
  outline: none;
}

.msg .notice + .notice {
  margin-top: 8px;
}

.notice .tel {
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}

.code-wait {
  margin-top: -6px;
  text-align: center;
  color: var(--err-ink);
}

.code-wait span {
  color: var(--ink);
  letter-spacing: 0.06em;
}

/* ---------- A. access code ---------- */

.code-form {
  display: grid;
  gap: 18px;
}

.code {
  position: relative;
}

.code__input {
  display: block;
  width: 100%;
  height: 76px;
  padding: 0 12px 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.22em;
  /* Left-aligned from the meter's first segment, so each character sits on its own segment.
     9 cells (8 characters + dash) of 0.6em glyph + 0.22em tracking = 7.16em wide. */
  text-align: left;
  padding-left: calc(50% - 3.58em - 1px);
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid var(--silver-500);
  border-radius: var(--radius);
  caret-color: var(--blue);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.code__input::placeholder {
  color: #b3bbc6;
  opacity: 1;
}

.code__input:hover {
  border-color: var(--ink-3);
}

.code__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(2, 119, 189, 0.2);
}

.code__input[aria-invalid="true"] {
  border-color: var(--err);
}

.code__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.16);
}

.code__input[readonly] {
  color: var(--ink-2);
  background: var(--silver-50);
}

/* eight segments under the eight characters */
.code__meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  display: flex;
  justify-content: center;
  gap: 0.22em;
  font-size: 30px;
  pointer-events: none;
}

.code__meter span,
.code__meter i {
  width: 0.6em;
  height: 2px;
}

.code__meter span {
  background: var(--silver-200);
  transition: background-color 0.18s;
}

.code__meter span.on {
  background: var(--blue);
}

.code__meter.is-full span {
  background: var(--ok-dot);
}

.code__meter.is-bad span.on {
  background: var(--err);
}

.btn--lg {
  min-height: 52px;
  font-size: 16px;
}

/* ---------- B. accounts ---------- */

.session {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid var(--silver-200);
  border-radius: 3px;
  background: var(--silver-50);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.session__time {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.session__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.session.is-warn {
  border-color: var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn);
}

.session.is-warn .session__time {
  color: var(--warn);
}

.session.is-warn .session__dot {
  background: var(--warn-dot);
  animation-duration: 1s;
}

.session-warning:not(:empty) {
  margin: -8px 0 22px;
}

.accounts-form {
  display: grid;
}

.accounts {
  display: grid;
  gap: 16px;
  margin: 0;
}

.account {
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.account.is-new {
  animation: rise 0.45s var(--ease-out) both;
}

.account.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.account__card {
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.account:focus-within .account__card {
  border-color: #9cc7e3;
  box-shadow: 0 0 0 3px rgba(2, 119, 189, 0.07);
}

.account__head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 3px 6px 3px 18px;
  background: var(--silver-50);
  border-bottom: 1px solid var(--silver-200);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.account__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.account__title:focus {
  outline: none;
}

.account__state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.account__state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--silver-300);
}

.account[data-state="partial"] .account__state i {
  background: var(--warn-dot);
}

.account[data-state="ready"] .account__state,
.account[data-state="saved"] .account__state {
  color: var(--ok);
}

.account[data-state="ready"] .account__state i,
.account[data-state="saved"] .account__state i {
  background: var(--ok-dot);
}

.account[data-state="failed"] .account__state {
  color: var(--err);
}

.account[data-state="failed"] .account__state i {
  background: var(--err);
}

.account[data-state="failed"] .account__card {
  border-color: var(--err-line);
}

.account[data-state="failed"] .account__head {
  background: var(--err-bg);
  border-bottom-color: var(--err-line);
}

.account[data-state="saved"] .account__card {
  border-color: var(--ok-line);
}

.account[data-state="saved"] .account__head {
  background: var(--ok-bg);
  border-bottom: 0;
  border-radius: var(--radius-lg);
}

.account[data-state="saved"] .account__body,
.account[data-state="saved"] .account__remove {
  display: none;
}

.account__remove {
  margin-left: auto;
  gap: 7px;
  color: var(--ink-3);
  font-weight: 500;
}

.account__remove:hover:not(:disabled) {
  color: var(--err);
  background: var(--err-bg);
}

.account__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  padding: 20px 18px 22px;
}

.field--full {
  grid-column: 1 / -1;
}

/* password with show/hide */
.pw {
  position: relative;
}

.pw__input {
  padding-right: 98px;
}

.pw__toggle {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 44px;
  padding: 0 13px;
  border: 0;
  border-left: 1px solid var(--silver-200);
  border-radius: 0 3px 3px 0;
  background: transparent;
  color: var(--blue-press);
  font-size: 14px;
  font-weight: 600;
}

.pw__toggle:hover {
  background: var(--blue-50);
}

.pw__toggle:focus-visible {
  outline-offset: -2px;
}

.pw__eye-off {
  display: none;
}

.pw.is-shown .pw__eye {
  display: none;
}

.pw.is-shown .pw__eye-off {
  display: block;
}

/* two-factor disclosure */
.extra {
  padding-top: 2px;
}

.extra__summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding-right: 8px;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--blue-press);
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.extra__summary::-webkit-details-marker {
  display: none;
}

.extra__summary .opt {
  font-weight: 400;
  color: var(--ink-3);
}

.extra__summary:hover {
  color: var(--blue-deep);
}

.extra__chev {
  transition: transform 0.2s var(--ease-out);
}

.extra[open] .extra__chev {
  transform: rotate(90deg);
}

.extra__body {
  display: grid;
  gap: 9px;
  padding: 2px 0 2px 23px;
  border-left: 1px solid var(--silver-200);
  margin-left: 6px;
}

.input--mono {
  font-family: var(--font-mono);
  font-size: 14.5px;
}

.accounts__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.add svg {
  margin-left: -2px;
}

.send {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px 22px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--silver-200);
}

.send > .msg {
  grid-column: 1 / -1;
}

.send__btn {
  min-width: 232px;
}

.send__note {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-3);
  max-width: 40ch;
}

/* ---------- C. done ---------- */

.readout--ok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ok);
}

.ok-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok-dot);
}

.done {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 36px;
  padding-bottom: 34px;
}

.done__mark {
  color: var(--blue);
  margin-bottom: 18px;
}

.done__die {
  animation: appear 0.4s 0.35s both;
}

.done__pins {
  stroke-dasharray: 8;
  stroke-dashoffset: 8;
  animation: draw 0.45s 0.55s var(--ease-out) forwards;
}

.done__check {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  stroke: var(--ok-dot);
  animation: draw 0.5s 0.85s var(--ease-out) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.done .title {
  margin-bottom: 10px;
}

.done__count {
  color: var(--ink);
  font-weight: 500;
  margin-inline: auto;
}

.done__close {
  margin-top: 6px;
  color: var(--ink-2);
}

.done__earlier {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-3);
}

.done__note {
  width: 100%;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--silver-200);
  font-size: 14px;
  color: var(--ink-3);
}

.view--done .view__body > * {
  animation: rise 0.6s var(--ease-out) both;
}

.view--done .view__body > :nth-child(2) {
  animation-delay: 0.55s;
}

.view--done .view__body > :nth-child(3) {
  animation-delay: 0.65s;
}

.view--done .view__body > :nth-child(4) {
  animation-delay: 0.75s;
}

.view--done .view__body > :nth-child(5) {
  animation-delay: 0.85s;
}

.view--done .view__body > :nth-child(6) {
  animation-delay: 0.95s;
}

.view--done .view__body > :nth-child(7) {
  animation-delay: 1.05s;
}

/* ---------- remote support ---------- */

.intake[data-state="support"] .assurance {
  display: none;
}

.safety {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px 16px;
  border: 1px solid #cfe4f2;
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue-50);
}

.safety__icon {
  flex: none;
  margin-top: 1px;
  color: var(--blue);
}

.safety__lead {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.safety__text {
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.safety__call {
  display: block;
  margin-top: 4px;
}

.safety__call a {
  font-weight: 600;
  white-space: nowrap;
}

.support__phone {
  margin-bottom: 22px;
}

.steps {
  display: grid;
  margin: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0 16px;
  padding-bottom: 28px;
}

.step:last-child {
  padding-bottom: 0;
}

/* the trace joining the step badges */
.step::before {
  content: "";
  position: absolute;
  left: 17.5px;
  top: 42px;
  bottom: 6px;
  width: 1px;
  background: var(--silver-200);
}

.step:last-child::before {
  display: none;
}

.step__no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--silver-300);
  border-radius: var(--radius);
  background: #ffffff;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.step__tick {
  display: none;
}

.steps[data-progress="0"] .step[data-step="1"] .step__no,
.steps[data-progress="1"] .step[data-step="2"] .step__no {
  border-color: var(--blue);
  background: var(--blue-50);
  color: var(--blue-press);
  box-shadow: 0 0 0 3px rgba(2, 119, 189, 0.08);
}

.steps[data-progress="1"] .step[data-step="1"] .step__no {
  border-color: var(--ok-dot);
  background: var(--ok-dot);
  color: #ffffff;
}

.steps[data-progress="1"] .step[data-step="1"] .step__n {
  display: none;
}

.steps[data-progress="1"] .step[data-step="1"] .step__tick {
  display: block;
}

.steps[data-progress="1"] .step[data-step="1"]::before {
  background: linear-gradient(180deg, var(--ok-dot), var(--blue));
}

.step__body {
  min-width: 0;
}

.step__title {
  margin: 7px 0 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.step__text,
.step__short {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.step__short {
  display: none;
}

.step__get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.step__download {
  min-width: 210px;
}

.step__hint {
  font-size: 13.5px;
  color: var(--ink-3);
}

.step__started {
  display: grid;
  gap: 2px;
  justify-items: start;
}

.step__ok {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--ok-line);
  border-radius: var(--radius);
  background: var(--ok-bg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ok);
}

.step__ok::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok-dot);
}

.step__ok:focus {
  outline: none;
}

.step__again {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
}

.os {
  display: grid;
  gap: 8px;
  margin: 0;
}

.os__row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius);
  background: #ffffff;
}

.os__row dt {
  display: grid;
  align-content: start;
  gap: 5px;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.os__row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.os__row b,
.step__short b {
  font-weight: 600;
  color: var(--ink);
}

.os__row.is-yours {
  order: -1;
  border-color: #b9d8ec;
  background: var(--blue-50);
}

.os__row.is-yours dt {
  color: var(--blue-press);
}

.os__yours {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--blue-press);
}

/* a tiny mock of the app's read-out, so the client knows what to look for */
.faux {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--navy-900);
  box-shadow: inset 0 0 0 1px rgba(192, 199, 209, 0.16);
}

.faux__label,
.faux__code {
  white-space: nowrap;
}

.faux__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a9b4c4;
}

.faux__code {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.12em;
  color: #ffffff;
}

/* compact steps, inside the collapsible panel */
.support--compact .safety {
  margin-bottom: 18px;
  padding: 11px 13px;
  gap: 11px;
}

.support--compact .safety__lead {
  font-size: 14.5px;
}

.support--compact .safety__text {
  font-size: 13.5px;
}

.support--compact .step {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0 12px;
  padding-bottom: 18px;
}

.support--compact .step:last-child {
  padding-bottom: 0;
}

.support--compact .step::before {
  left: 13.5px;
  top: 34px;
}

.support--compact .step__no {
  width: 28px;
  height: 28px;
  font-size: 11.5px;
}

.support--compact .step__title {
  margin: 4px 0 6px;
  font-size: 15px;
}

.support--compact .os,
.support--compact .faux,
.support--compact .step__hint {
  display: none;
}

.support--compact .step__short {
  display: block;
}

.support--compact .step__text,
.support--compact .step__short {
  font-size: 14px;
}

.support--compact .step__download {
  min-width: 0;
  min-height: 46px;
  font-size: 15px;
}

.support--compact .step__ok {
  padding: 9px 12px;
  font-size: 14px;
}

.remote-slot {
  margin-bottom: 22px;
}

.remote {
  border: 1px solid #b9d8ec;
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.remote__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 14px 6px 16px;
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.remote__summary::-webkit-details-marker {
  display: none;
}

.remote__summary:focus-visible {
  outline-offset: -2px;
}

.remote[open] .remote__summary {
  border-bottom: 1px solid #cfe4f2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.remote__icon {
  display: grid;
  color: var(--blue);
}

.remote__title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.remote__state {
  margin-left: auto;
  color: var(--blue-press);
  text-align: right;
  white-space: nowrap;
}

.step__download {
  white-space: nowrap;
}

.remote__state.is-done {
  color: var(--ok);
}

.remote__chev {
  flex: none;
  color: var(--blue-press);
  transition: transform 0.2s var(--ease-out);
}

.remote:not([open]) .remote__chev {
  transform: rotate(-90deg);
}

.remote__body {
  padding: 16px 16px 18px;
}

.done .remote-slot {
  width: 100%;
  margin: 24px 0 0;
  text-align: left;
}

/* ---------- reassurance under the panel ---------- */

.assurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
  margin-top: 26px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ink-3);
  animation: appear 0.8s 0.45s both;
}

.assurance li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
}

.assurance li + li {
  border-left: 1px solid var(--silver-200);
}

.assurance svg {
  color: var(--blue);
  flex: none;
}

.phish {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 64ch;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
  animation: appear 0.8s 0.55s both;
}

.phish svg {
  flex: none;
  margin-top: 2px;
  color: var(--warn-dot);
}

.phish a {
  font-weight: 600;
  white-space: nowrap;
}

.intake:not([data-state="code"]) .phish {
  display: none;
}

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .assurance {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .assurance li {
    padding: 0;
  }

  .assurance li + li {
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .account__body {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 16px 20px;
  }

  .send {
    grid-template-columns: 1fr;
  }

  .send__btn {
    width: 100%;
  }

  .send__note {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .stage {
    margin-top: -112px;
    padding-bottom: 40px;
  }

  .view__body {
    padding: 22px 18px 24px;
  }

  .view__body > .lead {
    margin-bottom: 22px;
  }

  .code__input,
  .code__meter {
    font-size: 26px;
  }

  .code__input {
    height: 70px;
  }

  .account__head {
    padding-left: 14px;
    gap: 10px;
  }

  .account__title {
    letter-spacing: 0.12em;
  }

  .account__state {
    font-size: 11.5px;
    letter-spacing: 0.04em;
  }

  .account__remove > span {
    font-size: 0;
  }

  .account__remove > span .vh {
    font-size: 14px;
  }

  .account__remove {
    width: 44px;
    padding: 0;
  }

  .extra__body {
    padding-left: 14px;
    margin-left: 6px;
  }

  .accounts__tools .add {
    flex: 1;
  }

  .assurance {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
    margin-top: 22px;
    padding: 0 4px;
  }

  .assurance li {
    padding: 0;
  }

  .assurance li + li {
    border-left: 0;
  }

  .phish {
    width: 100%;
    padding: 0 4px;
  }

  .done {
    padding-top: 28px;
  }
}

@media (max-width: 560px) {
  .step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0 12px;
  }

  .step::before {
    left: 14.5px;
    top: 36px;
  }

  .step__no {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .step__title {
    margin-top: 4px;
  }

  .step__download {
    width: 100%;
    min-width: 0;
  }

  .os__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .os__row dt {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .faux {
    gap: 10px;
    padding: 9px 12px;
  }

  .faux__label {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .faux__code {
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .step__download {
    padding-inline: 16px;
  }

  .meta-extra {
    display: none;
  }

  .safety {
    gap: 10px;
    padding: 12px 13px;
  }

  .remote__summary {
    flex-wrap: wrap;
    padding: 9px 13px;
    gap: 2px 10px;
  }

  .remote__chev {
    margin-left: auto;
  }

  .remote__state {
    order: 3;
    flex-basis: 100%;
    margin-left: 28px;
    text-align: left;
  }

  .remote__body {
    padding: 14px 13px 16px;
  }
}

@media (max-width: 420px) {
  .chip__more {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}


/* ---------- Returning Passkey Sign-In & Passkey Onboarding ---------- */

.passkey-return {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--silver-200);
  display: grid;
  gap: 12px;
}

.passkey-return__divider {
  text-align: center;
  color: var(--ink-3);
}

.view--passkey {
  max-width: 560px;
}

.passkey-form {
  display: grid;
  gap: 18px;
}

/* ---------- SOS Return Form (Mode 2) ---------- */

.sos-return-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.sos-return-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sos-return-row .input {
  flex: 1 1 240px;
}

/* ---------- Client Access Portal (Post-Passkey View) ---------- */

.view--portal {
  max-width: 960px;
}

.intake[data-state="portal"] .assurance,
.intake[data-state="passkey"] .assurance {
  display: none;
}

.portal-meta-left,
.portal-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-dashboard {
  display: grid;
  gap: 22px;
}

.portal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--silver-200);
}

.portal-health-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid var(--ok-line);
}

.portal-health-badge[data-status="warn"] {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: var(--warn-line);
}

.portal-card {
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 20px 22px;
  display: grid;
  gap: 16px;
}

.portal-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--silver-200);
}

.portal-card__title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}

/* Light Nexus Status Feed */
.nexus-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.nexus-stat {
  padding: 12px 14px;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius);
  background: var(--silver-50);
  display: grid;
  gap: 4px;
}

.nexus-stat[data-status="warn"] {
  border-color: var(--warn-line);
  border-left: 3px solid var(--warn-dot);
  background: var(--warn-bg);
}

.nexus-stat[data-status="warn"] .nexus-stat__val {
  color: var(--warn);
}

.nexus-stat__val {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.nexus-stat__val--sm {
  font-size: 14px;
  line-height: 1.35;
}

.nexus-tickets {
  display: grid;
  gap: 8px;
}

.nexus-ticket {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 14px;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius);
  background: #ffffff;
  font-size: 14px;
}

.nexus-ticket__id {
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--blue-50);
  color: var(--blue-press);
  font-size: 12px;
  font-weight: 500;
}

.nexus-ticket__id--neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.nexus-declined-section {
  display: grid;
  gap: 8px;
}

.nexus-declined-heading {
  margin: 0;
  color: var(--ink-2);
  font-weight: 600;
}

.nexus-ticket--declined {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.nexus-ticket__summary {
  flex: 1 1 260px;
  color: var(--ink-2);
}

.portal-sos-drawer {
  border: 1px solid #b9d8ec;
  border-radius: var(--radius);
  background: var(--blue-50);
}

.portal-sos-drawer__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--ink);
  list-style: none;
}

.portal-sos-drawer__summary::-webkit-details-marker {
  display: none;
}

.portal-sos-drawer__body {
  padding: 16px;
  border-top: 1px solid #cfe4f2;
  background: #ffffff;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Office Chip Live Status & KPIs */
.chip-heartbeat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ok);
}

.warn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn-dot);
}

.chip-live-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.chip-telemetry-col {
  display: grid;
  gap: 14px;
  align-content: start;
}

.chip-face-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #050811;
  border: 2px solid #334155;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px -8px rgba(15, 23, 42, 0.45);
  color: #f8fafc;
}

.chip-lcd-canvas {
  width: 192px;
  height: 362px;
  display: block;
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: #070b14;
}

.chip-face-meta {
  text-align: center;
}

.chip-site-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: #38bdf8;
  letter-spacing: 0.08em;
}

.chip-face-card .readout {
  color: #94a3b8;
}

.chip-face-card .readout[data-status="warn"] {
  color: #ff9f1c;
  font-weight: 600;
}

.chip-alert-banner {
  padding: 16px 18px;
  border: 1px solid var(--warn-line);
  border-left: 4px solid var(--warn-dot);
  border-radius: var(--radius);
  background: var(--warn-bg);
  display: grid;
  gap: 10px;
}

.chip-alert-banner__item {
  display: grid;
  gap: 4px;
}

.chip-alert-banner__badge {
  color: var(--warn);
  font-weight: 600;
}

.chip-alert-banner__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.chip-alert-banner__detail {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.chip-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chip-kpi {
  padding: 12px 14px;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius);
  background: var(--silver-50);
  display: grid;
  gap: 3px;
}

.chip-kpi__val {
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--ink);
}

.chip-kpi__sub {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* Connection Quality SVG Graph */
.cq-graph-box {
  border: 1px solid #1e293b;
  border-radius: var(--radius);
  background: #070d19;
  padding: 14px 16px;
  color: #e2e8f0;
}

.cq-graph-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.cq-graph-head .readout {
  color: #94a3b8;
}

.cq-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #cbd5e1;
}

.cq-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cq-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.cq-dot--lat {
  background: #38bdf8;
}

.cq-dot--mos {
  background: #a855f7;
}

.cq-dot--up {
  background: #22c55e;
}

.cq-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Curated Useful Finds */
.finds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.find-card {
  padding: 14px 16px;
  border: 1px solid var(--silver-200);
  border-left: 3px solid var(--ok-dot);
  border-radius: var(--radius);
  background: #ffffff;
  display: grid;
  gap: 6px;
}

.find-card--warn {
  border-left-color: var(--warn-dot);
  background: #fffdf9;
}

.find-card--critical {
  border-left-color: var(--err);
  background: var(--err-bg);
}

.find-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.find-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok-dot);
}

.find-card--warn .find-card__dot {
  background: var(--warn-dot);
}

.find-card--critical .find-card__dot {
  background: var(--err);
}

.find-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.find-card__detail {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.cadence-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.cadence-pill {
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--silver-200);
  background: #f8fafc;
  display: grid;
  gap: 5px;
}

.cadence-pill--12h {
  border-left: 3px solid var(--blue);
}

.cadence-pill--live {
  border-left: 3px solid var(--ok-dot);
  background: #f4fbf7;
}

.cadence-pill__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.portal-card__sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-3);
}

.nexus-snapshot-view {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.nexus-snap-summary {
  padding: 14px 16px;
  border: 1px solid var(--silver-200);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: #f8fafc;
  display: grid;
  gap: 4px;
}

.chip-showcase-wrap {
  position: relative;
  display: grid;
  gap: 18px;
}

.chip-showcase-wrap[data-exemplar="true"] {
  padding: 16px;
  border: 1.5px dashed #93c5fd;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.72) 0%, rgba(248, 250, 252, 0.85) 100%);
}

.chip-showcase-wrap[data-exemplar="true"] > .portal-card {
  opacity: 0.94;
  border-color: #cbd5e1;
}

.chip-exemplar-banner {
  position: sticky;
  top: 12px;
  z-index: 5;
  padding: 18px 20px;
  border: 1px solid #60a5fa;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.16);
  display: grid;
  gap: 10px;
}

.chip-exemplar-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chip-exemplar-banner__copy {
  flex: 1 1 360px;
  display: grid;
  gap: 5px;
}

.chip-exemplar-banner__badge {
  color: var(--blue);
  font-weight: 600;
}

.chip-exemplar-banner__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.chip-exemplar-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

.chip-exemplar-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.chip-voice-optin {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--silver-200);
  border-left: 3px solid #64748b;
  border-radius: var(--radius);
  background: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chip-voice-optin[data-optin="true"] {
  border-left-color: var(--ok-dot);
  background: #f4fbf7;
}

.chip-voice-optin__info {
  flex: 1 1 320px;
  display: grid;
  gap: 4px;
}

.chip-voice-optin__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.chip-voice-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #e2e8f0;
  color: #334155;
}

.chip-voice-badge[data-optin="true"] {
  background: #dcfce7;
  color: #166534;
}

.chip-voice-optin__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.chip-voice-optin__audit {
  margin: 0;
  color: var(--ink-3);
}

@media (max-width: 680px) {
  .chip-live-grid {
    grid-template-columns: 1fr;
  }

  .chip-kpis {
    grid-template-columns: 1fr;
  }
}
