/* Flash VDO: checking an email and a mobile (verify.js): a field with Verify beside it, the country picker, the
   code box of six cells, the dashboard's slim bar and its card for the email and the mobile. Built on the kit
   (site.css): its variables, buttons, chips, fields and modal. On sign-up, the dashboard and forgot.html. */

/* ------------------------------------------------ a field with Verify beside it */
.vf-line { position: relative; display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.vf-in { position: relative; flex: 1 1 0%; min-width: 0; }
.vf-in .input { height: 100%; }
.vf-go { flex: none; min-height: 44px; padding-inline: 16px; }
.vf-line .input[readonly] { color: var(--fg-2); }
.vf-ok { margin-left: 8px; padding: 1px 8px; vertical-align: 1px; font-size: 11px; }
.vf-ok[hidden] { display: none; }
.field.is-verified .vf-line .input { border-color: rgba(61, 220, 151, .55); }
.vf-why { font-size: var(--s-12); color: var(--fg-3); text-align: center; }
.vf-why[hidden] { display: none; }
/* a line whose button has longer words takes the button under it on a phone */
@media (max-width: 559px) {
  .vf-line.two { flex-wrap: wrap; }
  .vf-line.two > .btn { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .vf-line { gap: 5px; }
  .vf-line .input { padding-inline: 8px; }
  .vf-go { padding-inline: 11px; }
  .vf-cc { padding: 0 19px 0 7px; gap: 4px; }
  .vf-cc::after { right: 7px; }
}

/* ------------------------------------------------ the country picker: a flag and a dial code that open a list */
.vf-cc { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 28px 0 10px; position: relative;
  border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--night-2); color: var(--fg); font-size: var(--s-14);
  transition: border-color var(--f8), box-shadow var(--f12); }
.vf-cc::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid var(--fg-3);
  border-bottom: 1.5px solid var(--fg-3); transform: rotate(45deg); }
.vf-cc:hover { border-color: var(--fg-3); }
.vf-cc:focus-visible, .vf-cc[aria-expanded="true"] { outline: none; border-color: var(--flash); box-shadow: 0 0 0 3px rgba(255, 210, 63, .22); }
.vf-cc:disabled { opacity: .55; cursor: default; }
.vf-cc-face { display: inline-flex; align-items: center; gap: 6px; }
.vf-flag { font: 18px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.vf-dial { font-family: var(--f-mono); font-stretch: 87.5%; font-variant-numeric: tabular-nums; }
.vf-cc-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-width: 380px; display: grid; gap: 8px; padding: 8px;
  border: 1px solid var(--line-2); border-radius: var(--r-l); background: var(--panel-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); }
.vf-cc-pop[hidden] { display: none; }
.vf-cc-q { min-height: 40px; }
.vf-cc-list { max-height: min(264px, 46vh); margin: 0; padding: 0; list-style: none; overflow: auto; overscroll-behavior: contain; }
.vf-cc-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-m);
  color: var(--fg-2); font-size: var(--s-14); line-height: 1.3; cursor: pointer; }
.vf-cc-list li[hidden] { display: none; }
.vf-cc-list li:hover, .vf-cc-list li.is-active { background: var(--panel-3); color: var(--fg); }
.vf-cc-list li[aria-selected="true"] { color: var(--fg); font-weight: 600; }
.vf-cc-list li[aria-selected="true"] .vf-cc-code { color: var(--flash); }
.vf-cc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-cc-code { font: 500 var(--s-12)/1 var(--f-mono); font-stretch: 87.5%; color: var(--fg-3); }
.vf-cc-none { margin: 0; padding: 8px 10px; font-size: var(--s-14); color: var(--fg-3); }
.vf-cc-none[hidden] { display: none; }

/* ------------------------------------------------ a code on its way: where it went, six cells, a new one */
.vf-panel { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-l); background: var(--night-2);
  animation: fv-rise var(--f18) var(--ease-flash); }
.vf-panel[hidden] { display: none; }
.vf-say { margin: 0; font-size: var(--s-14); color: var(--fg-2); overflow-wrap: anywhere; }
.vf-say b { color: var(--fg); font-weight: 600; }
.vf-say .vf-nowrap { white-space: nowrap; }
.vf-code { position: relative; width: min(100%, 340px); cursor: text; }
.vf-code-in { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: text; }
.vf-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 1.6vw, 10px); }
.vf-cells i { display: grid; place-items: center; height: 54px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--night);
  color: var(--fg); font: 500 24px/1 var(--f-mono); font-stretch: 87.5%; font-style: normal; transition: border-color var(--f8), box-shadow var(--f12); }
.vf-cells i:nth-child(3) { margin-right: clamp(0px, 1vw, 6px); }
.vf-cells i.is-at { border-color: var(--flash); box-shadow: 0 0 0 3px rgba(255, 210, 63, .22); }
.vf-cells i.is-at:empty::after { content: ""; width: 2px; height: 24px; background: var(--flash); animation: vf-blink 1s steps(1) infinite; }
@keyframes vf-blink { 50% { opacity: 0; } }
.vf-code.is-busy i { opacity: .55; }
.vf-code.is-wrong i { border-color: var(--cut); }
.vf-code.is-done i { border-color: rgba(61, 220, 151, .7); color: #9BEFCB; }
.vf-code.shake { animation: fv-shake var(--f18) 2; }
.vf-again { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: var(--s-12); color: var(--fg-3); }
.vf-again[hidden], .vf-again [hidden] { display: none; }
.vf-link { padding: 0; border: 0; background: none; color: var(--fg); font: inherit; text-decoration: underline; text-decoration-color: var(--line-flash);
  text-underline-offset: 3px; cursor: pointer; }
.vf-link:hover { color: var(--flash); }
.vf-link.is-loading { opacity: .5; pointer-events: none; }
.vf-other { margin: 0; font-size: var(--s-14); color: var(--fg-2); }
.vf-other[hidden] { display: none; }
.vf-step { display: grid; gap: var(--sp-4, 16px); }
.vf-step[hidden] { display: none; }
.vf-check-spot:empty { display: none; }

/* ------------------------------------------------ the dashboard: the slim bar, the window, the account's card */
.vf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 9px 12px 9px 14px; border: 1px solid var(--line-flash);
  border-radius: var(--r-l); background: linear-gradient(100deg, rgba(255, 210, 63, .12), rgba(255, 210, 63, 0) 70%), var(--panel); font-size: var(--s-14); }
.vf-bar[hidden] { display: none; }
.vf-bar::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--flash); box-shadow: 0 0 10px rgba(255, 210, 63, .8); }
.vf-bar p { flex: 1 1 14em; min-width: 0; margin: 0; color: var(--fg); }
.vf-bar p span { color: var(--fg-2); }
.vf-ask .modal-b p { margin: 0; color: var(--fg-2); }
.vf-ask-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vf-ask-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--night-2);
  font-size: var(--s-14); color: var(--fg); }
.vf-ask-list li span { margin-left: auto; font-size: var(--s-12); color: var(--fg-3); }
.vf-card { display: grid; gap: var(--sp-4, 16px); align-content: start; }
.vf-card[hidden] { display: none; }
.vf-card .card-h { margin-bottom: 0; }
.vf-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(18px, 3vw, 36px); }
.vf-row { display: grid; gap: 10px; align-content: start; min-width: 0; }
.vf-row + .vf-row { padding-left: clamp(18px, 3vw, 36px); border-left: 1px solid var(--line); }
.vf-row-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vf-row-h h3 { margin: 0; font: 600 var(--s-16)/1.3 var(--f-text); }
.vf-row-v { margin: 0; font-size: var(--s-16); color: var(--fg); overflow-wrap: anywhere; }
.vf-row-go { gap: 8px; }
.vf-row-go [hidden] { display: none; }
.vf-row-hint { margin: 0; }
.vf-row-hint[hidden] { display: none; }
.vf-edit[hidden] { display: none; }
.vf-edit-x { margin: 0; }
@media (max-width: 859px) {
  .vf-rows { grid-template-columns: minmax(0, 1fr); }
  .vf-row + .vf-row { padding-left: 0; padding-top: 18px; border-left: 0; border-top: 1px solid var(--line); }
}

/* ------------------------------------------------ reduced motion: everything is its end state */
@media (prefers-reduced-motion: reduce) {
  .vf-panel, .vf-cells i.is-at:empty::after, .vf-code.shake { animation: none !important; }
  .vf-cc, .vf-cells i { transition: none !important; }
}
