/* ==========================================================================
   Authentication screens
   --------------------------------------------------------------------------
   Sign up, sign in, the code screen, the workspace step and the password
   reset. One card in the middle of the hero's own ground, with the site's
   navigation removed: everything that leaves this page is in one row under
   the card, and it is three links long.

   The ground is the home hero's -- the ambient tint and the 80px ruled
   overlay -- because this is the first screen of the product and it should
   not look like a different company from the page that sent you here.
   ========================================================================== */

.auth-body { background: var(--ambient); }

/* --------------------------------------------------------------------------
   One curve, one set of durations
   --------------------------------------------------------------------------
   Everything on these screens that moves does it on the same easing and at
   one of two speeds: the fast one for a control answering a press, the
   slower one for something arriving or leaving. Four components each with
   their own timing is how a form ends up feeling assembled rather than made.
   -------------------------------------------------------------------------- */
.auth {
  --auth-fast: 140ms;
  --auth-slow: 220ms;
  --auth-ease: var(--ease-ui);
}

/* Anything that appears -- an error, the typo suggestion, the caps-lock
   warning -- arrives rather than pops. They are shown by dropping
   [hidden] or by a class, so the animation runs when the box is displayed. */
@media (prefers-reduced-motion: no-preference) {
  .field.is-invalid .field__error,
  .field__suggest:not([hidden]),
  .field__caps:not([hidden]),
  .authsum:not([hidden]),
  .authform__spam:not([hidden]) {
    animation: authIn var(--auth-slow) var(--auth-ease) both;
  }
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}

/* Between screens. A form that hands over to the next question should not
   blink; where the browser can cross-fade two documents, it does. Browsers
   without it get what they get now, which is a page load. */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: authOutDoc var(--auth-slow) var(--auth-ease) both; }
  ::view-transition-new(root) { animation: authInDoc var(--auth-slow) var(--auth-ease) both; }
}
@keyframes authOutDoc { to { opacity: 0; transform: translateY(-6px); } }
@keyframes authInDoc { from { opacity: 0; transform: translateY(8px); } }

/* The screen, and only the screen. An authentication page that scrolls is a
   page where the button is somewhere a reader has to go and find; everything
   on these five fits, and the measurements below are written in vh so it
   keeps fitting on a 720px laptop with a console open.

   The phone is the exception, at the bottom of this file: a soft keyboard
   takes half the viewport, and a form that cannot scroll under one is worse
   than a page that moves. */
.auth {
  position: relative; isolation: isolate;
  height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(1rem, 3vh, 2.5rem) var(--container-pad);
}

/* The identity screens fit the screen because everything on them fits, not
   because the rest is cut off. A failed submit adds a summary, and three
   problems on a short window are taller than the window: the shell grows
   and the screen scrolls, rather than the legal row ending up on top of
   the buttons. The setup screens keep their own fixed shell -- the window
   beside them is the point of the layout. */
.auth:not(:has(.auth__inner--setup)) {
  height: auto; min-height: 100svh; overflow: visible;
}

/* The hero's grid, masked from the top rather than radially: the card sits
   in the middle of the screen and a radial mask would have put the brightest
   part of the grid directly behind it. */
.auth__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 62%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 62%);
  opacity: .5;
}

/* 24rem, not 27. The card held three fields and a button in 432px, which
   is wider than the lines in it and left the screen reading as one small
   thing in a lot of nothing. */
.auth__inner {
  width: 100%; max-width: 24rem;
  display: flex; flex-direction: column; align-items: center;
}

/* Four rows: the mark, the card, the assurance line, the legal line. The
   card's row takes the slack, so it is centred in what is left while the
   mark stays where it was on the screen before. The column used to be
   centred as one block, which moved the mark down the screen whenever the
   card was taller -- 87px from the top on the first screen, 194px on the
   second. The setup screens have their own grid further down. */
.auth__inner:not(.auth__inner--setup) {
  /* Fills the shell on the main axis, so the rows have the screen to share.
     Not height:100%: below the split the shell is min-height rather than
     height, so a percentage would resolve against auto and the rows would
     collapse back onto the content. */
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
  justify-items: center; align-items: start;
}
.auth__inner:not(.auth__inner--setup) > .auth__brand { grid-row: 1; justify-self: start; }
.auth__inner:not(.auth__inner--setup) > .authcard { grid-row: 2; align-self: center; }
.auth__inner:not(.auth__inner--setup) > .auth__assure { grid-row: 3; }
.auth__inner:not(.auth__inner--setup) > .auth__foot { grid-row: 4; }

/* The mark is a link home, and the only way back to the site from above the
   card. It is not the navbar's lockup: at this size the wordmark alone
   reads better than a logo with a menu's worth of weight behind it. */
/* .logo carries the mark and the wordmark, from base/components.css. This
   only says where it sits. */
.auth__brand { align-self: flex-start; }

/* The sign-in and sign-up cards carry the lockup inside the heading --
   "Sign in to TeamTrek", where the name is the logo -- rather than above
   the card. The setup screens still use .auth__brand above, because they
   have a step rail beside them and the heading is already carrying one
   job.

   It sits on the text's own baseline and takes the heading's size, so the
   line reads as a sentence rather than as a brand bar dropped into one. */
.authcard__logo {
  display: inline-flex; align-items: center; gap: .3125rem;
  vertical-align: baseline;
  font-size: inherit; font-weight: inherit; letter-spacing: inherit;
  color: inherit; text-decoration: none;
}
.authcard__logo .logo__mark { width: 1em; height: 1em; }
.authcard__logo .logo__text { font-size: inherit; letter-spacing: inherit; }
.authcard__logo:hover .logo__text { color: var(--primary-700); }
.authcard__logo:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   The card
   -------------------------------------------------------------------------- */
.authcard {
  width: 100%; margin-top: clamp(1rem, 2.4vh, 1.75rem);
  padding: clamp(1.25rem, 2.6vh, 2rem);
  background: #fff;
  border: 1px solid var(--neutral-200); border-radius: var(--r-lg);
  box-shadow: var(--shadow-02);
}
@media (max-width: 480px) { .authcard { padding: 1.25rem; } }

/* Which step this is, on the screens that are one of several. A reader
   part-way through creating an account wants to know how much is left more
   than they want another heading. */
.authcard__step {
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary-700);
}
.authcard__title {
  margin-top: .375rem;
  font-size: clamp(1.25rem, 2.9vh, 1.5rem); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.2;
  color: var(--neutral-900);
}
.authcard__copy {
  margin-top: .375rem;
  font-size: .875rem; line-height: 1.55; color: var(--neutral-600);
}
.authcard__copy b { color: var(--neutral-800); font-weight: 700; }

/* --------------------------------------------------------------------------
   Fields
   --------------------------------------------------------------------------
   Labels above inputs, never a placeholder doing a label's job: the label
   disappears exactly when a reader is typing and most needs it. The
   placeholder shows the shape of the answer instead.
   -------------------------------------------------------------------------- */
.authform { margin-top: clamp(1rem, 2.2vh, 1.5rem); display: grid; gap: clamp(.75rem, 1.6vh, 1.125rem); }

.field { display: grid; gap: .3125rem; }
.field__label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-size: .8125rem; font-weight: 700; color: var(--neutral-800);
}
/* "Forgot?" belongs on the password label's line, not under the field: by
   the time a reader has typed a wrong password twice they are looking at
   the label, not below the button. */
.field__aside { font-size: .75rem; font-weight: 600; color: var(--primary-700); }
.field__aside:hover { color: var(--primary-800); }

.field__input {
  width: 100%; padding: .5625rem .8125rem;
  font: inherit; font-size: .9375rem; color: var(--neutral-900);
  background: #fff;
  border: 1px solid var(--neutral-300); border-radius: var(--r-sm);
  transition: border-color var(--auth-fast) var(--auth-ease),
              box-shadow var(--auth-fast) var(--auth-ease);
}
.field__input::placeholder { color: var(--neutral-400); }
.field__input:hover { border-color: var(--neutral-400); }
.field__input:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(32, 183, 166, .18);
}
.field__input[aria-invalid="true"] { border-color: #C0392B; }
.field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .16); }

/* The password field and its reveal share one box, so the control sits
   inside the border rather than beside it. */
.field__wrap { position: relative; display: block; }
.field__wrap .field__input { padding-right: 3rem; }
/* 36px square is enough for a pointer and not for a thumb, and this is the
   one control inside a field -- reached for with a password half typed. */
@media (hover: none) {
  .field__wrap .field__input { padding-right: 3.5rem; }
  .field__reveal { width: 2.75rem; height: 2.75rem; }
}
.field__reveal {
  position: absolute; top: 50%; right: .375rem; transform: translateY(-50%);
  display: inline-grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border: 0; border-radius: var(--r-xs); background: none; cursor: pointer;
  color: var(--neutral-500);
}
.field__reveal:hover { color: var(--neutral-800); background: var(--neutral-100); }
.field__reveal:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 2px; }

/* A hint sits under the field until something is wrong with it, and then the
   error replaces it. Two lines of small grey text, one of which contradicts
   the other, is how a reader ends up reading neither. */
/* The slot is only as tall as what is in it. It used to reserve a line under
   every field so nothing moved when an error appeared, which bought a steady
   layout with an empty line under each of three fields -- and the fields
   only move after a failed submit, which is a moment where something moving
   is the point. */
.field__note { display: block; }
.field__hint:empty { display: none; }
.field__hint { font-size: .75rem; line-height: 1.5; color: var(--neutral-500); }
.field__error {
  display: none;
  align-items: flex-start; gap: .375rem;
  font-size: .75rem; line-height: 1.5; color: #C0392B;
}
.field__error .icon { flex: none; margin-top: .125rem; }
.field__error-text { display: block; }
.icon--14 { width: 14px; height: 14px; }
/* Caps lock, on both screens that take a password. A warning rather than
   an error: nothing is wrong yet, and the thing it is warning about is a
   key somebody pressed by accident. It lost its rule once already, with
   the block that held the old split layout. */
.field__caps {
  display: flex; align-items: center; gap: .375rem;
  margin-top: .375rem;
  font-size: .75rem; line-height: 1.5; color: var(--warning-text);
}
.field__caps .icon { flex: none; color: var(--warning-fill); }

.field.is-invalid .field__hint { display: none; }
.field.is-invalid .field__error { display: flex; }

/* --------------------------------------------------------------------------
   The summary
   --------------------------------------------------------------------------
   What a failed submit says before the fields repeat it one by one. Each
   problem is a button that moves focus to the field it names, so the list
   is a way through the form rather than a report about it.

   It sits under the heading and above the fields, which is the order it is
   read in: what this screen is, then what is in the way, then the thing to
   fix. The per-field errors stay -- the summary answers "what went wrong",
   the field answers "what do I type here".
   -------------------------------------------------------------------------- */
.authsum {
  margin-top: .875rem;
  padding: .625rem .75rem .6875rem;
  background: var(--danger-tint);
  border: 1px solid #F6C9C9; border-radius: var(--r-sm);
}
.authsum__title {
  display: flex; align-items: center; gap: .375rem;
  font-size: .8125rem; font-weight: 700; color: var(--danger-text);
}
.authsum__title .icon { flex: none; color: var(--danger-fill); }
.authsum ul {
  margin: .375rem 0 0; padding-left: 1.5rem;
  list-style: disc;
}
.authsum li { color: #C86B6B; }
.authsum li + li { margin-top: .125rem; }
/* Block, so a problem that wraps keeps its bullet beside its first line
   rather than beside its last. Underlined on hover rather than always:
   four underlined lines in a tinted box is a wall before it is a list. */
.authsum button {
  display: block; width: 100%;
  padding: 0; border: 0; background: none;
  font: inherit; font-size: .75rem; line-height: 1.55;
  color: var(--danger-text); text-align: left;
  text-underline-offset: 2px; cursor: pointer;
}
.authsum button:hover { color: #8F1F1F; text-decoration: underline; }
.authsum button:focus-visible { outline: 2px solid var(--danger-fill); outline-offset: 2px; }

.authform__submit { width: 100%; justify-content: center; }
/* 46px, not 52. .btn--lg sets a height rather than padding, so that is what
   has to come down: the button should be the tallest thing in the form and
   no taller than that makes it. */
.authform__submit.btn--lg { height: 46px; font-size: .9375rem; }

/* --------------------------------------------------------------------------
   The code field
   --------------------------------------------------------------------------
   One input, not six boxes. Six boxes look like a product and behave like a
   puzzle: a pasted code lands in the first one, a backspace moves focus
   somewhere a reader did not ask for, and a password manager cannot fill
   any of it. One field with autocomplete="one-time-code" is filled by the
   phone without being touched.
   -------------------------------------------------------------------------- */
.field__input--code {
  font-size: 1.5rem; font-weight: 700; letter-spacing: .5em;
  text-align: center; padding: .875rem .875rem .875rem 1.375rem;
  font-variant-numeric: tabular-nums;
}

.authform__resend {
  justify-self: center;
  font-size: .8125rem; color: var(--neutral-500);
}
.authform__resend button {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--primary-700);
}
.authform__resend button:disabled { color: var(--neutral-400); cursor: default; }

/* --------------------------------------------------------------------------
   The other ways in
   -------------------------------------------------------------------------- */
.authdiv {
  margin-top: clamp(1rem, 2.2vh, 1.5rem);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .875rem;
  font-size: .75rem; color: var(--neutral-500);
}
.authdiv::before, .authdiv::after { content: ""; height: 1px; background: var(--neutral-200); }

.authoauth { margin-top: clamp(.75rem, 1.8vh, 1.25rem); display: grid; gap: .625rem; }
@media (min-width: 420px) { .authoauth { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.authoauth__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .5rem .875rem;
  font-size: .875rem; font-weight: 700; color: var(--neutral-800);
  background: #fff;
  border: 1px solid var(--neutral-300); border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--auth-fast) var(--auth-ease),
              border-color var(--auth-fast) var(--auth-ease);
}
.authoauth__btn:hover { background: var(--neutral-50); border-color: var(--neutral-400); }
.authoauth__btn:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 2px; }

/* A square standing in for each provider's own mark. Google and Microsoft
   both require their official SVG, at their own sizes and clear space, so
   neither is drawn here: drop the real files in before launch. */
.authoauth__mark {
  flex: none; width: 1rem; height: 1rem; border-radius: 3px;
  background: var(--neutral-300);
}

/* Sign in from the sign-up page, and the other way round. Under everything,
   because it is the one link a reader who is on the wrong page wants, and
   nobody else. */
.authcard__alt {
  margin-top: clamp(1rem, 2.2vh, 1.5rem); padding-top: clamp(.875rem, 1.8vh, 1.25rem);
  border-top: 1px solid var(--neutral-150);
  text-align: center;
  font-size: .875rem; color: var(--neutral-600);
}
.authcard__alt a { font-weight: 700; color: var(--primary-700); }
.authcard__alt a:hover { color: var(--primary-800); }

/* --------------------------------------------------------------------------
   Under the card
   -------------------------------------------------------------------------- */
.auth__foot {
  margin-top: clamp(1rem, 2.2vh, 1.75rem);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .375rem 1.25rem;
  font-size: .75rem; color: var(--neutral-500);
}
.auth__foot a { color: var(--neutral-500); }
.auth__foot a:hover { color: var(--neutral-800); }

/* The three facts that belong to the decision, not to the form: they answer
   "what happens if I regret this", which is the question a reader asks with
   their hand on the button. */
.auth__assure {
  margin-top: clamp(.875rem, 1.8vh, 1.25rem);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.125rem;
  font-size: .75rem; color: var(--neutral-600);
}
.auth__assure li { display: flex; align-items: center; gap: .375rem; }
.auth__assure .icon { color: var(--primary-600); }

/* --------------------------------------------------------------------------
   The workspace step
   -------------------------------------------------------------------------- */
.authcard--wide { max-width: 32rem; }
.auth__inner--wide { max-width: 32rem; }

.field__select {
  width: 100%; padding: .5625rem 2.25rem .5625rem .8125rem;
  font: inherit; font-size: .9375rem; color: var(--neutral-900);
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7A79' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center;
  border: 1px solid var(--neutral-300); border-radius: var(--r-sm);
  appearance: none; cursor: pointer;
}
.field__select:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(32, 183, 166, .18);
}

@media (min-width: 560px) {
  .authform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem; }
}

/* A sent-state panel: the reset screen after the form is gone. */
.authdone {
  margin-top: 1.5rem; padding: 1.125rem;
  display: flex; gap: .75rem;
  background: var(--primary-50); border-radius: var(--r-sm);
  font-size: .875rem; line-height: 1.6; color: var(--primary-800);
}
.authdone .icon { flex: none; margin-top: .125rem; color: var(--primary-700); }

/* ==========================================================================
   Setup: one question, beside the application
   --------------------------------------------------------------------------
   The four screens after the code. Making an account and setting one up are
   two different jobs: the identity screens are a centred card, and these are
   a split, because here there is something to watch.

   40/60 rather than 30/70. The question is one field and a button, so it
   does not want more room -- but the window does, and at 70% it had more
   than it could fill.

   The split starts at 1200px. The dashboard inside the window is drawn at
   its own size rather than scaled, so a 60% column narrower than about
   680px runs its table headings into each other and cuts the team rows.
   Below that width the question takes the screen on its own, which is what
   somebody came for anyway.
   ========================================================================== */
@media (min-width: 1200px) {
  .auth:has(.auth__inner--setup) { padding: 0; }

  .auth__inner--setup {
    width: 100%; max-width: none; height: 100svh;
    display: grid;
    grid-template-columns: minmax(24rem, 40%) 1fr;
    grid-template-rows: auto 1fr auto;
    align-items: start; justify-items: stretch;
    gap: 0;
  }

  .auth__inner--setup::before {
    content: ""; grid-column: 1; grid-row: 1 / -1;
    background: #fff;
    border-right: 1px solid var(--neutral-200);
  }

  .auth__inner--setup > .auth__brand,
  .auth__inner--setup > .setup__steps,
  .auth__inner--setup > .auth__card-col,
  .auth__inner--setup > .auth__signed {
    grid-column: 1;
    padding-inline: clamp(1.75rem, 3.5vw, 3.5rem);
  }
  .auth__inner--setup > .auth__brand {
    grid-row: 1; justify-self: start;
    padding-top: clamp(1.25rem, 3vh, 2rem); padding-bottom: 0;
  }
  .auth__inner--setup > .setup__steps { grid-row: 1; align-self: start; justify-self: end; }
  .auth__inner--setup > .auth__card-col {
    grid-row: 2; align-self: stretch;
    min-height: 0; overflow-y: auto;
    display: flex; flex-direction: column; justify-content: center;
    padding-block: clamp(.5rem, 1.5vh, 1rem);
  }
  .auth__inner--setup > .auth__signed {
    grid-row: 3;
    padding-top: clamp(.75rem, 2vh, 1.25rem);
    padding-bottom: clamp(1rem, 2.5vh, 1.75rem);
  }

  /* The ruled ground belongs to the application's half. Without it the two
     columns are white on near-white and the seam between them is a hairline
     nobody sees. */
  .auth:has(.auth__inner--setup) .auth__grid {
    left: 40%;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  }

  /* The window takes the whole of its half, top to bottom, and runs off the
     right edge. A preview that ends neatly inside its column is a picture of
     an application; one that is cropped is an application. */
  .auth__inner--setup > .preview {
    grid-column: 2; grid-row: 1 / -1;
    min-width: 0; height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding-left: clamp(1.5rem, 3vw, 3rem);
    padding-block: clamp(1.25rem, 4vh, 3rem);
    overflow: hidden;
  }
}

@media (max-width: 1199px) {
  /* No dashboard on a phone: an application and a question cannot both have
     the screen, and the question is what somebody came for. */
  .auth__inner--setup > .preview { display: none; }
  /* Flush left, under the mark. justify-content only moved the dots within
     a row that was itself centred by the column. */
  .auth__inner--setup > .setup__steps { align-self: flex-start; justify-content: flex-start; }

  /* Wider than the identity card once there is room for it. These screens
     carry a question, a paragraph and rows of switches rather than a stack
     of fields, and at 24rem on a tablet every switch wrapped onto three
     lines beside a half-empty screen. */
  @media (min-width: 620px) {
    .auth__inner--setup { max-width: 34rem; }
  }

  /* And the page may scroll here, which is the one place it should. A soft
     keyboard takes half the viewport, and a form locked to 100svh under one
     is a form with its button behind the keys. */
  .auth { height: auto; min-height: 100svh; overflow: visible; }
}

/* The card is the column: no border, no shadow, nothing floating. */
.auth__inner--setup .authcard {
  margin-top: 0; padding: 0;
  background: none; border: 0; border-radius: 0; box-shadow: none;
}

/* --------------------------------------------------------------------------
   The question
   -------------------------------------------------------------------------- */
.setup__steps {
  display: flex; align-items: center; gap: .3125rem;
  padding-top: clamp(1.25rem, 3vh, 2rem);
  font-size: .75rem; color: var(--neutral-500);
  font-variant-numeric: tabular-nums;
}
.setup__count { margin-right: .5rem; font-weight: 700; color: var(--neutral-700); }
.setup__count i { font-style: normal; color: var(--neutral-400); margin-inline: .125rem; }
.setup__seg {
  width: 1.75rem; height: 3px; border-radius: 2px;
  background: var(--neutral-200);
}
.setup__seg.is-done { background: var(--primary-600); }

.setup__eyebrow { font-size: .875rem; color: var(--neutral-500); }
.setup__eyebrow b { font-weight: 700; color: var(--neutral-700); }

/* The one thing on the screen, and sized like it. */
.setup__title {
  margin-top: .375rem;
  font-size: clamp(1.75rem, 4.2vh, 2.5rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1;
  color: var(--neutral-900);
}
.setup__copy {
  margin-top: .75rem; max-width: 34rem;
  font-size: .9375rem; line-height: 1.6; color: var(--neutral-600);
}

.field__input--lg { padding-block: .8125rem; font-size: 1rem; }

/* --------------------------------------------------------------------------
   The chip box
   --------------------------------------------------------------------------
   The addresses field on the third setup screen. The pills and the box they
   are typed into sit inside one border, and the border takes the focus ring
   from whichever of them has focus.

   A pill carries initials because the rest of the flow does -- the seats in
   the preview, the faces on the choice cards -- and because two addresses
   at one domain are told apart by the part a person reads first.
   -------------------------------------------------------------------------- */
.chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: .375rem;
  padding: .5rem .5rem .5rem .625rem;
  background: #fff;
  border: 1px solid var(--neutral-300); border-radius: var(--r-sm);
  cursor: text;
  transition: border-color var(--auth-fast) var(--auth-ease),
              box-shadow var(--auth-fast) var(--auth-ease);
}
.chips:hover { border-color: var(--neutral-400); }
.chips:focus-within {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(32, 183, 166, .18);
}
.field.is-invalid .chips { border-color: #C0392B; }
.field.is-invalid .chips:focus-within { box-shadow: 0 0 0 3px rgba(192, 57, 43, .16); }

/* The list is a list for a screen reader and nothing for the layout: the
   pills are laid out by the box, beside the entry. */
.chips__list { display: contents; }

/* The box grows with what is in it and takes the rest of the line, so a
   long address is typed on a line of its own rather than in a 4ch gap at
   the end of the pills. */
.chips__entry {
  flex: 1 1 10rem; min-width: 8rem;
  padding: .3125rem .1875rem;
  font: inherit; font-size: .9375rem; color: var(--neutral-900);
  background: none; border: 0; outline: none;
}
.chips__entry::placeholder { color: var(--neutral-400); }

.chip {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .1875rem .25rem .1875rem .1875rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-100); border-radius: var(--r-pill);
  font-size: .8125rem; line-height: 1.3; color: var(--primary-900);
  max-width: 100%;
}
.chip__mark {
  flex: none; display: grid; place-items: center;
  width: 1.375rem; height: 1.375rem;
  border-radius: 50%;
  background: var(--primary-600); color: #fff;
  font-size: .5625rem; font-weight: 800; letter-spacing: .02em;
}
.chip__text {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: inherit; color: inherit;
}
button.chip__text {
  padding: 0; border: 0; background: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.chip__x {
  flex: none; display: grid; place-items: center;
  width: 1.125rem; height: 1.125rem; margin-left: .0625rem;
  padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--primary-700); cursor: pointer;
  transition: background var(--auth-fast) var(--auth-ease),
              color var(--auth-fast) var(--auth-ease);
}
.chip__x:hover { background: var(--primary-600); color: #fff; }
.chip__x:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 1px; }

/* An address that is not one. It stays, because deleting what somebody
   typed is worse than marking it, and it is editable in place. */
.chip--bad {
  background: #FDECEA; border-color: #F3C4BE; color: #8F2A20;
}
.chip--bad .chip__mark { background: #C0392B; }
.chip--bad .chip__x { color: #8F2A20; }
.chip--bad .chip__x:hover { background: #C0392B; color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .chip { animation: authIn var(--auth-fast) var(--auth-ease) both; }
  .chip.is-dupe { animation: chipDupe 420ms var(--auth-ease) both; }
}
@keyframes chipDupe {
  0%, 100% { transform: none; }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.setup__actions { display: flex; align-items: center; gap: 1.25rem; }
.setup__back {
  display: inline-flex; align-items: center; gap: .3125rem;
  font-size: .875rem; font-weight: 700; color: var(--neutral-500);
}
.setup__back:hover { color: var(--neutral-800); }

.auth__signed { font-size: .75rem; color: var(--neutral-500); }
.auth__signed b { font-weight: 600; color: var(--neutral-700); }
.auth__signed a { color: var(--neutral-500); text-decoration: underline; text-underline-offset: 2px; }
.auth__signed a:hover { color: var(--neutral-800); }

/* --------------------------------------------------------------------------
   Choice cards
   --------------------------------------------------------------------------
   Two rows instead of a dropdown. A select hides its options behind a press
   and gives a reader nothing to compare; these are the whole question, with
   what each one means under it.
   -------------------------------------------------------------------------- */
.choices { display: grid; gap: .75rem; }
.choice {
  position: relative;
  display: flex; align-items: center; gap: .875rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--neutral-200); border-radius: var(--r-lg);
  background: #fff; cursor: pointer;
  transition: border-color var(--auth-fast) var(--auth-ease),
              background var(--auth-fast) var(--auth-ease);
}
.choice:hover { border-color: var(--neutral-300); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--primary-600); background: var(--primary-50); }
.choice:has(input:focus-visible) { outline: 2px solid var(--primary-600); outline-offset: 2px; }

.choice__mark { flex: none; display: flex; }
.choice__face {
  display: inline-grid; place-items: center;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  margin-left: -.5rem;
  border: 2px solid #fff;
  background: var(--neutral-200); color: var(--neutral-600);
  font-size: .625rem; font-weight: 800;
}
.choice__face:first-child { margin-left: 0; }
.choice:has(input:checked) .choice__face { border-color: var(--primary-50); }
.choice__face--you { background: var(--primary-600); color: #fff; }

.choice__text { min-width: 0; }
.choice__text b { display: block; font-size: .9375rem; font-weight: 700; color: var(--neutral-900); }
.choice__text span { display: block; margin-top: .125rem; font-size: .8125rem; line-height: 1.5; color: var(--neutral-600); }

.choice__dot {
  flex: none; margin-left: auto;
  width: 1.125rem; height: 1.125rem; border-radius: 50%;
  border: 2px solid var(--neutral-300);
}
.choice:has(input:checked) .choice__dot {
  border-color: var(--primary-600);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 1rem var(--primary-600);
}

/* --------------------------------------------------------------------------
   The tracking switches
   -------------------------------------------------------------------------- */
.switches { display: grid; gap: .5rem; }
.switch__row {
  position: relative;
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem .875rem;
  border: 1px solid var(--neutral-200); border-radius: var(--r-sm);
  background: #fff; cursor: pointer;
}
.switch__row:hover { border-color: var(--neutral-300); }
.switch__row input { position: absolute; opacity: 0; pointer-events: none; }

.switch__box {
  flex: none; margin-top: .125rem;
  width: 2.25rem; height: 1.25rem; border-radius: var(--r-pill);
  background: var(--neutral-300);
  transition: background var(--auth-fast) var(--auth-ease);
}
.switch__box::after {
  content: ""; display: block;
  width: 1rem; height: 1rem; margin: .125rem;
  border-radius: 50%; background: #fff;
  transition: transform var(--auth-fast) var(--auth-ease);
}
.switch__row:has(input:checked) .switch__box { background: var(--primary-600); }
.switch__row:has(input:checked) .switch__box::after { transform: translateX(1rem); }
.switch__row:has(input:focus-visible) { outline: 2px solid var(--primary-600); outline-offset: 2px; }

.switch__text b { display: block; font-size: .875rem; font-weight: 700; color: var(--neutral-900); }
.switch__text span { display: block; margin-top: .125rem; font-size: .75rem; line-height: 1.5; color: var(--neutral-600); }

/* --------------------------------------------------------------------------
   The pairing
   --------------------------------------------------------------------------
   A control on the left and the part of the application it drives, lit at
   the same moment. The point is not the colour: it is that somebody filling
   in a field can see which part of the window is theirs without being told.

   It holds while the control is in use and goes when it is not, and a value
   arriving rings its place once. Both at the slow pair -- noticeable on the
   first run, invisible by the fourth.
   -------------------------------------------------------------------------- */
[data-wsp-target] {
  position: relative;
  border-radius: var(--r-sm);
  transition: background var(--auth-slow) var(--auth-ease),
              box-shadow var(--auth-slow) var(--auth-ease);
}
[data-wsp-target].is-paired {
  background: var(--primary-50);
  box-shadow: 0 0 0 1px var(--primary-200);
}
/* Except where the background is already carrying something. The greeting
   band is a teal gradient with white type on it; tinting it pale green
   washed the whole band out and made its own text unreadable. It gets a
   ring instead. */
.dash__hello[data-wsp-target].is-paired {
  background: linear-gradient(120deg, var(--primary-700), var(--primary-600) 60%, var(--primary-500));
  box-shadow: 0 0 0 3px var(--primary-100, var(--primary-50));
}
.dash__cards[data-wsp-target].is-paired,
.dash__panel[data-wsp-target].is-paired { box-shadow: 0 0 0 3px var(--primary-50); }

@media (prefers-reduced-motion: no-preference) {
  [data-wsp-target].is-landed { animation: authLanded var(--auth-slow) var(--auth-ease); }
}
@keyframes authLanded {
  0%   { box-shadow: 0 0 0 0 rgba(32, 183, 166, .45); }
  100% { box-shadow: 0 0 0 7px rgba(32, 183, 166, 0); }
}

/* An unnamed workspace says so, rather than borrowing a name nobody gave
   it. */
.dash__ws b.is-unnamed,
.preview__label b.is-unnamed { color: var(--neutral-400); font-weight: 600; }


/* Everything that appears conditionally on these screens is hidden with the
   hidden attribute, and nearly all of it is display:flex, grid or
   list-item, which beats the display:none a browser gives [hidden]. One
   rule, rather than remembering it per component and finding out in a
   screenshot. It went missing with the old split layout, which is how
   Screenshots came back into a menu with its switch off. */
.auth [hidden] { display: none !important; }

/* The label over the window, and the line under it. */
.preview { min-width: 0; }
.preview__label {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .875rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--neutral-500);
}
.preview__label b { color: var(--neutral-700); }
.preview__note { margin-top: .875rem; font-size: .75rem; color: var(--neutral-500); }

/* ==========================================================================
   The dashboard, in the preview
   --------------------------------------------------------------------------
   The employee dashboard the product opens on: the sidebar, the topbar, the
   greeting band with its weekly ring, the four cards and the two panels.
   Rebuilt for an 860px window rather than scaled down from the real 1900,
   so the type is read rather than seen.

   What each setup question changes is marked in the markup, not here:
   [data-wsp-when] is shown or hidden by the tracking switches, and
   [data-wsp-target] is what lights when its control is in use.
   ========================================================================== */
/* The frame is one fixed size, not a size its contents decide. It used to
   be 467px on the first question and 566px on the second and, being centred
   in its half, appeared to shrink and jump back on every step. What changes
   inside it now changes inside it.

   It is shorter on a short screen, in steps, which is still one size per
   screen rather than one per question. The panels inside lose rows rather
   than being cut through: a dashboard cropped mid-panel looks broken, and
   the point of this window is that the product looks finished. */
.dash {
  display: grid; grid-template-columns: 10.5rem minmax(0, 1fr);
  min-width: 0;
  /* 34rem when the screen allows it, and whatever is left when it does
     not: the window fills its column up to that size rather than stepping
     down in fixed jumps, which at 720px had cut the panels to a strip. It
     is still one size per screen -- the column does not change between
     questions -- which is what the jumping was about. */
  flex: 0 1 34rem; min-height: 0;
  border: 1px solid var(--neutral-200); border-right: 0;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-03);
  overflow: hidden;
  font-size: .75rem;
}

/* ---- sidebar ---- */
/* Closed, the menu fits a full-height window. On a short screen, or with
   Activity open on the last question, it runs past the bottom -- so the
   last rows fade rather than being cut through. When there is room the
   fade falls on empty padding and is not there at all. */
.dash__side {
  min-height: 0; overflow: hidden;
  padding: .75rem .625rem;
  border-right: 1px solid var(--neutral-150);
  background: var(--neutral-50);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 1.75rem), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.75rem), transparent 100%);
}
.dash__ws {
  display: flex; align-items: center; gap: .4375rem;
  padding: .375rem .375rem .625rem;
}
.dash__mark { flex: none; width: 1.125rem; height: 1.125rem; }
.dash__ws b {
  min-width: 0; font-size: .8125rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--neutral-900);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}


.dash__group {
  margin-top: .5rem; padding: .25rem .375rem;
  font-size: .5625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--neutral-400);
}
.dash__nav { display: grid; gap: .0625rem; }
.dash__item {
  display: flex; align-items: center; gap: .4375rem;
  padding: .375rem .4375rem;
  border-radius: var(--r-xs);
  font-size: .75rem; font-weight: 600; color: var(--neutral-600);
}
.dash__item .icon { color: var(--neutral-400); }
/* A parent and its children, as the application draws them: a chevron on
   the parent, and the children on a hairline rail that stops where they
   stop. */
/* Closed, so the chevron points the way it would open. The sprite has one
   chevron and it points down; this is the same mark turned, rather than a
   second one that has to be kept in step with it. */
.dash__item--parent .dash__chev {
  margin-left: auto; color: var(--neutral-300);
  transform: rotate(-90deg);
  transition: transform var(--auth-fast) var(--auth-ease);
}
.dash__item--parent.is-open .dash__chev { transform: none; }

.dash__sub {
  display: grid; gap: .0625rem;
  margin: .125rem 0 .125rem .9375rem;
  padding-left: .625rem;
  border-left: 1px solid var(--neutral-200);
}
.dash__item--sub {
  padding: .3125rem .4375rem;
  font-weight: 500; color: var(--neutral-500);
}

/* A count on a menu item, the one piece of this menu that is a number
   rather than a name. */
.dash__badge {
  margin-left: auto; font-style: normal;
  display: inline-grid; place-items: center;
  min-width: 1rem; height: 1rem; padding-inline: .25rem;
  border-radius: var(--r-pill);
  background: var(--primary-50); color: var(--primary-800);
  font-size: .5625rem; font-weight: 800;
}
.dash__item.is-on { background: var(--primary-600); color: #fff; }
.dash__item.is-on .icon { color: #fff; }

.dash__seats { margin-left: auto; display: flex; }
.dash__seat {
  display: inline-grid; place-items: center;
  width: 1rem; height: 1rem; border-radius: 50%;
  margin-left: -.3125rem;
  border: 2px solid var(--neutral-50);
  background: var(--primary-600); color: #fff;
  font-size: .4375rem; font-weight: 800;
}
.dash__seat:first-child { margin-left: 0; }
.dash__seat--more {
  width: auto; min-width: 1rem; padding-inline: .1875rem;
  border-radius: var(--r-pill);
  background: var(--neutral-200); color: var(--neutral-600);
}


/* ---- topbar ---- */
.dash__main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.dash__top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .625rem .875rem;
  border-bottom: 1px solid var(--neutral-150);
}
.dash__title {
  min-width: 0;
  display: flex; align-items: center; gap: .375rem;
  font-size: .8125rem; font-weight: 800; color: var(--neutral-900);
}
.dash__title span { flex: none; width: 3px; height: .875rem; border-radius: 2px; background: var(--primary-600); }
.dash__user {
  display: flex; align-items: center; gap: .4375rem;
  padding: .25rem .5rem .25rem .25rem;
  border: 1px solid var(--neutral-200); border-radius: var(--r-pill);
  font-size: .625rem; color: var(--neutral-500);
}
.dash__user b { display: block; font-size: .6875rem; font-weight: 700; color: var(--neutral-900); }
.dash__face {
  flex: none;
  display: inline-grid; place-items: center;
  width: 1.375rem; height: 1.375rem; border-radius: 50%;
  background: var(--primary-600); color: #fff;
  font-size: .5625rem; font-weight: 800;
}

/* The band and the cards take what they need; the panels take the rest
   and clip. A short screen shows fewer rows rather than a shorter window. */
.dash__body {
  flex: 1; min-height: 0;
  padding: .875rem; display: grid; gap: .75rem;
  grid-template-rows: auto auto minmax(0, 1fr);
}

/* ---- the greeting band ---- */
.dash__hello {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .875rem 1rem;
  border-radius: var(--r-sm);
  background: linear-gradient(120deg, var(--primary-700), var(--primary-600) 60%, var(--primary-500));
  color: #fff;
}
.dash__date {
  display: flex; align-items: center; gap: .3125rem;
  font-size: .5625rem; font-weight: 700; letter-spacing: .08em;
  color: rgba(255, 255, 255, .78);
}
.dash__greet { margin-top: .25rem; font-size: 1.0625rem; font-weight: 800; letter-spacing: -.02em; }
.dash__sub { margin-top: .1875rem; font-size: .6875rem; color: rgba(255, 255, 255, .8); max-width: 26ch; }

.dash__target { flex: none; display: flex; align-items: center; gap: .625rem; }
.dash__hours { text-align: right; }
.dash__hours b { display: block; font-size: .9375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dash__hours span { font-size: .5625rem; color: rgba(255, 255, 255, .72); }
.dash__ring { width: 2.5rem; height: 2.5rem; transform: rotate(-90deg); }
.dash__ring circle { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 4; }
.dash__ring .dash__ring-on {
  stroke: #fff; stroke-linecap: round;
  transition: stroke-dashoffset var(--auth-slow) var(--auth-ease);
}

/* ---- the four cards ---- */
.dash__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.dash__card {
  padding: .5rem .625rem;
  border: 1px solid var(--neutral-150); border-radius: var(--r-sm);
}
.dash__chip {
  display: inline-grid; place-items: center;
  width: 1.25rem; height: 1.25rem; border-radius: var(--r-xs);
  background: var(--primary-50); color: var(--primary-700);
}
.dash__card b {
  display: block; margin-top: .25rem;
  font-size: .9375rem; font-weight: 800; color: var(--neutral-900);
  font-variant-numeric: tabular-nums;
}
.dash__card span { display: block; font-size: .5625rem; color: var(--neutral-500); }

/* A card or a column that a switch has just turned on arrives rather than
   appears: the switch on the left and this are one action. */
@media (prefers-reduced-motion: no-preference) {
  .is-arriving { animation: dashArrive var(--auth-slow) var(--auth-ease) both; }
}
@keyframes dashArrive {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* ---- the two panels ---- */
.dash__panels {
  min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: .625rem;
}
.dash__panel {
  min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  padding: .625rem .75rem .75rem;
  border: 1px solid var(--neutral-150); border-radius: var(--r-sm);
}
.dash__panel-head {
  flex: none;
  display: flex; align-items: center; gap: .375rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--neutral-150);
  font-size: .6875rem; font-weight: 700; color: var(--neutral-900);
}
.dash__panel-head .icon { color: var(--primary-600); }
.dash__panel-head span {
  margin-left: auto;
  padding: .0625rem .3125rem; border-radius: var(--r-pill);
  background: var(--neutral-100);
  font-size: .5625rem; font-weight: 700; color: var(--neutral-600);
}
.dash__panel-note { flex: none; padding-top: .5rem; font-size: .5625rem; color: var(--neutral-400); }

/* Faded where it runs out of room rather than cut through a row: a panel
   that ends mid-name reads as broken, and one that fades reads as a list
   with more in it. */
.dash__team {
  flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: grid; gap: .0625rem; align-content: start;
  mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25rem), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25rem), transparent 100%);
}
.dash__member {
  display: flex; align-items: center; gap: .5rem;
  padding: .375rem .25rem;
  border-bottom: 1px solid var(--neutral-100);
}
.dash__member:last-child { border-bottom: 0; }
.dash__member .dash__face { width: 1.25rem; height: 1.25rem; font-size: .5rem; }
.dash__who { min-width: 0; }
.dash__who b {
  display: block; font-size: .6875rem; font-weight: 700; color: var(--neutral-900);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash__who span { display: block; font-size: .5625rem; color: var(--neutral-500); }
.dash__hrs { margin-left: auto; font-size: .625rem; font-variant-numeric: tabular-nums; color: var(--neutral-600); }
.dash__pill {
  padding: .0625rem .3125rem; border-radius: var(--r-pill);
  background: var(--primary-50);
  font-size: .5625rem; font-weight: 700; color: var(--primary-800);
  font-variant-numeric: tabular-nums;
}
.dash__pill--off { background: var(--neutral-100); color: var(--neutral-500); }
.dash__tag {
  margin-left: auto;
  padding: .0625rem .3125rem; border-radius: var(--r-pill);
  border: 1px dashed var(--neutral-300);
  font-size: .5625rem; font-weight: 700; color: var(--neutral-500);
}

/* Somebody invited is in the workspace and not in it yet, and looks it. */
.dash__member--pending .dash__face {
  background: #fff; color: var(--neutral-500);
  border: 1px dashed var(--neutral-300);
}
.dash__member--pending .dash__who b { font-weight: 600; color: var(--neutral-600); }

@media (prefers-reduced-motion: no-preference) {
  .dash__member {
    animation: dashArrive .3s var(--auth-ease) both;
    animation-delay: calc(var(--i, 0) * .05s);
  }
}

/* ---- today's time ---- */
.dash__table {
  flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: grid; align-content: start;
}
.dash__tr {
  display: grid; align-items: center; gap: .5rem;
  grid-template-columns: minmax(0, 1fr) repeat(auto-fit, minmax(2.25rem, auto));
  padding: .375rem .25rem;
  border-bottom: 1px solid var(--neutral-100);
  font-size: .625rem; color: var(--neutral-700);
}
.dash__tr--head {
  font-size: .5rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--neutral-400);
}
.dash__project { display: flex; align-items: center; gap: .375rem; min-width: 0; }
.dash__project i {
  flex: none; font-style: normal;
  display: inline-grid; place-items: center;
  width: 1rem; height: 1rem; border-radius: var(--r-xs);
  background: var(--neutral-100); color: var(--neutral-600);
  font-size: .5rem; font-weight: 800;
}
.dash__project b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash__app-cell { color: var(--neutral-500); }
.dash__dur { font-variant-numeric: tabular-nums; text-align: right; }
.dash__tr--idle { color: var(--neutral-400); }
.dash__tr--idle .dash__project b { font-weight: 500; color: var(--neutral-500); }
@media (prefers-reduced-motion: no-preference) {
  .dash__tr[data-wsp-row] {
    animation: dashArrive .3s var(--auth-ease) both;
    animation-delay: calc(var(--i, 0) * .045s);
  }
}

/* Nothing is recorded in a workspace nobody has finished setting up. */
.dash__tr--ghost { grid-template-columns: 1.25rem minmax(0, 1fr); pointer-events: none; }
.dash__bone { height: .4375rem; border-radius: var(--r-pill); background: var(--neutral-150); }
.dash__tr--ghost .dash__bone:first-child { width: 1rem; }
.dash__tr--ghost .dash__bone:last-child { width: 58%; }
.dash__tr--ghost:nth-child(3) .dash__bone:last-child { width: 42%; }
.dash__tr--ghost:nth-child(4) .dash__bone:last-child { width: 68%; }
.dash__tr--ghost:nth-child(5) .dash__bone:last-child { width: 36%; }
.dash__table.is-skeleton .dash__tr--head { color: var(--neutral-300); }

/* ---- the screenshot strip, when it exists at all ---- */
.dash__shots { flex: none; margin-top: .5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .3125rem; }
.dash__shots span {
  height: 1.75rem; border-radius: var(--r-xs);
  background:
    linear-gradient(115deg, rgba(255,255,255,.65) 0 42%, transparent 42%),
    var(--neutral-200);
  filter: blur(.5px);
}

/* The one switch that cannot move. A disabled control that looks like the
   others is a control somebody presses twice and then distrusts. */
.switch__row.is-locked { cursor: default; background: var(--neutral-50); }
.switch__row.is-locked:hover { border-color: var(--neutral-200); }
.switch__row.is-locked .switch__box { background: var(--primary-300); }
.switch__always {
  position: absolute; top: .625rem; right: .75rem;
  padding: .0625rem .3125rem; border-radius: var(--r-pill);
  white-space: nowrap;
  background: var(--primary-50);
  font-size: .5625rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary-800);
  vertical-align: 1px;
}

/* The live clock in the topbar, beside the user chip. */
.dash__live {
  margin-left: auto; margin-right: .625rem;
  display: inline-flex; align-items: center; gap: .3125rem;
  font-size: .625rem; color: var(--neutral-500);
  font-variant-numeric: tabular-nums;
}
.dash__live b { font-weight: 700; color: var(--neutral-700); }

/* --------------------------------------------------------------------------
   Short screens
   --------------------------------------------------------------------------
   The clamps above carry most of it. Below 820px the controls themselves
   step down -- the input boxes, the buttons and the gaps around the divider
   -- which is the last of the slack and the least of it to lose: nothing is
   removed and nothing changes size on a normal screen.

   The preview window steps with them, in sizes rather than continuously, so
   it is still one size per screen rather than one per question.
   -------------------------------------------------------------------------- */
@media (max-height: 820px) {
  .field__input,
  .field__select { padding-block: .5rem; }
  .authform__submit.btn--lg { height: 42px; }
  .authoauth__btn { padding-block: .4375rem; }
  .field { gap: .25rem; }
  .auth__assure { gap: .375rem 1rem; }
  .authdiv { margin-top: .75rem; }
  .authoauth { margin-top: .625rem; }
  .authcard__alt { margin-top: .75rem; padding-top: .75rem; }
}

/* Under 740px the one line that is pure reassurance goes. Everything left
   on the card is a thing to fill in or a way out of it. */
@media (max-height: 740px) {
  .authcard__copy { display: none; }
  .authform { gap: .625rem; }
  .authprog { margin-bottom: .5rem; }
}

/* ==========================================================================
   The window on the first two screens
   --------------------------------------------------------------------------
   The preview used to start on screen three. Somebody typed a name, an
   address and a password into a plain form, met a plain code box, and then
   an application appeared beside them without warning. The first two
   screens read as a different product from the four that followed.

   These are the two surfaces that close that gap. Both sit over the
   dashboard rather than beside it, because the dashboard is the thing being
   built and neither of these is part of it: a profile drawer is opened and
   closed, and an email arrives and is dismissed.

   The no-removal rule still holds. The drawer opens and fills; it never
   empties. The inbox card is the one thing on these screens that leaves,
   and it leaves because the code in it has been used.
   ========================================================================== */

/* The dashboard is the positioning context for both. */
.dash { position: relative; }

/* --------------------------------------------------------------------------
   The profile drawer
   -------------------------------------------------------------------------- */
.wsp-drawer {
  /* It enters from the right, over the dashboard's own content. Entering
     from the left meant covering the sidebar and the greeting -- the two
     places the name had just landed -- so the first answer was taken off
     the screen to make room for the second. */
  position: absolute; inset: 0 0 0 auto; z-index: 2;
  /* Wide enough for an address, narrow enough that the greeting and the
     sidebar stay visible beside it -- the greeting is where the name just
     landed, and covering it would take back the answer before this one. */
  width: min(17rem, 46%);
  display: flex; flex-direction: column; gap: .875rem;
  padding: 1.125rem;
  background: #fff;
  border-left: 1px solid var(--neutral-200);
  box-shadow: -24px 0 48px -24px rgba(16, 42, 42, .22);
  /* Closed by default, and translated rather than hidden, so opening it is
     a movement the eye can follow back to the field that caused it. */
  transform: translateX(102%);
  transition: transform var(--dur-ui) var(--ease-brand);
}
.wsp-drawer.is-open { transform: none; }

.wsp-drawer__head {
  display: flex; align-items: center; gap: .625rem;
  padding-bottom: .875rem; border-bottom: 1px solid var(--neutral-150);
}
.wsp-drawer__face {
  position: relative; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary-600); color: #fff;
  font-size: .8125rem; font-weight: 800; letter-spacing: .02em;
}
.wsp-drawer__who { min-width: 0; }
.wsp-drawer__who b {
  display: block; font-size: .8125rem; font-weight: 700; color: var(--neutral-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wsp-drawer__who span { display: block; font-size: .6875rem; color: var(--neutral-600); }

.wsp-row { display: grid; gap: .25rem; }
.wsp-row__label {
  font-size: .5625rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--neutral-600);
}
.wsp-row__value {
  font-size: .75rem; color: var(--neutral-800);
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}
/* Nothing answered yet is a skeleton rather than an empty space, which is
   the rule the rest of the window follows. */
.wsp-row__value:empty::before {
  content: ""; display: block; height: .6875rem; width: 70%;
  border-radius: 3px; background: var(--neutral-150);
}

/* The verification state of the address. */
.wsp-badge {
  display: inline-flex; align-items: center; gap: .3125rem;
  border-radius: var(--r-pill); padding: .125rem .4375rem;
  font-size: .5625rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--neutral-100); color: var(--neutral-600);
}
.wsp-badge .icon { width: 10px; height: 10px; }
.wsp-badge.is-verified { background: var(--success-tint); color: var(--success-text); }

/* The password, as the product would show it: never the characters, only
   that there are some and how far they get. */
.wsp-dots { display: flex; gap: .25rem; align-items: center; min-height: .75rem; }
.wsp-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neutral-800);
  animation: wspDot .22s var(--ease-brand) both;
}
@keyframes wspDot { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }

.wsp-strength { display: grid; gap: .3125rem; }
.wsp-strength__track {
  height: 4px; border-radius: var(--r-pill);
  background: var(--neutral-150); overflow: hidden;
}
.wsp-strength__bar {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: var(--neutral-400);
  transition: width var(--dur-ui) var(--ease-brand), background-color var(--dur-ui) var(--ease-ui);
}
.wsp-strength__bar.is-weak   { background: #C2410C; }
.wsp-strength__bar.is-fair   { background: var(--warning-fill); }
.wsp-strength__bar.is-strong { background: var(--primary-600); }
.wsp-strength__word { font-size: .625rem; color: var(--neutral-600); }

/* --------------------------------------------------------------------------
   The message that carries the code
   --------------------------------------------------------------------------
   An inbox card over the window. The code is in it, and each digit typed on
   the left checks off its digit here, so the one screen where nothing can
   be previewed is the screen where the preview does the explaining.
   -------------------------------------------------------------------------- */
.wsp-inbox {
  position: absolute; z-index: 3;
  left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.98);
  width: min(23rem, 78%);
  background: #fff;
  border: 1px solid var(--neutral-200); border-radius: var(--r-lg);
  box-shadow: var(--shadow-04);
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-ui) var(--ease-brand), transform var(--dur-ui) var(--ease-brand);
}
.wsp-inbox.is-in { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* It leaves upward, the way a message is dismissed. */
.wsp-inbox.is-out { opacity: 0; transform: translate(-50%, -62%) scale(.98); }

.wsp-inbox__bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem;
  background: var(--neutral-50); border-bottom: 1px solid var(--neutral-150);
  font-size: .625rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--neutral-600);
}
.wsp-inbox__bar .icon { width: 12px; height: 12px; color: var(--neutral-500); }

.wsp-inbox__body { padding: .875rem .9375rem 1rem; }
.wsp-inbox__from {
  display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
  font-size: .75rem; color: var(--neutral-900); font-weight: 700;
}
.wsp-inbox__from span { font-weight: 400; font-size: .625rem; color: var(--neutral-600); }
.wsp-inbox__subject { margin: .125rem 0 .75rem; font-size: .6875rem; color: var(--neutral-600); }

.wsp-code { display: flex; gap: .375rem; }
.wsp-code b {
  flex: 1; display: grid; place-items: center;
  height: 2.25rem; border-radius: var(--r-sm);
  border: 1px solid var(--neutral-200); background: var(--neutral-25);
  font-size: 1rem; font-weight: 800; color: var(--neutral-900);
  font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-micro) var(--ease-ui),
              border-color var(--dur-micro) var(--ease-ui),
              color var(--dur-micro) var(--ease-ui);
}
/* A digit that has been typed on the left. */
.wsp-code b.is-hit {
  background: var(--primary-50); border-color: var(--primary-200); color: var(--primary-700);
}
/* The digit the cursor is on. */
.wsp-code b.is-next { border-color: var(--primary-400); }

.wsp-inbox__foot { margin: .75rem 0 0; font-size: .625rem; color: var(--neutral-500); }

/* The drawer's own foot, which also stops the panel reading as a column of
   empty space under three short rows. */
.wsp-drawer__foot {
  margin-top: auto; padding-top: .875rem;
  border-top: 1px solid var(--neutral-150);
  display: flex; align-items: flex-start; gap: .375rem;
  font-size: .625rem; line-height: 1.5; color: var(--neutral-600);
}
.wsp-drawer__foot .icon { flex: none; width: 11px; height: 11px; margin-top: 1px; color: var(--neutral-500); }

@media (prefers-reduced-motion: reduce) {
  .wsp-drawer, .wsp-inbox, .wsp-strength__bar { transition: none; }
  .wsp-dots i { animation: none; }
}

/* --------------------------------------------------------------------------
   Renaming the workspace in the window
   --------------------------------------------------------------------------
   The name comes from the email domain, which is a guess. It is corrected
   here, in the label that shows it, rather than on a screen that asks for
   it -- a whole step for one field everybody would have answered the same
   way is a step that exists to be skipped.
   -------------------------------------------------------------------------- */
.preview__rename {
  display: inline-flex; align-items: center; gap: .3125rem;
  margin: 0; padding: .125rem .3125rem;
  border: 1px solid transparent; border-radius: var(--r-xs);
  background: none; font: inherit; color: inherit; cursor: pointer;
}
.preview__rename:hover { background: var(--neutral-100); border-color: var(--neutral-200); }
.preview__rename:focus-visible { outline: 2px solid var(--primary-700); outline-offset: 1px; }
.preview__rename .icon {
  width: 12px; height: 12px; flex: none; color: var(--neutral-400);
  opacity: 0; transition: opacity var(--dur-micro) var(--ease-ui);
}
/* The pencil appears on hover and on focus, so the control is discoverable
   without being a permanent piece of furniture. */
.preview__rename:hover .icon,
.preview__rename:focus-visible .icon { opacity: 1; }

.preview__renameinput {
  width: 10rem; padding: .1875rem .375rem;
  border: 1px solid var(--primary-400); border-radius: var(--r-xs);
  background: #fff;
  font: inherit; font-weight: 700; color: var(--neutral-900);
}
.preview__renameinput:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 169, 143, .18); }

/* --------------------------------------------------------------------------
   One surface across five page loads
   --------------------------------------------------------------------------
   Each step is its own page, so the browser paints white between them. The
   question fades out and the next one fades in; the window beside it is
   left alone, so the thing being built does not blink while the thing being
   asked changes. That asymmetry is the whole effect -- fading both would
   just be a slower page load.
   -------------------------------------------------------------------------- */
@keyframes authStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.auth__inner--setup .auth__card-col,
.auth__inner--setup > .setup__steps {
  animation: authStepIn .24s var(--ease-brand) both;
}

.auth.is-leaving .auth__card-col,
.auth.is-leaving > .auth__inner--setup > .setup__steps {
  opacity: 0; transform: translateY(-6px);
  transition: opacity .16s var(--ease-ui), transform .16s var(--ease-ui);
}

@media (prefers-reduced-motion: reduce) {
  .auth__inner--setup .auth__card-col,
  .auth__inner--setup > .setup__steps { animation: none; }
  .auth.is-leaving .auth__card-col,
  .auth.is-leaving > .auth__inner--setup > .setup__steps { transition: none; opacity: 1; transform: none; }
  .preview__rename .icon { opacity: 1; }
}

/* --------------------------------------------------------------------------
   The last screen
   --------------------------------------------------------------------------
   No question on it, so no count in the rail and nothing to validate. What
   it has instead is a read-back of the answers and one link that leaves the
   site, which is the only one in the flow that does.
   -------------------------------------------------------------------------- */
.setup__steps--done .setup__count {
  color: var(--primary-700); letter-spacing: .04em; text-transform: uppercase;
  font-size: .6875rem;
}

.donelist {
  display: grid; gap: .625rem;
  margin: 1.5rem 0 0; padding: 0; list-style: none;
}
.donelist li {
  display: flex; align-items: flex-start; gap: .625rem;
  font-size: .875rem; color: var(--neutral-700);
}
.donelist .icon { flex: none; margin-top: 1px; color: var(--primary-600); }
/* The bold part names the answer and the rest of the line says what it
   means. The space between them is a real one in the markup: a generated
   ::after space renders, but it is not in the text, so anything reading the
   page rather than looking at it -- a screen reader, a copy and paste --
   gets the two words run together. */
.donelist b { color: var(--neutral-900); font-weight: 700; }

/* Said plainly under the button rather than guessed from the href. */
.setup__leaving {
  display: flex; align-items: center; gap: .375rem;
  margin: 1rem 0 0;
  font-size: .75rem; color: var(--neutral-600);
}
.setup__leaving .icon { flex: none; color: var(--neutral-500); }

/* --------------------------------------------------------------------------
   The rail says which step this is
   -------------------------------------------------------------------------- */
.setup__name {
  margin-right: .5rem;
  font-weight: 700; color: var(--neutral-800);
}
.setup__count i { font-style: normal; color: var(--neutral-400); margin-inline: .25rem; }

@media (max-width: 599px) {
  /* The name goes before the dots on a narrow screen rather than wrapping
     the row onto two lines. */
  .setup__steps { flex-wrap: wrap; }
  .setup__name { width: 100%; margin: .125rem 0 .375rem; }
}

/* --------------------------------------------------------------------------
   Password rules, stated before they are broken
   --------------------------------------------------------------------------
   These used to exist only as errors after a failed submit, which is a test
   nobody was told they were sitting. Each line is grey with an outlined
   mark until it is met, then both turn.
   -------------------------------------------------------------------------- */
.field__rules {
  display: grid; gap: .3125rem;
  margin: .5rem 0 0; padding: 0; list-style: none;
}
.field__rules li {
  display: flex; align-items: center; gap: .4375rem;
  font-size: .75rem; color: var(--neutral-600);
  transition: color var(--dur-micro) var(--ease-ui);
}
.field__rules .icon {
  flex: none; width: 13px; height: 13px;
  padding: 1px; border-radius: 50%;
  border: 1px solid var(--neutral-300);
  color: transparent;
  transition: color var(--dur-micro) var(--ease-ui),
              background-color var(--dur-micro) var(--ease-ui),
              border-color var(--dur-micro) var(--ease-ui);
}
.field__rules li.is-met { color: var(--neutral-800); }
.field__rules li.is-met .icon {
  color: #fff; background: var(--primary-600); border-color: var(--primary-600);
}

/* --------------------------------------------------------------------------
   The window, on a phone
   --------------------------------------------------------------------------
   An 860px dashboard cannot sit beside a question on a 390px screen, so it
   used to be removed entirely -- and with it the whole idea of the flow,
   on the devices most people sign up from. This is the same answers in one
   line each, above the question: small enough to leave the question the
   screen, present enough that the workspace is still being built.
   -------------------------------------------------------------------------- */
.wsp-strip { display: none; }

@media (max-width: 1199px) {
  .auth__inner--setup > .preview {
    /* Shown again, but only as the strip: the dashboard inside it stays
       hidden, because that is the part that needs 860px. */
    display: block;
    margin-bottom: 1.25rem;
  }
  .auth__inner--setup > .preview > .dash,
  .auth__inner--setup > .preview > .preview__note,
  .auth__inner--setup > .preview > .preview__label { display: none; }

  .wsp-strip {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .875rem;
    padding: .625rem .75rem;
    border: 1px solid var(--neutral-200); border-radius: var(--r-md);
    background: #fff;
  }
  .wsp-strip__ws {
    display: flex; align-items: center; gap: .4375rem;
    font-size: .8125rem; font-weight: 700; color: var(--neutral-900);
  }
  .wsp-strip__ws .dot-live { flex: none; }
  .wsp-strip__item {
    display: flex; align-items: center; gap: .375rem;
    font-size: .75rem; color: var(--neutral-600);
  }
  .wsp-strip__item .icon { flex: none; width: 13px; height: 13px; color: var(--neutral-500); }
  .wsp-strip__item b { color: var(--neutral-900); font-weight: 700; }
  /* Nothing answered yet reads as a skeleton here too, so the strip has the
     shape of its answers before it has them. */
  .wsp-strip__item b:empty::before {
    content: ""; display: inline-block; width: 2.5rem; height: .6875rem;
    border-radius: 3px; background: var(--neutral-150);
  }
}

/* --------------------------------------------------------------------------
   Opening the workspace
   --------------------------------------------------------------------------
   The last screen's button leaves for the product. The window loses its
   frame and grows into the page for a beat first, so "open workspace" is
   something seen rather than only read.
   -------------------------------------------------------------------------- */
.preview.is-opening .dash {
  transform: scale(1.04);
  box-shadow: var(--shadow-hero);
  transition: transform .42s var(--ease-brand), box-shadow .42s var(--ease-brand);
}
.preview.is-opening .preview__label,
.preview.is-opening .preview__note {
  opacity: 0;
  transition: opacity .2s var(--ease-ui);
}
.auth.is-opening .auth__card-col,
.auth.is-opening .auth__brand,
.auth.is-opening .setup__steps,
.auth.is-opening .auth__signed {
  opacity: 0;
  transition: opacity .28s var(--ease-ui);
}

@media (prefers-reduced-motion: reduce) {
  .field__rules li,
  .field__rules .icon { transition: none; }
  .preview.is-opening .dash,
  .preview.is-opening .preview__label,
  .preview.is-opening .preview__note,
  .auth.is-opening .auth__card-col,
  .auth.is-opening .auth__brand,
  .auth.is-opening .setup__steps,
  .auth.is-opening .auth__signed { transition: none; }
}

/* --------------------------------------------------------------------------
   The window does not rebuild itself on every page load
   --------------------------------------------------------------------------
   Each step is its own page, so the preview redraws from storage every
   time. Without this, five page loads mean five sets of bars growing from
   zero and five avatars appearing -- the thing that is meant to persist
   visibly reassembling itself. For the first frame the window paints its
   answers finished; after that, transitions are back on and only the new
   answer moves.
   -------------------------------------------------------------------------- */
.dash.is-instant,
.dash.is-instant * { transition: none !important; animation: none !important; }

/* ==========================================================================
   The preview, second pass
   --------------------------------------------------------------------------
   Four things that read as wrong rather than unfinished.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. The code is dots, not digits in boxes
   --------------------------------------------------------------------------
   Six bordered boxes holding numbers are an OTP field that somebody has
   already filled in. The card is the message, not the field, and what it
   should show is how far the person typing has got.
   -------------------------------------------------------------------------- */
.wsp-code { display: flex; gap: .5rem; justify-content: center; padding: .25rem 0 .125rem; }
.wsp-code i {
  display: block; width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--neutral-300);
  background: none;
  transition: background-color var(--dur-micro) var(--ease-ui),
              border-color var(--dur-micro) var(--ease-ui),
              transform var(--dur-micro) var(--ease-brand);
}
/* A digit typed on the left fills its dot here, in the brand colour. */
.wsp-code i.is-hit {
  background: var(--primary-600); border-color: var(--primary-600);
  transform: scale(1.1);
}
/* The one the cursor is on, so the card tracks the caret. */
.wsp-code i.is-next { border-color: var(--primary-400); }

.wsp-inbox__foot {
  margin: .625rem 0 0; text-align: center;
  font-size: .625rem; color: var(--neutral-600);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   2. The drawer is a panel, not a card
   --------------------------------------------------------------------------
   It was briefly a floating card anchored near the top. It read as a
   notification rather than as part of the application: a profile in a
   product is a panel attached to the edge of the window, and detaching it
   made the window look like it had something stuck to it.

   So it is back to what it was -- full height, flush with the right edge,
   square, a hairline down its left side and the shadow falling inward. The
   movement is untouched: the same slide in from the right, .32s on the
   brand curve.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   3. The clock says what it counts
   -------------------------------------------------------------------------- */
.dash__live-of {
  margin-left: .3125rem;
  font-size: .5625rem; font-weight: 400; color: var(--neutral-500);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. An empty dashboard that reads as new, not as broken
   --------------------------------------------------------------------------
   Four cards showing an em dash and a table of grey bars is what a product
   looks like when it has failed to load. The same screen with one sentence
   in the middle of the table is what a product looks like before anybody
   has used it, which is what this is.
   -------------------------------------------------------------------------- */
.dash__table.is-skeleton .dash__tr--ghost { opacity: .55; }
.dash__empty {
  grid-column: 1 / -1;
  margin: 0; padding: 1.125rem .875rem 1rem;
  text-align: center;
  font-size: .6875rem; line-height: 1.6; color: var(--neutral-600);
}
.dash__empty .icon {
  display: block; width: 15px; height: 15px;
  margin: 0 auto .375rem; color: var(--neutral-400);
}

@media (prefers-reduced-motion: reduce) {
  .wsp-code i { transition: none; }
}

/* ==========================================================================
   The message, as a dark card
   --------------------------------------------------------------------------
   Everything on the dashboard is a white panel with a hairline border and a
   soft shadow, and the card was one more of them. Nothing behind it is
   touched here -- no dim, no blur, no change to the preview at all. The card
   simply stops being made of the same material as the thing it sits on:
   nothing on that window is dark, so a dark card cannot be mistaken for
   part of it.

   The shadow and the radius are left exactly as they were. Lifting them was
   tried and it read as floaty.
   ========================================================================== */
.wsp-inbox {
  /* The site's own dark surface -- the one the footer and the how-it-works
     band use -- rather than a new colour invented for this card. */
  background: var(--ink-900);
  border-color: var(--ink-line);
  /* Bigger than the panels behind it, so size separates it as well as
     colour. */
  width: min(26rem, 86%);
}

.wsp-inbox__body { padding: 1.125rem 1.25rem 1.25rem; }

/* The sender, doing the job the head strip used to do. */
.wsp-inbox__from {
  display: flex; align-items: center; gap: .4375rem;
  font-size: .8125rem; font-weight: 700; color: #fff;
}
.wsp-inbox__from .icon { flex: none; width: 14px; height: 14px; color: var(--primary-300); }
.wsp-inbox__from span {
  margin-left: auto;
  font-size: .625rem; font-weight: 400; color: rgba(255, 255, 255, .62);
}

.wsp-inbox__subject {
  margin: .5rem 0 1rem;
  font-size: .8125rem; line-height: 1.5; color: rgba(255, 255, 255, .78);
}
.wsp-inbox__subject b { color: #fff; font-weight: 700; }

/* ---- the dots, on a dark ground ---- */
.wsp-code { gap: .5rem; justify-content: flex-start; }
.wsp-code i {
  width: 13px; height: 13px;
  border-color: rgba(255, 255, 255, .34);
}
.wsp-code i.is-hit {
  background: var(--primary-300); border-color: var(--primary-300);
  transform: none;
}
.wsp-code i.is-next { border-color: var(--primary-300); }

.wsp-inbox__foot {
  margin-top: .875rem; text-align: left;
  font-size: .6875rem; font-weight: 700; color: var(--primary-300);
}
